1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2193],{76239:function(e,t,n){"use strict";var r,a=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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}t.Z=function(e){return a.createElement("svg",i({className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"#000"},e),r||(r=a.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 r=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var o=e.name?e:e.$locale(),c=a(o[t]),s=a(o[n]),u=c||s.map((function(e){return e.slice(0,r)}));if(!i)return u;var d=o.weekStart;return u.map((function(e,t){return u[(t+(d||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()])},s=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}};r.localeData=function(){return s.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)}}}()},80521:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/trade-documents/show/[id]",function(){return n(21002)}])},84584:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(97997),a=(n(11720),n(51759)),i=n(55437),o=n(64897),c=n(4158),s=n.n(c),u=function(e){var t=e.last,n=e.item;return(0,r.BX)("li",{className:s().item,children:[n.url?(0,r.tZ)(o.Z,{href:n.url,"aria-current":t?"page":void 0,children:n.name}):n.name,t?null:(0,r.tZ)("span",{className:s().spacer,children:"/"})]})},d=n(69914),l=function(e){var t=e.items,n=e.wide,o=e.hideHomeAndCurrent,c=(0,a.Z)("common").t,l=(0,d.hp)(),h=t||l;return h?(0,r.tZ)(i.Z,{className:n?s().wide:void 0,children:(0,r.tZ)("nav",{"aria-label":"Breadcrumb",className:s().root,children:(0,r.tZ)("ol",{className:s().list,children:o?h.slice(0,-1).map((function(e,t){return(0,r.tZ)(u,{item:e,last:h.length-2===t},t)})):(0,r.BX)(r.HY,{children:[(0,r.tZ)(u,{item:{name:c("new-balance"),url:"/"}}),h.map((function(e,t){return(0,r.tZ)(u,{item:e,last:h.length-1===t},t)}))]})})})}):null}},47418:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(14924),a=n(51351),i=n(97997),o=n(11720),c=n(94184),s=n.n(c),u=n(51759),d=n(97802),l=n(76239),h=n(16195),m=n(37517),f=n(8154),v=n(64897),Z=n(97431),p=n(10084),w=n(38348),y=n(10722),g=n(72694),k=n.n(g),N=function(e){var t=e.beforeIcon,n=e.children,a=e.href,c=e.onClick,u=(0,d.tv)(),h=(0,o.useMemo)((function(){return"string"===typeof a&&u.pathname.includes(a)}),[u.pathname,a]);return(0,i.tZ)("li",{className:s()(k().menuItem,(0,r.Z)({},k().menuItemActive,h)),"data-qa-customer_menu_item":a,children:(0,i.BX)(v.Z,{href:a,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)(w.Z,{content:l.Z,className:k().menuItemArrow})]})})},B=function(e){e=null!==e?e:(0,a.Z)(new TypeError("Cannot destructure undefined"));var t,n=(0,u.Z)("common").t,r=(0,h.ON)(),c=(0,f.nW)(void 0,{enabled:r.isLoggedIn}).data,s=(0,f.k1)(void 0,{enabled:r.isLoggedIn}).data,l=(0,d.tv)(),v=(0,o.useCallback)((function(){r.actions.customerLogout(),l.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(m.Te.LoyaltyCard)}),[null===c||void 0===c?void 0:c.features]),w=(0,o.useMemo)((function(){var e;return(null!==(e=null===c||void 0===c?void 0:c.features)&&void 0!==e?e:[]).includes(m.Te.Rga)}),[null===c||void 0===c?void 0:c.features]),g=(0,y.mz)(w);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===s||void 0===s||null===(t=s.customer)||void 0===t?void 0:t.user.firstName,"!"]})}),(0,i.tZ)(N,{href:"/customer/change-data",children:n("my-data")}),(0,i.tZ)(N,{href:"/customer/change-password",children:n("change-password")}),(0,i.tZ)(N,{href:"/customer/addresses",children:n("my-addresses")}),(0,i.tZ)(N,{href:"/customer/orders",children:n("my-orders")}),w&&g.length>0?(0,i.tZ)(N,{href:"/customer/rga-advanced",children:n((0,y.EA)(g))}):null,Z?(0,i.tZ)(N,{href:"/customer/club",children:n("spartavity")}):null,(0,i.tZ)(N,{href:"/repository",children:n("wishlist")}),(0,i.tZ)(N,{href:"/customer/reviews",children:n("reviews")}),(0,i.tZ)(N,{href:"/customer/agreements",children:n("terms-and-conditions")}),(0,i.tZ)(N,{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:v,"data-customer_log_out_button":!0,children:n("logout")})})]})}},42421:function(e,t,n){"use strict";var r=n(97997),a=(n(11720),n(79535)),i=n(55437),o=n(5925),c={container:""};t.Z=function(e){var t=e.children,n=e.withoutContainer,s=e.withoutBreadcrumbs,u=e.wideBreadcrumbs,d=e.classNames,l=(0,o.Yd)(c,d);return(0,r.BX)(r.HY,{children:[s?null:(0,r.tZ)(a.Z,{wide:u}),n?t:(0,r.tZ)(i.Z,{classNames:{container:l.container},children:t})]})}},4455:function(e,t,n){"use strict";n.d(t,{Z:function(){return r.Z}});var r=n(42421)},21002:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return y},default:function(){return g}});var r=n(3723),a=n(97997),i=n(11720),o=n(51759),c=n(8917),s=n(83664),u=n(97802),d=n(67579),l=function(){var e=(0,o.Z)("customer").t,t=(0,u.tv)();if("string"!==typeof t.query.id)throw new Error("Invalid id");var n=(0,c._4)({id:t.query.id}).data;return n?(0,a.tZ)(d.Z,{breadcrumbs:[{name:e("trade-documents"),url:"/customer/trade-documents/"},{name:"".concat(e("trade-document")," ").concat(n.tradeDocument.documentNumber)}]}):null},h=n(38272),m=n(11573),f=n.n(m),v=n(97385),Z=n(43968),p=n(21357),w=function(){var e,t,n=(0,u.tv)(),r=n.query,d=n.push;if("string"!==typeof r.id)throw new Error("Invalid id");var l=(0,c._4)({id:r.id}),m=l.data,w=l.isLoading,y=null===m||void 0===m?void 0:m.tradeDocument,g=(0,o.Z)("customer").t;return(0,i.useEffect)((function(){w||y||d("/customer/trade-documents").catch((function(){}))}),[w,y]),(0,a.tZ)(s.Z,{children:y?(0,a.BX)("div",{className:f().container,children:[(0,a.BX)("span",{children:[g("date-of-issue")," ",(0,a.tZ)(v.Z,{date:1e3*+y.documentDate})]}),(0,a.BX)("span",{children:[g("counterparty-id")," ",y.contractorSourceId]}),y.agencySourceId?(0,a.BX)("span",{children:[g("outpost-id")," ",y.agencySourceId]}):null,(null===(e=y.trackingCodes)||void 0===e?void 0:e.length)?(0,a.BX)("span",{children:[g("tracking"),": ",y.trackingCodes.join(", ")]}):null,(0,a.BX)(Z.Z,{className:f().table,children:[(0,a.tZ)("thead",{children:(0,a.BX)("tr",{children:[(0,a.tZ)("th",{children:g("lp")}),(0,a.tZ)("th",{children:g("product-name")}),(0,a.tZ)("th",{children:g("quantity")}),(0,a.tZ)("th",{children:g("nett-price")}),(0,a.tZ)("th",{children:g("vat")}),(0,a.tZ)("th",{children:g("total")})]})}),(0,a.tZ)("tbody",{children:null===(t=y.items)||void 0===t?void 0:t.map((function(e){var t=e.documentItemId,n=e.productName,r=e.quantity,i=e.unitNettPrice,o=e.nettAmount,c=e.taxRate,s=e.grossAmount,u=e.productWarehouseSymbol;return(0,a.BX)("tr",{children:[(0,a.tZ)("td",{children:t}),(0,a.BX)("td",{className:f().productName,children:[(0,a.tZ)("div",{children:n}),u?(0,a.BX)("small",{children:[g("common:warehouse-symbol"),": ",u]}):null]}),(0,a.tZ)("td",{children:r}),(0,a.tZ)("td",{children:(0,a.tZ)(p.Z,{value:i,type:"nett"})}),(0,a.BX)("td",{children:[100*c,"%"]}),(0,a.tZ)("td",{children:(0,a.BX)("div",{className:f().prices,children:[(0,a.tZ)("span",{className:f().priceLabel,children:g("nett")}),(0,a.tZ)(p.Z,{value:o,type:"nett"}),(0,a.tZ)("span",{className:f().priceLabel,children:g("gross")}),(0,a.tZ)(p.Z,{value:s,type:"gross"})]})})]})}))}),(0,a.tZ)("tfoot",{children:(0,a.BX)("tr",{children:[(0,a.tZ)("td",{className:f().footValue,colSpan:3,children:g("total")}),(0,a.tZ)("td",{children:(0,a.BX)("div",{className:f().colSum,children:[(0,a.BX)("span",{children:[g("amount")," ",g("nett")]}),(0,a.tZ)(p.Z,{value:y.nettValue,type:"nett"})]})}),(0,a.tZ)("td",{children:(0,a.BX)("div",{className:f().colSum,children:[(0,a.BX)("span",{children:[g("amount")," ",g("vat")]}),(0,a.tZ)(p.Z,{value:y.grossValue-y.nettValue,type:"nett"})]})}),(0,a.tZ)("td",{children:(0,a.BX)("div",{className:f().colSum,children:[(0,a.BX)("span",{children:[g("amount")," ",g("gross")]}),(0,a.tZ)(p.Z,{value:y.grossValue,type:"gross"})]})})]})})]})]}):(0,a.tZ)(h.x,{width:900,height:500})})};w.Metadata=l,w.pagePath="/customer/trade-documents/show/[id]";var y=!0,g=(0,r.v)(w)},97385:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(97997),a=(n(11720),n(27484)),i=n.n(a),o=n(96036),c=n.n(o);i().extend(c());var s=function(e){var t,n=e.date,a=e.Component,o=void 0===a?"span":a,c=e.className,s=e.format;try{t=i().localeData().longDateFormat("L")}catch(u){t="DD.MM.YYYY"}return(0,r.tZ)(o,{className:c,children:i()(n).format(null!==s&&void 0!==s?s:t)})}},40873:function(e,t,n){"use strict";var r=n(97997),a=(n(11720),n(79535)),i=n(55437),o=n(42665);t.Z=function(e){var t=e.children,n=e.withContainer,c=e.breadcrumbsCount;return(0,r.BX)(r.HY,{children:[c?(0,r.tZ)(a.Z,{items:Array(c).fill(void 0).map((function(){return{name:(0,r.tZ)(o.Z,{width:"60px"})}}))}):null,n?(0,r.tZ)(i.Z,{children:t}):t]})}},45603:function(e,t,n){"use strict";var r=n(97997),a=(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,s=e.action,u=(0,a.Yd)(c,n);return(0,r.BX)("div",{className:u.root,children:[(0,r.BX)("div",{className:u.headerWrapper,children:[t&&(0,r.tZ)("h1",{"data-qa-info_header":!0,className:u.header,children:t})," ",null!==s&&void 0!==s?s:null]}),o?(0,r.tZ)("div",{className:u.styled,children:i}):i]})}},42665:function(e,t,n){"use strict";var r=n(26042),a=n(97997),i=n(11720),o=n(94184),c=n.n(o),s=n(91895),u=n(23046),d=n.n(u);t.Z=function(e){var t=e.count,n=void 0===t?1:t,o=e.style,u=void 0===o?{}:o,l=e.className,h=void 0===l?"":l,m=e.inline,f=e.width,v=e.height,Z=e.image,p=(0,i.useMemo)((function(){for(var e=[],t=0;t<n;t++){var o,l,p={};if(f&&!Z)if(Array.isArray(f))p.width=null!==(l=null!==(o=f[t])&&void 0!==o?o:f[0])&&void 0!==l?l:"100%";else p.width=f;Z?p.height="auto":v&&(p.height=v),e.push((0,a.BX)(i.Fragment,{children:[(0,a.BX)("span",{className:c()(d().skeletonBox,h),style:(0,r.Z)({},p,u),children:[(0,a.tZ)("span",{className:d().skeletonBg}),Z?(0,a.tZ)("div",{style:{},className:d().sizer,children:(0,a.tZ)("img",{style:{maxWidth:"100%",display:"block",margin:0,border:"none",padding:0},alt:"","aria-hidden":!0,role:"presentation",src:"data:image/svg+xml;base64,".concat((0,s.s)('<svg\n width="'.concat(f,'"\n height="').concat(v,'"\n xmlns="http://www.w3.org/2000/svg"\n version="1.1"\n />')))})}):null]},t),!m&&(0,a.tZ)("br",{})]},t))}return e}),[n,h]);return(0,a.tZ)(a.HY,{children:p})}},38272:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});n(97997),n(11720),n(45603),n(40873);var r=n(42665).Z},91895:function(e,t,n){"use strict";n.d(t,{s:function(){return i}});var r=n(92397),a=n(48764).Buffer;function i(e){return r.jU?window.btoa(e):a.from(e).toString("base64")}},11573:function(e){e.exports={container:"xj-rN0JDkr",table:"skx7-0wnPk",colSum:"D04ScGYSzX",footValue:"Q1bSa5jqKq",productName:"SaLrSDhlus",prices:"e4YCId8ew9",priceLabel:"KRZw3c5tJC"}},23046:function(e){e.exports={skeletonBox:"d-hLuWj8a4",skeletonBoxCircle:"_88aPDMbR1Q",sizer:"xqCHOSE9
1yA",skeletonBg:"SazXqPKMez",skeletonGradient:"DaID73mAAt"}},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,[3791,9294,9774,2888,179],(function(){return t=80521,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.