(()=>{var n={25811:function(n,r,o){"use strict";o.r(r)},120:function(n,r,o){n.exports=o(56124)},40323:function(n,r,o){"use strict";var a=o(97032),y=o(63224),w=o(60726),P=o(88734),A=o(24209),j=o(38970),B=o(11028),q=o(14225);n.exports=function(n){return new Promise(function(r,o){var et=n.data,en=n.headers,er=n.responseType;a.isFormData(et)&&delete en["Content-Type"];var eo=new XMLHttpRequest;if(n.auth){var ea=n.auth.username||"",es=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";en.Authorization="Basic "+btoa(ea+":"+es)}var el=A(n.baseURL,n.url);function onloadend(){if(!!eo){var a="getAllResponseHeaders"in eo?j(eo.getAllResponseHeaders()):null;y(r,o,{data:er&&"text"!==er&&"json"!==er?eo.response:eo.responseText,status:eo.status,statusText:eo.statusText,headers:a,config:n,request:eo}),eo=null}}if(eo.open(n.method.toUpperCase(),P(el,n.params,n.paramsSerializer),!0),eo.timeout=n.timeout,"onloadend"in eo?eo.onloadend=onloadend:eo.onreadystatechange=function(){if(!!eo&&4===eo.readyState&&(0!==eo.status||!!(eo.responseURL&&0===eo.responseURL.indexOf("file:"))))setTimeout(onloadend)},eo.onabort=function(){if(!!eo)o(q("Request aborted",n,"ECONNABORTED",eo)),eo=null},eo.onerror=function(){o(q("Network Error",n,null,eo)),eo=null},eo.ontimeout=function(){var r="timeout of "+n.timeout+"ms exceeded";n.timeoutErrorMessage&&(r=n.timeoutErrorMessage),o(q(r,n,n.transitional&&n.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",eo)),eo=null},a.isStandardBrowserEnv()){var eu=(n.withCredentials||B(el))&&n.xsrfCookieName?w.read(n.xsrfCookieName):void 0;eu&&(en[n.xsrfHeaderName]=eu)}"setRequestHeader"in eo&&a.forEach(en,function(n,r){void 0===et&&"content-type"===r.toLowerCase()?delete en[r]:eo.setRequestHeader(r,n)}),!a.isUndefined(n.withCredentials)&&(eo.withCredentials=!!n.withCredentials),er&&"json"!==er&&(eo.responseType=n.responseType),"function"==typeof n.onDownloadProgress&&eo.addEventListener("progress",n.onDownloadProgress),"function"==typeof n.onUploadProgress&&eo.upload&&eo.upload.addEventListener("progress",n.onUploadProgress),n.cancelToken&&n.cancelToken.promise.then(function(n){if(!!eo)eo.abort(),o(n),eo=null}),!et&&(et=null),eo.send(et)})}},56124:function(n,r,o){"use strict";var a=o(97032),y=o(35473),w=o(86275),P=o(86917);function createInstance(n){var r=new w(n),o=y(w.prototype.request,r);return a.extend(o,w.prototype,r),a.extend(o,r),o}var A=createInstance(o(14075));A.Axios=w,A.create=function(n){return createInstance(P(A.defaults,n))},A.Cancel=o(63509),A.CancelToken=o(65794),A.isCancel=o(91185),A.all=function(n){return Promise.all(n)},A.spread=o(19234),A.isAxiosError=o(32363),n.exports=A,n.exports.default=A},63509:function(n){"use strict";function Cancel(n){this.message=n}Cancel.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,n.exports=Cancel},65794:function(n,r,o){"use strict";var a=o(63509);function CancelToken(n){if("function"!=typeof n)throw TypeError("executor must be a function.");this.promise=new Promise(function(n){r=n});var r,o=this;n(function(n){if(!o.reason)o.reason=new a(n),r(o.reason)})}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},CancelToken.source=function(){var n;return{token:new CancelToken(function(r){n=r}),cancel:n}},n.exports=CancelToken},91185:function(n){"use strict";n.exports=function(n){return!!(n&&n.__CANCEL__)}},86275:function(n,r,o){"use strict";var a=o(97032),y=o(88734),w=o(26058),P=o(87029),A=o(86917),j=o(11283),B=j.validators;function Axios(n){this.defaults=n,this.interceptors={request:new w,response:new w}}Axios.prototype.request=function(n){"string"==typeof n?(n=arguments[1]||{},n.url=arguments[0]):n=n||{},(n=A(this.defaults,n)).method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r,o=n.transitional;void 0!==o&&j.assertOptions(o,{silentJSONParsing:B.transitional(B.boolean,"1.0.0"),forcedJSONParsing:B.transitional(B.boolean,"1.0.0"),clarifyTimeoutError:B.transitional(B.boolean,"1.0.0")},!1);var a=[],y=!0;this.interceptors.request.forEach(function(r){if("function"!=typeof r.runWhen||!1!==r.runWhen(n))y=y&&r.synchronous,a.unshift(r.fulfilled,r.rejected)});var w=[];if(this.interceptors.response.forEach(function(n){w.push(n.fulfilled,n.rejected)}),!y){var q=[P,void 0];for(Array.prototype.unshift.apply(q,a),q=q.concat(w),r=Promise.resolve(n);q.length;)r=r.then(q.shift(),q.shift());return r}for(var et=n;a.length;){var en=a.shift(),er=a.shift();try{et=en(et)}catch(n){er(n);break}}try{r=P(et)}catch(n){return Promise.reject(n)}for(;w.length;)r=r.then(w.shift(),w.shift());return r},Axios.prototype.getUri=function(n){return y((n=A(this.defaults,n)).url,n.params,n.paramsSerializer).replace(/^\?/,"")},a.forEach(["delete","get","head","options"],function(n){Axios.prototype[n]=function(r,o){return this.request(A(o||{},{method:n,url:r,data:(o||{}).data}))}}),a.forEach(["post","put","patch"],function(n){Axios.prototype[n]=function(r,o,a){return this.request(A(a||{},{method:n,url:r,data:o}))}}),n.exports=Axios},26058:function(n,r,o){"use strict";var a=o(97032);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function(n,r,o){return this.handlers.push({fulfilled:n,rejected:r,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1},InterceptorManager.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},InterceptorManager.prototype.forEach=function(n){a.forEach(this.handlers,function(r){null!==r&&n(r)})},n.exports=InterceptorManager},24209:function(n,r,o){"use strict";var a=o(51757),y=o(4201);n.exports=function(n,r){return n&&!a(r)?y(n,r):r}},14225:function(n,r,o){"use strict";var a=o(1727);n.exports=function(n,r,o,y,w){return a(Error(n),r,o,y,w)}},87029:function(n,r,o){"use strict";var a=o(97032),y=o(5208),w=o(91185),P=o(14075);function throwIfCancellationRequested(n){n.cancelToken&&n.cancelToken.throwIfRequested()}n.exports=function(n){return throwIfCancellationRequested(n),n.headers=n.headers||{},n.data=y.call(n,n.data,n.headers,n.transformRequest),n.headers=a.merge(n.headers.common||{},n.headers[n.method]||{},n.headers),a.forEach(["delete","get","head","post","put","patch","common"],function(r){delete n.headers[r]}),(n.adapter||P.adapter)(n).then(function(r){return throwIfCancellationRequested(n),r.data=y.call(n,r.data,r.headers,n.transformResponse),r},function(r){return!w(r)&&(throwIfCancellationRequested(n),r&&r.response&&(r.response.data=y.call(n,r.response.data,r.response.headers,n.transformResponse))),Promise.reject(r)})}},1727:function(n){"use strict";n.exports=function(n,r,o,a,y){return n.config=r,o&&(n.code=o),n.request=a,n.response=y,n.isAxiosError=!0,n.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},n}},86917:function(n,r,o){"use strict";var a=o(97032);n.exports=function(n,r){r=r||{};var o={},y=["url","method","data"],w=["headers","auth","proxy","params"],P=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],A=["validateStatus"];function getMergedValue(n,r){if(a.isPlainObject(n)&&a.isPlainObject(r))return a.merge(n,r);if(a.isPlainObject(r))return a.merge({},r);if(a.isArray(r))return r.slice();return r}function mergeDeepProperties(y){a.isUndefined(r[y])?!a.isUndefined(n[y])&&(o[y]=getMergedValue(void 0,n[y])):o[y]=getMergedValue(n[y],r[y])}a.forEach(y,function(n){!a.isUndefined(r[n])&&(o[n]=getMergedValue(void 0,r[n]))}),a.forEach(w,mergeDeepProperties),a.forEach(P,function(y){a.isUndefined(r[y])?!a.isUndefined(n[y])&&(o[y]=getMergedValue(void 0,n[y])):o[y]=getMergedValue(void 0,r[y])}),a.forEach(A,function(a){a in r?o[a]=getMergedValue(n[a],r[a]):a in n&&(o[a]=getMergedValue(void 0,n[a]))});var j=y.concat(w).concat(P).concat(A),B=Object.keys(n).concat(Object.keys(r)).filter(function(n){return -1===j.indexOf(n)});return a.forEach(B,mergeDeepProperties),o}},63224:function(n,r,o){"use strict";var a=o(14225);n.exports=function(n,r,o){var y=o.config.validateStatus;!o.status||!y||y(o.status)?n(o):r(a("Request failed with status code "+o.status,o.config,null,o.request,o))}},5208:function(n,r,o){"use strict";var a=o(97032),y=o(14075);n.exports=function(n,r,o){var w=this||y;return a.forEach(o,function(o){n=o.call(w,n,r)}),n}},14075:function(n,r,o){"use strict";var a=o(14224),y=o(97032),w=o(91922),P=o(1727),A={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(n,r){!y.isUndefined(n)&&y.isUndefined(n["Content-Type"])&&(n["Content-Type"]=r)}function stringifySafely(n,r,o){if(y.isString(n))try{return(r||JSON.parse)(n),y.trim(n)}catch(n){if("SyntaxError"!==n.name)throw n}return(o||JSON.stringify)(n)}var j={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function getDefaultAdapter(){var n;return"undefined"!=typeof XMLHttpRequest?n=o(40323):void 0!==a&&"[object process]"===Object.prototype.toString.call(a)&&(n=o(40323)),n}(),transformRequest:[function(n,r){return(w(r,"Accept"),w(r,"Content-Type"),y.isFormData(n)||y.isArrayBuffer(n)||y.isBuffer(n)||y.isStream(n)||y.isFile(n)||y.isBlob(n))?n:y.isArrayBufferView(n)?n.buffer:y.isURLSearchParams(n)?(setContentTypeIfUnset(r,"application/x-www-form-urlencoded;charset=utf-8"),n.toString()):y.isObject(n)||r&&"application/json"===r["Content-Type"]?(setContentTypeIfUnset(r,"application/json"),stringifySafely(n)):n}],transformResponse:[function(n){var r=this.transitional,o=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,w=!o&&"json"===this.responseType;if(w||a&&y.isString(n)&&n.length)try{return JSON.parse(n)}catch(n){if(w){if("SyntaxError"===n.name)throw P(n,this,"E_JSON_PARSE");throw n}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(n){return n>=200&&n<300}};j.headers={common:{Accept:"application/json, text/plain, */*"}},y.forEach(["delete","get","head"],function(n){j.headers[n]={}}),y.forEach(["post","put","patch"],function(n){j.headers[n]=y.merge(A)}),n.exports=j},35473:function(n){"use strict";n.exports=function(n,r){return function(){for(var o=Array(arguments.length),a=0;a=0))"set-cookie"===r?P[r]=(P[r]?P[r]:[]).concat([o]):P[r]=P[r]?P[r]+", "+o:o}}),P):P}},19234:function(n){"use strict";n.exports=function(n){return function(r){return n.apply(null,r)}}},11283:function(n,r,o){"use strict";var a=o(41540),y={};["object","boolean","number","function","string","symbol"].forEach(function(n,r){y[n]=function(o){return typeof o===n||"a"+(r<1?"n ":" ")+n}});var w={},P=a.version.split(".");function isOlderVersion(n,r){for(var o=r?r.split("."):P,a=n.split("."),y=0;y<3;y++){if(o[y]>a[y])return!0;if(o[y]0;){var w=a[y],P=r[w];if(P){var A=n[w],j=void 0===A||P(A,w,n);if(!0!==j)throw TypeError("option "+w+" must be "+j);continue}if(!0!==o)throw Error("Unknown option "+w)}}y.transitional=function(n,r,o){var y=r&&isOlderVersion(r);function formatMessage(n,r){return"[Axios v"+a.version+"] Transitional option '"+n+"'"+r+(o?". "+o:"")}return function(o,a,P){if(!1===n)throw Error(formatMessage(a," has been removed in "+r));return y&&!w[a]&&(w[a]=!0,console.warn(formatMessage(a," has been deprecated since v"+r+" and will be removed in the near future"))),!n||n(o,a,P)}},n.exports={isOlderVersion:isOlderVersion,assertOptions:assertOptions,validators:y}},97032:function(n,r,o){"use strict";var a=o(35473),y=Object.prototype.toString;function isArray(n){return"[object Array]"===y.call(n)}function isUndefined(n){return void 0===n}function isBuffer(n){return null!==n&&!isUndefined(n)&&null!==n.constructor&&!isUndefined(n.constructor)&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)}function isArrayBuffer(n){return"[object ArrayBuffer]"===y.call(n)}function isFormData(n){return"undefined"!=typeof FormData&&n instanceof FormData}function isArrayBufferView(n){var r;return r="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer&&n.buffer instanceof ArrayBuffer}function isString(n){return"string"==typeof n}function isNumber(n){return"number"==typeof n}function isObject(n){return null!==n&&"object"==typeof n}function isPlainObject(n){if("[object Object]"!==y.call(n))return!1;var r=Object.getPrototypeOf(n);return null===r||r===Object.prototype}function isDate(n){return"[object Date]"===y.call(n)}function isFile(n){return"[object File]"===y.call(n)}function isBlob(n){return"[object Blob]"===y.call(n)}function isFunction(n){return"[object Function]"===y.call(n)}function isStream(n){return isObject(n)&&isFunction(n.pipe)}function isURLSearchParams(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}function trim(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document}function forEach(n,r){if(null!=n)if("object"!=typeof n&&(n=[n]),isArray(n))for(var o=0,a=n.length;o2&&void 0!==arguments[2]&&arguments[2],y="AB_GROWTHBOOK_TESTS",w=(0,a.getNestedValue)(window,"GLOBALS.".concat(y,".").concat(n,".group"),null);if(!window.GLOBALS||!window.GLOBALS[y])return!1;var P=window.GLOBALS[y]._attributes;return w&&!["off"].includes(w)&&o&&markUserExposedToGbAb(n,P),w===r},markUserExposedToGbAb=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="numExposed__ab_".concat(n,"__userUniqueId_").concat(window.getCookie("unique_id"));if(!window.getLocalStorage(o))window.ajaxController({url:"/growthbook/exposed",data:JSON.stringify({data:{experiment_key:n,experiment_eval_feature:null,attributes:r}}),type:"POST",contentType:"application/json; charset=utf-8"},function(n){n.success&&setNumExposedLocalStorage(o,!0)})},setNumExposedLocalStorage=function(n,r){n&&r&&window.setLocalStorage(n,r)}},15937:function(n,r,o){"use strict";o.d(r,{ZM:function(){return isStandaloneWixEditor},q7:function(){return getPlatformFromEmbedLink}}),o(82186),o(39882);var isStandaloneWixEditor=function(){return"true"===new URLSearchParams(window.location.search).get("wix_standalone")},getPlatformFromEmbedLink=function(){var n,r,o=window.location.hash;if(!o&&(o=window.location.search),!o&&(o=window.location.href),!o)return"";var a=decodeURIComponent(o);return(null===(n=a.match(/platform=([^&]+)/))||void 0===n?void 0:n[1])||(null===(r=a.match(/external_type=([^&]+)/))||void 0===r?void 0:r[1])||""}},74783:function(n,r,o){function _typeof(n){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function ownKeys(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);r&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),o.push.apply(o,a)}return o}function _objectSpread(n){for(var r=1;rn.length)&&(r=n.length);for(var o=0,a=Array(r);o-1&&(y=n.children[0].data)}),";"===(y=y.replace("window._sharedData = ",""))[y.length-1]&&(y=y.slice(0,-1)),""===y&&(r=this.statusError("noJSONFound"));var w={};try{w=JSON.parse(y)}catch(n){r=new P(n.error,"getJSONFromHTML")}if(!r&&!w.entry_data&&(r=this.statusError("entryDataNotFound")),r)throw r;return w.entry_data}},{key:"getResultsFromObjectByPath",value:function(n,r){var o=this,a=[],w=[];return n.forEach(function(n){if(w.push(n),!(a=y.property(w)(r)))throw o.statusError("itemNotFound","".concat(w.join(".")," not found"))}),a}},{key:"parseTagData",value:function(n){var r=[];try{r=n.hashtag.edge_hashtag_to_media.edges}catch(n){console.log("Hashtag media error",n)}return{items:r=r.length>0?r:n.hashtag.edge_hashtag_to_top_posts.edges}}},{key:"parseProfileData",value:function(n){var r=n.user.edge_owner_to_timeline_media,o=r.page_info,a=n.user.edge_owner_to_timeline_media.edges;if(!0==r.is_private)throw this.statusError("accountIsPrivate","Username @".concat(this.opts.following," is a private account"));if(!a)throw this.statusError("parsingFailed");var y=n.user.profile_pic_url;return this.getMoreResults(o,a,y)}},{key:"getMoreResults",value:function(n,r,o){if(n.has_next_page){var a=r[0].node.owner.id,y=n.end_cursor;if(y)return A({url:"https://www.instagram.com/graphql/query/",params:{query_id:0x3f8d7b15dcd52e,id:a,first:8,after:y},method:"GET"}).then(function(n){r=[].concat(_toConsumableArray(r),_toConsumableArray(n.data.data.user.edge_owner_to_timeline_media.edges))}).catch(function(n){console.log("Second Instagram rest response failed",n)}).then(function(){return{items:r,profilePicture:o}})}return{items:r,profilePicture:o}}},{key:"parseResponse",value:function(n){var r=this;return n.items.map(function(o){if(o&&o.node)return r.parseNode(o.node,n.profilePicture)})}},{key:"parseNode",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{created_time:n.date?n.date:n.taken_at_timestamp,user:{full_name:this.opts.following,profile_picture:r},caption:{text:this.extractCaptionText(n),id:0,from:{profile_picture:r,full_name:this.opts.following,username:this.opts.following,id:0}},comments:n.edge_media_to_comment.count,likes:n.edge_media_preview_like.count,link:"https://www.instagram.com/p/".concat(n.code||n.shortcode,"/"),images:{standard_resolution:{url:n.display_src?n.display_src:n.display_url}}}}},{key:"extractCaptionText",value:function(n){var r=n.caption||"";if(""===r){var o=n.edge_media_to_caption;o&&o.edges?o.edges.length>0&&(r=o.edges[o.edges.length-1].node.text):console.log("Unable to locate image caption")}return r}}])}(w);n.exports=j},45034:function(n,r,o){function _typeof(n){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function _classCallCheck(n,r){if(!(n instanceof r))throw TypeError("Cannot call a class as a function")}function _defineProperties(n,r){for(var o=0;o0,y="string"==typeof o;return a&&y?r.replace(/([a-z])([A-Z])/g,"$1".concat(o,"$2")).replace(/[\s_-]+/g,o).toLowerCase():null},snakeCase=function(n){return getParsedString({string:n,separator:"_"})};function ensureValidUrl(n){!/^https?:\/\//i.test(n)&&(n="https://"+n);try{var r=new URL(n);return"".concat(r.protocol,"//").concat(r.host)}catch(n){return null}}},60663:function(n,r,o){"use strict";o.d(r,{launchToast:()=>_launchToast,removeToast:()=>toast_removeToast});var a=o("57689"),y=o("97326"),w=o("40507"),P=o.n(w);function _typeof(n){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function _classCallCheck(n,r){if(!(n instanceof r))throw TypeError("Cannot call a class as a function")}function _defineProperties(n,r){for(var o=0;o3&&void 0!==arguments[3]&&arguments[3];w?$(window).on("focus.show_toast",function(){_launchToast(n,r,o)}):y.render(a.createElement(A,{message:n,type:r,duration:o}),document.querySelector("#toast-container"))},toast_removeToast=function(){y.unmountComponentAtNode(document.querySelector("#toast-container")),$(window).off("focus.show_toast")}},49013:function(n,r,o){"use strict";o.d(r,{ZP:function(){return P},ZY:function(){return w}});var a=o(82186),y=["free","premium","pro","enterprise","hipaa_form_starter","hipaa_form_pro","hipaa_form_business","hipaa_form_custom"],w=["v_250","v_500","v_2500","v_5000","v_10000","v_25000","v_50000","custom"];let P={isUpgradeRequired:function(n,r){if((0,a.isInUsageBasedV2App)())return!!w.includes(r)&&w.indexOf(n)r?n.substring(0,r-3)+"...":n},ABTestInitialization=function(n){!n&&(n={ACTIVE_AB_TESTS:{}});var r=window.opener&&window.opener.GLOBALS?window.opener.GLOBALS:null;return r&&Object.keys(r.ACTIVE_AB_TESTS).forEach(function(o){n.ACTIVE_AB_TESTS[o]=r.ACTIVE_AB_TESTS[o]}),window.GLOBALS=n,n},renderUserJourney=function(){Promise.all([o.e("5629"),o.e("1959"),o.e("5343")]).then(o.bind(o,53414)).then(function(){})},paypalRedirectUrl=function(n){return"wix"===window.HOST?window.baseUri()+"/paramless-mirror/"+encodeURIComponent(window.urlFormat(n)):window.urlFormat(n)}},37379:function(n,r,o){"use strict";var a=o(35276);!window._&&(window._=o(61686)),!window.POWr&&(window.POWr={simpleCopies:a.ZG,premiumStatusLabel:a.WQ,removeHTML:a.LD,truncate:a.$G,ABTestInitialization:a.Tt,renderUserJourney:a.Ap,paypalRedirectUrl:a.nb})},23945:function(n,r,o){"use strict";o.r(r),o.d(r,{googleTagManagerScript:function(){return googleTagManagerScript},renderGoogleTagManager:function(){return renderGoogleTagManager},sendSubmissionEventToGoogleTagManager:function(){return sendSubmissionEventToGoogleTagManager}});var a=o(26893);function _toConsumableArray(n){return _arrayWithoutHoles(n)||_iterableToArray(n)||_unsupportedIterableToArray(n)||_nonIterableSpread()}function _nonIterableSpread(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(n,r){if(n){if("string"==typeof n)return _arrayLikeToArray(n,r);var o=({}).toString.call(n).slice(8,-1);return"Object"===o&&n.constructor&&(o=n.constructor.name),"Map"===o||"Set"===o?Array.from(n):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(n,r):void 0}}function _iterableToArray(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}function _arrayWithoutHoles(n){if(Array.isArray(n))return _arrayLikeToArray(n)}function _arrayLikeToArray(n,r){(null==r||r>n.length)&&(r=n.length);for(var o=0,a=Array(r);o=n.length?{done:!0}:{done:!1,value:n[a++]}},e:function(n){throw n},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 y,w=!0,P=!1;return{s:function(){o=o.call(n)},n:function(){var n=o.next();return w=n.done,n},e:function(n){P=!0,y=n},f:function(){try{w||null==o.return||o.return()}finally{if(P)throw y}}}}function _unsupportedIterableToArray(n,r){if(n){if("string"==typeof n)return _arrayLikeToArray(n,r);var o=({}).toString.call(n).slice(8,-1);return"Object"===o&&n.constructor&&(o=n.constructor.name),"Map"===o||"Set"===o?Array.from(n):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(n,r):void 0}}function _arrayLikeToArray(n,r){(null==r||r>n.length)&&(r=n.length);for(var o=0,a=Array(r);o2&&void 0!==arguments[2]&&arguments[2],a,y=_createForOfIteratorHelper(r.split("."));try{for(y.s();!(a=y.n()).done;){var w=a.value;if(!n)return o;n=n[w]}}catch(n){y.e(n)}finally{y.f()}return n||o},openPowrzillaEditorWindow=function(n){window.name="".concat(n.app_id,"_parent");var r=n.templates_present&&!n.email_id?"/powrzilla/templates":"/powrzilla",o="app_id=".concat(n.app_id,"&email_type=").concat(n.email_type,"&host=").concat(n.host);n.email_id&&(o="".concat(o,"&id=").concat(n.email_id)),window.open("".concat(r,"?").concat(o))},isInABTest=function(n){var r=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"!==n||"formBuilder"===META.app_namespace)&&getNestedValue(window,"GLOBALS.".concat("ACTIVE_AB_TESTS",".").concat(n,".group"),null)===r},isRolloutFeatureActive=function(n){return window.ROLLOUT_FEATURES?getNestedValue(window,"ROLLOUT_FEATURES.".concat(n,".active"),!1):getNestedValue(window,"GLOBALS.ROLLOUT_FEATURES.".concat(n,".active"),!1)},isInFeatureGroup=function(n){return window.GLOBALS&&window.GLOBALS.FEATURE_GROUP&&window.GLOBALS.FEATURE_GROUP===n},changePremiumStatus=function(n,r){return n.map(function(n){return(r[n.name]||r[n.value])&&(n.premium_status=r[n.name]),n})};function hideZendesk(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;$(".zEWidget-launcher--active").length>0?$(".zEWidget-launcher--active").hide():setTimeout(function(){hideZendesk(n)},n)}var isPaymentApp=function(n){return["paypalButton","ecommerce"].includes(n)},isFormOrPopup=function(n){return["formBuilder","popup"].includes(n)},isProductReviews=function(n){return["productReviews"].includes(n)},isComments=function(n){return["comments"].includes(n)},isAppointment=function(n){return["appointments"].includes(n)},isPlatformShopify=function(n){return(null==n?void 0:n.platform)==="shopify"},isWix=function(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.CURRENT_USER;return(null==(n=r)?void 0:n.platform)==="wix"||["wix","wix-oauth"].includes(window.HOST)||(0,w.ZM)()},isWixOrShopify=function(n){return isWix(n)||isPlatformShopify(n)},isWixOauthAppType=function(n){return["popup","chat","nudge"].includes(n)},showWixOveride=function(n){var r,o,a;return(null===(r=window.CURRENT_USER)||void 0===r?void 0:r.provider)==="wix"&&((null===(o=window.CURRENT_USER)||void 0===o?void 0:o.platform)==null||(null===(a=window.CURRENT_USER)||void 0===a?void 0:a.platform)==="wix")&&!isWixOauthAppType(n)},appTypeWithResponses=function(n){return["productReviews","formBuilder","popup","paypalButton","ecommerce","comments","appointments","hipaaForm"].includes(n)},validateUrl=function(n){try{return new URL(n),!0}catch(n){return!1}},a_or_an=function(n){return n?["a","e","i","o","u"].includes(n.charAt(0).toLowerCase())?"an ".concat(n):"a ".concat(n):""},A="/admin/review_urls/",getP1AppTypes=function(){return["formBuilder","socialFeed","mediaGallery","popup","multiSlider","comments","countdownTimer","faq","paypalButton"]},isP1App=function(n){return getP1AppTypes().includes(n)},getUserJourneyStepName=function(n){return["create_account","create_plugin","leave_review"][n]},detectPromoBanner=function(){var n=document.getElementsByTagName("body")[0];return!!n&&_toConsumableArray(n.classList).includes("has-promo-banner")},netElementLength=function(n){return n.filter(function(n){return"step"!==n.type}).length},netAndFormElementsLength=function(n){return n.reduce(function(n,r){return["step","form"].includes(r.type)?"form"===r.type?n+r.data.filter(function(n){return"formButton"!==n.type}).length:n:n+1},0)},getWixOauthParam=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return B?"".concat(n?"?":"&","target=wix-dashboard"):""},j="J4NURA49NDK6Q",makeFreeForWixOauth=function(n){var r;return B&&(null===(r=META)||void 0===r?void 0:r.app_namespace)!=="popup"?"free":n},makeFreeForShopify=function(n,r){return n&&isShopifyFree(n)?"free":r},isShopifyFree=function(n){return"shopify"===n.external_id_type&&["promotionPopup","mailchimpEmailSignup"].includes(n.app_type)&&Date.parse(n.created_at)>Date.parse("2020-11-23T17:00:00")},B="wix-oauth"===window.HOST,q="platform"===window.PLATFORM_EMBED,isShareThis=function(n){return(null==n?void 0:n.external_id_type)==="sharethis"},isShareThisOnboarding=function(){var n,r;return(null===(n=window.getURLParameter("platform"))||void 0===n?void 0:n.includes("sharethis"))&&(null===(r=window.getURLParameter("redirect"))||void 0===r?void 0:r.includes("true"))},makeLimitsForWixOauth=function(n){return B?{free:n.enterprise,premium:n.enterprise,pro:n.enterprise,enterprise:n.enterprise}:n},trackEvent=function(){},round=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return Math.round((n+Number.EPSILON)*r)/r},range=function(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Array.from({length:Math.floor((r-n)/o)+1},function(r,a){return a*o+n})},getProfileProgress=function(){var n=0,r=0,o=[];return["email","business_type","first_name","last_name","phone","partner_name","company_size","purpose","platform","address_1","country","city","state","locale"].forEach(function(a){window.CURRENT_USER[a]?n++:o.push(a),r++}),{completeness:Math.round(n/r*100),missingInfo:o}},popupHasEmailInput=function(n){var r=(n||{}).content,o=(r||{}).data;if(!r||!o)return!1;var a="2"===r.version?"form":"email_input";return o&&!!o.find(function(n){return n.type===a})},pageEmbedUrl=function(n,r){return"".concat(window.baseUri(),"/").concat(n,"/i/").concat(r,"#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?a.ZY.includes(window.META.premium_status):a.ZY.includes(window.PREMIUM_STATUS);return isInUsageBasedV2Group()},isFreePaypalButton=function(){if(window.META){var n=new Date(window.META.created_at)>new Date("2023-11-20T00:00:00");return!!("paypalButton"==window.META.app_namespace&&n&&["free","v_250","v_500"].includes(window.META.premium_status))||!1}},renderLogo=function(n){var r,a="/"===((null===(r=window.location)||void 0===r?void 0:r.pathname)||"")?{nodeID:"#js-powr-logo-home-page",props:{white:!0}}:{},y=a.nodeID,w=void 0===y?"#js-powr-logo":y,P=a.props,A=void 0===P?{}:P,j=document.querySelector(w);"#js-powr-logo"===w&&window.innerWidth<=768&&(A.small=!0),j&&Promise.all([o.e("7189").then(o.t.bind(o,57689,19)),o.e("8199").then(o.bind(o,96538)),o.e("6410").then(o.bind(o,78480))]).then(function(r){var o=_slicedToArray(r,3),a=o[0],y=o[1].default,P=o[2].renderReactComponent;if(P(a.createElement(y,_objectSpread(_objectSpread({},A),n)),w),document.querySelector(".humanistic-logo")){var j=window.IS_LEAD_COLLECTION_FLOW?"/lead-collection/dashboard":"/";P(a.createElement(y,{url:j,white:!window.isMobile()&&"square"!=window.getURLQueryParam("provider")}),".humanistic-logo")}})},renderChooseSiteOverlay=function(n,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],y=document.querySelector(a?".js-choose-site-container-publish":".js-choose-site-container");y&&(a&&(y.style.display="block"),Promise.all([o.e("7189").then(o.t.bind(o,57689,19)),o.e("6410").then(o.bind(o,78480)),Promise.all([o.e("5629"),o.e("1542"),o.e("9727"),o.e("6243"),o.e("633")]).then(o.bind(o,9912))]).then(function(o){var y=_slicedToArray(o,3),w=y[0],P=y[1].renderReactComponent,A=y[2].default;P(w.createElement(A,{sites:n.sites,defaultSiteId:0,onSuccess:function(){return r()}}),a?".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()})},et="review_delay",en=15,canShowReview=function(n,r){return n&&window.getCookie("".concat(et,"_").concat(r))!=en},calculateFixedButtonCss=function(n){var r,o,a=n.width,y=n.postCss,w=n.modelOffset,P=n.buttonLocation,A=n.displayMode,j=n.isStandalone,B="".concat(parseInt(w)*a/100,"px");if(j){var q=$(window).width(),et=$(window).height(),en=parseInt(w);r=400+en*(q-400)/100+"px",o=64+en*(et-64)/100+"px"}if("tab"==A)switch(y.display="table",P){case"right":j?y.top=o:y.top=w,y.right=0,y.transform="rotate(-90deg) translateY(-100%) translateX("+w+")",y.webkitTransform="rotate(-90deg) translateY(-100%) translateX("+w+")",y.transformOrigin="right top",y.webkitTransformOrigin="right top";break;case"left":j?(y.top=o,y.left="400px"):(y.top=w,y.left=0),y.transform="rotate(90deg) translateY(-100%) translateX(-"+w+")",y.webkitTransform="rotate(90deg) translateY(-100%) translateX(-"+w+")",y.transformOrigin="left top",y.webkitTransformOrigin="left top";break;case"bottom":j?y.left=r:y.left=w,y.bottom="0px",y.transform="translateX(-"+B+")",y.webkitTransform="translateX(-"+B+")"}else"floatingButton"==A&&(j?(y.left=r,y.height="60px"):y.left=w,y.bottom="20px",y.transform="translateX(-"+B+")",y.webkitTransform="translateX(-"+B+")")},scrollToAppTop=function(){if(window.Wix){var n=Wix.Utils.getCompId();window.Wix.navigateToComponent(n)}else{var r={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:r})}},isTruncated=function(n){return n.offsetWidth0&&void 0!==arguments[0]&&arguments[0];if(window.location.href.includes("wix_cached_view"))return window.META.wixSiteUrl;var o=getUrlHashParams();return o.url?(n=decodeURIComponent(o.url),r&&(n=new URL(n).origin)):n=o.request_url?decodeURIComponent(o.request_url):isScraperView(window.origin)?window.PARENT_WINDOW_LOCATION:window.location.href,n},getGradientTypeAndDirection=function(n){switch(n){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 n,r;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===(n=window.META)||void 0===n?void 0:n.app_type,"&app_parent=").concat(null===(r=window.META)||void 0===r?void 0:r.app_namespace),"_blank"):window.open("http://help.powr.io/hc/en-us","_blank")},checkPowrOneAdCookie=function(){var n,r=window.getCookie("powr_one_ad");(null!==(n=window.CURRENT_USER)&&void 0!==n&&n.is_powr_one||r&&Number(r)>=3)&&$(".powrone-ad-banner").addClass("hid")},setPowrOneAdCookie=function(){var n=window.getCookie("powr_one_ad");if(n&&3>Number(n)){var r=Number(n)+1;window.setCookie("powr_one_ad",r.toString(),365)}else window.setCookie("powr_one_ad","1",365)},isLocaleSupported=function(n){return["en","es","de","fr","pt","it","tr","nl","ru","ja","zh","hi"].includes(n)},getPluginUrl=function(n,r){var o="".concat(n,"-website-app");switch(r){case"es":o="".concat(n,"-sitio-web-app");break;case"de":o="".concat(n,"-webseite-app");break;case"fr":o="".concat(n,"-application-du-site-web");break;case"pt":o="".concat(n,"-aplicativo-para-site");break;case"it":o="".concat(n,"-sito-web-app");break;case"tr":o="".concat(n,"-websitesi-uygulaması");break;case"nl":o="".concat(n,"-internetsite-app");break;case"ru":o="".concat(n,"-виджет-для-вашего-сайта");break;case"ja":o="".concat(n,"-ウェブサイトアプリ");break;case"zh":o="".concat(n,"-网站应用");break;case"hi":o="".concat(n,"-वेबसाइट-ऐप")}return o},newDowngradeFlowAB=function(){if(window.CURRENT_USER)return isInABTest("new_downgrade_flow_ab","new_downgrade_flow",!0)},kebabize=function(n){return n.split("").map(function(n,r){return n.toUpperCase()===n?"".concat(0!==r?"-":"").concat(n.toLowerCase()):n}).join("")},hostUrl=function(n){var r,o,a=null;switch(null!==(r=n.META)&&void 0!==r&&r.env?a=n.META.env:null!==(o=n.GLOBALS)&&void 0!==o&&o.ENVIRONMENT&&(a=n.GLOBALS.ENVIRONMENT),a){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(n){return n.includes("vcdn.")},getHostPrefix=function(n){return isScraperView(n.origin)?hostUrl(n):""},canUseLocalStorage=function(){try{var n="__test__";return localStorage.setItem(n,"test"),localStorage.removeItem(n),!0}catch(n){return!1}},undoRedoAllowedApp=function(n){var r="production"==window.ENVIRONMENT?"general.undoRedoAllowedApp":"general.undoRedoAllowedAppStaging";return(0,y.ZG)(r).split(",").map(function(n){return n.trim()}).includes(n)},isEmailApp=function(){var n;return(null===(n=window.META)||void 0===n?void 0:n.app_namespace)==="email"},isNonReactifiedApp=function(){var n;return!window||!window.APP_SETTINGS||!window.APP_SETTINGS.observableStore||"function"!=typeof window.APP_SETTINGS.observableStore.forceUpdate||["socialFeed","faq"].includes(null===(n=window)||void 0===n||null===(n=n.META)||void 0===n?void 0:n.app_namespace)},toggleBackgroundGradientColor=function(n){var r=$('[data-namespace="backgroundGradient"]').closest(".colorSelectionContainer");r.length&&(n.get("backgroundGradient")?(r.find(".gradientColor").show(),r.find(".solidColor").hide()):(r.find(".gradientColor").hide(),r.find(".solidColor").show()))}},93616:function(n,r,o){"use strict";o.d(r,{Z:function(){return j}});var a=o(57689),y=o(40507),w=o.n(y),P=o(82186);function _typeof(n){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function _classCallCheck(n,r){if(!(n instanceof r))throw TypeError("Cannot call a class as a function")}function _defineProperties(n,r){for(var o=0;o=r.props.width?a="left":o.right>=r.props.width&&(a="right");var y=r.props.horizontalPosition||a,w=void 0!==r.props.showOnBottom?!r.props.showOnBottom:o.bottom>.66*n,P={},A={},j=o.height,B=r.props.anchorArrowSize;switch(r.props.tooltipPosition&&"right-center"===r.props.tooltipPosition&&(w=!1),y){case"center":P.left=(o.width-r.props.width)/2,B=r.props.width/2-r.props.anchorArrowSize/2,w&&(B+=r.props.anchorArrowSize),A.left=B;break;case"left":P.left=r.props.tooltipAfterLabel?"calc(100% - 22px)":18,w&&(B+=1.5*r.props.anchorArrowSize),A.left=18;break;case"right":P.right=0,B=r.props.anchorArrowSize,w&&(B-=1.5*r.props.anchorArrowSize),A.right=18}return r.props.showAnchorArrow&&(j+=r.props.anchorArrowSize/2),w?(P.bottom=j,A.bottom=0):(P.top=30.5,A.top=-1*r.props.anchorArrowSize),r.props.tooltipPosition&&"right-center"===r.props.tooltipPosition&&(P={right:"6px",left:"unset",top:"28.5px",position:"absolute",zIndex:3},A.left="unset",A.right=B),{isVerticalPositionBottom:w,arrowStyles:A,containerStyles:P}},r.getRelativeToAnchorPositionStyles=function(){var n=(0,P.detectPromoBanner)(),o=r.props||{},a=o.horizontalPosition,y=void 0===a?"left":a,w=o.width,A=o.height,j=o.anchorComponentRef,B=o.anchorArrowSize,q=j.getBoundingClientRect(),et=q.width,en=q.left,er=q.right,eo=q.bottom,ea={top:n?eo-50:eo,width:w,height:A};switch(y){case"center":ea.left=en+et/2;break;case"left":ea.left=en;break;case"right":ea.left=er;break;default:throw Error("Invalid value of 'horizontalPosition' prop: ".concat(y))}return{isVerticalPositionBottom:!1,arrowStyles:{position:"relative",left:2*B,zIndex:1},containerStyles:ea}},r.state={isVisible:!1},r.node=null,r}return _inherits(Popover,n),_createClass(Popover,[{key:"componentDidMount",value:function(){var n=(this.props||{}).handleEventsOnCapture,r=void 0!==n&&n;document.addEventListener("click",this.closePopOver,r),document.addEventListener("hover",this.closeOnHover,r)}},{key:"componentDidUpdate",value:function(n){var r=this;this.props.displayTooltip&&n.displayTooltip!==this.props.displayTooltip?setTimeout(function(){r.setState({isVisible:!0})},100):!this.props.displayTooltip&&n.displayTooltip!==this.props.displayTooltip&&this.setState({isVisible:!1})}},{key:"componentWillUnmount",value:function(){var n=(this.props||{}).handleEventsOnCapture,r=void 0!==n&&n;document.removeEventListener("click",this.closePopOver,r),document.removeEventListener("hover",this.closeOnHover,r)}},{key:"render",value:function(){var n=this;if(!this.props.anchorComponentRef)return null;var r=this.props||{},o=r.relativeToAnchorOnly,y=r.showAnchorArrow,w=r.children,P=o?this.getRelativeToAnchorPositionStyles():this.getPositionStyles(),A=P.isVerticalPositionBottom?"popover-arrow-top":"popover-arrow-bottom",j=y&&a.createElement("div",{className:"popover-arrow ".concat(A),style:P.arrowStyles});return a.createElement("div",{className:"powrReactPopoverContainer ".concat(this.props.additionalClasses," ").concat(this.state.isVisible?"visible":""),style:P.containerStyles,ref:function(r){n.node=r},"data-qa":"tooltip-popup"},a.createElement("div",{className:"popover-container","data-qa":"tooltip-text"},j,a.createElement("div",null,w)))}}])}(a.Component);A.defaultProps={settingsPanelWidth:400,anchorArrowSize:15,tooltipAfterLabel:!1,displayTooltip:!1,additionalClasses:""},A.propTypes={height:w().number,width:w().number,handleCloseOnClick:w().func,handleCloseOnHover:w().func,horizontalPosition:w().string,anchorComponentRef:w().any,showOnBottom:w().bool,relativeToAnchorOnly:w().bool,handleEventsOnCapture:w().bool,tooltipAfterLabel:w().bool,displayTooltip:w().bool,additionalClasses:w().string};let j=A},22987:function(n,r,o){"use strict";o.d(r,{Z:function(){return j}});var a=o(57689),y=o(93616),w=o(40507),P=o.n(w);function _typeof(n){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function _classCallCheck(n,r){if(!(n instanceof r))throw TypeError("Cannot call a class as a function")}function _defineProperties(n,r){for(var o=0;oet});var a=o("57689"),y=o("40507"),w=o.n(y),P=o("25290"),A=o.n(P),j=o("88870"),B=o("49769"),q=o("82186");function _typeof(n){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function _toConsumableArray(n){return _arrayWithoutHoles(n)||_iterableToArray(n)||_unsupportedIterableToArray(n)||_nonIterableSpread()}function _nonIterableSpread(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}function _arrayWithoutHoles(n){if(Array.isArray(n))return _arrayLikeToArray(n)}function ownKeys(n,r){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);r&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),o.push.apply(o,a)}return o}function _objectSpread(n){for(var r=1;rn.length)&&(r=n.length);for(var o=0,a=Array(r);o0&&n<=o}),onPageChange=function(n){y(Number(n.currentTarget.name))};return a.createElement("div",{className:"flex-row justify-content-center"},a.createElement("button",{name:1,disabled:1===r,className:"products-container__pagination-button",onClick:onPageChange},a.createElement("i",{className:"fas fa-arrow-alt-to-left"})),a.createElement("button",{name:r-1,disabled:1===r,className:"products-container__pagination-button",onClick:onPageChange},(0,q.simpleCopies)("socialfeed.shoppable.prev")),w.map(function(n){return a.createElement("button",{name:n,className:"products-container__pagination-button ".concat(n===r?"products-container__pagination-button--selected":""),key:n,onClick:onPageChange},n)}),a.createElement("button",{name:r+1,disabled:r===o,className:"products-container__pagination-button",onClick:onPageChange},(0,q.simpleCopies)("socialfeed.shoppable.next")),a.createElement("button",{name:o,disabled:r===o,className:"products-container__pagination-button",onClick:onPageChange},a.createElement("i",{className:"fas fa-arrow-alt-to-right"})))};powr_social_feed_products_container_Pagination.propTypes={current:w().number,total:w().number,setPage:w().func};var powr_social_feed_products_container_getTotalPages=function(n){return parseInt(n/10)+(n%10>0?1:0)},powr_social_feed_products_container_PowrSocialFeedProductsContainer=function(n){var r=n.updateAttachedProductHandles,o=n.allProducts,y=n.attachedProductHandles,w=void 0===y?[]:y,P=n.isShowing,A=n.hideProducts,j=n.refresh,et=_slicedToArray((0,a.useState)([]),2),en=et[0],er=et[1],eo=_slicedToArray((0,a.useState)(""),2),ea=eo[0],es=eo[1],el=_slicedToArray((0,a.useState)(!1),2),eu=el[0],ef=el[1],ep=powr_social_feed_products_container_getTotalPages(o.length),ed=_slicedToArray((0,a.useState)(ep),2),em=ed[0],ey=ed[1],ev=_slicedToArray((0,a.useState)(1),2),eb=ev[0],e_=ev[1],ew=(0,a.useMemo)(function(){return en.filter(function(n){return!w.includes(n)},[en,w])}),eE=o.reduce(function(n,r){return _objectSpread(_objectSpread({},n),{},_defineProperty({},r.handle,r))},{}),eS=0===w.length?a.createElement("div",{className:"products-container__empty"},(0,q.simpleCopies)("socialfeed.shoppable.no_items")):w.map(function(n){return eE[n]}).map(function(n){return a.createElement("div",{key:n.handle,className:"flex-row margin-bottom-s justify-content-between products-container__attached-item"},a.createElement("img",{src:n.image,className:"margin-right-s products-container__image"}),a.createElement("div",{className:"flex-column width100 products-container__description"},n.title,a.createElement("span",{className:"margin-top-s products-container__price"},B.US[n.currency]||n.currency,n.priceRange)),a.createElement("button",{onClick:function(){r(w.filter(function(r){return r!==n.handle})),j()},className:"products-container__close"},a.createElement("i",{className:"fal fa-times cursor-pointer"})))}),eT=o.filter(function(n){return ea?n.title.toLowerCase().includes(ea.toLowerCase()):n}),eC=eT.filter(function(n,r){return r>=(eb-1)*10&&r<10*eb}),eO=eC.map(function(n,r){return a.createElement("div",{key:n.handle,className:"products-container__unattached-item flex-row justify-content-between"},a.createElement("img",{src:n.image,className:"products-container__unattached-items-container__image margin-right-s"}),a.createElement("div",{className:"width100",style:{padding:"12px 0",borderBottom:r-1!==o.length?"1px solid #E0E6EA":""}},a.createElement("div",{className:"flex-row align-items-center pad-right-m",style:{paddingRight:"12px"}},a.createElement("div",{className:"flex-column f5 width100"},n.title,a.createElement("span",{className:"margin-top-s products-container__price"},B.US[n.currency]||n.currency,n.priceRange)),a.createElement("input",{name:n.handle,checked:en.includes(n.handle)||w.includes(n.handle),onChange:function(n){var r=n.target,o=r.name;r.checked?!en.includes(o)&&er(en.concat(o)):er(en.filter(function(n){return n!==o}))},disabled:w.includes(n.handle),type:"checkbox",className:"ignore products-container__checkbox"}))))}),ex=powr_social_feed_products_container_getTotalPages(eT.length);em!==ex&&ey(ex),0===eO.length&&(eO=a.createElement("div",{className:"products-container__empty-items"},(0,q.simpleCopies)("socialfeed.shoppable.no_available")));var eP=""===ea?a.createElement("i",{className:"fal fa-search"}):a.createElement("i",{className:"fal fa-times cursor-pointer",onClick:function(){return es("")}});return a.createElement("div",{className:"products-container ".concat(!P&&"products-container--closed"||"")},a.createElement("div",{className:"powrDrilldownBack"},a.createElement("i",{className:"fal fa-angle-left",onClick:A}),a.createElement("span",{className:"drilldown-content-title"},(0,q.simpleCopies)("socialfeed.shoppable.store_items"))),a.createElement("div",{className:"products-container__main flex-column align-items-center"},a.createElement("div",{className:"products-container__title"},a.createElement("div",null,(0,q.simpleCopies)("socialfeed.shoppable.attached")," ",a.createElement("span",{style:{color:10===w.length?"red":""}},w.length,"/10")),a.createElement("button",{onClick:function(){r([]),j()},className:"feed-preview__blue-button"},(0,q.simpleCopies)("socialfeed.shoppable.remove_all"))),a.createElement("div",{className:"width100 flex-column"},eS),a.createElement("div",{className:"products-container__title margin-top-m"},a.createElement("div",null,(0,q.simpleCopies)("socialfeed.shoppable.all_items"),a.createElement("span",null," ",o.length))),a.createElement("div",{className:"products-container__search-container"},a.createElement("input",{type:"text",placeholder:"Search",className:"ignore border-none width100",value:ea,onChange:function(n){e_(1),es(n.target.value)}}),eP),a.createElement("div",{className:"products-container__title margin-top-m"},a.createElement("div",null,(0,q.simpleCopies)("socialfeed.shoppable.showing_all")),a.createElement("button",{className:"feed-preview__blue-button",onClick:function(){var n=eC.filter(function(n){return!en.includes(n.handle)}).map(function(n){return n.handle});er(en.concat.apply(en,_toConsumableArray(n)))}},(0,q.simpleCopies)("socialfeed.shoppable.select_page"))),a.createElement("div",{className:"products-container__unattached-items-container flex-column margin-bottom-m"},eO),a.createElement(powr_social_feed_products_container_Pagination,{current:eb,total:em,setPage:e_}),a.createElement("button",{style:{bottom:ew.length>0?"10px":"-100px"},className:"button button-primary products-container__attach-button",onClick:function(){var n=w.concat(ew);n.length>10&&ef(!0),r(n.slice(0,10)),er([]),j()}},"Attach ",ew.length," item",ew.length>1?"s":""),a.createElement("div",{style:{top:eu?"140px":"0px"},className:"products-container__warning-toast flex-row justify-content-between align-items-center"},(0,q.simpleCopies)("socialfeed.shoppable.cant_attach"),a.createElement("i",{onClick:function(){return ef(!1)},className:"fal fa-times cursor-pointer"}))))};powr_social_feed_products_container_PowrSocialFeedProductsContainer.propTypes={hideProducts:w().func,updateAttachedProductHandles:w().func,isShowing:w().bool,attachedProductHandles:w().arrayOf(w().string),allProducts:w().arrayOf(w().shape({title:w().string,handle:w().string,image:w().string,priceRange:w().string})),refresh:w().func};function powr_social_feed_preview_slicedToArray(n,r){return powr_social_feed_preview_arrayWithHoles(n)||powr_social_feed_preview_iterableToArrayLimit(n,r)||powr_social_feed_preview_unsupportedIterableToArray(n,r)||powr_social_feed_preview_nonIterableRest()}function powr_social_feed_preview_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 powr_social_feed_preview_unsupportedIterableToArray(n,r){if(n){if("string"==typeof n)return powr_social_feed_preview_arrayLikeToArray(n,r);var o=({}).toString.call(n).slice(8,-1);return"Object"===o&&n.constructor&&(o=n.constructor.name),"Map"===o||"Set"===o?Array.from(n):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?powr_social_feed_preview_arrayLikeToArray(n,r):void 0}}function powr_social_feed_preview_arrayLikeToArray(n,r){(null==r||r>n.length)&&(r=n.length);for(var o=0,a=Array(r);onew Date(window.APP_MODEL.meta.created_at)?"free":this.state.featurePremiumStatus}},{key:"render",value:function(){var n=(0,P.a)(this.state,"toggle",{handleContentClick:this.handleChange,notification:this.props.upgradeNotification,featurePremiumStatus:this.makeFeatureFreeForOldUsers(),description:this.props.description,customDescriptionCSS:this.props.descriptionCSS});return a.createElement(P.Z,n,a.createElement("div",{className:"toggle-component__toggle-container"},a.createElement("div",{className:"toggle-component__toggle-status text-transform-capitalize-first-letter ".concat(this.state.checked?"is-on":"")},this.state.checked?POWr.simpleCopies("general.on"):POWr.simpleCopies("general.off")),a.createElement("div",{className:"toggle-component__toggle ".concat(this.state.checked?"is-on":"")},a.createElement("div",{className:"toggle-component__toggle-switch"}))))}}])}(a.Component);A.defaultProps={},A.propTypes={handleChangeComplete:w().func,featurePremiumStatus:w().string,upgradeNotification:w().string,preventToggle:w().bool,checked:w().bool,value:w().oneOfType([w().string,w().bool]),description:w().string,descriptionCSS:w().object};let j=A},60071:function(n,r,o){"use strict";o.d(r,{a:()=>settings_component_wrapper_prepareWrapperProps,Z:()=>en});var a=o("57689"),y=o("40507"),w=o.n(y),P=o("93616"),A=o("82186"),upgrade_popover_UpgradePopover=function(n){var triggerPremiumClick=function(r){var o=(n||{}).onTriggerPremium;n.handleCloseOnClick(!0),"function"==typeof window.handleTriggerPremiumClick&&window.handleTriggerPremiumClick(r,{featurePremiumStatus:n.anchorPremiumStatus,featureName:n.featureLabel}),o&&o()},r=(0,A.simpleCopies)("components.upgrade_popover.".concat({premium:"premium_text_1",pro:"premium_text_2",enterprise:"premium_text_3",v_2500:"upgrade_to_2500",v_5000:"upgrade_to_5000",v_25000:"upgrade_to_25000"}[n.anchorPremiumStatus])),o={premium:"starter",pro:"pro",enterprise:"business"}[n.anchorPremiumStatus],y=n.upgradeText?(0,A.simpleCopies)(n.upgradeText):r,w=(0,A.simpleCopies)("components.upgrade_popover.upgrade_now");return a.createElement("div",{className:"upgrade-popover"},a.createElement(P.Z,{height:n.popOverHeight,width:n.popOverWidth,anchorComponentRef:n.anchorComponentRef,handleCloseOnClick:n.handleCloseOnClick,horizontalPosition:n.smartPopover?"":"center",showAnchorArrow:!0},a.createElement("h3",{className:"upgrade-popover-title"},n.upgradeTitle?(0,A.simpleCopies)(n.upgradeTitle):(0,A.simpleCopies)("components.upgrade_modal.title",{premium_status:window.capitalizeFirstLetter(o)})),a.createElement("div",{className:"upgrade-popover-content"},y,a.createElement("div",{className:"powrbutton upgrade ".concat(n.wobbleUpgradeButton?"shake":""),onClick:function(n){return triggerPremiumClick(n)}},w," ",a.createElement("i",{className:"fal fa-arrow-circle-right"})))))};upgrade_popover_UpgradePopover.propTypes={anchorComponentRef:w().any.isRequired,smartPopover:w().bool,handleCloseOnClick:w().func,onTriggerPremium:w().func,wobbleUpgradeButton:w().bool,upgradeTitle:w().string,upgradeText:w().string,popOverHeight:w().number,popOverWidth:w().number,anchorPremiumStatus:w().string},upgrade_popover_UpgradePopover.defaultProps={popOverHeight:132,popOverWidth:292,smartPopover:!1};var blocked_popover_BlockedPopover=function(n){var r=n.popOverHeight,o=n.popOverWidth,y=n.anchorComponentRef,w=n.handleCloseOnClick,A=n.featureBlockedReason;return a.createElement("div",{className:"blocked-popover"},a.createElement(P.Z,{height:r,width:o,anchorComponentRef:y,horizontalPosition:"center",showAnchorArrow:!0,handleCloseOnClick:w},a.createElement("h3",{className:"blocked-popover-title pad-top-m margin-nil text-center"},a.createElement("i",{className:"fas fa-exclamation-triangle caution margin-right-xs"}),A.title),a.createElement("div",{className:"blocked-popover-content pad-m text-center"},A.description)))};blocked_popover_BlockedPopover.propTypes={anchorComponentRef:w().any.isRequired,featureBlockedReason:w().string,popOverHeight:w().number,popOverWidth:w().number,handleCloseOnClick:w().func},blocked_popover_BlockedPopover.defaultProps={popOverHeight:132,popOverWidth:292};var j=o("5800"),B=o("22987"),q=o("49013");function _typeof(n){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function _classCallCheck(n,r){if(!(n instanceof r))throw TypeError("Cannot call a class as a function")}function _defineProperties(n,r){for(var o=0;oa.push(y))return;if(o.code.length