1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="4694d48e-b311-4983-afb6-5a26ccec1dae",e._sentryDebugIdIdentifier="sentry-dbid-4694d48e-b311-4983-afb6-5a26ccec1dae")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"[email protected]+0720979d"},(self.webpackChunkncg_frontend_22=self.webpackChunkncg_frontend_22||[]).push([[7257],{47257:function(e,s,t){t.r(s),t.d(s,{MAX_CUSTOMER_REMARK_LENGTH:function(){return k.l}});var i=t(4942),a=t(29439),n=t(72791),r=t(8907),c=t(50796),l=t(85662),d=t(40834),o=t(64834),m=t(25759),x=t(62966),h=t(19631),u=t(91523),p=t(17062),f=t(30678),j=t(72028),g=t(6794),v=t(6383),b=t(86981),N=t(42176),y=t(23247),w=t(7818),k=t(47981),Z=t(80184),S=function(e,s){return e.price>s.price?-1:e.price<s.price?1:0};function R(e){var s,t,r,m=e.className,x=e.basic,h=e.showRemove,p=e.position,f=e.canEdit,g=void 0===f||f,y=(0,n.useState)(),w=(0,a.Z)(y,2),S=(w[0],w[1]),R=function(e){cartStore.addPosition(p,Math.round(Math.max(0,e))),S(p.quantity)},T=p&&p.images&&p.images.length>=1&&p.images[0],I=(0,n.useState)((null===(s=p.metafield)||void 0===s?void 0:s.customerRemark)||""),D=(0,a.Z)(I,2),C=D[0],E=D[1],P=(0,n.useState)(!1),_=(0,a.Z)(P,2),z=_[0],M=_[1],W=p.href?u.rU:"div";p.price,p.recommendedRetailPriceGrossInEur,p.hasDiscount,p.sale_percent,p.sale_absolute;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("div",{className:"lg:col-span-3 md:col-span-2 col-span-6 w-full ".concat(m),children:(0,Z.jsxs)("div",{className:"flex flex-row",children:[!x&&(0,Z.jsx)(W,{to:p.href,className:"w-16 h-16",children:(0,Z.jsxs)(n.Fragment,{children:[T&&(0,Z.jsx)("div",{className:"pb3 ".concat("bg-white pt3"," mb3"),children:(0,Z.jsx)(c.Z,(0,i.Z)({alt:"Produktabbildung",centered:!0,style:{maxHeight:"160px",maxWidth:"50.33%"},src:T},"alt",""))}),!T&&(0,Z.jsx)("div",{className:"flex flex-row items-center justify-center h-100",children:(0,Z.jsx)(N.Z.Mechanic,{width:32,className:"opacity-50"})})]})}),(0,Z.jsxs)("div",{className:"pl-4 text-gray-800",children:[(0,Z.jsxs)("div",{className:"text-sm text-gray-400",children:["Artikelnr. ",p.productIDOriginal||p.productID]}),(0,Z.jsxs)("div",{className:"font-bold",children:[p.shortName||p.name," ",(0,Z.jsx)("span",{className:"font-normal"})]}),g&&(0,Z.jsx)(Z.Fragment,{children:!z&&(0,Z.jsxs)("button",{title:"Kommentar bearbeiten",type:"button",onClick:function(){return M(!0)},children:[(null===(t=p.metafield)||void 0===t?void 0:t.customerRemark)&&(0,Z.jsxs)("div",{className:"text-xs text-gray-500 p-1 bg-gray-50 rounded-md px-2 flex flex-row items-center",children:[(0,Z.jsx)(b.Z,{icon:v.IwR,className:"mr-2"}),(0,Z.jsx)("div",{className:"f7 tracked-narrow i",children:p.metafield.customerRemark})]}),!(null!==(r=p.metafield)&&void 0!==r&&r.customerRemark)&&(0,Z.jsx)("div",{className:"f6 lh-title mb2 mt1",children:(0,Z.jsx)("div",{className:"f6 blue hover:underline tracked-narrow",children:"Kommentar hinzuf\xfcgen"})})]})}),z&&(0,Z.jsxs)("div",{children:[(0,Z.jsx)(l.Z.Input,{className:"quicksearch-comment",placeholder:"Anmerkung hinzuf\xfcgen",fluid:!0,size:"mini",value:C,onChange:function(e){var s=e.currentTarget.value;s.length<120&&E(s)}}),(0,Z.jsx)("div",{className:"pt1 w-full",children:(0,Z.jsx)("div",{className:"flex flex-row justify-end",children:(0,Z.jsxs)(d.Z.Group,{size:"tiny",children:[(0,Z.jsx)(d.Z,{type:"button",onClick:function(){var e;E((null===(e=p.metafield)||void 0===e?void 0:e.customerRemark)||""),M(!1)},basic:!0,size:"tiny",children:"Abbrechen"}),(0,Z.jsx)(d.Z,{type:"button",onClick:function(){var e;e=C,p.metafield=p.metafield||{},p.metafield.customerRemark=e.substring(0,k.l),cartStore.save(),S(p.quantity),M(!1)},size:"tiny",primary:!0,children:"Speichern"})]})})})]})]})]})}),(0,Z.jsx)("div",{className:"md:col-span-1 col-span-1 hidden flex-row items-top md:flex",children:(0,Z.jsxs)("div",{className:"pt-3",children:[p.hasDiscount&&(0,Z.jsx)("div",{className:"text-sm text-gray-500 strike",children:(0,j.Z)(p.recommendedRetailPriceGrossInEur)}),(0,Z.jsx)("div",{className:"text-lg font-bold ".concat(p.hasDiscount&&"text-red-500"),children:(0,j.Z)(p.price,2,p.priceText||"kostenlos")})]})}),(0,Z.jsx)("div",{className:"lg:col-span-1 md:col-span-2 col-span-4 flex flex-col items-top",children:g&&(0,Z.jsxs)("div",{className:"flex flex-row items-center md:justify-start sm:justify-center md:ml-0 sm:ml-auto",children:[(0,Z.jsx)(d.Z,{style:{margin:0},basic:!0,icon:(0,Z.jsx)(b.Z,{icon:v.Kl4}),onClick:function(){R(p.quantity-1)}}),(0,Z.jsx)("div",{className:"mx-2",children:(0,Z.jsx)(o.Z,{className:"text-center",value:p.quantity,style:{width:"62px"},onChange:function(e){R(e.currentTarget.value)}})}),(0,Z.jsx)(d.Z,{style:{margin:0},basic:!0,icon:(0,Z.jsx)(b.Z,{icon:v.r8p}),onClick:function(){R(p.quantity+1)}})]})}),(0,Z.jsx)("div",{className:"md:col-span-1 col-span-2",children:(0,Z.jsxs)("div",{className:"flex flex-row items-center",children:[(0,Z.jsxs)("div",{className:"pr-2 text-right w-full",children:[p.hasDiscount&&(0,Z.jsxs)("div",{className:"text-sm text-gray-500 strike",children:[" ",(0,j.Z)(p.recommendedRetailPriceGrossInEur*p.quantity)]}),p.quantity>1&&(0,Z.jsxs)("div",{className:"text-sm text-gray-700 md:hidden ".concat(p.hasDiscount&&"text-red-500"),children:[" St\xfcckpreis ",(0,j.Z)(p.price)]}),(0,Z.jsx)("div",{className:"text-lg font-bold whitespace-pre ".concat(p.hasDiscount&&"text-red-500"),children:(0,j.Z)(p.price*p.quantity,2,p.priceText||"kostenlos")})]}),h&&(0,Z.jsx)("div",{className:"ml-auto pl-4",children:(0,Z.jsx)(d.Z,{basic:!0,style:{marginRight:0},icon:(0,Z.jsx)(b.Z,{icon:v.NBC}),className:"p-4 text-xl",onClick:function(){cartStore.removePosition(p),S(0)}})})]})})]})}var T=(0,r.Pi)((function(){return(0,Z.jsxs)("div",{className:"Positions",children:[(0,Z.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-6 gap-4 mt-8 mb-8",children:[(0,Z.jsx)("div",{className:"hidden md:block lg:col-span-3 md:col-span-2 col-span-2",children:"\xa0"}),(0,Z.jsx)("div",{className:"hidden md:block col-span-1 text-gray-400",children:"St\xfcckpreis"}),(0,Z.jsx)("div",{className:"hidden md:block lg:col-span-1 md:col-span-2 col-span-2 text-gray-400",children:"Menge"}),(0,Z.jsx)("div",{className:"hidden md:block col-span-1 text-gray-400",children:"Gesamtpreis"}),cartStore.products.slice().sort(S).map((function(e){return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(R,{position:e,showRemove:!0},e.productID),e.associatedProducts&&(0,Z.jsxs)(Z.Fragment,{children:[e.associatedProducts.slice().sort(S).map((function(s){return(0,Z.jsx)(R,{canEdit:"WPK"===e.type||"TYR"===e.type,basic:!0,className:"bl border-gray-300 mt-2 ml-8 pl-8",position:s},s.productID)})),(0,Z.jsx)("div",{className:"md:hidden col-span-4",children:"\xa0"})]})]})}))]}),(0,Z.jsxs)("div",{className:"py-4 border-top flex flex-row justify-end items-center f4 b",children:[(0,Z.jsx)("div",{className:"pr-2"}),(0,Z.jsx)(d.Z,{as:u.rU,to:"/services",size:"small",style:{marginRight:0},circular:!0,children:(0,Z.jsxs)("div",{className:"flex flex-row items-center",children:[(0,Z.jsx)("span",{className:"font-bold",children:"Leistung hinzuf\xfcgen"}),(0,Z.jsx)(b.Z,{className:"ml-2",icon:v.r8p})]})})]})]})})),I=(0,r.Pi)((function(e){var s=e.hideTitle,t=void 0!==s&&s,i=locationStore.isMobile;return(0,Z.jsx)(m.Z,{stackable:!0,children:(0,Z.jsxs)(m.Z.Row,{children:[(0,Z.jsx)(m.Z.Column,{width:11,children:!t&&(0,Z.jsxs)("div",{className:"pr4 ph3 ph0-ns pt3 pt0-ns",children:[(0,Z.jsx)("h1",{className:"f2 b ma0",children:"Warenkorb"}),(0,Z.jsxs)(u.rU,{to:"/werkstatt/",className:"mt-2 text-gray-800 uppercase text-xs tracking-wide font-bold",children:[(0,Z.jsx)(b.Z,{className:"text-sm mr-2",icon:v.acZ})," Weiter Einkaufen"]})]})}),(0,Z.jsx)(m.Z.Column,{width:5,children:(0,Z.jsxs)("div",{className:"pb-4 ",children:[(0,Z.jsx)(x.Z,{}),(0,Z.jsxs)("div",{className:"f4 black flex flex-row justify-between pt2",children:[(0,Z.jsxs)("div",{className:"",children:[(0,Z.jsx)("div",{children:"Gesamtsumme:"}),(0,Z.jsx)("div",{className:"black-60 f6",children:"inkl. MwSt."}),cartStore.discountSavingsTotal>0&&(0,Z.jsxs)("div",{className:"text-xs font-medium text-green-700",children:["Sie sparen ",(0,j.Z)(cartStore.discountSavingsTotal)]})]}),(0,Z.jsxs)("div",{className:"text-right",children:[cartStore.discountSavingsTotal>0&&(0,Z.jsx)("div",{className:"text-sm text-gray-500 line-through",children:(0,j.Z)(cartStore.preDiscountTotal)}),(0,Z.jsx)("span",{className:"b ".concat(cartStore.discountSavingsTotal>0?"text-red-600":""),children:(0,j.Z)(cartStore.total)})]})]}
1),!i&&(0,Z.jsx)(g.d2,{showCouponInput:!1,className:"pt3 "})]})})]})})}));s.default=(0,r.Pi)((function(e){(0,n.useEffect)((function(){uiStore.setSidebarState(y.T.HIDDEN)}),[0]),e.match.path;var s=e.match.params.groupID,t=locationStore.activeStore,i=(serviceStore.serviceGroupDetailsById.get(s),sessionStore.profile);return t?(locationStore.baseUrl,(0,Z.jsxs)("div",{className:"BranchServicePage bg-white",children:[(0,Z.jsx)(w.Z,{hideFilter:!0}),(0,Z.jsx)(h.Z,{children:(0,Z.jsx)(u.rU,{to:locationStore.getPath("/cart/"),children:"Warenkorb"})}),(0,Z.jsx)(f.ZP,{fluid:!0,className:"overflow-hidden px-4",children:(0,Z.jsxs)("div",{className:"pt3 pt0-ns mx-auto ",children:[(0,Z.jsx)(f.r_,{children:(0,Z.jsxs)("div",{className:"h-100",children:[(0,Z.jsx)("div",{className:"h3-mb3-old unused-spacing-element"}),(0,Z.jsxs)("div",{className:"w-100",children:[(0,Z.jsx)(g.ZP,{showStandardTitle:!0}),(0,Z.jsx)(g.d2,{toCart:!0})]})]})}),(0,Z.jsx)(m.Z,{children:(0,Z.jsxs)(m.Z.Row,{children:[(0,Z.jsx)(m.Z.Column,{width:11,children:(0,Z.jsxs)("div",{className:"pr4 ph3 ph0-ns pt3 pt0-ns",children:[(0,Z.jsx)("h1",{className:"f2 b ma0",children:"Warenkorb"}),(0,Z.jsxs)(u.rU,{to:"/werkstatt/",className:"mt-2 text-gray-800 uppercase text-xs tracking-wide font-bold",children:[(0,Z.jsx)(b.Z,{className:"text-sm mr-2",icon:v.acZ})," Weiter Einkaufen"]})]})}),(0,Z.jsx)(m.Z.Column,{width:5})]})}),(0,Z.jsx)(T,{}),!i&&(0,Z.jsxs)("div",{className:"p-8 border border-gray-200",children:[(0,Z.jsx)(u.rU,{to:"/cart/?login=modal&referrer=%2Fcart",className:"hover:underline font-bold",children:" Melden Sie sich an"})," um Ihren Warenkorb zu speichern oder bisherige Warenk\xf6rbe wieder herzustellen."]}),(0,Z.jsx)(I,{hideTitle:!0}),(0,Z.jsx)(f.R0,{hashId:"cart-page-bottom-cta",children:(0,Z.jsx)("div",{className:"p-4 bg-white border-top border-gray-200 block md:hidden",children:(0,Z.jsx)(d.Z,{as:u.rU,to:"/checkout",fluid:!0,primary:!0,children:"Weiter zur Kasse"})})})]})}),(0,Z.jsx)("div",{className:"",children:(0,Z.jsx)(p.Z,{})})]})):(0,Z.jsx)(d.Z,{loading:!0})}))}}]); 2//# sourceMappingURL=7257.764c0dcc.chunk.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.