@verifiedinc-public/shared-ui-elements 5.9.1 → 5.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";import R,{isValidPhoneNumber as en}from"libphonenumber-js";import{a as k,_ as d,b as ct,d as rn,g as on}from"./_baseGetTag-B6tQMIzM.mjs";import{i as V,a as B,b as W,t as an}from"./toNumber-BUb3rTFh.mjs";function un(){this.__data__=[],this.size=0}var cn=un;function sn(t,n){return t===n||t!==t&&n!==n}var st=sn,fn=st;function vn(t,n){for(var e=t.length;e--;)if(fn(t[e][0],n))return e;return-1}var E=vn,ln=E,pn=Array.prototype,hn=pn.splice;function yn(t){var n=this.__data__,e=ln(n,t);if(e<0)return!1;var r=n.length-1;return e==r?n.pop():hn.call(n,e,1),--this.size,!0}var _n=yn,bn=E;function dn(t){var n=this.__data__,e=bn(n,t);return e<0?void 0:n[e][1]}var gn=dn,jn=E;function mn(t){return jn(this.__data__,t)>-1}var On=mn,wn=E;function zn(t,n){var e=this.__data__,r=wn(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this}var An=zn,xn=cn,Cn=_n,$n=gn,Sn=On,Pn=An;function w(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}w.prototype.clear=xn,w.prototype.delete=Cn,w.prototype.get=$n,w.prototype.has=Sn,w.prototype.set=Pn;var N=w,kn=N;function Bn(){this.__data__=new kn,this.size=0}var En=Bn;function Nn(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e}var Fn=Nn;function Mn(t){return this.__data__.get(t)}var Dn=Mn;function In(t){return this.__data__.has(t)}var Tn=In,Un=k,Ln=V,Rn="[object AsyncFunction]",Vn="[object Function]",Wn="[object GeneratorFunction]",qn="[object Proxy]";function Gn(t){if(!Ln(t))return!1;var n=Un(t);return n==Vn||n==Wn||n==Rn||n==qn}var ft=Gn,Hn=d,Jn=Hn["__core-js_shared__"],Kn=Jn,q=Kn,vt=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Qn(t){return!!vt&&vt in t}var Xn=Qn,Yn=Function.prototype,Zn=Yn.toString;function te(t){if(t!=null){try{return Zn.call(t)}catch{}try{return t+""}catch{}}return""}var lt=te,ne=ft,ee=Xn,re=V,oe=lt,ae=/[\\^$.*+?()[\]{}|]/g,ue=/^\[object .+?Constructor\]$/,ie=Function.prototype,ce=Object.prototype,se=ie.toString,fe=ce.hasOwnProperty,ve=RegExp("^"+se.call(fe).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function le(t){if(!re(t)||ee(t))return!1;var n=ne(t)?ve:ue;return n.test(oe(t))}var pe=le;function he(t,n){return t?.[n]}var ye=he,_e=pe,be=ye;function de(t,n){var e=be(t,n);return _e(e)?e:void 0}var z=de,ge=z,je=d,me=ge(je,"Map"),G=me,Oe=z,we=Oe(Object,"create"),F=we,pt=F;function ze(){this.__data__=pt?pt(null):{},this.size=0}var Ae=ze;function xe(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var Ce=xe,$e=F,Se="__lodash_hash_undefined__",Pe=Object.prototype,ke=Pe.hasOwnProperty;function Be(t){var n=this.__data__;if($e){var e=n[t];return e===Se?void 0:e}return ke.call(n,t)?n[t]:void 0}var Ee=Be,Ne=F,Fe=Object.prototype,Me=Fe.hasOwnProperty;function De(t){var n=this.__data__;return Ne?n[t]!==void 0:Me.call(n,t)}var Ie=De,Te=F,Ue="__lodash_hash_undefined__";function Le(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Te&&n===void 0?Ue:n,this}var Re=Le,Ve=Ae,We=Ce,qe=Ee,Ge=Ie,He=Re;function A(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}A.prototype.clear=Ve,A.prototype.delete=We,A.prototype.get=qe,A.prototype.has=Ge,A.prototype.set=He;var Je=A,ht=Je,Ke=N,Qe=G;function Xe(){this.size=0,this.__data__={hash:new ht,map:new(Qe||Ke),string:new ht}}var Ye=Xe;function Ze(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}var tr=Ze,nr=tr;function er(t,n){var e=t.__data__;return nr(n)?e[typeof n=="string"?"string":"hash"]:e.map}var M=er,rr=M;function or(t){var n=rr(this,t).delete(t);return this.size-=n?1:0,n}var ar=or,ur=M;function ir(t){return ur(this,t).get(t)}var cr=ir,sr=M;function fr(t){return sr(this,t).has(t)}var vr=fr,lr=M;function pr(t,n){var e=lr(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this}var hr=pr,yr=Ye,_r=ar,br=cr,dr=vr,gr=hr;function x(t){var n=-1,e=t==null?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}x.prototype.clear=yr,x.prototype.delete=_r,x.prototype.get=br,x.prototype.has=dr,x.prototype.set=gr;var H=x,jr=N,mr=G,Or=H,wr=200;function zr(t,n){var e=this.__data__;if(e instanceof jr){var r=e.__data__;if(!mr||r.length<wr-1)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new Or(r)}return e.set(t,n),this.size=e.size,this}var Ar=zr,xr=N,Cr=En,$r=Fn,Sr=Dn,Pr=Tn,kr=Ar;function C(t){var n=this.__data__=new xr(t);this.size=n.size}C.prototype.clear=Cr,C.prototype.delete=$r,C.prototype.get=Sr,C.prototype.has=Pr,C.prototype.set=kr;var yt=C,Br="__lodash_hash_undefined__";function Er(t){return this.__data__.set(t,Br),this}var Nr=Er;function Fr(t){return this.__data__.has(t)}var Mr=Fr,Dr=H,Ir=Nr,Tr=Mr;function D(t){var n=-1,e=t==null?0:t.length;for(this.__data__=new Dr;++n<e;)this.add(t[n])}D.prototype.add=D.prototype.push=Ir,D.prototype.has=Tr;var Ur=D;function Lr(t,n){for(var e=-1,r=t==null?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}var Rr=Lr;function Vr(t,n){return t.has(n)}var Wr=Vr,qr=Ur,Gr=Rr,Hr=Wr,Jr=1,Kr=2;function Qr(t,n,e,r,o,a){var u=e&Jr,i=t.length,s=n.length;if(i!=s&&!(u&&s>i))return!1;var c=a.get(t),p=a.get(n);if(c&&p)return c==n&&p==t;var l=-1,v=!0,_=e&Kr?new qr:void 0;for(a.set(t,n),a.set(n,t);++l<i;){var h=t[l],y=n[l];if(r)var b=u?r(y,h,l,n,t,a):r(h,y,l,t,n,a);if(b!==void 0){if(b)continue;v=!1;break}if(_){if(!Gr(n,function(j,m){if(!Hr(_,m)&&(h===j||o(h,j,e,r,a)))return _.push(m)})){v=!1;break}}else if(!(h===y||o(h,y,e,r,a))){v=!1;break}}return a.delete(t),a.delete(n),v}var _t=Qr,Xr=d,Yr=Xr.Uint8Array,Zr=Yr;function to(t){var n=-1,e=Array(t.size);return t.forEach(function(r,o){e[++n]=[o,r]}),e}var no=to;function eo(t){var n=-1,e=Array(t.size);return t.forEach(function(r){e[++n]=r}),e}var ro=eo,bt=ct,dt=Zr,oo=st,ao=_t,uo=no,io=ro,co=1,so=2,fo="[object Boolean]",vo="[object Date]",lo="[object Error]",po="[object Map]",ho="[object Number]",yo="[object RegExp]",_o="[object Set]",bo="[object String]",go="[object Symbol]",jo="[object ArrayBuffer]",mo="[object DataView]",gt=bt?bt.prototype:void 0,J=gt?gt.valueOf:void 0;function Oo(t,n,e,r,o,a,u){switch(e){case mo:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case jo:return!(t.byteLength!=n.byteLength||!a(new dt(t),new dt(n)));case fo:case vo:case ho:return oo(+t,+n);case lo:return t.name==n.name&&t.message==n.message;case yo:case bo:return t==n+"";case po:var i=uo;case _o:var s=r&co;if(i||(i=io),t.size!=n.size&&!s)return!1;var c=u.get(t);if(c)return c==n;r|=so,u.set(t,n);var p=ao(i(t),i(n),r,o,a,u);return u.delete(t),p;case go:if(J)return J.call(t)==J.call(n)}return!1}var wo=Oo;function zo(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}var Ao=zo,xo=Array.isArray,g=xo,Co=Ao,$o=g;function So(t,n,e){var r=n(t);return $o(t)?r:Co(r,e(t))}var Po=So;function ko(t,n){for(var e=-1,r=t==null?0:t.length,o=0,a=[];++e<r;){var u=t[e];n(u,e,t)&&(a[o++]=u)}return a}var Bo=ko;function Eo(){return[]}var No=Eo,Fo=Bo,Mo=No,Do=Object.prototype,Io=Do.propertyIsEnumerable,jt=Object.getOwnPropertySymbols,To=jt?function(t){return t==null?[]:(t=Object(t),Fo(jt(t),function(n){return Io.call(t,n)}))}:Mo,Uo=To;function Lo(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}var Ro=Lo,Vo=k,Wo=B,qo="[object Arguments]";function Go(t){return Wo(t)&&Vo(t)==qo}var Ho=Go,mt=Ho,Jo=B,Ot=Object.prototype,Ko=Ot.hasOwnProperty,Qo=Ot.propertyIsEnumerable,Xo=mt(function(){return arguments}())?mt:function(t){return Jo(t)&&Ko.call(t,"callee")&&!Qo.call(t,"callee")},wt=Xo,I={exports:{}};function Yo(){return!1}var Zo=Yo;I.exports,function(t,n){var e=d,r=Zo,o=n&&!n.nodeType&&n,a=o&&!0&&t&&!t.nodeType&&t,u=a&&a.exports===o,i=u?e.Buffer:void 0,s=i?i.isBuffer:void 0,c=s||r;t.exports=c}(I,I.exports);var zt=I.exports,ta=9007199254740991,na=/^(?:0|[1-9]\d*)$/;function ea(t,n){var e=typeof t;return n=n??ta,!!n&&(e=="number"||e!="symbol"&&na.test(t))&&t>-1&&t%1==0&&t<n}var At=ea,ra=9007199254740991;function oa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ra}var K=oa,aa=k,ua=K,ia=B,ca="[object Arguments]",sa="[object Array]",fa="[object Boolean]",va="[object Date]",la="[object Error]",pa="[object Function]",ha="[object Map]",ya="[object Number]",_a="[object Object]",ba="[object RegExp]",da="[object Set]",ga="[object String]",ja="[object WeakMap]",ma="[object ArrayBuffer]",Oa="[object DataView]",wa="[object Float32Array]",za="[object Float64Array]",Aa="[object Int8Array]",xa="[object Int16Array]",Ca="[object Int32Array]",$a="[object Uint8Array]",Sa="[object Uint8ClampedArray]",Pa="[object Uint16Array]",ka="[object Uint32Array]",f={};f[wa]=f[za]=f[Aa]=f[xa]=f[Ca]=f[$a]=f[Sa]=f[Pa]=f[ka]=!0,f[ca]=f[sa]=f[ma]=f[fa]=f[Oa]=f[va]=f[la]=f[pa]=f[ha]=f[ya]=f[_a]=f[ba]=f[da]=f[ga]=f[ja]=!1;function Ba(t){return ia(t)&&ua(t.length)&&!!f[aa(t)]}var Ea=Ba;function Na(t){return function(n){return t(n)}}var Fa=Na,T={exports:{}};T.exports,function(t,n){var e=rn,r=n&&!n.nodeType&&n,o=r&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===r,u=a&&e.process,i=function(){try{var s=o&&o.require&&o.require("util").types;return s||u&&u.binding&&u.binding("util")}catch{}}();t.exports=i}(T,T.exports);var Ma=T.exports,Da=Ea,Ia=Fa,xt=Ma,Ct=xt&&xt.isTypedArray,Ta=Ct?Ia(Ct):Da,$t=Ta,Ua=Ro,La=wt,Ra=g,Va=zt,Wa=At,qa=$t,Ga=Object.prototype,Ha=Ga.hasOwnProperty;function Ja(t,n){var e=Ra(t),r=!e&&La(t),o=!e&&!r&&Va(t),a=!e&&!r&&!o&&qa(t),u=e||r||o||a,i=u?Ua(t.length,String):[],s=i.length;for(var c in t)(n||Ha.call(t,c))&&!(u&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Wa(c,s)))&&i.push(c);return i}var Ka=Ja,Qa=Object.prototype;function Xa(t){var n=t&&t.constructor,e=typeof n=="function"&&n.prototype||Qa;return t===e}var Ya=Xa;function Za(t,n){return function(e){return t(n(e))}}var tu=Za,nu=tu,eu=nu(Object.keys,Object),ru=eu,ou=Ya,au=ru,uu=Object.prototype,iu=uu.hasOwnProperty;function cu(t){if(!ou(t))return au(t);var n=[];for(var e in Object(t))iu.call(t,e)&&e!="constructor"&&n.push(e);return n}var su=cu,fu=ft,vu=K;function lu(t){return t!=null&&vu(t.length)&&!fu(t)}var St=lu,pu=Ka,hu=su,yu=St;function _u(t){return yu(t)?pu(t):hu(t)}var Q=_u,bu=Po,du=Uo,gu=Q;function ju(t){return bu(t,gu,du)}var mu=ju,Pt=mu,Ou=1,wu=Object.prototype,zu=wu.hasOwnProperty;function Au(t,n,e,r,o,a){var u=e&Ou,i=Pt(t),s=i.length,c=Pt(n),p=c.length;if(s!=p&&!u)return!1;for(var l=s;l--;){var v=i[l];if(!(u?v in n:zu.call(n,v)))return!1}var _=a.get(t),h=a.get(n);if(_&&h)return _==n&&h==t;var y=!0;a.set(t,n),a.set(n,t);for(var b=u;++l<s;){v=i[l];var j=t[v],m=n[v];if(r)var it=u?r(m,j,v,n,t,a):r(j,m,v,t,n,a);if(!(it===void 0?j===m||o(j,m,e,r,a):it)){y=!1;break}b||(b=v=="constructor")}if(y&&!b){var S=t.constructor,P=n.constructor;S!=P&&"constructor"in t&&"constructor"in n&&!(typeof S=="function"&&S instanceof S&&typeof P=="function"&&P instanceof P)&&(y=!1)}return a.delete(t),a.delete(n),y}var xu=Au,Cu=z,$u=d,Su=Cu($u,"DataView"),Pu=Su,ku=z,Bu=d,Eu=ku(Bu,"Promise"),Nu=Eu,Fu=z,Mu=d,Du=Fu(Mu,"Set"),Iu=Du,Tu=z,Uu=d,Lu=Tu(Uu,"WeakMap"),Ru=Lu,X=Pu,Y=G,Z=Nu,tt=Iu,nt=Ru,kt=k,$=lt,Bt="[object Map]",Vu="[object Object]",Et="[object Promise]",Nt="[object Set]",Ft="[object WeakMap]",Mt="[object DataView]",Wu=$(X),qu=$(Y),Gu=$(Z),Hu=$(tt),Ju=$(nt),O=kt;(X&&O(new X(new ArrayBuffer(1)))!=Mt||Y&&O(new Y)!=Bt||Z&&O(Z.resolve())!=Et||tt&&O(new tt)!=Nt||nt&&O(new nt)!=Ft)&&(O=function(t){var n=kt(t),e=n==Vu?t.constructor:void 0,r=e?$(e):"";if(r)switch(r){case Wu:return Mt;case qu:return Bt;case Gu:return Et;case Hu:return Nt;case Ju:return Ft}return n});var Ku=O,et=yt,Qu=_t,Xu=wo,Yu=xu,Dt=Ku,It=g,Tt=zt,Zu=$t,ti=1,Ut="[object Arguments]",Lt="[object Array]",U="[object Object]",ni=Object.prototype,Rt=ni.hasOwnProperty;function ei(t,n,e,r,o,a){var u=It(t),i=It(n),s=u?Lt:Dt(t),c=i?Lt:Dt(n);s=s==Ut?U:s,c=c==Ut?U:c;var p=s==U,l=c==U,v=s==c;if(v&&Tt(t)){if(!Tt(n))return!1;u=!0,p=!1}if(v&&!p)return a||(a=new et),u||Zu(t)?Qu(t,n,e,r,o,a):Xu(t,n,s,e,r,o,a);if(!(e&ti)){var _=p&&Rt.call(t,"__wrapped__"),h=l&&Rt.call(n,"__wrapped__");if(_||h){var y=_?t.value():t,b=h?n.value():n;return a||(a=new et),o(y,b,e,r,a)}}return v?(a||(a=new et),Yu(t,n,e,r,o,a)):!1}var ri=ei,oi=ri,Vt=B;function Wt(t,n,e,r,o){return t===n?!0:t==null||n==null||!Vt(t)&&!Vt(n)?t!==t&&n!==n:oi(t,n,e,r,Wt,o)}var rt=Wt,ai=yt,ui=rt,ii=1,ci=2;function si(t,n,e,r){var o=e.length,a=o,u=!r;if(t==null)return!a;for(t=Object(t);o--;){var i=e[o];if(u&&i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++o<a;){i=e[o];var s=i[0],c=t[s],p=i[1];if(u&&i[2]){if(c===void 0&&!(s in t))return!1}else{var l=new ai;if(r)var v=r(c,p,s,t,n,l);if(!(v===void 0?ui(p,c,ii|ci,r,l):v))return!1}}return!0}var fi=si,vi=V;function li(t){return t===t&&!vi(t)}var qt=li,pi=qt,hi=Q;function yi(t){for(var n=hi(t),e=n.length;e--;){var r=n[e],o=t[r];n[e]=[r,o,pi(o)]}return n}var _i=yi;function bi(t,n){return function(e){return e==null?!1:e[t]===n&&(n!==void 0||t in Object(e))}}var Gt=bi,di=fi,gi=_i,ji=Gt;function mi(t){var n=gi(t);return n.length==1&&n[0][2]?ji(n[0][0],n[0][1]):function(e){return e===t||di(e,t,n)}}var Oi=mi,wi=g,zi=W,Ai=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xi=/^\w*$/;function Ci(t,n){if(wi(t))return!1;var e=typeof t;return e=="number"||e=="symbol"||e=="boolean"||t==null||zi(t)?!0:xi.test(t)||!Ai.test(t)||n!=null&&t in Object(n)}var ot=Ci,Ht=H,$i="Expected a function";function at(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new TypeError($i);var e=function(){var r=arguments,o=n?n.apply(this,r):r[0],a=e.cache;if(a.has(o))return a.get(o);var u=t.apply(this,r);return e.cache=a.set(o,u)||a,u};return e.cache=new(at.Cache||Ht),e}at.Cache=Ht;var Si=at,Pi=Si,ki=500;function Bi(t){var n=Pi(t,function(r){return e.size===ki&&e.clear(),r}),e=n.cache;return n}var Ei=Bi,Ni=Ei,Fi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mi=/\\(\\)?/g,Di=Ni(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(Fi,function(e,r,o,a){n.push(o?a.replace(Mi,"$1"):r||e)}),n}),Ii=Di;function Ti(t,n){for(var e=-1,r=t==null?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}var Ui=Ti,Jt=ct,Li=Ui,Ri=g,Vi=W,Kt=Jt?Jt.prototype:void 0,Qt=Kt?Kt.toString:void 0;function Xt(t){if(typeof t=="string")return t;if(Ri(t))return Li(t,Xt)+"";if(Vi(t))return Qt?Qt.call(t):"";var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}var Wi=Xt,qi=Wi;function Gi(t){return t==null?"":qi(t)}var Yt=Gi,Hi=g,Ji=ot,Ki=Ii,Qi=Yt;function Xi(t,n){return Hi(t)?t:Ji(t,n)?[t]:Ki(Qi(t))}var Zt=Xi,Yi=W;function Zi(t){if(typeof t=="string"||Yi(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}var L=Zi,tc=Zt,nc=L;function ec(t,n){n=tc(n,t);for(var e=0,r=n.length;t!=null&&e<r;)t=t[nc(n[e++])];return e&&e==r?t:void 0}var tn=ec,rc=tn;function oc(t,n,e){var r=t==null?void 0:rc(t,n);return r===void 0?e:r}var ac=oc;function uc(t,n){return t!=null&&n in Object(t)}var ic=uc,cc=Zt,sc=wt,fc=g,vc=At,lc=K,pc=L;function hc(t,n,e){n=cc(n,t);for(var r=-1,o=n.length,a=!1;++r<o;){var u=pc(n[r]);if(!(a=t!=null&&e(t,u)))break;t=t[u]}return a||++r!=o?a:(o=t==null?0:t.length,!!o&&lc(o)&&vc(u,o)&&(fc(t)||sc(t)))}var yc=hc,_c=ic,bc=yc;function dc(t,n){return t!=null&&bc(t,n,_c)}var gc=dc,jc=rt,mc=ac,Oc=gc,wc=ot,zc=qt,Ac=Gt,xc=L,Cc=1,$c=2;function Sc(t,n){return wc(t)&&zc(n)?Ac(xc(t),n):function(e){var r=mc(e,t);return r===void 0&&r===n?Oc(e,t):jc(n,r,Cc|$c)}}var Pc=Sc;function kc(t){return t}var Bc=kc;function Ec(t){return function(n){return n?.[t]}}var Nc=Ec,Fc=tn;function Mc(t){return function(n){return Fc(n,t)}}var Dc=Mc,Ic=Nc,Tc=Dc,Uc=ot,Lc=L;function Rc(t){return Uc(t)?Ic(Lc(t)):Tc(t)}var Vc=Rc,Wc=Oi,qc=Pc,Gc=Bc,Hc=g,Jc=Vc;function Kc(t){return typeof t=="function"?t:t==null?Gc:typeof t=="object"?Hc(t)?qc(t[0],t[1]):Wc(t):Jc(t)}var nn=Kc,Qc=nn,Xc=St,Yc=Q;function Zc(t){return function(n,e,r){var o=Object(n);if(!Xc(n)){var a=Qc(e);n=Yc(n),e=function(i){return a(o[i],i,o)}}var u=t(n,e,r);return u>-1?o[a?n[u]:u]:void 0}}var ts=Zc;function ns(t,n,e,r){for(var o=t.length,a=e+(r?1:-1);r?a--:++a<o;)if(n(t[a],a,t))return a;return-1}var es=ns,rs=an,os=1/0,as=17976931348623157e292;function us(t){if(!t)return t===0?t:0;if(t=rs(t),t===os||t===-1/0){var n=t<0?-1:1;return n*as}return t===t?t:0}var is=us,cs=is;function ss(t){var n=cs(t),e=n%1;return n===n?e?n-e:n:0}var fs=ss,vs=es,ls=nn,ps=fs,hs=Math.max;function ys(t,n,e){var r=t==null?0:t.length;if(!r)return-1;var o=e==null?0:ps(e);return o<0&&(o=hs(r+o,0)),vs(t,ls(n),o)}var _s=ys,bs=ts,ds=_s,gs=bs(ds),js=gs;const ms=on(js),ut=[{countryName:"Canada",countryCode:"CA",emoji:"\u{1F1E8}\u{1F1E6}",mask:"{+}{1} (000) 000-0000"},{countryName:"United States",countryCode:"US",emoji:"\u{1F1FA}\u{1F1F8}",mask:"{+}{1} (000) 000-0000"},{countryName:"Brazil",countryCode:"BR",emoji:"\u{1F1E7}\u{1F1F7}",mask:"{+}{55} (00) 00000-0000"}];function Os(t){const n=R(t);if(!(n!=null&&n.country)){const e=t.replace(/\D/g,"");return`+${n?.countryCallingCode} (${e.substring(1,4)}) ${e.substring(4,7)}-${e.substring(7)}`}return`+${n.countryCallingCode} ${n.formatNational()}`}function ws(t){const n=R(t);return ut.find(e=>e.countryCode===n?.country)}function zs(t,n){return ms(ut,{[t]:n})}const As=(t,n)=>t.countryName.localeCompare(n.countryName),xs=t=>{const n=R(t);return en(t)&&!!(n!=null&&n.country)};export{rt as _,zs as a,ut as c,ws as g,Os as p,As as s,Yt as t,xs as v};
@@ -1 +1 @@
1
- "use strict";import{colors as t,createTheme as B}from"@mui/material";const i="rgba(0,0,0,0.26)",r="#ffffff",n="#000000",o="#0dbc3d",a="#5ef06d",l="#008a01",s="#164fd6",g="#657bff",d="#0028a3",h="#eb0d28",f="#ff5952",u="#b00000",m="#F5D328",p="#5ef06d",y="#bea008",x="#625410",b="#09225E",c="#F9F9FB",z="#bdbdbd",S="#797979",W=t.grey[400],M=t.grey[500],k=t.grey[600],e={textDisabled:i,white:r,black:n,green:o,lightGreen:a,darkGreen:l,blue:s,lightBlue:g,darkBlue:d,red:h,lightRed:f,darkRed:u,yellow:m,lightYellow:p,darkYellow:y,warningContrast:x,infoContrast:b,lightGrey:c,grey:z,darkGrey:S,lightGreyContrast:W,greyContrast:M,darkGreyContrast:k},w={htmlFontSize:16,fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700,h1:{fontWeight:300,fontSize:"6rem",lineHeight:1.167},h2:{fontWeight:300,fontSize:"3.75rem",lineHeight:1.2},h3:{fontWeight:400,fontSize:"3rem",lineHeight:1.167},h4:{fontWeight:400,fontSize:"2.125rem",lineHeight:1.235},h5:{fontWeight:400,fontSize:"1.5rem",lineHeight:1.334},h6:{fontWeight:500,fontSize:"1.25rem",lineHeight:1.6},subtitle1:{fontWeight:400,fontSize:"1rem",lineHeight:1.75},subtitle2:{fontWeight:500,fontSize:"0.875rem",lineHeight:1.57},body1:{fontWeight:400,fontSize:"1rem",lineHeight:1.5},body2:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.43},button:{fontWeight:500,fontSize:"0.875rem",lineHeight:1.75,textTransform:"uppercase"},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},overline:{fontWeight:400,fontSize:"0.75rem",lineHeight:2.66,textTransform:"uppercase"},inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},C=({primaryFontFace:v})=>B({breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},typography:{fontFamily:v.style.fontFamily,...w},palette:{text:{disabled:e.textDisabled},primary:{main:e.green,light:e.lightGreen,dark:e.darkGreen,contrastText:e.white},secondary:{main:e.blue,light:e.lightBlue,dark:e.darkBlue,contrastText:e.white},error:{main:e.red,light:e.lightRed,dark:e.darkRed,contrastText:e.white},warning:{main:e.yellow,light:e.yellow,dark:e.darkYellow,contrastText:e.white},success:{main:e.green,light:e.green,dark:e.darkGreen,contrastText:e.white},info:{main:e.blue,light:e.lightBlue,dark:e.darkBlue,contrastText:e.infoContrast},neutral:{main:e.grey,light:e.lightGrey,dark:e.darkGrey},neutralContrast:{main:e.greyContrast,light:e.lightGreyContrast,dark:e.darkGreyContrast},warningContrast:{main:e.warningContrast},infoContrast:{main:e.infoContrast}},components:{MuiAlert:{styleOverrides:{action:{overflowWrap:"normal",display:"flex",alignItems:"center",padding:"8px 0",marginRight:0,"& button, & a":{lineHeight:"0"}}}},MuiAlertTitle:{styleOverrides:{root:{...w.body2,fontSize:"1.1rem",fontWeight:700}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:34}}},MuiListItemText:{styleOverrides:{primary:{fontSize:"1rem",fontWeight:800}}},MuiFab:{styleOverrides:{circular:{width:42,height:42},sizeSmall:{width:40,height:40}}},MuiIconButton:{styleOverrides:{root:{"&.Mui-disabled":{svg:{opacity:.4}}}}},MuiButton:{styleOverrides:{root:{fontWeight:800}}},MuiDialog:{defaultProps:{maxWidth:"xs"}},MuiDialogTitle:{styleOverrides:{root:{fontSize:20,fontWeight:800,textAlign:"center"}}},MuiDialogContent:{styleOverrides:{root:{paddingTop:"8px!important",paddingBottom:8}}},MuiDialogActions:{styleOverrides:{root:{paddingLeft:24,paddingRight:24,paddingBottom:24,justifyContent:"space-between","& .MuiButton-root":{marginTop:0}}}},MuiRadio:{styleOverrides:{root:{"&.Mui-disabled":{color:`${e.grey} !important`}}}},MuiTableRow:{styleOverrides:{root:{"& th.MuiTableCell-root":{fontSize:12,fontWeight:700,letterSpacing:1},"& td.MuiTableCell-root":{fontSize:20,fontWeight:300}}}},MuiInputBase:{styleOverrides:{root:{"& .MuiInputBase-input":{fontSize:20,fontWeight:300},"&.MuiInputBase-multiline.MuiInputBase-sizeSmall":{paddingRight:"14px!important"}}}},MuiTextField:{defaultProps:{variant:"outlined",size:"medium"},styleOverrides:{root:{"& .MuiInputBase-multiline textarea":{minHeight:28.75}}}},MuiSelect:{defaultProps:{variant:"outlined",size:"medium"}},MuiAutocomplete:{defaultProps:{size:"medium"}}}}),T="0px -2px 4px -1px rgba(0,0,0,0.2), 0px -4px 5px 0px rgba(0,0,0,0.14), 0px -1px 10px 0px rgba(0,0,0,0.12)",H={bottomSheet:T};export{s as a,n as b,g as c,l as d,d as e,f,o as g,u as h,p as i,y as j,x as k,a as l,b as m,c as n,z as o,S as p,W as q,h as r,M as s,i as t,k as u,e as v,r as w,C as x,m as y,H as z};
1
+ "use strict";import{colors as e,createTheme as B}from"@mui/material";const i="rgba(0,0,0,0.26)",r="#ffffff",n="#000000",o="#0dbc3d",a="#5ef06d",l="#008a01",s="#164fd6",g="#657bff",d="#0028a3",h="#eb0d28",f="#ff5952",u="#b00000",m="#F5D328",p="#5ef06d",y="#bea008",x="#625410",b="#09225E",c="#F9F9FB",S="#bdbdbd",z="#797979",M=e.grey[400],W=e.grey[500],k=e.grey[600],t={textDisabled:i,white:r,black:n,green:o,lightGreen:a,darkGreen:l,blue:s,lightBlue:g,darkBlue:d,red:h,lightRed:f,darkRed:u,yellow:m,lightYellow:p,darkYellow:y,warningContrast:x,infoContrast:b,lightGrey:c,grey:S,darkGrey:z,lightGreyContrast:M,greyContrast:W,darkGreyContrast:k},w={htmlFontSize:16,fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700,h1:{fontWeight:300,fontSize:"6rem",lineHeight:1.167},h2:{fontWeight:300,fontSize:"3.75rem",lineHeight:1.2},h3:{fontWeight:400,fontSize:"3rem",lineHeight:1.167},h4:{fontWeight:400,fontSize:"2.125rem",lineHeight:1.235},h5:{fontWeight:400,fontSize:"1.5rem",lineHeight:1.334},h6:{fontWeight:500,fontSize:"1.25rem",lineHeight:1.6},subtitle1:{fontWeight:400,fontSize:"1rem",lineHeight:1.75},subtitle2:{fontWeight:500,fontSize:"0.875rem",lineHeight:1.57},body1:{fontWeight:400,fontSize:"1rem",lineHeight:1.5},body2:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.43},button:{fontWeight:500,fontSize:"0.875rem",lineHeight:1.75,textTransform:"uppercase"},caption:{fontWeight:400,fontSize:"0.75rem",lineHeight:1.66},overline:{fontWeight:400,fontSize:"0.75rem",lineHeight:2.66,textTransform:"uppercase"},inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},T=({primaryFontFace:v})=>B({breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},typography:{fontFamily:v.style.fontFamily,...w},palette:{text:{disabled:t.textDisabled},primary:{main:t.green,light:t.lightGreen,dark:t.darkGreen,contrastText:t.white},secondary:{main:t.blue,light:t.lightBlue,dark:t.darkBlue,contrastText:t.white},error:{main:t.red,light:t.lightRed,dark:t.darkRed,contrastText:t.white},warning:{main:t.yellow,light:t.yellow,dark:t.darkYellow,contrastText:t.white},success:{main:t.green,light:t.green,dark:t.darkGreen,contrastText:t.white},info:{main:t.blue,light:t.lightBlue,dark:t.darkBlue,contrastText:t.infoContrast},neutral:{main:t.grey,light:t.lightGrey,dark:t.darkGrey},neutralContrast:{main:t.greyContrast,light:t.lightGreyContrast,dark:t.darkGreyContrast},warningContrast:{main:t.warningContrast},infoContrast:{main:t.infoContrast}},components:{MuiAlert:{styleOverrides:{action:{overflowWrap:"normal",display:"flex",alignItems:"center",padding:"8px 0",marginRight:0,"& button, & a":{lineHeight:"0"}}}},MuiAlertTitle:{styleOverrides:{root:{...w.body2,fontSize:"1.1rem",fontWeight:700}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:34}}},MuiListItemText:{styleOverrides:{primary:{fontSize:"1rem",fontWeight:800}}},MuiFab:{styleOverrides:{circular:{width:42,height:42},sizeSmall:{width:40,height:40}}},MuiIconButton:{styleOverrides:{root:{"&.Mui-disabled":{svg:{opacity:.4}}}}},MuiButton:{styleOverrides:{root:{fontWeight:800}}},MuiDialog:{defaultProps:{maxWidth:"xs"}},MuiDialogTitle:{styleOverrides:{root:{fontSize:20,fontWeight:800,textAlign:"center"}}},MuiDialogContent:{styleOverrides:{root:{paddingTop:"8px!important",paddingBottom:8}}},MuiDialogActions:{styleOverrides:{root:{paddingLeft:24,paddingRight:24,paddingBottom:24,justifyContent:"space-between","& .MuiButton-root":{marginTop:0}}}},MuiRadio:{styleOverrides:{root:{"&.Mui-disabled":{color:`${t.grey} !important`}}}},MuiTableRow:{styleOverrides:{root:{"& th.MuiTableCell-root":{fontSize:12,fontWeight:700,letterSpacing:1},"& td.MuiTableCell-root":{fontSize:20,fontWeight:300}}}},MuiInputBase:{styleOverrides:{root:{"& .MuiInputBase-input":{fontSize:20,fontWeight:300},"& .MuiInputBase-input:not(.MuiInputBase-inputSizeSmall)":{paddingTop:"13.625px",paddingBottom:"13.625px"},"&.MuiInputBase-multiline.MuiInputBase-sizeSmall":{paddingRight:"14px!important"}}}},MuiTextField:{defaultProps:{variant:"outlined",size:"medium"},styleOverrides:{root:{"& .MuiInputBase-multiline textarea":{minHeight:28.75}}}},MuiSelect:{defaultProps:{variant:"outlined",size:"medium"}},MuiAutocomplete:{defaultProps:{size:"medium"}}}}),C="0px -2px 4px -1px rgba(0,0,0,0.2), 0px -4px 5px 0px rgba(0,0,0,0.14), 0px -1px 10px 0px rgba(0,0,0,0.12)",H={bottomSheet:C};export{s as a,n as b,g as c,l as d,d as e,f,o as g,u as h,p as i,y as j,x as k,a as l,b as m,c as n,S as o,z as p,M as q,h as r,W as s,i as t,k as u,t as v,r as w,T as x,m as y,H as z};
@@ -1 +1 @@
1
- "use strict";import{b as a,a as s,v as e,e as r,d as t,p as l,u as o,h as d,j as i,g as n,o as g,s as h,m as k,c as y,l as w,n as G,q as C,f as b,i as m,r as u,z as c,t as f,x as p,k as x,w as B,y as R}from"../shared/shadows-DpONhygS.mjs";export{a as black,s as blue,e as colors,r as darkBlue,t as darkGreen,l as darkGrey,o as darkGreyContrast,d as darkRed,i as darkYellow,n as green,g as grey,h as greyContrast,k as infoContrast,y as lightBlue,w as lightGreen,G as lightGrey,C as lightGreyContrast,b as lightRed,m as lightYellow,u as red,c as shadows,f as textDisabled,p as theme,x as warningContrast,B as white,R as yellow};
1
+ "use strict";import{b as a,a as s,v as e,e as r,d as t,p as l,u as o,h as d,j as i,g as n,o as g,s as h,m as k,c as y,l as w,n as G,q as C,f as b,i as m,r as u,z as c,t as f,x as p,k as x,w as B,y as R}from"../shared/shadows-q9E-lLz0.mjs";export{a as black,s as blue,e as colors,r as darkBlue,t as darkGreen,l as darkGrey,o as darkGreyContrast,d as darkRed,i as darkYellow,n as green,g as grey,h as greyContrast,k as infoContrast,y as lightBlue,w as lightGreen,G as lightGrey,C as lightGreyContrast,b as lightRed,m as lightYellow,u as red,c as shadows,f as textDisabled,p as theme,x as warningContrast,B as white,R as yellow};
@@ -1 +1 @@
1
- "use strict";import{wrapPromise as a}from"./wrapPromise/index.mjs";import{f as s,b as o,a as t,c as e,u as r}from"../shared/uuidColor-LRbEKYAZ.mjs";import{c as m,g as i,a as p,p as f,s as n,v as D}from"../shared/phone-DVFDc4Vz.mjs";import{masks as P}from"./masks/index.mjs";import{o as C}from"../shared/omitProperty-DZYdN2vK.mjs";import{s as d}from"../shared/ssn-CTUJ2_Vl.mjs";import{toCapitalize as l,toSentenceCase as Y}from"./string/index.mjs";import{k as c}from"../shared/formatKebabToPretty-Du43TgPC.mjs";export{m as countries,s as formatDateMMDDYYYY,o as formatDateMMYY,t as formatDateToTimestamp,e as formatExtendedDate,i as getPhoneData,p as getPhoneDataByFieldName,c as kebabCaseToPretty,P as masks,C as omitProperties,f as parseToPhoneNational,n as sortByCountryName,d as ssnFormatter,l as toCapitalize,Y as toSentenceCase,r as uuidToHashedColor,D as validatePhone,a as wrapPromise};
1
+ "use strict";import{wrapPromise as a}from"./wrapPromise/index.mjs";import{f as s,b as o,a as t,c as e,u as r}from"../shared/uuidColor-LRbEKYAZ.mjs";import{c as m,g as i,a as p,p as f,s as n,v as D}from"../shared/phone-eqP--V9t.mjs";import{masks as P}from"./masks/index.mjs";import{o as C}from"../shared/omitProperty-DZYdN2vK.mjs";import{s as d}from"../shared/ssn-CTUJ2_Vl.mjs";import{toCapitalize as l,toSentenceCase as Y}from"./string/index.mjs";import{k as c}from"../shared/formatKebabToPretty-Du43TgPC.mjs";export{m as countries,s as formatDateMMDDYYYY,o as formatDateMMYY,t as formatDateToTimestamp,e as formatExtendedDate,i as getPhoneData,p as getPhoneDataByFieldName,c as kebabCaseToPretty,P as masks,C as omitProperties,f as parseToPhoneNational,n as sortByCountryName,d as ssnFormatter,l as toCapitalize,Y as toSentenceCase,r as uuidToHashedColor,D as validatePhone,a as wrapPromise};
@@ -1 +1 @@
1
- "use strict";import"libphonenumber-js";import{c as a,g as s,a as e,p as o,s as t,v as r}from"../../shared/phone-DVFDc4Vz.mjs";export{a as countries,s as getPhoneData,e as getPhoneDataByFieldName,o as parseToPhoneNational,t as sortByCountryName,r as validatePhone};
1
+ "use strict";import"libphonenumber-js";import{c as a,g as s,a as e,p as o,s as t,v as r}from"../../shared/phone-eqP--V9t.mjs";export{a as countries,s as getPhoneData,e as getPhoneDataByFieldName,o as parseToPhoneNational,t as sortByCountryName,r as validatePhone};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verifiedinc-public/shared-ui-elements",
3
- "version": "5.9.1",
3
+ "version": "5.9.3",
4
4
  "description": "A set of UI components, utilities that is shareable with the core apps.",
5
5
  "private": false,
6
6
  "keywords": [],
@@ -1,22 +0,0 @@
1
- import { InputBaseProps, InputProps, SxProps, TextFieldProps } from '@mui/material';
2
- export type PhoneInputProps = {
3
- label?: string;
4
- name?: string;
5
- helperText?: string;
6
- initialValue?: string;
7
- onChange?(value: string): void;
8
- error?: boolean;
9
- handleChangeCountry?(newCountry: string): void;
10
- value?: string;
11
- variant?: TextFieldProps['variant'];
12
- autoFocus?: boolean;
13
- disabled?: boolean;
14
- inputProps?: InputBaseProps['inputProps'];
15
- InputProps?: InputProps;
16
- sx?: SxProps;
17
- };
18
- /**
19
- * Renders a phone input component with country selector and masking.
20
- */
21
- declare function PhoneInput({ name, label, helperText, onChange, initialValue, error, value: valueProp, handleChangeCountry, inputProps: _inputProps, InputProps, }: Readonly<PhoneInputProps>): import("react").JSX.Element;
22
- export default PhoneInput;