1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4005],{3322:(e,s,a)=>{"use strict";a.d(s,{Hg:()=>l,z4:()=>i});let i="/handys";function l(e){let s=e.replace(/^\/+|\/+$/g,"");return"".concat(i,"/").concat(s)}},6329:(e,s,a)=>{"use strict";a.d(s,{JR:()=>i,VG:()=>l});let i="https://handy.de/api";function l(e){if(!e)return"/images/product/product-1.jpg";if(e.startsWith("http://")||e.startsWith("https://"))return e;let s=i.replace(/\/$/,""),a=e.startsWith("/")?e:"/".concat(e);return"".concat(s).concat(a)}},6805:(e,s,a)=>{Promise.resolve().then(a.bind(a,7953))},7953:(e,s,a)=>{"use strict";a.d(s,{default:()=>b});var i=a(5155),l=a(2619),n=a.n(l),c=a(2115),r=a(1802),t=a(1234),d=a(6878),h=a(4189),m=a(3322),o=a(6472),j=a(5239),x=a(3712),u=a(9916),N=a(4506),p=a.n(N);function f(e){let{item:s,onRemove:a,showRemove:l}=e,c=(0,u.G3)(s),r=(0,i.jsx)("div",{className:p().productImgWrap,children:(0,i.jsx)(j.default,{src:s.image,alt:"",width:96,height:96,unoptimized:s.image.startsWith("http"),style:{objectFit:"contain"}})}),t=(0,i.jsx)("p",{className:p().headTitle,children:s.name});return(0,i.jsx)("div",{className:p().line,children:(0,i.jsxs)("div",{className:p().lineTop,children:[c?(0,i.jsx)(n(),{href:c,className:p().productLink,children:r}):r,(0,i.jsxs)("div",{className:p().lineBody,children:[c?(0,i.jsx)(n(),{href:c,className:p().productLink,children:t}):t,(0,i.jsxs)("p",{className:p().shipHint,children:[(0,i.jsx)("i",{className:"bi bi-check-circle-fill","aria-hidden":!0}),(0,i.jsx)("span",{children:"Bestellen Sie vor 12:30, um die Lieferung schnellstm\xf6glich zu erhalten."})]})]}),(0,i.jsxs)("div",{className:p().lineActions,children:[(0,i.jsx)("span",{className:p().linePrice,children:(0,x.NL)(s.price*s.quantity)}),(0,i.jsxs)("div",{className:p().lineMetaRow,children:[(0,i.jsxs)("span",{className:p().qty,children:["Anzahl: ",s.quantity]}),l&&a?(0,i.jsx)("button",{type:"button",className:p().trashBtn,onClick:a,"aria-label":"Entfernen",children:(0,i.jsx)("i",{className:"bi bi-trash",style:{fontSize:"0.95rem"},"aria-hidden":!0})}):null]})]})]})})}function v(e){let{subtotalEur:s,shippingEur:a,totalEur:l,ctaHref:c,ctaLabel:r,backToCartHref:t,showCoupon:d=!1,showTotals:h=!0}=e,m=a<=0;return(0,i.jsxs)("aside",{className:p().side,children:[(0,i.jsx)("div",{className:p().sideHeader,children:(0,i.jsx)("h2",{className:p().sideHeaderTitle,children:"Bestell\xfcbersicht"})}),h?(0,i.jsxs)("div",{className:p().sideBody,children:[(0,i.jsxs)("div",{className:p().sideRow,children:[(0,i.jsx)("span",{className:p().sideRowLabel,children:"Zwischensumme"}),(0,i.jsx)("span",{children:(0,x.NL)(s)})]}),(0,i.jsxs)("div",{className:p().sideRow,children:[(0,i.jsx)("span",{className:p().sideRowLabel,children:"Versand"}),m?(0,i.jsx)("span",{className:p().shipVal,children:"Kostenlos"}):(0,i.jsx)("span",{children:(0,x.NL)(a)})]}),d?(0,i.jsx)("p",{className:p().coupon,children:(0,i.jsx)("a",{href:"#",children:"Hast Du einen Gutscheincode?"})}):null,(0,i.jsxs)("div",{className:p().totalBlock,children:[(0,i.jsxs)("div",{className:p().totalRow,children:[(0,i.jsx)("span",{children:"Gesamtsumme"}),(0,i.jsx)("span",{children:(0,x.NL)(l)})]}),(0,i.jsx)("p",{className:p().mwst,children:"MwSt. inkl."})]})]}):null,(0,i.jsxs)("div",{className:p().sideFooter,children:[(0,i.jsxs)(n(),{href:c,className:p().cta,children:[r,(0,i.jsx)("i",{className:"bi bi-arrow-right","aria-hidden":!0})]}),(0,i.jsxs)("p",{className:p().secureNote,children:[(0,i.jsx)("i",{className:"bi bi-shield-check","aria-hidden":!0}),"Sichere SSL-Verschl\xfcsselung"]})]}),t?(0,i.jsx)("p",{className:p().backCart,children:(0,i.jsxs)(n(),{href:t,children:[(0,i.jsx)("i",{className:"bi bi-chevron-left me-1","aria-hidden":!0}),"Zur\xfcck zu meinem Warenkorb"]})}):null]})}function b(){var e;let s=(0,r.j)(),a=(0,r.G)(t.yH),l=(0,r.G)(t.Fs),j=(0,r.G)(t.ez),x=(0,c.useMemo)(()=>l.filter(e=>"tarife"===e.kind).map(e=>e.id).sort((e,s)=>e-s).join(","),[l]),[u,N]=(0,c.useState)({});(0,c.useEffect)(()=>{let e=l.filter(e=>"tarife"===e.kind).map(e=>e.id);if(0===e.length)return void N({});let s=!1;return(async()=>{let a={};await Promise.all(e.map(async e=>{let i=await (0,d.RU)(e);s||(a[e]=(0,h.Ab)(i))})),s||N(a)})(),()=>{s=!0}},[x]);let b=l.reduce((e,s)=>e+s.quantity,0);if(!a)return(0,i.jsx)("div",{className:"".concat(p().page," ").concat(p().wrap),children:(0,i.jsxs)("div",{className:"container",children:[(0,i.jsx)("header",{className:p().header,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("h1",{className:p().pageTitle,children:"Warenkorb"}),(0,i.jsx)("p",{className:p().pageSubtitle,children:"Wird geladenâ¦"})]})}),(0,i.jsxs)("div",{className:p().loadingShell,"aria-hidden":!0,
1children:[(0,i.jsx)("div",{className:p().loadingCard}),(0,i.jsx)("div",{className:p().loadingSide})]})]})});if(0===l.length)return(0,i.jsx)("div",{className:"".concat(p().page," ").concat(p().wrap),children:(0,i.jsxs)("div",{className:"container",children:[(0,i.jsx)("header",{className:p().header,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("h1",{className:p().pageTitle,children:"Warenkorb"}),(0,i.jsx)("p",{className:p().pageSubtitle,children:"Noch keine Artikel hinzugef\xfcgt"})]})}),(0,i.jsxs)("div",{className:p().empty,children:[(0,i.jsx)("div",{className:p().emptyIcon,"aria-hidden":!0,children:(0,i.jsx)("i",{className:"bi bi-bag"})}),(0,i.jsx)("h2",{className:p().emptyTitle,children:"Dein Warenkorb ist leer"}),(0,i.jsx)("p",{children:"Entdecke unsere Handys, Tarife und Gadgets â dein n\xe4chstes Lieblingsger\xe4t wartet."}),(0,i.jsxs)("div",{className:p().emptyActions,children:[(0,i.jsx)(n(),{href:m.z4,className:p().emptyPrimary,children:"Handys entdecken"}),(0,i.jsx)(n(),{href:"/simonly",className:p().emptySecondary,children:"Handytarife ansehen"}),j?(0,i.jsx)(n(),{href:j,className:p().emptySecondary,children:"Kasse fortsetzen"}):null]})]})]})});let k=e=>"tarife"===e,g=0;for(let e of l)k(e.kind)?g+=0:g+=e.price*e.quantity;let y=g+0;return(0,i.jsx)("div",{className:"".concat(p().page," ").concat(p().wrap),children:(0,i.jsxs)("div",{className:"container",children:[(0,i.jsx)("header",{className:p().header,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("h1",{className:p().pageTitle,children:"Warenkorb"}),(0,i.jsx)("p",{className:p().pageSubtitle,children:1===b?"1 Artikel im Warenkorb":"".concat(b," Artikel im Warenkorb")})]})}),(0,i.jsxs)("div",{className:p().row,children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("section",{className:p().itemsCard,children:[(0,i.jsx)("div",{className:p().itemsCardHeader,children:(0,i.jsx)("p",{className:p().itemsCardHeaderTitle,children:"Artikel"})}),l.map(e=>{let a={id:e.id,kind:e.kind};return"tarife"===e.kind&&e.tarifeMeta?(0,i.jsx)(o.Z,{meta:e.tarifeMeta,detailBasePath:e.detailBasePath,produktdetailsPdfUrl:e.produktdetailsPdfUrl,quantity:e.quantity,linePriceEur:0,simImageSrc:e.image,showRemove:!0,onRemove:()=>s((0,t.Ai)(a)),contractDocLinks:u[e.id]},(0,t.tR)(e)):(0,i.jsx)(f,{item:e,showRemove:!0,onRemove:()=>s((0,t.Ai)(a))},(0,t.tR)(e))})]}),(0,i.jsx)("p",{className:p().continue,children:(0,i.jsxs)(n(),{href:m.z4,className:p().continueLink,children:[(0,i.jsx)("i",{className:"bi bi-arrow-left","aria-hidden":!0}),"Weiter einkaufen"]})})]}),(0,i.jsx)(v,{subtotalEur:g,shippingEur:0,totalEur:y,ctaHref:(null==(e=l[0])?void 0:e.checkoutUrl)||j||"/simonly",ctaLabel:"Zur Kasse gehen",showCoupon:!1})]})]})})}}},e=>{e.O(0,[8669,2619,9210,9220,9555,5239,3712,8172,8441,1255,7358],()=>e(e.s=6805)),_N_E=e.O()}]);
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.