{"version":3,"sources":["admin.js"],"names":["receiveSettings","e","origin","location","receiveInternalData","attrs","document","getElementById","dataset","transfer","data","startsWith","split","action","this","submitPastOrdersCommand","resync","issynced","submitCheckProductSkusCommand","sendSignupData","updateplugin","reloadSettings","handleJSONMessage","parsedData","tryParseJson","TrustBoxPreviewMode","trustBoxPreviewMode","window","updateIframeSize","type","submitSettings","trustbox","contentWindow","postMessage","JSON","stringify","settings","div","enable","hidden","requestCategoryInfo","FORM_KEY","scope","scopeId","xhr","XMLHttpRequest","open","ajaxUrl","setRequestHeader","onreadystatechange","readyState","status","console","log","response","sendPastOrdersInfo","send","encodeSettings","iframe","form_key","pageUrls","encodeURIComponent","customTrustBoxes","frame","btoa","websiteId","website_id","storeId","store_id","encodedString","setting","substring","length","sendSettings","parse","atob","pluginVersion","source","version","basis","productIdentificationOptions","configurationScopeTree","pluginStatus","isFromMarketplace","trustboxes","sku","name","undefined","pastOrders","height","str","out","Object","assign","addEventListener"],"mappings":"AAEA,SAASA,gBAAgBC,GACrB,GAAIA,EAAEC,SAAWC,SAASD,OACtB,OAAOE,oBAAoBH,GAE/B,MACMI,EADSC,SAASC,eAAe,wBAClBC,QACrB,GAAIP,EAAEC,SAAWG,EAAMI,SACnB,OAEJ,MAAMC,EAAOT,EAAES,KAEf,GAAoB,iBAATA,EAIX,GAAIA,EAAKC,WAAW,UAAYD,EAAKC,WAAW,0BAA2B,CACvE,MAAMC,EAAQF,EAAKE,MAAM,KACnBC,GACNA,OAAmB,sBACnBA,EAAOD,EAAM,IAAMA,EAAM,GACzBE,KAAKC,wBAAwBF,QAC1B,GAAIH,EAAKC,WAAW,UAAW,CAClC,MAAME,GACNA,OAAmB,qBACnBG,OAAmB,UACnBF,KAAKC,wBAAwBF,QAC1B,GAAIH,EAAKC,WAAW,YAAa,CACpC,MAAME,GACNA,OAAmB,qBACnBI,SAAqB,YACrBH,KAAKC,wBAAwBF,QAC1B,GAAIH,EAAKC,WAAW,sBAAuB,CAC9C,MAAMC,EAA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