1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6363],{25735:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/trade-documents",function(){return n(75925)}])},61502:function(e,r,n){"use strict";var a=n(47568),i=n(14924),o=n(26042),t=n(69396),l=n(99534),u=n(97582),s=n(97997),c=n(11720),d=n(94184),f=n.n(d),p=n(57333),v=n(79929),m=n(96740),Z=n.n(m),h=n(2605),w=n(93709),b=n(38348),N=n(43612),x=n.n(N),y=n(432),_=n(33144),g=function(e){return void 0===e||null===e||""===e},D=(0,c.forwardRef)((function(e,r){var n=e.className,d=(e.children,e.label),m=e.id,N=(e.type,e.disabled),D=e.min,C=e.max,E=e.step,S=void 0===E?1:E,B=e.precision,L=void 0===B?0:B,T=e.showControls,k=e.defaultValue,I=e.value,M=e.onChange,q=e.onIncrease,F=e.onDecrease,G=e.onFocus,O=e.onBlur,V=e.suffix,W=e.prefix,X=e.size,j=void 0===X?"medium":X,z=e.floatingLabel,R=e.error,H=e.info,P=e.placeholder,U=e.displayType,Q=e.renderText,A=(0,l.Z)(e,["className","children","label","id","type","disabled","min","max","step","precision","showControls","defaultValue","value","onChange","onIncrease","onDecrease","onFocus","onBlur","suffix","prefix","size","floatingLabel","error","info","placeholder","displayType","renderText"]),K=(0,c.useRef)(!1),Y=(0,c.useRef)(null),J=(0,c.useRef)(void 0),$=(0,c.useState)(void 0),ee=$[0],re=$[1],ne=(0,c.useState)(void 0),ae=ne[0],ie=ne[1],oe=(0,c.useState)(!1),te=oe[0],le=oe[1],ue=R?(0,y.i)(m,A.name):void 0;(0,c.useEffect)((function(){re(se(void 0!==I?I:k))}),[I,k]);var se=function(e){if(void 0!==e&&null!==e){var r=e;return r="number"===typeof D?Math.max(r,D):r,r="number"===typeof C?Math.min(r,C):r}},ce=function(e){var r=e;g(e)||(r=se(e)),ie(void 0),re(r),M&&M(r)},de=(0,c.useCallback)((function(e){ce(e.target.value)}),[M]),fe=function(){J.current&&clearTimeout(J.current)},pe=function(e){le(!0),G&&G(e)},ve=function(e){if(K.current)return Y.current&&Y.current.focus(),void(K.current=!1);le(!1),fe(),void 0!==ae&&ce(ae),O&&O(e)},me=(0,c.useMemo)((function(){var e;return(0,t.Z)((0,o.Z)({id:m,className:f()(x().input,(e={},(0,i.Z)(e,x().withControls,T),(0,i.Z)(e,x().focused,te),(0,i.Z)(e,x().sizeLarge,"large"===j),(0,i.Z)(e,x().floatingLabelInput,z),e)),onChange:de,disabled:N},A),{value:ee,onBlur:ve,onFocus:pe})}),[de,A,ee,pe,j,T,te]),Ze=function(e){return function(){var r=(0,a.Z)((function(r){var n;return(0,u.__generator)(this,(function(a){switch(a.label){case 0:return K.current=!0,Y.current&&Y.current.focus(),"add"===e&&q?[4,q()]:[3,2];case 1:case 3:return a.sent(),[2];case 2:return"subtract"===e&&F?[4,F()]:[3,4];case 4:return n=Z()("number"===typeof r?r:ee,{precision:L})[e](S).value,ce(n),[2]}}))}));return function(e){return r.apply(this,arguments)}}()};(0,v.Z)("mouseup",fe);var he,we=N||!g(C)&&ee===C,be=N||!g(D)&&ee===D;return(0,s.BX)("div",{ref:r,className:f()(x().root,n),children:[(0,s.BX)("div",{className:x().wrapper,children:[W?(0,s.tZ)("div",{className:x().prefix,children:W}):null,(0,s.BX)("div",{className:f()(x().inputWrapper,(he={},(0,i.Z)(he,x().inputWrapperWithSuffix,!!V),(0,i.Z)(he,x().inputError,R),he)),children:[!z&&d?(0,s.tZ)("label",{htmlFor:m,className:x().label,children:d}):null,(0,s.tZ)(p.Z,(0,t.Z)((0,o.Z)({},me),{decimalScale:L,getInputRef:Y,displayType:U,renderText:Q,fixedDecimalScale:!0,placeholder:z?void 0:P,"aria-describedby":null!==ue&&void 0!==ue?ue:A["aria-describedby"],"aria-invalid":R?"true":A["aria-invalid"]})),R?(0,s.tZ)(b.Z,{content:_.Z,className:x().errorIcon}):null,V?(0,s.tZ)("span",{className:x().suffix,children:V}):null,T&&(0,s.BX)("div",{className:x().arrows,children:[(0,s.tZ)(b.Z,{content:w.Z,className:f()(x().arrow,(0,i.Z)({},x().arrowDisabled,we),x().arrowUp),onMouseDown:we?void 0:Ze("add")}),(0,s.tZ)("div",{className:x().arrowSpacer}),(0,s.tZ)(b.Z,{content:h.Z,className:f()(x().arrow,(0,i.Z)({},x().arrowDisabled,be),x().arrowDown),onMouseDown:be?void 0:Ze("subtract")})]}),z&&d?(0,s.tZ)("label",{htmlFor:m,className:f()(x().floatingLabel,(0,i.Z)({},x().floating,me.value||te)),children:d}):null]}),V?(0,s.tZ)("div",{className:x().suffix,children:V}):null]}),R?(0,s.tZ)(y.Z,{error:R,id:ue}):null,H?(0,s.tZ)("p",{className:x().info,children:H}):null]})}));r.Z=D},75925:function(e,r,n){"use strict";n.r(r),n.d(r,{__N_SSP:function(){return o}});var a=n(64402),i=n(3723),o=!0;r.default=(0,i.v)(a.l)},43612:function(e){e.exports={root:"pihhyTSCwC",label:"yl0OHKGyf7",input:"fdWc-sLIcy",withControls:"HZxkdv7EZ4",sizeLarge:"-Hu8W9j0fu",info:"_2rOe-DC-Vh",inputWrapper:"jqSx75yHxx",focused:"_3aGLsBENYQ",suffix:"MVutBqSGEk",arrows:"kDl0KDVtQm",arrow:"-zLm0wemNq",arrowDisabled:"McLAB6Grb
1s",arrowSpacer:"mosGtfEQBw",arrowUp:"eUdV7d9BgL",arrowDown:"ZGr97yukx4",inputError:"DPOAE3q157",errorIcon:"Oxs-jpjiF0",floatingLabel:"n8xsleqIqj",floating:"_-4eyv-cU20"}}},function(e){e.O(0,[5973,8103,801,3791,9997,9294,7670,9774,2888,179],(function(){return r=25735,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.