1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1286],{29324:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/settings",function(){return r(97715)}])},84584:function(e,n,r){"use strict";r.d(n,{Z:function(){return d}});var t=r(97997),a=(r(11720),r(51759)),i=r(55437),l=r(64897),o=r(4158),u=r.n(o),c=function(e){var n=e.last,r=e.item;return(0,t.BX)("li",{className:u().item,children:[r.url?(0,t.tZ)(l.Z,{href:r.url,"aria-current":n?"page":void 0,children:r.name}):r.name,n?null:(0,t.tZ)("span",{className:u().spacer,children:"/"})]})},s=r(69914),d=function(e){var n=e.items,r=e.wide,l=e.hideHomeAndCurrent,o=(0,a.Z)("common").t,d=(0,s.hp)(),f=n||d;return f?(0,t.tZ)(i.Z,{className:r?u().wide:void 0,children:(0,t.tZ)("nav",{"aria-label":"Breadcrumb",className:u().root,children:(0,t.tZ)("ol",{className:u().list,children:l?f.slice(0,-1).map((function(e,n){return(0,t.tZ)(c,{item:e,last:f.length-2===n},n)})):(0,t.BX)(t.HY,{children:[(0,t.tZ)(c,{item:{name:o("new-balance"),url:"/"}}),f.map((function(e,n){return(0,t.tZ)(c,{item:e,last:f.length-1===n},n)}))]})})})}):null}},42421:function(e,n,r){"use strict";var t=r(97997),a=(r(11720),r(79535)),i=r(55437),l=r(5925),o={container:""};n.Z=function(e){var n=e.children,r=e.withoutContainer,u=e.withoutBreadcrumbs,c=e.wideBreadcrumbs,s=e.classNames,d=(0,l.Yd)(o,s);return(0,t.BX)(t.HY,{children:[u?null:(0,t.tZ)(a.Z,{wide:c}),r?n:(0,t.tZ)(i.Z,{classNames:{container:d.container},children:n})]})}},4455:function(e,n,r){"use strict";r.d(n,{Z:function(){return t.Z}});var t=r(42421)},97715:function(e,n,r){"use strict";r.r(n),r.d(n,{__N_SSP:function(){return p},default:function(){return b}});var t=r(26042),a=r(69396),i=r(97997),l=r(11720),o=r(51759),u=r(45603),c=r(4455),s=r(16195),d=r(15199),f=r(31323),m=function(){var e=(0,o.Z)("common").t;return(0,f.Z)(),(0,i.tZ)(d.Z,{title:e("settings"),breadcrumbs:[{name:e("Customer"),url:"/customer"},{name:e("settings"),url:"/customer/settings"}]})},v=r(10084),Z=r(16610),g=r(40109),h=function(){var e=(0,o.Z)("common").t,n=(0,s.lj)(),r=(0,s.ON)().actions,d=(0,l.useState)({currencyCode:null===n||void 0===n?void 0:n.currency.code,languageCode:null===n||void 0===n?void 0:n.language.code}),f=d[0],m=d[1];(0,l.useEffect)((function(){m({currencyCode:null===n||void 0===n?void 0:n.currency.code,languageCode:null===n||void 0===n?void 0:n.language.code})}),[n]);var h=(0,l.useMemo)((function(){var e,r;return{currencies:null!==(e=null===n||void 0===n?void 0:n.country.currencies.map((function(e){return{value:e.code,label:e.name}})))&&void 0!==e?e:[],languages:null!==(r=null===n||void 0===n?void 0:n.country.languages.map((function(e){return{value:e.code,label:e.name}})))&&void 0!==r?r:[],changeLanguage:function(e){m((function(n){return(0,a.Z)((0,t.Z)({},n),{languageCode:e})}))},changeCurrency:function(e){m((function(n){return(0,a.Z)((0,t.Z)({},n),{currencyCode:e})}))}}}),[null===n||void 0===n?void 0:n.country.currencies]),p=h.languages,b=h.currencies,y=h.changeLanguage,N=h.changeCurrency,C=(0,l.useCallback)((function(){r.changeCountrySettings(f),window.location.reload()}),[f]);return(0,i.tZ)(c.Z,{children:(0,i.tZ)(u.Z,{header:e("settings"),children:(0,i.BX)(g.C3,{children:[(0,i.tZ)(Z.ZP,{label:e("select-language"),options:p,id:"lang",value:f.languageCode,onChange:y}),(0,i.tZ)(Z.ZP,{label:e("select-currency"),options:b,id:"currency",value:f.currencyCode,onChange:N}),(0,i.tZ)(v.Z,{type:"submit",onClick:C,children:e("save")})]})})})};h.Metadata=m,h.pagePath="/customer/settings";var p=!0,b=h},79535:function(e,n,r){"use strict";r.d(n,{Z:function(){return t.Z}});var t=r(84584)},432:function(e,n,r){"use strict";r.d(n,{i:function(){return s}});var t=r(97997),a=r(11720),i=r(51759),l=r(71685),o=r.n(l),u=r(94184),c=r.n(u),s=function(e,n){var r=null!==e&&void 0!==e?e:n;return r?"".concat(r,"-error"):void 0};n.Z=function(e){var n,r=e.error,l=e.className,u=e.id,s=(0,i.Z)("common").t,d=(0,a.useMemo)((function(){return r&&"string"!==typeof r?{max:s("error-max"),min:s("error-min"),required:s("error-required"),pattern:s("error-pattern"),minLength:s("error-min-length",{count:r.ref&&"minLength"in r.ref?r.ref.minLength:null}),maxLength:s("error-max-length",{count:r.ref&&"maxLength"in r.ref?r.ref.maxLength:null})}:{}}),[r]);return r?"string"===typeof r?(0,t.tZ)("div",{"data-qa-error":!0,id:u,role:"alert",className:c()(o().error,l),children:r}):(0,t.BX)("div",{"data-qa-error":!0,id:u,role:"alert",className:c()(o().error,l),children:[null!==(n=d[r.type])&&void 0!==n?n:null,"manual"===r.type||"validate"===r.type?r.message:null]}):null}},40109:function(e,n,r){"use strict";r.d(n,{Zg:function(){return Z},C3:function(){return f},kI:function(){return m},t4:function(){return v}});var t=r(14924),a=r(26042),i=r(69396),l=r(99534),o=r(97997),u=(r(11720),r(94184)),c=r.n(u),s=r(63695),d=r.
1n(s),f=function(e){var n=e.variant,r=(0,l.Z)(e,["variant"]);return(0,o.tZ)("fieldset",(0,i.Z)((0,a.Z)({},r),{className:c()(d().fieldset,(0,t.Z)({},d().fieldsetFull,"full"===n),r.className)}))},m=function(e){return(0,o.tZ)("p",(0,i.Z)((0,a.Z)({},e),{className:c()(d().info,e.className)}))},v=function(e){return(0,o.tZ)("p",(0,i.Z)((0,a.Z)({},e),{className:c()(d().inputs,e.className)}))},Z=function(e){var n=e.variant,r=(0,l.Z)(e,["variant"]);return(0,o.tZ)("div",(0,i.Z)((0,a.Z)({},r),{className:c()(d().buttons,(0,t.Z)({},d().variantDouble,"double"===n),r.className)}))}},45603:function(e,n,r){"use strict";var t=r(97997),a=(r(11720),r(5925)),i=r(58428),l=r.n(i),o={root:l().root,headerWrapper:l().headerWrapper,header:l().header,styled:l().styled};n.Z=function(e){var n=e.header,r=e.classNames,i=e.children,l=e.contentStyling,u=e.action,c=(0,a.Yd)(o,r);return(0,t.BX)("div",{className:c.root,children:[(0,t.BX)("div",{className:c.headerWrapper,children:[n&&(0,t.tZ)("h1",{"data-qa-info_header":!0,className:c.header,children:n})," ",null!==u&&void 0!==u?u:null]}),l?(0,t.tZ)("div",{className:c.styled,children:i}):i]})}},16610:function(e,n,r){"use strict";r.d(n,{ZP:function(){return p},pt:function(){return m},l_:function(){return v}});var t=r(14924),a=r(26042),i=r(69396),l=r(99534),o=r(97997),u=r(11720),c=r(5925),s=r(71722),d=r.n(s),f=r(432),m={root:d().root,label:d().label,input:d().input,large:d().large,secondary:d().secondary,tertiary:d().tertiary,inputError:d().inputError,floatingLabel:d().floatingLabel,floating:d().floating};function v(e){return"".concat(e.value)}function Z(e){return"".concat(e.label)}function g(e,n){var r,s=e.classNames,d=(e.children,e.onChange),g=e.id,h=e.options,p=void 0===h?[]:h,b=e.label,y=e.getOptionLabel,N=e.getOptionValue,C=e.value,L=e.floatingLabel,_=e.size,w=e.error,B=e.variant,x=void 0===B?"primary":B,E=(0,l.Z)(e,["classNames","children","onChange","id","options","label","getOptionLabel","getOptionValue","value","floatingLabel","size","error","variant"]),P=(0,c.Yd)(m,s),X=w?(0,f.i)(g,E.name):void 0,O=null!==N&&void 0!==N?N:v,Y=null!==y&&void 0!==y?y:Z,k=(0,u.useCallback)((function(e){d&&d(e.target.value,p.find((function(n){return O(n)===e.target.value})))}),[d,O,p]);return(0,o.tZ)(o.HY,{children:(0,o.BX)("div",{className:P.root,children:[!L&&b?(0,o.tZ)("label",{htmlFor:g,className:P.label,children:b}):null,(0,o.tZ)("select",(0,i.Z)((0,a.Z)({id:g,className:(0,c.ZP)(P.input,(r={},(0,t.Z)(r,P.large,"large"===_),(0,t.Z)(r,P.secondary,"secondary"===x),(0,t.Z)(r,P.tertiary,"tertiary"===x),(0,t.Z)(r,P.inputError,!!w),r)),onChange:k},E),{value:C,ref:n,"aria-describedby":null!==X&&void 0!==X?X:E["aria-describedby"],"aria-invalid":w?"true":E["aria-invalid"],children:p.map((function(e){var n=O(e),r=Y(e),t="".concat(g,"-").concat(n);return(0,o.tZ)("option",{value:n,children:r},t)}))})),L&&b?(0,o.tZ)("label",{htmlFor:g,className:(0,c.ZP)(P.floatingLabel,(0,t.Z)({},P.floating,C)),children:b}):null,w?(0,o.tZ)(f.Z,{error:w,id:X}):null]})})}var h=(0,u.forwardRef)(g);h.displayName="Select";var p=h},63695:function(e){e.exports={info:"_2gqiFvUyUt",fieldset:"yof80Y-o6s",buttons:"TLZBZmPYdE",variantDouble:"KYevCyy3Zg",inputs:"RFXVLohqTR",fieldsetFull:"VyyW5BhX2Q"}},4158:function(e){e.exports={root:"Ra1rCJpETr",wide:"tgdgj0ucOh",list:"_6XviIua45a",item:"azPTPOgXBL",spacer:"So-arPZct1"}},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"}},71722:function(e){e.exports={root:"luHQ0JLoFc",label:"DHI9me3SHG",input:"QvQ2aOKqLS",secondary:"TyzZygB1xW",large:"EeIMbd-RaD",floatingLabel:"zTIFx9hdEm",floating:"ZtYp2gu37i",inputError:"wTxZSf-6V4"}}},function(e){e.O(0,[9294,9774,2888,179],(function(){return n=29324,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.