PageSourceSearch

https://ihreapotheken.de/_nuxt/index.CTHgK_5W.js

js ihreapotheken.de collected 2026-09-24 10:29:42 UTC 14,579 bytes, 2 lines download raw bytes

1import{d as U,eR as re,p as f,v as se,o as _,h as D,c as V,j as J,a as l,k as d,t as s,m as N,e as o,f as t,b as a,q as de,_ as ie,by as B,I as X,eA as ue,eS as ce,b3 as me,eT as fe,M as pe,F as Y,au as E,ak as ye,P as ge,W as ve,bA as Z,ab as ee,ac as te,r as _e,H as be,bC as ze,C as H,J as he,ek as xe,ax as ke,O as we,aA as G,K as Pe,D as oe,bf as ne,eU as ae,aU as Ie}from"./entry.Do1AwX71.js";import $e from"./Popper.Coal8byY.js";try{let n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new n.Error().stack;p&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[p]="f6fb353f-d841-4c81-9ab0-8b20bc24814b",n._sentryDebugIdIdentifier="sentry-dbid-f6fb353f-d841-4c81-9ab0-8b20bc24814b")}catch{}const Ce={class:"ia-block quantity-control relative",h:"fit",border:"~ rounded-lg grey-200 focus-within:grey-800",transition:"default"},De={flex:"~",justify:"between"},Ae=["aria-label","disabled"],Qe={p:"y-3 x-7",text:"center lg",font:"bold",class:"leading-6"},Re=["aria-label"],Me=U({__name:"QuantityControl",props:{modelValue:{},currentlyInCart:{},min:{},max:{},reachedMinModal:{type:Boolean},label:{},disabled:{type:Boolean}},emits:["update:modelValue","reachMinLimit"],setup(n,{emit:p}){const u=n,b=p,h=re(u,"modelValue",b),g=f(()=>u.disabled||h.value<=u.min&&!u.reachedMinModal),y=f(()=>u.disabled||h.value>=u.max),v=(w=1)=>{y.value||h.value+w>u.max||(h.value+=w)},z=(w=1)=>{g.value||h.value-w<u.min||(h.value-=w)},k=()=>{h.value<=u.min?b("reachMinLimit"):z(1)},A=()=>{y.value||v(1)},{t:Q}=se(),O=f(()=>u.currentlyInCart===0?Q("product.maximumAmountReached.zeroInCart"):u.currentlyInCart===1?Q("product.maximumAmountReached.oneInCart"):Q("product.maximumAmountReached.multipleInCart"));return(w,M)=>{const I=J,$=$e;return _(),D("div",null,[n.label?(_(),V(I,{key:0,"mb-2":"",font:"700"},{default:l(()=>[d(s(n.label),1)]),_:1})):N("",!0),o("div",Ce,[o("div",De,[o("button",{"aria-label":t(Q)("product.removeItemFromCart"),class:"quantity-control-button-layout quantity-control-button-colors",disabled:t(g),onClick:k},[...M[0]||(M[0]=[o("i",{"i-far:minus":"",block:""},null,-1)])],8,Ae),o("div",Qe,s(t(h)),1),a($,{distance:8,placement:"bottom-end",triggers:["click","hover"],disabled:!t(y)},{content:l(()=>
1[a(I,{size:"sm",color:"grey-600",class:"xs:min-w-280px"},{default:l(()=>[d(s(t(O)),1)]),_:1})]),default:l(()=>[o("button",{"aria-label":t(Q)("product.addItemInCart"),class:de(["quantity-control-button-layout",{"quantity-control-button-colors":!t(y),"text-grey-200 cursor-default":t(y)}]),onClick:A},[...M[1]||(M[1]=[o("i",{"i-far:plus":"",block:""},null,-1)])],10,Re)]),_:1},8,["disabled"])])])])}}}),Se=ie(Me,[["__scopeId","data-v-f262dcb6"]]),Ve={class:"hidden md:table-row","border-y":"1 grey-200"},qe={key:0,class:"py-5 pr-4"},Oe={class:"flex justify-center py-5 mr-2 max-w-[40px]"},je={class:"max-w-24 lg:max-w-md",py:"5"},Te={flex:"~ col"},Ue={flex:"~",gap:"1"},Le={py:"5"},Fe={key:0,flex:"~",gap:"1"},Ne={key:1,flex:"~",gap:"1"},Be={py:"5"},Ee={key:0,flex:"~ col"},He={py:"5"},Je={flex:"~ col"},Ke={align:"center",py:"5"},We={w:"lg:60%"},Ge={py:"5"},Xe={flex:"~ col"},Ye={class:"md:hidden","border-y":"1 grey-200"},Ze={py:"4"},et={flex:"~",gap:"4"},tt={flex:"~ col",gap:"2",w:"full"},ot={flex:"~ col",gap:"1"},nt={flex:"~",gap:"1"},at={key:0,flex:"~",gap:"1"},lt={key:1,flex:"~",gap:"1"},rt={flex:"~ col",gap:"1"},st={flex:"~","justify-between":""},dt={flex:"~","justify-between":""},it={flex:"~","justify-between":""},ut=U({__name:"ReorderRow",props:Z({order:{},availability:{},product:{},showCheckbox:{type:Boolean}},{selected:{required:!0},selectedModifiers:{},quantity:{default:1},quantityModifiers:{}}),emits:["update:selected","update:quantity"],setup(n){const p=n,u=B(n,"selected"),b=X(),h=ue(),g=f(()=>p.product.pzn),y=f(()=>{var e;return(e=p.order)==null?void 0:e.products.find(r=>r.pzn===g.value)}),v=f(()=>{var e;return((e=p.product.mainPrice)==null?void 0:e.value)??0}),z=f(()=>{var e;return((e=y.value)==null?void 0:e.price)??0}),k=e=>ee(te(e)),A=f(()=>{if($.value)return v.value*i.value}),Q=f(()=>A.value===void 0?"-":k(A.value)),O=f(()=>v.value!==z.value),w=f(()=>k(v.value)),M=f(()=>k(z.value)),I=f({get:()=>u.value.includes(g.value),set:e=>{e?u.value.push(g.value):u.value=ce(u.value,g.value)}}),$=f(()=>{var e;return!!((e=p.availability)!=null&&e.available.includes(g.value))}),c=f(()=>{const e=b.products.find(r=>r.pzn===g.value);return(e==null?void 0:e.amount)??0}),i=B(n,"quantity"),x=me(()=>p.product),C=f(()=>{var r;const e=(r=p.order)==null?void 0:r.products.map(j=>j.pzn).join(",");return h.resolve({name:"apofinder",query:{pzn:e,returnUrl:fe(h.currentRoute.value.fullPath)}}).href}),{getUrl:S}=pe(),P=f(()=>S("product-placeholder.png"));return(e,r)=>{const j=ye,T=ge,q=ve,m=J,L=Se;return _(),D(Y,null,[o("tr",Ve,[n.showCheckbox?(_(),D("td",qe,[a(j,{modelValue:t(I),"onUpdate:modelValue":r[0]||(r[0]=R=>E(I)?I.value=R:null),disabled:!t($)},null,8,["modelValue","disabled"])])):N("",!0),o("td",Oe,[a(q,{to:t(x),blank:"",class:"flex-center"},{default:l(()=>[a(T,{src:n.product.image??t(P),alt:n.product.name,placeholder:[40,40],class:"max-w-[40px] max-h-[40px]"},null,8,["src","alt"])]),_:1},8,["to"])]),o("td",je,[o("div",Te,[a(q,{to:t(x),blank:""},{default:l(()=>[a(m,{font:"700",size:"md",color:"grey-800"},{default:l(()=>[d(s(n.product.name),1)]),_:1})]),_:1},8,["to"]),o("div",Ue,[a(m,{font:"400",size:"sm",color:"grey-600"},{default:l(()=>[d(s(n.product.dosage),1)]),_:1}),r[4]||(r[4]=o("div",{"border-r":"1 grey-200"},null,-1)),a(m,{font:"400",size:"sm",color:"grey-600"},{default:l(()=>[d(s(n.product.type),1)]),_:1})])])]),o("td",Le,[t($)?(_(),D("div",Fe,[r[5]||(r[5]=o("i",{"i-fas:circle":"",color:"success-400"},null,-1)),a(m,{font:"400",size:"sm",color:"grey-600"},{default:l(()=>[d(s(e.$t("myAccount.reorder.inStock")),1)]),_:1})])):(_(),D("div",Ne,[r[6]||(r[6]=o("i",{"i-fas:circle":"",color:"primary-red-500"},null,-1)),a(m,{font:"400",size:"sm",color:"grey-600"},{default:l(()=>[d(s(e.$t("myAccount.reorder.outOfStock")),1)]),_:1})]))]),o("td",Be,[t(O)?(_(),D("div",Ee,[a(m,{font:"400",size:"sm",color:"grey-600"},{default:l(()=>[d(s(e.$t("myAccount.reorder.oldPrice")),1)]),_:1}),a(m,{font:"700",size:"md",color:"grey-600",class:"line-through"},{default:l(()=>[d(s(t(M)),1)]),_:1})])):N("",!0)]),o("td",He,[o("div",Je,[a(m,{font:"400",size:"sm",color:"grey-600"},{default:l(()=>[d(s(e.$t("myAccount.reorder.singlePrice")),1)]),_:1}),a(m,{font:"700",size:"md",color:"grey-600"},{default:l(()=>[d(s(t(w)),1)]),_:1})])]),o("td",Ke,[o("div",We,[t($)?(_(),V(L,{key:0,modelValue:i.value,"onUpdate:modelValue":r[1]||(r[1]=R=>i.value=R),min:1,max:n.product.remainingAllowedQuantity,"currently-in-cart":t(c),class:"w-fit"},null,8,["modelValue","max","currently-in-cart"])):(_(),V(q,{key:1,to:t(C),underline:"","span-class":"font-500 text-xs leading-[18px] max-w-[152px]"},{default:l(()=>[d(s(e.$t("myAccount.reorder.findPharmaciesMessage")),1)]),_:1},8,["to"]))])]),o("td",Ge,[o("div",Xe,[a(m,{font:"400",size:"sm",text:"right",color:"grey-600"},{default:l(()=>[d(s(e.$t("myAccount.reorder.totalPrice")),1)]),_:1}),a(m,{font:"700",size:"md",text:"right",color:"grey-600"},{default:l(()=>[d(s(t(Q)),1)]),_:1})])])]),o("tr",Ye,[o("td",Ze,[o("div",et,[o("div",null,[n.showCheckbox?(_(),V(j,{key:0,modelValue:t(I),"onUpdate:modelValue":r[2]||(r[2]=R=>E(I)?I.value=R:null),disabled:!t($)},null,8,["modelValue","disabled"])):N("",!0)]),a(q,{to:t(x),blank:""},{default:l(()=>[a(T,{src:n.product.image??t(P),alt:n.product.name,placeholder:[40,40],class:"max-w-[40px] max-h-[40px]"},null,8,["src","alt"])]),_:1},8,["to"]),o("div",tt,[o("div",ot,[a(q,{to:t(x),blank:""},{default:l(()=>[a(m,{font:"700",size:"md",class:"!lt-sm:leading-3.5",color:"grey-800"},{default:l(()=>[d(s(n.product.name),1)]),_:1})]),_:1},8,["to"]),o("div",nt,[a(m,{font:"400",size:"sm",class:"!lt-sm:leading-3.5",color:"grey-600"},{default:l(()=>[d(s(n.product.dosage),1)]),_:1}),r[7]||(r[7]=o("div",{"border-r":"1 grey-200"},null,-1)),a(m,{font:"400",size:"sm",class:"!lt-sm:leading-3.5",color:"grey-600"},{default:l(()=>[d(s(n.product.type),1)]),_:1})])]),t($)?(_(),D("div",at,[r[8]||(r[8]=o("i",{"i-fas:circle":"",color:"success-400"},null,-1)),a(m,{font:"400",size:"sm",color:"grey-600",class:"!lt-sm:leading-3.5"},{default:l(()=>[d(s(e.$t("myAccount.reorder.inStock")),1)]),_:1})])):(_(),D("div",lt,[r[9]||(r[9]=o("i",{"i-fas:circle":"",color:"primary-red-500"},null,-1)),a(m,{font:"400",size:"sm",color:"grey-600",class:"!lt-sm:leading-3.5"},{default:l(()=>[d(s(e.$t("myAccount.reorder.outOfStock")),1)]),_:1})])),o("div",null,[t($)?(_(),V(L,{key:0,modelValue:i.value,"onUpdate:modelValue":r[3]||(r[3]=R=>i.value=R),min:1,max:n.product.remainingAllowedQuantity,"currently-in-cart":t(c)},null,8,["modelValue","max","currently-in-cart"])):(_(),V(q,{key:1,to:t(C),underline:""},{default:l(()=>[d(s(e.$t("myAccount.reorder.findPharmaciesMessage")),1)]),_:1},8,["to"]))]),o("div",rt,[o("div",st,[a(m,{font:"400",size:"sm",color:"grey-600",class:"!lt-sm:leading-3.5"},{default:l(()=>[d(s(e.$t("myAccount.reorder.oldPrice")),1)]),_:1}),a(m,{font:"700",size:"md",color:"grey-600",class:"line-through !lt-sm:leading-4.5"},{default:l(()=>[d(s(t(M)),1)]),_:1})]),o("div",dt,[a(m,{font:"400",size:"sm",color:"grey-600",class:"!lt-sm:leading-3.5"},{default:l(()=>[d(s(e.$t("myAccount.reorder.singlePrice")),1)]),_:1}),a(m,{font:"700",size:"md",color:"grey-600",class:"!lt-sm:leading-4.5"},{default:l(()=>[d(s(t(w)),1)]),_:1})]),o("div",it,[a(m,{font:"400",size:"sm",text:"right",class:"!lt-sm:leading-3.5",color:"grey-600"},{default:l(()=>[d(s(e.$t("myAccount.reorder.total")),1)]),_:1}),a(m,{font:"700",size:"md",text:"right",color:"grey-600",class:"!lt-sm:leading-4.5"},{default:l(()=>[d(s(t(Q)),1)]),_:1})])])])])])])],64)}}}),ct=U({__name:"ReorderTable",props:Z({data:{}},{pznQuantity:{default:{}},pznQuantityModifiers:{},selected:{default:[]},selectedModifiers:{}}),emits:["update:pznQuantity","update:selected"],setup(n){const p=n,u=B(n,"pznQuantity"),b=B(n,"selected"),h=f(()=>{var v;return(((v=p.data.productDetails)==null?void 0:v.length)??0)>1}),g=f(()=>{var v;return((v=p.data.orderData)==null?void 0:v.products.map(z=>z.pzn))??[]}),y=f(()=>(p.data.productDetails??[]).sort((z,k)=>
1g.value.indexOf(z.pzn)-g.value.indexOf(k.pzn))??[]);return(v,z)=>(_(),D("table",null,[o("tbody",null,[(_(!0),D(Y,null,_e(t(y),k=>(_(),V(ut,{key:k.pzn,quantity:u.value[k.pzn],"onUpdate:quantity":A=>u.value[k.pzn]=A,selected:b.value,"onUpdate:selected":z[0]||(z[0]=A=>b.value=A),order:n.data.orderData,availability:n.data.productAvailability,product:k,"show-checkbox":t(h)},null,8,["quantity","onUpdate:quantity","selected","order","availability","product","show-checkbox"]))),128))])]))}}),mt={key:0,flex:"~ col",class:"@container"},ft={flex:"~","mb-12":""},pt={"pt-5":"","pb-8":"",flex:"~","justify-end":""},yt={flex:"~","justify-end":"",gap:"12"},gt={flex:"~ col sm:row",class:"justify-end"},le=U({__name:"ReorderPage",props:{orderId:{},pzn:{}},setup(n){const p=n,u=X(),b=be(),{loadReorderData:h,productList:g}=ze(),y=H([]);he(g,c=>{y.value=c.map(i=>i.pzn)});const v=H({}),{state:z,isReady:k}=h(p.orderId,p.pzn),A=f(()=>Object.keys(v.value).reduce((c,i)=>(y.value.includes(i)&&(c[i]=v.value[i]),c),{})),Q=c=>{c.forEach(i=>{const x=A.value[i.pzn];u.addProduct(i,x)})},O=f(()=>g.value.filter(c=>y.value.includes(c.pzn))),w=H(!1),M=async()=>{if(Q(O.value),w.value=!0,await b.updateDraft(),w.value=!1,!b.draftId){G(()=>console.error("Draft ID not found"));return}Pe({name:"warenkorb-einzelheiten-draftId",params:{draftId:b.draftId}})},I=f(()=>{const c=g.value.reduce((i,x)=>{var C;return(((C=x.mainPrice)==null?void 0:C.value)??0)+i},0);return ee(te(c))}),$=c=>g.value.map(i=>i.pzn).includes(c);return xe(z,async c=>{var C,S;if(!(c!=null&&c.productDetails))return;const i=g.value.every(P=>{var e,r;return(r=(e=z.value)==null?void 0:e.productAvailability)==null?void 0:r.available.includes(P.pzn)});G(()=>console.log("Are all products available :",i));const x=(S=(C=z.value)==null?void 0:C.orderData)==null?void 0:S.products.filter(P=>$((P==null?void 0:P.pzn)??"")).reduce((P,e)=>{var L,R,K,W;const r=((L=O.value.find(F=>F.pzn===e.pzn))==null?void 0:L.maxQuantity)??3,j=((R=u.cartData.products.find(F=>F.pzn===e.pzn))==null?void 0:R.amount)??0,T=r-j,q=((e==null?void 0:e.amount)??0)>T?T:e.amount,m=(W=(K=z.value)==null?void 0:K.productDetails)==null?void 0:W.find(F=>F.pzn===e.pzn);return!m||!(e!=null&&e.pzn)||(m.remainingAllowedQuantity=T,P[e.pzn]=q??0),P},{});x&&(v.value=x)}),(c,i)=>{const x=J,C=we;return t(z)&&t(k)?(_(),D("div",mt,[o("div",ft,[a(ke,{"show-logout":!1})]),a(ct,{pznQuantity:t(v),"onUpdate:pznQuantity":i[0]||(i[0]=S=>E(v)?v.value=S:null),selected:t(y),"onUpdate:selected":i[1]||(i[1]=S=>E(y)?y.value=S:null),data:t(z)},null,8,["pznQuantity","selected","data"]),o("div",pt,[o("div",yt,[a(x,{font:"700",size:"lg",color:"grey-800",class:"!leading-4.5"},{default:l(()=>[d(s(c.$t("myAccount.reorder.totalPrice")),1)]),_:1}),o("div",null,[a(x,{font:"700",size:"lg","responsive-size":{smDown:"md"},color:"grey-600",text:"right",class:"!leading-5 !sm:leading-4.5"},{default:l(()=>[d(s(t(I)),1)]),_:1}),a(x,{font:"400",size:"sm","responsive-size":{smDown:"md"},color:"grey-600",text:"right",class:"!leading-4.5 !sm:leading-4.5"},{default:l(()=>[d(s(c.$t("myAccount.reorder.vat")),1)]),_:1})])])]),o("div",gt,[a(C,{variant:"outline",size:"lg",class:"m-0 mb-4 sm:mb-0 sm:mr-6","responsive-size":{mdDown:"md"},disabled:t(w),onClick:i[2]||(i[2]=S=>c.$router.back())},{default:l(()=>[d(s(c.$t("keyword.back")),1)]),_:1},8,["disabled"]),a(C,{type:"submit",size:"lg","responsive-size":{mdDown:"md"},loading:t(b).isLoading,disabled:t(w)||!t(y).length,onClick:M},{default:l(()=>[d(s(c.$t("keyword.toCart")),1)]),_:1},8,["loading","disabled"])])])):N("",!0)}}}),vt=U({__name:"[pzn]",setup(n){const{orderId:p,pzn:u}=oe().params,b=f(()=>ne(p));if(!b.value)throw ae("OrderID not found");return(h,g)=>{const y=le;return _(),V(y,{"mt-8":"","order-id":t(b),pzn:t(u)},null,8,["order-id","pzn"])}}}),ht=Object.freeze(Object.defineProperty({__proto__:null,default:vt},Symbol.toStringTag,{value:"Module"})),_t=U({__name:"index",setup(n){const{orderId:p}=oe().params,u=Ie("pzn"),b=f(()=>ne(p));if(!b.value)throw ae("OrderID not found");return(h,g)=>{const y=le;return _(),V(y,{"mt-8":"",pzn:t(u)??void 0,"order-id":t(b)},null,8,["pzn","order-id"])}}}),xt=Object.freeze(Object.defineProperty({__proto__:null,default:_t},Symbol.toStringTag,{value:"Module"}));
1export{Se as Q,ht as _,xt as i};
2//# sourceMappingURL=index.CTHgK_5W.js.map

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.