PageSourceSearch

https://newbalance.cz/_next/static/chunks/363-779f6c8dd4a47038.js

js newbalance.cz collected 2026-10-03 22:11:39 UTC 10,464 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[363],{40363:function(e,r,n){n.d(r,{Z:function(){return Ze}});var t=n(47568),o=n(82670),s=n(26042),i=n(10253),c=n(97582),a=n(97997),u=n(11720),d=n(96245),l=n(31955),v=n(97165),m=n(51759),p=n(97802),f=n(681),g=n(19144),h=n(75706),y=n(16195),Z=n(69914),k=n(60657),w=n(33026),b=n(55877),C=n(40407),I=n(16813),_=n(8154),T=n(71482),O=n(87947),N=n(55082),P=n(16234),E=n(74103),A=n(4418),S=n(74335),q=n(3438),M=n(43904),L=n(74257),D=n(17792),B=n(72444),j=n(96182),F=n(78718),z=n(43129),X=n(27515),Q=n(13727),x=n(98541),G=n(3471),K=n(72421),U="\n    query ceneoOrderData($orderId: String!) {\n  ceneoOrderData(orderId: $orderId) {\n    canSendTrustedOpinion\n  }\n}\n    ",V=function(e,r){return(0,G.useQuery)(["ceneoOrderData",e],(0,K.r)(U,e),r)};V.getKey=function(e){return["ceneoOrderData",e]},V.fetcher=function(e,r){return(0,K.r)(U,e,r)};var $=n(69940),R=function(e){return e.filter((function(e){return e.type===$.yh.Regular})).map((function(e){var r=e.id,n=e.quantity;return Array.from({length:n},(function(){return"#".concat(r)}))})).flat().join("")},H=function(e,r){return V.fetcher({orderId:e},r?{authorization:r}:{})()};function W(e,r,n,t,o){return Y.apply(this,arguments)}function Y(){return(Y=(0,t.Z)((function(e,r,n,t,o){var s,i,a,u;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return[4,H(r,t)];case 1:return i=c.sent(),(null===(s=i.ceneoOrderData)||void 0===s?void 0:s.canSendTrustedOpinion)&&(a=R(n),window.ceneo_client_email=e,window.ceneo_order_id=r,window.ceneo_shop_product_ids=a,window.ceneo_work_days_to_send_questionnaire=o.workDaysToSendQuestionnaire,(u=document.createElement("script")).src="https://ssl.ceneo.pl/transactions/track/v2/script.js?accountGuid=".concat(o.customerId),document.head.appendChild(u)),[2]}}))}))).apply(this,arguments)}var J,ee=n(60810),re=function(e,r){var n=e.price,t=e.quantity;return{id:e.productId,price:null===n||void 0===n?void 0:n.gross,quantity:null!==r&&void 0!==r?r:t}},ne=function(e,r){var n,t=e.id,o=e.prices;return{id:t,price:null===o||void 0===o||null===(n=o.sellPrice)||void 0===n?void 0:n.gross,quantity:null!==r&&void 0!==r?r:1}},te=function(e,r){return e.map((function(e){return(0,ee.w)(e)?re(e,r):ne(e,r)}))},oe=n(972),se=function(e){return{transaction_id:e.idForPurchaser,value:e.priceToPay.gross,currency:e.priceToPay.currency,tax:Number((e.priceToPay.gross-e.priceToPay.nett).toFixed(2)),shipping:e.transportDiscountedPrice.gross,discount:e.discountPrice.gross,aw_merchant_id:parseInt(oe.googleAdsMerchantId),aw_feed_country:"PL",aw_feed_language:"PL"}},ie=n(99534),ce=n(92397),ae=n(26405);!function(e){e.Purchase="purchase"}(J||(J={}));var ue={purchase:function(e,r){!function(e,r){if(ce.jU){var n=r.items,t=(0,ie.Z)(r,["items"]);n.length>0&&(0,ae.lQ)((0,s.Z)({event:e,items:n},t))}}(J.Purchase,(0,s.Z)({items:te(r)},se(e)))}},de=n(53416),le=n(29815);function ve(e){return"string"===typeof e?[e]:Object.entries(e).reduce((function(e,r){var n,t=(0,i.Z)(r,2),o=(t[0],t[1]);return"string"===typeof o?(e.push(o),e):(n=e).concat.apply(n,(0,le.Z)(ve(o)))}),[])}var me=n(20833),pe=n(33659),fe=n.n(pe),ge=n(73754),he=n.n(ge),ye=function(){var e,r,n,F=(0,m.Z)("common").t,z=(0,O.ZP)(),G=(0,p.tv)(),K=(0,y.ON)(),U=(0,i.Z)((0,k.cF)(),2)[1],V=(0,N.zF)(),$=(0,de.t)("googleAdsMerchantId"),R=(0,P.Z)(),H=(0,Z.GY)(),Y=(0,y.lj)(),J=(0,i.Z)((0,k.CM)(),3),ee=J[0],re=J[1],ne=J[2],te=(0,_.k1)(void 0,{enabled:K.isLoggedIn}).data,oe=(0,Z.Lb)().actions.notificationAdd,se=(0,f.et)(),ie=se.requiresInvoiceInCart,ce=se.defaultInvoiceType,ae=se.placingOrderTopButtonAlwaysVisible,le=(0,C.Mg)(),pe=(0,C.si)(),ge=(0,C.QE)(),ye=(0,C.td)(),Ze=(0,C.Mp)(),ke=(0,C.ir)(),we=(0,j.X)().purchase,be=function(){var e=(0,f.et)().sendSyneriseNewsletterEventOnOrder;return{triggerSyneriseEvent:function(r,n){var t=null===n||void 0===n?void 0:n.filter((function(e){var n=e.id;return r.agreements&&r.agreements.includes(n)})),o=null===t||void 0===t?void 0:t.some((function(e){var r=e.type;return(0,h.r)(r)}));e&&o&&(0,g.$)(g.C.Newsletter,{email:r.contact.emailAddress,newsletterAgreement:"enabled"})}}}().triggerSyneriseEvent,Ce=(0,X.yD)(),Ie=(0,me.V)().mutateAsync,_e=(0,I.oU)().mutateAsync,Te=(0,u.useState)(!1),Oe=Te[0],Ne=Te[1],Pe=(0,u.useState)({}),Ee=Pe[0],Ae=Pe[1],Se=(0,u.useState)(),qe=Se[0],Me=Se[1],Le=(0,u.useState)(),De=Le[0],Be=Le[1],je=(0,u.useMemo)((function(){return null===ee||void 0===ee?void 0:ee.id}),[null===ee||void 0===ee?void 0:ee.id]),Fe=(0,u.useMemo)((function(){return K.countryCode||(null!==(n=null===Y||void 0===Y?void 0:Y.country.code)&&void 0!==n?n:"pl")}),[K.countryCode,Y]),ze=(0,u.useMemo)((function(){if(K.isLoggedIn&&(null===te||void 0===te?void 0:te.customer))return(0,C._2)(te.customer,Fe);var e=(0,E.Kk)(A.K,!0);return e||void 0}),[K.isLoggedIn,null===te||void 0===te?void 0:te.customer,Fe]),Xe=null===H||void 0===H||null===(e=H.plugins)||void 0===e?void 0:e.ceneo,Qe=(0,u.useCallback)(function(){var e=(0,t.Z)((function(e){var r,n,t,s,i,a,u,m,p,f,g,h,y,Z,k,_,O,N,P,E,A,S,q;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:if(Oe||!je)return[2];if(Ne(!0),!(n=qe))return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),t=null===V||void 0===V?void 0:V.getCookie("orderAccessCode"),[4,T.OT.fetcher({uuid:n,customerHash:t})()];case 2:return(s=c.sent())&&(r=s.order),[3,4];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:n=b.v4(),Me(n),c.label=6;case 6:e=(0,C.q7)(e,Fe),c.label=7;case 7:return c.trys.push([7,28,,39]),r?[3,14]:[4,le(De)];case 8:return c.sent(),a=!1,u=(0,C.FP)(e,ie,ce),De||K.isLoggedIn?[3,10]:[4,pe(e)];case 9:(i=c.sent())&&(Be(i.accessToken.token),!a&&e.wantsCreateAccount&&((0,B.Z)(F("registration-from")),K.actions.customerLogin({accessToken:i.accessToken,refreshToken:i.refreshToken},!1)),a=i.confirmationRequired),c.label=10;case 10:return K.isLoggedIn&&(null===te||void 0===te?void 0:te.customer)?[4,Promise.all([ye(te.customer,e),Ze(te.customer,e),ke(te.customer.agreements,e.agreements)])]:[3,12];case 11:c.sent(),c.label=12;case 12:return[4,ge(je,u,n,null!==(m=null===i||void 0===i?void 0:i.accessToken.token)&&void 0!==m?m:De)];case 13:r=c.sent(),c.label=14;case 14:return r?(p=r.uuid,[4,Ce(r)]):[3,27];case 15:return c.sent(),ee&&we(null!==(g=null===te||void 0===te||null===(f=te.customer)||void 0===f?void 0:f.user.email)&&void 0!==g?g:"",ee),(0,B.Z)(F("place-order-from")),null===V||void 0===V||V.setCo
1okie("orderId",p),r.accessCode&&(null===V||void 0===V||V.setCookie("orderAccessCode",r.accessCode)),(null===Xe||void 0===Xe?void 0:Xe.isActive)?[4,W(r.contactData.email,r.id,r.items,null===i||void 0===i?void 0:i.accessToken.token,Xe)]:[3,17];case 16:c.sent(),c.label=17;case 17:return(null===ee||void 0===ee?void 0:ee.items)&&x.Z.purchase(r,ee.items),(null===ee||void 0===ee?void 0:ee.items)&&$&&ue.purchase(r,ee.items),(null===ee||void 0===ee?void 0:ee.clickAndCollect)?(y=null!==(h=null===i||void 0===i?void 0:i.accessToken.token)&&void 0!==h?h:De,Z=y?{authorization:y}:void 0,[4,I.Uu.fetcher({cartId:je},Z)()]):[3,20];case 18:return k=c.sent(),[4,ne(k.completeClickAndCollect.cart)];case 19:return c.sent(),[3,22];case 20:return[4,_e({cartId:je})];case 21:c.sent(),U(null),c.label=22;case 22:return be(e,R),[4,ne(null)];case 23:return c.sent(),r.isPaid?[4,G.push("/checkout/".concat(w.bN.Confirmation,"?status=paymentSuccess"))]:[3,25];case 24:return c.sent(),[3,27];case 25:return _=r.accessCode?"/checkout/".concat(w.bN.Payment,"/").concat(p,"/").concat(r.accessCode):"/checkout/".concat(w.bN.Payment,"/").concat(p),[4,G.push(_)];case 26:c.sent(),c.label=27;case 27:return[3,39];case 28:if(O=c.sent(),Ne(!1),E=(0,d.Z)(null!==(P=l.Z.get(v.cookieNames.accessToken))&&void 0!==P?P:""),A=E.data.customer,S=null===te||void 0===te||null===(N=te.customer)||void 0===N?void 0:N.user.id,(0,o.Z)(O,C.l9))return oe({type:"error",title:F("select-collection-point")}),(q=document.getElementById("collectionPoints"))&&(0,Q.Z)(q,{scrollMode:"if-needed",behavior:"smooth"}),[2];if(!(0,o.Z)(O,C.mt))return[3,33];c.label=29;case 29:return c.trys.push([29,31,,32]),[4,Ie({input:{message:O.message,name:"OrderCheckoutError",cause:{cartId:je,customerId:null!==S&&void 0!==S?S:A,orderId:n,messages:O.messages},tags:["OrderCheckoutError"]}})];case 30:return c.sent(),[3,32];case 31:return c.sent(),[3,32];case 32:return O.messages.forEach((function(e){oe({type:"error",title:e})})),[2];case 33:if(!(0,o.Z)(O,C.Ni))return[3,38];c.label=34;case 34:return c.trys.push([34,36,,37]),[4,Ie({input:{message:O.message,name:"CreateOrderError",cause:{cartId:je,customerId:null!==S&&void 0!==S?S:A,orderId:n,messages:O.messages},tags:["CreateOrderError"]}})];case 35:return c.sent(),[3,37];case 36:return c.sent(),[3,37];case 37:return ve(O.messages).forEach((function(e){oe({type:"error",title:e})})),[2];case 38:if((0,o.Z)(O,C.GN))throw Ae(O.messages),O.messages;if(O&&"object"===typeof O&&O.constructor===Object)throw O;return oe({type:"error",title:F("error-occurred-during-place-an-order")}),[2];case 39:return[2]}}
1))}));return function(r){return e.apply(this,arguments)}}(),[je,Oe,De,Fe,K.isLoggedIn,null===te||void 0===te?void 0:te.customer,ee,Xe,R]);return(0,u.useEffect)((function(){re||ee||G.replace("/cart")}),[]),(0,a.BX)("div",{className:fe().wrapper,children:[(0,a.BX)("h3",{className:fe().heading,children:[F("delivery-data")," ",(0,a.tZ)("span",{children:F("required")})]}),(0,a.tZ)(q.Z,{onSubmit:Qe,defaultValues:ze,mode:"all",children:(0,a.BX)("div",{className:he().container,children:[(0,a.tZ)("div",{className:he().wrapper,children:(0,a.tZ)(A.Z,{loading:Oe,rawErrors:Ee})}),(0,a.tZ)("div",{className:he().stickyWrapper,children:(0,a.BX)("div",{className:he().stickyBox,children:[K.isLoggedIn||ae?(0,a.tZ)(M.Z,{className:fe().placeAnOrderTop,loading:Oe}):null,(0,a.tZ)(S.Z,{showMiniCart:!0,showSelectedFinalizationOptions:!0,showCheckoutButton:!1}),(null===z||void 0===z?void 0:z.lg)?null:(0,a.tZ)(L.Z,{}),(0,a.tZ)(M.Z,{withBackButton:!0,className:fe().placeAnOrderMobile,loading:Oe}),(null===z||void 0===z?void 0:z.lg)?null:(0,a.tZ)(D.Z,{estimatedDeliveryTime:(0,s.Z)({},null===ee||void 0===ee||null===(r=ee.finalizationOption)||void 0===r?void 0:r.estimatedDeliveryTime),className:fe().deliveryTime})]})})]})})]})};ye.Layout=F.Z,ye.Metadata=z.Z,ye.pagePath="/checkout/shipping";var Ze=(0,Z.TM)(ye)},75706:function(e,r,n){n.d(r,{r:function(){return o}});var t=n(69940),o=function(e){return e===t.qE.Newsletter||e===t.qE.Spam||e===t.qE.Opineo||e===t.qE.PhoneSpam}}}]);

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.