1import { j, T } from './chunk-26oRnyCm.js'; 2import { y, N, o as o$1 } from './chunk-D7GuD_kz.js'; 3import { p as p$1 } from './chunk-7wQPzCva.js'; 4import { r as r$1, F } from './chunk-D6adskVR.js'; 5import './chunk-D45VqOFk.js'; 6 7function r({index:t,children:i}){return y("button",{"data-dot":t,"aria-label":`go to slider item ${t}`,class:"focus:outline-none group",children:i})}function e(t){return y("ul",{"data-slider":!0,...t})}function o({index:t,...i}){return y("li",{"data-slider-item":t,...i})}function u(t){return y("button",{"data-slide":"next","aria-label":"Next item",...t})}function l(t){return y("button",{"data-slide":"prev","aria-label":"Previous item",...t})}e.Dot=r;e.Item=o;e.NextButton=u;e.PrevButton=l;var a=e; 8 9function h(){return y(N,{children:[y("div",{class:"flex items-center justify-center z-10 col-start-1 row-start-2 w-8 h-8 -ml-4",children:y(a.PrevButton,{class:"flex justify-center items-center btn-circle glass w-8 h-8 bg-white ",children:y(p$1,{class:"text-black",size:12,id:"ChevronLeft",strokeWidth:3})})}),y("div",{class:"flex items-center justify-center z-10 col-start-4 row-start-1 row-end-4 w-8 h-full bg-[#f5f5f5] shadow-[-20px_0px_15px_8px_#f5f5f5]",children:y(a.NextButton,{class:"flex justify-center items-center btn-circle glass w-8 h-8 bg-white -mr-4",children:y(p$1,{class:"text-black",size:12,id:"ChevronRight",strokeWidth:3})})})]})}function w(t){let r=t.product.variant_properties.property1,o=t.product.variant_properties.property2;return y("div",{class:"flex flex-row items-center gap-4",children:[y("img",{src:`https://${t.product.image_url}`,alt:t.product.name,width:100,height:100,loading:"lazy"}),y("div",{class:"flex flex-col justify-start gap-1",children:[y("h3",{class:"font-bold uppercase text-sm text-black line-clamp-2",children:t.product.product_name}),y("p",{class:"font-bold text-sm text-black",children:o$1(t.product.price)}),r&&y("p",{class:"text-xs uppercase text-opacity-80",children:`COR: ${r.value}`}),o&&y("p",{class:"text-xs uppercase text-opacity-80",children:`Tamanho: ${o.value}`})]})]})}function p(t){let r=r$1(),o=F(!1);function n(){return globalThis.window.sessionStorage.getItem("hasShowModal")}j(()=>{if(t.eventShow==="MouseMove"){let s=()=>{n()!=="true"&&(o.value=!0);};return document.addEventListener("mousemove",s),()=>document.removeEventListener("mousemove",s)}if(t.eventShow==="ExitOut"){let s=c=>{c.clientY<50&&n()!=="true"&&(o.value=!0);};return document.addEventListener("mouseout",s),()=>document.removeEventListener("mouseout",s)}if(t.eventShow==="TimeShow"){let s=setTimeout(()=>{n()!=="true"&&(o.value=!0);},t.seconds*1e3/2);return ()=>clearTimeout(s)}},[o.value]);let v=()=>{o.value=!1,globalThis.window.sessionStorage.setItem("hasShowModal","true");},b=t.cart?.orderForm?.items;return o.value?y("div",{class:"fixed top-0 bottom-0 right-0 left-0 w-full h-screen bg-black bg-opacity-50 flex justify-center items-center z-[100]",children:y("div",{class:"relative max-w-[750px] h-auto w-full bg-[#f5f5f5] rounded-2xl p-6 lg:p-10 flex flex-col",children:[y("div",{class:"flex flex-row justify-between items-center ",children:[y("div",{class:"w-16 h-16 rounded-full bg-secondary flex justify-center items-center",children:y(p$1,{id:"bag",width:"23",height:"27"})}),y("div",{class:"flex flex-col w-[60%] lg:w-[80%]",children:[y("h2",{class:"text-sm uppercase font-bold ",children:t.title}),y("p",{class:"text-base lg:text-2xl uppercase font-bold",children:t.subTitle})]}),y("div",{class:"w-10 h-10 rounded-full border border-black flex justify-center items-center text-black cursor-pointer",onClick:v,children:y(p$1,{id:"Close",width:"24",height:"24",class:"text-balck"})})]}),y("span",{class:"text-base text-opacity-60 my-8 flex ",children:t.content}),y("div",{id:r,class:"grid grid-cols-[48px_1fr_48px] sm:grid-cols-[30px_1fr_30px] grid-rows-[1fr_32px_1fr]",children:[y(a,{class:"carousel carousel-center w-full col-span-full row-span-full scrollbar-none gap-2",children:b?.map((s,c)=>y(a.Item,{index:c,class:"carousel-item w-full lg:w-[55%] last:pr-12",children:y(w,{product:s})}))}),y(h,{}),y(T,{rootId:r,infinite:!0})]}),y("div",{class:"flex flex-col gap-1 uppercase my-6 py-3 border-y border-black border-opacity-60",children:[y("div",{class:"flex flex-row justify-between items-center ",children:[y("span",{class:"font-semibold text-sm text-opacity-60",children:"Subtotal"}),y("span",{class:"font-semibold text-sm",children:o$1(t.cart?.orderForm?.subtotal)})]}),t.cart?.orderForm?.subtotal_discount?y("div",{class:"flex flex-row justify-between items-center",children:[y("span",{class:"font-semibold text-sm text-opacity-60",children:"Desconto"}),y("span",{class:"font-semibold text-sm",children:o$1(t.cart?.orderForm?.subtotal_discount)})]}):null,y("div",{class:"flex flex-row justify-between items-center",children:[y("span",{class:"font-semibold text-sm text-opacity-60",children:"Total"}),y("span",{class:"font-bold text-base",children:o$1(t.cart?.orderForm?.total)})]})]}),y("div",{children:y("a",{href:`/checkout/${t.cart?.orderForm?.token}`,class:"w-full flex justify-center items-center bg-black rounded-md text-white font-bold text-base h-14",children:t.cta})})]})}):null} 10 11export { a, p };
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.