PageSourceSearch

https://www.osklen.com/_frsh/js/c33a80b927ce0f73d6590843ba6c3d00ee6e0e25/chunk-3HXOG4SA.js

js osklen.com collected 2026-09-26 00:36:35 UTC 22,378 bytes, 2 lines download raw bytes

1import{a as W}from"./chunk-DUNDQI4W.js";import{a as ne}from"./chunk-N6HSIXGG.js";import{a as te}from"./chunk-PHNIBYWZ.js";import{a as ae}from"./chunk-MKBARZEL.js";import{a as ee}from"./chunk-YE72NQPE.js";import{a as y}from"./chunk-Z6KNDQXU.js";import{a as U}from"./chunk-U4AT4GMS.js";import{a as X}from"./chunk-P4SYE45A.js";import{a as J}from"./chunk-WH47EIOV.js";import{a as j,b as z}from"./chunk-MF2PTXOS.js";import{c as B}from"./chunk-4BROKFEX.js";import{d as g}from"./chunk-VYZNAVQ6.js";import{a as Q}from"./chunk-NORPMJFD.js";import{f as K}from"./chunk-2WDDCXLQ.js";import{a as e}from"./chunk-X6IOVEKU.js";import{a as $,b as I,f as Y}from"./chunk-ZDLMJVT4.js";import{d as q}from"./chunk-6QKRXUVD.js";var me=100;function ge({onChange:t,quantity:n,disabled:s,loading:o}){return e("div",{class:"flex bg-white rounded-full min-w-[59.7px] md:min-w-[66px] w-fit items-center h-[18.1px] md:min-h-5 relative justify-between",children:[e(y,{disableDefaultStyle:!0,class:"bg-[#F9F9F9] md:w-5 w-[18.1px] md:h-5 h-[18.1px] rounded-full flex items-center justify-center text-[10px]",onClick:()=>t?.(Math.max(0,n-1)),disabled:s,loading:o,children:e("span",{class:"inline-flex items-center justify-center leading-[0]",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"2",viewBox:"0 0 8 2",fill:"none",children:e("path",{d:"M7.36277 0.1875V1.33524H0.121216V0.1875H7.36277Z",fill:"black"})})})}),e("span",{class:"text-black text-xs px-1.5",children:n}),e(y,{disableDefaultStyle:!0,class:"bg-[#F9F9F9] md:w-5 w-[18.1px] md:h-5 h-[18.1px] rounded-full flex items-center justify-center text-[10px]",onClick:()=>t?.(Math.min(n+1,me)),disabled:s,loading:o,children:e("span",{class:"inline-flex items-center justify-center leading-[0]",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",children:e("path",{d:"M3.94645 0.140625H4.81543V3.32691H8.00172V4.1959H4.81543V7.38218H3.94645V4.1959H0.760162V3.32691H3.94645V0.140625Z",fill:"black"})})})})]})}var se=ge;var oe=["items","totalizers","clientProfileData","shippingData","paymentData","sellers","messages","marketingData","clientPreferencesData","storePreferencesData","giftRegistryData","ratesAndBenefitsData","openTextField","commercialConditionData","customData"];function xe({index:t,locale:n,currency:s,item:o}){let{cart:a,updateItems:i,addItems:x,mapItemsToAnalyticsItems:m}=B(),p=g(!1),v=g(!1),f=g(""),{imageUrl:h,skuName:u,sellingPrice:C,listPrice:P,name:E,quantity:M,seller:V,detailUrl:O,id:T}=o,L=g(null),D=async l=>{let w=window.localStorage.getItem(`${l}`);if(w)return L.value=+w,w;let G=(await(await fetch(`/api/catalog_system/pub/products/search?fq=skuId:${l}`,{headers:{Accept:"application/vnd.vtex.ds.v10+json","Content-Type":"application/json"}}))?.json())?.[0]?.items.find(fe=>fe.itemId===l)?.sellers?.[0]?.commertialOffer.AvailableQuantity;return L.value=G??1e4,localStorage.setItem(`${l}`,`${G??1e4}`),G};I(()=>{D(T)},[]);let F=u.split("-"),_=F[0].length<=2?`${F[0]}-${F[1]}`:F[0],R=u.replace(_,"").substring(1).replace("-","/"),N=C<.01,H=a?.value?.selectableGifts,d=Y(l=>async c=>{try{p.value=!0,await l(c)}finally{p.value=!1}},[p]);async function b(){v.value=!0;let l={method:"POST",body:JSON.stringify({expectedOrderFormSections:oe,id:H[0].id,selectedGifts:[]}),headers:{"content-type":"application/json",accept:"application/json"}};try{let w=await(await fetch(`/api/checkout/pub/orderForm/${a?.value?.orderFormId}/selectable-gifts/${H[0].id}`,l)).json();w&&w.orderFormId&&(v.value=!1,await i({orderItems:[{index:0,quantity:1}]}))}catch(c){console.error("Error removing gift:",c),v.value=!1}}I(()=>{async function l(){v.value=!0,await i({orderItems:[{index:t,quantity:0}]}),await x({orderItems:[{index:0,id:f.value,seller:V,quantity:o.quantity}]}),v.value=!1}f.value.length>0&&l()},[f.value]);let r=(l=>globalThis?.window.innerWidth<768&&l.length>73?l.substring(0,73)+"...":l)(W(te(_)));return e("li",{class:"border-t-[0.5px] border-[#8f8f8f]",children:e("div",{class:"flex items-center justify-between py-4",children:[e("div",{class:"flex gap-3",children:[e("a",{href:O,title:u,children:e(K,{src:h,alt:u,width:globalThis?.window.innerWidth<768?55:60,height:0,class:"w-full h-full md:min-w-[60px] md:max-w-[60px] min-w-[55px] max-w-[55px] min-h-[81px] max-h-[81px] md:min-
1h-[90px] md:max-h-[90px] rounded-xl object-cover two-column",preload:!1,loading:"lazy",fetchPriority:"low",decoding:"async"})}),e("div",{class:"flex flex-col justify-between",children:[e("div",{class:"flex flex-col gap-1",children:[e("span",{class:"text-[14px] font-medium text-[#222] tracking-[-0.14px] leading-[110%] line-clamp-2 capitalize",children:e("a",{href:O,title:E,children:r})}),e("span",{class:"text-[12px] text-[#8f8f8f] capitalize leading-[120%] tracking-[-0.24px]",children:W(R??"")??""}),typeof L.value=="number"&&L.value-M<=1&&e("span",{class:"text-[12px] text-[#F15539] capitalize leading-[120%] tracking-[-0.24px]",children:"1 unit available"})]}),e("div",{class:"flex bg-white rounded-full w-fit items-center",children:e(se,{disabled:p.value||N,quantity:M,onChange:d(async l=>{await i({orderItems:[{index:t,quantity:l}]});let c=l-o.quantity;a.value&&X({name:c<0?"remove_from_cart":"add_to_cart",params:{items:m({items:[{...o,quantity:Math.abs(c)}],marketingData:a.value.marketingData})}})})})})]})]}),e("div",{class:"flex flex-col justify-between items-end gap-10 h-[81px] md:h-[90px]",children:[e("span",{class:"font-display text-[13px] font-medium leading-[110%] tracking-[-0.11px] text-[#8F8F8F]",children:[e("span",{class:"line-through mr-2",children:C!==P&&`${j(P/100,s,n)}`}),j(C/100,s,n)]}),e("div",{class:"flex gap-2",children:e(y,{disableDefaultStyle:!0,type:"button",class:"bg-white h-[18.1px] md:min-h-5 max-w-[57.8px] rounded-full px-1.5 py-0.5 text-[12px] leading-[120%] tracking-[-0.24px] text-[#222]",onClick:d(async()=>{if(N){b();return}await i({orderItems:[{index:t,quantity:0}]}),a.value&&X({name:"remove_from_cart",params:{items:m({items:[o],marketingData:a.value.marketingData})}})}),children:"Remove"})})]})]})})}var ie=xe;var ve=t=>le(t??[])?.split(" ")[1];function le(t){if(!t)return;let n="couponNotFound",s="couponExpired";return t.findLast(o=>o.code===n||o.code===s)?.text||""}function he({hasError:t,handleInputChange:n,inputValue:s,loading:o,applyCouponToCart:a,label:i,handleEdit:x}){let{cart:m}=B(),p=m.value?.marketingData&&m.value.marketingData.coupon||"",v=m.value?.openTextField?.value??"",f=i?.includes("Seller")?v:p,h=t&&s.value?.length>1&&!f;return e("div",{class:"flex py-3 justify-between border-t border-[#EDEDED] items-center text-[#222222] text-xs w-full max-h-fit",children:[e("span",{class:"min-w-[113px]",children:[i," Coupon"]}),e("form",{class:"w-fit",children:e("div",{class:"flex flex-col mr-0.5",children:[e("div",{class:`flex w-fit rounded-lg items-center pl-2 pr-1.5 py-1 h-[32px] gap-[5px] ${h&&"outline outline-1 outline-[#F15539]"} ${f?"bg-[#CFF0D2]":"bg-[#EDEDED] focus-within:outline focus-within:outline-1 focus-within:outline-[#2369F8]"}`,children:[e("input",{id:"coupon",name:"coupon",class:"font-normal placeholder:text-[#4C4C4C] bg-transparent focus-visible:outline-none [&::-webkit-autofill]:hidden",type:"text",value:f??"",placeholder:f?`${f} Applied`:"Enter your coupon",onInput:n,...f&&{readonly:!0}}),f?e(y,{class:"flex w-[18px] h-[18px] items-center justify-center rounded-full",type:"edit",htmlFor:"coupon",loading:o.value,disableDefaultStyle:!0,onClick:u=>{u.preventDefault(),i&&x(i)},children:e("div",{class:"flex w-[18px] h-[18px] items-center justify-center rounded-full",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",children:e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.9703 1.60692C10.5214 1.15827 9.91263 0.90625 9.27792 0.90625C8.64322 0.90625 8.03449 1.15827 7.58553 1.60692L7.05338 2.13907L7.04539 2.13108L6.10369 3.07277L6.1108 3.08166L0.887033 8.30542C0.429132 8.76353 0.171896 9.38474 0.171875 10.0325V11.74C0.171875 11.9167 0.242074 12.0861 0.367029 12.2111C0.491983 12.3361 0.661458 12.4062 0.838171 12.4062H2.54567C3.19351 12.406 3.81474 12.1484 4.27271 11.6902L10.9712 4.99259C11.4199 4.54364 11.6719 3.93491 11.6719 3.3002C11.6719 2.6655 11.4199 2.05677 10.9712 1.60781L10.9703 1.60692ZM7.05338 4.02336L1.82962 9.24712C1.72651 9.35026 1.64472 9.4727 1.58893 9.60745C1.53314 9.7422 1.50444 9.88662 1.50447 10.0325V11.0737H2.54567C2.83972 11.0737 3.12312 10.9564 3.33012 10.7485L8.55388 5.52474L7.05338 4.02336ZM9.49647 4.58216L10.0286 4.05001C10.1311 3.95231 10.2129 3.83511 10.2694 3.70531C10.3259 3.57551 10.3558 3.43572 10.3575 3.29417C10.3591 3.15263 10.3324 3.01218 10.279 2.88109C10.2256 2.75 10.1465 2.63092 10.0464 2.53086C9.94624 2.43079 9.82712 2.35176 9.696 2.29841C9.56488 2.24507 9.42442 2.21848 9.28287 2.22022C9.14132 2.22195 9.00156 2.25198 8.87179 2.30853C8.74202 2.36508 8.62487 2.44702 8.52723 2.54951L7.99597 3.08166L9.49647 4.58216Z",fill:"black"})})})}):e(y,{class:"flex w-[18px] h-[18px] items-center justify-center bg-white rounded-full",type:"submit",htmlFor:"coupon",loading:o.value,disableDefaultStyle:!0,onClick:u=>a(u,i),children:e("div",{class:"flex w-[18px] h-[18px] items-center justify-center rounded-full",children:e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",children:[e("rect",{y:"0.5",width:"18",height:"18",rx:"9",fill:"white"}),e("path",{d:"M9.23415 13.9668L8.3904 13.2074L11.864 10.0398H2.86768V8.94066H11.864L8.3904 5.78308L9.23415 5.01367L14.1432 9.49023L9.23415 13.9668Z",fill:"black"})]})})})]}),h&&e("div",{class:"flex max-h-6 bg-[#FCF3EF] pr-1.5 pt-[6.5px] pb-[7px] pl-2 mt-1 font-sans font-normal text-[10px] text-[#F15539] rounded-[100px]",children:"Invalid coupon"})]})})]})}function be({hasCouponsError:t}){let{cart:n,loading:s,addCouponsToCart:o,sendAttachment:a}=B(),i=g(""),x=g(n.value?.marketingData&&n.value.marketingData.coupon||""),m=n.value?.openTextField||"",p=g(""),v=g(""),f=g(""),h=n?.value?.messages??[],u=g(!1),[C,P]=$(x.value.length>0),[E,M]=$(m.length>0),V=v.value?.length>0&&t.value,O=!E&&t.value&&f.value?.length>0,T=g(!1),L=g(!1),D=g(!1),F=()=>{let r=n.value,l=n.value?.marketingData&&n.value.marketingData.coupon,c=r?.items.reduce((k,A)=>k+A.priceTags.length,0),w=null;r?.ratesAndBenefitsData&&r.ratesAndBenefitsData.rateAndBenefitsIdentifiers.length&&(w=r.ratesAndBenefitsData.rateAndBenefitsIdentifiers.find(k=>k.matchedParameters["couponCode@Marketing"]===l)),!l||c&&c>0||w?D.value=!1:D.value=!0};I(()=>{F(),x.value=n.value?.marketingData&&n.value.marketingData.coupon||""},[s]);let _=r=>{setTimeout(()=>{r?.includes("Discount")&&!t.value&&P(!0),r?.includes("Seller")&&!u.value&&M(!0)},1e3)},R=(r,l,c)=>{let w=r,k=l,A=i.value,Z=p.value;if(A===k&&c==="coupon"){v.value=w,t.value=!0;return}if(!E&&Z===k&&c==="vendor"){f.value=w,t.value=!0;return}},N=()=>{let r=n?.value?.messages.map(w=>{let{code:k,text:A}=w;return{code:k||"",text:A||""}})??[{code:"",text:""}],l=ve(r),c=le(r);!c||!l||R(c,l,"coupon")},H=async(r,l)=>{r.preventDefault();let c=l?.includes("Discount")?i.value:p.value;if(typeof c=="string"&&c.length){if(!t.value&&l?.includes("Discount")&&(T.value=!0,o({text:c}).then(()=>{x.value=c,T.value=!1})),!u.value&&l?.includes("Seller")){L.value=!0;let w={method:"GET",headers:{"content-type":"application/json",accept:"application/json"}};try{let A=await(await fetch(`/api/dataentities/SC/search?code=${c}&_fields=active`,w)).json();A[0]&&A[0].active?(await a({attachment:"openTextField",body:{value:`${p.value.toUpperCase()}`}}),await a({attachment:"marketingData",body:{...n.value?.marketingData,marketingTags:["salesassociatecode"],utmiCampaign:c}})):(R("invalid code",c,"vendor"),u.value=!0)}catch(k){console.error("Erro ao buscar dados ou enviar anexos:",k)}finally{L.value=!1}}_(l)}};I(()=>{N()},[h]);let d=r=>{t.value=!1,r.target instanceof HTMLInputElement&&(i.value=r.target.value,i.value.length===0&&(t.value=!1))},b=r=>{r?.includes("Discount")&&(T.value=!0,t.value=!1,o({text:""}).then(()=>{T.value=!1})),r?.includes("Seller")&&(t.value=!1,u.value=!1,p.value="",a({attachment:"openTextField",body:{value:""}}),p.value.length===0&&(t.value=!1,u.value=!1))},S=r=>{t.value=!1,u.value=!1,r.target instanceof HTMLInputElement&&(p.value=r.target.value,p.value.length===0&&(t.value=!1,u.value=!1))};return e(q,{children:e(he,{label:"Discount ",hasError:V,hasAdded:C,messageError:v,handleInputChange:d,inputValue:i,loading:T,applyCouponToCart:H,handleEdit:b})})}var re=be;var ce=({url:t,isVariantOf:n})=>(n?.hasVariant??[]).flatMap(({additionalProperty:a=[],url:i})=>a.map(x=>({property:x,url:i}))).filter(a=>a.url).filter(a=>a.property.valueReference==="SPECIFICATION").sort((a,i)=>a.url<i.url?-1:a.url===i.url?0:1).reduce((a,{property:i,url:x})=>{let{name:m="",value:p=""}=i;return a[m]||(a[m]={}),a[m][p]||(a[m][p]=[]),x&&(x===t?a[m][p].unshift(x):a[m][p].push(x)),a},{});function we(t){let n=ce(t);return Object.entries(Object.values(n)[0]??{}).map(([o,[a]])=>({label:o,skuId:a?.split("/")?.pop()?.split("=")?.pop()??""}))}var ye=50;function Ce(t,n){let s=[];for(let o=0;o<t.length;o+=n)s.push(t.slice(o,o+n));return s}async function ke(t){if(!t?.length)return[];let n=t?.map(a=>a.id),o=(await Promise.all(Ce(n,ye).map(a=>ee.vtex.loaders.legacy.productList({props:{ids:a}})))).flat().filter(a=>!!a);return t.map(a=>{let i=o?.find(x=>x?.isVariantOf?.hasVariant.find(m=>m.productID===a.id));return{...a,variants:we(i??{})}})}var ue=ke;function Ee({markupId:t,productIds:n,dataStockId:s}){return e(q,{children:[e("div",{"data-retailrocket-markup-block":t,"data-
1product-ids":n,"data-stock-id":s??"USA","currency-value":"USD"}),e(ae,{})]})}var de=Ee;function pe({quantityOfItems:t}){let{displayCart:n}=U();return e("header",{class:"flex bg-white/80 rounded-[21px] justify-between items-center h-[44px] w-full py-2 pl-4 pr-3",children:[e(y,{disableDefaultStyle:!0,class:"h-12 p-0 flex justify-center items-center outline-none bg-transparent top-[0.5px] right-[5px]",onClick:()=>{n.value=!1},children:e("span",{class:"font-suisse md:text-[14px] text-[13px] tracking-[-0.02em]",children:"Close"})}),e("div",{class:"flex justify-center items-center w-fit",children:e("div",{class:"flex font-regular font-suisse md:text-[14px] text-[13px] gap-1 items-center",children:["Bag"," ",e("span",{class:`text-[#111111] text-[10px] tracking-[-0.02em] font-medium font-display rounded-full flex items-center justify-center w-[18px] h-[18px] font-suisse font-regular leading-[0px] ${t===0?"":"bg-[#D8D8D8]"}`,children:e("span",{class:"h-fit w-fit inline-flex justify-center items-center",children:t===0?e(Q,{id:"Bag",width:16,height:16}):t})})]})})]})}function De(t){let{displayCart:n}=U(),{cart:s,loading:o,mapItemsToAnalyticsItems:a}=B(),i=g([]),x=s.value?.items.length===0,m=x?0:s.value?.items?.reduce((d,b)=>d+b?.quantity,0),p=s.value?.totalizers,v=s.value?.clientPreferencesData.locale,f=s.value?.storePreferencesData.currencyCode,h=p?.find(d=>d.id==="Items")?.value||0,u=p?.find(d=>d.id==="Discounts")?.value||0,C=g(!0),P=g(!0),E=g(!1),M="/api/dataentities/FG",[V,O]=$(void 0),T=async()=>{try{let d=`${M}/search?_fields=ValorCarrinho`,S=await fetch(d,{method:"GET",headers:{"content-type":"application/json",accept:"application/json"}});if(!S.ok)throw new Error(`Network response was not ok:${S}`);return(await S.json())?.[0]?.ValorCarrinho}catch(d){console.error("Error trying to get the value of the free shipping goal:",d)}},L=async()=>{let d=await T();O(d)},D=s.value?.paymentData?.installmentOptions.find(d=>d.paymentSystem==="1")?.installments,F=D?.[D.length-1]?.count,_=D?.[D.length-1]?.value,R=D?.[D.length]?.hasInterestRate;if(s.value===null)return null;let N=()=>{E.value=!E.value,document.getElementById("ArrowButtonTrigger")?.classList.toggle("rotate-180");let b=document.getElementById("subtotal");b?.classList.toggle("max-h-0"),b?.classList.toggle("max-h-fit"),b?.classList.toggle("border-t")};if(x)return e("div",{class:"w-full h-fit max-w-[calc(100vw-16px)] rounded-[21px] bg-[#F6F6F6]/80 backdrop-blur-xl font-suisse md:mx-0 md:max-h-[calc(100vh-40px)] overflow-hidden no-native-scroll",id:"minicart",children:[e(pe,{title:t.title,quantityOfItems:m}),e("div",{class:"flex flex-col max-h-[calc(100svh-104px)] min-h-0 gap-6 px-5 py-8 overflow-y-auto no-native-scroll",children:[e("span",{class:"font-medium text-lg leading-0 text-[#222]",children:"Your shopping bag is empty."}),e("div",{class:"flex flex-col text-[#8f8f8f]",children:[e("span",{class:"text-[14px] text-[#8f8f8f] leading-[110%]",children:"Missing items from your bag?"}),e("div",{class:" text-[#3A3A3A] text-[14px] pr-1 cursor-pointer",onClick:()=>{n.value=!1,globalThis.window.location.href="/my-account"},children:["Log in",e("span",{class:"text-[14px] text-[#8f8f8f]",children:[" ","to find your saved items."]})]})]}),e(de,{markupId:"67d1ce58c42c7f229d159af7",productIds:i.value?.join(",")})]})]});let H=({totalAmount:d,goal:b})=>{let S=d/100,r=Math.min(S/b)*100,l=r>=100?100:r,c=Math.max(b-S);return e("div",{class:"flex w-full justify-center items-center",children:e("div",{class:"flex flex-col items-center gap-2.5 pt-[19.88px] min-w-[334px]",children:[e("span",{class:"text-[11px] leading-[84%] tracking-[0.02em] text-black/60",children:c>0?`Add more ${j(c)}
2             in product to free shipping.`:"You reach the free shipping!"}),e("div",{class:"relative w-full bg-white rounded h-[3px]",children:e("div",{class:`w-[var(--percentage)] rounded ${c<=0?"bg-[#8BA05E]":"bg-[#292929]"} h-[3px]`,style:{"--percentage":`${l}%`}})})]})})};return I(()=>{async function d(){let b=s?.value?.items??[];try{i.value=await ue(b)??[]}catch(S){console.error("Error loading minicart product variants:",S),i.value=b.map(r=>({...r,variants:[]}))}}L(),d()},[s?.value?.items,V,o]),e("div",{class:"w-full max-w-[382px] md:max-w-[423px] md:min-w-[423px] rounded-[21px] bg-[#F6F6F6]/80 backdrop-blur-xl font-suisse md:mx-0 no-native-scroll h-fit max-h-[695px]",id:"minicart",children:[e(pe,{title:t.title,quantityOfItems:m}),e("div",{class:"overflow-y-auto no-native-scroll",children:[typeof V=="string"&&e(H,{totalAmount:h,goal:parseInt(V)??1e3}),e("ul",{role:"list",class:"flex flex-col mt-4 scrollbar-none scrollbar-hidden h-[543px] pb-[114px] overflow-scroll minicart-ul",children:i?.value?.map((d,b)=>e("li",{class:"mx-4 last:border-b-[0.5px] max-w-full",children:e(ie,{index:b,item:d,currency:f,locale:v,discount:u})},d.id))})]}),e("footer",{class:"relative top-[calc(100%-651px)] mt-auto w-full flex flex-col items-center",children:[e("div",{class:`absolute bottom-[
2100%] !backdrop-blur-[4px] min-h-[58px] px-[16px] pt-[16px] w-full rounded-t-lg flex flex-col gap-4 items-center justify-between overflow-hidden ${E.value?"bg-white":"bg-white/70"}`,children:[e(y,{disableDefaultStyle:!0,class:"relative flex justify-between font-suisse w-full top-[5px]",onClick:()=>{N()},children:[e("div",{class:"font-medium text-[14px] leading-[14px] tracking-[0.01em] font-suisse text-[#3a3a3a]",children:"Add discount coupon"}),e("div",{class:"duration-200 transition-all w-fit h-fit cursor-pointer",id:"ArrowButtonTrigger",children:e(Q,{id:"ChevronDown",width:16,height:16,class:"rotate-180"})})]}),e("div",{class:"flex-col w-full max-h-0 border-[#EDEDED] text-[#8F8F8F]",id:"subtotal",children:[e("div",{class:`flex justify-between items-center text-[#8F8F8F] text-xs leading-none overflow-hidden transition-all ${E.value&&"py-[18px]"}`,children:[e("span",{children:t.subtotal||"Subtotal"}),e("span",{class:"text-[#636262]",children:h?j(h/100,f,v):""})]}),u<0&&e("div",{class:"flex justify-between items-center text-[#8F8F8F] text-xs leading-none overflow-hidden transition-all pb-[18px]",children:[e("span",{class:"text-[#8F8F8F]",children:t.dicounts||"Discounts"}),e("span",{class:"text-[#ABB9A7] text-[12px]",children:j(u/100,f,v)})]}),e("div",{class:`flex flex-col items-center w-full h-full overflow-hidden border-[#EDEDED] transition-all duration-300 ${E.value&&"border-t"}`,children:e(re,{hasCouponsError:C??P})})]})]}),e("div",{class:"relative z-10 flex flex-col items-center px-3.5 pb-3.5 pt-4 gap-2.5 bg-white w-full shadow-[0_-4px_8px_rgba(0,0,0,0.08)] rounded-b-[22px] min-h-[131px]",children:[e("div",{class:"flex items-center justify-between w-full",children:[e("span",{class:"font-display font-medium font-suisse text-[17px] leading-[107%] text-black tracking-[-0.34px]",children:"Total"}),e("div",{class:"flex gap-2 items-center",children:[F&&F>1?e("span",{class:"text-[#636262] text-[11px] text-left px-1 py-0.5 tracking-[-0.11px] leading-[120%] rounded-md",children:[F+"x of "+z((_||0)/100,f,v),R?" with interest":" without interest"]}):null,e("span",{class:"text-sm font-medium tracking-[0.02em] text-black",children:u<0?z((h+u)/100,f,v):z(h/100,f,v)})]})]}),e("a",{class:"inline-block w-full",href:"/checkout",children:e(y,{disableDefaultStyle:!0,"data-deco":"buy-button",type:"button",class:"font-medium text-[17px] leading-[18.7px] tracking-[0.02em] w-full flex items-center justify-center rounded-md font-neue text-white bg-[#3a3a3a] h-10",id:"checkout",disabled:s.value.items.length===0,onClick:()=>{J({name:"begin_checkout",params:{currency:s.value?f:"",value:(h-u)/100,coupon:s.value?.marketingData?.coupon??void 0,items:s.value?a(s.value):[]}})},children:"Checkout"})}),e(y,{disableDefaultStyle:!0,class:"text-sm text-center w-full cursor-pointer text-[#636262] tracking-[-0.02em] leading-[100%] ",type:"button",onClick:()=>{n.value=!1},children:t.backBuying||"Keep buying"})]})]})]})}var ht=De;function Ie(t){let{children:n,aside:s,open:o,onClose:a,class:i="",loading:x="lazy",drawerRef:m}=t,p=g(x==="lazy"&&!o),v=ne(),{displayCart:f}=U();return I(()=>{let h=C=>(C.key==="Escape"||C.keyCode===27)&&o&&a?.(),u=C=>{let P=C?.target;m?.current&&!m?.current.contains(P)&&(P?.classList).contains("aside-in")&&a?.()};return f.value&&addEventListener("click",u),addEventListener("keydown",h),()=>{removeEventListener("keydown",h),removeEventListener("click",u)}},[o,f.value]),I(()=>{p.value=!1},[]),e("div",{class:i,children:[e("input",{id:v,"aria-label":"drawer",checked:o,type:"checkbox",class:"drawer-toggle backdrop-blur-xl",onChange:h=>h.currentTarget.checked===!1&&a?.()}),e("div",{class:"drawer-content",children:n}),e("aside",{class:"h-full z-[9999] w-full overflow-hidden ",ref:m,children:[e("label",{for:v,class:""}),!p.value&&s]})]})}var Dt=Ie;export{ht as a,Dt as b};

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.