PageSourceSearch

https://newbalance.cz/_next/static/chunks/pages/customer/rga-advanced-9a4901646466babc.js

js newbalance.cz collected 2026-10-03 22:13:14 UTC 17,057 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9438],{76239:function(e,t,n){"use strict";var a,r=n(11720);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(null,arguments)}t.Z=function(e){return r.createElement("svg",i({className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"#000"},e),a||(a=r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})))}},96036:function(e){e.exports=function(){"use strict";return function(e,t,n){var a=t.prototype,r=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,a,i){var o=e.name?e:e.$locale(),c=r(o[t]),l=r(o[n]),d=c||l.map((function(e){return e.slice(0,a)}));if(!i)return d;var u=o.weekStart;return d.map((function(e,t){return d[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},c=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return c(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return c(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(o(),"months")},n.monthsShort=function(){return i(o(),"monthsShort","months",3)},n.weekdays=function(e){return i(o(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(o(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(o(),"weekdaysMin","weekdays",2,e)}}}()},19944:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/rga-advanced",function(){return n(98663)}])},84584:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(97997),r=(n(11720),n(51759)),i=n(55437),o=n(64897),c=n(4158),l=n.n(c),d=function(e){var t=e.last,n=e.item;return(0,a.BX)("li",{className:l().item,children:[n.url?(0,a.tZ)(o.Z,{href:n.url,"aria-current":t?"page":void 0,children:n.name}):n.name,t?null:(0,a.tZ)("span",{className:l().spacer,children:"/"})]})},u=n(69914),s=function(e){var t=e.items,n=e.wide,o=e.hideHomeAndCurrent,c=(0,r.Z)("common").t,s=(0,u.hp)(),m=t||s;return m?(0,a.tZ)(i.Z,{className:n?l().wide:void 0,children:(0,a.tZ)("nav",{"aria-label":"Breadcrumb",className:l().root,children:(0,a.tZ)("ol",{className:l().list,children:o?m.slice(0,-1).map((function(e,t){return(0,a.tZ)(d,{item:e,last:m.length-2===t},t)})):(0,a.BX)(a.HY,{children:[(0,a.tZ)(d,{item:{name:c("new-balance"),url:"/"}}),m.map((function(e,t){return(0,a.tZ)(d,{item:e,last:m.length-1===t},t)}))]})})})}):null}},47418:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var a=n(14924),r=n(51351),i=n(97997),o=n(11720),c=n(94184),l=n.n(c),d=n(51759),u=n(97802),s=n(76239),m=n(16195),h=n(37517),v=n(8154),f=n(64897),Z=n(97431),p=n(10084),N=n(38348),g=n(10722),w=n(72694),k=n.n(w),y=function(e){var t=e.beforeIcon,n=e.children,r=e.href,c=e.onClick,d=(0,u.tv)(),m=(0,o.useMemo)((function(){return"string"===typeof r&&d.pathname.includes(r)}),[d.pathname,r]);return(0,i.tZ)("li",{className:l()(k().menuItem,(0,a.Z)({},k().menuItemActive,m)),"data-qa-customer_menu_item":r,children:(0,i.BX)(f.Z,{href:r,onClick:c,children:[(0,i.BX)("span",{children:[t?(0,i.tZ)(Z.Z,{src:t,layout:"fixed",width:"auto",alt:"",height:"auto",className:k().listIcon}):null,n]}),(0,i.tZ)(N.Z,{content:s.Z,className:k().menuItemArrow})]})})},b=function(e){e=null!==e?e:(0,r.Z)(new TypeError("Cannot destructure undefined"));var t,n=(0,d.Z)("common").t,a=(0,m.ON)(),c=(0,v.nW)(void 0,{enabled:a.isLoggedIn}).data,l=(0,v.k1)(void 0,{enabled:a.isLoggedIn}).data,s=(0,u.tv)(),f=(0,o.useCallback)((function(){a.actions.customerLogout(),s.push("/")}),[]),Z=(0,o.useMemo)((function(){var e;return(null!==(e=null===c||void 0===c?void 0:c.features)&&void 0!==e?e:[]).includes(h.Te.LoyaltyCard)}),[null===c||void 0===c?void 0:c.features]),N=(0,o.useMemo)((function(){var e;return(null!==(e=null===c||void 0===c?void 0:c.features)&&void 0!==e?e:[]).includes(h.Te.Rga)}),[null===c||void 0===c?void 0:c.features]),w=(0,g.mz)(N);return(0,i.BX)("div",{className:k().root,children:[(0,i.BX)("ul",{className:k().menu,children:[(0,i.tZ)("li",{className:k().welcome,"data-qa-customer_menu_welcome":!0,children:(0,i.BX)("span",{children:[n("welcome")," ",null===l||void 0===l||null===(t=l.customer)||void 0===t?void 0:t.user.firstName,"!"]})}),(0,i.tZ)(y,{href:"/customer/change-data",children:n("my-data")}),(0,i.tZ)(y,{href:"/customer/change-password",children:n("change-password")}),(0,i.tZ)(y,{href:"/customer/addresses",children:n("my-addresses")}),(0,i.tZ)(y,{href:"/customer/orders",children:n("my-orders")}),N&&w.length>0?(0,i.tZ)(y,{href:"/customer/rga-advanced",children:n((0,g.EA)(w))}):null,Z?(0,i.tZ)(y,{href:"/customer/club",children:n("spartavity")}):null,(0,i.tZ)(y,{href:"/repository",children:n("wishlist")}),(0,i.tZ)(y,{href:"/customer/reviews",children:n("reviews")}),(0,i.tZ)(y,{href:"/customer/agreements",children:n("terms-and-conditions")}),(0,i.tZ)(y,{href:"/customer/delete-account",children:n("delete-account")}
1)]}),(0,i.tZ)("div",{className:k().actions,children:(0,i.tZ)(p.Z,{variant:"tertiary",size:"large",width:"full",onClick:f,"data-customer_log_out_button":!0,children:n("logout")})})]})}},42421:function(e,t,n){"use strict";var a=n(97997),r=(n(11720),n(79535)),i=n(55437),o=n(5925),c={container:""};t.Z=function(e){var t=e.children,n=e.withoutContainer,l=e.withoutBreadcrumbs,d=e.wideBreadcrumbs,u=e.classNames,s=(0,o.Yd)(c,u);return(0,a.BX)(a.HY,{children:[l?null:(0,a.tZ)(r.Z,{wide:d}),n?t:(0,a.tZ)(i.Z,{classNames:{container:s.container},children:t})]})}},4455:function(e,t,n){"use strict";n.d(t,{Z:function(){return a.Z}});var a=n(42421)},98663:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return D},default:function(){return O}});var a=n(97997),r=n(11720),i=n(51759),o=n(83664),c=n(10084),l=n(14924),d=n(94184),u=n.n(d),s=n(15414),m=n(58999),h=n(10722),v=n(98368),f=n(87947),Z=n(64897),p=n(38348),N=n(97431),g=n(97385),w=n(21357),k=n(14964),y=n(55584),b=n.n(y);var B=function(e){var t,n,o,c,d,s=e.rga,m=(0,i.Z)("rga").t,h=(0,f.ZP)(),y=(0,v.GY)(),B=null!==(o=null===y||void 0===y||null===(t=y.language)||void 0===t?void 0:t.code)&&void 0!==o?o:"pl",C=s.behaviour.type,X=(0,r.useMemo)((function(){return s.items.slice(0,(null===h||void 0===h?void 0:h.xl)?3:2)}),[s.items,null===h||void 0===h?void 0:h.xl]),_=s.items.length-X.length;return(0,a.BX)("div",{className:b().root,"data-qa-rga-list-item":s.id,children:[(0,a.BX)("div",{className:b().header,children:[(0,a.BX)("h4",{children:[m(C)," ",s.individualNumber," ",(0,a.tZ)("small",{children:m("common:item-count",{count:s.items.length})})]}),(0,a.BX)("div",{className:b().headerStatus,children:[(0,a.tZ)("div",{className:b().headerStatusTitle,children:m("common:order-status")}),(0,a.tZ)("div",{className:u()(b().headerStatusValue,(0,l.Z)({},b().stateReject,s.state.isRejectable)),children:s.state.name})]}),s.orderUuid?(0,a.BX)(Z.Z,{className:b().headerLink,href:"/customer/orders/".concat(s.orderUuid),"data-qa-rga-order-link":s.orderUuid,children:[(0,a.tZ)("span",{children:m("order-link")}),(0,a.tZ)(p.Z,{content:p.c.arrow,className:b().headerLinkIcon})]}):null]}),(0,a.BX)("div",{className:b().content,children:[(0,a.BX)("div",{className:b().metadata,children:[(0,a.BX)("div",{className:b().metadataBlock,children:[(0,a.tZ)("div",{className:b().metadataBlockTitle,children:m("rga-date.".concat(C))}),(0,a.tZ)("div",{className:b().metadataBlockValue,children:s.createdAt?(0,a.tZ)(g.Z,{date:new Date(s.createdAt)}):null})]}),(0,a.BX)("div",{className:b().metadataBlock,children:[(0,a.tZ)("div",{className:b().metadataBlockTitle,children:m("transport")}),(0,a.tZ)("div",{className:b().metadataBlockValue,children:s.transport.name})]}),(0,a.BX)("div",{className:b().metadataBlock,children:[(0,a.tZ)("div",{className:b().metadataBlockTitle,children:m("total-value")}),(0,a.tZ)("div",{className:b().metadataBlockValue,children:(0,a.tZ)(w.Z,{value:null!==(c=null===(n=s.totalPrice)||void 0===n?void 0:n.gross)&&void 0!==c?c:0})})]})]}),(0,a.BX)("div",{className:b().products,children:[X.map((function(e){return(0,a.BX)("div",{className:b().product,children:[(0,a.tZ)("div",{className:b().productImage,children:e.picture?(0,a.tZ)(N.Z,{src:e.picture,alt:null!==(d=e.productName)&&void 0!==d?d:"",layout:"fill",objectFit:"contain",objectPosition:"center"}):null}),(0,a.tZ)("div",{className:b().productName,children:e.productName})]},e.id)})),_>0?(0,a.tZ)("div",{className:b().more,children:(0,a.BX)("span",{children:["+",_," ",m("common:more")]})}):null]}),(0,a.tZ)("div",{className:b().actions,children:(0,a.tZ)(k.U,{rgaId:s.id,hash:s.hash,filename:s.individualNumber,languageCode:B,variant:"link"})})]})]})},C=n(70027),X=n(43514),_=n.n(X);var S=function(e){var t,n,o,c,d,v,f=e.activeType,Z=e.onTypeChange,p=(0,i.Z)("rga").t,N=(0,h.mz)(),g=N.includes(m.Y.Return),w=N.includes(m.Y.Complaint),k=(0,s.H)({type:m.Y.Return},{enabled:g}),y=(0,s.H)({type:m.Y.Complaint},{enabled:w}),b=null!==(d=null===(t=k.data)||void 0===t||null===(n=t.rgasAdvanced)||void 0===n?void 0:n.items)&&void 0!==d?d:[],X=null!==(v=null===(o=y.data)||void 0===o||null===(c=o.rgasAdvanced)||void 0===c?void 0:c.items)&&void 0!==v?v:[],S=f===m.Y.Complaint?X:b,M=!f||(f===m.Y.Complaint?y.isLoading:k.isLoading),Y=(0,r.useCallback)((function(){return Z(m.Y.Return)}),[Z]),A=(0,r.useCallback)((function(){return Z(m.Y.Complaint)}),[Z]);return(0,a.BX)("div",{className:_().wrapper,children:[N.length>1?(0,a.BX)("div",{className:_().tabs,role:"tablist",children:[(0,a.BX)("button",{type:"button",role:"tab","aria-selected":f===m.Y.Return,className:u()(_().tab,(0,l.Z)({},_().tabActive,f===m.Y.Return)),onClick:Y,"data-qa-rga-tab":"return",children:[p("tabs.return")," ",(0,a.BX)("span",{className:_().tabCount,children:["(",b.length,")"]})]}),(0,a.BX)("button",{type:"button",role:"tab","aria-selected":f===m.Y.Complaint,className:u()(_().tab,(0,l.Z)({},_().tabActive,f===m.Y.Complaint)),onClick:A,"data-qa-rga-tab":"complaint",children:[p("tabs.complaint")," ",(0,a.BX)("span",{className:_().tabCount,children:["(",X.length,")"]})]})]}):null,M?(0,a.tZ)("p",{className:_().empty,children:(0,a.tZ)(C.Z,{})}):S.length>0?(0,a.tZ)("div",{children:S.map((function(e){return(0,a.tZ)(B,{rga:e},e.id)}))}):(0,a.tZ)("p",{className:_().empty,"data-qa-rga-empty":!0,children:p("not-found.".concat(f))})]})},M=n(67579),Y=function(){var e=(0,i.Z)("rga").t,t=(0,h.mz)(),n=(0,r.useState)(null),l=n[0],d=n[1],u=l&&t.includes(l)?l:t[0],s=u?(0,a.tZ)(c.Z,{href:"/rga-advanced/".concat(u,"/orders"),size:"small","data-qa-rga-create":"",children:e("create-action.".concat(u))}):null;return(0,a.tZ)(o.Z,{action:s,children:(0,a.tZ)(S,{activeType:u,onTypeChange:d})})};Y.Metadata=function(){var e,t=(0,i.Z)("rga").t,n=(0,h.mz)(),r=n.length>1?"return-complaint":null!==(e=n[0])&&void 0!==e?e:"return";return(0,a.tZ)(M.Z,{breadcrumbs:[{name:t("my.".concat(r)),url:"/customer/rga-advanced"}]})},Y.pagePath="/customer/rga-advanced";var A=Y,I=n(3723),D=!0,O=(0,I.v)(A)},79535:function(e,t,n){"use strict";n.d(t,{Z:function(){return a.Z}});var a=n(84584)},67579:function(e,t,n){"use strict";var a=n(26042),r=n(69396),i=n(99534),o=n(29815),c=n(97997),l=n(11720),d=n(15199),u=n(51759),s=n(31323);t.Z=function(e){var t=e.title,n=e.breadcrumbs,m=(0,i.Z)(e,["title","breadcrumbs"]),h=(0,u.Z)("common").t;(0,s.Z)();var v=(0,l.useMemo)((function(){var e=[{name:"".concat(h("my-account")),url:"/customer"}].concat((0,o.Z)(null!==n&&void 0!==n?n:[]));return[(0,o.Z)(e).reverse().map((function(e){return e.name})).join(" - "),e]}),[t,n]),f=v[0],Z=v[1];return(0,c.tZ)(d.Z,(0,r.Z)((0,a.Z)({},m),{title:null!==t&&void 0!==t?t:f,breadcrumbs:Z}))}},75943:function(e,t,n){"use strict";var a=n(97997),r=(n(11720),n(16195)),i=n(87947),o=n(4455),c=n(45603),l=n(38348),d=n(64897),u=n(47418),s=n(1314),m=n.n(s),h=n(69914),v=function(e){var t=e.header,n=e.back;return(0,a.BX)("div",{className:m().header,children:[n?(0,a.tZ)(d.Z,{href:n,children:(0,a.tZ)(l.Z,{content:l.c.arrow,className:m().backArrow,"aria-label":"Go back"})}):null,(0,a.tZ)("div",{className:m().headerText,children:t})]})},f={root:m().wrapper};t.Z=function(e){var t=e.children,n=e.action,l=e.withoutHeader,d=(0,i.dD)(),s=(0,h.hp)();return(0,r.ON)(!0),(0,a.tZ)(o.Z,{withoutBreadcrumbs:!!(d||s&&1===s.length),children:(0,a.BX)("div",{className:m().root,children:[d?(0,a.tZ)(v,{header:s&&s[s.length-1].name,back:s&&s.length>1?s[s.length-2].url:void 0}):null,d&&t?null:(0,a.tZ)(u.Z,{}),t?(0,a.BX)(c.Z,{header:d||l?void 0:s&&s[s.length-1].name,classNames:f,action:d?void 0:n,children:[d&&n?(0,a.tZ)("div",{className:m().actions,children:n}):null,(0,a.tZ)("div",{className:m().content,children:t})]}):null]})})}},83664:function(e,t,n){"use strict";n.d(t,{Z:function(){return a.Z}});var a=n(75943)},10722:function(e,t,n){"use strict";n.d(t,{EA:function(){return c},mz:function(){return l}});var a=n(15414),r=n(58999),i=[r.Y.Return,r.Y.Complaint];function o(e){var t=new Set((null!==e&&void 0!==e?e:[]).map((function(e){return e.type})));return i.filter((function(e){return t.has(e)}))}function c(e){var t=e.includes(r.Y.Return),n=e.includes(r.Y.Complaint);return t&&n?"my-returns-and-complaints":n?"my-complaints":"my-returns"}function l(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=(0,a.t8)(void 0,{enabled:e}).data;return o(null===t||void 0===t?void 0:t.rgaAdvancedBehaviours)}},97385:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(97997),r=(n(11720),n(27484)),i=n.n(r),o=n(96036),c=n.n(o);i().extend(c());var l=function(e){var t,n=e.date,r=e.Component,o=void 0===r?"span":r,c=e.className,l=e.format;try{t=i().localeData().longDateFormat("L")}catch(d){t="DD.MM.YYYY"}return(0,a.tZ)(o,{className:c,children:i()(n).format(null!==l&&void 0!==l?l:t)})}},45603:function(e,t,n){"use strict";var a=n(97997),r=(n(11720),n(5925)),i=n(58428),o=n.n(i),c={root:o().root,headerWrapper:o().headerWrapper,header:o().header,styled:o().styled};t.Z=function(e){var t=e.header,n=e.classNames,i=e.children,o=e.contentStyling,l=e.action,d=(0,r.Yd)(c,n);return(0,a.BX)("div",{className:d.root,children:[(0,a.BX)("div",{className:d.headerWrapper,children:[t&&(0,a.tZ)("h1",{"data-qa-info_header":!0,className:d.header,children:t})," ",null!==l&&void 0!==l?l:null]}),o?(0,a.tZ)("div",{className:d.styled,children:i}):i]})}},3723:function(e,t,n){"use strict";n.d(t,{v:function(){return l}});var a,r=n(11720),i=n(8679),o=n.n(i),c=n(62522),l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null!==(a=e.displayName)&&void 0!==a?a:e.name,i=function(t){return(0,c.ON)(!0),e(t)};i.displayName="withLoggedCustomer(".concat(n,")");var l=!1===t?i:(0,r.memo)(i,t);return o()(l,e)}},55584:function(e){e.exports={root:"i8ksqilpR4",header:"HEiFA9bLly",headerStatus:"ZNt0--2A25",headerStatusTitle:"aIvcr56A-q",headerStatusValue:"
1XGwE0wE7D5",stateReject:"Ie7BnReK9d",headerLink:"tbF2bEUv0N",headerLinkIcon:"_2bBU8mUWaH",content:"_4PETAjHnip",metadata:"YFeYPy215c",metadataBlock:"k3wHDGmn9T",metadataBlockTitle:"_9ceZd3WAWr",metadataBlockValue:"zaczHAUZfb",products:"I5wV80smvx",product:"_1ZMoVphmdi",productImage:"J-qZOaIlu1",productName:"_8dqvZt1LyU",more:"vHwZuJjCvm",actions:"N0lNHqAHVd"}},43514:function(e){e.exports={wrapper:"bCQy0d6Ex6",tabs:"Dp25ZtkyU3",tab:"a9qSzSCdO7",tabActive:"aow3SoH1Oa",tabCount:"J-hnGKOW2o",empty:"FLpOODC1-w"}},4158:function(e){e.exports={root:"Ra1rCJpETr",wide:"tgdgj0ucOh",list:"_6XviIua45a",item:"azPTPOgXBL",spacer:"So-arPZct1"}},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"}},58428:function(e){e.exports={root:"FHhfCbDDj1",header:"_1OzfYrhi7C",styled:"BkdtKLsYza",prose:"OomjeyZi9B","md:prose":"ka53bRpuGD",headerWrapper:"I3-mjpAmUK"}}},function(e){e.O(0,[5861,9294,9774,2888,179],(function(){return t=19944,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.