(()=>{var o={40252:function(o,a,y){"use strict";function modeChangeHandler(){var o=this;o.$el.on("click",".js-edit-on-click-toggle__button",function(a){if(!$(a.target).hasClass("edit-on-click-toggle__button--active")){var y,E=null===(y=o.model)||void 0===y||null===(y=y.attributes)||void 0===y||null===(y=y.locals)||void 0===y?void 0:y.editOnClickMode;o.model.setLocals({editOnClickMode:!E}),o.render()}})}function openSettingsHandler(o,a){var y=this,E=$(document).find(o);y.$el.find(".edit-on-click--container-template").on("click",function(){var o=null==E?void 0:E.find(a[0]);y.closeDrilldown(E),!(null!=o&&o.hasClass("active"))&&o.click()}),y.$el.find(".edit-on-click--container-options").on("click",function(){var o=null==E?void 0:E.find(a[1]);y.closeDrilldown(E),!(null!=o&&o.hasClass("active"))&&o.click()}),y.$el.find(".edit-on-click--container-design").on("click",function(){var P,A=null==E?void 0:E.find(a[2]);y.closeDrilldown(E),!(null!=A&&A.hasClass("active"))&&A.click(),(null===(P=y.model)||void 0===P||null===(P=P.meta)||void 0===P?void 0:P.app_type)==="faq"&&$(o).find("#generalAccordion").find(".powrDrilldownToggle").click()})}y.r(a),y.d(a,{modeChangeHandler:function(){return modeChangeHandler},openSettingsHandler:function(){return openSettingsHandler}})},39882:function(o,a,y){"use strict";y(82186)},88404:function(o,a,y){"use strict";y.r(a),y.d(a,{ALL_GOOGLE_FONTS:function(){return B},AMAZOMAWS_URI:function(){return et},CDN_BUCKETS:function(){return ef},CHAMELEON_ENDPOINT:function(){return ey},CONTACTS_APPS:function(){return e_},COUNTER_URI:function(){return eo},DEPOSITPHOTO_URL:function(){return ea},FONT_STYLES:function(){return ew},IMAGE_FORMATS:function(){return em},IMAGE_RESIZE_BUCKET_PATH:function(){return en},IMAGE_SIZE_POSTFIXES:function(){return ev},PAYPAL_URI:function(){return eb},POPULAR_FONTS:function(){return q},POWR_FONT:function(){return A},POWR_FONT_FAMILY_KEY:function(){return P},POWR_OUTLET_URI:function(){return er},POWR_RESIZER_URI:function(){return ed},R2_IMAGE_PROCESSOR_ENDPOINT:function(){return ep},SSR_JIMDO_APPS_SLUG:function(){return E},SYSTEM_DEFAULT:function(){return j},UNSPLASH_API_URL:function(){return eu},UNSPLASH_URI:function(){return es},UNSPLASH_UTM_PARAMS:function(){return el},ZOOM_URI:function(){return eS},getCDNUrl:function(){return getCDNUrl},getR2UploadURL:function(){return getR2UploadURL},getS3Url:function(){return getS3Url}});var E=["map","countdown-timer"],P="POWR_FONT_FAMILY_KEY",A={label:"gordita",value:"gordita"},j={label:"System Default",value:"-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,'Fira Sans','Droid Sans','Helvetica Neue',sans-serif"},B=["Basic","Crimson Text","Fira Sans","Inconsolata","Georgia","Impact","Lato","Lora","Merriweather","Montserrat","Muli","Noto Serif","Nunito","Open Sans","Open Sans Condensed","Oswald","PT Sans","PT Sans Narrow","PT Serif","Playfair Display","Poppins","Raleway","Roboto","Roboto Condensed","Slabo 13px","Source Sans Pro",j.label,"ABeeZee","Abel","Abhaya Libre","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Aleo","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiko","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo","Archivo Black","Archivo Narrow","Aref Ruqaa","Arima Madurai","Arimo","Arizonia","Armata","Arsenal","Artifika","Arvo","Arya","Asap","Asap Condensed","Asar","Asset","Assistant","Astloch","Asul","Athiti","Atma","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","B612","B612 Mono","Bad Script","Bahiana","Bahianita","Bai Jamjuree","Baloo","Baloo Bhai","Baloo Bhaijaan","Baloo Bhaina","Baloo Chettan","Baloo Da","Baloo Paaji","Baloo Tamma","Baloo Tammudu","Baloo Thambi","Balthazar","Bangers","Barlow","Barlow Condensed","Barlow Semi Condensed","Barriecito","Barrio","Battambang","Baumans","Bayon","Belgrano","Bellefair","Belleza","BenchNine","Bentham","Berkshire Swash","Beth Ellen","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","BioRhyme","BioRhyme Expanded","Biryani","Bitter","Black And White Picture","Black Han Sans","Black Ops One","Blinker","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Bungee","Bungee Hairline","Bungee Inline","Bungee Outline","Bungee Shade","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Cairo","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Chakra Petch","Changa","Changa One","Chango","Charm","Charmonman","Chathura","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Coiny","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Cormorant","Cormorant Garamond","Cormorant Infant","Cormorant SC","Cormorant Unicase","Cormorant Upright","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Pro","Croissant One","Crushed","Cuprum","Cute Font","Cutive","Cutive Mono","DM Sans","DM Serif Display","DM Serif Text","Damion","Dancing Script","Dangrek","Darker Grotesque","David Libre","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Do Hyeon","Dokdo","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Duru Sans","Dynalight","EB Garamond","Eagle Lake","East Sea Dokdo","Eater","Economica","Eczar","El Messiri","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Encode Sans","Encode Sans Condensed","Encode Sans Expanded","Encode Sans Semi Condensed","Encode Sans Semi Expanded","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fahkwang","Fanwood Text","Farro","Farsan","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Faustina","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Code","Fira Mono","Fira Sans Condensed","Fira Sans Extra Condensed","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Frank Ruhl Libre","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gaegu","Gafata","Galada","Galdeano","Galindo","Gamja Flower","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gidugu","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Gothic A1","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Grenze","Griffy","Gruppo","Gudea","Gugi","Gurajada","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Harmattan","Headland One","Heebo","Henny Penny","Herr Von Muellerhoff","Hi Melody","Hind","Hind Guntur","Hind Madurai","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IBM Plex Mono","IBM Plex Sans","IBM Plex Sans Condensed","IBM Plex Serif","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inder","Indie Flower","Inika","Inknut Antiqua","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","Jim Nightshade","Jockey One","Jolly Lodger","Jomhuria","Josefin Sans","Josefin Slab","Joti One","Jua","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","K2D","Kadwa","Kalam","Kameron","Kanit","Kantumruy","Karla","Karma","Katibeh","Kaushan Script","Kavivanar","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kirang Haerang","Kite One","Knewave","KoHo","Kodchasan","Kosugi","Kosugi Maru","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Krub","Kumar One","Kumar One Outline","Kurale","La Belle Aurore","Lacquer","Laila","Lakki Reddy","Lalezar","Lancelot","Lateef","League Script","Leckerli One","Ledger","Lekton","Lemon","Lemonada","Libre Barcode 128","Libre Barcode 128 Text","Libre Barcode 39","Libre Barcode 39 Extended","Libre Barcode 39 Extended Text","Libre Barcode 39 Text","Libre Baskerville","Libre Caslon Display","Libre Caslon Text","Libre Franklin","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Literata","Liu Jian Mao Cao","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Long Cang","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","M PLUS 1p","M PLUS Rounded 1c","Ma Shan Zheng","Macondo","Macondo Swash Caps","Mada","Magra","Maiden Orange","Maitree","Major Mono Display","Mako","Mali","Mallanna","Mandali","Manuale","Marcellus","Marcellus SC","Marck Script","Margarine","Markazi Text","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Meera Inimai","Megrim","Meie Script","Merienda","Merienda One","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Mina","Miniver","Miriam Libre","Mirza","Miss Fajardose","Mitr","Modak","Modern Antiqua","Mogra","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Mukta","Mukta Mahee","Mukta Malar","Mukta Vaani","Mystery Quest","NTR","Nanum Brush Script","Nanum Gothic","Nanum Gothic Coding","Nanum Myeongjo","Nanum Pen Script","Neucha","Neuton","New Rocker","News Cycle","Niconne","Niramit","Nixie One","Nobile","Nokora","Norican","Nosifer","Notable","Nothing You Could Do","Noticia Text","Noto Sans","Noto Sans HK","Noto Sans JP","Noto Sans KR","Noto Sans SC","Noto Sans TC","Noto Serif JP","Noto Serif KR","Noto Serif SC","Noto Serif TC","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Nunito Sans","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Over the Rainbow","Overlock","Overlock SC","Overpass","Overpass Mono","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans Caption","PT Serif Caption","Pacifico","Padauk","Palanquin","Palanquin Dark","Pangolin","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Pattaya","Patua One","Pavanam","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poor Story","Port Lligat Sans","Port Lligat Slab","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Pridi","Princess Sofia","Prociono","Prompt","Prosto One","Proza Libre","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Rakkas","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Ranchers","Rancho","Ranga","Rasa","Rationale","Ravi Prakash","Red Hat Display","Red Hat Text","Redressed","Reem Kufi","Reenie Beanie","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto Mono","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik","Rubik Mono One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sahitya","Sail","Saira","Saira Condensed","Saira Extra Condensed","Saira Semi Condensed","Saira Stencil One","Salsa","Sanchez","Sancreek","Sansita","Sarabun","Sarala","Sarina","Sarpanch","Satisfy","Sawarabi Gothic","Sawarabi Mincho","Scada","Scheherazade","Schoolbell","Scope One","Seaweed Script","Secular One","Sedgwick Ave","Sedgwick Ave Display","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Shrikhand","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Single Day","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Song Myung","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Serif Pro","Space Mono","Special Elite","Spectral","Spectral SC","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Sriracha","Srisakdi","Staatliches","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Stylish","Sue Ellen Francisco","Suez One","Sumana","Sunflower","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Tajawal","Tangerine","Taprom","Tauri","Taviraj","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","Thasadith","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Trade Winds","Trirong","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Vollkorn SC","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Yanone Kaffeesatz","Yantramanav","Yatra One","Yellowtail","Yeon Sung","Yeseva One","Yesteryear","Yrsa","ZCOOL KuaiLe","ZCOOL QingKe HuangYou","ZCOOL XiaoWei","Zeyada","Zhi Mang Xing","Zilla Slab","Zilla Slab Highlight"],q=B.slice(0,29),et="https://powr-dev.s3-us-west-1.amazonaws.com",en="app_images/resizable/",er="https://localhost:3001",eo="https://counter.powr-staging.io/",ea="https://www.shareasale.com/r.cfm?b=257542&u=923171&m=29473&urllink=&afftrack=",es="https://www.unsplash.com",el="utm_source=POWr&utm_medium=referral&utm_campaign=api-credit",eu="https://api.unsplash.com/search/photos?client_id=1103f482048219027adebdc2c54133041dff20610e98fa988a7f74cd8ced548f",ed={development:"https://3qk72e89p3.execute-api.us-east-1.amazonaws.com/dev/v2/resize",staging:"https://i86wntzoe0.execute-api.us-east-1.amazonaws.com/staging/v2/resize",production:"https://5qtf4qhcd1.execute-api.us-east-1.amazonaws.com/production/v2/resize"},ef={development:"dev.powrcdn.com",staging:"staging.powrcdn.com",production:"www.powrcdn.com"},ep={development:"http://127.0.0.1:8787/",staging:"https://www.powr-staging.io/lambda-image-processor/",production:"https://www.powr.io/lambda-image-processor/"},em=["png","jpg","jpeg","gif","tiff","webp","svg"],ev={thumb:"_100",preview:"_500",medium:"_1000",large:"_2000",r2_thumb:"/250",r2_preview:"/500",r2_medium:"/1000",original:""},ey={development:"https://qdmx0qkdga.execute-api.us-west-2.amazonaws.com/staging/chameleon",staging:"https://qdmx0qkdga.execute-api.us-west-2.amazonaws.com/staging/chameleon",production:"https://h5k7r2eqrk.execute-api.us-west-2.amazonaws.com/production/chameleon"},eb={development:"https://www.sandbox.paypal.com",staging:"https://www.sandbox.paypal.com",production:"https://www.paypal.com"},ew=["normal","bold","italic"],getCDNUrl=function(o){return null==o?"":o.indexOf(ef[window.ENVIRONMENT])>-1?o.replace("s3.us-west-1.amazonaws.com/",""):o},getR2UploadURL=function(){return ep[window.ENVIRONMENT]},e_=["formBuilder","popup","productReviews","comments"],eS={development:"https://zoom.us/oauth/authorize?response_type=code&client_id=m7Q3FEPATfyekLR84NbFsQ&redirect_uri=https://localhost:3000/zoom/redirect?app_type%3DzoomAppointments",staging:"https://zoom.us/oauth/authorize?response_type=code&client_id=m7Q3FEPATfyekLR84NbFsQ&redirect_uri=https://www.powr-staging.io/zoom/redirect?app_type%3DzoomAppointments",production:"https://zoom.us/oauth/authorize?response_type=code&client_id=YWJ3pdxRLKvsKVsHHxiAw&redirect_uri=https://www.powr.io/zoom/redirect?app_type%3DzoomAppointments"},getS3Url=function(o){return"".concat(o.match(/^(https?:\/\/[^/]+)\//)[1],"/")}},26651:function(o,a,y){"use strict";y.d(a,{P:function(){return errorHandler}});var errorHandler=function(o){var a=this;a.errors=[],a.element=o,a.addError=function(o){a.errors.push(o)},a.displayErrors=function(){if(a.errors.length>0){var o="";o+="",a.element.html(o),a.element.fadeIn("slow")}},a.clearErrors=function(){a.errors=[],a.element.hide().html("")}}},61409:function(o,a,y){"use strict";y.d(a,{G_:function(){return loadFontsFromGoogle}}),y(88404);var E=["Courier New","Georgia","Palatino Linotype","Times New Roman","Arial","Arial Black","Comic Sans","Tahoma","Verdana","Lucida Sans Unicode","Lucida Console","Comic sans ms","Impact"],loadFontsFromGoogle=function(o){var a=[];for(var y in o)0!=o[y].length&&-1==$.inArray(o[y],E)&&-1==o[y].search(",")&&a.push(o[y]);o=a;for(var P=0;P')),window.NEW_FONTS=!1)}},15937:function(o,a,y){"use strict";y.d(a,{QV:function(){return isWixPlatform},ZM:function(){return isStandaloneWixEditor}}),y(82186),y(39882);var isWixPlatform=function(){var o=document.URL.includes("standalone");return["wix","wix-oauth"].includes(window.HOST)&&!o},isStandaloneWixEditor=function(){return"true"===new URLSearchParams(window.location.search).get("wix_standalone")}},47837:function(o,a,y){"use strict";y.r(a),y.d(a,{promiseAjaxController:function(){return promiseAjaxController}});var E=y(82186),P=y(26651);jQuery.fn.fxnMap=function(o){var a=[];return this.each(function(){a.push(o.call(this))}),a},jQuery.fn.findAndSelf=function(o){return this.find(o).addBack(o)},jQuery.fn.addPrototype=function(o,a){var y=$(this[0]),E=y.children(".prototype");E.outerHeight(!0);var P=E.clone().removeClass("prototype");return 0==E.length?(debug&&console.log("No prototype length"),"function"==typeof o&&o(P),P):("undefined"!=typeof id&&P.attr("id",id),a&&"instant"==a.speed)?(P.appendTo(y),"function"==typeof o&&o(P),P):(P.hide().appendTo(y).hide().slideDown(200,function(){"function"==typeof o&&o(P)}),P)},jQuery.fn.deleteAnimate=function(o){var a=$(this[0]);a.slideUp(200,function(){a.remove(),"function"==typeof o&&o()})},jQuery.fn.formToObject=function(o){if(o&&o.ignoreWithParent)var a=o.ignoreWithParent;else var a=!1;if(o&&o.ignoreWithClass)var y=o.ignoreWithClass;else var y=!1;var E=$(this),P={};return E.find('input[type="number"], input[type="text"], input[type="date"], input[type="email"], input[type="password"], input[type="hidden"], textarea, select, input[type="radio"]:checked, input[type="checkbox"]').each(function(){if(!(y&&$(this).hasClass(y))&&(!a||!($(this).parents(a).length>0))){var o=$(this).attr("name"),E=$(this).val(),A=$(this).attr("type");void 0!==o&&("checkbox"==A?$(this).prop("checked")?P[o]=!0:P[o]=!1:P[o]=E)}}),P},jQuery.fn.objectToForm=function(o){var a=$(this);for(var y in o){var E=o[y];if("string"==typeof E||"number"==typeof E||"boolean"==typeof E){var P='[name="'+y+'"]',A='input[type="number"]'+P+', input[type="text"]'+P+', input[type="email"]'+P+', input[type="date"]'+P+', input[type="hidden"]'+P+", textarea"+P+", select"+P;if(a.find(A).val(E).trigger("forceUpdateComponent"),"string"==typeof E)var j=E.replace(/\\/g,"").replace(/(['"])/g,"\\$1");else var j="";A='input[type="radio"]'+(P='[name="'+y+'"][value="'+j+'"]'),a.find(A).prop("checked",!0).trigger("forceUpdateComponent"),!0==o[y]&&(A='input[type="checkbox"]'+(P='[name="'+y+'"]'),a.find(A).prop("checked",!0).trigger("forceUpdateComponent")),!1==o[y]&&(A='input[type="checkbox"]'+(P='[name="'+y+'"]'),a.find(A).prop("checked",!1).trigger("forceUpdateComponent"))}}return this},jQuery.fn.reloadHtml=function(){$(this).each(function(){var o=$(this).html();$(this).html(o)})},jQuery.fn.computeMaxHeight=function(){var o=$(this),a=0;return o.each(function(){$(this).height()>a&&(a=$(this).height())}),a},jQuery.fn.transition=function(o,a,y){var E=$(this[0]),P=E.css("width"),A=E.css("height");switch(o){case"fadeOut":E.fadeOut(a,y);break;case"fadeIn":E.fadeIn(a,y);break;case"slideLeft":E.show().animate({left:"-="+P},a,y);break;case"slideRight":E.show().animate({left:"+="+P},a,y);break;case"slideUp":E.show().animate({top:"+="+A},a,y);break;case"slideDown":E.show().animate({top:"-="+A},a,y);break;case"slideInLeft":E.css("left","+="+P).animate({left:"-="+P},a,y);break;case"slideInRight":E.css("left","-="+P).animate({left:"+="+P},a,y);break;case"slideInUp":E.css("top","-="+A).animate({top:"+="+A},a,y);break;case"slideInDown":E.css("top","+="+A).animate({top:"-="+A},a,y)}},jQuery.fn.toggleButton=function(){$(this).each(function(){this.disabled=!this.disabled,$(this).toggleClass("loading")})},jQuery.fn.clearInputs=function(){$(this).find('input:not([type="submit"]), textarea').val("")};var A=[],j=!1,_processQueue=function(){!j&&A.length>0&&(j=!0,A.shift()(),setTimeout(function(){j=!1,_processQueue()},500))};window.ajaxController=function(o,a){var y=this,E=document.getElementById("js-sjir"),P=null;E&&(P=E.getAttribute("data-key")),(P||window.isShopifyEmbeddedApp())&&window.thirdPartyCookiesBlocked()&&window.isInternalUrl(o.url)?(A.push(function(){return ajaxControllerAppBridge(o,a,y,P)}),_processQueue()):ajaxControllerCall(o,a,y)};var ajaxControllerAppBridge=function(o,a,y){var E=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",P=o.url;if(-1==P.indexOf("shopify_embedded_app_type=")){var A=new URLSearchParams(location.search).get("shopify_embedded_app_type");P+=(-1==P.indexOf("?")?"?":"&")+"shopify_embedded_app_type="+A}if(-1==P.indexOf("shopify_app_type_original=")){var j=new URLSearchParams(location.search).get("shopify_app_type_original");P+=(-1==P.indexOf("?")?"?":"&")+"shopify_app_type_original="+j}if(-1==P.indexOf("shop=")){var B=new URLSearchParams(location.search).get("shop");B&&(P+=(-1==P.indexOf("?")?"?":"&")+"shop="+B)}o.url=P,E?(-1==P.indexOf("is_powr_one_request=")&&(o.url+=(-1==o.url.indexOf("?")?"?":"&")+"is_powr_one_request=true"),-1==P.indexOf("sjir=")&&(o.url+=(-1==o.url.indexOf("?")?"?":"&")+"sjir=".concat(E)),ajaxControllerCall(o,a,y)):(appBridgeCreateApp(),window["app-bridge-utils"].getSessionToken(window.app).then(function(E){window.sessionToken=E,ajaxControllerCall(o,a,y)}).catch(function(o){Bugsnag.notifyException(Error(o))}))},getAppBridgeHost=function(){var o=new URLSearchParams(location.search),a=o.get("host"),y=o.get("shop");return fetch("/get-app-bridge-host?shop=".concat(y),{method:"GET"}).then(function(o){return o.json()}).then(function(o){a=o.host}),a},appBridgeCreateApp=function(){if(void 0===window.app||null==window.app){var o=document.getElementById("shopify-app-init"),a=window["app-bridge"].default;window.app=a({apiKey:o.dataset.apiKey,host:getAppBridgeHost()})}},ajaxControllerCall=function(o,a,y){y.url=o.url,y.data=o.data,void 0!==o.errorsElement&&(y.errorsElement=o.errorsElement,y.err=new P.P(y.errorsElement),y.err.clearErrors()),void 0!==o.buttonElement&&(y.buttonElement=o.buttonElement,y.buttonElement.toggleButton()),void 0!==o.successElement&&(y.successElement=o.successElement,y.successElement.fadeOut("fast")),void 0===o.type?y.type="POST":y.type=o.type,void 0===o.flashSuccess?y.flashSuccess=!0:y.flashSuccess=o.flashSuccess;var A=y.url.startsWith("http")||y.url.startsWith("www")?"":(0,E.getHostPrefix)(window),j={url:"".concat(A).concat(y.url),type:y.type,data:y.data,beforeSend:o.skipCSRF?function(){}:function(o){o.setRequestHeader("X-CSRF-Token",$('meta[name="csrf-token"]').attr("content")),window.sessionToken&&o.setRequestHeader("Authorization","Bearer "+window.sessionToken)},dataType:o.dataType||"json"};o&&$.each(["contentType","processData"],function(a,y){y in o&&(j[y]=o[y])});var B=$.ajax(j);B.done(function(o){if(debug()("Ajax Response:",o),!0==o.success)void 0!==y.successElement&&(y.successElement.fadeIn("fast"),y.flashSuccess&&setTimeout(function(){y.successElement.fadeOut("fast")},2e3));else if(void 0!==y.errorsElement&&void 0!==o.errors&&o.errors.length>0){for(var E=0;E"+P+"")}void 0!==y.buttonElement&&y.buttonElement.toggleButton(),void 0!==a&&a(o)}),B.fail(function(o){try{var E=o.responseJSON.error,P="
"+E+"
";$(".flash-error").html(P)}catch(o){if(void 0!==y.errorsElement){y.err.addError('Difficulty contacting server. Please try again or contact support');var E=y.err.errors.join(", "),P="
"+E+"
";$(".flash-error").html(P)}}finally{if(void 0!==y.buttonElement&&y.buttonElement.toggleButton(),void 0!==a){try{o=o.responseJSON}catch(a){o={success:!1,errors:["Something went wrong, please try again or contact support@powr.io"]}}a(o)}}})},promiseAjaxController=function(o){return new Promise(function(a,y){window.ajaxController(o,function(o){o?a(o):y(o)})})};window.htmlSafe=function(o){return null==o?o:o.replaceAll("'","'").replaceAll('"',""")}},49013:function(o,a,y){"use strict";y.d(a,{ZP:function(){return j},ZY:function(){return A},z5:function(){return P}});var E=y(82186),P=["free","premium","pro","enterprise","hipaa_form_starter","hipaa_form_pro","hipaa_form_business","hipaa_form_custom"],A=["v_250","v_500","v_2500","v_5000","v_10000","v_25000","v_50000","custom"];let j={isUpgradeRequired:function(o,a){if((0,E.isInUsageBasedV2App)())return!!A.includes(a)&&A.indexOf(o)color_makeColorString,f:()=>color_makeColorObject});var E,P,A,j=/^\s+/,B=/\s+$/;function tinycolor(o,a){if(a=a||{},(o=o||"")instanceof tinycolor)return o;if(!(this instanceof tinycolor))return new tinycolor(o,a);var y=inputToRGB(o);this._originalInput=o,this._r=y.r,this._g=y.g,this._b=y.b,this._a=y.a,this._roundA=Math.round(100*this._a)/100,this._format=a.format||y.format,this._gradientType=a.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=y.ok}function inputToRGB(o){var a={r:0,g:0,b:0},y=1,E=null,P=null,A=null,j=!1,B=!1;return"string"==typeof o&&(o=stringInputToObject(o)),"object"==_typeof(o)&&(isValidCSSUnit(o.r)&&isValidCSSUnit(o.g)&&isValidCSSUnit(o.b)?(a=rgbToRgb(o.r,o.g,o.b),j=!0,B="%"===String(o.r).substr(-1)?"prgb":"rgb"):isValidCSSUnit(o.h)&&isValidCSSUnit(o.s)&&isValidCSSUnit(o.v)?(E=convertToPercentage(o.s),P=convertToPercentage(o.v),a=hsvToRgb(o.h,E,P),j=!0,B="hsv"):isValidCSSUnit(o.h)&&isValidCSSUnit(o.s)&&isValidCSSUnit(o.l)&&(E=convertToPercentage(o.s),A=convertToPercentage(o.l),a=hslToRgb(o.h,E,A),j=!0,B="hsl"),o.hasOwnProperty("a")&&(y=o.a)),y=boundAlpha(y),{ok:j,format:o.format||B,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:y}}function rgbToRgb(o,a,y){return{r:255*bound01(o,255),g:255*bound01(a,255),b:255*bound01(y,255)}}function rgbToHsl(o,a,y){o=bound01(o,255),a=bound01(a,255);var E=Math.max(o,a,y=bound01(y,255)),P=Math.min(o,a,y),A,j,B=(E+P)/2;if(E==P)A=j=0;else{var q=E-P;switch(j=B>.5?q/(2-E-P):q/(E+P),E){case o:A=(a-y)/q+(a1&&(y-=1),y<1/6)?o+(a-o)*6*y:y<.5?a:y<2/3?o+(a-o)*(2/3-y)*6:o}if(o=bound01(o,360),a=bound01(a,100),y=bound01(y,100),0===a)E=P=A=y;else{var j=y<.5?y*(1+a):y+a-y*a,B=2*y-j;E=hue2rgb(B,j,o+1/3),P=hue2rgb(B,j,o),A=hue2rgb(B,j,o-1/3)}return{r:255*E,g:255*P,b:255*A}}function rgbToHsv(o,a,y){o=bound01(o,255),a=bound01(a,255);var E,P,A=Math.max(o,a,y=bound01(y,255)),j=Math.min(o,a,y);var B=A-j;if(P=0===A?0:B/A,A==j)E=0;else{switch(A){case o:E=(a-y)/B+(a>1)+720)%360;--a;)E.h=(E.h+P)%360,A.push(tinycolor(E));return A}function _monochromatic(o,a){a=a||6;for(var y=tinycolor(o).toHsv(),E=y.h,P=y.s,A=y.v,j=[],B=1/a;a--;)j.push(tinycolor({h:E,s:P,v:A})),A=(A+B)%1;return j}tinycolor.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var o=this.toRgb();return(299*o.r+587*o.g+114*o.b)/1e3},getLuminance:function(){var o,a,y,E,P,A,j=this.toRgb();return o=j.r/255,a=j.g/255,y=j.b/255,.2126*(E=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.7152*(P=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(A=y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4))},setAlpha:function(o){return this._a=boundAlpha(o),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var o=rgbToHsv(this._r,this._g,this._b);return{h:360*o.h,s:o.s,v:o.v,a:this._a}},toHsvString:function(){var o=rgbToHsv(this._r,this._g,this._b),a=Math.round(360*o.h),y=Math.round(100*o.s),E=Math.round(100*o.v);return 1==this._a?"hsv("+a+", "+y+"%, "+E+"%)":"hsva("+a+", "+y+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var o=rgbToHsl(this._r,this._g,this._b);return{h:360*o.h,s:o.s,l:o.l,a:this._a}},toHslString:function(){var o=rgbToHsl(this._r,this._g,this._b),a=Math.round(360*o.h),y=Math.round(100*o.s),E=Math.round(100*o.l);return 1==this._a?"hsl("+a+", "+y+"%, "+E+"%)":"hsla("+a+", "+y+"%, "+E+"%, "+this._roundA+")"},toHex:function(o){return rgbToHex(this._r,this._g,this._b,o)},toHexString:function(o){return"#"+this.toHex(o)},toHex8:function(o){return rgbaToHex(this._r,this._g,this._b,this._a,o)},toHex8String:function(o){return"#"+this.toHex8(o)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*bound01(this._r,255))+"%",g:Math.round(100*bound01(this._g,255))+"%",b:Math.round(100*bound01(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%)":"rgba("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(et[rgbToHex(this._r,this._g,this._b,!0)]||!1)},toFilter:function(o){var a="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),y=a,E=this._gradientType?"GradientType = 1, ":"";if(o){var P=tinycolor(o);y="#"+rgbaToArgbHex(P._r,P._g,P._b,P._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+a+",endColorstr="+y+")"},toString:function(o){var a=!!o;o=o||this._format;var y=!1,E=this._a<1&&this._a>=0;if(!a&&E&&("hex"===o||"hex6"===o||"hex3"===o||"hex4"===o||"hex8"===o||"name"===o))return"name"===o&&0===this._a?this.toName():this.toRgbString();return"rgb"===o&&(y=this.toRgbString()),"prgb"===o&&(y=this.toPercentageRgbString()),("hex"===o||"hex6"===o)&&(y=this.toHexString()),"hex3"===o&&(y=this.toHexString(!0)),"hex4"===o&&(y=this.toHex8String(!0)),"hex8"===o&&(y=this.toHex8String()),"name"===o&&(y=this.toName()),"hsl"===o&&(y=this.toHslString()),"hsv"===o&&(y=this.toHsvString()),y||this.toHexString()},clone:function(){return tinycolor(this.toString())},_applyModification:function(o,a){var y=o.apply(null,[this].concat([].slice.call(a)));return this._r=y._r,this._g=y._g,this._b=y._b,this.setAlpha(y._a),this},lighten:function(){return this._applyModification(_lighten,arguments)},brighten:function(){return this._applyModification(_brighten,arguments)},darken:function(){return this._applyModification(_darken,arguments)},desaturate:function(){return this._applyModification(_desaturate,arguments)},saturate:function(){return this._applyModification(_saturate,arguments)},greyscale:function(){return this._applyModification(_greyscale,arguments)},spin:function(){return this._applyModification(_spin,arguments)},_applyCombination:function(o,a){return o.apply(null,[this].concat([].slice.call(a)))},analogous:function(){return this._applyCombination(_analogous,arguments)},complement:function(){return this._applyCombination(_complement,arguments)},monochromatic:function(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(_splitcomplement,arguments)},triad:function(){return this._applyCombination(polyad,[3])},tetrad:function(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(o,a){if("object"==_typeof(o)){var y={};for(var E in o)o.hasOwnProperty(E)&&("a"===E?y[E]=o[E]:y[E]=convertToPercentage(o[E]));o=y}return tinycolor(o,a)},tinycolor.equals=function(o,a){return!!o&&!!a&&tinycolor(o).toRgbString()==tinycolor(a).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},tinycolor.mix=function(o,a,y){y=0===y?0:y||50;var E=tinycolor(o).toRgb(),P=tinycolor(a).toRgb(),A=y/100;return tinycolor({r:(P.r-E.r)*A+E.r,g:(P.g-E.g)*A+E.g,b:(P.b-E.b)*A+E.b,a:(P.a-E.a)*A+E.a})},tinycolor.readability=function(o,a){var y=tinycolor(o),E=tinycolor(a);return(Math.max(y.getLuminance(),E.getLuminance())+.05)/(Math.min(y.getLuminance(),E.getLuminance())+.05)},tinycolor.isReadable=function(o,a,y){var E,P,A=tinycolor.readability(o,a);switch(P=!1,(E=validateWCAG2Parms(y)).level+E.size){case"AAsmall":case"AAAlarge":P=A>=4.5;break;case"AAlarge":P=A>=3;break;case"AAAsmall":P=A>=7}return P},tinycolor.mostReadable=function(o,a,y){var E,P,A,j,B=null,q=0;P=(y=y||{}).includeFallbackColors,A=y.level,j=y.size;for(var et=0;etq&&(q=E,B=tinycolor(a[et]));return tinycolor.isReadable(o,B,{level:A,size:j})||!P?B:(y.includeFallbackColors=!1,tinycolor.mostReadable(o,["#fff","#000"],y))};var q=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},et=tinycolor.hexNames=flip(q);function flip(o){var a={};for(var y in o)o.hasOwnProperty(y)&&(a[o[y]]=y);return a}function boundAlpha(o){return(isNaN(o=parseFloat(o))||o<0||o>1)&&(o=1),o}function bound01(o,a){isOnePointZero(o)&&(o="100%");var y=isPercentage(o);return(o=Math.min(a,Math.max(0,parseFloat(o))),y&&(o=parseInt(o*a,10)/100),1e-6>Math.abs(o-a))?1:o%a/parseFloat(a)}function clamp01(o){return Math.min(1,Math.max(0,o))}function parseIntFromHex(o){return parseInt(o,16)}function isOnePointZero(o){return"string"==typeof o&&-1!=o.indexOf(".")&&1===parseFloat(o)}function isPercentage(o){return"string"==typeof o&&-1!=o.indexOf("%")}function pad2(o){return 1==o.length?"0"+o:""+o}function convertToPercentage(o){return o<=1&&(o=100*o+"%"),o}function convertDecimalToHex(o){return Math.round(255*parseFloat(o)).toString(16)}function convertHexToDecimal(o){return parseIntFromHex(o)/255}var en=(P="[\\s|\\(]+("+(E="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+E+")[,|\\s]+("+E+")\\s*\\)?",A="[\\s|\\(]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")[,|\\s]+("+E+")\\s*\\)?",{CSS_UNIT:new RegExp(E),rgb:RegExp("rgb"+P),rgba:RegExp("rgba"+A),hsl:RegExp("hsl"+P),hsla:RegExp("hsla"+A),hsv:RegExp("hsv"+P),hsva:RegExp("hsva"+A),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function isValidCSSUnit(o){return!!en.CSS_UNIT.exec(o)}function stringInputToObject(o){o=o.replace(j,"").replace(B,"").toLowerCase();var a,y=!1;if(q[o])o=q[o],y=!0;else if("transparent"==o)return{r:0,g:0,b:0,a:0,format:"name"};if(a=en.rgb.exec(o))return{r:a[1],g:a[2],b:a[3]};if(a=en.rgba.exec(o))return{r:a[1],g:a[2],b:a[3],a:a[4]};if(a=en.hsl.exec(o))return{h:a[1],s:a[2],l:a[3]};if(a=en.hsla.exec(o))return{h:a[1],s:a[2],l:a[3],a:a[4]};if(a=en.hsv.exec(o))return{h:a[1],s:a[2],v:a[3]};if(a=en.hsva.exec(o))return{h:a[1],s:a[2],v:a[3],a:a[4]};if(a=en.hex8.exec(o))return{r:parseIntFromHex(a[1]),g:parseIntFromHex(a[2]),b:parseIntFromHex(a[3]),a:parseIntFromHex(a[4])/255,format:y?"name":"hex8"};if(a=en.hex6.exec(o))return{r:parseIntFromHex(a[1]),g:parseIntFromHex(a[2]),b:parseIntFromHex(a[3]),format:y?"name":"hex"};if(a=en.hex4.exec(o))return{r:parseIntFromHex(a[1]+""+a[1]),g:parseIntFromHex(a[2]+""+a[2]),b:parseIntFromHex(a[3]+""+a[3]),a:parseIntFromHex(a[4]+""+a[4])/255,format:y?"name":"hex8"};return!!(a=en.hex3.exec(o))&&{r:parseIntFromHex(a[1]+""+a[1]),g:parseIntFromHex(a[2]+""+a[2]),b:parseIntFromHex(a[3]+""+a[3]),format:y?"name":"hex"}}function validateWCAG2Parms(o){var a,y;return a=((o=o||{level:"AA",size:"small"}).level||"AA").toUpperCase(),y=(o.size||"small").toLowerCase(),"AA"!==a&&"AAA"!==a&&(a="AA"),"small"!==y&&"large"!==y&&(y="small"),{level:a,size:y}}var color_makeColorString=function(o){return"rgba("+o.rgb.r+","+o.rgb.g+","+o.rgb.b+","+o.rgb.a+")"},color_makeColorObject=function(o){void 0===o&&(o="#000000");var a,y=null!==(a=o)&&void 0!==a&&a.hex?tinycolor(o.hex):tinycolor(o),E=y.toHsl(),P=y.toHsv(),A=y.toRgb(),j=y.toHex();return{hsl:E,hex:"000000"===j&&0===A.a?"transparent":"#".concat(j),rgb:A,hsv:P,oldHue:E.h,source:"rgb"}}},40203:function(){window.initializeAhoy=function(){if(!window.ENVIRONMENT||!window.APP_MODEL){setTimeout(function(){window.initializeAhoy()},1e3);return}!function(o){"use strict";var a,y,E={urlPrefix:"",visitsUrl:counterUri()+"/"+APP_MODEL.meta.id,eventsUrl:counterUri()+"/ahoy/events",cookieDomain:null,page:null,platform:"Web",useBeacon:!1,startOnReady:!0},P=o.ahoy||o.Ahoy||{};P.configure=function(o){for(var a in o)o.hasOwnProperty(a)&&(E[a]=o[a])},P.configure(P);var A=o.jQuery||o.Zepto||o.$,j=!1,B=[],q="undefined"!=typeof JSON&&void 0!==JSON.stringify,et=[];function visitsUrl(){return E.urlPrefix+E.visitsUrl}function eventsUrl(){return E.urlPrefix+E.eventsUrl}function canTrackNow(){return(E.useBeacon||E.trackNow)&&q&&void 0!==o.navigator.sendBeacon}function destroyCookie(o){setCookie(o,"",-1)}function log(a){getCookie("ahoy_debug")&&o.console.log(a)}function setReady(){for(var o;o=B.shift();)o();j=!0}function ready(o){j?o():B.push(o)}function generateId(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(o){var a=16*Math.random()|0;return("x"==o?a:3&a|8).toString(16)})}function saveEventQueue(){q&&o.setCookie("ahoy_events",JSON.stringify(et),1)}function csrfToken(){return o.getCookie("X-CSRF-Token")}function csrfParam(){return A("meta[name=csrf-param]").attr("content")}function CSRFProtection(o){var a=csrfToken();a&&o.setRequestHeader("X-CSRF-Token",a)}function sendRequest(o,a,y){q&&A.ajax({type:"POST",url:o,data:JSON.stringify(a),contentType:"application/json; charset=utf-8",dataType:"json",beforeSend:CSRFProtection,success:y})}function eventData(o){var a={events:[o],visit_token:o.visit_token,visitor_token:o.visitor_token};return delete o.visit_token,delete o.visitor_token,a}function trackEvent(o){ready(function(){})}function trackEventNow(o){ready(function(){var a=eventData(o),y=csrfParam(),E=csrfToken();y&&E&&(a[y]=E);var P=new Blob([JSON.stringify(a)],{type:"application/json; charset=utf-8"});navigator.sendBeacon(eventsUrl(),P)})}function page(){return E.page||o.location.pathname}function eventProperties(o){var a=A(o.currentTarget);return{tag:a.get(0).tagName.toLowerCase(),id:a.attr("id"),class:a.attr("class"),page:page(),section:a.closest("*[data-section]").data("section")}}function isScreenshotWorker(o){return!(o.length<1)&&"true"===new URLSearchParams(o).get("screenshot")}function createVisit(){j=!1,a=P.getVisitId(),y=P.getVisitorId();if(!a&&(a=generateId(),o.setCookie("ahoy_visit",a,.5)),o.getCookie("ahoy_visit")){log("Visit started"),!y&&(y=generateId()),o.setCookie("ahoy_visitor",y,730);var A=o.APP_MODEL.meta.id,B={visit_token:a,visitor_token:y,platform:E.platform,landing_page:o.location.href,screen_width:o.screen.width,screen_height:o.screen.height,app_id:o.APP_MODEL.meta.id,user_id:o.APP_MODEL.meta.user_id,is_unique:void 0===o.getCookie("ahoy_unique_".concat(A))};if(void 0===o.getCookie("ahoy_unique_".concat(A))&&o.setCookie("ahoy_unique_".concat(A),!0,.5),document.referrer.length>0&&(B.referrer=document.referrer),log(B),o.location.href.match(/plugins\/.*\/standalone/)||isScreenshotWorker(o.location.search))return;!o.getCookie("editables")&&sendRequest(visitsUrl(),B,setReady)}else log("Cookies disabled"),setReady()}P.getVisitId=P.getVisitToken=function(){return getCookie("ahoy_visit")},P.getAppId=P.getVisitToken=function(){return o.APP_MODEL.meta.id},P.getVisitorId=P.getVisitorToken=function(){return getCookie("ahoy_visitor")},P.reset=function(){return destroyCookie("ahoy_visit"),destroyCookie("ahoy_visitor"),destroyCookie("ahoy_events"),destroyCookie("ahoy_track"),!0},P.debug=function(o){return!1===o?destroyCookie("ahoy_debug"):setCookie("ahoy_debug","t",525600),!0},P.track=function(o,a){var y={id:generateId(),name:o,properties:a||{},time:new Date().getTime()/1e3};A(function(){log(y)}),ready(function(){!P.getVisitId()&&createVisit(),y.visit_token=P.getVisitId(),y.visitor_token=P.getVisitorId(),y.app_id=P.getAppId(),canTrackNow()?trackEventNow(y):(et.push(y),saveEventQueue(),setTimeout(function(){trackEvent(y)},1e3))})},P.trackView=function(a){var y={url:o.location.href,title:document.title,page:page()};if(a)for(var E in a)a.hasOwnProperty(E)&&(y[E]=a[E]);P.track("$view",y)},P.trackClicks=function(){A(document).on("click","a, button, input[type=submit]",function(o){var a=A(o.currentTarget),y=eventProperties(o);y.text="input"==y.tag?a.val():A.trim(a.text().replace(/[\s\r\n]+/g," ")),y.href=a.attr("href"),P.track("$click",y)})},P.trackSubmits=function(){A(document).on("submit","form",function(o){var a=eventProperties(o);P.track("$submit",a)})},P.trackChanges=function(){A(document).on("change","input, textarea, select",function(o){var a=eventProperties(o);P.track("$change",a)})},P.trackAll=function(){!o.location.href.match(/plugins\/.*\/standalone/)&&(P.trackView(),P.trackClicks(),P.trackSubmits(),P.trackChanges())};try{et=JSON.parse(getCookie("ahoy_events")||"[]")}catch(o){}for(var en=0;ener});var E=y("88404"),chameleon_loadChameleon=function(o,a){var y={type:"GET",url:"".concat(E.CHAMELEON_ENDPOINT[window.ENVIRONMENT],"?url=").concat(o)};window.ajaxController(y,a)},P=y("61409"),A=y("21286"),j=y("82186"),B=y("26651"),q=y("15937"),string_helper_getParsedString=function(o){var a=o.string,y=o.separator,E="string"==typeof a&&a.length>0,P="string"==typeof y;return E&&P?a.replace(/([a-z])([A-Z])/g,"$1".concat(y,"$2")).replace(/[\s_-]+/g,y).toLowerCase():null};function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}var et=["key","label","debugMode"];function ownKeys(o,a){var y=Object.keys(o);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(o);a&&(E=E.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),y.push.apply(y,E)}return y}function _objectSpread(o){for(var a=1;ao.length)&&(a=o.length);for(var y=0,E=Array(a);yy&&a.shift()}},{key:"saveChange",value:function(o,a){var y=this.getStack(a);y.push(o),this.manageStackLimit(a,y),this.saveStack(a,y)}},{key:"performChange",value:function(o){var a="undo"===o?"undo":"redo",y=this.getStack(a);if(0===y.length)return null;var E=y.pop();return this.saveStack(a,y),this.saveChange(E,"undo"===o?"redo":"undo"),E}},{key:"removeKey",value:function(o,a){Array.isArray(o)?o.splice(a,1):delete o[a]}},{key:"isNestedObjectUpdate",value:function(o,a){return void 0===o[a]&&"object"===undo_redo_helper_typeof(o)&&null!==o}},{key:"isNestedObject",value:function(o,a,y){var E=this,P="undo"===y?"original":"modified",A=!1;return Object.entries(a).forEach(function(o){var a=_slicedToArray(o,2),y=(a[0],a[1]);if(E.isNestedObjectUpdate(y,P)){if(y.keyShouldBeRemoved)return;A=!0}}),A}},{key:"updateAttributes",value:function(o,a,y){var E=this,P="undo"===y?"original":"modified";Object.entries(a).forEach(function(a){var A=_slicedToArray(a,2),B=A[0],q=A[1];if(E.isNestedObjectUpdate(q,P)){if(q.keyShouldBeRemoved){E.removeKey(o,B);return}E.updateAttributes(o[B],q,y)}else if(o[B]=q[P],(0,j.isNonReactifiedApp)()){var et=$("[name=".concat(B,"]"));"checkbox"==et.attr("type")?et.prop("checked",q[P]).trigger("forceUpdateComponent"):et.siblings('div[powr-react="PowrSlider"]').length>0?et.val(parseInt(q[P],10)).trigger("forceUpdateComponent"):et.val(q[P]).trigger("forceUpdateComponent"),window&&window.APP_SETTINGS&&"function"==typeof window.APP_SETTINGS.updateConditionals&&window.APP_SETTINGS.updateConditionals()}})}},{key:"undoRedoChange",value:function(o,a){var y=this.performChange(o);if(y){window.UNDO_REDO_CLICKED=!0;var E=this.isNestedObject(a.attributes,y,o);this.updateAttributes(a.attributes,y,o),a.triggerChange(),(0,j.isNonReactifiedApp)()?setTimeout(function(){E&&window.APP_SETTINGS.render()},500):window.APP_SETTINGS.observableStore.forceUpdate(),gtag_helper_gtagHelper({key:"undo_redo_click",label:"#app_type:".concat(window.META.app_type," #type:").concat(o)})}}},{key:"shouldRemoveKey",value:function(o,a){return null!=o&&null==a||null==o&&null!=a||void 0!==o&&void 0===a||void 0===o&&void 0!==a}},{key:"isNestedObjectFind",value:function(o,a){return"object"===undo_redo_helper_typeof(o)&&null!==o&&"object"===undo_redo_helper_typeof(a)&&null!==a}},{key:"getAttributesKeys",value:function(o,a){return new Set([].concat(_toConsumableArray(Object.keys(o)),_toConsumableArray(Object.keys(a))))}},{key:"findChangedAttributes",value:function(o,a){var y=this,E={};return this.getAttributesKeys(o,a).forEach(function(P){if(!["isPreset","locals","passwords","rawResponseTimestamp"].includes(P)){var A=o[P],j=a[P],B=null!=A?A:"",q=null!=j?j:"";if(y.isNestedObjectFind(A,j)){var et=y.findChangedAttributes(A,j);Object.keys(et).length>0&&(E[P]=et)}else B!==q&&(E[P]={original:A,modified:j},y.shouldRemoveKey(A,j)&&(E[P].keyShouldBeRemoved=!0))}}),E}},{key:"setOrUpdateOriginalAttributes",value:function(o){o.original_attributes=structuredClone(o.attributes)}},{key:"clearRedo",value:function(){this.saveStack("redo",[])}},{key:"disableButton",value:function(o){var a=document.getElementById(o);a.style.cursor="not-allowed",a.firstElementChild.style.color="#A0ABBE"}},{key:"enableButton",value:function(o){var a=document.getElementById(o);a.style.cursor="pointer",a.firstElementChild.style.color="#354051"}},{key:"enableOrDisableButtons",value:function(){try{if("undefined"==typeof window||(0,j.isWix)(window.CURRENT_USER))document.getElementById("undoIcon")&&(document.getElementById("undoIcon").style.display="none"),document.getElementById("redoIcon")&&(document.getElementById("redoIcon").style.display="none");else{var o=this.getStack("undo");Array.isArray(o)&&o.length>0?this.enableButton("undoIcon"):this.disableButton("undoIcon");var a=this.getStack("redo");Array.isArray(a)&&a.length>0?this.enableButton("redoIcon"):this.disableButton("redoIcon")}}catch(o){document.getElementById("undoIcon")&&(document.getElementById("undoIcon").style.display="none"),document.getElementById("redoIcon")&&(document.getElementById("redoIcon").style.display="none")}}}])}();function base_model_slicedToArray(o,a){return base_model_arrayWithHoles(o)||base_model_iterableToArrayLimit(o,a)||base_model_unsupportedIterableToArray(o,a)||base_model_nonIterableRest()}function base_model_nonIterableRest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function base_model_unsupportedIterableToArray(o,a){if(o){if("string"==typeof o)return base_model_arrayLikeToArray(o,a);var y=({}).toString.call(o).slice(8,-1);return"Object"===y&&o.constructor&&(y=o.constructor.name),"Map"===y||"Set"===y?Array.from(o):"Arguments"===y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?base_model_arrayLikeToArray(o,a):void 0}}function base_model_arrayLikeToArray(o,a){(null==a||a>o.length)&&(a=o.length);for(var y=0,E=Array(a);y-1||a.indexOf("WixColor")>-1))continue;o[a]=META.default_overrides[a]}}if("wix"==HOST){if(o.pluginWidth="1000px","photoEditor"==META.app_namespace)o.imageUrl=o.imageUrl.replace(".jpg","_wix.jpg");else if("map"==META.app_namespace&&"v4"!=window.GLOBALS.TIERS){var y=o.locations[0];o.locations=[],o.locations.push(y)}}return o},urlRoot:"/apps/",initialize:function(){this.checkContentForChanges(),!this.hasOwnProperty("isPreset")&&this.set({isPreset:!0},{silent:!0}),this.setLocals({render_style_only:null}),this.set({id:META.id}),this.afterInitialize&&this.afterInitialize()},triggerChange:function(){var o=this,a=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if((0,j.isNonReactifiedApp)()&&"undefined"!=typeof window&&void 0!==window.SIMPLE_COPIES_DICTIONARY&&window.META.is_standalone&&(0,j.undoRedoAllowedApp)(this.meta.app_namespace)&&"function"==typeof structuredClone&&(0,j.canUseLocalStorage)()&&!(0,j.isWix)()){var y=new en(this.id);if(!this.original_attributes&&y.setOrUpdateOriginalAttributes(this),window.UNDO_REDO_CLICKED)window.UNDO_REDO_CLICKED&&(y.setOrUpdateOriginalAttributes(this),window.UNDO_REDO_CLICKED=!1);else{var E=y.findChangedAttributes(this.original_attributes,this.attributes);Object.keys(E).length&&(y.saveChange(E,"undo"),y.setOrUpdateOriginalAttributes(this),y.clearRedo())}setTimeout(function(){y.enableOrDisableButtons()},500)}coloredDebugText("TriggerChange called","green");var triggerWixViewRendering=function(){Wix.Settings.triggerSettingsUpdatedEvent(o.attributes,Wix.Utils.getOrigCompId())};"undefined"!=typeof APP_SETTINGS&&(0,q.QV)()?(triggerWixViewRendering(),this.setLocals({render_style_only:null})):"weebly"==HOST||"undefined"!=typeof INPAGE&&INPAGE?window.setLocalStorage("powr_data_"+this.meta.id,JSON.stringify({content:this.attributes,meta:this.meta})):"cloudflare"==META.external_id_type?(window.setLocalStorage("powr_data_"+this.meta.id,JSON.stringify({content:this.attributes,meta:this.meta})),this.trigger("change")):"wordpress"==HOST?!_.isEmpty(POWR_RECEIVERS)&&(POWR_RECEIVERS[0].receiver.postMessage(JSON.stringify({message:"update",data:{content:this.attributes}}),POWR_RECEIVERS[0].url),this.setLocals({render_style_only:null})):(0,q.ZM)()?(this.trigger("change"),triggerWixViewRendering()):this.trigger("change"),a&&this.isDirtyWithCookie()},updateWixStyles:function(){var o=this;"undefined"==typeof WIX_COLOR_CHANGE_TIMER?(o._updateWixStyles(),window.WIX_COLOR_CHANGE_TIMER=setTimeout(function(){},0)):(clearTimeout(WIX_COLOR_CHANGE_TIMER),window.WIX_COLOR_CHANGE_TIMER=setTimeout(function(){o._updateWixStyles()},500))},_updateWixStyles:function(){function parseWixUrl(o){return"undefined"!=typeof Wix?o=(o=o.replace(/^http.+?(static\.wix\.com|static\.wixstatic\.com)\/media\/.+?srz$/i,function(o){return o=(o=(o=o.substring(o.indexOf("media/")+6)).substring(0,o.indexOf(".")+4)).replace(".jpe",".jpeg"),Wix.Utils.Media.getResizedImageUrl(o,1200,1200)})).replace(/src="http.+?(static\.wix\.com|static\.wixstatic\.com)\/media\/.+?srz"/gi,function(o){return o=(o=(o=(o=(o=o.replace(/"/g,"")).replace("src=","")).substring(o.indexOf("media/")+6)).substring(0,o.indexOf(".")+4)).replace(".jpe",".jpeg"),'src="'+Wix.Utils.Media.getResizedImageUrl(o,1200,1200)+'"'}):o}for(var o in this.attributes){if(o.search("ColorWix")>-1){var a=this.attributes[o];if(null==a||0==a.length)continue;var y=o.replace("Wix",""),E=Wix.Styles.getSiteColors(),P=_.findWhere(E,{reference:a}),j=P&&(0,A.f)(P.value);if(void 0!=j){var B=(0,A.f)(this.attributes[y]);this.attributes[y]=(0,A.Z)(j),void 0!==B.rgb.a&&(j.rgb.a=B.rgb.a,this.attributes[y]=(0,A.Z)(j))}}if("string"==typeof this.attributes[o])this.attributes[o]=parseWixUrl(this.attributes[o]);else for(var q in this.attributes[o])if("string"==typeof this.attributes[o][q])this.attributes[o][q]=parseWixUrl(this.attributes[o][q]);else for(var et in this.attributes[o][q])if("string"==typeof this.attributes[o][q][et])this.attributes[o][q][et]=parseWixUrl(this.attributes[o][q][et]);else for(var en in this.attributes[o][q][et])if("string"==typeof this.attributes[o][q][et][en])this.attributes[o][q][et][en]=parseWixUrl(this.attributes[o][q][et][en]);else for(var er in this.attributes[o][q][et][en])"string"==typeof this.attributes[o][q][et][en][er]&&(this.attributes[o][q][et][en][er]=parseWixUrl(this.attributes[o][q][et][en][er]))}"undefined"!=typeof APP_VIEW&&(debug()("Rendering view from _updateWixStyles"),APP_VIEW.render())},loadChameleonToModel:function(){var o=this.chameleonMapper||{};try{for(var a in o){var y=o[a].split("."),E=base_model_slicedToArray(y,2),P=E[0],A=E[1],j=this.meta.chameleon[P][A],B=this.get(a),q={};if(B===j||null===j)return;q[a]=j,this.set(q,{silent:!0})}}catch(o){debug()(o)}this.hasChanged()&&this.triggerChange()},getChameleon:function(o,a,y){var A=this,j=new CustomEvent("loadingChameleonEvent",{detail:POWr.simpleCopies("general.chameleon.hold_tight")}),B=new CustomEvent("hideLoadingChameleon");document.dispatchEvent(j);chameleon_loadChameleon(o,function(o){if(o&&o.design&&o.design.backgroundPallet&&o.design.backgroundPallet.length>0){A.meta.chameleon=o.design,A.loadChameleonToModel(),A.setLocals({renderSettings:!0}),A.triggerChange();try{var j=_.intersection(o.design.fontFamilies,E.ALL_GOOGLE_FONTS);(0,P.G_)(j),a()}catch(o){console.error(o)}}else y(POWr.simpleCopies("app_settings.smart_design.error"));document.dispatchEvent(B)})},applyTheme:function(o,a){var y=this.themeMapper||{};for(var E in y)if(y[E]&&void 0!==o[E]){var P=y[E];this.attributes[P]=o[E]}if("wix"==HOST){var A=this.themeMapperWix||{};for(var j in y)if(A[j]&&o[j]){var B=A[j];this.attributes[B]=""}}if(_.isEmpty(y))for(var q in o)this.attributes[q]=o[q];window.APP_SETTINGS.observableStore.updateValue({key:"model.appTheme",value:a,refreshSettings:!0})},setLocals:function(o){var a=this.get("locals");for(var y in void 0==a&&(a={}),o)a[y]=o[y];this.set({locals:a},{silent:!0})},createUnublishedContentCookie:function(){var o=this.meta.app_type,a=this.meta.id;try{var y=JSON.parse(getCookie("unpublished_content"))}catch(o){var y={}}y[o]=a,setCookie("unpublished_content",JSON.stringify(y),365)},destroyUnublishedContentCookie:function(){var o=this.meta.app_type;try{var a=JSON.parse(getCookie("unpublished_content"))}catch(o){var a={}}delete a[o],setCookie("unpublished_content",JSON.stringify(a),365)},isDirtyWithCookie:function(){coloredDebugText("Creating unpublished content cookie","green"),this.createUnublishedContentCookie(),this.setLocals({isDirty:!0,isChangedFromDefault:!0}),window.updateEditTopbarState&&window.updateEditTopbarState("hasUnpublishedChanges",!0)},isDirtyNoMoreWithCookie:function(){debug()("Destroying unpublished content cookie"),this.destroyUnublishedContentCookie(),this.setLocals({isDirty:!1}),window.updateEditTopbarState&&window.updateEditTopbarState("hasUnpublishedChanges",!1)},setPresets:function(o,a){},doSave:function(o){this.beforeDoSave&&this.beforeDoSave();var a=this;if(!(0,j.isNonReactifiedApp)()&&"undefined"!=typeof window&&void 0!==window.SIMPLE_COPIES_DICTIONARY&&window.META.is_standalone&&(0,j.undoRedoAllowedApp)(a.meta.app_namespace)&&"function"==typeof structuredClone&&(0,j.canUseLocalStorage)()&&!(0,j.isWix)()){var E=new en(a.id);if(!a.original_attributes&&E.setOrUpdateOriginalAttributes(a),window.UNDO_REDO_CLICKED)window.UNDO_REDO_CLICKED&&(E.setOrUpdateOriginalAttributes(a),window.UNDO_REDO_CLICKED=!1);else{var P=E.findChangedAttributes(a.original_attributes,a.attributes);Object.keys(P).length&&(E.saveChange(P,"undo"),E.setOrUpdateOriginalAttributes(a),E.clearRedo())}E.enableOrDisableButtons()}if(void 0===o&&(o={}),o.settings)var A=o.settings;else var A="undefined"==typeof APP_SETTINGS?null:APP_SETTINGS;if(!o.powr_published&&this.meta.admin&&this.meta.is_standalone)return debug()("Admin user - Blocking autosave"),!1;if(this.attributes.lockAppSaving&&!o.overrideLock)return alert("This app is locked from Saving"),!1;if(window.updateEditTopbarState&&window.updateEditTopbarState("showSaving",!0),j.isPlatform&&window.parent.postMessage({message:"saving"},"*"),A){debug()("Saving with settings");var q=A.$el.find(".saveButton");A.$el.find(".saveSuccess");var et=A.$el.find(".saveFailure");A.$el.find(".saving"),q.toggleButton();var er=new B.P(et);er.clearErrors()}function autoSave(){debug()("Save fail. Trying to save again in "+AUTO_SAVE_TIME),"undefined"==typeof AUTO_RESAVE||clearTimeout(AUTO_RESAVE),window.AUTO_RESAVE=setTimeout(function(){a.doSave(o)},AUTO_SAVE_TIME)}window.AUTO_SAVE_TIME="undefined"==typeof AUTO_SAVE_TIME?1e3:1.1*AUTO_SAVE_TIME;var eo=o.dimensions?o.dimensions:function(){},ea=jQuery.extend(!0,{},a.attributes,eo()),es=ea.locals.additionalActions||null;delete ea.additionalActions,delete ea.locals,delete ea.isPreset,delete ea.colorPreset,delete ea.fontPreset,delete ea.designPreset,delete ea.designPresetCategory,delete ea.passwords,delete ea.id;var el={content:JSON.stringify(ea),additionalActions:JSON.stringify(es),passwords:JSON.stringify(a.get("passwords")),original_query:originalQuery(),app_type:a.meta.app_type,view_mode:a.meta.view_mode,alias:a.meta.alias,unique_label:a.meta.unique_label,powr_published:o.powr_published||!a.meta.is_standalone,host:window.HOST};if(void 0!=o.post_params)for(var eu in o.post_params)el[eu]=o.post_params[eu];var ed="/apps/"+a.meta.true_id+".json";debug()("posting to url "+ed),window.ajaxController({url:ed,data:el,type:"PUT"},(function(E){if(debug()("Save response: ",E),E&&E.success){a.meta.saved=!0,a.meta.content_updated_at=E.meta.content_updated_at,a.meta.screenshot_updated_at=E.meta.screenshot_updated_at;var P=new CustomEvent("contentAndScreenshotUpdatedEvent");document.dispatchEvent(P),debug()("Update success! Model:",a,"Response:",E);setTimeout(function(){window.updateEditTopbarState&&window.updateEditTopbarState("showSaving",!1)},4e3),E.published?(a.isDirtyNoMoreWithCookie(),a.setLocals({isPublished:!0}),debug()("!!!!!!!!!!!!!!!!!!!! Cookie Should Be Destroyed!")):(a.setLocals({isDirty:!1}),a.setLocals({isPublished:!1})),A&&(q.toggleButton(),A.animateSaveButton(),A.updateSaveStatus(),window.updateEmbedCode(A),("wix"==HOST||"weebly"==HOST||"wordpress"==HOST)&&(A.$el.find(".saveStatus .savingStatus").hide(),A.$el.find(".saveStatus .savedStatus").show(),setTimeout(function(){A.$el.find(".saveStatus .savedStatus").fadeOut("fast")},1e3))),this.afterDoSave&&this.afterDoSave(E),o.callback&&o.callback(E),j.isPlatform&&window.parent.postMessage({message:"saved"},"*")}else{if(Promise.all([y.e("1959"),y.e("8612")]).then(y.bind(y,60663)).then(function(o){return o.toastify({message:POWr.simpleCopies("app_settings.error.app_save_failed"),type:"failure",icon:"exclamation",allowMultipleToasts:!1})}),debug()("UH OH...trouble saving!"),A){if(E)for(var B in E.errors)er.addError(E.errors[B]);q.toggleButton(),er.displayErrors()}autoSave()}}).bind(this))},checkContentForChanges:function(){var o=META||{},a=o.id,y=o.app_type,E=o.saved,P=this.hasUnpublishedContent(a,y);(E||P)&&this.setLocals({isChangedFromDefault:!0})},hasUnpublishedContent:function(o,a){var y=window.getCookie("unpublished_content");if(!y)return!1;var E=JSON.parse(y);return E[a]&&E[a]===o}})},18509:function(o,a,y){"use strict";y.d(a,{Z:()=>ea});var E=y("61409");function _extends(){return(_extends=Object.assign?Object.assign.bind():function(o){for(var a=1;ao.length)&&(a=o.length);for(var y=0,E=Array(a);y0||$(o.target).hasClass("popover"),y=$(o.target).parents(".triggerPremium").length>0||$(o.target).hasClass("triggerPremium");if(!a||!!y){var E=$(o.target).parents(".premium"),P=$(o.target).hasClass("premium")?$(o.target):[],A=$(".premium").not(E[0]).not(P[0]);A.popover("hide"),A.next(".popover").hide()}}};window.updatePremiumContent=function(o){var a=[],y=o.premium_status||"free",E=o.backbone_settings?o.backbone_settings.$el:$(document),en=(0,P.isInUsageBasedV2App)(),er=en?q.ZY:q.z5,eo=o.app_type||null;function setPopover(E){if(E.data("upgrade-text")&&window.POPOVER&&"new"==window.POPOVER){var P="
"+E.data("upgrade-text")+"
";E.data("upgrade-author")&&(P=P+"
"+E.data("upgrade-author")+"
");try{var A=E.data("premium-status");A="enterprise"==A?"Business":window.capitalizeFirstLetter(A)}catch(o){var A=""}j="Upgrade to Unlock this "+A+" Feature!"}else{P=a[Math.floor(Math.random()*a.length)];var j,P,B,q=E.data(),en={premium:a[0],pro:a[1],enterprise:a[2],v_2500:a[0],v_5000:a[1],v_25000:a[2]};q.premiumStatus&&!1===E.hasClass("upgradeMsg")?["premium","pro","enterprise","v_2500","v_5000","v_25000"].includes(q.premiumStatus)&&(P=en[q.premiumStatus]):(q.premiumLimit||!0===E.hasClass("upgradeMsg"))&&["free","premium","pro","v_2500","v_5000","v_25000"].includes(y)&&(P=en[findNextPremiumStatusByLimit(y,q)]),q.premiumStatus?(j=POWr.simpleCopies("components.upgrade_modal.title",{premium_status:et[q.premiumStatus]}),E.hasClass("upgradeMsg")&&("free"==y?B="premium":"premium"==y?B="pro":"pro"==y&&(B="enterprise"),j=POWr.simpleCopies("components.upgrade_modal.title",{premium_status:et[B]}),P=en[B])):j=q.freeLimit||q.premiumLimit||q.proLimit?POWr.simpleCopies("components.upgrade_modal.title",{premium_status:et[findNextPremiumStatusByLimit(o.premium_status,q)]}):POWr.simpleCopies("components.upgrade_popover.upgrade_required")}if(-1!=["microblog","socialFeed","faq","jobBoard","map","menu","socialMediaIcons","tabs"].indexOf(o.app_namespace)){var er=!1;if(E.hasClass("add")){var j=E.data("limit-title"),ea=E.data("freeLimit"),es=E.data("premiumLimit"),el=E.data("proLimit"),eu=E.data("limit-type");er=!0}if(E.parents(".multiAdd").length>0){var j=E.parents(".multiAdd").data("limit-title"),ea=E.parents(".multiAdd").data("free-limit"),es=E.parents(".multiAdd").data("premium-limit"),el=E.parents(".multiAdd").data("pro-limit"),eu=E.parents(".multiAdd").data("limit-type");er=!0}if(!0==er)switch(o.premium_status){case"free":P=" You have reached your "+ea+" "+eu+". Upgrade to unlock more.";break;case"premium":P=" You have reached your "+es+" "+eu+". Upgrade to unlock more.";break;case"pro":P=" You have reached your "+el+" "+eu+". Upgrade to unlock more."}}"wix"==window.HOST&&-1!=_.indexOf(["premium","pro","enterprise"],y)&&-1!=_.indexOf(["poll","mailingList","contactForm"],eo)?(P=(P=a[Math.floor(Math.random()*a.length)])+'",j=POWr.simpleCopies("feature_not_available")):P="

"+P+'

Upgrade Now
',"wix"==window.HOST&&(P+=POWr.simpleCopies("components.upgrade_popover.wix_alert")),E.attr("title",$(""+j+"").text()),E.popover({content:P,title:j,html:!0,placement:function(o,a){return $(a).offset().top<300?"bottom":"top"}})}function findNextPremiumStatusByLimit(o,a){var y=a.freeLimit,E=a.premiumLimit,P=a.proLimit;switch(o){case"free":if(void 0!==E&&(void 0===y||E>y))return"premium";if(void 0!==P&&(void 0===y||P>y))return"pro";return"enterprise";case"premium":if(void 0!==P&&(void 0===E||P>E))return"pro";return"enterprise";case"pro":return"enterprise"}}function disableElement(o,a){if("socialFeed"!=META.app_namespace&&(o.addClass("premium"),o.find(".premiumImg").show(),o.find("input, textarea, select").toggleClass("ignore",!0),o.is('option, [type="radio"]')&&o.prop("disabled",!0),o.find('select option, input[type="text"], textarea, input[type="checkbox"]:not(".input-switch"), input[type="radio"]').prop("disabled","disabled"),o.data("upgrade-text")&&o.attr("title",o.data("upgrade-text")),".modWrapper"===o.data("add-target")&&!0===a?setUpgrade(o):"modal"===o.data("notification")?upgradePopupModal(o):setPopover(o),o.hasClass("sliderWrapper")))try{o.find(".slider").slider("disable")}catch(o){}}function enableElement(a){if(a.removeClass("premium"),a.find(".premiumImg").hide(),a.find("input, textarea, select").toggleClass("ignore",!1),a.is("option")&&a.prop("disabled",!1),a.find('select option, input[type="text"], textarea, input[type="checkbox"], input[type="radio"], textarea').prop("disabled",!1),a.find('[force-disable="true"]').prop("disabled",!0),a.tooltip("destroy"),a.popover("destroy"),a.attr("title",a.data("help-text")),".modWrapper"===a.data("add-target")&&unsetUpgrade(a),a.hasClass("sliderWrapper"))try{a.find(".slider").slider("enable")}catch(o){}o.trial_end,"free"!=a.data("premium-status")&&a.click(function(){!getCookie(eo+"_advanced_features_modal")&&($("#notify-advanced-feature-modal").modal("show"),setCookie(eo+"_advanced_features_modal",!0,7))})}function setUpgrade(a){var E=a.closest(".upgrade-head").data(y+"-limit");$("#myModalLabel .modal-title").addClass("hid");var P=o.backbone_settings.formElementsModalReact;P&&P.state.showLimit!==E?P.setState({showLimit:E}):($("#myModalLabel .planLimit").html(E),$("#myModalLabel .modal-upgrade").removeClass("hid"),$("#myModalLabel").closest(".modal-header").addClass("scheme-1"))}function unsetUpgrade(a){var E=o.backbone_settings.formElementsModalReact,P=a.closest(".upgrade-head").data(y+"-limit");E&&E.state.showLimit===P?E.setState({showLimit:-1}):($("#myModalLabel .modal-title").removeClass("hid"),$("#myModalLabel .modal-upgrade").addClass("hid"),$("#myModalLabel").closest(".modal-header").removeClass("scheme-1"))}function handlePremiumStatus(){E.find("[data-premium-status]").each(function(){var o=$(this).data("premium-status");er.indexOf(o)>er.indexOf(y)?disableElement($(this),!1):enableElement($(this))})}function upgradePopupModal(o){$(o).click(function(){j.render(A.createElement(B.Z,{isOpen:!0,title:POWr.simpleCopies("components.upgrade_modal.title",{premium_status:window.capitalizeFirstLetter($(o).data("premium-status"))}),subTitle:POWr.simpleCopies("components.upgrade_modal.sub_title"),featureImage:"https://www.powrcdn.com/powrzilla/Email_Upgrade.gif",upgradeButtonText:POWr.simpleCopies("components.upgrade_modal.button_text")}),document.getElementById("upgrade-modal"))})}"wix"===window.HOST&&-1!=_.indexOf(["premium","pro","enterprise"],y)&&-1!=_.indexOf(["poll","mailingList","contactForm"],eo)?a=[POWr.simpleCopies("try_form_builder_plus")]:a="wix"===window.HOST?[POWr.simpleCopies("wix_premium_text_1"),POWr.simpleCopies("premium_text_2"),POWr.simpleCopies("premium_text_3")]:en?[POWr.simpleCopies("components.upgrade_popover.upgrade_to_2500"),POWr.simpleCopies("components.upgrade_popover.upgrade_to_5000"),POWr.simpleCopies("components.upgrade_popover.upgrade_to_25000")]:[POWr.simpleCopies("premium_text_1"),POWr.simpleCopies("premium_text_2"),POWr.simpleCopies("premium_text_3")],handlePremiumStatus(),E.find("[data-free-limit],[data-premium-limit],[data-pro-limit],[data-enterprise-limit],[data-v_250-limit],[data-v_500-limit],[data-v_2500-limit],[data-v_5000-limit],[data-v_10000-limit],[data-v_25000-limit],[data-v_50000-limit],[data-custom-limit]").each(function(){var o=$(this).data(y+"-limit");if(void 0!==o){if(".modWrapper"===$(this).data("add-target")){if($(".prototype-wrapper:not(.socialMediaIconsPowrMarkWrapper)").children(".powrDrilldown.prototype-element:not(.prototype)").length>0)var a=$(".prototype-wrapper").children(".powrDrilldown.prototype-element:not(.prototype)").length;else var a=$(".prototype-wrapper:not(.socialMediaIconsPowrMarkWrapper)").children(".prototype-element:not(.prototype)").length}else if($(this).hasClass("justforemail"))var a=$(".prototype-element:not(.prototype).ownerEmail").length;else var a=$(this).siblings(".prototype-wrapper:not(.socialMediaIconsPowrMarkWrapper)").children(".prototype-element:not(.prototype)").length;if(a>=o)$(this).hasClass("multiAdd")?$(this).find(".add").each(function(){disableElement($(this),!0)}):disableElement($(this),!0);else if($(this).hasClass("multiAdd"))$(this).find(".add").each(function(){enableElement($(this))});else{var E=$(this).data("premium-status");(er.indexOf(E)0&&window.doProactiveChat("js-pricing")},1e4)}return window.CURRENT_USER&&facebookEvent("track","AddToCart"),!1};function _defineProperty(o,a,y){return(a=_toPropertyKey(a))in o?Object.defineProperty(o,a,{value:y,enumerable:!0,configurable:!0,writable:!0}):o[a]=y,o}function _toPropertyKey(o){var a=_toPrimitive(o,"string");return"symbol"==_typeof(a)?a:a+""}function _toPrimitive(o,a){if("object"!=_typeof(o)||!o)return o;var y=o[Symbol.toPrimitive];if(void 0!==y){var E=y.call(o,a||"default");if("object"!=_typeof(E))return E;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(o)}function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}function base_view_slicedToArray(o,a){return base_view_arrayWithHoles(o)||base_view_iterableToArrayLimit(o,a)||base_view_unsupportedIterableToArray(o,a)||base_view_nonIterableRest()}function base_view_nonIterableRest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function base_view_unsupportedIterableToArray(o,a){if(o){if("string"==typeof o)return base_view_arrayLikeToArray(o,a);var y=({}).toString.call(o).slice(8,-1);return"Object"===y&&o.constructor&&(y=o.constructor.name),"Map"===y||"Set"===y?Array.from(o):"Arguments"===y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y)?base_view_arrayLikeToArray(o,a):void 0}}function base_view_arrayLikeToArray(o,a){(null==a||a>o.length)&&(a=o.length);for(var y=0,E=Array(a);y0?a.fadeOut("fast",proceedingFunction):proceedingFunction()},0);var a=new Date().getTime();if(o.model.on("change",function(){new Date().getTime()-a>=0&&(isSsrApp()&&(window.META.is_standalone||isWebComponentRenderedInRailsView())?o.renderSsr():o.render())}),$("#app-settings").length>0&&o.model.get("passwordProtectOn")&&!o.model.get("locals").passwordProtectSuccess){var y={url:"/apps/"+o.model.meta.id+"/content.json",data:{id:o.model.meta.id,method:"owner"},type:"POST"};window.ajaxController(y,function(a){if(a.success)for(var y in a.content)"undefined"!=a.content[y]&&o.model.set(y,a.content[y]);o.render()})}setTimeout(function(){(window.CURRENT_USER&&Object.keys(window.CURRENT_USER).length>0||["formBuilder","ecommerce","popup"].includes(o.model.meta.app_namespace))&&window.loadCrypto()},2e3),$(".previewSelectWrapper .items-list .desktopPreview").click(function(){o.changePreview("desktop"),o.model.setLocals({preview:"desktop"})}),$(".previewSelectWrapper .items-list .tabletPreview").click(function(){o.changePreview("tablet"),o.model.setLocals({preview:"tablet"})}),$(".previewSelectWrapper .items-list .mobilePreview").click(function(){o.changePreview("mobile"),o.model.setLocals({preview:"mobile"})}),(function(){$("#testing_tier_tier").val(this.model.meta.premium_status),$(document).on("change","#testing_tier_tier",function(){var a=$(this).val();return window.ajaxController({url:"/apps/"+o.model.meta.id+"/make-premium",data:{value:a},type:"PUT"},function(o){o.success&&location.reload()}),!1})}).bind(this)(),$(document).on("click",".admin-track-submitter-id-js",function(){o.model.set("trackUserId",$(".admin-track-submitter-id-js").is(":checked"))}),$(document).on("click",".admin-lock-app-js",function(){o.model.set("lockAppSaving",$(".admin-lock-app-js").is(":checked")),o.model.doSave({powr_published:!0,overrideLock:!0})}),$(document).on("click",".show-watermark-js",function(){o.model.set("adminShowPowrMark",$(".show-watermark-js").is(":checked")),o.model.doSave({powr_published:!0})}),this.detectWixUserPremiumStatus(),this.afterInitialize()},renderSsr:function(){var o,a;window.webcomponentProps=this.preparePropsForWebComponent(),null===(o=(a=window).webcomponentRender)||void 0===o||o.call(a),this.renderSsrCustomCss()},renderSsrCustomCss:function(){var o=this.model.get("customCSS"),a=(document.querySelector("web-component-standalone")||document.querySelector("web-component-wix-editor")).shadowRoot.querySelector("#__custom_styles_ssr");(null==o?void 0:o.trim().length)>0?a.innerHTML=""):a.innerHTML=""},detectWixUserPremiumStatus:function(){"wix"===window.HOST&&Wix.getAdsOnPage(function(o){var a=_.isEmpty(o)?"PAID":"FREE";if(window.setCookie("wix_premium_user",a),!window.META.external_data||!window.META.external_data.wix_site_status||window.META.external_data.wix_site_status!=a)window.ajaxController({url:"/apps/"+window.META.id+"/wix-site-status.json?"+window.originalQuery(),data:{value:a,app_type:window.META.app_type},type:"POST"})})},initializeModeChangeHandler:er,initializeOpenSettingsHandler:eo,changePreview:function(o){var a=!(arguments.length>1)||void 0===arguments[1]||arguments[1],y=this;window.analyticsEvent("standalone_click","change_preview_size",o),$("."+y.model.meta.app_namespace).fadeOut(),y.previewMode=o;var E={desktop:"100%",tablet:"768px",mobile:"360px"};["popup","countdownTimer"].includes(y.model.meta.app_namespace)&&y.model.setLocals({parent_window_width:E[o].replace("px","")}),$("#appView").css({width:E[o],transition:"0.4s"}),"countdownTimer"===y.model.meta.app_namespace&&"mobile"===o&&$("#appView").css({height:"600px"}),"desktop"===o?($("#appViewWrapper").removeClass("mobile-preview"),$("#appView").removeClass("center-mobile-preview"),$("#appView").removeClass("phone-preview")):($("#appViewWrapper").addClass("mobile-preview"),$("#appView").addClass("center-mobile-preview"),$("#appView").toggleClass("phone-preview","mobile"===o),"mobile"===o&&$("#appView").addClass("phone-preview")),$(".previewSelectWrapper .items-list .items-list__item").removeClass("active"),$(".previewSelectWrapper .items-list .".concat(o,"Preview.items-list__item")).addClass("active"),setTimeout(function(){a&&y.model.triggerChange(),$("."+y.model.meta.app_namespace).fadeIn()},400)},showMobileView:function(){return!0===window.isMobile()||"desktop"!==this.previewMode},beforeOrientationChange:function(){},afterOrientationChange:function(){},afterInitialize:function(){},showOrHideWatermarks:function(){this.showPowrWaterMark("wix"==window.HOST?"wix":"none",this.model.meta,this.$el.find(".powrMark, .markOfPowr")),this.model.meta.unclaimedWatermark&&_.isEmpty(window.CURRENT_USER)&&!this.model.meta.CURRENT_USER&&"wix"!==window.HOST?$(".js-unclaimed-watermark").fadeIn("fast"):$(".js-unclaimed-watermark").hide()},showFailedPaymentsOverlay:function(){!["wix","shopify"].includes(window.HOST)&&this.model.meta.failedPaymentsOverlay&&$(".js-failed-payments-overlay").fadeIn("fast")},showPOWROneTrialEndedOverlay:function(){!["wix","shopify"].includes(window.HOST)&&this.model.meta.powr_one_app_trial_ended_overlay&&$(".js-platform-trial-ended-overlay").fadeIn("fast")},showViewLimitReachedOverlay:function(){var o=this;this.model.meta.showLimitReachedOverlay&&document.querySelector(".js-view-limit-reached-overlay")&&Promise.all([Promise.resolve().then(y.t.bind(y,57689,19)),y.e("21").then(y.bind(y,6827)),y.e("6410").then(y.bind(y,78480))]).then(function(a){var y=base_view_slicedToArray(a,3),E=y[0],P=y[1].default;(0,y[2].renderReactComponent)(E.createElement(P,{frequency:o.model.meta.active_subscription_frequency}),".js-view-limit-reached-overlay")})},showPowrWaterMark:function(o,a,y){var E=this,P=(null==a?void 0:a.app_namespace)==="formBuilder",updateWatermarkField=function(o){return E.model.set("removePowrLogo",o)};!E.model.get("adminShowPowrMark")&&("wix"==o?"free"!=a.premium_status?(y.hide(),P&&updateWatermarkField(!0)):(this.showPowrMark(a,y),P&&updateWatermarkField(!1)):a.toothless&&!a.active_subscription?(this.showPowrMark(a,y),P&&updateWatermarkField(!1)):["free","v_250","v_500"].includes(a.premium_status)?(this.showPowrMark(a,y),P&&updateWatermarkField(!1)):(y.hide(),P&&updateWatermarkField(!0)))},showPowrMark:function(o,a){a.show(),o.is_standalone&&a.find(".js-watermark").click(handle_trigger_premium_click_handleTriggerPremiumClick)},hideIframesPowrWatermarks:function(){window.HIDE_WATERMARK_INTERVAL&&clearInterval(window.HIDE_WATERMARK_INTERVAL),window.HIDE_WATERMARK_INTERVAL=setInterval(function(){var o=$(".powrLoaded iframe");$(".powrMark",o.contents()).hide()},1e3),setTimeout(function(){clearInterval(window.HIDE_WATERMARK_INTERVAL)},15e3)},turnOnCssWatch:function(){var o=this;this.$el.csswatch({props:"width, height"}),this.$el.on("css-change",function(){void 0!==window.CSS_CHANGE_TIMER&&clearTimeout(CSS_CHANGE_TIMER),window.CSS_CHANGE_TIMER=setTimeout(function(){o.fitText(),o.postSizeToSocket()},200)})},turnOffCssWatch:function(){this.$el.off("css-change")},setMetaContent:function(){var o=this.model.meta.app_common_name+" by POWr - "+this.model.meta.id,a=this.model.meta.app_common_name;this.writeMetaContent(o,a)},writeMetaContent:function(o,a,y){o=void 0!==o&&o.length>0?truncate($(""+o+"").text(),160):this.model.meta.app_common_name,a=void 0!==a&&a.length>0?truncate($(""+a+"").text(),60):this.model.meta.app_common_name,y=void 0!==y&&y.length>0?y:pluginIcon(this.model.meta.app_type);var E=document.location.href,P=""+a+"";P+=''+('')+''+('')+('')+('')+''+('')+('')+(''),$("head").append(P)},template:function(){var o=this,a="#"+this.model.meta.app_namespace+"Template";return this.model.get("passwordProtectOn")&&!o.model.get("locals").passwordProtectSuccess&&(o.model.get("locals").skipPassword?!o.model.get("locals").afterPasswordCalled&&(o.model.setLocals({afterPasswordCalled:!0}),o.afterCorrectPassword()):$("#passwordProtectionTemplate").length>0?a="#passwordProtectionTemplate":(window.ajaxController({url:"/password-modal",type:"GET"},function(a){a.success&&(debug()("Password modal response",a),0==$("#passwordProtectionTemplate").length&&($("body").append(a.html),o.model.trigger("change")))}),debug()("Please save and reload this app"))),$(a).html()},styleTemplate:function(){return $("#"+this.model.meta.app_namespace+"StyleTemplate").html()},beforeRender:function(){},pausePlugin:function(){if(this.model.meta.is_standalone)this.model.attributes.pauseDisplay?$("#powrNotificationBanner").show():$("#powrNotificationBanner").hide();else if(this.model.attributes.pauseDisplay)return CURRENT_USER&&CURRENT_USER.id==this.model.meta.app_owner_id&&(this.$el[0].innerHTML='
(Only you can see this)
Your plugin is paused. This plugin will be hidden on your website. Go to Design > Advanced in the '.concat(this.model.meta.app_common_name," editor to turn off
")),!0},render:function(){this.beforeRender();var o=this,a=this.model;if(!this.pausePlugin()){this.$el.toggleClass("noTransition",!0),setTimeout(function(){o.$el.toggleClass("noTransition",!1)},500);var y=this.styleTemplate();if(void 0!=y){var E=_.template(y)({m:a.attributes,meta:a.meta});if($("#dynamicStyle").html(E),void 0!=a.get("customCSS")&&a.get("customCSS").length>0&&$("#dynamicStyle").append(""),void 0!=a.get("customJS")&&a.get("customJS").length>0)try{$("#dynamicStyle").append("