PageSourceSearch

https://www.cofetariazoomserie.ro/_next/static/chunks/pages/[country]/[language]/cart-d73f13b6e0e33335.js

js cofetariazoomserie.ro collected 2026-10-02 15:32:46 UTC 9,229 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9526],{97388:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[country]/[language]/cart",function(){return n(87662)}])},87662:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return w}});var s=n(47568),i=n(828),c=n(10092),r=n(85893),a=n(67294),o=n(9008),d=n.n(o),l=n(15226),u=n(41664),m=n.n(u),p=n(55120),h=n(47300),x=n(49113),v=n(63029),j=n(67198),_=n(66435),g=n(41431),N=n(17435),f=n(31267),b=n(11163),y=n(99603),k=n(59417);var w=!0;t.default=function(e){var t,n,o,u,w,S=e.product,Z=e.cart_info,C=e.session_token;(0,N.Z)({session_token:C});var O=(0,_.SJ)().nav,T=(0,j.iQ)(),z=T.data,F=T.refreshCart,P=(0,b.useRouter)(),E=z.cart,I=(null===(t=P.query)||void 0===t?void 0:t.furnizor_id)?String(P.query.furnizor_id):"",M=Object.keys(E.products_furnizor||{})[0]||"",L=Object.values(E.products_furnizor||{})[0]||null,H=I||M,q=(0,a.useState)(!1),R=q[0],U=q[1],X=(0,a.useState)(!1),G=X[0],J=X[1];(0,a.useEffect)((function(){F(I)}),[I]);var Q=(0,g.Z)({product:S,furnizor_id:H}),Y=Q.handleRemoveFromCart,A=Q.handleUpdateProductOptions;(0,a.useEffect)((function(){var e=P.asPath;(0,f.Z)({redirect_url:e})}),[]);var B=(0,a.useState)(!1),D=B[0],K=B[1],V=(0,a.useState)([]),W=V[0],$=V[1],ee=(0,a.useState)(!0),te=ee[0],ne=ee[1],se=(0,i.Z)(a.useState(!1),2),ie=se[0],ce=se[1],re=(0,i.Z)(a.useState(null),2),ae=re[0],oe=re[1],de=function(){var e=(0,s.Z)((function(e,t){return(0,c.__generator)(this,(function(n){switch(n.label){case 0:return ie?[2]:(ce(!0),oe(t.cart_id),[4,A(t.cart_id,t.product_id,e,[],t.name)]);case 1:return n.sent(),setTimeout((function(){ce(!1),oe(null)}),300),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}();return E.initializing?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(d(),{children:[(0,r.jsx)("title",{children:null===O||void 0===O||null===(n=O.header)||void 0===n?void 0:n.name}),(0,r.jsx)("meta",{name:"description",content:"Zoomserie"}),(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,r.jsx)(l.Z,{isCartPage:!0}),(0,r.jsx)("main",{className:"checkout-page-cont",children:E.products_total>0&&L?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Z,{isModalOpen:D,setModalOpen:K,selectedProduct:W,setSelectedProduct:$,isEditedProduct:te,location:Z,address:null,deliveryType:null===O||void 0===O||null===(o=O.logged_user)||void 0===o?void 0:o.shipping_method,texts:Z.texts,furnizor_id:H}),(0,r.jsx)(x.Z,{isOpen:G,setOpen:J,afterLoginRedirect:function(){J(!1),setTimeout((function(){U(!0)}),300)}}),(0,r.jsx)(v.Z,{isOpen:R,setOpen:U,furnizor_id:H}),(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{className:"checkout-page-title-cont mb-3",children:(0,r.jsx)("h4",{className:"ms-2",children:Z.texts.text_shopping_cart})}),(0,r.jsx)("hr",{className:"checkout-page-header-separator mb-4"}),(0,r.jsx)("div",{className:"col",children:(0,r.jsxs)("div",{className:"row row-half d-flex justify-content-center",children:[(0,r.jsxs)("div",{className:"col checkout-delivery-option-mobile",children:[(0,r.jsx)("div",{className:"checkout-heading-title-cont mb-2",children:(0,r.jsxs)("div",{className:"ms-2 checkout-heading-title checkout-heading-title-black",children:[null===Z||void 0===Z||null===(u=Z.texts)||void 0===u?void 0:u.text_sold_by.replace("Zoomserie","")," ",(0,r.jsxs)("span",{style:{color:"var(--secondary-color)"},children:["zoom",(0,r.jsx)("span",{style:{color:"var(--main-color)"},children:"serie"})]})," ",(0,r.jsx)("span",{className:"category-cart-card-text-location",children:null===L||void 0===L?void 0:L.name})]})}),(0,r.jsx)("div",{className:"generic-card-cont shadow-sm mb-4",children:(0,r.jsx)("div",{className:"p-3",children:null===L||void 0===L||null===(w=L.products)||void 0===w?void 0:w.map((function(e,t){var n,s,i,c=e.option.find((function(e){return["26","28"].includes(e.option_id)})),o=e.option.find((function(e){return"181"===e.option_value_id}));return c&&("26"===c.option_id?i=c.value:"28"!==c.option_id||o?"28"===c.option_id&&o&&(i=e.quantity):i=c.value),i||(i=e.quantity),(0,r.jsx)(a.Fragment,{children:(0,r.jsxs)("div",{className:"pt-2 pb-2",children:[(0,r.jsxs)("div",{className:"cart-page-main-product-cont",children:[(0,r.jsx)("div",{className:"product-card-main-img product-card-main-img-mobile-hidden",children:(0,r.jsx)("div",{className:"product-card-cont-img",children:(0,r.jsx)(p.Z,{src:decodeURIComponent(Z.cdn_url+(e.thumb?e.thumb:Z.placeholder)),alt:"product-image",width:1e3,height:1e3,priority:!0,objectFit:"cover"})})}),(0,r.jsxs)("div",{className:"cart-page-product-info ms-3 cart-page-product-info-margin-mobile",children:[(0,r.jsxs)("div",{className:"category-cart-product-name-cont",children:[(0,r.jsxs)("div",{className:"category-cart-product-name",children:[e.name,e.option&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("ul",{className:"category-cart-product-options",children:e.option.map((function(e,t){return(0,r.jsxs)("li",{children:[e.name,": ",e.value]},t)}))})})]}),(0,r.jsx)("div",{className:"category-cart-product-price",children:e.price})]}),!parseInt(e.lumanare)&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"category-cart-product-btn-cont mb-2",children:[(0,r.jsx)("div",{className:"mt-2 category-cart-product-delete me-1",onClick:function(){Y(e.cart_id,e.name)},children:null===Z||void 0===Z||null===(n=Z.texts)||void 0===n?void 0:n.button_delete}),e.option.find((function(e){return"26"!==e.option_id}))&&(0,r.jsx)("div",{className:"mt-2 category-cart-product-edit ms-1",onClick:function(){$(e),ne(!0),setTimeout((function(){K(!0)}),100)},children:null===Z||void 0===Z||null===(s=Z.texts)||void 0===s?void 0:s.button_edit}),(0,r.jsxs)("div",{className:"modal-product-option-increase-wrapper",children:[(0,r.jsx)("button",{type:"button",className:"modal-product-option-increase-btn",disabled:ae===e.cart_id||i<=1,onClick:function(){return de(-1,e)},children:"-"}),(0,r.jsx)("div",{children:i}),(0,r.jsx)("button",{type:"button",className:"modal-product-option-increase-btn modal-product-option-increase-pos-btn",disabled:ae===e.cart_id,onClick:function(){return de(1,e)},children:"+"})]})]})})]})]}),t!==L.products.length-1&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("hr",{className:"cart-page-main-product-separator"})})]})},t)}))})})]}),(0,r.jsx)("div",{className:"col-lg-5 col-12 checkout-delivery-option-mobile",children:(0,r.jsx)("div",{className:"checkout-page-aside-cont ms-3",children:(0,r.jsxs)("div",{className:"checkout-page-aside-card",children:[(0,r.jsx)("div",{className:"checkout-heading-title-cont mb-2",children:(0,r.jsx)("div",{className:"ms-2 checkout-heading-title",children:Z.texts.text_order_sumar})}),(0,r.jsx)("div",{className:"generic-card-cont p-3 shadow-sm",children:(0,r.jsx)("div",{className:"orders-card-price-cont",children:E.totals&&
1(0,r.jsx)("div",{className:"col-cart-totals",children:E.totals.map((function(e,t){return"total"!==e.code?"shipping"==e.code?e.text.includes("Cost manipulare")?(0,r.jsxs)("div",{className:"orders-card-price-shipping-title",children:[(0,r.jsx)("span",{className:"orders-card-price-title-text",children:e.title}),(0,r.jsx)("span",{className:"orders-card-price-shipping-text",dangerouslySetInnerHTML:{__html:e.text}})]},t):(0,r.jsxs)("div",{className:"orders-card-price-title",children:[(0,r.jsx)("span",{className:"orders-card-price-title-text",children:e.title}),(0,r.jsx)("span",{className:"text-right",dangerouslySetInnerHTML:{__html:e.text}})]},t):(0,r.jsxs)("div",{className:"orders-card-price-title",children:[(0,r.jsx)("span",{className:"orders-card-price-title-text",children:e.title}),(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}})]},t):(0,r.jsxs)("div",{className:"orders-card-price-title",children:[(0,r.jsx)("span",{className:"orders-card-price-title-text",children:e.title}),(0,r.jsx)("span",{className:"orders-card-price-title-text",dangerouslySetInnerHTML:{__html:e.text}})]},t)}))})})}),(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsxs)("div",{className:"checkout-main-btn w-100",onClick:function(){var e;(null===O||void 0===O||null===(e=O.logged_user)||void 0===e?void 0:e.logged)?U(!0):J(!0)},children:[Z.texts.button_continue,E.totals.map((function(e,t){return"total"==e.code?(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}},t):null}))]})})]})})})]})})]})})]}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"row justify-content-center",children:(0,r.jsx)("div",{className:"col-md-4 col-12",children:(0,r.jsxs)("div",{className:"mt-4 text-center",children:[(0,r.jsx)(y.G,{icon:k.Ycs,className:"cart-empty-cont-icon mb-4 mt-4 p-4"}),(0,r.jsx)("h1",{className:"medium-title mb-4",children:Z.heading_title}),(0,r.jsx)("div",{className:"heading-subtitle mb-4",children:Z.texts.text_no_products_in_cart}),(0,r.jsx)("div",{}),(0,r.jsx)(m(),{href:"/",children:(0,r.jsx)("a",{className:"btn landing-btn",children:Z.texts.text_continue_shopping})})]})})})})})}),(0,r.jsx)("div",{className:"main-footer-cont-bottom-diff"})]})}}},function(e){e.O(0,[4976,3996,5675,9603,2175,8699,4231,804,3264,1492,9510,3033,1904,7672,9966,5515,9774,2888,179],(function(){return t=97388,e(e.s=t);var t}));var t=e.O();_N_E=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.