PageSourceSearch

https://www.thakker.eu/_nuxt/BcgwMWl6.js

js thakker.eu collected 2026-10-05 00:48:33 UTC 13,474 bytes, 1 lines download raw bytes

1import{$ as e,At as t,Dt as n,Kt as r,Nt as i,Pt as a,Ut as o,Vn as s,Zt as c,bt as l,et as u,in as d,lt as f,mt as p,nt as m,ot as h,pn as g,q as _,rt as v,st as y,tt as b,xn as x}from"./BfEYEY7z.js";import{n as S}from"./ySpck8Mn.js";import{n as C}from"./DwGdRAgS.js";import{t as ee}from"./DdQKqcCc.js";import{S as w,b as T,i as E,v as D,y as O}from"./B9Ui1xjL.js";import{t as te}from"./DiUVFNYe.js";import{t as k}from"./moOLpgsJ.js";import{t as A}from"./BkAHLwru.js";import{l as j}from"./NBs1dDmL.js";import{t as ne}from"./Ch_v7BMP2.js";import{t as re}from"./DP9R0R55.js";import{t as ie}from"./DssCr2JM.js";import{t as M}from"./B1rFoHF8.js";import{t as ae}from"./BYwx7glJ2.js";import{t as oe}from"./5Ln4TFUa2.js";import{c as se,i as ce,o as le}from"#entry";import{t as N}from"./DZthzcAQ2.js";import{t as ue}from"./Bl09Jp0t.js";import{n as de,r as fe,t as pe}from"./CAGbrJaV2.js";import{t as me}from"./DrDpk_sJ2.js";import{t as P}from"./CyBSoWhd2.js";c(),p(),x();var F={key:0,class:`ml-4`},I={class:`font-bold`},L={key:0,"data-testid":`order-property-surcharge`},R={key:1},he=Object.assign(f({__name:`CartOrderProperty`,props:{basketItemOrderParam:{},cartItem:{}},setup(n){let{format:r}=k(),{downloadFile:i}=P(),a=d(!1),o=n,c=e(()=>E.getPropertyFromCartItem(o.cartItem,Number(o.basketItemOrderParam.propertyId))),l=e(()=>{if(c.value&&w.isOrderPropertySelection(c.value)){let e=c.value.property.selectionValues[Number(o.basketItemOrderParam.value)];return e?e.name:``}return o.basketItemOrderParam.value}),f=async()=>{a.value||=(a.value=!0,await i(l.value),!1)};return(e,i)=>g(c)?(t(),v(`div`,F,[u(`span`,I,[h(s(n.basketItemOrderParam.name)+` `,1),g(w).getOrderPropertyLabel(g(c)).surchargeType?(t(),v(`span`,L,` (`+s((`t`in e?e.t:g(A))(`orderProperties.vat.`+g(w).getOrderPropertyLabel(g(c)).surchargeType))+` `+s(g(r)(g(w).getOrderPropertySurcharge(g(c))))+`)`,1)):m(``,!0)]),g(w).isOrderPropertyFile(g(c))?(t(),v(`span`,{key:0,class:`cursor-pointer`,onClick:f},[u(`span`,null,`: `+s(g(l)),1),g(a)?(t(),b(g(M),{key:0,class:`absolute ml-2 z-loader`,size:`sm`})):m(``,!0)])):g(w).isOrderPropertyCheckbox(g(c))?m(``,!0):(t(),v(`span`,R,`: `+s(g(l)),1))])):m(``,!0)}}),{__name:`CartOrderProperty`});c(),p(),x();var ge={class:`relative flex border-neutral-200 border-b min-w-[320px] p-4 last:mb-0`,"data-testid":`cart-product-card`},_e={class:`relative overflow-hidden rounded-md w-[100px] @sm:w-[176px]`},ve={class:`flex flex-col pl-4 min-w-[180px] flex-1`},ye={key:0,"data-testid":`cart-item-price`},be={key:2},xe={key:0,class:`mt-2`},Se={class:`my-2`},Ce={class:`text-xs font-normal leading-5 @sm:typography-text-sm text-neutral-700`},we={class:`mr-1`},Te={class:`font-medium`},Ee={key:0,class:`text-xs font-normal leading-5 @sm:typography-text-sm text-neutral-700`},De={class:`text-[15px]`},Oe={key:1,class:`text-xs font-normal leading-5 @sm:typography-text-sm text-neutral-700 mt-3`},ke={key:3,"data-testid":`cart-product-card-bundle-components-list`},Ae={class:`underline px-1 h-`},je={key:1,class:`text-sm`},Me={class:`px-1 h-`},Ne={class:`items-start @sm:items-center @sm:mt-auto flex flex-col @sm:flex-row`},Pe={key:0,class:`absolute top-2 right-2 bg-white p-1.5`},z=Object.assign(f({__name:`CartProductCard`,props:{cartItem:{},disabled:{type:Boolean,default:!1}},emits:[`load`],setup(a,{emit:c}){let f=c,{addModernImageExtension:p,getImageForViewport:x}=le(),{data:w,setCartItemQuantity:N,deleteCartItem:P}=j(),{send:F}=C(),{format:I}=k(),L=te(),R=d(!1),z=d(),B=d(!1),V=d(null),H=d(E.getItemQty(a.cartItem)),U=e(()=>E.getItemQty(a.cartItem)),W=d(),{getSetting:G}=ee(`dontSplitItemBundle`),K=e(()=>G()!==`1`);n(()=>{let e=z.value?.$el||null;e?(R.value||(e.complete&&(R.value=!0),e.addEventListener(`load`,()=>R.value=!0)),l(()=>{e.complete||f(`load`)})):R.value=!0});let q=async e=>{if(!w.value?.itemQuantity||e<=w.value.itemQuantity){W.value=void 0;return}if(W.value=w.value.itemQuantity,V.value){let e=new Event(`input`);Object.defineProperty(e,"target",{value:{value:W.value},writable:!0}),V.value.handleOnChange(e)}await N({quantity:W.value,cartItemId:a.cartItem.id,productId:a.cartItem.variationId})},J=async e=>{let t=Number(e);Number.isNaN(t)||t===w.value.itemQuantity||await N({quantity:t,cartItemId:a.cartItem.id,productId:a.cartItem.variationId}).then(async()=>await q(t))},Y=async()=>{B.value=!0,await P(a.cartItem),F({message:A(`cart.itemRemoved`),type:`positive`}),B.value=!1},X=e(()=>E.getCartItemPrice(a.cartItem)*E.getItemQty(a.cartItem)),Z=e(()=>a.cartItem&&a.cartItem.variation?x(a.cartItem.variation,`CartProductCard`):``),Fe=se(J,500),Q=S,Ie=e(()=>O.getGraduatedPriceByQuantity(a.cartItem.variation??{},a.cartItem.quantity)?.basePrice??O.getDefaultBasePrice(a.cartItem.variation??{})),$=e(()=>L(`/`+E.getProductPath(a.cartItem,ce().isEnabled))),Le=e(()=>{let e=a.cartItem?.variation?.images?.all[0];return e?T.getImageAlternate(e):``});return o(U,async e=>{if(V.value){let t=new Event(`input`);Object.defineProperty(t,"target",{value:{value:e},writable:!0}),V.value.handleOnChange(t)}
1}),(e,n)=>{let o=ae,c=oe,l=me,d=fe,f=he,x=de,S=ue,C=ie,ee=pe,w=ne;return t(),v(`div`,ge,[u(`div`,_e,[y(c,{tag:g(Q),to:g($),class:`flex items-center justify-center`,"data-testid":`cart-product-card-link`},{default:r(()=>[a.cartItem.variation?.images?.all?.length?(t(),b(o,{key:0,ref_key:`img`,ref:z,src:g(p)(g(Z))||`/_nuxt-plenty/images/placeholder.png`,alt:g(Le),title:g(T).getImageName(g(T).getFirstImage(a.cartItem.variation??{}))?g(T).getImageName(g(T).getFirstImage(a.cartItem.variation??{})):null,width:`300`,height:`300`,loading:`lazy`,class:`w-full h-auto border rounded-md border-neutral-200`},null,8,[`src`,`alt`,`title`])):m(``,!0),g(R)?m(``,!0):(t(),b(g(M),{key:1,class:`absolute`,size:`sm`}))]),_:1},8,[`tag`,`to`])]),u(`div`,ve,[y(c,{tag:g(Q),to:g($),variant:`secondary`,class:`w-fit no-underline typography-text-sm @sm:typography-text-lg break-word`},{default:r(()=>[h(s(g(E).getItemName(a.cartItem)),1)]),_:1},8,[`tag`,`to`]),a.cartItem.variation?.bundleComponents?m(``,!0):(t(),v(`div`,ye,s(g(I)(g(E).getCartItemPrice(a.cartItem))),1)),a.cartItem.variation?(t(),b(l,{key:1,product:a.cartItem.variation,"use-availability":!0},null,8,[`product`])):m(``,!0),!a.cartItem.variation?.bundleComponents&&g(K)?(t(),v(`div`,be,[a.cartItem.variation?(t(),v(`div`,xe,[g(O).showPricePerUnit(a.cartItem.variation)?(t(),b(d,{key:0,"base-price":g(Ie),"unit-content":g(O).getUnitContent(a.cartItem.variation),"unit-name":g(O).getUnitName(a.cartItem.variation)},null,8,[`base-price`,`unit-content`,`unit-name`])):m(``,!0)])):m(``,!0),u(`div`,Se,[u(`ul`,Ce,[(t(!0),v(_,null,i(g(E).getItemAttributes(a.cartItem),e=>(t(),v(`li`,{key:e.name},[u(`span`,we,s(e.label)+`:`,1),u(`span`,Te,s(e.value),1)]))),128))]),a.cartItem.basketItemOrderParams.length>0?(t(),v(`div`,Ee,[u(`div`,De,s((`t`in e?e.t:g(A))(`orderProperties.additionalCostsPerItem`))+`:`,1),(t(!0),v(_,null,i(a.cartItem.basketItemOrderParams,e=>(t(),b(f,{key:e.propertyId,"cart-item":a.cartItem,"basket-item-order-param":e},null,8,[`cart-item`,`basket-item-order-param`]))),128))])):m(``,!0),g(E).getVariation(a.cartItem)?(t(),v(`div`,Oe,[y(x,{product:g(E).getVariation(a.cartItem)},null,8,[`product`])])):m(``,!0)])])):m(``,!0),a.cartItem.variation?.bundleComponents&&g(K)?(t(),v(`div`,ke,[(t(!0),v(_,null,i(a.cartItem.variation.bundleComponents,(e,n)=>(t(),v(`div`,{key:n},[g(D).isItemBundleSalable(e)?(t(),b(c,{key:0,tag:g(Q),to:g(L)(g(D).getBundleItemUrl(e)),variant:`secondary`,class:`no-underline typography-text-sm`},{default:r(()=>[u(`p`,null,[h(s(g(D).getBundleItemQuantity(e))+`x `,1),u(`span`,Ae,s(g(D).getBundleItemName(e)),1)])]),_:2},1032,[`tag`,`to`])):(t(),v(`p`,je,[h(s(g(D).getBundleItemQuantity(e))+`x `,1),u(`span`,Me,s(g(D).getBundleItemName(e)),1)]))]))),128))])):m(``,!0),u(`div`,Ne,[g(X)?(t(),b(S,{key:0,price:g(X),"crossed-price":null,"display-vat-hint":!1,size:`sm`,"test-id":`product-full-price`,class:`@sm:order-1 @sm:ml-auto`},null,8,[`price`])):m(``,!0),y(C,{ref_key:`quantitySelectorReference`,ref:V,disabled:a.disabled,value:g(H),"min-value":g(O).getMinimumOrderQuantity(a.cartItem.variation||{}),"max-value":g(W),class:`mt-6 @sm:mt-2`,onChangeQuantity:g(Fe)},null,8,[`disabled`,`value`,`min-value`,`max-value`,`onChangeQuantity`])]),a.cartItem.variation?(t(),b(ee,{key:4,product:a.cartItem.variation,"max-width":`20rem`,class:`mt-4`},null,8,[`product`])):m(``,!0)]),g(B)?(t(),v(`div`,Pe,[y(g(M),{"aria-label":`loading`})])):a.disabled?m(``,!0):(t(),b(w,{key:1,square:``,"data-testid":`remove-item-from-basket`,"aria-label":(`t`in e?e.t:g(A))(`common.actions.removeItemFromBasket`),variant:`tertiary`,size:`sm`,class:`top-2 right-2 bg-white items-start h-fit`,onClick:Y},{default:r(()=>[y(g(re),{size:`sm`})]),_:1},8,[`aria-label`]))])}}}),{__name:`UiCartProductCard`});c(),p(),x();var B={class:`shadow-lg @md:rounded-md @md:border @md:border-neutral-100`,"data-testid":`order-summary`},V={class:`flex justify-between items-end py-2 px-4 @md:px-6 @md:pt-6 @md:pb-4`},H={class:`typography-headline-4 font-bold @md:typography-headline-3`},U={class:`typography-text-base font-medium`,"data-testid":`total-in-cart`},W={class:`px-4 pb-4 mt-3 @md:px-6 @md:pb-6 @md:mt-0`},G={key:0,class:`mb-4`},K={class:`flex flex-col gap-2 grow pr-2`},q={class:`flex flex-col gap-2 text-right`},J={class:`flex justify-between typography-text-base mb-4`},Y={class:`flex flex-col gap-1 grow pr-2`},X={"data-testid":`subtotal-label`},Z={key:0},Fe={"data-testid":`shipping-label`},Q={key:0},Ie={key:0,"data-testid":`coupon-label`},$={key:0,class:`flex flex-col gap-1 text-right`},Le={"data-testid":`subtotal`,class:`font-medium`},Re={"data-testid":`shipping`,class:`font-medium`},ze={key:0,class:`font-medium`,"data-testid":`coupon-value`},Be={key:1,class:`flex flex-col gap-1 text-right`},Ve={"data-testid":`subtotal`,class:`font-medium`},He={"data-testid":`shipping`,class:`font-medium`},Ue={key:0,class:`font-medium`,"data-testid":`coupon-value`},We={key:1,class:`mb-4`},Ge={class:`flex flex-col gap-2 grow pr-2`},Ke={class:`flex flex-col gap-2 text-right`},qe={key:2,class:`flex justify-between typography-text-base mb-1`},Je={"data-testid":`total-net-label`},Ye={"data-testid":`total-net`},Xe={class:`flex justify-between typography-text-base font-bold pb-4 mb-4`},Ze={"data-testid":`total-label`},Qe={key:0},$e={"data-testid":`total`},et=Object.assign(f({__name:`OrderSummary`,props:{cart:{}},setup(n){let r=n,{showNetPrices:o}=j(),{format:c}=k(),l=e(()=>{let e=E.getTotals(r.cart);return{total:e.total,subTotal:e.subtotal,vats:e.totalVats}}),d=e=>e===0?A(`shipping.method.free`):c(Number(e)),f=e(()=>r.cart?.items?.reduce((e,{quantity:t})=>e+t,0)??0),p=e(()=>E.getOrderPropertiesWithoutVat(r.cart)),b=e(()=>E.getOrderPropertiesAdditionalCostsWithVat(r.cart));return(e,x)=>{let S=N;return t(),v(`div`,B,[u(`div`,V,[u(`h2`,H,s((`t`in e?e.t:g(A))(`common.labels.orderSummary`)),1),u(`p`,U,s((`t`in e?e.t:g(A))(`cart.itemCount`,{count:g(f)})),1)]),u(`div`,W,[g(b).length>0?(t(),v(`div`,G,[(t(!0),v(_,null,i(g(b),e=>(t(),v(`div`,{key:g(E).getBasketItemOrderParamPropertyId(e),class:`flex justify-between typography-text-base w-full`},[u(`p`,K,s(g(E).getBasketItemOrderParamName(e)),1),u(`p`,q,s(g(c)(g(E).getBasketItemOrderParamPrice(e))),1)]))),128)),y(S,{class:`mt-4 w-auto`})])):m(``,!0),u(`div`,J,[u(`div`,Y,[u(`p`,X,[h(s((`t`in e?e.t:g(A))(`common.labels.itemsSubtotal`))+` `,1),g(o)?(t(),v(`span`,Z,`(`+s((`t`in e?e.t:g(A))(`common.labels.netPrice`))+`)`,1)):m(``,!0)]),u(`p`,Fe,[h(s((`t`in e?e.t:g(A))(`common.labels.delivery`))+` `,1),g(o)?(t(),v(`span`,Q,`(`+s((`t`in e?e.t:g(A))(`common.labels.netPrice`))+`)`,1)):m(``,!0)]),g(E).getCouponDiscount(r.cart)?(t(),v(`p`,Ie,s((`t`in e?e.t:g(A))(`coupon.name`)),1)):m(``,!0),(t(!0),v(_,null,i(g(l).vats,(n,r)=>(t(),v(`p`,{key:r,"data-testid":`vat-label`},s(g(o)?(`t`in e?e.t:g(A))(`common.labels.excludedTax`):(`t`in e?e.t:g(A))(`common.labels.includedTax`))+` (`+s(g(E).getTotalVatValue(n))+`%) `,1))),128))]),g(o)?(t(),v(`div`,$,[u(`p`,Le,s(g(c)(g(E).getItemSumNet(r.cart))),1),u(`p`,Re,s(d(g(E).getShippingAmountNet(r.cart))),1),g(E).getCouponDiscount(r.cart)?(t(),v(`p`,ze,s(g(c)(g(E).getCouponDiscount(r.cart))),1)):m(``,!0),(t(!0),v(_,null,i(g(l).vats,(e,n)=>(t(),v(`p`,{key:n,"data-testid":`vat`},s(g(c)(g(E).getTotalVatAmount(e))),1))),128))])):(t(),v(`div`,Be,[u(`p`,Ve,s(g(c)(g(l).subTotal)),1),u(`p`,He,s(d(g(E).getShippingPrice(r.cart))),1),g(E).getCouponDiscount(r.cart)?(t(),v(`p`,Ue,s(g(c)(g(E).getCouponDiscount(r.cart))),1)):m(``,!0),(t(!0),v(_,null,i(g(l).vats,(e,n)=>(t(),v(`p`,{key:n,"data-testid":`vat`},s(g(c)(g(E).getTotalVatAmount(e))),1))),128))]))]),g(p).length>0?(t(),v(`div`,We,[y(S,{class:`mb-4`}),(t(!0),v(_,null,i(g(p),e=>(t(),v(`div`,{key:g(E).getBasketItemOrderParamPropertyId(e),class:`flex justify-between typography-text-base w-full`},[u(`p`,Ge,s(g(E).getBasketItemOrderParamName(e)),1),u(`p`,Ke,s(g(c)(g(E).getBasketItemOrderParamPrice(e))),1)]))),128)),y(S,{class:`mt-4 w-auto`})])):m(``,!0),g(o)?(t(),v(`div`,qe,[u(`h2`,Je,s((`t`in e?e.t:g(A))(`common.labels.total`))+` (`+s((`t`in e?e.t:g(A))(`common.labels.netPrice`))+`)`,1),u(`h2`,Ye,s(g(c)(g(E).getBasketAmountNet(n.cart))),1)])):m(``,!0),u(`div`,Xe,[u(`h2`,Ze,[h(s((`t`in e?e.t:g(A))(`common.labels.total`))+` `,1),g(o)?(t(),v(`span`,Qe,`(`+s((`t`in e?e.t:g(A))(`common.labels.grossPrice`))+`)`,1)):m(``,!0)]),u(`h2`,$e,s(g(c)(g(l).total)),1)]),y(S,{class:`w-auto mb-4`}),a(e.$slots,`default`)])])}}}),{__name:`OrderSummary`});export{z as n,et as t};

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.