1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`a6fafdec27`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`122116c6-a60e-4e94-9aa2-84b476066503`,e._sentryDebugIdIdentifier=`sentry-dbid-122116c6-a60e-4e94-9aa2-84b476066503`)}catch{}})();import{At as e,L as t,R as n}from"./WCVDKeko.js";import{St as r}from"./BSu4Q5qC.js";import{L as i,S as a,_ as o,b as s,p as c,x as l,y as u}from"./C3X79py4.js";var d=async(e,r=!1,i=!1)=>{let a=`stamp-model-${e}-${!!r}`,{data:o}=n(a),{data:c}=await t(a,async()=>{if(!i&&o.value)return o.value;let{data:t}=await s(e);return v(t,0,r)},`$_WaKkg23A2`);return c.value},f=async e=>{let t=null,{id:n,...r}=e?.preset||{};Object.keys(r).length&&(t=r);let i={name:e.name.trim().toLowerCase(),config:{brand:e.config?.brand,range:e.config?.range,model:e.config?.model,color:e.config?.color||``,round:e.config?.round||!1},type:`stamping`,background:e.background||``,inkColor:e.inkColor||``,elements:e.elements,openingMenu:e.openingMenu||``,preset:t};try{let{data:t}=await a(i,e.documentId);return t}catch(e){throw e.data&&(console.error(`ð Detailed API Error Response:`,e.data),e.data.error&&(console.error(`ð API Error Details:`,e.data.error),e.data.error.details&&console.error(`ð Validation Details:`,e.data.error.details))),e}},p=async(e,a=``,o=!1)=>{if(!e?.length)return{data:[]};let s=e.map(e=>typeof e==`string`?e:e.model),c=`stamp-models-`+i([s.join(``),a])+`-${!!o}`,{data:l}=n(c),{data:u,pending:d,error:f,refresh:p}=await t(c,async()=>l.value?l.value:s.length?await r(s.map(e=>e.startsWith(`model-`)?e:`model-${e}`),o):{data:[]},`$ZbwcZysAqj`);return{data:u,pending:d,error:f,refresh:p}},m=async e=>{let r=`stamp-similar-${e}`,{data:i}=n(r),{data:a,pending:o,error:s,refresh:c}=await t(r,async()=>{if(i.value)return i.value;if(!e)return{data:[]};let{data:t}=await u(e);return t.filter(e=>e)},`$PdpsuvuamU`);return{data:a,pending:o,error:s,refresh:c}},h=async e=>{let r=`similar-product-${e}`,{data:i}=n(r),{data:a,pending:s,error:c,refresh:l}=await t(r,async()=>{if(i.value)return i.value;if(!e)return{data:[]};let{data:t}=await o(e);return t.filter(e=>e)},`$VLX3kxOvGt`);return{data:a,pending:s,error:c,refresh:l}},g=async r=>{try{let a=`useGetRandomStampProducts`+i(r||e().currentRoute.value.fullPath),{data:o}=n(a),{data:s,pending:c,error:u,refresh:d}=await t(a,async()=>{if(o.value)return o.value;let{data:e}=await l();return e.filter(({name:e})=>e!==r).map((e,t)=>({type:`stamping`,content:{...e,...e.preset?{modelName:e.name}:{}},slug:`model-${e.name}`,index:t,name:e.name}))},`$0aPyeIF-Wg`);return{data:s,pending:c,error:u,refresh:d}}catch(e){window?.console.error(`Error while fetching random stamp products`,e)}},_=async(e,r=12)=>{let i=`stamp-primary-models-${e}`,{data:a}=n(i);return await t(i,async()=>{if(a.value)return a.value;let{data:t}=await c(e,r);return t},`$yYIepkAi_Y`)};function v(e,t=0,n=!1){let{product:r,...i}=e,{custom:a=[],...o}=r;return{modelId:e.id,...i,product:{...o,...a[0]},elements:n?[]:e.elements}}export{_ as a,f as i,g as n,p as o,h as r,m as s,d as t};
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.