Files

3 lines
563 KiB
JavaScript
Raw Permalink Normal View History

(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`@charset "UTF-8";@import"https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,700&subset=latin-ext";@import"https://fonts.googleapis.com/icon?family=Material+Icons";@import"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;600;700;800;900&display=swap";@import"https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap";.spinner[data-v-be5772c0]{width:8rem!important;height:8rem!important;border-radius:4rem!important;position:relative;left:calc(50% - 4rem);top:6rem}.iconInfo[data-v-30f4bdfe]{position:relative;top:.1em}.logo[data-v-9719dafa]{float:left;display:block}.description[data-v-9719dafa]{display:table-cell}.btn-with-spinner[data-v-9719dafa]{position:relative}.btn-with-spinner>.hidden[data-v-9719dafa]{visibility:hidden}.btn-with-spinner>.spinner[data-v-9719dafa]{width:1.3rem!important;height:1.3rem!important;position:absolute;left:calc(50% - .6rem);top:calc(50% - .6rem)}.facebook-not-connected-details{margin-top:.8em;margin-bottom:0}.facebook-not-connected-details>ul{margin-bottom:0;padding-inline-start:1.6rem}.facebook-not-connected-details>ul>li{padding-left:.8rem}.survey[data-v-083ea7ca]{display:block!important;background-color:#ffffff4d!important;border:1px solid #dde3e6!important;border-radius:3px}.glass[data-v-23cdacf4]{position:fixed;left:0;right:0;top:0;bottom:0;background-color:#00000080;z-index:10000}.glass>.refocus[data-v-23cdacf4]{text-align:center;margin-top:25vh;color:#fff;display:flex;flex-direction:column;align-items:center}.glass>.refocus>img[data-v-23cdacf4]{box-shadow:3px 5px 10px #0000001a;border-radius:50%}.glass>.refocus>p[data-v-23cdacf4],.glass>.refocus>a[data-v-23cdacf4]{font-family:Open Sans;font-size:14px;letter-spacing:0;line-height:21px;text-align:center;text-shadow:3px 5px 10px rgba(0,0,0,.4);max-width:460px}.glass>.refocus>h2[data-v-23cdacf4]{color:#fff!important;font-family:Open Sans;font-size:18px;letter-spacing:0;line-height:21px;text-align:center;text-shadow:3px 5px 10px rgba(0,0,0,.4);max-width:460px}.glass>.refocus>a[data-v-23cdacf4]{font-weight:600}.glass>.refocus>span[data-v-23cdacf4]{text-align:center}.glass>.refocus>span .spinner[data-v-23cdacf4]{top:3rem;background-color:unset!important}.glass>.closeCross[data-v-23cdacf4]{position:fixed;right:0;top:0;color:#fff;text-shadow:3px 5px 10px rgba(0,0,0,.4)}.glass>.closeCross>i[data-v-23cdacf4]{color:#fff;font-size:2.6em!important}.glass .exchangeTokensLoader[data-v-23cdacf4]{margin-bottom:6rem}.glass .exchangeTokensLoader>div[data-v-23cdacf4]{box-shadow:3px 5px 10px #0000001a}.glass .fixed-size-large[data-v-23cdacf4]{font-size:64pt;text-shadow:3px 5px 10px rgba(0,0,0,.1)}.glass .fixed-size-big[data-v-23cdacf4]{font-size:30pt;text-shadow:3px 5px 10px rgba(0,0,0,.1)}.glass .error-button[data-v-23cdacf4]{box-shadow:3px 5px 10px #0000001a}.spinner[data-v-459e0fc6]{width:1.4rem!important;height:1.4rem!important}.display-table-matchingFb .psfb-lazy-loading[data-v-a022a018]{width:100%;height:40px}.display-table-matchingFb .psfb-lazy-loading .spinner[data-v-a022a018]{width:3rem!important;height:3rem!important;position:absolute;left:calc(50% - .6rem)}.display-table-editTable table tbody tr[data-v-816bdf24]{height:50px}.display-table-editTable .opened td[data-v-816bdf24]:first-child:before{font-family:Material Icons!important;font-weight:400!important;font-style:normal!important;font-size:24px!important;font-size:1.5rem!important;line-height:1!important;text-transform:none!important;letter-spacing:normal!important;word-wrap:normal!important;white-space:nowrap!important;direction:ltr!important;-webkit-font-smoothing:antialiased!important;text-rendering:optimizeLegibility!important;-moz-osx-font-smoothing:grayscale!important;font-feature-settings:"liga"!important;content:"expand_more"!important;border:none!important;display:inline-block!important;vertical-align:middle!important;width:auto!important;line-height:0!important}.display-table-editTable .opened td[data-v-816bdf24]:fi
var Ue=Object.defineProperty;var Me=(t,a,e)=>a in t?Ue(t,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[a]=e;var z=(t,a,e)=>(Me(t,typeof a!="symbol"?a+"":a,e),e);import{A as De,M as Ge,V as Be,a as w,b as Te,B as D,c as qe,d as He,e as je,f as i,g as j,h as Ve,i as Ye,j as we,s as m,k as J,v as ze,m as b,l as Xe,n as Qe,o as Ke,p as We,q as ke,r as Ie,_ as $,t as Ze}from"./vendor.js";import Je from"./translations/en.js";const ta=(t,a)=>{const e={debug:!1,pageCategory:"",settings:{disableClientPersistence:!0},disabled:!1,...a};if(!e.disabled&&(!e.id||e.id.length===0)){console.warn("Please enter a Segment Write Key");return}if(Object.hasOwnProperty.call(t,"$segment")||Object.prototype.hasOwnProperty.call(t,"$segment")){window.console&&console.error&&console.error("Segment snippet included twice.");return}const s=["trackSubmit","trackClick","trackLink","pageView","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","setAnonymousId","addDestinationMiddleware","screen","register","deregister","user"],n=De.load({writeKey:e.id},e.settings);a.debug&&s.forEach(o=>{n[o]=(...c)=>{console.debug(`Segment method ${o} called.`,c)}}),e.router!==void 0&&e.router.afterEach((o,c)=>{var p;(p=o.meta)!=null&&p.exclude||n.page(e.pageCategory,o.name||"",{path:o.fullPath,referrer:c.fullPath})}),Object.defineProperty(t,"$segment",{get(){return n}}),Object.defineProperty(t.prototype,"$segment",{get(){return n}})},ea={install:ta};class ft extends Error{constructor(a,e){super(a),this.code=e,this.name=this.constructor.name,this.message=a,this.code=e}}const F={shopUrl:""},aa=t=>{F.shopUrl=t.shopUrl,F.onShopSessionLoggedOut=t.onShopSessionLoggedOut},E=async(t,a)=>{if(!F.shopUrl.length)throw new Error(`Cannot call action ${t}, API is not initialized (missing shop URL)`);const e=await fetch(`${F.shopUrl}&action=${t}&ajax=1`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({action:t,...a})});if(e.redirected&&e.url.indexOf("AdminLogin")!==-1)throw F.onShopSessionLoggedOut&&F.onShopSessionLoggedOut(),new ft("Unauthorized",401);if(!e.ok)throw new ft(e.statusText,e.status);return e.json()},sa=t=>{const a=new URL(t),e=new URLSearchParams;return a.searchParams.forEach((s,n)=>{["token","controller"].includes(n)&&e.set(n,s)}),a.search=`?${e.toString()}`,a.toString()};var f=(t=>(t.GET_EXTERNAL_BUSINESS_ID="GET_EXTERNAL_BUSINESS_ID",t.GET_ONBOARDING_STATE="GET_ONBOARDING_STATE",t.IS_USER_ONBOARDED="IS_USER_ONBOARDED",t.GET_CATALOG_ID="GET_CATALOG_ID",t))(f||{});const v={summary:"summary",categoryMatchingView:"categoryMatchingView",categoryMatchingEdit:"categoryMatchingEdit",nonCompliantProductsReport:"nonCompliantProductsReport",disapprovedProductsReport:"disapprovedProductsReport"};var x=(t=>(t.GET_HOOKS_STATUS="GET_HOOKS_STATUS",t.GET_BILLING_SUBSCRIPTION_ACTIVE="GET_BILLING_SUBSCRIPTION_ACTIVE",t.GET_BILLING_SUBSCRIPTION_EXPIRING="GET_BILLING_SUBSCRIPTION_EXPIRING",t))(x||{}),R=(t=>(t.WARMUP_STORE="WARMUP_STORE",t.REQUEST_EXTERNAL_BUSINESS_ID="REQUEST_EXTERNAL_BUSINESS_ID",t.REQUEST_ONBOARDING_STATE="REQUEST_ONBOARDING_STATE",t.UPDATE_PIXEL_STATUS="UPDATE_PIXEL_STATUS",t))(R||{});const na={[x.GET_HOOKS_STATUS](t){return t.hooks},[x.GET_BILLING_SUBSCRIPTION_ACTIVE](t){return!!t.billing.subscription&&t.billing.subscription.status!=="cancelled"},[x.GET_BILLING_SUBSCRIPTION_EXPIRING](t){return!!t.billing.subscription&&!!t.billing.subscription.cancelled_at}};var tt=(t=>(t.SET_HOOKS_STATUS="SET_HOOKS_STATUS",t))(tt||{});const oa={[tt.SET_HOOKS_STATUS](t,a){t.hooks=a}};var A=(t=>(t.GET_MODULES_VERSIONS="GET_MODULES_VERSIONS",t.TRIGGER_MODULE_MANAGER_ACTION="TRIGGER_MODULE_MANAGER_ACTION",t.TRIGGER_REGISTER_HOOK="TRIGGER_REGISTER_HOOK",t.FIX_UNREGISTERED_HOOKS="FIX_UNREGISTERED_HOOKS",t))(A||{});const ra={async[A.GET_MODULES_VERSIONS]({commit:t},a){try{const e=await E("getModuleStatus",{moduleName:a});return e.hooks&&t(tt.SET_HOOKS_STATUS,e.hooks),e}catch(e){return console.error(e),e}},async[A.TRIGGER_MODULE_MANAGER_ACTION](){const t=window.contextPsAc