1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[671],{30:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-pages/customer-ledger",function(){return r(1049)}])},5882:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(5893);r(7294);var i=r(7460),o=r(5119),l=r(2729),s=r(8806),a=r(6812);function u(){let e=(0,l._)(["\n query GetCheckoutTranslations {\n b2BMyPagesTranslations {\n key\n value\n }\n}\n "]);return u=function(){return e},e}let c={},d=(0,s.Ps)(u());var m=r(7866),v=r(1953),x=r(919),h=r(2385),g=r(2558),f=r(1065),y=r(9008),T=r.n(y);let _=e=>{var t;let{breadcrumbsLinks:r}=e,i=(0,g.nt)("myPages_common",["home"]),l=(0,g.nt)("myPages",v.hA),s=null!==(t=null==r?void 0:r.map(e=>{var t,r;return{...e,title:null!==(r=e.title)&&void 0!==r?r:l[null!==(t=e.titleTranslationKey)&&void 0!==t?t:""]}}))&&void 0!==t?t:[];return(0,n.jsx)(o.Oo,{links:[{id:"home",url:"/",title:i.home},...s]})},j=e=>{var t,r,l,s,u,v;let{headerQueryResult:g,footerQueryResult:y,translationsQueryResult:j,userData:p,reqData:k,useNavigation:C,breadcrumbsLinks:P,featureFlagsQueryResult:b,children:w}=e,R=(0,x.R)(null==k?void 0:k.headers),N=function(e){let t={...c};return a.a(d,t)}(),D=null===(t=N.data)||void 0===t?void 0:t.b2BMyPagesTranslations,L={...(null==j?void 0:null===(r=j.data)||void 0===r?void 0:r.translations)?(0,x.Mo)(null==j?void 0:null===(l=j.data)||void 0===l?void 0:l.translations):{},...(0,x.fV)("myPages",null!=D?D:[])},E=P[P.length-1]||null;return(0,n.jsxs)(i.iz,{featureFlagsProviderProps:{features:b},localesContextProviderProps:{localeCode:R,translations:L},userData:p,children:[(0,n.jsx)(T(),{children:(0,n.jsx)("title",{children:E.title||!!E.titleTranslationKey&&L["Website_myPages_".concat(E.titleTranslationKey)]||"Focus Nordic"})}),g&&(0,n.jsx)(h.h4,{headerQueryResult:g}),N.loading?(0,n.jsx)(h.aN,{minh:"100vh"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.kC,{backgroundColor:"white",w:1,justifyContent:"center",children:(0,n.jsx)(o.kC,{flex:1,maxw:f.c$,py:{_:1.5},px:2,children:(0,n.jsx)(_,{breadcrumbsLinks:P})})}),(0,n.jsx)(o.kC,{w:1,h:1,flexDirection:"column",alignItems:"center",backgroundColor:"grey-7",minh:f.cr,children:(0,n.jsx)(o.kC,{flexDirection:"column",alignItems:"center",w:1,maxw:f.c$,minh:f.cr,mt:{_:2,m:7},mb:{_:9,m:7},px:{_:0,m:2},overflow:"unset",children:(0,n.jsxs)(o.kC,{w:1,flex:1,alignItems:"flex-start",justifyContent:"flex-start",flexWrap:"wrap",flexDirection:{_:"column",xl:"row-reverse"},children:[C&&(0,n.jsx)(o.kC,{w:{_:1,xl:.25},mt:{_:0,xl:6},mb:{_:4,xl:0},flexDirection:"column",children:(0,n.jsx)(m.W,{customerName:null!==(v=null==p?void 0:null===(u=p.user)||void 0===u?void 0:null===(s=u.currentCustomer)||void 0===s?void 0:s.name)&&void 0!==v?v:""})}),(0,n.jsx)(o.kC,{w:{_:1,...C&&{xl:.75}},pr:{_:0,xl:C?4:0},flexDirection:"column",flex:1,children:w})]})})})]}),y&&(0,n.jsx)(h.$_,{footerQueryResult:y})]})};var p=e=>{let{headerQueryResult:t,footerQueryResult:r,translationsQueryResult:i,userData:o,reqData:l,useNavigation:s,isFirstServerCall:a,routes:u,customerName:c,breadcrumbsLinks:d,featureFlagsQueryResult:m,children:v}=e,{headerResult:x,footerResult:h,translationsResult:f,userResult:y,featureFlagsResult:T}=(0,g.Vi)({isFirstServerCall:a,headerQueryResult:t,footerQueryResult:r,translationsQueryResult:i,userData:o,featureFlagsQueryResult:m});return(0,n.jsx)(j,{headerQueryResult:x,footerQueryResult:h,translationsQueryResult:f,userData:null!=y?y:{},reqData:l,useNavigation:s,routes:u,customerName:c,breadcrumbsLinks:d,featureFlagsQueryResult:T,children:v})}},7866:function(e,t,r){"use strict";r.d(t,{W:function(){return m},s:function(){return l}});var n=r(5893),i=r(7294),o=r(5119);let l=e=>(0,n.jsx)(o.kC,{flex:1,w:1,p:{_:2,l:3},mb:{_:5,l:3},backgroundColor:"white",...e});l.Title=e=>(0,n.jsx)(o.xv,{variant:"headline-4",mb:1,ml:{_:2,l:0},...e}),l.Subtitle=e=>(0,n.jsx)(o.xv,{textColor:"grey-4",mb:2,ml:{_:2,l:0},...e});var s=r(1065),a=r(3053),u=r(1953),c=r(7460),d=r(1163);let m=e=>{let{customerName:t}=e,r=(0,a.nt)("myPages",u.hA),{localeCode:l}=i.useContext(c.Wy),m=(0,d.useRouter)(),v=i.useMemo(()=>(0,u.MR)(u.Hi,l),[l]);return(0,n.jsx)(o.$6,{children:(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(o.xv,{mb:0,py:1.25,px:1.5,fontSize:2.25,textColor:"black",children:t}),(0,n.jsx)("ul",{children:v.map(e=>{let t=m.pathname.startsWith("".concat(s.Ku,"/").concat(e.path));return(null==e?void 0:e.hideFromNavigation)?null:(0,n.jsx)(o.$6.Link,{href:"".concat(s.Ku,"/").concat(e.path),className:t?"active":"",children:(0,n.jsx)(o.xv,{as:"span",textColor:"black",children:r[e.titleTranslationKey]})},e.path)})})]})})}},1953:function(e,t,r){"use strict";r.d(t,{Hi:function(){return d},Kz:function(){return l},MR:function(){return v},P2:function(){return c},fF:function(){return i},fR:function(){return n},hA:function(){return m},v5:function(){return a},vj:function(){return o},wD:function(){return s},yn:function(){return u}});let n={titleTranslationKey:"checkout_checkoutTitle",path:"checkout",hideFromNavigation:!0},i={path:"customer-information",titleTranslationKey:"customerInformation_customerInformationPageTitle"},o={path:"customer-ledger",titleTranslationKey:"customerLedger_customerLedgerPageTitle"},l={path:"order-history",titleTranslationKey:"orderHistory_orderHistoryPageTitle"},s={path:"backorders-list",titleTranslationKey:"backordersList_backordersListPageTitle"},a={path:"tracking",titleTranslationKey:"orderTracking_orderTrackingPageTitle"}
1,u={path:"users",titleTranslationKey:"usersOverview_usersOverviewPageTitle"},c={path:"invoices-and-credit-memos",titleTranslationKey:"invoicesAndCreditMemos_invoicesAndCreditMemosPageTitle",excludedCultures:["ro-ro"]},d=[n,i,o,l,u,s,a,c],m=d.map(e=>e.titleTranslationKey),v=(e,t)=>e.filter(e=>{var r;return!(null===(r=e.excludedCultures)||void 0===r?void 0:r.includes(t))})},1049:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return k},default:function(){return C}});var n,i,o=r(5893),l=r(7294),s=r(5882),a=r(2729),u=r(8806),c=r(6812);function d(){let e=(0,a._)(["\n query GetCustomerStatistics {\n customerStatistics {\n currency\n customerIdentifier\n currentYearsTurnover\n previousYearsTurnover\n nextPreviousYearsTurnover\n invoicedAmount\n invoicedAmountDue\n }\n}\n "]);return d=function(){return e},e}let m={},v=(0,u.Ps)(d());var x=r(2558),h=r(7866),g=r(3990),f=r(5119),y=r(919),T=r(9469),_=r(7460);(n=i||(i={})).CURRENTYEARSTURNOVER="currentYearsTurnover",n.PREVIOUSYEARSTURNOVER="previousYearsTurnover",n.NEXTPREVIOUSYEARSTURNOVER="nextPreviousYearsTurnover",n.INVOICEDAMOUNT="invoicedAmount",n.INVOICEDAMOUNTDUE="invoicedAmountDue";let j=()=>{var e;let t=function(e){let t={...m};return c.a(v,t)}(),r=null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.customerStatistics,n=r?Object.entries(r).filter(e=>{let[t]=e;return!["__typename","customerIdentifier","currency"].includes(t)}).map((e,t)=>{let[n,i]=e;return{id:t,title:n,value:{netPrice:i,currency:r.currency}}}):[],{localeCode:i}=l.useContext(_.Wy),s=(0,x.nt)("myPages_customerLedger",["customerLedgerPageTitle","customerLedgerTurnover","customerLedgerBalance","customerLedgerBalanceDue"]),a=(0,x.nt)(x.gR.shared("Common"),["noRecordsMessage"]),u=(0,x.nt)(x.gR.shared("Cart"),["grossPrice","netPrice"]),d=[{cell:e=>{let t="",r=!1;switch(e.title){case"currentYearsTurnover":t="".concat(s.customerLedgerTurnover," ").concat(new Date().getFullYear());break;case"previousYearsTurnover":t="".concat(s.customerLedgerTurnover," ").concat(new Date().getFullYear()-1);break;case"nextPreviousYearsTurnover":t="".concat(s.customerLedgerTurnover," ").concat(new Date().getFullYear()-2);break;case"invoicedAmount":t=s.customerLedgerBalance,r=!0;break;case"invoicedAmountDue":t=s.customerLedgerBalanceDue,r=!0}return(0,o.jsxs)(f.kC,{flexDirection:"column",children:[(0,o.jsx)(f.xv,{textColor:"black",mb:0,fontSize:2,children:t}),(0,o.jsx)(f.xv,{as:"span",fontSize:1.5,lineHeight:2,mb:0,children:r?u.grossPrice:u.netPrice})]})},maxWidth:"325px"},{cell:e=>(0,o.jsx)(f.kC,{flex:2,size:2,alignItems:"center",justifyContent:{_:"flex-end",l:"flex-start"},children:(0,o.jsx)(f.xv,{fontSize:2,mb:0,children:e.value?0===e.value.netPrice?e.value.netPrice:(0,y.Ig)(e.value,i):""})}),grow:2}],j=[{when:e=>e.id%2==0,style:{backgroundColor:T.O9.white}},{when:e=>e.id%2!=0,style:{backgroundColor:T.O9["grey-7"]}}];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.s.Title,{children:s.customerLedgerPageTitle}),(0,o.jsx)(f.kC,{flexDirection:"column",py:1,px:2,mx:{_:1.25,s:0},backgroundColor:"white",children:(0,o.jsx)(f.iA,{columns:d,data:n,noRecordsMessage:a.noRecordsMessage,progressPending:t.loading,progressComponent:(0,o.jsx)(g.a,{minh:40}),noTableHead:!0,conditionalRowStyles:j})})]})};var p=r(1953),k=!0,C=e=>(0,o.jsx)(s.Z,{...e,useNavigation:!0,breadcrumbsLinks:[{id:p.vj.path,url:p.vj.path,titleTranslationKey:p.vj.titleTranslationKey}],children:(0,o.jsx)(j,{})})},9008:function(e,t,r){e.exports=r(3867)}},function(e){e.O(0,[510,483,888,774,179],function(){return e(e.s=30)}),_N_E=e.O()}]);
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.