1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1612],{91612:function(e,r,l){l.r(r),l.d(r,{default:function(){return c}});var n=l(97458),t=l(52983),i=l(62122),o=l(13742),u=l(65213),d=l(87043),a=l.n(d);function s(e){let{children:r,className:l,hideError:d,id:s,options:c,validators:p=[],value:f}=e,[v,...m]=t.Children.toArray(r);if(!t.isValidElement(v))throw Error("Field child is not a valid element.");let{name:h,required:w}=v.props;if(!h)throw Error("Missing 'name' prop on Field child.");let{dropdownContainer:y,...b}=c||{},[E]=function(e){let r=(0,t.useRef)(null),l=(0,t.useRef)();return(0,t.useEffect)(()=>(r.current&&(l.current=a()(r.current,{...e||{}}),window.intlTelInputGlobals=a()),()=>{var e;null==l||null===(e=l.current)||void 0===e||e.destroy()}),[]),[r,l]}({...b,dropdownContainer:"string"==typeof y?document.querySelector(y)||void 0:y}),N=(0,t.useMemo)(()=>{let e=[];return w&&e.push(u.Z),e.push(e=>{if(e&&"string"==typeof e&&(null==E?void 0:E.current)){let e=window.intlTelInputGlobals.getInstance(E.current);if(e&&!1===e.isValidNumberPrecise())return{key:"telephone",value:"Invalid phone number"}}}),e},[E,w]);return(0,n.jsx)(i.gN,{name:h,validate:(0,o.Z)(...N,...p),value:f,children:e=>{var r;let{input:i,meta:o}=e,u=o.error&&o.touched;return(0,n.jsxs)("label",{className:l,"data-error":u,id:s,children:[t.cloneElement(v,{...v.props,...i,ref:E}),m,!d&&u&&(0,n.jsx)("span",{"data-error":u,children:(null===(r=o.error)||void 0===r?void 0:r.value)||o.error})]})}})}function c(e){var r,l;let{styles:t,field:i}=e;return(0,n.jsx)(s,{options:{initialCountry:"gb",formatAsYouType:!1,formatOnDisplay:!1},className:"dmn-field-wrapper ".concat(null==t?void 0:null===(r=t.field)||void 0===r?void 0:r.fieldWrapper).trim(),children:(0,n.jsx)("input",{className:"dmn-field-input ".concat(null==t?void 0:null===(l=t.field)||void 0===l?void 0:l.fieldInput).trim(),name:i.name,placeholder:null==i?void 0:i.placeholder,value:"07411111111",type:"tel",required:null==i?void 0:i.required})})}}}]);
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.