PageSourceSearch

https://www.boekenvoordeel.be/_nuxt/CewFXvIZ.js

js boekenvoordeel.be collected 2026-09-27 03:17:21 UTC 3,001 bytes, 1 lines download raw bytes

1import{bB as w,U as E,bi as F,a4 as j,B as s,aJ as B,cD as K,M as O,ab as R,cE as c,cF as d,cG as o,cH as V,aw as k,cI as G}from"./Spz_2MDb.js";const J=f=>{const{changeQuantity:A,removeFromCart:T,productQuantity:Q}=E(),v=F(),b=j(1),e=s(()=>f.line),r=s(()=>{var t;return(t=e.value)==null?void 0:t.product}),q=s(()=>v.note.enabled),m=s(()=>v.deposit.enabled),I=s(()=>{var t,u;return(t=r.value)!=null&&t.availability.isViewable?(u=r.value)==null?void 0:u.url:void 0}),y=B(t=>{const{maxQuantity:u}=K(O(t.product));return Math.max(u.value-(Q(t.productId)-t.quantity),0)}),L=R(()=>{var t,u;return e.value?(u=(t=e.value)==null?void 0:t.sublines)!=null&&u.length?Math.min(...c([],[e.value],(n,i,a)=>(a.isVirtual||n.push(y(a)),n),[],n=>n.sublines)):y(e.value):0}),g=s(()=>{var u;if(!e.value)return d;if(!((u=e.value.sublines)!=null&&u.length))return e.value.total;const t=c([],e.value.sublines,(n,i,a)=>o(n,a.total),{inclTax:0},n=>n.sublines);return o(e.value.total,t)}),p=s(()=>{var n;if(!e.value)return;if(!((n=e.value.sublines)!=null&&n.length))return e.value.discountAmount;const t=c([],e.value.sublines,(i,a,l)=>o(i,l.discountAmount),{inclTax:0},i=>i.sublines),u=o(e.value.discountAmount??d,t);return u.inclTax?u:void 0}),_=s(()=>{var t;return(t=p.value)!=null&&t.inclTax?o(g.value,p.value):void 0}),x=s(()=>{var u;if(!e.value)return d;if(!((u=e.value.sublines)!=null&&u.length))return e.value.price;const t=c([],e.value.sublines,(n,i,a)=>o(n,a.price),{inclTax:0},n=>n.sublines);return o(e.value.price,t)}),P=s(()=>{var n;if(!e.value)return;if(!((n=e.value.sublines)!=null&&n.length))return e.value.originalPrice;const t=c([],e.value.sublines,(i,a,l)=>{var h,C;return o(i,((h=l.product)==null?void 0:h.originalPrice)??((C=l.product)==null?void 0:C.price))},{inclTax:0},i=>i.sublines),u=o(e.value.originalPrice??d,t);return x.value.inclTax+.01<u.inclTax?u:void 0}),D=s(()=>{var t,u,n;if(v.onlyDisplayAppliedDiscount){const i=(t=e.value)==null?void 0:t.discount;if(!i)return;if(!v.checkNoLabelForAppliedDiscount)return[i];const a=(u=e.value)==null?void 0:u.discounts;return a==null?void 0:a.filter(l=>l.label===i.label)}else return(n=r.value)==null?void 0:n.discounts}),M=s(()=>{var u,n;if(!m.value)return;const t=(n=(u=e.value)==null?void 0:u.product)==null?void 0:n.deposit;if(t)return{quantity:e.value.quantity*t.quantity,total:V(t.total,e.value.quantity)}}),U=t=>{var u,n,i;(u=r.value)!=null&&u.id&&A({groupKey:(n=e.value)==null?void 0:n.groupKey,productId:r.value.id,quantity:t,sublines:(i=e.value)!=null&&i.sublines?G([],e.value.sublines,(a,l)=>({productId:l.productId,quantity:t}),a=>a.sublines,(a,l)=>a.sublines=l):void 0})};return k(()=>{var t;return((t=f.line)==null?void 0:t.quantity)??0},t=>{b.value!==t&&(b.value=t)},{immediate:!0}),{noteEnabled:q,innerQuantity:b,line:e,discounts:D,product:r,url:I,maxQuantity:L,price:x,originalPrice:P,total:g,discountAmount:p,originalTotal:_,depositEnabled:m,deposit:M,onChangeQuantity:U,removeFromCart:T}},[N,Z]=w("uCartLine");export{Z as i,N as p,J 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.