(()=>{var e={9956:function(e,t,n){"use strict";n.r(t)},39882:function(e,t,n){"use strict";n.r(t),n.d(t,{isInGbABTest:function(){return isInGbABTest}});var r=n(82186),isInGbABTest=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="AB_GROWTHBOOK_TESTS",i=(0,r.getNestedValue)(window,"GLOBALS.".concat(o,".").concat(e,".group"),null);if(!window.GLOBALS||!window.GLOBALS[o])return!1;var a=window.GLOBALS[o]._attributes;return i&&!["off"].includes(i)&&n&&markUserExposedToGbAb(e,a),i===t},markUserExposedToGbAb=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="numExposed__ab_".concat(e,"__userUniqueId_").concat(window.getCookie("unique_id"));if(!window.getLocalStorage(n))window.ajaxController({url:"/growthbook/exposed",data:JSON.stringify({data:{experiment_key:e,experiment_eval_feature:null,attributes:t}}),type:"POST",contentType:"application/json; charset=utf-8"},function(e){e.success&&setNumExposedLocalStorage(n,!0)})},setNumExposedLocalStorage=function(e,t){e&&t&&window.setLocalStorage(e,t)}},30443:function(e,t,n){"use strict";n.r(t),n.d(t,{linkTracking:function(){return linkTracking},waterMarklinkTracking:function(){return waterMarklinkTracking}});var waterMarklinkTracking=function(e,t){if(!e.meta.is_standalone&&"editor"!==e.meta.view_mode&&["control","watermark_test"].includes(null===(n=e.attributes)||void 0===n?void 0:n.waterMarkTestKey)){var n,r="partnerMarkAbLink"===t.currentTarget.className.split(" ")[0],o={app_id:e.meta.id,test_name:e.attributes.gb_test_name,data:{type:t.type,gb_group:e.attributes.waterMarkTestKey,app_type:e.meta.app_type,partner_name:r?t.currentTarget.dataset.partner:"powr"}};window.ajaxController({url:"/api/v1/link-click-tracking",data:JSON.stringify(o),type:"POST",contentType:"application/json; charset=utf-8"})}},linkTracking=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a={type:n,gb_group:r};o&&(a.app_type=o),i&&(a.partner_name=i);window.ajaxController({url:"/api/v1/link-click-tracking",data:JSON.stringify({app_id:e,test_name:t,data:a}),type:"POST",contentType:"application/json; charset=utf-8"})}},15937:function(e,t,n){"use strict";n.d(t,{QV:function(){return isWixPlatform},ZM:function(){return isStandaloneWixEditor},ho:function(){return openWixStandaloneEditor},q7:function(){return getPlatformFromEmbedLink}});var r=n(82186),o=n(26893),i=n(39882),isWixPlatform=function(){var e=document.URL.includes("standalone");return["wix","wix-oauth"].includes(window.HOST)&&!e},isStandaloneWixEditor=function(){return"true"===new URLSearchParams(window.location.search).get("wix_standalone")},openWixStandaloneEditor=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=window.META.app_slug,n="".concat((0,r.hostUrl)(window),"/plugins/").concat(t,"/standalone?id=").concat(window.META.id,"&wix_standalone=true").concat(e);Wix.Settings.openModal(n,"90%","90%","POWr ".concat((0,o.ag)(t)),function(){!(0,i.isInGbABTest)("expanded_view_for_wix_settings","expanded_view_on_settings")&&window.document.location.reload()})},getPlatformFromEmbedLink=function(){var e,t,n=window.location.hash;if(!n&&(n=window.location.search),!n&&(n=window.location.href),!n)return"";var r=decodeURIComponent(n);return(null===(e=r.match(/platform=([^&]+)/))||void 0===e?void 0:e[1])||(null===(t=r.match(/external_type=([^&]+)/))||void 0===t?void 0:t[1])||""}},78480:function(e,t,n){"use strict";n.r(t),n.d(t,{renderReactComponent:function(){return renderReactComponent}});var renderReactComponent=function(e,t){var r=document.querySelector(t);if(r)n.e("3074").then(n.t.bind(n,97326,19)).then(function(t){t.render(e,r)});else throw Error('Cant find dom node "'.concat(t,'" to mount React component'))}},26893:function(e,t,n){"use strict";n.d(t,{J_:function(){return ensureValidUrl},ag:function(){return getAppNameFromSlug},eV:function(){return camelCase},fu:function(){return snakeCase},jo:function(){return firstLetterCapitalized},tr:function(){return humanizedCase}});var getAppNameFromSlug=function(e){return e&&e.includes("-")?e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" "):e},getParsedString=function(e){var t=e.string,n=e.separator,r="string"==typeof t&&t.length>0,o="string"==typeof n;return r&&o?t.replace(/([a-z])([A-Z])/g,"$1".concat(n,"$2")).replace(/[\s_-]+/g,n).toLowerCase():null},firstLetterCapitalized=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},snakeCase=function(e){return getParsedString({string:e,separator:"_"})},camelCase=function(e){var t=getParsedString({string:e,separator:" "});return null==t?void 0:t.split(" ").map(function(e,t){return 0===t?e:firstLetterCapitalized(e)}).join("")},humanizedCase=function(e){var t=(e=camelCase(e)).replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)};function ensureValidUrl(e){!/^https?:\/\//i.test(e)&&(e="https://"+e);try{var t=new URL(e);return"".concat(t.protocol,"//").concat(t.host)}catch(e){return null}}},49013:function(e,t,n){"use strict";n.d(t,{I_:function(){return getNextUpgradeStatus},ZP:function(){return a},ZY:function(){return i},z5:function(){return o}});var r=n(82186),o=["free","premium","pro","enterprise","hipaa_form_starter","hipaa_form_pro","hipaa_form_business","hipaa_form_custom"],i=["v_250","v_500","v_2500","v_5000","v_10000","v_25000","v_50000","custom"],getNextUpgradeStatus=function(e){return o[o.indexOf(e)+1]||"enterprise"};let a={isUpgradeRequired:function(e,t){if((0,r.isInUsageBasedV2App)())return!!i.includes(t)&&i.indexOf(e)t?e.substring(0,t-3)+"...":e},ABTestInitialization=function(e){!e&&(e={ACTIVE_AB_TESTS:{}});var t=window.opener&&window.opener.GLOBALS?window.opener.GLOBALS:null;return t&&Object.keys(t.ACTIVE_AB_TESTS).forEach(function(n){e.ACTIVE_AB_TESTS[n]=t.ACTIVE_AB_TESTS[n]}),window.GLOBALS=e,e},renderUserJourney=function(){Promise.all([n.e("9316"),n.e("3074"),n.e("7331")]).then(n.bind(n,53414)).then(function(){})},paypalRedirectUrl=function(e){return"wix"===window.HOST?window.baseUri()+"/paramless-mirror/"+encodeURIComponent(window.urlFormat(e)):window.urlFormat(e)}},37379:function(e,t,n){"use strict";var r=n(35276);!window._&&(window._=n(61686)),!window.POWr&&(window.POWr={simpleCopies:r.ZG,premiumStatusLabel:r.WQ,removeHTML:r.LD,truncate:r.$G,ABTestInitialization:r.Tt,renderUserJourney:r.Ap,paypalRedirectUrl:r.nb})},82186:function(e,t,n){"use strict";n.r(t),n.d(t,{ABTestInitialization:function(){return o.Tt},PAYPAL_PARTNER_ID:function(){return c},REVIEW_DEFAULT_COOKIE_NAME:function(){return p},REVIEW_DELAY_DAYS:function(){return d},SQUARE_SPACE_REVIEW_LINK:function(){return s},a_or_an:function(){return a_or_an},appTypeWithResponses:function(){return appTypeWithResponses},calculateFixedButtonCss:function(){return calculateFixedButtonCss},canShowReview:function(){return canShowReview},canUseLocalStorage:function(){return canUseLocalStorage},changePremiumStatus:function(){return changePremiumStatus},checkPowrOneAdCookie:function(){return checkPowrOneAdCookie},deepCopyElement:function(){return deepCopyElement},detectPromoBanner:function(){return detectPromoBanner},getGradientTypeAndDirection:function(){return getGradientTypeAndDirection},getHostPrefix:function(){return getHostPrefix},getNestedValue:function(){return getNestedValue},getP1AppTypes:function(){return getP1AppTypes},getParentUrl:function(){return getParentUrl},getPluginUrl:function(){return getPluginUrl},getProfileProgress:function(){return getProfileProgress},getUrlHashParams:function(){return getUrlHashParams},getUserJourneyStepName:function(){return getUserJourneyStepName},getWixOauthParam:function(){return getWixOauthParam},grantAccess:function(){return a},hideZendesk:function(){return hideZendesk},hostUrl:function(){return hostUrl},isAppointment:function(){return isAppointment},isComments:function(){return isComments},isEmailApp:function(){return isEmailApp},isFormOrPopup:function(){return isFormOrPopup},isFreePaypalButton:function(){return isFreePaypalButton},isInABTest:function(){return isInABTest},isInFeatureGroup:function(){return isInFeatureGroup},isInUsageBasedV2App:function(){return isInUsageBasedV2App},isInUsageBasedV2Group:function(){return isInUsageBasedV2Group},isLocaleSupported:function(){return isLocaleSupported},isNonReactifiedApp:function(){return isNonReactifiedApp},isP1App:function(){return isP1App},isPaymentApp:function(){return isPaymentApp},isPlatform:function(){return l},isPlatformShopify:function(){return isPlatformShopify},isProductReviews:function(){return isProductReviews},isRolloutFeatureActive:function(){return isRolloutFeatureActive},isScraperView:function(){return isScraperView},isShareThis:function(){return isShareThis},isShareThisOnboarding:function(){return isShareThisOnboarding},isShopifyFree:function(){return isShopifyFree},isShopifyOverhaul2021:function(){return isShopifyOverhaul2021},isTruncated:function(){return isTruncated},isWix:function(){return isWix},isWixOauth:function(){return u},isWixOauthAppType:function(){return isWixOauthAppType},isWixOrShopify:function(){return isWixOrShopify},kebabize:function(){return kebabize},lazyLoadImages:function(){return lazyLoadImages},makeFreeForShopify:function(){return makeFreeForShopify},makeFreeForWixOauth:function(){return makeFreeForWixOauth},makeLimitsForWixOauth:function(){return makeLimitsForWixOauth},netAndFormElementsLength:function(){return netAndFormElementsLength},netElementLength:function(){return netElementLength},newDowngradeFlowAB:function(){return newDowngradeFlowAB},openHelpCenterLinkWithParams:function(){return openHelpCenterLinkWithParams},openPowrzillaEditorWindow:function(){return openPowrzillaEditorWindow},pageEmbedUrl:function(){return pageEmbedUrl},paypalRedirectUrl:function(){return o.nb},popupHasEmailInput:function(){return popupHasEmailInput},premiumStatusLabel:function(){return o.WQ},range:function(){return range},removeHTML:function(){return o.LD},renderChooseSiteOverlay:function(){return renderChooseSiteOverlay},renderLogo:function(){return renderLogo},renderUserJourney:function(){return o.Ap},round:function(){return round},scrollToAppTop:function(){return scrollToAppTop},setPowrOneAdCookie:function(){return setPowrOneAdCookie},showProductBanner:function(){return showProductBanner},showWixOveride:function(){return showWixOveride},simpleCopies:function(){return o.ZG},slideMenuAnimate:function(){return slideMenuAnimate},toTitleCase:function(){return toTitleCase},toggleBackgroundGradientColor:function(){return toggleBackgroundGradientColor},trackEvent:function(){return trackEvent},truncate:function(){return o.$G},undoRedoAllowedApp:function(){return undoRedoAllowedApp},validateUrl:function(){return validateUrl}}),n(37379);var r=n(49013),o=n(35276),i=n(15937);function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]&&arguments[2],r,o=_createForOfIteratorHelper(t.split("."));try{for(o.s();!(r=o.n()).done;){var i=r.value;if(!e)return n;e=e[i]}}catch(e){o.e(e)}finally{o.f()}return e||n},openPowrzillaEditorWindow=function(e){window.name="".concat(e.app_id,"_parent");var t=e.templates_present&&!e.email_id?"/powrzilla/templates":"/powrzilla",n="app_id=".concat(e.app_id,"&email_type=").concat(e.email_type,"&host=").concat(e.host);e.email_id&&(n="".concat(n,"&id=").concat(e.email_id)),window.open("".concat(t,"?").concat(n))},isInABTest=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"test_group_1";return arguments.length>2&&void 0!==arguments[2]&&arguments[2],("ab_starter_removes_watermark"!==e||"formBuilder"===META.app_namespace)&&getNestedValue(window,"GLOBALS.".concat("ACTIVE_AB_TESTS",".").concat(e,".group"),null)===t},isRolloutFeatureActive=function(e){return window.ROLLOUT_FEATURES?getNestedValue(window,"ROLLOUT_FEATURES.".concat(e,".active"),!1):getNestedValue(window,"GLOBALS.ROLLOUT_FEATURES.".concat(e,".active"),!1)},isInFeatureGroup=function(e){return window.GLOBALS&&window.GLOBALS.FEATURE_GROUP&&window.GLOBALS.FEATURE_GROUP===e},changePremiumStatus=function(e,t){return e.map(function(e){return(t[e.name]||t[e.value])&&(e.premium_status=t[e.name]),e})};function hideZendesk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;$(".zEWidget-launcher--active").length>0?$(".zEWidget-launcher--active").hide():setTimeout(function(){hideZendesk(e)},e)}var isPaymentApp=function(e){return["paypalButton","ecommerce"].includes(e)},isFormOrPopup=function(e){return["formBuilder","popup"].includes(e)},isProductReviews=function(e){return["productReviews"].includes(e)},isComments=function(e){return["comments"].includes(e)},isAppointment=function(e){return["appointments"].includes(e)},isPlatformShopify=function(e){return(null==e?void 0:e.platform)==="shopify"},isWix=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.CURRENT_USER;return(null==(e=t)?void 0:e.platform)==="wix"||["wix","wix-oauth"].includes(window.HOST)||(0,i.ZM)()},isWixOrShopify=function(e){return isWix(e)||isPlatformShopify(e)},isWixOauthAppType=function(e){return["popup","chat","nudge"].includes(e)},showWixOveride=function(e){var t,n,r;return(null===(t=window.CURRENT_USER)||void 0===t?void 0:t.provider)==="wix"&&((null===(n=window.CURRENT_USER)||void 0===n?void 0:n.platform)==null||(null===(r=window.CURRENT_USER)||void 0===r?void 0:r.platform)==="wix")&&!isWixOauthAppType(e)},appTypeWithResponses=function(e){return["productReviews","formBuilder","popup","paypalButton","ecommerce","comments","appointments","hipaaForm"].includes(e)},validateUrl=function(e){try{return new URL(e),!0}catch(e){return!1}},a_or_an=function(e){return e?["a","e","i","o","u"].includes(e.charAt(0).toLowerCase())?"an ".concat(e):"a ".concat(e):""},s="/admin/review_urls/",getP1AppTypes=function(){return["formBuilder","socialFeed","mediaGallery","popup","multiSlider","comments","countdownTimer","faq","paypalButton"]},isP1App=function(e){return getP1AppTypes().includes(e)},getUserJourneyStepName=function(e){return["create_account","create_plugin","leave_review"][e]},detectPromoBanner=function(){var e=document.getElementsByTagName("body")[0];return!!e&&_toConsumableArray(e.classList).includes("has-promo-banner")},netElementLength=function(e){return e.filter(function(e){return"step"!==e.type}).length},netAndFormElementsLength=function(e){return e.reduce(function(e,t){return["step","form"].includes(t.type)?"form"===t.type?e+t.data.filter(function(e){return"formButton"!==e.type}).length:e:e+1},0)},getWixOauthParam=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return u?"".concat(e?"?":"&","target=wix-dashboard"):""},c="J4NURA49NDK6Q",makeFreeForWixOauth=function(e){var t;return u&&(null===(t=META)||void 0===t?void 0:t.app_namespace)!=="popup"?"free":e},makeFreeForShopify=function(e,t){return e&&isShopifyFree(e)?"free":t},isShopifyFree=function(e){return"shopify"===e.external_id_type&&["promotionPopup","mailchimpEmailSignup"].includes(e.app_type)&&Date.parse(e.created_at)>Date.parse("2020-11-23T17:00:00")},u="wix-oauth"===window.HOST,l="platform"===window.PLATFORM_EMBED,isShareThis=function(e){return(null==e?void 0:e.external_id_type)==="sharethis"},isShareThisOnboarding=function(){var e,t;return(null===(e=window.getURLParameter("platform"))||void 0===e?void 0:e.includes("sharethis"))&&(null===(t=window.getURLParameter("redirect"))||void 0===t?void 0:t.includes("true"))},makeLimitsForWixOauth=function(e){return u?{free:e.enterprise,premium:e.enterprise,pro:e.enterprise,enterprise:e.enterprise}:e},trackEvent=function(){},round=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return Math.round((e+Number.EPSILON)*t)/t},range=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Array.from({length:Math.floor((t-e)/n)+1},function(t,r){return r*n+e})},getProfileProgress=function(){var e=0,t=0,n=[];return["email","business_type","first_name","last_name","phone","partner_name","company_size","purpose","platform","address_1","country","city","state","locale"].forEach(function(r){window.CURRENT_USER[r]?e++:n.push(r),t++}),{completeness:Math.round(e/t*100),missingInfo:n}},popupHasEmailInput=function(e){var t=(e||{}).content,n=(t||{}).data;if(!t||!n)return!1;var r="2"===t.version?"form":"email_input";return n&&!!n.find(function(e){return e.type===r})},pageEmbedUrl=function(e,t){return"".concat(window.baseUri(),"/").concat(e,"/i/").concat(t,"#page")},isInUsageBasedV2Group=function(){return window.CURRENT_USER?!!window.CURRENT_USER["is_usage_based?"]:isInABTest("usage_based_pricing_v2","usage_based")},isInUsageBasedV2App=function(){if(window.META)return window.META.premium_status?r.ZY.includes(window.META.premium_status):r.ZY.includes(window.PREMIUM_STATUS);return isInUsageBasedV2Group()},isFreePaypalButton=function(){if(window.META){var e=new Date(window.META.created_at)>new Date("2023-11-20T00:00:00");return!!("paypalButton"==window.META.app_namespace&&e&&["free","v_250","v_500"].includes(window.META.premium_status))||!1}},renderLogo=function(e){var t,r="/"===((null===(t=window.location)||void 0===t?void 0:t.pathname)||"")?{nodeID:"#js-powr-logo-home-page",props:{white:!0}}:{},o=r.nodeID,i=void 0===o?"#js-powr-logo":o,a=r.props,s=void 0===a?{}:a,c=document.querySelector(i);"#js-powr-logo"===i&&window.innerWidth<=768&&(s.small=!0),c&&Promise.all([n.e("7189").then(n.t.bind(n,57689,19)),n.e("8199").then(n.bind(n,96538)),n.e("6410").then(n.bind(n,78480))]).then(function(t){var n=_slicedToArray(t,3),r=n[0],o=n[1].default,a=n[2].renderReactComponent;if(a(r.createElement(o,_objectSpread(_objectSpread({},s),e)),i),document.querySelector(".humanistic-logo")){var c=window.IS_LEAD_COLLECTION_FLOW?"/lead-collection/dashboard":"/";a(r.createElement(o,{url:c,white:!window.isMobile()&&"square"!=window.getURLQueryParam("provider")}),".humanistic-logo")}})},renderChooseSiteOverlay=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=document.querySelector(r?".js-choose-site-container-publish":".js-choose-site-container");o&&(r&&(o.style.display="block"),Promise.all([n.e("7189").then(n.t.bind(n,57689,19)),n.e("6410").then(n.bind(n,78480)),Promise.all([n.e("3074"),n.e("8492"),n.e("633")]).then(n.bind(n,9912))]).then(function(n){var o=_slicedToArray(n,3),i=o[0],a=o[1].renderReactComponent,s=o[2].default;a(i.createElement(s,{sites:e.sites,defaultSiteId:0,onSuccess:function(){return t()}}),r?".js-choose-site-container-publish":".js-choose-site-container")}))},slideMenuAnimate=function(){$(".js-slide-menu").on("click",function(){$(".slide-menu-container").css({display:"block"}),$("body").css({overflow:"hidden",height:"100%"}),$(".slide-menu-container nav").animate({left:0},"fast"),$(".js-slide-menu-close").show(),$(".js-slide-menu").hide()}),$(".js-slide-menu-close").on("click",function(){$(".slide-menu-container nav").animate({left:"-100%"},"fast",function(){$(".slide-menu-container").css({display:"none"}),$("body").css({overflow:"auto",height:"initial"})}),$(".js-slide-menu").show(),$(".js-slide-menu-close").hide()})},p="review_delay",d=15,canShowReview=function(e,t){return e&&window.getCookie("".concat(p,"_").concat(t))!=d},calculateFixedButtonCss=function(e){var t,n,r=e.width,o=e.postCss,i=e.modelOffset,a=e.buttonLocation,s=e.displayMode,c=e.isStandalone,u="".concat(parseInt(i)*r/100,"px");if(c){var l=$(window).width(),p=$(window).height(),d=parseInt(i);t=400+d*(l-400)/100+"px",n=64+d*(p-64)/100+"px"}if("tab"==s)switch(o.display="table",a){case"right":c?o.top=n:o.top=i,o.right=0,o.transform="rotate(-90deg) translateY(-100%) translateX("+i+")",o.webkitTransform="rotate(-90deg) translateY(-100%) translateX("+i+")",o.transformOrigin="right top",o.webkitTransformOrigin="right top";break;case"left":c?(o.top=n,o.left="400px"):(o.top=i,o.left=0),o.transform="rotate(90deg) translateY(-100%) translateX(-"+i+")",o.webkitTransform="rotate(90deg) translateY(-100%) translateX(-"+i+")",o.transformOrigin="left top",o.webkitTransformOrigin="left top";break;case"bottom":c?o.left=t:o.left=i,o.bottom="0px",o.transform="translateX(-"+u+")",o.webkitTransform="translateX(-"+u+")"}else"floatingButton"==s&&(c?(o.left=t,o.height="60px"):o.left=i,o.bottom="20px",o.transform="translateX(-"+u+")",o.webkitTransform="translateX(-"+u+")")},scrollToAppTop=function(){if(window.Wix){var e=Wix.Utils.getCompId();window.Wix.navigateToComponent(e)}else{var t={messageType:"scrollTo",scrollTo:"app",url:window.location.href,scrollSpeed:12,ios:window.isIOS(),distance:window.APP_MODEL.attributes.locals.newHeight-window.APP_MODEL.attributes.locals.originalHeight};window.APP_MODEL.setLocals({postMessage:t})}},isTruncated=function(e){return e.offsetWidth0&&void 0!==arguments[0]&&arguments[0];if(window.location.href.includes("wix_cached_view"))return window.META.wixSiteUrl;var n=getUrlHashParams();return n.url?(e=decodeURIComponent(n.url),t&&(e=new URL(e).origin)):e=n.request_url?decodeURIComponent(n.request_url):isScraperView(window.origin)?window.PARENT_WINDOW_LOCATION:window.location.href,e},getGradientTypeAndDirection=function(e){switch(e){case"horizontal":return{type:"linear",direction:"to right"};case"diagonal_right":return{type:"linear",direction:"to bottom left"};case"diagonal_left":return{type:"linear",direction:"to bottom right"};case"radial":return{type:"radial",direction:"ellipse at center"};default:return{type:"linear",direction:"to bottom"}}},isShopifyOverhaul2021=function(){return"shopify"===window.META.external_id_type&&new Date(window.META.created_at)>new Date(2021,6,3)||"true"==window.getURLParameter("show_countdown_cart")},openHelpCenterLinkWithParams=function(){var e,t;return window.CURRENT_USER?window.open("http://help.powr.io/hc/en-us?platform=".concat(window.CURRENT_USER.platform,"&user_score=").concat(window.CURRENT_USER.user_display_score,"&user_id=").concat(window.CURRENT_USER.id,"&email=").concat(window.CURRENT_USER.email,"&premium_status=").concat(window.CURRENT_USER.user_has_active_pro_subscription,"&app=").concat(null===(e=window.META)||void 0===e?void 0:e.app_type,"&app_parent=").concat(null===(t=window.META)||void 0===t?void 0:t.app_namespace),"_blank"):window.open("http://help.powr.io/hc/en-us","_blank")},checkPowrOneAdCookie=function(){var e,t=window.getCookie("powr_one_ad");(null!==(e=window.CURRENT_USER)&&void 0!==e&&e.is_powr_one||t&&Number(t)>=3)&&$(".powrone-ad-banner").addClass("hid")},setPowrOneAdCookie=function(){var e=window.getCookie("powr_one_ad");if(e&&3>Number(e)){var t=Number(e)+1;window.setCookie("powr_one_ad",t.toString(),365)}else window.setCookie("powr_one_ad","1",365)},isLocaleSupported=function(e){return["en","es","de","fr","pt","it","tr","nl","ru","ja","zh","hi"].includes(e)},getPluginUrl=function(e,t){var n="".concat(e,"-website-app");switch(t){case"es":n="".concat(e,"-sitio-web-app");break;case"de":n="".concat(e,"-webseite-app");break;case"fr":n="".concat(e,"-application-du-site-web");break;case"pt":n="".concat(e,"-aplicativo-para-site");break;case"it":n="".concat(e,"-sito-web-app");break;case"tr":n="".concat(e,"-websitesi-uygulaması");break;case"nl":n="".concat(e,"-internetsite-app");break;case"ru":n="".concat(e,"-виджет-для-вашего-сайта");break;case"ja":n="".concat(e,"-ウェブサイトアプリ");break;case"zh":n="".concat(e,"-网站应用");break;case"hi":n="".concat(e,"-वेबसाइट-ऐप")}return n},newDowngradeFlowAB=function(){if(window.CURRENT_USER)return isInABTest("new_downgrade_flow_ab","new_downgrade_flow",!0)},kebabize=function(e){return e.split("").map(function(e,t){return e.toUpperCase()===e?"".concat(0!==t?"-":"").concat(e.toLowerCase()):e}).join("")},hostUrl=function(e){var t,n,r=null;switch(null!==(t=e.META)&&void 0!==t&&t.env?r=e.META.env:null!==(n=e.GLOBALS)&&void 0!==n&&n.ENVIRONMENT&&(r=e.GLOBALS.ENVIRONMENT),r){case"development":return"https://localhost:3000";case"staging":return"https://www.powr-staging.io";case"alpha":return"https://alpha.powr-staging.io";default:return"https://www.powr.io"}},isScraperView=function(e){return e.includes("vcdn.")},getHostPrefix=function(e){return isScraperView(e.origin)?hostUrl(e):""},canUseLocalStorage=function(){try{var e="__test__";return localStorage.setItem(e,"test"),localStorage.removeItem(e),!0}catch(e){return!1}},undoRedoAllowedApp=function(e){var t="production"==window.ENVIRONMENT?"general.undoRedoAllowedApp":"general.undoRedoAllowedAppStaging";return(0,o.ZG)(t).split(",").map(function(e){return e.trim()}).includes(e)},isEmailApp=function(){var e;return(null===(e=window.META)||void 0===e?void 0:e.app_namespace)==="email"},isNonReactifiedApp=function(){var e;return!window||!window.APP_SETTINGS||!window.APP_SETTINGS.observableStore||"function"!=typeof window.APP_SETTINGS.observableStore.forceUpdate||["socialFeed","faq"].includes(null===(e=window)||void 0===e||null===(e=e.META)||void 0===e?void 0:e.app_namespace)},toggleBackgroundGradientColor=function(e){var t=$('[data-namespace="backgroundGradient"]').closest(".colorSelectionContainer");t.length&&(e.get("backgroundGradient")?(t.find(".gradientColor").show(),t.find(".solidColor").hide()):(t.find(".gradientColor").hide(),t.find(".solidColor").show()))}},93616:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(57689),o=n(40507),i=n.n(o),a=n(82186);function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n=t.props.width?r="left":n.right>=t.props.width&&(r="right");var o=t.props.horizontalPosition||r,i=void 0!==t.props.showOnBottom?!t.props.showOnBottom:n.bottom>.66*e,a={},s={},c=n.height,u=t.props.anchorArrowSize;switch(t.props.tooltipPosition&&"right-center"===t.props.tooltipPosition&&(i=!1),o){case"center":a.left=(n.width-t.props.width)/2,u=t.props.width/2-t.props.anchorArrowSize/2,i&&(u+=t.props.anchorArrowSize),s.left=u;break;case"left":a.left=t.props.tooltipAfterLabel?"calc(100% - 22px)":18,i&&(u+=1.5*t.props.anchorArrowSize),s.left=18;break;case"right":a.right=0,u=t.props.anchorArrowSize,i&&(u-=1.5*t.props.anchorArrowSize),s.right=18}return t.props.showAnchorArrow&&(c+=t.props.anchorArrowSize/2),i?(a.bottom=c,s.bottom=0):(a.top=30.5,s.top=-1*t.props.anchorArrowSize),t.props.tooltipPosition&&"right-center"===t.props.tooltipPosition&&(a={right:"6px",left:"unset",top:"28.5px",position:"absolute",zIndex:3},s.left="unset",s.right=u),{isVerticalPositionBottom:i,arrowStyles:s,containerStyles:a}},t.getRelativeToAnchorPositionStyles=function(){var e=(0,a.detectPromoBanner)(),n=t.props||{},r=n.horizontalPosition,o=void 0===r?"left":r,i=n.width,s=n.height,c=n.anchorComponentRef,u=n.anchorArrowSize,l=c.getBoundingClientRect(),p=l.width,d=l.left,f=l.right,m=l.bottom,w={top:e?m-50:m,width:i,height:s};switch(o){case"center":w.left=d+p/2;break;case"left":w.left=d;break;case"right":w.left=f;break;default:throw Error("Invalid value of 'horizontalPosition' prop: ".concat(o))}return{isVerticalPositionBottom:!1,arrowStyles:{position:"relative",left:2*u,zIndex:1},containerStyles:w}},t.state={isVisible:!1},t.node=null,t}return _inherits(Popover,e),_createClass(Popover,[{key:"componentDidMount",value:function(){var e=(this.props||{}).handleEventsOnCapture,t=void 0!==e&&e;document.addEventListener("click",this.closePopOver,t),document.addEventListener("hover",this.closeOnHover,t)}},{key:"componentDidUpdate",value:function(e){var t=this;this.props.displayTooltip&&e.displayTooltip!==this.props.displayTooltip?setTimeout(function(){t.setState({isVisible:!0})},100):!this.props.displayTooltip&&e.displayTooltip!==this.props.displayTooltip&&this.setState({isVisible:!1})}},{key:"componentWillUnmount",value:function(){var e=(this.props||{}).handleEventsOnCapture,t=void 0!==e&&e;document.removeEventListener("click",this.closePopOver,t),document.removeEventListener("hover",this.closeOnHover,t)}},{key:"render",value:function(){var e=this;if(!this.props.anchorComponentRef)return null;var t=this.props||{},n=t.relativeToAnchorOnly,o=t.showAnchorArrow,i=t.children,a=n?this.getRelativeToAnchorPositionStyles():this.getPositionStyles(),s=a.isVerticalPositionBottom?"popover-arrow-top":"popover-arrow-bottom",c=o&&r.createElement("div",{className:"popover-arrow ".concat(s),style:a.arrowStyles});return r.createElement("div",{className:"powrReactPopoverContainer ".concat(this.props.additionalClasses," ").concat(this.state.isVisible?"visible":""),style:a.containerStyles,ref:function(t){e.node=t},"data-qa":"tooltip-popup"},r.createElement("div",{className:"popover-container","data-qa":"tooltip-text"},c,r.createElement("div",null,i)))}}])}(r.Component);s.defaultProps={settingsPanelWidth:400,anchorArrowSize:15,tooltipAfterLabel:!1,displayTooltip:!1,additionalClasses:""},s.propTypes={height:i().number,width:i().number,handleCloseOnClick:i().func,handleCloseOnHover:i().func,horizontalPosition:i().string,anchorComponentRef:i().any,showOnBottom:i().bool,relativeToAnchorOnly:i().bool,handleEventsOnCapture:i().bool,tooltipAfterLabel:i().bool,displayTooltip:i().bool,additionalClasses:i().string};let c=s},92851:function(e,t,n){"use strict";n.d(t,{Z:()=>a});var r=n("57689"),o=n("40507"),i=n.n(o),condition_Condition=function(e){var t=e.match,n=e.children;return t?n:null};condition_Condition.propTypes={match:i().oneOfType([i().string,i().bool]),children:i().node};function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.push(o))return;if(n.code.length9&&i>0,!0}if(isHostMethod(t,"addEventListener"))E=function(e,t,n){e.addEventListener(t,n,!1)},P=function(e,t,n){e.removeEventListener(t,n,!1)};else if(isHostMethod(t,"attachEvent"))E=function(e,t,n){e.attachEvent("on"+t,n)},P=function(e,t,n){e.detachEvent("on"+t,n)};else throw Error("Browser not supported");var y,b,A,E,P,k,x=!1,I=[];function dom_onReady(){if(!x){x=!0;for(var e=0;e'):(r=n.createElement("IFRAME")).name=e.props.name,r.id=r.name=e.props.name,delete e.props.name,"string"==typeof e.container&&(e.container=n.getElementById(e.container)),!e.container&&(apply(r.style,{position:"absolute",top:"-2000px",left:"0px"}),e.container=n.body);var t=e.props.src;if(e.props.src="javascript:false",apply(r,e.props),r.border=r.frameBorder=0,r.allowTransparency=!0,e.container.appendChild(r),e.onLoad&&E(r,"load",e.onLoad),e.usePost){var r,o,i=e.container.appendChild(n.createElement("form"));if(i.target=r.name,i.action=t,i.method="POST","object"==typeof e.usePost)for(var a in e.usePost)e.usePost.hasOwnProperty(a)&&(y?o=n.createElement(''):(o=n.createElement("INPUT")).name=a,o.value=e.usePost[a],i.appendChild(o));i.submit(),i.parentNode.removeChild(i)}else r.src=t;return e.props.src=t,r}function checkAcl(e,t){"string"==typeof e&&(e=[e]);for(var n,r=e.length;r--;)if((n=new RegExp("^"==(n=e[r]).substr(0,1)?n:"^"+n.replace(/(\*)/g,".$1").replace(/\?/g,".")+"$")).test(t))return!0;return!1}function prepareTransportStack(e){var o,i=e.protocol;if(e.isHost=e.isHost||undef(L.xdm_p),v=e.hash||!1,!e.props&&(e.props={}),e.isHost)e.remote=resolveUrl(e.remote),e.channel=e.channel||"default"+u++,e.secret=Math.random().toString(16).substring(2),undef(i)&&(getLocation(r.href)==getLocation(e.remote)?i="4":isHostMethod(t,"postMessage")||isHostMethod(n,"postMessage")?i="1":e.swf&&isHostMethod(t,"ActiveXObject")&&hasFlash()?i="6":"Gecko"===navigator.product&&"frameElement"in t&&-1==navigator.userAgent.indexOf("WebKit")?i="5":i=e.remoteHelper?"2":"0");else if(e.channel=L.xdm_c.replace(/["'<>\\]/g,""),e.secret=L.xdm_s,e.remote=L.xdm_e.replace(/["'<>\\]/g,""),i=L.xdm_p,e.acl&&!checkAcl(e.acl,e.remote))throw Error("Access denied for "+e.remote);switch(e.protocol=i,i){case"0":if(apply(e,{interval:100,delay:2e3,useResize:!0,useParent:!1,usePolling:!1},!0),e.isHost){if(!e.local){for(var a,s=r.protocol+"//"+r.host,c=n.body.getElementsByTagName("img"),l=c.length;l--;)if((a=c[l]).src.substring(0,s.length)===s){e.local=a.src;break}!e.local&&(e.local=t)}var p={xdm_c:e.channel,xdm_p:0};e.local===t?(e.usePolling=!0,e.useParent=!0,e.local=r.protocol+"//"+r.host+r.pathname+r.search,p.xdm_e=e.local,p.xdm_pa=1):p.xdm_e=resolveUrl(e.local),e.container&&(e.useResize=!1,p.xdm_po=1),e.remote=appendQueryParameters(e.remote,p)}else apply(e,{channel:L.xdm_c,remote:L.xdm_e,useParent:!undef(L.xdm_pa),usePolling:!undef(L.xdm_po),useResize:!e.useParent&&e.useResize});o=[new w.stack.HashTransport(e),new w.stack.ReliableBehavior({}),new w.stack.QueueBehavior({encode:!0,maxLength:4e3-e.remote.length}),new w.stack.VerifyBehavior({initiate:e.isHost})];break;case"1":o=[new w.stack.PostMessageTransport(e)];break;case"2":e.isHost&&(e.remoteHelper=resolveUrl(e.remoteHelper)),o=[new w.stack.NameTransport(e),new w.stack.QueueBehavior,new w.stack.VerifyBehavior({initiate:e.isHost})];break;case"3":o=[new w.stack.NixTransport(e)];break;case"4":o=[new w.stack.SameOriginTransport(e)];break;case"5":o=[new w.stack.FrameElementTransport(e)];break;case"6":!b&&hasFlash(),o=[new w.stack.FlashTransport(e)]}return o.push(new w.stack.QueueBehavior({lazy:e.lazy,remove:!0})),o}function chainStack(e){for(var t,n={incoming:function(e,t){this.up.incoming(e,t)},outgoing:function(e,t){this.down.outgoing(e,t)},callback:function(e){this.up.callback(e)},init:function(){this.down.init()},destroy:function(){this.down.destroy()}},r=0,o=e.length;r<\/script>')}},s={},w.Fn={set:function(e,t){s[e]=t},get:function(e,t){if(!!s.hasOwnProperty(e)){var n=s[e];return t&&delete s[e],n}}},w.Socket=function(e){var t=chainStack(prepareTransportStack(e).concat([{incoming:function(t,n){e.onMessage(t,n)},callback:function(t){e.onReady&&e.onReady(t)}}])),n=getLocation(e.remote);this.origin=getLocation(e.remote),this.destroy=function(){t.destroy()},this.postMessage=function(e){t.outgoing(e,n)},t.init()},w.Rpc=function(e,t){if(t.local){for(var n in t.local)if(t.local.hasOwnProperty(n)){var r=t.local[n];"function"==typeof r&&(t.local[n]={method:r})}}var o=chainStack(prepareTransportStack(e).concat([new w.stack.RpcBehavior(this,t),{callback:function(t){e.onReady&&e.onReady(t)}}]));this.origin=getLocation(e.remote),this.destroy=function(){o.destroy()},o.init()},w.stack.SameOriginTransport=function(e){var t,n,i,a;return t={outgoing:function(e,t,n){i(e),n&&n()},destroy:function(){n&&(n.parentNode.removeChild(n),n=null)},onDOMReady:function(){a=getLocation(e.remote),e.isHost?(apply(e.props,{src:appendQueryParameters(e.remote,{xdm_e:r.protocol+"//"+r.host+r.pathname,xdm_c:e.channel,xdm_p:4}),name:g+e.channel+"_provider"}),n=createFrame(e),w.Fn.set(e.channel,function(e){return i=e,o(function(){t.up.callback(!0)},0),function(e){t.up.incoming(e,a)}})):(i=getParentObject().Fn.get(e.channel,!0)(function(e){t.up.incoming(e,a)}),o(function(){t.up.callback(!0)},0))},init:function(){whenReady(t.onDOMReady,t)}}},w.stack.FlashTransport=function(e){var t,i,s,u,l;function onMessage(e,n){o(function(){t.up.incoming(e,s)},0)}function addSwf(t){var r=e.swf+"?host="+e.isHost,o="easyXDM_swf_"+Math.floor(1e4*Math.random());w.Fn.set("flash_loaded"+t.replace(/[\-.]/g,"_"),function(){w.stack.FlashTransport[t].swf=u=l.firstChild;for(var e=w.stack.FlashTransport[t].queue,n=0;n"}return t={outgoing:function(t,n,r){u.postMessage(e.channel,t.toString()),r&&r()},destroy:function(){try{u.destroyChannel(e.channel)}catch(e){}u=null,i&&(i.parentNode.removeChild(i),i=null)},onDOMReady:function(){s=e.remote,w.Fn.set("flash_"+e.channel+"_init",function(){o(function(){t.up.callback(!0)})}),w.Fn.set("flash_"+e.channel+"_onMessage",onMessage),e.swf=resolveUrl(e.swf);var n=getDomainName(e.swf),fn=function(){w.stack.FlashTransport[n].init=!0,(u=w.stack.FlashTransport[n].swf).createChannel(e.channel,e.secret,getLocation(e.remote),e.isHost),e.isHost&&(A&&e.swfNoThrottle&&apply(e.props,{position:"fixed",right:0,top:0,height:"20px",width:"20px"}),apply(e.props,{src:appendQueryParameters(e.remote,{xdm_e:getLocation(r.href),xdm_c:e.channel,xdm_p:6,xdm_s:e.secret}),name:g+e.channel+"_provider"}),i=createFrame(e))};w.stack.FlashTransport[n]&&w.stack.FlashTransport[n].init?fn():w.stack.FlashTransport[n]?w.stack.FlashTransport[n].queue.push(fn):(w.stack.FlashTransport[n]={queue:[fn]},addSwf(n))},init:function(){whenReady(t.onDOMReady,t)}}},w.stack.PostMessageTransport=function(e){var n,i,a,s;function _getOrigin(e){if(e.origin)return getLocation(e.origin);if(e.uri)return getLocation(e.uri);if(e.domain)return r.protocol+"//"+e.domain;throw"Unable to retrieve the origin of the event"}function _window_onMessage(t){var r=_getOrigin(t);r==s&&t.data.substring(0,e.channel.length+1)==e.channel+" "&&n.up.incoming(t.data.substring(e.channel.length+1),r)}return n={outgoing:function(t,n,r){a.postMessage(e.channel+" "+t,n||s),r&&r()},destroy:function(){P(t,"message",_window_onMessage),i&&(a=null,i.parentNode.removeChild(i),i=null)},onDOMReady:function(){if(s=getLocation(e.remote),e.isHost){var waitForReady=function(r){r.data==e.channel+"-ready"&&(a="postMessage"in i.contentWindow?i.contentWindow:i.contentWindow.document,P(t,"message",waitForReady),E(t,"message",_window_onMessage),o(function(){n.up.callback(!0)},0))};E(t,"message",waitForReady),apply(e.props,{src:appendQueryParameters(e.remote,{xdm_e:getLocation(r.href),xdm_c:e.channel,xdm_p:1}),name:g+e.channel+"_provider"}),i=createFrame(e)}else E(t,"message",_window_onMessage),(a="postMessage"in t.parent?t.parent:t.parent.document).postMessage(e.channel+"-ready",s),o(function(){n.up.callback(!0)},0)},init:function(){whenReady(n.onDOMReady,n)}}},w.stack.FrameElementTransport=function(e){var i,a,s,c;return i={outgoing:function(e,t,n){s.call(this,e),n&&n()},destroy:function(){a&&(a.parentNode.removeChild(a),a=null)},onDOMReady:function(){c=getLocation(e.remote),e.isHost?(apply(e.props,{src:appendQueryParameters(e.remote,{xdm_e:getLocation(r.href),xdm_c:e.channel,xdm_p:5}),name:g+e.channel+"_provider"}),(a=createFrame(e)).fn=function(e){return delete a.fn,s=e,o(function(){i.up.callback(!0)},0),function(e){i.up.incoming(e,c)}}):(n.referrer&&getLocation(n.referrer)!=L.xdm_e&&(t.top.location=L.xdm_e),s=t.frameElement.fn(function(e){i.up.incoming(e,c)}),i.up.callback(!0))},init:function(){whenReady(i.onDOMReady,i)}}},w.stack.NameTransport=function(e){var t,n,r,i,a,s,c,u;function _sendMessage(t){var o=e.remoteHelper+(n?"#_3":"#_2")+e.channel;r.contentWindow.sendMessage(t,o)}function _onReady(){n?(2==++a||!n)&&t.up.callback(!0):(_sendMessage("ready"),t.up.callback(!0))}function _onMessage(e){t.up.incoming(e,c)}function _onLoad(){s&&o(function(){s(!0)},0)}return t={outgoing:function(e,t,n){s=n,_sendMessage(e)},destroy:function(){r.parentNode.removeChild(r),r=null,n&&(i.parentNode.removeChild(i),i=null)},onDOMReady:function(){n=e.isHost,a=0,c=getLocation(e.remote),e.local=resolveUrl(e.local),n?(w.Fn.set(e.channel,function(t){n&&"ready"===t&&(w.Fn.set(e.channel,_onMessage),_onReady())}),u=appendQueryParameters(e.remote,{xdm_e:e.local,xdm_c:e.channel,xdm_p:2}),apply(e.props,{src:u+"#"+e.channel,name:g+e.channel+"_provider"}),i=createFrame(e)):(e.remoteHelper=e.remote,w.Fn.set(e.channel,_onMessage));var onLoad=function(){var t=r||this;P(t,"load",onLoad),w.Fn.set(e.channel+"_load",_onLoad),!function test(){"function"==typeof t.contentWindow.sendMessage?_onReady():o(test,50)}()};r=createFrame({props:{src:e.local+"#_4"+e.channel},onLoad:onLoad})},init:function(){whenReady(t.onDOMReady,t)}}},w.stack.HashTransport=function(e){var n,r,i,a,s,c,u,l,p,d;function _sendMessage(t){if(!!l){var n=e.remote+"#"+c+++"_"+t;(r||!p?l.contentWindow:l).location=n}}function _handleHash(e){s=e,n.up.incoming(s.substring(s.indexOf("_")+1),d)}function _pollHash(){if(!!u){var e=u.location.href,t="",n=e.indexOf("#");-1!=n&&(t=e.substring(n)),t&&t!=s&&_handleHash(t)}}function _attachListeners(){i=setInterval(_pollHash,a)}return n={outgoing:function(e,t){_sendMessage(e)},destroy:function(){t.clearInterval(i),(r||!p)&&l.parentNode.removeChild(l),l=null},onDOMReady:function(){if(r=e.isHost,a=e.interval,s="#"+e.channel,c=0,p=e.useParent,d=getLocation(e.remote),r){if(apply(e.props,{src:e.remote,name:g+e.channel+"_provider"}),p)e.onLoad=function(){u=t,_attachListeners(),n.up.callback(!0)};else{var i=0,f=e.delay/50;!function getRef(){if(++i>f)throw Error("Unable to reference listenerwindow");try{u=l.contentWindow.frames[g+e.channel+"_consumer"]}catch(e){}u?(_attachListeners(),n.up.callback(!0)):o(getRef,50)}()}l=createFrame(e)}else u=t,_attachListeners(),p?(l=parent,n.up.callback(!0)):(apply(e,{props:{src:e.remote+"#"+e.channel+new Date,name:g+e.channel+"_consumer"},onLoad:function(){n.up.callback(!0)}}),l=createFrame(e))},init:function(){whenReady(n.onDOMReady,n)}}},w.stack.ReliableBehavior=function(e){var t,n,r=0,o=0,i="";return t={incoming:function(e,a){var s=e.indexOf("_"),c=e.substring(0,s).split(",");e=e.substring(s+1),c[0]==r&&(i="",n&&n(!0)),e.length>0&&(t.down.outgoing(c[1]+","+r+"_"+i,a),o!=c[1]&&(o=c[1],t.up.incoming(e,a)))},outgoing:function(e,a,s){i=e,n=s,t.down.outgoing(o+","+ ++r+"_"+e,a)}}},w.stack.QueueBehavior=function(e){var t,n,r=[],s=!0,c="",u=0,l=!1,p=!1;function dispatch(){if(e.remove&&0===r.length){removeFromStack(t);return}if(!s&&0!==r.length&&!n){s=!0;var i=r.shift();t.down.outgoing(i.data,i.origin,function(e){s=!1,i.callback&&o(function(){i.callback(e)},0),dispatch()})}}return t={init:function(){undef(e)&&(e={}),e.maxLength&&(u=e.maxLength,p=!0),e.lazy?l=!0:t.down.init()},callback:function(e){s=!1;var n=t.up;dispatch(),n.callback(e)},incoming:function(n,r){if(p){var o=n.indexOf("_"),a=parseInt(n.substring(0,o),10);c+=n.substring(o+1),0===a&&(e.encode&&(c=i(c)),t.up.incoming(c,r),c="")}else t.up.incoming(n,r)},outgoing:function(n,o,i){e.encode&&(n=a(n));var s,c=[];if(p){for(;0!==n.length;)s=n.substring(0,u),n=n.substring(s.length),c.push(s);for(;s=c.shift();)r.push({data:c.length+"_"+s,origin:o,callback:0===c.length?i:null})}else r.push({data:n,origin:o,callback:i});l?t.down.init():dispatch()},destroy:function(){n=!0,t.down.destroy()}}},w.stack.VerifyBehavior=function(e){var t,n,r;function startVerification(){n=Math.random().toString(16).substring(2),t.down.outgoing(n)}return t={incoming:function(o,i){var a=o.indexOf("_");-1===a?o===n?t.up.callback(!0):!r&&(r=o,!e.initiate&&startVerification(),t.down.outgoing(o)):o.substring(0,a)===r&&t.up.incoming(o.substring(a+1),i)},outgoing:function(e,r,o){t.down.outgoing(n+"_"+e,r,o)},callback:function(t){e.initiate&&startVerification()}}},w.stack.RpcBehavior=function(e,t){var n,r=t.serializer||getJSON(),o=0,i={};function _send(e){e.jsonrpc="2.0",n.down.outgoing(r.stringify(e))}function _createMethod(e,t){var n=Array.prototype.slice;return function(){var r,a=arguments.length,s={method:t};a>0&&"function"==typeof arguments[a-1]?(a>1&&"function"==typeof arguments[a-2]?(r={success:arguments[a-2],error:arguments[a-1]},s.params=n.call(arguments,0,a-2)):(r={success:arguments[a-1]},s.params=n.call(arguments,0,a-1)),i[""+ ++o]=r,s.id=o):s.params=n.call(arguments,0),e.namedParams&&1===s.params.length&&(s.params=s.params[0]),_send(s)}}function _executeMethod(e,t,n,r){if(!n){t&&_send({id:t,error:{code:-32601,message:"Procedure not found."}});return}t?(o=function(e){o=l,_send({id:t,result:e})},i=function(e,n){i=l;var r={id:t,error:{code:-32099,message:e}};n&&(r.error.data=n),_send(r)}):o=i=l,!isArray(r)&&(r=[r]);try{var o,i,a=n.method.apply(n.scope,r.concat([o,i]));!undef(a)&&o(a)}catch(e){i(e.message)}}return n={incoming:function(e,n){var o=r.parse(e);if(o.method)t.handle?t.handle(o,_send):_executeMethod(o.method,o.id,t.local[o.method],o.params);else{var a=i[o.id];o.error?a.error&&a.error(o.error):a.success&&a.success(o.result),delete i[o.id]}},init:function(){if(t.remote)for(var r in t.remote)t.remote.hasOwnProperty(r)&&(e[r]=_createMethod(t.remote[r],r));n.down.init()},destroy:function(){for(var r in t.remote)t.remote.hasOwnProperty(r)&&e.hasOwnProperty(r)&&delete e[r];n.down.destroy()}}},e.exports=w}(window,document,location,window.setTimeout,decodeURIComponent,encodeURIComponent)},22767:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function toObject(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};if("abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},o)).join(""))return!1;return!0}catch(e){return!1}}e.exports=shouldUseNative()?Object.assign:function(e,o){for(var i,a,s=toObject(e),c=1;ck.length&&k.push(e)}function T(e,t,n,r){var o=typeof e;("undefined"===o||"boolean"===o)&&(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return n(r,e,""===t?"."+U(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;ceb,difference:()=>e3,isError:()=>j,rest:()=>rest_rest,partition:()=>e0,isFinite:()=>isFinite_isFinite,size:()=>size,templateSettings:()=>eS,omit:()=>e2,reject:()=>reject,random:()=>random,unzip:()=>unzip,includes:()=>contains,VERSION:()=>o,object:()=>object_object,take:()=>first,template:()=>template_template,isSymbol:()=>B,some:()=>some,matcher:()=>matcher_matcher,throttle:()=>throttle,countBy:()=>eY,iteratee:()=>iteratee_iteratee,intersection:()=>intersection,forEach:()=>each,each:()=>each,find:()=>find,mapObject:()=>mapObject,isEmpty:()=>isEmpty,sortBy:()=>sortBy,contains:()=>contains,sortedIndex:()=>sortedIndex_sortedIndex,unique:()=>uniq,findIndex:()=>eF,isDataView:()=>et,uniq:()=>uniq,chunk:()=>chunk,isArrayBuffer:()=>D,pick:()=>e1,chain:()=>chain,foldr:()=>eJ,invoke:()=>eK,filter:()=>filter,isMap:()=>e_,isNull:()=>isNull,head:()=>first,result:()=>result_result,tap:()=>tap,defer:()=>eW,delay:()=>eB,methods:()=>functions,findLastIndex:()=>eV,initial:()=>initial_initial,last:()=>last_last,noop:()=>noop,memoize:()=>memoize_memoize,restArguments:()=>restArguments,debounce:()=>debounce,every:()=>every,isString:()=>k,toPath:()=>toPath,escape:()=>eO,lastIndexOf:()=>eH,without:()=>e6,flatten:()=>flatten_flatten,shuffle:()=>shuffle,mixin:()=>mixin,isNaN:()=>isNaN_isNaN,keys:()=>keys_keys,now:()=>eP,drop:()=>rest_rest,isMatch:()=>isMatch,pairs:()=>pairs_pairs,bind:()=>ej,include:()=>contains,isBoolean:()=>isBoolean,allKeys:()=>allKeys,tail:()=>rest_rest,defaults:()=>eE,detect:()=>find,toArray:()=>toArray,zip:()=>e8,after:()=>after,isRegExp:()=>L,transpose:()=>unzip,sample:()=>sample_sample,select:()=>filter,bindAll:()=>e$,map:()=>map_map,where:()=>where,indexOf:()=>ez,isObject:()=>isObject,groupBy:()=>eX,unescape:()=>eT,union:()=>e5,first:()=>first,get:()=>get,invert:()=>invert,values:()=>values_values,create:()=>create,foldl:()=>eG,isArray:()=>en,isEqual:()=>isEqual,isArguments:()=>eo,inject:()=>eG,reduce:()=>eG,findWhere:()=>findWhere,identity:()=>identity,isElement:()=>isElement,negate:()=>negate,before:()=>before,isDate:()=>I,assign:()=>eA,compose:()=>compose,times:()=>times_times,functions:()=>functions,isTypedArray:()=>ec,any:()=>some,isUndefined:()=>isUndefined,isWeakSet:()=>ey,max:()=>max_max,property:()=>property,uniqueId:()=>uniqueId,all:()=>every,clone:()=>clone,constant:()=>constant,isNumber:()=>x,isWeakMap:()=>eg,compact:()=>compact,once:()=>eD,isSet:()=>ev,wrap:()=>wrap,default:()=>e7,has:()=>has_has,min:()=>min_min,reduceRight:()=>eJ,pluck:()=>pluck,isFunction:()=>J,collect:()=>map_map,findKey:()=>findKey,partial:()=>eN,indexBy:()=>eQ,range:()=>range_range,propertyOf:()=>propertyOf,matches:()=>matcher_matcher,extendOwn:()=>eA});var r={};n.r(r),n.d(r,{VERSION:()=>o,after:()=>after,all:()=>every,allKeys:()=>allKeys,any:()=>some,assign:()=>eA,before:()=>before,bind:()=>ej,bindAll:()=>e$,chain:()=>chain,chunk:()=>chunk,clone:()=>clone,collect:()=>map_map,compact:()=>compact,compose:()=>compose,constant:()=>constant,contains:()=>contains,countBy:()=>eY,create:()=>create,debounce:()=>debounce,default:()=>e9,defaults:()=>eE,defer:()=>eW,delay:()=>eB,detect:()=>find,difference:()=>e3,drop:()=>rest_rest,each:()=>each,escape:()=>eO,every:()=>every,extend:()=>eb,extendOwn:()=>eA,filter:()=>filter,find:()=>find,findIndex:()=>eF,findKey:()=>findKey,findLastIndex:()=>eV,findWhere:()=>findWhere,first:()=>first,flatten:()=>flatten_flatten,foldl:()=>eG,foldr:()=>eJ,forEach:()=>each,functions:()=>functions,get:()=>get,groupBy:()=>eX,has:()=>has_has,head:()=>first,identity:()=>identity,include:()=>contains,includes:()=>contains,indexBy:()=>eQ,indexOf:()=>ez,initial:()=>initial_initial,inject:()=>eG,intersection:()=>intersection,invert:()=>invert,invoke:()=>eK,isArguments:()=>eo,isArray:()=>en,isArrayBuffer:()=>D,isBoolean:()=>isBoolean,isDataView:()=>et,isDate:()=>I,isElement:()=>isElement,isEmpty:()=>isEmpty,isEqual:()=>isEqual,isError:()=>j,isFinite:()=>isFinite_isFinite,isFunction:()=>J,isMap:()=>e_,isMatch:()=>isMatch,isNaN:()=>isNaN_isNaN,isNull:()=>isNull,isNumber:()=>x,isObject:()=>isObject,isRegExp:()=>L,isSet:()=>ev,isString:()=>k,isSymbol:()=>B,isTypedArray:()=>ec,isUndefined:()=>isUndefined,isWeakMap:()=>eg,isWeakSet:()=>ey,iteratee:()=>iteratee_iteratee,keys:()=>keys_keys,last:()=>last_last,lastIndexOf:()=>eH,map:()=>map_map,mapObject:()=>mapObject,matcher:()=>matcher_matcher,matches:()=>matcher_matcher,max:()=>max_max,memoize:()=>memoize_memoize,methods:()=>functions,min:()=>min_min,mixin:()=>mixin,negate:()=>negate,noop:()=>noop,now:()=>eP,object:()=>object_object,omit:()=>e2,once:()=>eD,pairs:()=>pairs_pairs,partial:()=>eN,partition:()=>e0,pick:()=>e1,pluck:()=>pluck,property:()=>property,propertyOf:()=>propertyOf,random:()=>random,range:()=>range_range,reduce:()=>eG,reduceRight:()=>eJ,reject:()=>reject,rest:()=>rest_rest,restArguments:()=>restArguments,result:()=>result_result,sample:()=>sample_sample,select:()=>filter,shuffle:()=>shuffle,size:()=>size,some:()=>some,sortBy:()=>sortBy,sortedIndex:()=>sortedIndex_sortedIndex,tail:()=>rest_rest,take:()=>first,tap:()=>tap,template:()=>template_template,templateSettings:()=>eS,throttle:()=>throttle,times:()=>times_times,toArray:()=>toArray,toPath:()=>toPath,transpose:()=>unzip,unescape:()=>eT,union:()=>e5,uniq:()=>uniq,unique:()=>uniq,uniqueId:()=>uniqueId,unzip:()=>unzip,values:()=>values_values,where:()=>where,without:()=>e6,wrap:()=>wrap,zip:()=>e8});var o="1.13.6",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},a=Array.prototype,s=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,u=a.push,l=a.slice,p=s.toString,d=s.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,m="undefined"!=typeof DataView,w=Array.isArray,h=Object.keys,g=Object.create,v=f&&ArrayBuffer.isView,y=isNaN,b=isFinite,A=!({toString:null}).propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],P=0x1fffffffffffff;function restArguments(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o=0&&n<=P}}function shallowProperty(e){return function(t){return null==t?void 0:t[e]}}let ei=shallowProperty("byteLength"),ea=createSizePropertyCheck(ei);var es=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function isTypedArray_isTypedArray(e){return v?v(e)&&!et(e):ea(e)&&es.test(p.call(e))}let ec=f?isTypedArray_isTypedArray:constant(!1),eu=shallowProperty("length");function emulatedSet(e){for(var t={},n=e.length,r=0;r":">",'"':""","'":"'","`":"`"},eO=createEscaper(ek),eT=createEscaper(invert(ek)),eS=_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var eM=/(.)^/,eC={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ex=/\\|'|\r|\n|\u2028|\u2029/g;function escapeChar(e){return"\\"+eC[e]}var eI=/^\s*(\w|\$)+\s*$/;function template_template(e,t,n){!t&&n&&(t=n);var r,o=RegExp([((t=eE({},t,_.templateSettings)).escape||eM).source,(t.interpolate||eM).source,(t.evaluate||eM).source].join("|")+"|$","g"),i=0,a="__p+='";e.replace(o,function(t,n,r,o,s){return a+=e.slice(i,s).replace(ex,escapeChar),i=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(a+="';\n"+o+"\n__p+='"),t}),a+="';\n";var s=t.variable;if(s){if(!eI.test(s))throw Error("variable is not a bare identifier: "+s)}else a="with(obj||{}){\n"+a+"}\n",s="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=Function(s,"_",a)}catch(e){throw e.source=a,e}var template=function(e){return r.call(this,e,_)};return template.source="function("+s+"){\n"+a+"}",template}function result_result(e,t,n){var r=(t=_toPath_toPath(t)).length;if(!r)return J(n)?n.call(e):n;for(var o=0;o1)flatten(s,t-1,n,r),o=r.length;else{for(var c=0,u=s.length;ct?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(o,i),!r&&(o=i=null)):!r&&!1!==n.trailing&&(r=setTimeout(later,u)),a};return throttled.cancel=function(){clearTimeout(r),s=0,r=o=i=null},throttled}function debounce(e,t,n){var r,o,i,a,s,later=function(){var c=eP()-o;t>c?r=setTimeout(later,t-c):(r=null,!n&&(a=e.apply(s,i)),!r&&(i=s=null))},c=restArguments(function(c){return s=this,i=c,o=eP(),!r&&(r=setTimeout(later,t),n&&(a=e.apply(s,i))),a});return c.cancel=function(){clearTimeout(r),r=i=s=null},c}function wrap(e,t){return eN(t,e)}function negate(e){return function(){return!e.apply(this,arguments)}}function compose(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function after(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function before(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}let eD=eN(before,2);function findKey(e,t,n){t=cb(t,n);for(var r,o=keys_keys(e),i=0,a=o.length;i0?0:o-1;i>=0&&i0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return i=n(r,o),r[i]===o?i:-1;if(o!=o)return(i=t(l.call(r,a,s),isNaN_isNaN))>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i0?0:a-1;for(!o&&(r=t[i?i[s]:s],s+=e);s>=0&&s=3;return reducer(e,optimizeCb(t,r,4),n,o)}}let eG=createReduce(1),eJ=createReduce(-1);function filter(e,t,n){var r=[];return t=cb(t,n),each(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r}function reject(e,t,n){return filter(e,negate(cb(t)),n)}function every(e,t,n){t=cb(t,n);for(var r=!eU(e)&&keys_keys(e),o=(r||e).length,i=0;i=0}let eK=restArguments(function(e,t,n){var r,o;return J(t)?o=t:(r=(t=_toPath_toPath(t)).slice(0,-1),t=t[t.length-1]),map_map(e,function(e){var i=o;if(!i){if(r&&r.length&&(e=deepGet(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)})});function pluck(e,t){return map_map(e,property(t))}function where(e,t){return filter(e,matcher_matcher(t))}function max_max(e,t,n){var r,o,i=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=eU(e)?e:values_values(e);for(var s=0,c=e.length;si&&(i=r)}else t=cb(t,n),each(e,function(e,n,r){((o=t(e,n,r))>a||o===-1/0&&i===-1/0)&&(i=e,a=o)});return i}function min_min(e,t,n){var r,o,i=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=eU(e)?e:values_values(e);for(var s=0,c=e.length;sr||void 0===n)return 1;if(n1&&(r=optimizeCb(r,t[1])),t=allKeys(e)):(r=keyInObj,t=flatten(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o1&&(n=t[1])):(t=map_map(flatten(t,!1,!1),String),r=function(e,n){return!contains(t,n)}),e1(e,r,n)});function initial_initial(e,t,n){return l.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function first(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:initial_initial(e,e.length-t)}function rest_rest(e,t,n){return l.call(e,null==t||n?1:t)}function last_last(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:rest_rest(e,Math.max(0,e.length-t))}function compact(e){return filter(e,Boolean)}function flatten_flatten(e,t){return flatten(e,t,!1)}let e3=restArguments(function(e,t){return t=flatten(t,!0,!0),filter(e,function(e){return!contains(t,e)})}),e6=restArguments(function(e,t){return e3(e,t)});function uniq(e,t,n,r){!isBoolean(t)&&(r=n,n=t,t=!1),null!=n&&(n=cb(n,r));for(var o=[],i=[],a=0,s=eu(e);a{var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var o=Object.create(null);__webpack_require__.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(function(e){i[e]=function(){return n[e]}});return i.default=function(){return n},__webpack_require__.d(o,i),o}})(),__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=function(e){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(t,n){return __webpack_require__.f[n](e,t),t},[]))},__webpack_require__.u=function(e){return""+e+"-"+({3074:"a88756e02c1b9d51",633:"7835e1dfbe703d0b",6410:"8b2cce77b3dee1d1",7189:"c14cf07ccf7b813c",7331:"5f88160817df59c1",8199:"da1029fb75ed4247",8492:"274644bcfd685166",9316:"d2e64d3e48fdd367"})[e]+".js"},__webpack_require__.miniCssF=function(e){return""+e+".css"},__webpack_require__.h=function(){return"a60de9d9de706318"},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},(()=>{var e={};__webpack_require__.l=function(t,n,r,o){if(e[t]){e[t].push(n);return}if(void 0!==r){for(var i,a,s=document.getElementsByTagName("script"),c=0;c{var e={2729:0};__webpack_require__.f.j=function(t,n){var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r){if(r)n.push(r[2]);else{var o=new Promise(function(n,o){r=e[t]=[n,o]});n.push(r[2]=o);var i=__webpack_require__.p+__webpack_require__.u(t),a=Error();__webpack_require__.l(i,function(n){if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}},"chunk-"+t,t)}}};var webpackJsonpCallback=function(t,n){var r=n[0],o=n[1],i=n[2],a,s,c=0;if(r.some(function(t){return 0!==e[t]})){for(a in o)__webpack_require__.o(o,a)&&(__webpack_require__.m[a]=o[a]);i&&i(__webpack_require__)}for(t&&t(n);c{"use strict";var e=__webpack_require__("82186"),important_cookies_getImportantCookies=function(e){if(!window.cookieEnabled()){var t=e.meta,n=t.id,r=t.app_namespace;return"popup"===r?["powr_modal_".concat(n),"powr_modal_".concat(n,"_submitted_at")]:"formBuilder"===r?["powr_form_".concat(n)]:[]}};function isEditable(){var e,t,n,r,o=window.getCookie("editables")||"",i=o.split(",").indexOf(null===(e=window.META)||void 0===e?void 0:e.id.toString())>=0,a=o.split(",").indexOf(null===(t=window.META)||void 0===t?void 0:t.hashid)>=0,s=(null===(n=window.META)||void 0===n?void 0:n.unique_label)||window.uniqueLabel(),c=o.split(",").indexOf(s)>=0;return i||c||a||!(null!==(r=window.META)&&void 0!==r&&r.saved)}function isSsrApp(){var e;return(null===(e=window.META)||void 0===e?void 0:e.ssr)===!0}function isSsrInWixEditor(){var e;return isSsrApp()&&(null===(e=window.META)||void 0===e?void 0:e.external_id_type)==="wix"&&"editor"===window.VIEW_MODE}function isWebComponentRenderedInRailsView(){return new URLSearchParams(location.search).has("render_web_component")}var t=__webpack_require__("15937"),url_helper_getBaseUrl=function(e){var t;if(e){switch(e.toLowerCase()){case"production":t="https://www.powr.io";break;case"staging":t="https://www.powr-staging.io";break;case"development":t="https://localhost:3000";break;default:console.error("not a valid powr environment")}return t}},n=__webpack_require__(51932),r=(0,e.getHostPrefix)(window);function loadView(e){if(void 0!==window.META){window.name=window.META.id;var t=void 0!==e&&void 0!=e.use_backup_content&&e.use_backup_content,n=void 0!==e&&void 0!=e.app_el?e.app_el:$("#appView");for(var r in GLOBALS)window[r]=GLOBALS[r];var o=window.META.app_type+"AppModel";if(["wixReview","wixStaging","wixLocal"].includes(window.META.app_type)&&(o="".concat(window.META.app_namespace,"AppModel")),window.META.soft_alias&&(window[o]=window[window.META.app_namespace+"AppModel"]),("development"==window.ENVIRONMENT||"staging"==window.ENVIRONMENT)&&initializePlatformsForQA(),window.APP_MODEL=new window[o],t)for(var r in BACKUP_CONTENT)"undefined"!=BACKUP_CONTENT[r]&&window.APP_MODEL.set(r,BACKUP_CONTENT[r]);else for(var r in CONTENT)"undefined"!=CONTENT[r]&&window.APP_MODEL.set(r,CONTENT[r]);for(var r in window.APP_MODEL.meta={},window.META)"undefined"!=window.META[r]&&(window.APP_MODEL.meta[r]=window.META[r]);window.APP_MODEL.afterMount(),window.META.password_protected_template&&$("body").append(window.META.password_protected_template),window.APP_VIEW=new window[window.META.app_namespace+"AppView"]({el:"#"+n.attr("id"),model:window.APP_MODEL}),$.inArray(window.META.external_id_type,["weebly-integrated","design-editor","webydo","bookmark","cloudflare","wordpress","sharethis"])>-1&&(debug()("Updating through local storage"),setInterval(function(){if(void 0===window.META)return;var e=window.getLocalStorage("powr_data_"+window.META.id);if(void 0!=e&&null!=e&&"null"!=e){for(var t in e=JSON.parse(e),window.APP_MODEL.get("locals"),e.content)if("locals"==t)for(var n in e.content.locals)window.APP_MODEL.attributes.locals[n]=e.content.locals[n];else window.APP_MODEL.attributes[t]=e.content[t];"undefined"!=typeof PLATFORM_DATA&&loadPlatformData(PLATFORM_DATA,{render:!1}),window.APP_VIEW.render(),window.removeLocalStorage("powr_data_"+window.META.id)}},100)),loadViewInitializers()}}function canEditOnVcdn(){var e=window.getCookie("editables");if(!e||e.length<=1)return!1;var t=window.META.id.toString();return e.split(",").includes(t)}function loadViewInitializers(){"free"==window.META.premium_status&&$(".loadingWrapper").show(),(window.META.edit_me||canEditOnVcdn())&&("jimdo"==window.META.external_id_type&&$("#editMe").css({marginTop:"20px"}),$("#editMe").fadeIn("fast"),new MutationObserver(function(){if(["formBuilder","popup"].includes(window.META.app_namespace)){var e=window.APP_VIEW.model.get("locals"),t=e.displayMode,n=e.hideEditMe;["tab","floatingButton"].indexOf(t)>-1||n?$("#editMe").hide():$("#editMe").show()}else"chat"==window.META.app_namespace&&($(".chattyAppy").is(":visible")?($("#editMe").show(),$("#editMe").css({position:"absolute"})):($("#editMe").hide(),$("#editMe").css({position:"static"})))}).observe($("#appView")[0],{subtree:!0,attributes:!0})),console.log("referrer:",document.referrer,document.referrer.indexOf("plugins/form-builder/templates")),-1!=document.referrer.indexOf("plugins/form-builder/templates")&&$("#editMe, .bottom-nav.js-hide-if-pos, .js-failed-payments-overlay, .js-wix-blocked-content,\n .js-watermark, .js-unclaimed-watermark, #unblockedFeaturesPopup, .powrMark, .markOfPowr").hide(),$('link[rel="canonical"]').attr("href",baseUri()+"/plugins/"+window.META.app_slug+"/view?id="+window.META.id),window.META.admin_debug_panel&&$("body").append(window.META.admin_debug_panel);var e=getURLParameter("mode");if("page"==e||"#page"===window.location.hash||window.location.href.includes("%23page")){var t=window.isMobile()?"5% 10px":"5% 15%";$("html").css({overflow:"auto"}),$("#appView").css({margin:t})}else"scroll"==e||"#scroll"===window.location.hash||window.location.href.includes("%23scroll")?$("html").css({overflow:"auto"}):$("html").css({overflow:"hidden"})}function loadViewListeners(){try{window.APP_SOCKET=new n.Socket({onMessage:function(e){var t=JSON.parse(e);debug()("Message in app:",t),t.action&&"activate"==t.action?$("#editMe").fadeIn():t.action&&"deactivate"==t.action&&$("#editMe").fadeOut()}})}catch(e){debug()("Could not establish socket connection: "+e)}function windowMessageReceived(e){debug()("View received settings, evt is",e);try{var t,n=JSON.parse(e.data)}catch(e){return debug()("Couldn't json parse data: ",e),!1}var n=JSON.parse(e.data);if("loaded"==n.message){var _setParentOrigin=function(){window.PARENT_ORIGIN=e.origin,window.IFRAME_INDEX=n.data.iframe_index,void 0===window.APP_MODEL?setTimeout(_setParentOrigin,50):window.APP_MODEL.setLocals({parent_origin:e.origin,iframe_index:n.data.iframe_index,parent_window_height:n.data.parent_window_height,parent_window_width:n.data.parent_window_width})},_notifyParentViewLoaded=function(){if(void 0===window.APP_MODEL)setTimeout(_notifyParentViewLoaded,50);else{var t={message:"viewLoaded",data:{iframe_index:n.data.iframe_index}};t.data.cookiesToGet=important_cookies_getImportantCookies(window.APP_MODEL),parent.postMessage(JSON.stringify(t),e.origin)}};window.POWR_METAFIELDS=n.data.powrMetafields,window.POWR_SHOP_METAFIELDS=n.data.powrShopMetafields,window.PARENT_WINDOW_LOCATION=n.data.parentWindowLocation,debug()("View received settings loaded. Evt origin is ",e.origin),_setParentOrigin(),_notifyParentViewLoaded(),void 0!==window.APP_VIEW&&window.APP_VIEW.postSizeToSocket(),handleLastViewLogicForVcdn()}if("loadView"==n.message)window.META=n.data.meta,window.GLOBALS=n.data.globals,window.CONTENT=n.data.content,loadView(),window.APP_MODEL.setLocals({parent_origin:e.origin,iframe_index:n.data.iframe_index});else if("showEdit"==n.message)$("#editMe, .adminAppInfo").fadeIn();else if("hideEdit"==n.message)$("#editMe, .adminAppInfo").hide();else if("update"==n.message&&window.APP_MODEL){for(var r in window.APP_MODEL.get("locals"),n.data.content)if("locals"==r)for(var o in n.data.content.locals)window.APP_MODEL.attributes.locals[o]=n.data.content.locals[o];else window.APP_MODEL.attributes[r]=n.data.content[r];window.APP_VIEW.render()}else"triggerPowrPopupClick"==n.message||"exitDocument"==n.message?window.APP_VIEW.openModal&&window.APP_VIEW.openModal(n.message):"triggerPowrPopupAfterInactivity"==n.message&&null!==(t=window.APP_VIEW)&&void 0!==t&&t.triggerPowrPopupAfterInactivity?window.APP_VIEW.triggerPowrPopupAfterInactivity():"platformData"==n.message?(loadPlatformData(n.data),window.PLATFORM_DATA=n.data):"scrollPosition"==n.message&&window.APP_VIEW.receiveScrollPosition?window.APP_VIEW.receiveScrollPosition(n.scrollPercentage):"cookiesSent"===n.message&&(window.COOKIES=window.COOKIES.concat(n.cookies),window.APP_VIEW&&window.APP_VIEW.render())}function hideTellMore(){$(".angryRate").hasClass("tellMoreOpened")&&($(".rateUsTellMore").hide(),$(".submitRateUs").hide(),$(".angryRate").toggleClass("tellMoreOpened")),$(".mehRate").hasClass("tellMoreOpened")&&($(".rateUsTellMore").hide(),$(".submitRateUs").hide(),$(".mehRate").toggleClass("tellMoreOpened"))}function convertEmojiReviewToInteger(e){switch(e){case"angry":return 1;case"meh":return 3;case"grin":return 5}}function createReview(e){var t="grin"==e?"":$(".rateUsTextArea").val();window.ajaxController({url:"/reviews",data:{app_id:window.META.id,review:convertEmojiReviewToInteger(e),feedback:t,review_location:"live site"}})}function editMePopover(){$("#editMe").popover({html:!0,trigger:"hover",delay:{hide:850},viewport:{selector:"#apps-view",padding:0},template:''})}if(window.addEventListener?window.addEventListener("message",windowMessageReceived):window.attachEvent("onmessage",windowMessageReceived),$(document).on("click",".js-launchPopoutSettings, .js-unclaimed-cta",function(){if(void 0!==window.SETTINGS_WINDOW&&window.SETTINGS_WINDOW.close&&window.SETTINGS_WINDOW.close(),"popup"===window.META.app_namespace){window.open("".concat(r,"/plugins/").concat(window.META.app_slug,"/standalone?id=").concat(window.META.id));return}var e=Math.round(.9*screen.height),t=Math.round(screen.width-400-.1*screen.width),n="".concat(r,"/apps/").concat(window.META.app_type,"/settings?id=").concat(window.META.true_id,"&demo_mode=").concat(window.META.demo_mode,"§ion=popup");void 0!=window.META.template&&(n+="&template="+window.META.template),$(this).hasClass("js-unclaimed-cta")&&(n+="&triggerSignup=true"),window.SETTINGS_WINDOW=window.open(n,"POWr Editor","width=400,height="+e+",top=-1000,left="+t+",location=no,status=no","false")}),$(".js-update-payment-info-cta").click(function(){return window.open("".concat(r,"/users/me/account?tab=payment_info"))}),$(".js-upgrade-powr-one-cta").click(function(){return window.open(window.platformUri())}),$("#editMeEditApp").on("click",function(){var e=window.META.app_namespace;if(!("formBuilder"===e||"popup"===e)){var n=(0,t.q7)();if(n.includes("weebly")||n.includes("jimdo"))return window.open("".concat(r,"/plugins/").concat(window.META.app_slug,"/standalone?id=").concat(window.META.id))}$(this).toggleClass("listOpened"),$(".editMeMenu").is(":hidden")?$(".js-editMeMenu").stop().fadeIn(100,function(){window.APP_VIEW.postSizeToSocket()}):$(".js-editMeMenu").stop().fadeOut(100,function(){window.APP_VIEW.postSizeToSocket()}),$(".rateUsMenu").is(":visible")&&($(".js-rateUsMenu").stop().fadeOut(100,function(){window.APP_VIEW.postSizeToSocket()}),$("#editMeRateUs").toggleClass("listOpened")),hideTellMore()}),$("#editMeRateUs").on("click",function(){$(this).toggleClass("listOpened"),$(".rateUsMenu").is(":hidden")?$(".js-rateUsMenu").stop().fadeIn(100,function(){window.APP_VIEW.postSizeToSocket()}):($(".js-rateUsMenu").stop().fadeOut(100,function(){window.APP_VIEW.postSizeToSocket()}),hideTellMore()),$(".editMeMenu").is(":visible")&&($(".js-editMeMenu").stop().fadeOut(100,function(){window.APP_VIEW.postSizeToSocket()}),$("#editMeEditApp").toggleClass("listOpened"))}),$(document).mouseup(function(e){var t=$("#editMe");!t.is(e.target)&&0===t.has(e.target).length&&($(".editMeMenu").is(":visible")&&($(".js-editMeMenu").stop().fadeOut(100,function(){window.APP_VIEW.postSizeToSocket()}),$("#editMeEditApp").toggleClass("listOpened")),$(".rateUsMenu").is(":visible")&&($(".js-rateUsMenu").stop().fadeOut(100,function(){window.APP_VIEW.postSizeToSocket()}),$("#editMeRateUs").toggleClass("listOpened"),hideTellMore()))}),$(".angryRate").on("click",function(){$(".angryRate").hasClass("tellMoreOpened")?hideTellMore():($(".rateUsTellMore").show(),$(".submitRateUs").show(),$(".angryRate").toggleClass("tellMoreOpened"),$(".mehRate").hasClass("tellMoreOpened")&&$(".mehRate").toggleClass("tellMoreOpened"))}),$(".js-rateUsMeh").on("click",function(){$(".mehRate").hasClass("tellMoreOpened")?hideTellMore():($(".rateUsTellMore").show(),$(".submitRateUs").show(),$(".mehRate").toggleClass("tellMoreOpened"),$(".angryRate").hasClass("tellMoreOpened")&&$(".angryRate").toggleClass("tellMoreOpened"))}),$(".submitRateUs").on("click",function(){if($(".rateUsTextArea").val().length<=10)$(".warning-msg-rate-Us").show();else{var e,t=$(".mehRate").hasClass("tellMoreOpened")?"Meh":"Angry",n={url:"/apps/".concat(null===(e=window.META)||void 0===e?void 0:e.id,"/submit_zendesk"),data:{review_text:t+"rate: "+$(".rateUsTextArea").val(),url:window.location.href},type:"POST"};window.ajaxController(n,function(){}),createReview(t.toLowerCase()),$(".mehRate").hasClass("tellMoreOpened")?$(".mehRate").toggleClass("submitedMeh"):$(".angryRate").toggleClass("submitedAngry"),$(".thankYou").show(),$(".closeRateUs").show(),$(".rateUsTellMore").hide(),$(".rateUsBtnGroup").hide(),$(".warning-msg-rate-Us").hide(),$(".rateUsMenu__item").prop("disabled",!0)}}),$(".js-rateUsSmile").on("click",function(){var t=document.location.toString().split("#platform=")[1]||document.location.toString().split(/\&external_type=(.*?)\&/)[1]||"html";$(".js-rateUsSmile").toggleClass("submitedSmile"),"squarespace"===t.toLowerCase()?window.open("".concat(e.SQUARE_SPACE_REVIEW_LINK).concat(window.META.app_slug)):window.open("".concat(r,"/review?src=user_site&app_id=").concat(window.META.id,"&platform=").concat(t,"&app=").concat(window.META.app_slug)),createReview("grin"),hideTellMore(),$(".rateUsBtnGroup").hide(),$(".thankYou").show(),$(".closeRateUs").show(),$(".rateUsMenu__item").prop("disabled",!0)}),$(".cancelRateUs, .closeRateUs").on("click",function(){$(".js-rateUsMenu").stop().fadeOut(100,function(){window.APP_VIEW.postSizeToSocket()}),hideTellMore(),$("#editMeRateUs").toggleClass("listOpened")}),void 0==$(window).popover){setTimeout(function(){editMePopover()},2e3);return}editMePopover();$(document).on("click",".js-launchStandalone",function(){var e="".concat(r,"/plugins/").concat(window.META.app_slug,"/standalone?id=").concat(window.META.id);!0==window.META.powr_one?e="".concat(window.platformUri(),"/apps/").concat(window.META.unique_label):"shopify"===window.META.external_id_type&&window.META.shopify_admin_standalone_url&&(window.META.edit_me||canEditOnVcdn())&&(e=window.META.shopify_admin_standalone_url),window.open(e)}),$(document).on("click",".js-launchResponseDashboard",function(){var e="".concat(r,"/apps/").concat(window.META.id,"/responses");!0==window.META.powr_one&&(e="".concat(window.platformUri(),"/apps/").concat(window.META.unique_label)),window.open(e)}),$(window).on("beforeunload",function(){if(window.APP_MODEL.get("locals").isDirty&&$("#appSettings").length>0)return"You have unsaved work with a POWr Plugin! If you leave this page you will lose any unsaved changes."})}function loadPlatformData(e,t){if(debug()("Trying to load platform data"),void 0===window.APP_MODEL){setTimeout(function(){loadPlatformData(e)},100);return}void 0===t&&(t={render:!0}),debug()("Loading platform data",e);var n=!1,r={};for(var o in e.content)void 0!==window.APP_MODEL.defaults()[o]&&window.APP_MODEL.attributes[o]!=e.content[o]&&(debug()("Default key: "+window.APP_MODEL.defaults()[o]),debug()("Response key: "+e.content[o]),"px"==(window.APP_MODEL.defaults()[o]+"").slice(-2)&&"px"!=(e.content[o]+"").slice(-2)?(window.APP_MODEL.attributes[o]=e.content[o]+"px",r[o]=e.content[o]+"px"):(window.APP_MODEL.attributes[o]=e.content[o],r[o]=e.content[o]),n=!0);n&&t.render&&window.APP_VIEW.render()}function initializeWix(){"undefined"!=typeof WIX_QA_APP_TYPE&&(window.wixStagingAppModel=window[WIX_QA_APP_TYPE+"AppModel"],window.wixLocalAppModel=wixStagingAppModel,window.localDevAppModel=wixStagingAppModel,window.wixIeLocalAppModel=wixStagingAppModel),window.VIEW_MODE=Wix.Utils.getViewMode(),"site"!=VIEW_MODE?loadView({use_backup_content:!0}):loadView({use_backup_content:!1}),Wix.addEventListener(Wix.Events.SETTINGS_UPDATED,function(e){debug()("Wix settings updated:",e),window.APP_MODEL.attributes=e,window.APP_MODEL.meta.saved=!0,isSsrInWixEditor()?window.APP_VIEW.renderSsr():window.APP_VIEW.render()}),Wix.addEventListener(Wix.Events.SITE_PUBLISHED,function(t){debug()("site published"),window.APP_MODEL.doSave({post_params:{wix_published:!0}});var n=window.META||{};(0,e.trackEvent)("app_published",{app_type:n.app_type,app_namespace:n.app_namespace,platform:window.HOST,user_premium_status:n.premium_status})}),Wix.addEventListener(Wix.Events.COMPONENT_DELETED,function(e){debug()("app deleted"),window.APP_MODEL.doSave({post_params:{wix_deleted:!0}})})}function isAppCached(){return $("#wix\\/views-show").length>0}function loadAppViewFromJson(e){if(null==e||!e.success){debug()("Error getting view data");return}if(debug()("Success getting view data"),window.META=e.meta,window.GLOBALS=e.globals,window.CONTENT=e.content,loadView(),isSsrApp()){var t,n;!(null!==(t=window.META)&&void 0!==t&&t.saved)&&0===Object.keys(null!==(n=e.content)&&void 0!==n?n:{}).length&&isWebComponentRenderedInRailsView()&&window.APP_MODEL.doSave()}}function loadAppJson(e){debug()("Calling to get app json. Url is "+e),window.ajaxController({url:e,type:"GET"},loadAppViewFromJson)}function handleLastViewLogicForVcdn(){if(!(!window.location.origin.includes("vcdn.powr")||isEditable())){var e=window.META.id,t=url_helper_getBaseUrl(window.ENVIRONMENT);if(t){var n="".concat(t,"/api/v1/last-viewed-url/").concat(window.META.app_slug,"/").concat(e,"?url=").concat(window.PARENT_WINDOW_LOCATION.split("?")[0]);debug()("Calling to api handle last view logic. App id is "+e),fetch(n)}}}function runLoadView(){if($("#apps-view, #apps-facebook_view").length>0&&(loadView(),loadViewListeners()),$("#apps-cached_view, #apps\\/views-show").length>0){if(debug()("In apps cached view"),loadViewListeners(),"async"==getURLParameter("load"))debug()("Async loading"),window.LOAD_ME_INTERVAL=setInterval(function(){if(void 0===window.META||void 0==window.META){if("undefined"!=typeof PARENT_ORIGIN&&"undefined"!=typeof IFRAME_INDEX){var e={message:"loadMe",data:{iframe_index:IFRAME_INDEX}};parent.postMessage(JSON.stringify(e),PARENT_ORIGIN)}}else clearInterval(LOAD_ME_INTERVAL)},5e3);else{var e="/plugins/".concat(window.APP_DETAILS.slug,"/view.json?"),t=window.getURLParameter("id"),n=window.getURLParameter("unique_label"),r=window.getURLParameter("powr_token"),o=window.getURLParameter("user_label");t?e+="id="+t:n?e+="unique_label=".concat(n,"&powr_token=").concat(r,"&user_label=").concat(o):e+="powr_token=".concat(r,"&user_label=").concat(o);var i=window.getURLParameter("external_type");if(i&&(e+="&external_type=".concat(i)),null==window.META){loadAppJson(e);return}if(!isEditable()){if((null===(a=window.META.cached_view_blocked)||void 0===a?void 0:a.value)===!0){var a,s,c="POWr ".concat(window.META.app_type,"(id=").concat(window.META.id,") cannot be rendered: ");console.error(c+="".concat(null===(s=window.META.cached_view_blocked)||void 0===s?void 0:s.message));return}loadView();return}try{var u={},l=document.location.toString().split("#platform="),p=document.location.ancestorOrigins,d=window.cookielessRequest();if(p){var f=p[p.length-1];u.url=f}else u.url=document.referrer;l.length>=1&&(u.platform=l[1]),u=$.param(u);var m="/raw/".concat(window.META.id,".json?").concat(u);d&&(m="/raw/".concat(window.META.id,"/cookieless.json?").concat(u)),loadAppJson(m)}catch(e){debug()("Error with short json URL endpoint",e)}}}$("#apps-wix_view").length>0&&initializeWix(),$("#apps-wix_cached_view, #wix\\/views-show").length>0&&Wix.getSiteInfo(function(e){var t=e.url,n=null;if("site"===Wix.Utils.getViewMode()&&isAppCached()){var r=isEditable()?"owner":"public";n="/wix/".concat(window.APP_DETAILS.slug,"/").concat(r,".json?").concat(window.originalQuery(),"&url=").concat(e.url)}else n="/plugins/".concat(window.APP_DETAILS.slug,"/wix_view.json?").concat(window.originalQuery(),"&url=").concat(e.url);window.ajaxController({url:n,type:"GET"},function(e){e.success?(window.META=e.meta,window.META.wixSiteUrl=t,window.GLOBALS=e.globals,window.VIEW_MODE=Wix.Utils.getViewMode(),"site"!==VIEW_MODE?window.BACKUP_CONTENT=e.content:window.CONTENT=e.content,isSsrInWixEditor()&&window.connectWebComponentWixEditor&&window.connectWebComponentWixEditor(),initializeWix()):debug()("Error getting wix view data")})})}function runViewSetup(){runLoadView(),"undefined"!=typeof onAppModelViewDefined&&onAppModelViewDefined()}window.COOKIES=[],__webpack_require__(67202),__webpack_require__(51932),__webpack_require__(9956);var o=__webpack_require__(39882).isInGbABTest,i=__webpack_require__(30443).waterMarklinkTracking;$(function(){window.socialMediaIconsAppModel=window.appModel.extend({baseDefaults:function(){var e={data:[{type:"fab-fa-facebook-f",url:""},{type:"fab-fa-x-twitter",url:""},{type:"fab-fa-instagram",url:""}],linkBehavior:"_blank",iconSize:"30px",iconColor:"#000",orientation:"horizontal",hoverEffect:!0,hoverColor:"#FFF",hoverBackgroundColor:"#000",iconBackgroundGradient:!1,iconBackgroundColor:"#FFF",iconBackgroundStartColor:"#DDD",iconBackgroundEndColor:"#333",iconShadow:"none",iconBorderRadius:"3px",iconBorderWidth:"1px",iconBorderColor:"#666",animationEffect:"none",passwordProtectOn:!1,pluginWidth:"1000px",customCSS:"",customJS:"",pluginPosition:"default",pluginPositionOffset:"50%",pluginPositionLocation:"right"};return"wix"==window.HOST&&(e.iconColorWix="color-8",e.iconBackgroundColorWix="color-1",e.hoverColorWix="color-1",e.hoverBackgroundColorWix="color-8",e.iconBorderColorWix="color-8",e.proTipsEmail=""),e},presets:function(){return{iconColor:"color",iconBackgroundColor:"backgroundColor",iconBackgroundStartColor:"backgroundColor",iconBackgroundEndColor:"backgroundColor",hoverColor:"backgroundColor",hoverBackgroundColor:"color",iconBorderColor:"color"}},afterMount:function(){this.updateExistingSocialMediaIcons()},updateExistingSocialMediaIcons:function(){if(window.SOCIAL_MEDIA_ICONS&&window.BACKUP_CONTENT&&window.BACKUP_CONTENT.data){var e=Object.keys(window.SOCIAL_MEDIA_ICONS);window.BACKUP_CONTENT.data.forEach(function(t){if(!window.SOCIAL_MEDIA_ICONS[t.type]){var n=e.find(function(e){return e.includes(t.type)});n&&(t.type=n)}}),this.set({data:window.BACKUP_CONTENT.data})}}}),window.socialMediaIconsAppView=window.baseView.extend({afterInitialize:function(){var e=this;e.model.setLocals({editOnClickMode:e.model.meta.is_standalone}),this.initializeModeChangeHandler(),this.$el.on("click touchstart",".powrMarkAbLink, .partnerMarkAbLink, .powrMarkLink",function(t){e.linkClickTrack(t)})},afterRender:function(){var e=this.model,t=this.$el.find(".icon");this.$el.find(".socialMediaIcons").addClass(e.get("orientation")),t.addClass(e.get("iconShadow")),this.animateIcons(),this.setPosition();this.initializeOpenSettingsHandler(".socialMediaIconsSettings",[".navSettings",".navContent",".navDesign"])},setPosition:function(){var e={position:"unset",zIndex:"unset",top:"unset",right:"unset",bottom:"unset",left:"unset",transform:"none",webkitTransform:"none",width:1e3===parseInt(this.model.get("pluginWidth"))?"100%":this.model.get("pluginWidth")};if("fixed"==this.model.get("pluginPosition")){this.$el.css("width","1000px");var t=this.$el.find(".socialMediaIcons").width()+4;this.$el.css("width","auto"),e.width=t+"px",e.minWidth="unset",e.position="fixed",e.zIndex="9999999";var n=this.model.meta.is_standalone;if(n){var r=$(window).width(),o=$(window).height(),i=parseInt(this.model.get("pluginPositionOffset")),a=400+i*(r-400)/100+"px",s=64+i*(o-64)/100+"px"}switch(this.model.get("pluginPositionLocation")){case"top":n?(e.left=a,e.top="64px"):(e.left=this.model.get("pluginPositionOffset"),e.top=0),e.transform="translateX(-"+parseInt(this.model.get("pluginPositionOffset"))+"%)",e.webkitTransform="translateX(-"+parseInt(this.model.get("pluginPositionOffset"))+"%)";break;case"right":n?e.top=s:e.top=this.model.get("pluginPositionOffset"),e.right=0,e.transform="translateY(-"+parseInt(this.model.get("pluginPositionOffset"))+"%)",e.webkitTransform="translateY(-"+parseInt(this.model.get("pluginPositionOffset"))+"%)";break;case"left":n?(e.top=s,e.left="400px"):(e.top=this.model.get("pluginPositionOffset"),e.left=0),e.transform="translateY(-"+parseInt(this.model.get("pluginPositionOffset"))+"%)",e.webkitTransform="translateY(-"+parseInt(this.model.get("pluginPositionOffset"))+"%)";break;case"bottom":n?e.left=a:e.left=this.model.get("pluginPositionOffset"),e.bottom=0,e.transform="translateX(-"+parseInt(this.model.get("pluginPositionOffset"))+"%)",e.webkitTransform="translateX(-"+parseInt(this.model.get("pluginPositionOffset"))+"%)"}}this.model.setLocals({postCss:e}),this.postSizeToSocket(),n&&this.$el.find(".socialMediaIcons").css(e)},animateIcons:function(){var e=this;window.ANIMATE_SPEED=350,window.DEANIMATE_SPEED=375;var t=e.$el.find(".icon").length*ANIMATE_SPEED+3e3;if("none"!=this.model.get("animationEffect")&&void 0!=this.model.get("animationEffect"))e.$el.find(".icon").removeClass(this.model.get("animationEffect"),!1),setTimeout(function(){e.doAnimation(),"undefined"!=typeof ANIMATE_INTERVAL&&clearInterval(ANIMATE_INTERVAL),window.ANIMATE_INTERVAL=setInterval(function(){e.doAnimation()},t)},1e3)},doAnimation:function(){for(var e=0;e-1&&e.$el.find("[name=orientation]").val("vertical").trigger("forceUpdateComponent")}),e.$el.on("reactUpdateRequest","[name=pluginPositionLocation]",function(){["right","left"].indexOf($(this).val())>-1?e.$el.find("[name=orientation]").val("vertical").trigger("forceUpdateComponent"):["top","bottom"].indexOf($(this).val())>-1&&e.$el.find("[name=orientation]").val("horizontal").trigger("forceUpdateComponent")});var t=__webpack_require__(92851).Z,n=__webpack_require__(57689),r=__webpack_require__(78480).renderReactComponent,i=__webpack_require__(35276).ZG;"wix"===window.HOST&&r(n.createElement(t,{label:i("app_settings.social_media_icons.banner_label"),imgUrl:"https://www.powrcdn.com/plugin_icons_svg/instagramFeed.svg",showCloseBtn:!0,onClick:function(){window.gtag("event","upsell_card_click",{event_label:"wix_smi_to_social_feed"})}}),"#js-promo-banner"),e.$el.on("click",".socialMediaIconsPowrMarkWrapper",function(){e.model.setLocals({openPopover:!0}),e.initializeUpgradePopover(!0),o("socialmediaicons_watermark_position","drilldown_button",!0)})},afterRender:function(){for(var e in o("cross_sell_socialmediaicons_watermark","watermark_test",!0),this.model.get("data")){var t=this.$el.find(".socialAccountsWrapper").addPrototype(null,{speed:"instant"}),n=this.model.get("data")[e];if(t.objectToForm(n),-1!=["snapchat","skype"].indexOf(n.type)){var r=t.find("label")[1];$(r).text(n.type+" username")}if("phone"===n.type){var r=t.find("label")[1];$(r).text("phone number")}}o("socialmediaicons_watermark_position","drilldown_button")&&this.$el.find(".socialMediaIconsPowrMarkWrapper").addPrototype(null,{speed:"instant"}),this.updateConditionals(),this.updatePlaceholders(),this.updateAdminMessage(),this.makeSortable(".socialAccountsWrapper",".sort",!1),this.renderMediaBars(),this.loadNodeImages(this.$el),this.$el.find(".socialAccounts:not(.prototype) .protoOptions").first().addClass("open"),"wix"==HOST&&this.$el.on("click",".removePowrLogoCheckbox, .drill-button-component-removePowrLogo",function(){"Design"==$(".removePowrLogoCheckbox").parent().parent().attr("id")?o("socialmediaicons_watermark_position","control",!0):o("socialmediaicons_watermark_position","content_tab",!0)})},afterUpdate:function(){var e=[];for(var t in this.$el.find(".socialAccounts:not(.prototype)").each(function(){var t=$(this).formToObject(),n=$(this).find("label")[1];if(-1!=["snapchat","skype"].indexOf(t.type))var r=t.type+" username";else if("phone"===t.type)var r="phone number";else var r="url";$(n).text(r),"custom"!=t.type&&delete t.customImg,e.push(t)}),this.updateConditionals(),this.updatePlaceholders(),this.model.attributes.data=e,this.model.triggerChange(),this.updateAdminMessage(),this.renderMediaBars(),this.model.get("data")){var n=this.model.get("data")[t],r=$(this.$el.find(".socialAccounts.prototype-element:not(.prototype)")[t]);"custom"==n.type?r.find(".customImg").removeClass("hid"):!$(this).hasClass("hid")&&r.find(".customImg").addClass("hid")}},updateConditionals:function(){"fixed"==this.model.get("pluginPosition")?(this.$el.find(".positioningDetails").slideDown(),this.$el.find(".pluginWidthDetails").hide()):(this.$el.find(".positioningDetails").hide(),this.$el.find(".pluginWidthDetails").slideDown())},initializeUpgradePopover:function(){var e=this,t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(t){var n=__webpack_require__(81409).Z,r=__webpack_require__(57689),o=__webpack_require__(78480).renderReactComponent,i=document.querySelector(".socialMediaIconsPowrMarkWrapper");o(r.createElement(n,{anchorComponentRef:i,handleCloseOnClick:function(){e.handleCloseOnClickUpgradePopover()},anchorPremiumStatus:"premium"}),"#powrMarkAbUpgradeBanner")}},handleCloseOnClickUpgradePopover:function(){this.model.get("locals").openPopover?this.$el.find("#powrMarkAbUpgradeBanner").removeClass("hidden"):this.$el.find("#powrMarkAbUpgradeBanner").addClass("hidden"),this.model.setLocals({openPopover:!1})},renderMediaBars:function(){var e=this;for(var t in this.model.get("data"))!function(){var n=e.model.get("data")[t],r=$(e.$el.find(".socialAccounts.prototype-element:not(.prototype)")[t]),i=window.SOCIAL_MEDIA_ICONS[n.type]&&window.SOCIAL_MEDIA_ICONS[n.type].label;if(!i){var a=window.SOCIAL_MEDIA_ICONS[Object.keys(window.SOCIAL_MEDIA_ICONS).find(function(e){return e.includes(n.type)})];a&&(i=a.label)}i=i||"Social Account";var s="";s=Object.keys(window.SOCIAL_MEDIA_ICONS).find(function(e){return window.SOCIAL_MEDIA_ICONS[e].is_fa_icon&&(e===n.type||e.includes(n.type))})?'':"custom"==n.type?n.customImg?'':'':"select"==n.type?'':'',o("socialmediaicons_watermark_position","drilldown_button")&&$(".socialMediaIconsPowrMark.prototype-element:not(.prototype)").find(".mediaBar .title").html("POWR"),r.find(".mediaBar .title").html(window.truncate(i,"35"));var c=r.find(".mediaBar .image");c.css({backgroundImage:"none"}),c.html(s)}()},updatePlaceholders:function(){this.$el.find(".text-component__input").attr("placeholder","http://www.example.com"),this.$el.find('[name="type"]').filter(function(){return"fas-fa-envelope"==$(this).val()}).parents(".prototype-element").find(".text-component__input").attr("placeholder","example@gmail.com"),this.$el.find('[name="type"]').filter(function(){return"fab-fa-snapchat-ghost"==$(this).val()}).parents(".prototype-element").find(".text-component__input").attr("placeholder","mysnapchat"),this.$el.find('[name="type"]').filter(function(){return"phone"==$(this).val()}).parents(".prototype-element").find(".text-component__input").attr("placeholder","(555) 555-5555"),this.$el.find('[name="type"]').filter(function(){return"fab-fa-skype"==$(this).val()}).parents(".prototype-element").find(".text-component__input").attr("placeholder","myskype"),this.$el.find('[name="type"]').filter(function(){return"fab-fa-telegram-plane"==$(this).val()}).parents(".prototype-element").find(".text-component__input").attr("placeholder","t.me/username")},updateAdminMessage:function(){if("wix"==HOST){var e=this.$el.find("#collapseContent").parent(".panel");for(var t in $(".tooltip").hide(),e.tooltip("destroy"),this.model.get("data"))0==this.model.get("data")[t].url.length&&e.tooltip({title:"Enter urls for social media icons"})}}}),runViewSetup()}),window.computeFontSize=function(e){return Math.round(.65*parseInt(e))+"px"},window.computeImageSize=function(e){return Math.round(.7*parseInt(e))+"px"},window.computeMargin=function(e,t){var n=parseInt(e);if("horizontal"==t)var r=.07;else var r=.1;return Math.max(1,Math.round(r*n))+"px"}})()})();