1window.printessGlobalConfig=window.printessGlobalConfig||{},(()=>{let lastToken=null,lastTs=0;const DEDUPE_WINDOW_MS=1500,REGISTER_RETRY_INTERVAL_MS=250,REGISTER_TIMEOUT_MS=1e4,buildShareUrl=saveToken=>{const url=new URL(window.location.origin+window.location.pathname),variant=new URL(window.location.href).searchParams.get("variant");return variant&&url.searchParams.set("variant",variant),url.searchParams.set("printesssavetoken",saveToken),url.toString()},emitPrintessSaved=(saveToken,thumbnailUrl,params)=>{if(!saveToken)return;const now=Date.now();if(saveToken===lastToken&&now-lastTs<DEDUPE_WINDOW_MS)return;lastToken=saveToken,lastTs=now;const shareUrl=buildShareUrl(saveToken);document.dispatchEvent(new CustomEvent("printess:saved",{detail:{saveToken,thumbnailUrl,params:params||null,shareUrl}}))},readId=value=>value?typeof value.getId=="function"?value.getId():value.id!==null&&value.id!==void 0?value.id:null:null,readTitle=value=>value?typeof value.getLabel=="function"?value.getLabel():value.title!==null&&value.title!==void 0?value.title:value.name!==null&&value.name!==void 0?value.name:"":"",enrichParams=async(context,params)=>{let formFieldValues=params?.formFieldValues||null;if(!formFieldValues&&typeof context?.integration?.getFormFieldsAsync=="function")try{formFieldValues=await context.integration.getFormFieldsAsync(context.product,context.variant)}catch(err){console.warn("[PRINTESS][SAVE_SHARE] Could not read form fields:",err)}return{...params||{},formFieldValues,productTitle:readTitle(context?.product),variantTitle:readTitle(context?.variant),productId:readId(context?.product),variantId:readId(context?.variant)}},registerPlugin=()=>window.__printessSaveSharePluginRegistered?!0:typeof window.registerPrintessPlugin!="function"?!1:(window.registerPrintessPlugin({async onSaveAsync(context,params){const enrichedParams=await enrichParams(context,params);return emitPrintessSaved(params?.saveToken,params?.thumbnailUrl,enrichedParams),Promise.resolve()}}),window.__printessSaveSharePluginRegistered=!0,!0);(()=>{if(registerPlugin())return;const startedAt=Date.now(),retryTimer=window.setInterval(()=>{if(registerPlugin()){window.clearInterval(retryTimer);return}Date.now()-startedAt>=REGISTER_TIMEOUT_MS&&(window.clearInterval(retryTimer),console.warn("[PRINTESS][SAVE_SHARE] registerPrintessPlugin is not available"))},REGISTER_RETRY_INTERVAL_MS)})(),window.printessGlobalConfig.onSave=(saveToken,thumbnailUrl,params)=>{emitPrintessSaved(saveToken,thumbnailUrl,params)},window.printessGlobalConfig.onSaveAsync=async(saveToken,thumbnailUrl,params)=>{emitPrintessSaved(saveToken,thumbnailUrl,params)}})(); 2//# sourceMappingURL=/cdn/shop/t/54/assets/momery-printess-save-share.js.map?v=90231944698891784951790770305
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.