1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B8cQwwio.js","./CgU_Gher.js","./jmB-WYvk.js","./vendor-builder.pimZkkzN.css","./BI4dxO8O.js","./BlVndTPS.js","./Dv-CToOw.js","./entry.BRijEixM.css","./Dm4NdyQh.js","./CUY_xYty.js","./CiBuvA-H.js","./BD4pR97u.js","./DJHBv6Y6.js","./ImageRaw.dj2fV1DC.css","./BZqxqMF8.js","./DxestdhN.js","./Video.CTj44uSO.css","./BAwiIiWd.js","./Selectable.DBHkRqxq.css","./Eup9u4GF.js","./Price.tqm8bOXF.css","./NZanJvy8.js","./CdL-mdu4.js","./LoadingSpinner.CFjc-I5j.css","./DhUnC8oZ.js","./index.CICq_0te.css"])))=>i.map(i=>d[i]); 2import{_ as O}from"./CgU_Gher.js";import{a as l}from"./BlVndTPS.js";import{f as $,u as w,k as x,l as m,s as g}from"./BI4dxO8O.js";import{b7 as G,d as D,Q as M,ax as N,al as _,bz as b,o as k,c as H,a as U,aW as d,q as V,Y as q,K as A,C,L as p,g as L}from"./jmB-WYvk.js";import{q as B,u as F}from"./BFwMdwjX.js";import{s as E}from"./BD4pR97u.js";import{u as K}from"./Dkt5NRvV.js";import"./Dv-CToOw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"};var o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ad165f8b-c4df-4776-87e0-c8190c171158",e._sentryDebugIdIdentifier="sentry-dbid-ad165f8b-c4df-4776-87e0-c8190c171158")}catch{}})();const R={MST:"standard",MCO:"comfort"},T={BRGSO:"1",BRGME:"2",BRGST:"3",BRGEX:"4",BRGUL:"5"},z=G` 3 query productIndex($collectionHandle: String!, $lng: LanguageCode!, $country: CountryCode) @inContext(language: $lng, country: $country) { 4 collection(handle: $collectionHandle) { 5 products(first: ${l.configurator.numProducts}) { 6 edges { 7 node { 8 configuratorSlug: metafield( 9 namespace: "configurator" 10 key: "slug" 11 ) { 12 value 13 } 14 variants(first: ${l.configurator.numProductVariants}) { 15 edges { 16 node { 17 id 18 sku 19 priceV2 { 20 amount 21 currencyCode 22 } 23 compareAtPriceV2 { 24 amount 25 currencyCode 26 } 27 selectedOptions { 28 name 29 value 30 } 31 } 32 } 33 } 34 } 35 } 36 } 37 } 38 } 39`,f=e=>{const o=e.collection.products.edges.map(a=>({...a.node,variants:a.node.variants.edges.map(t=>t.node)})),s=a=>{if(!a)return null;const t=Object.keys(R).find(r=>a.includes(`_${r}`)),n=Object.keys(T).find(r=>a.includes(`_${r}`));return!t||!n?(console.warn(`[variantIndex] cannot derive configurator key from SKU: "${a}"`),null):{mat:R[t],bungee:T[n]}};return Object.fromEntries(o.reduce((a,t)=>a.concat(t.variants.flatMap(n=>{const r=s(n.sku);return r?[[`${t.configuratorSlug.value}-${r.mat}-${r.bungee}`,{id:n.id,price:Number.parseFloat(n.priceV2.amount),compareAtPrice:n.compareAtPriceV2?Number.parseFloat(n.compareAtPriceV2.amount):0,currency:n.priceV2.currencyCode}]]:[]})),[]))},j=L(()=>O(()=>import("./B8cQwwio.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url).then(e=>e.default||e)),ne=D({__name:"configurator",async setup(e){let o,s;K();const a=q(!1);M(()=>{N(()=>{a.value=!0})}),_({style:[{innerHTML:".configurator-page{visibility:hidden}",id:"configurator-fouc-guard"}]});const t=$(),{t:n}=w(),{i18n:r}=t,u=p(()=>t.i18n.baseRegion),{getCountryParameter:y}=x(),v=p(()=>({collectionHandle:l.configurator.collection,lng:t.language.toUpperCase(),country:y()})),I=p(()=>({handle:l.assemblyHandle,lng:t.language.toUpperCase(),country:y()})),{data:S}=([o,s]=b(async()=>A("variant-index",async()=>{const c=C()._apolloClients[m(g(t.i18n.locale))],{data:i}=await c.query({...E(r.locale,z,f),variables:v.value,fetchPolicy:"no-cache"});return f(i)},{watch:[u],server:!1})),o=await o,s(),o),{data:P}=([o,s]=b(async()=>A("assembly-product",async()=>{const c=C()._apolloClients[m(g(t.i18n.locale))],{data:i}=await c.query({...E(r.locale,B,f),variables:I.value,fetchPolicy:"no-cache"});return F(i)},{watch:[u],server:!1})),o=await o,s(),o);return _({title:n("PAGE_HEAD_TITLE_CONFIGURATOR"),meta:[{property:"og:title",content:n("PAGE_HEAD_TITLE_CONFIGURATOR")},{name:"description",content:n("PAGE_HEAD_META_DESCRIPTION_CONFIGURATOR")},{property:"og:description",content:n("PAGE_HEAD_META_DESCRIPTION_CONFIGURATOR")}]}),(c,i)=>{const h=j;return k(),H("section",{class:"page configurator-page",style:V({visibility:d(a)?"visible":"hidden"})},[U(h,{"variant-index":d(S),"assembly-product":d(P)},null,8,["variant-index","assembly-product"])],4)}}});
39export{ne as default};
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.