PageSourceSearch

https://artlogo.co/cdn/shop/t/430/assets/_vite_ProductSelector_DnEu0IXt.js

js artlogo.co collected 2026-10-02 11:28:47 UTC 3,974 bytes, 2 lines download raw bytes

1import{m as g}from"./_vite_runtime-dom.esm-bundler_C5zu4q2U.js";import{u as b,a as x}from"./vite_section.build_DZ4sHI_S.js";import{_ as v}from"./_vite_DiscountStar.vue_vue_type_script_setup_true_lang_CEw1XGQ8.js";import"./_vite__sentry-release-injection-file_BFY1NBm6.js";import{C as w,d as h,w as P,o as d,D as p,F as k,at as S,b as I,e as l,c as D,R as B}from"./_vite_runtime-core.esm-bundler_BD1FGUA9.js";import{r as C,n as c,ak as m}from"./_vite_reactivity.esm-bundler_BPc4qUhj.js";import"./_vite_index_yoP7MCHp.js";import"./_vite_pinia_D-hKPUj_.js";import"./_vite_index_8DlFaaJG.js";import"./_vite_index_BlTLLVZP.js";import"./_vite__commonjsHelpers_Cq7dRtGp.js";import"./_vite_artlogo-apps_CsaR-kpn.js";import"./_vite_preload-helper_BwDkN6RQ.js";import"./_vite_access-check_BzvqpBfp.js";import"./_vite_index_DlbDXCSJ.js";import"./_vite_index_DmuHcPRU.js";import"./_vite_shopify_DmHxksp5.js";import"./_vite_string_BSaGRqr4.js";import"./_vite_index_D8n6GN1B.js";import"./_vite_index_CWMh2Sv_.js";import"./_vite_index_BxljrHT8.js";import"./_vite__MapCache_DV0EoT-I.js";import"./_vite__arrayPush_qS2cr0hY.js";import"./_vite_popper_gGiT_RTn.js";import"./_vite_index_vxp0Hmhe.js";import"./_vite__plugin-vue_export-helper_AxROvgWa.js";import"./_vite__commonjsHelpers.cLkZ-J7w_zgb6hKXo.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="4c9483b1-e511-49ee-a1dc-5ed554f0641c",o._sentryDebugIdIdentifier="sentry-dbid-4c9483b1-e511-49ee-a1dc-5ed554f0641c")}catch{}})();{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[new a.Error().stack]=Object.assign({},a._sentryModuleMetadata[new a.Error().stack],{"_sentryBundlerPluginAppKey:artlogo-shopify-theme":!0})}function E(o){const e=b();return w({get(){return e.mainProduct.customParams[o]},set(n){e.mainProduct.customParams[o]=n}})}const T={class:"flex justify-center space-x-4 text-base sm:max-w-4xl mx-auto pt-4 md:pt-0"},V=["for"],N=["id","value"],$={class:"m-0 text-3xl md:text-3xl"},j={class:"mt-2 text-lg"},ut=h({__name:"ProductSelector",props:{option:{}},setup(o){const e=o,n=b(),y=E(e.option.cart_label),u=x(),r=C(e.option.products.find(i=>i.id===Number(u.get("product_id")))??e.option.products[0]);return P(()=>r.value.id,()=>{y.value=e.option.products.findIndex(t=>t.id===r.value.id).toString();const i=r.value,s=i.variants[i.defaultVariantIndex]??i.variants[0];n.setMainProduct({title:i.title,variantId:s.id,price:s.price,compareAtPrice:s.compare_at_price,quantity:1}),u.set("product_id",String(r.value.id))},{immediate:!0}),(i,s)=>(d(),p("div",T,[(d(!0),p(k,null,S(e.option.products,(t,f)=>
1(d(),p("label",{key:t.id,for:`product_selector_${t.id}`,class:c(["transition block rounded-xl border-4 border-solid pt-6 pb-10 px-2 sm:px-6 relative cursor-pointer w-1/2",r.value.id===t.id?"border-accent-red":"border-gray-300"])},[I(l("input",{id:`product_selector_${t.id}`,"onUpdate:modelValue":s[0]||(s[0]=_=>r.value=_),value:t,type:"radio",class:"hidden"},null,8,N),[[g,r.value]]),l("h4",$,m(t.title),1),l("div",j,m(t.description),1),l("div",{class:c(["transition w-max max-w-[80%] absolute bottom-0 left-1/2 -translate-x-1/2 translate-y-1/2 border-2 border-solid rounded-full px-3 sm:px-6 py-1 text-sm font-bold",{"bg-white":f===0,"bg-accent-red text-white":f>0,"border-gray-300":r.value.id!==t.id,"border-accent-red":r.value.id===t.id}])},m(t.badge),3),t.discount?(d(),D(v,{key:0,class:c(["transition absolute top-0 right-0 translate-x-1/3 md:translate-x-1/2 -translate-y-1/2 z-10",r.value.id!==t.id?"opacity-100":"opacity-0"]),discount:t.discount},null,8,["class","discount"])):B("",!0)],10,V))),128))]))}});export{ut as default};
2//# sourceMappingURL=/cdn/shop/t/430/assets/_vite_ProductSelector_DnEu0IXt.js.map

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.