1(self.webpackChunkorderry=self.webpackChunkorderry||[]).push([[8452,22549,44930,67311,89692],{56941:function(M,y,o){"use strict";o.r(y),o.d(y,{default:function(){return w}});var r=o(74848),T=o(96540),D=o(1575),S=o(92630),v=o(70881),g=o(49785),j=o(62770),I=o(7411),p=o(13965),m=o(76835),e=o(23356),n=o(25716),f=o(89315),i=o(99589),E=o(14854),N=o(22832),R=o(23824),x=o(94119),c=o(14756),O=o(4216);const t={COUNTRY:"country",STATE:"state",CITY:"city",ADDRESS_LINE_1:"address_line_1",ADDRESS_LINE_2:"address_line_2",POSTAL_CODE:"postal_code",COMMENT:"comment"};function s(d){const{title:C,onSave:L}=d,{t:u}=(0,j.Bd)(),{handleSubmit:Y,watch:z,formState:{errors:A}}=(0,g.xW)(),{closeModal:F}=(0,f.k3)(),W=z(),B=Object.values(W).some(Boolean),H=V=>{L(V),F()},X=()=>{L(null),F()},K=(0,O.W)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N.A,{children:(0,r.jsx)(x.A,{title:C||u("Address")})}),(0,r.jsxs)(i.A,{children:[(0,r.jsx)(n.A,{labelProps:{label:u("Country"),htmlFor:t.COUNTRY,isRequired:!0},errors:A,children:(0,r.jsx)(I.A,{name:t.COUNTRY,data:K,defaultLabel:u("- Not specified -")})}),(0,r.jsx)(n.A,{name:t.STATE,labelProps:{label:u("State_legal"),htmlFor:t.STATE},errors:A,children:(0,r.jsx)(p.A,{name:t.STATE,id:t.STATE})}),(0,r.jsx)(n.A,{name:t.CITY,labelProps:{label:u("City"),htmlFor:t.CITY},errors:A,children:(0,r.jsx)(p.A,{name:t.CITY,id:t.CITY})}),(0,r.jsx)(n.A,{name:t.ADDRESS_LINE_1,labelProps:{label:u("Address line 1"),htmlFor:t.ADDRESS_LINE_1,isRequired:!0},errors:A,children:(0,r.jsx)(p.A,{name:t.ADDRESS_LINE_1,id:t.ADDRESS_LINE_1})}),(0,r.jsx)(n.A,{name:t.ADDRESS_LINE_2,labelProps:{label:u("Address line 2"),htmlFor:t.ADDRESS_LINE_2},errors:A,children:(0,r.jsx)(p.A,{name:t.ADDRESS_LINE_2,id:t.ADDRESS_LINE_2})}),(0,r.jsx)(n.A,{name:t.POSTAL_CODE,labelProps:{label:u("Postal Code"),htmlFor:t.POSTAL_CODE},errors:A,children:(0,r.jsx)(p.A,{name:t.POSTAL_CODE,id:t.POSTAL_CODE})}),(0,r.jsx)(n.A,{name:t.COMMENT,labelProps:{label:u("Note"),htmlFor:t.COMMENT},errors:A,children:(0,r.jsx)(m.A,{name:t.COMMENT,id:t.COMMENT})})]}),(0,r.jsx)(E.A,{children:(0,r.jsxs)(R.A,{children:[(0,r.jsx)(c.A,{text:u("Save"),onClick:Y(H)}),B&&(0,r.jsx)(e.A,{type:"secondary",onClick:X,children:u("Clear")})]})})]})}const l=d=>{const{COUNTRY:C}=o(91530);return{[t.COUNTRY]:(d==null?void 0:d.country)||C||null,[t.STATE]:(d==null?void 0:d.state)||"",[t.CITY]:(d==null?void 0:d.city)||"",[t.ADDRESS_LINE_1]:(d==null?void 0:d.address_line_1)||"",[t.ADDRESS_LINE_2]:(d==null?void 0:d.address_line_2)||"",[t.POSTAL_CODE]:(d==null?void 0:d.postal_code)||"",[t.COMMENT]:(d==null?void 0:d.comment)||""}};var a=o(12664),h=o(34338),P=a.Ik().shape({[t.COUNTRY]:a.Yj().required(h.UU.required),[t.STATE]:a.Yj().trim().max(256,h.UU.maxSymbols(256)),[t.CITY]:a.Yj().trim().max(256,h.UU.maxSymbols(256)),[t.ADDRESS_LINE_1]:a.Yj().trim().max(256,h.UU.maxSymbols(256)).required(h.UU.required),[t.ADDRESS_LINE_2]:a.Yj().trim().max(256,h.UU.maxSymbols(256)),[t.POSTAL_CODE]:a.Yj().trim().max(127,h.UU.maxSymbols(127)),[t.COMMENT]:a.Yj().trim().max(16384,h.UU.maxSymbols(16384))});function b(d){const{data:C,onSave:L,title:u,...Y}=d,z=l(C),A=(0,T.useMemo)(()=>({defaultValues:z,resolver:(0,D.t)(P)}),[]);return(0,r.jsx)(S.Ay,{size:v.MODAL_SIZE.SIZE_480,position:v.MODAL_POSITION.RIGHT,formProps:A,...Y,children:(0,r.jsx)(s,{onSave:L,title:u})})}var w=b},89692:function(M,y){var o,r,T;(function(D,S){if(1)r=[M,y],o=S,T=typeof o=="function"?o.apply(y,r):o,T!==void 0&&(M.exports=T);else var v})(this,function(D,S){"use strict";var v=typeof Map=="function"?new Map:function(){var e=[],n=[];return{has:function(i){return e.indexOf(i)>-1},get:function(i){return n[e.indexOf(i)]},set:function(i,E){e.indexOf(i)===-1&&(e.push(i),n.push(E))},delete:function(i){var E=e.indexOf(i);E>-1&&(e.splice(E,1),n.splice(E,1))}}}(),g=function(n){return new Event(n,{bubbles:!0})};try{new Event("test")}catch{g=function(f){var i=document.createEvent("Event");return i.initEvent(f,!0,!1),i}}function j(e){if(!e||!e.nodeName||e.nodeName!=="TEXTAREA"||v.has(e))return;var n=null,f=null,i=null;function E(){var s=window.getComputedStyle(e,null);s.resize==="vertical"?e.style.resize="none":s.resize==="both"&&(e.style.resize="horizontal"),s.boxSizing==="content-box"?n=-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):n=parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),isNaN(n)&&(n=0),c()}function N(s){{var l=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=l}e.style.overflowY=s}function R(s){for(var l=[];s&&s.parentNode&&s.parentNode instanceof Element;)s.parentNode.scrollTop&&l.push({node:s.parentNode,scrollTop:s.parentNode.scrollTop}),s=s.parentNode;return l}function x(){if(e.scrollHeight!==0){var s=R(e),l=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",f=e.clientWidth,s.forEac
1h(function(a){a.node.scrollTop=a.scrollTop}),l&&(document.documentElement.scrollTop=l)}}function c(){x();var s=Math.round(parseFloat(e.style.height)),l=window.getComputedStyle(e,null),a=l.boxSizing==="content-box"?Math.round(parseFloat(l.height)):e.offsetHeight;if(a<s?l.overflowY==="hidden"&&(N("scroll"),x(),a=l.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):l.overflowY!=="hidden"&&(N("hidden"),x(),a=l.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==a){i=a;var h=g("autosize:resized");try{e.dispatchEvent(h)}catch{}}}var O=function(){e.clientWidth!==f&&c()},t=(function(s){window.removeEventListener("resize",O,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",t,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(s).forEach(function(l){e.style[l]=s[l]}),v.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",t,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",O,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",v.set(e,{destroy:t,update:c}),E()}function I(e){var n=v.get(e);n&&n.destroy()}function p(e){var n=v.get(e);n&&n.update()}var m=null;typeof window>"u"||typeof window.getComputedStyle!="function"?(m=function(n){return n},m.destroy=function(e){return e},m.update=function(e){return e}):(m=function(n,f){return n&&Array.prototype.forEach.call(n.length?n:[n],function(i){return j(i,f)}),n},m.destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],I),e},m.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],p),e}),S.default=m,D.exports=S.default})}}]); 2 3//# sourceMappingURL=8452.6c4aee55602498b4f274.js.map
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.