1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[259],{5882:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(5893);n(7294);var i=n(7460),l=n(5119),o=n(2729),a=n(8806),u=n(6812);function s(){let e=(0,o._)(["\n query GetCheckoutTranslations {\n b2BMyPagesTranslations {\n key\n value\n }\n}\n "]);return s=function(){return e},e}let c={},d=(0,a.Ps)(s());var m=n(7866),v=n(1953),h=n(919),x=n(2385),f=n(2558),y=n(1065),p=n(9008),g=n.n(p);let k=e=>{var t;let{breadcrumbsLinks:n}=e,i=(0,f.nt)("myPages_common",["home"]),o=(0,f.nt)("myPages",v.hA),a=null!==(t=null==n?void 0:n.map(e=>{var t,n;return{...e,title:null!==(n=e.title)&&void 0!==n?n:o[null!==(t=e.titleTranslationKey)&&void 0!==t?t:""]}}))&&void 0!==t?t:[];return(0,r.jsx)(l.Oo,{links:[{id:"home",url:"/",title:i.home},...a]})},j=e=>{var t,n,o,a,s,v;let{headerQueryResult:f,footerQueryResult:p,translationsQueryResult:j,userData:_,reqData:b,useNavigation:C,breadcrumbsLinks:T,featureFlagsQueryResult:P,children:w}=e,K=(0,h.R)(null==b?void 0:b.headers),R=function(e){let t={...c};return u.a(d,t)}(),D=null===(t=R.data)||void 0===t?void 0:t.b2BMyPagesTranslations,N={...(null==j?void 0:null===(n=j.data)||void 0===n?void 0:n.translations)?(0,h.Mo)(null==j?void 0:null===(o=j.data)||void 0===o?void 0:o.translations):{},...(0,h.fV)("myPages",null!=D?D:[])},F=T[T.length-1]||null;return(0,r.jsxs)(i.iz,{featureFlagsProviderProps:{features:P},localesContextProviderProps:{localeCode:K,translations:N},userData:_,children:[(0,r.jsx)(g(),{children:(0,r.jsx)("title",{children:F.title||!!F.titleTranslationKey&&N["Website_myPages_".concat(F.titleTranslationKey)]||"Focus Nordic"})}),f&&(0,r.jsx)(x.h4,{headerQueryResult:f}),R.loading?(0,r.jsx)(x.aN,{minh:"100vh"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.kC,{backgroundColor:"white",w:1,justifyContent:"center",children:(0,r.jsx)(l.kC,{flex:1,maxw:y.c$,py:{_:1.5},px:2,children:(0,r.jsx)(k,{breadcrumbsLinks:T})})}),(0,r.jsx)(l.kC,{w:1,h:1,flexDirection:"column",alignItems:"center",backgroundColor:"grey-7",minh:y.cr,children:(0,r.jsx)(l.kC,{flexDirection:"column",alignItems:"center",w:1,maxw:y.c$,minh:y.cr,mt:{_:2,m:7},mb:{_:9,m:7},px:{_:0,m:2},overflow:"unset",children:(0,r.jsxs)(l.kC,{w:1,flex:1,alignItems:"flex-start",justifyContent:"flex-start",flexWrap:"wrap",flexDirection:{_:"column",xl:"row-reverse"},children:[C&&(0,r.jsx)(l.kC,{w:{_:1,xl:.25},mt:{_:0,xl:6},mb:{_:4,xl:0},flexDirection:"column",children:(0,r.jsx)(m.W,{customerName:null!==(v=null==_?void 0:null===(s=_.user)||void 0===s?void 0:null===(a=s.currentCustomer)||void 0===a?void 0:a.name)&&void 0!==v?v:""})}),(0,r.jsx)(l.kC,{w:{_:1,...C&&{xl:.75}},pr:{_:0,xl:C?4:0},flexDirection:"column",flex:1,children:w})]})})})]}),p&&(0,r.jsx)(x.$_,{footerQueryResult:p})]})};var _=e=>{let{headerQueryResult:t,footerQueryResult:n,translationsQueryResult:i,userData:l,reqData:o,useNavigation:a,isFirstServerCall:u,routes:s,customerName:c,breadcrumbsLinks:d,featureFlagsQueryResult:m,children:v}=e,{headerResult:h,footerResult:x,translationsResult:y,userResult:p,featureFlagsResult:g}=(0,f.Vi)({isFirstServerCall:u,headerQueryResult:t,footerQueryResult:n,translationsQueryResult:i,userData:l,featureFlagsQueryResult:m});return(0,r.jsx)(j,{headerQueryResult:h,footerQueryResult:x,translationsQueryResult:y,userData:null!=p?p:{},reqData:o,useNavigation:a,routes:s,customerName:c,breadcrumbsLinks:d,featureFlagsQueryResult:g,children:v})}},7866:function(e,t,n){"use strict";n.d(t,{W:function(){return m},s:function(){return o}});var r=n(5893),i=n(7294),l=n(5119);let o=e=>(0,r.jsx)(l.kC,{flex:1,w:1,p:{_:2,l:3},mb:{_:5,l:3},backgroundColor:"white",...e});o.Title=e=>(0,r.jsx)(l.xv,{variant:"headline-4",mb:1,ml:{_:2,l:0},...e}),o.Subtitle=e=>(0,r.jsx)(l.xv,{textColor:"grey-4",mb:2,ml:{_:2,l:0},...e});var a=n(1065),u=n(3053),s=n(1953),c=n(7460),d=n(1163);let m=e=>{let{customerName:t}=e,n=(0,u.nt)("myPages",s.hA),{localeCode:o}=i.useContext(c.Wy),m=(0,d.useRouter)(),v=i.useMemo(()=>(0,s.MR)(s.Hi,o),[o]);return(0,r.jsx)(l.$6,{children:(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(l.xv,{mb:0,py:1.25,px:1.5,fontSize:2.25,textColor:"black",children:t}),(0,r.jsx)("ul",{children:v.map(e=>{let t=m.pathname.startsWith("".concat(a.Ku,"/").concat(e.path));return(null==e?void 0:e.hideFromNavigation)?null:(0,r.jsx)(l.$6.Link,{href:"".concat(a.Ku,"/").concat(e.path),className:t?"active":"",children:(0,r.jsx)(l.xv,{as:"span",textColor:"black",children:n[e.titleTranslationKey]})},e.path)})})]})})}},1953:function(e,t,n){"use strict";n.d(t,{Hi:function(){return d},Kz:function(){return o},MR:function(){return v},P2:function(){return c},fF:function(){return i},fR:function(){return r},hA:function(){return m},v5:function(){return u},vj:function(){return l},wD:function(){return a},yn:function(){return s}});let r={titleTranslationKey:"checkout_checkoutTitle",path:"checkout",hideFromNavigation:!0},i={path:"customer-information",titleTranslationKey:"customerInformation_customerInformationPageTitle"},l={path:"customer-ledger",titleTranslationKey:"customerLedger_customerLedgerPageTitle"},o={path:"order-history",titleTranslationKey:"orderHistory_orderHistoryPageTitle"},a={path:"backorders-list",titleTranslationKey:"backordersList_backordersListPageTitle"},u={path:"tracking",titleTranslationKey:"orderTracking_orderTrackingPageTitle"}
1,s={path:"users",titleTranslationKey:"usersOverview_usersOverviewPageTitle"},c={path:"invoices-and-credit-memos",titleTranslationKey:"invoicesAndCreditMemos_invoicesAndCreditMemosPageTitle",excludedCultures:["ro-ro"]},d=[r,i,l,o,s,a,u,c],m=d.map(e=>e.titleTranslationKey),v=(e,t)=>e.filter(e=>{var n;return!(null===(n=e.excludedCultures)||void 0===n?void 0:n.includes(t))})},1659:function(e,t,n){"use strict";n.d(t,{d:function(){return i},s:function(){return l}});var r=n(9469);let i={color:r.O9["blue-6"],"&:hover":{cursor:"pointer",textDecoration:"underline"}},l={color:r.O9["blue-6"],"& a:hover":{cursor:"pointer",textDecoration:"underline"}}},9610:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(7294),i=n(1163),l=n(3279),o=n.n(l),a=n(1065),u=n(656);let s="searchQuery",c=(e,t)=>{var n,l;let c=(0,i.useRouter)(),[d,m]=(0,r.useState)(null!==(l=c.query[s])&&void 0!==l?l:"");r.useEffect(()=>{var e,t;(null===(e=c.query)||void 0===e?void 0:e[s])?m(null===(t=c.query)||void 0===t?void 0:t[s]):m("")},[null===(n=c.query)||void 0===n?void 0:n[s]]);let v=n=>{let r=n?"".concat(c.pathname,"?").concat(s,"=").concat(encodeURIComponent(n)):c.pathname;c.push(r),e({variables:{input:{...t&&{pagination:{skip:0,take:a.jK}},searchQuery:n}}})},h=(0,r.useRef)(o()(v,750,{leading:!1}));return(0,r.useEffect)(()=>{m(d),h.current(d)},[d]),{onSearch:v,onSubmit:e=>{e.preventDefault()},stateReducer:(e,t)=>{let{type:n}=t;return n===u.ZP.stateChangeTypes.blurInput?{...e,inputValue:e.inputValue}:e},searchValue:d,setSearchValue:m}}},9008:function(e,t,n){e.exports=n(3867)}}]);
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.