PageSourceSearch

https://newbalance.hu/_next/static/chunks/pages/customer/agreements-ce1ce1c2b752617b.js

js newbalance.hu collected 2026-10-05 19:49:08 UTC 10,129 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1905],{76239:function(e,n,t){"use strict";var r,i=t(11720);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a.apply(null,arguments)}n.Z=function(e){return i.createElement("svg",a({className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"#000"},e),r||(r=i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})))}},47538:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/agreements",function(){return t(49641)}])},84584:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var r=t(97997),i=(t(11720),t(51759)),a=t(55437),o=t(64897),s=t(4158),l=t.n(s),u=function(e){var n=e.last,t=e.item;return(0,r.BX)("li",{className:l().item,children:[t.url?(0,r.tZ)(o.Z,{href:t.url,"aria-current":n?"page":void 0,children:t.name}):t.name,n?null:(0,r.tZ)("span",{className:l().spacer,children:"/"})]})},d=t(69914),c=function(e){var n=e.items,t=e.wide,o=e.hideHomeAndCurrent,s=(0,i.Z)("common").t,c=(0,d.hp)(),m=n||c;return m?(0,r.tZ)(a.Z,{className:t?l().wide:void 0,children:(0,r.tZ)("nav",{"aria-label":"Breadcrumb",className:l().root,children:(0,r.tZ)("ol",{className:l().list,children:o?m.slice(0,-1).map((function(e,n){return(0,r.tZ)(u,{item:e,last:m.length-2===n},n)})):(0,r.BX)(r.HY,{children:[(0,r.tZ)(u,{item:{name:s("new-balance"),url:"/"}}),m.map((function(e,n){return(0,r.tZ)(u,{item:e,last:m.length-1===n},n)}))]})})})}):null}},47314:function(e,n,t){"use strict";var r=t(47568),i=t(14924),a=t(51351),o=t(97582),s=t(97997),l=t(11720),u=t(51759),d=t(94184),c=t.n(d),m=t(3471),h=t(19144),v=t(16195),f=t(39836),p=t(8154),Z=t(75706),g=t(55592),b=t(2745),w=t(29066),N=t(83664),y=t(25678),_=t(16388),B=t(69914),A=t(5979),C=t.n(A),k=function(e){var n=e.agreement,t=e.changeSelected,r=(0,l.useState)(n.isAssigned),a=r[0],o=r[1],u=(0,l.useCallback)((function(e,r){o(!!r);var i={id:n.id,isAssigned:!!r,type:n.type};t(i)}),[n.id]);return(0,s.tZ)(w.Z,{checked:a,onChange:u,disabled:!n.canBeUnsubscribed&&n.isAssigned,required:n.isRequired,"data-customer_agreement_symbol":n.id,"data-customer_agreement_is_required":n.isRequired,children:(0,s.tZ)(g.Z,{type:"html",Component:"span",className:c()((0,i.Z)({},C().disabled,!n.canBeUnsubscribed&&n.isAssigned)),children:n.label})})},I=function(e){e=null!==e?e:(0,a.Z)(new TypeError("Cannot destructure undefined"));var n,t,i,d,c,w,y,A,I=(0,u.Z)("common").t,X=(0,v.ON)(),x=(0,p.k1)(void 0,{enabled:X.isLoggedIn}).data,O=(0,f.PX)({names:["rodoInfo"]}).data,L=(0,f.PX)({names:["agreementsInfo"]}).data,R=null!==(y=null===x||void 0===x||null===(n=x.customer)||void 0===n?void 0:n.agreements)&&void 0!==y?y:[],T=null!==(A=null===x||void 0===x||null===(t=x.customer)||void 0===t?void 0:t.user.email)&&void 0!==A?A:"",j=(0,l.useMemo)((function(){var e;return null===O||void 0===O||null===(e=O.snippets)||void 0===e?void 0:e[0]}),[null===O||void 0===O?void 0:O.snippets]),E=(0,l.useMemo)((function(){var e;return null===L||void 0===L||null===(e=L.snippets)||void 0===e?void 0:e[0]}),[null===L||void 0===L?void 0:L.snippets]),P=(0,p.OZ)().mutateAsync,q=(0,m.useQueryClient)(),U=(0,B.Lb)(),D=(0,l.useCallback)(function(){var e=(0,r.Z)((function(e){var n,t;return(0,o.__generator)(this,(function(r){switch(r.label){case 0:if(!R.length)return[3,4];n=R.map((function(n){var t=n.id,r=n.isAssigned;return{id:t,isAssigned:t===e.id?e.isAssigned:r}})),(0,Z.r)(e.type)&&e.isAssigned&&(0,h.$)(h.C.Newsletter,{email:T,newsletterAgreement:"enabled"}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,P({agreements:n})];case 2:return r.sent(),q.setQueryData(p.k1.getKey(),(function(e){var t;return(null===e||void 0===e||null===(t=e.customer)||void 0===t?void 0:t.agreements)?(n.forEach((function(n){var t,r=n.id,i=n.isAssigned;if(null===e||void 0===e||null===(t=e.customer)||void 0===t?void 0:t.agreements){var a,o=null===(a=e.customer.agreements)||void 0===a?void 0:a.find((function(e){return e&&e.id===r}));o&&(o.isAssigned=i)}})),e):{}})),!e.isAssigned&&T&&(0,Z.r)(e.type)&&(0,h.$)(h.C.NewsletterUnsubscribe,{email:T,newsletterAgreement:"disabled"}),U.actions.notificationAdd({title:I("agreements-saved")}),[3,4];case 3:return t=r.sent(),(0,_.wx)(t)&&t.length>0&&U.actions.notificationAdd({title:t[0].message,type:"error"}),[3,4];case 4:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),[R,T]);return(0,s.BX)(N.Z,{children:[(null===j||void 0===j?void 0:j.content)?(0,s.tZ)("div",{className:C().rodoContainer,children:(0,s.tZ)(b.Z,{maxHeight:65,isOpened:!0,className:C().rodoWrapper,showIcons:!0,children:(0,s.tZ)(g.Z,{type:"html",className:C().rodo,children:j.content})})}):null,(0,s.BX)("div",{className:C().root,children:[(0,s.tZ)("span",{className:C().header,children:I("terms-of-purchase-info")}),null===x||void 0===x||null===(i=x.customer)||void 0===i||null===(d=i.agreements)||void 0===d?void 0:d.map((function(e){return e.isRequired?(0,s.tZ)(k,{agreement:e,changeSelected:D},e.id):null})),(0,s.tZ)("span",{className:C().header,children:I("additional-terms-of-purchase")}),null===x||void 0===x||null===(c=x.customer)||void 0===c||null===(w=c.agreements)||void 0===w?void 0:w.map((function(e){return e.isRequired?null:(0,s.tZ)(k,{agreement:e,changeSelected:D},e.id)})),(null===E||void 0===E?void 0:E.content)?(0,s.BX)(s.HY,{children:[(0,s.tZ)("span",{className:C().header,children:E.title}),(0,s.tZ)(g.Z,{type:"html",className:C().info,children:E.content})]}):null]})]})};I.Metadata=y.Z,I.pagePath="/customer/agreements",n.Z=I},47418:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});var r=t(14924),i=t(51351),a=t(97997),o=t(11720),s=t(94184),l=t.n(s),u=t(51759),d=t(97802),c=t(76239),m=t(16195),h=t(37517),v=t(8154),f=t(64897),p=t(97431),Z=t(10084),g=t(38348),b=t(10722),w=t(72694),N=t.n(w),y=function(e){var n=e.beforeIcon,t=e.children,i=e.href,s=e.onClick,u=(0,d.tv)(),m=(0,o.useMemo)((function(){return"string"===typeof i&&u.pathname.includes(i)}),[u.pathname,i]);return(0,a.tZ)("li",{className:l()(N().menuItem,(0,r.Z)({},N().menuItemActive,m)),"data-qa-customer_menu_item":i,children:(0,a.BX)(f.Z,{href:i,onClick:s,children:[(0,a.BX)("span",{children:[n?(0,a.tZ)(p.Z,{src:n,layout:"fixed",width:"auto",alt:"",height:"auto",className:N().listIcon}):null,t]}),(0,a.tZ)(g.Z,{content:c.Z,className:N().menuItemArrow})]})})},_=function(e){e=null!==e?e:(0,i.Z)(new TypeError("Cannot destructure undefined"));var n,t=(0,u.Z)("common").t,r=(0,m.ON)(),s=(0,v.nW)(void 0,{enabled:r.isLoggedIn}).data,l=(0,v.k1)(void 0,{enabled:r.isLoggedIn}).data,c=(0,d.tv)(),f=(0,o.useCallback)((function(){r.actions.customerLogout(),c.push("/")}),[]),p=(0,o.useMemo)((function(){var e;return(null!==(e=null===s||void 0===s?void 0:s.features)&&void 0!==e?e:[]).includes(h.Te.LoyaltyCard)}),[null===s||void 0===s?void 0:s.features]),g=(0,o.useMemo)((function(){var e;return(null!==(e=null===s||void 0===s?void 0:s.features)&&void 0!==e?e:[]).includes(h.Te.Rga)}),[null===s||void 0===s?void 0:s.features]),w=(0,b.mz)(g);return(0,a.BX)("div",{className:N().root,children:[(0,a.BX)("ul",{className:N().menu,children:[(0,a.tZ)("li",{className:N().welcome,"data-qa-customer_menu_welcome":!0,children:(0,a.BX)("span",{children:[t("welcome")," ",null===l||void 0===l||null===(n=l.customer)||void 0===n?void 0:n.user.firstName,"!"]})}),(0,a.tZ)(y,{href:"/customer/change-data",children:t("my-data")}),(0,a.tZ)(y,{href:"/customer/change-password",children:t("change-password")}),(0,a.tZ)(y,{href:"/customer/addresses",children:t("my-addresses")}),(0,a.tZ)(y,{href:"/customer/orders",children:t("my-orders")}),g&&w.length>0?(0,a.tZ)(y,{href:"/customer/rga-advanced",children:t((0,b.EA)(w))}):null,p?(0,a.tZ)(y,{href:"/customer/club",children:t("spartavity")}):null,(0,a.tZ)(y,{href:"/repository",children:t("wishlist")}),(0,a.tZ)(y,{href:"/customer/reviews",children:t("reviews")}),(0,a.tZ)(y,{href:"/customer/agreements",children:t("terms-and-conditions")}),(0,a.tZ)(y,{href:"/customer/delete-account",children:t("delete-account")})]}),(0,a.tZ)("div",{className:N().actions,children:(0,a.tZ)(Z.Z,{variant:"tertiary",size:"large",width:"full",onClick:f,"data-customer_log_out_button":!0,children:t("logout")})})]})}},42421:function(e,n,t){"use strict";var r=t(97997),i=(t(11720),t(79535)),a=t(55437),o=t(5925),s={container:""};n.Z=function(e){var n=e.children,t=e.withoutContainer,l=e.withoutBreadcrumbs,u=e.wideBreadcrumbs,d=e.classNames,c=(0,o.Yd)(s,d);return(0,r.BX)(r.HY,{children:[l?null:(0,r.tZ)(i.Z,{wide:u}),t?n:(0,r.tZ)(a.Z,{classNames:{container:c.container},children:n})]})}},4455:function(e,n,t){"use strict";t.d(n,{Z:function(){return r.Z}});var r=t(42421)},49641:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return a}});var r=t(97248),i=t(3723),a=!0;n.default=(0,i.v)(r.Z)},4158:function(e){e.exports={root:"Ra1rCJpETr",wide:"tgdgj0ucOh",list:"_6XviIua45a",item:"azPTPOgXBL",spacer:"So-arPZct1"}},5979:function(e){e.exports={root:"MwqLD8zrbB",rodo:"KK4BVB3L-U",disabled:"_8t4uccT8re",rodoContainer:"hJDNWXs0pt",rodoWrapper:"FUypUjypwh",header:"qoz-g0iMCd",info:"FLEvKb2m0R"}},72694:function(e){e.exports={root:"o07XhPg0dK",actions:"_6nNpUC8Gy-",menu:"_5LNNI2dR3B",menuItem:"t2FSYIO3aX",menuItemActive:"l5BOaT2wr5",welcome:"Sm9JZAU0d6",menuItemArrow:"_89Vd58v607"}},1314:function(e){e.exports={root:"Mzs2rnRnad",wrapper:"_1raEyfIlrl",actions:"_0I3Ok5VDN4",content:"kxKlVs-j4y",headerText:"wrb9UyZ-Ck",backArrow:"gDDZajFD8b",header:"RFIT33kBoQ"}},87679:function(e){e.exports={label:"fj7vqDV5NJ",input:"QBbUTTRoyY",inputLarge:"Kbmx7opiSa",labelContent:"_0BP-hsR-AR",contentFlex:"gHJB8Da8nT",required:"KoSu8-BjSk"}},71685:function(e){e.exports={error:"x6xb0bOU7P"}},58428:function(e){e.exports={root:"FHhfCbDDj1",header:"_1OzfYrhi7C",styled:"BkdtKLsYza",prose:"OomjeyZi9B","md:prose":"ka53bRpuGD",headerWrapper:"I3-mjpAmUK"}},71359:function(e){e.exports={action:"RYU8-qP0jl",wrapper:"F63exmaAjv"}}},function(e){e.O(0,[2263,9294,9774,2888,179],(function(){return n=47538,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.