1import{a as _,a8 as f,w as p,a5 as C,j as k,as as h,bi as m}from"./9A7g7yZ_.js";import{t as g,b as i,d as T,u as a,e as P,l as b,z as w,B as I}from"./Cx0eZCBU.js";const Q=globalThis.setInterval,B=()=>{const e=_("quickCheckout",()=>({loading:!1,isOpen:!1,quantity:1,product:{},timer:f.DEFAULT_QUICK_CHECKOUT_TIMER}));let r=setTimeout(()=>{});const u=()=>{p().public.enableQuickCheckoutTimer&&e.value.timer!==0&&(clearInterval(r),e.value.timer=0)},c=(s,n)=>{e.value.product=s,e.value.quantity=n,e.value.isOpen=!0},o=()=>{e.value.isOpen=!1},l=()=>{p().public.enableQuickCheckoutTimer&&(e.value.timer=f.DEFAULT_QUICK_CHECKOUT_TIMER,r=Q(()=>{e.value.timer--,e.value.timer<=0&&(o(),clearInterval(r))},1e3))},t=i(()=>{const s=p();return!!(e.value.timer&&s.public.enableQuickCheckoutTimer)});return{startTimer:l,endTimer:u,openQuickCheckout:c,closeQuickCheckout:o,hasTimer:t,...g(e.value)}},E={key:0,class:"text-sm mb-2"},O=T({__name:"LowestPrice",props:{product:{}},setup(e){const r=e,{format:u}=C(),c=i(()=>Number(h.getLowestPrice(r.product))),o=i(()=>{const t=m.getPrice(r.product),s=m.getCrossedPrice(r.product),n=m.getSpecialOffer(r.product),d=s!==null&&t!==null&&s>t,v=n!==null&&t!==null&&t>n;return d||v}),l=i(()=>c.value&&o.value);return(t,s)=>a(l)?(P(),b("div",E,w(("t"in t?t.t:a(k))("product.lowestPrice",{price:a(u)(a(c))})),1)):I("",!0)}}),R=Object.assign(O,{__name:"LowestPrice"});export{R as _,B as u};
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.