@solace-health/ui 0.10.302 → 0.10.304
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.
- package/dist/index.cjs +15 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -48,7 +48,7 @@ var i7__default = /*#__PURE__*/_interopDefault(i7);
|
|
|
48
48
|
var hu__default = /*#__PURE__*/_interopDefault(hu);
|
|
49
49
|
var xs__namespace = /*#__PURE__*/_interopNamespace(xs);
|
|
50
50
|
|
|
51
|
-
var il=Object.create;var o4=Object.defineProperty;var nl=Object.getOwnPropertyDescriptor;var sl=Object.getOwnPropertyNames;var al=Object.getPrototypeOf,ll=Object.prototype.hasOwnProperty;var d2=(C,e)=>()=>(e||C((e={exports:{}}).exports,e),e.exports);var pl=(C,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of sl(e))!ll.call(C,r)&&r!==t&&o4(C,r,{get:()=>e[r],enumerable:!(o=nl(e,r))||o.enumerable});return C};var Ll=(C,e,t)=>(t=C!=null?il(al(C)):{},pl(e||!C||!C.__esModule?o4(t,"default",{value:C,enumerable:!0}):t,C));var xo=d2(Q=>{var M1=typeof Symbol=="function"&&Symbol.for,o6=M1?Symbol.for("react.element"):60103,r6=M1?Symbol.for("react.portal"):60106,C8=M1?Symbol.for("react.fragment"):60107,e8=M1?Symbol.for("react.strict_mode"):60108,t8=M1?Symbol.for("react.profiler"):60114,o8=M1?Symbol.for("react.provider"):60109,r8=M1?Symbol.for("react.context"):60110,i6=M1?Symbol.for("react.async_mode"):60111,i8=M1?Symbol.for("react.concurrent_mode"):60111,n8=M1?Symbol.for("react.forward_ref"):60112,s8=M1?Symbol.for("react.suspense"):60113,mf=M1?Symbol.for("react.suspense_list"):60120,a8=M1?Symbol.for("react.memo"):60115,l8=M1?Symbol.for("react.lazy"):60116,gf=M1?Symbol.for("react.block"):60121,hf=M1?Symbol.for("react.fundamental"):60117,uf=M1?Symbol.for("react.responder"):60118,wf=M1?Symbol.for("react.scope"):60119;function W1(C){if(typeof C=="object"&&C!==null){var e=C.$$typeof;switch(e){case o6:switch(C=C.type,C){case i6:case i8:case C8:case t8:case e8:case s8:return C;default:switch(C=C&&C.$$typeof,C){case r8:case n8:case l8:case a8:case o8:return C;default:return e}}case r6:return e}}}function wo(C){return W1(C)===i8}Q.AsyncMode=i6;Q.ConcurrentMode=i8;Q.ContextConsumer=r8;Q.ContextProvider=o8;Q.Element=o6;Q.ForwardRef=n8;Q.Fragment=C8;Q.Lazy=l8;Q.Memo=a8;Q.Portal=r6;Q.Profiler=t8;Q.StrictMode=e8;Q.Suspense=s8;Q.isAsyncMode=function(C){return wo(C)||W1(C)===i6};Q.isConcurrentMode=wo;Q.isContextConsumer=function(C){return W1(C)===r8};Q.isContextProvider=function(C){return W1(C)===o8};Q.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===o6};Q.isForwardRef=function(C){return W1(C)===n8};Q.isFragment=function(C){return W1(C)===C8};Q.isLazy=function(C){return W1(C)===l8};Q.isMemo=function(C){return W1(C)===a8};Q.isPortal=function(C){return W1(C)===r6};Q.isProfiler=function(C){return W1(C)===t8};Q.isStrictMode=function(C){return W1(C)===e8};Q.isSuspense=function(C){return W1(C)===s8};Q.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===C8||C===i8||C===t8||C===e8||C===s8||C===mf||typeof C=="object"&&C!==null&&(C.$$typeof===l8||C.$$typeof===a8||C.$$typeof===o8||C.$$typeof===r8||C.$$typeof===n8||C.$$typeof===hf||C.$$typeof===uf||C.$$typeof===wf||C.$$typeof===gf)};Q.typeOf=W1;});var yo=d2(j=>{process.env.NODE_ENV!=="production"&&function(){var C=typeof Symbol=="function"&&Symbol.for,e=C?Symbol.for("react.element"):60103,t=C?Symbol.for("react.portal"):60106,o=C?Symbol.for("react.fragment"):60107,r=C?Symbol.for("react.strict_mode"):60108,i=C?Symbol.for("react.profiler"):60114,n=C?Symbol.for("react.provider"):60109,a=C?Symbol.for("react.context"):60110,l=C?Symbol.for("react.async_mode"):60111,p=C?Symbol.for("react.concurrent_mode"):60111,L=C?Symbol.for("react.forward_ref"):60112,d=C?Symbol.for("react.suspense"):60113,c=C?Symbol.for("react.suspense_list"):60120,f=C?Symbol.for("react.memo"):60115,m=C?Symbol.for("react.lazy"):60116,M=C?Symbol.for("react.block"):60121,B=C?Symbol.for("react.fundamental"):60117,Z=C?Symbol.for("react.responder"):60118,k=C?Symbol.for("react.scope"):60119;function S(F){return typeof F=="string"||typeof F=="function"||F===o||F===p||F===i||F===r||F===d||F===c||typeof F=="object"&&F!==null&&(F.$$typeof===m||F.$$typeof===f||F.$$typeof===n||F.$$typeof===a||F.$$typeof===L||F.$$typeof===B||F.$$typeof===Z||F.$$typeof===k||F.$$typeof===M)}function H(F){if(typeof F=="object"&&F!==null){var q8=F.$$typeof;switch(q8){case e:var y7=F.type;switch(y7){case l:case p:case o:case i:case r:case d:return y7;default:var t4=y7&&y7.$$typeof;switch(t4){case a:case L:case m:case f:case n:return t4;default:return q8}}case t:return q8}}}var u=l,b=p,y=a,O=n,K=e,R=L,C1=o,m1=m,g=f,v=t,I=i,U=r,A=d,G=!1;function x(F){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(F)||H(F)===l}function D(F){return H(F)===p}function X(F){return H(F)===a}function Y(F){return H(F)===n}function J(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function S1(F){return H(F)===L}function y1(F){return H(F)===o}function L2(F){return H(F)===m}function x7(F){return H(F)===f}function el(F){return H(F)===t}function tl(F){return H(F)===i}function ol(F){return H(F)===r}function rl(F){return H(F)===d}j.AsyncMode=u,j.ConcurrentMode=b,j.ContextConsumer=y,j.ContextProvider=O,j.Element=K,j.ForwardRef=R,j.Fragment=C1,j.Lazy=m1,j.Memo=g,j.Portal=v,j.Profiler=I,j.StrictMode=U,j.Suspense=A,j.isAsyncMode=x,j.isConcurrentMode=D,j.isContextConsumer=X,j.isContextProvider=Y,j.isElement=J,j.isForwardRef=S1,j.isFragment=y1,j.isLazy=L2,j.isMemo=x7,j.isPortal=el,j.isProfiler=tl,j.isStrictMode=ol,j.isSuspense=rl,j.isValidElementType=S,j.typeOf=H;}();});var s6=d2((RI,n6)=>{process.env.NODE_ENV==="production"?n6.exports=xo():n6.exports=yo();});var bo=d2((UI,Mo)=>{var vo=Object.getOwnPropertySymbols,xf=Object.prototype.hasOwnProperty,yf=Object.prototype.propertyIsEnumerable;function vf(C){if(C==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(C)}function Mf(){try{if(!Object.assign)return !1;var C=new String("abc");if(C[5]="de",Object.getOwnPropertyNames(C)[0]==="5")return !1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;var o=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(o.join("")!=="0123456789")return !1;var r={};return "abcdefghijklmnopqrst".split("").forEach(function(i){r[i]=i;}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return !1}}Mo.exports=Mf()?Object.assign:function(C,e){for(var t,o=vf(C),r,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var n in t)xf.call(t,n)&&(o[n]=t[n]);if(vo){r=vo(t);for(var a=0;a<r.length;a++)yf.call(t,r[a])&&(o[r[a]]=t[r[a]]);}}return o};});var p8=d2((GI,ko)=>{var bf="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ko.exports=bf;});var a6=d2(($I,Ho)=>{Ho.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var Po=d2((zI,So)=>{var l6=function(){};process.env.NODE_ENV!=="production"&&(Vo=p8(),L8={},_o=a6(),l6=function(C){var e="Warning: "+C;typeof console<"u"&&console.error(e);try{throw new Error(e)}catch{}});var Vo,L8,_o;function Zo(C,e,t,o,r){if(process.env.NODE_ENV!=="production"){for(var i in C)if(_o(C,i)){var n;try{if(typeof C[i]!="function"){var a=Error((o||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof C[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw a.name="Invariant Violation",a}n=C[i](e,i,o,t,null,Vo);}catch(p){n=p;}if(n&&!(n instanceof Error)&&l6((o||"React class")+": type specification of "+t+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof n+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),n instanceof Error&&!(n.message in L8)){L8[n.message]=!0;var l=r?r():"";l6("Failed "+t+" type: "+n.message+(l??""));}}}}Zo.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(L8={});};So.exports=Zo;});var Fo=d2((WI,Bo)=>{var kf=s6(),Hf=bo(),s5=p8(),p6=a6(),Eo=Po(),a5=function(){};process.env.NODE_ENV!=="production"&&(a5=function(C){var e="Warning: "+C;typeof console<"u"&&console.error(e);try{throw new Error(e)}catch{}});function d8(){return null}Bo.exports=function(C,e){var t=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function r(g){var v=g&&(t&&g[t]||g[o]);if(typeof v=="function")return v}var i="<<anonymous>>",n={array:L("array"),bigint:L("bigint"),bool:L("boolean"),func:L("function"),number:L("number"),object:L("object"),string:L("string"),symbol:L("symbol"),any:d(),arrayOf:c,element:f(),elementType:m(),instanceOf:M,node:S(),objectOf:Z,oneOf:B,oneOfType:k,shape:u,exact:b};function a(g,v){return g===v?g!==0||1/g===1/v:g!==g&&v!==v}function l(g,v){this.message=g,this.data=v&&typeof v=="object"?v:{},this.stack="";}l.prototype=Error.prototype;function p(g){if(process.env.NODE_ENV!=="production")var v={},I=0;function U(G,x,D,X,Y,J,S1){if(X=X||i,J=J||D,S1!==s5){if(e){var y1=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y1.name="Invariant Violation",y1}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var L2=X+":"+D;!v[L2]&&I<3&&(a5("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+X+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),v[L2]=!0,I++);}}return x[D]==null?G?x[D]===null?new l("The "+Y+" `"+J+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new l("The "+Y+" `"+J+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:g(x,D,X,Y,J)}var A=U.bind(null,!1);return A.isRequired=U.bind(null,!0),A}function L(g){function v(I,U,A,G,x,D){var X=I[U],Y=K(X);if(Y!==g){var J=R(X);return new l("Invalid "+G+" `"+x+"` of type "+("`"+J+"` supplied to `"+A+"`, expected ")+("`"+g+"`."),{expectedType:g})}return null}return p(v)}function d(){return p(d8)}function c(g){function v(I,U,A,G,x){if(typeof g!="function")return new l("Property `"+x+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var D=I[U];if(!Array.isArray(D)){var X=K(D);return new l("Invalid "+G+" `"+x+"` of type "+("`"+X+"` supplied to `"+A+"`, expected an array."))}for(var Y=0;Y<D.length;Y++){var J=g(D,Y,A,G,x+"["+Y+"]",s5);if(J instanceof Error)return J}return null}return p(v)}function f(){function g(v,I,U,A,G){var x=v[I];if(!C(x)){var D=K(x);return new l("Invalid "+A+" `"+G+"` of type "+("`"+D+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return p(g)}function m(){function g(v,I,U,A,G){var x=v[I];if(!kf.isValidElementType(x)){var D=K(x);return new l("Invalid "+A+" `"+G+"` of type "+("`"+D+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return p(g)}function M(g){function v(I,U,A,G,x){if(!(I[U]instanceof g)){var D=g.name||i,X=m1(I[U]);return new l("Invalid "+G+" `"+x+"` of type "+("`"+X+"` supplied to `"+A+"`, expected ")+("instance of `"+D+"`."))}return null}return p(v)}function B(g){if(!Array.isArray(g))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a5("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a5("Invalid argument supplied to oneOf, expected an array.")),d8;function v(I,U,A,G,x){for(var D=I[U],X=0;X<g.length;X++)if(a(D,g[X]))return null;var Y=JSON.stringify(g,function(S1,y1){var L2=R(y1);return L2==="symbol"?String(y1):y1});return new l("Invalid "+G+" `"+x+"` of value `"+String(D)+"` "+("supplied to `"+A+"`, expected one of "+Y+"."))}return p(v)}function Z(g){function v(I,U,A,G,x){if(typeof g!="function")return new l("Property `"+x+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var D=I[U],X=K(D);if(X!=="object")return new l("Invalid "+G+" `"+x+"` of type "+("`"+X+"` supplied to `"+A+"`, expected an object."));for(var Y in D)if(p6(D,Y)){var J=g(D,Y,A,G,x+"."+Y,s5);if(J instanceof Error)return J}return null}return p(v)}function k(g){if(!Array.isArray(g))return process.env.NODE_ENV!=="production"&&a5("Invalid argument supplied to oneOfType, expected an instance of array."),d8;for(var v=0;v<g.length;v++){var I=g[v];if(typeof I!="function")return a5("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+C1(I)+" at index "+v+"."),d8}function U(A,G,x,D,X){for(var Y=[],J=0;J<g.length;J++){var S1=g[J],y1=S1(A,G,x,D,X,s5);if(y1==null)return null;y1.data&&p6(y1.data,"expectedType")&&Y.push(y1.data.expectedType);}var L2=Y.length>0?", expected one of type ["+Y.join(", ")+"]":"";return new l("Invalid "+D+" `"+X+"` supplied to "+("`"+x+"`"+L2+"."))}return p(U)}function S(){function g(v,I,U,A,G){return y(v[I])?null:new l("Invalid "+A+" `"+G+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return p(g)}function H(g,v,I,U,A){return new l((g||"React class")+": "+v+" type `"+I+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function u(g){function v(I,U,A,G,x){var D=I[U],X=K(D);if(X!=="object")return new l("Invalid "+G+" `"+x+"` of type `"+X+"` "+("supplied to `"+A+"`, expected `object`."));for(var Y in g){var J=g[Y];if(typeof J!="function")return H(A,G,x,Y,R(J));var S1=J(D,Y,A,G,x+"."+Y,s5);if(S1)return S1}return null}return p(v)}function b(g){function v(I,U,A,G,x){var D=I[U],X=K(D);if(X!=="object")return new l("Invalid "+G+" `"+x+"` of type `"+X+"` "+("supplied to `"+A+"`, expected `object`."));var Y=Hf({},I[U],g);for(var J in Y){var S1=g[J];if(p6(g,J)&&typeof S1!="function")return H(A,G,x,J,R(S1));if(!S1)return new l("Invalid "+G+" `"+x+"` key `"+J+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(I[U],null," ")+`
|
|
51
|
+
var il=Object.create;var o4=Object.defineProperty;var nl=Object.getOwnPropertyDescriptor;var sl=Object.getOwnPropertyNames;var al=Object.getPrototypeOf,ll=Object.prototype.hasOwnProperty;var d2=(C,e)=>()=>(e||C((e={exports:{}}).exports,e),e.exports);var pl=(C,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of sl(e))!ll.call(C,r)&&r!==t&&o4(C,r,{get:()=>e[r],enumerable:!(o=nl(e,r))||o.enumerable});return C};var Ll=(C,e,t)=>(t=C!=null?il(al(C)):{},pl(e||!C||!C.__esModule?o4(t,"default",{value:C,enumerable:!0}):t,C));var xo=d2(Q=>{var M1=typeof Symbol=="function"&&Symbol.for,o6=M1?Symbol.for("react.element"):60103,r6=M1?Symbol.for("react.portal"):60106,C8=M1?Symbol.for("react.fragment"):60107,e8=M1?Symbol.for("react.strict_mode"):60108,t8=M1?Symbol.for("react.profiler"):60114,o8=M1?Symbol.for("react.provider"):60109,r8=M1?Symbol.for("react.context"):60110,i6=M1?Symbol.for("react.async_mode"):60111,i8=M1?Symbol.for("react.concurrent_mode"):60111,n8=M1?Symbol.for("react.forward_ref"):60112,s8=M1?Symbol.for("react.suspense"):60113,mf=M1?Symbol.for("react.suspense_list"):60120,a8=M1?Symbol.for("react.memo"):60115,l8=M1?Symbol.for("react.lazy"):60116,gf=M1?Symbol.for("react.block"):60121,hf=M1?Symbol.for("react.fundamental"):60117,uf=M1?Symbol.for("react.responder"):60118,wf=M1?Symbol.for("react.scope"):60119;function W1(C){if(typeof C=="object"&&C!==null){var e=C.$$typeof;switch(e){case o6:switch(C=C.type,C){case i6:case i8:case C8:case t8:case e8:case s8:return C;default:switch(C=C&&C.$$typeof,C){case r8:case n8:case l8:case a8:case o8:return C;default:return e}}case r6:return e}}}function wo(C){return W1(C)===i8}Q.AsyncMode=i6;Q.ConcurrentMode=i8;Q.ContextConsumer=r8;Q.ContextProvider=o8;Q.Element=o6;Q.ForwardRef=n8;Q.Fragment=C8;Q.Lazy=l8;Q.Memo=a8;Q.Portal=r6;Q.Profiler=t8;Q.StrictMode=e8;Q.Suspense=s8;Q.isAsyncMode=function(C){return wo(C)||W1(C)===i6};Q.isConcurrentMode=wo;Q.isContextConsumer=function(C){return W1(C)===r8};Q.isContextProvider=function(C){return W1(C)===o8};Q.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===o6};Q.isForwardRef=function(C){return W1(C)===n8};Q.isFragment=function(C){return W1(C)===C8};Q.isLazy=function(C){return W1(C)===l8};Q.isMemo=function(C){return W1(C)===a8};Q.isPortal=function(C){return W1(C)===r6};Q.isProfiler=function(C){return W1(C)===t8};Q.isStrictMode=function(C){return W1(C)===e8};Q.isSuspense=function(C){return W1(C)===s8};Q.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===C8||C===i8||C===t8||C===e8||C===s8||C===mf||typeof C=="object"&&C!==null&&(C.$$typeof===l8||C.$$typeof===a8||C.$$typeof===o8||C.$$typeof===r8||C.$$typeof===n8||C.$$typeof===hf||C.$$typeof===uf||C.$$typeof===wf||C.$$typeof===gf)};Q.typeOf=W1;});var yo=d2(j=>{process.env.NODE_ENV!=="production"&&function(){var C=typeof Symbol=="function"&&Symbol.for,e=C?Symbol.for("react.element"):60103,t=C?Symbol.for("react.portal"):60106,o=C?Symbol.for("react.fragment"):60107,r=C?Symbol.for("react.strict_mode"):60108,i=C?Symbol.for("react.profiler"):60114,n=C?Symbol.for("react.provider"):60109,a=C?Symbol.for("react.context"):60110,l=C?Symbol.for("react.async_mode"):60111,p=C?Symbol.for("react.concurrent_mode"):60111,L=C?Symbol.for("react.forward_ref"):60112,d=C?Symbol.for("react.suspense"):60113,c=C?Symbol.for("react.suspense_list"):60120,f=C?Symbol.for("react.memo"):60115,m=C?Symbol.for("react.lazy"):60116,M=C?Symbol.for("react.block"):60121,B=C?Symbol.for("react.fundamental"):60117,Z=C?Symbol.for("react.responder"):60118,k=C?Symbol.for("react.scope"):60119;function P(F){return typeof F=="string"||typeof F=="function"||F===o||F===p||F===i||F===r||F===d||F===c||typeof F=="object"&&F!==null&&(F.$$typeof===m||F.$$typeof===f||F.$$typeof===n||F.$$typeof===a||F.$$typeof===L||F.$$typeof===B||F.$$typeof===Z||F.$$typeof===k||F.$$typeof===M)}function H(F){if(typeof F=="object"&&F!==null){var q8=F.$$typeof;switch(q8){case e:var y7=F.type;switch(y7){case l:case p:case o:case i:case r:case d:return y7;default:var t4=y7&&y7.$$typeof;switch(t4){case a:case L:case m:case f:case n:return t4;default:return q8}}case t:return q8}}}var u=l,b=p,y=a,O=n,K=e,R=L,C1=o,m1=m,g=f,v=t,I=i,U=r,A=d,G=!1;function x(F){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(F)||H(F)===l}function D(F){return H(F)===p}function X(F){return H(F)===a}function Y(F){return H(F)===n}function J(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function S1(F){return H(F)===L}function y1(F){return H(F)===o}function L2(F){return H(F)===m}function x7(F){return H(F)===f}function el(F){return H(F)===t}function tl(F){return H(F)===i}function ol(F){return H(F)===r}function rl(F){return H(F)===d}j.AsyncMode=u,j.ConcurrentMode=b,j.ContextConsumer=y,j.ContextProvider=O,j.Element=K,j.ForwardRef=R,j.Fragment=C1,j.Lazy=m1,j.Memo=g,j.Portal=v,j.Profiler=I,j.StrictMode=U,j.Suspense=A,j.isAsyncMode=x,j.isConcurrentMode=D,j.isContextConsumer=X,j.isContextProvider=Y,j.isElement=J,j.isForwardRef=S1,j.isFragment=y1,j.isLazy=L2,j.isMemo=x7,j.isPortal=el,j.isProfiler=tl,j.isStrictMode=ol,j.isSuspense=rl,j.isValidElementType=P,j.typeOf=H;}();});var s6=d2((RI,n6)=>{process.env.NODE_ENV==="production"?n6.exports=xo():n6.exports=yo();});var bo=d2((UI,Mo)=>{var vo=Object.getOwnPropertySymbols,xf=Object.prototype.hasOwnProperty,yf=Object.prototype.propertyIsEnumerable;function vf(C){if(C==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(C)}function Mf(){try{if(!Object.assign)return !1;var C=new String("abc");if(C[5]="de",Object.getOwnPropertyNames(C)[0]==="5")return !1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;var o=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(o.join("")!=="0123456789")return !1;var r={};return "abcdefghijklmnopqrst".split("").forEach(function(i){r[i]=i;}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return !1}}Mo.exports=Mf()?Object.assign:function(C,e){for(var t,o=vf(C),r,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var n in t)xf.call(t,n)&&(o[n]=t[n]);if(vo){r=vo(t);for(var a=0;a<r.length;a++)yf.call(t,r[a])&&(o[r[a]]=t[r[a]]);}}return o};});var p8=d2((GI,ko)=>{var bf="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";ko.exports=bf;});var a6=d2(($I,Ho)=>{Ho.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var Po=d2((zI,So)=>{var l6=function(){};process.env.NODE_ENV!=="production"&&(Vo=p8(),L8={},_o=a6(),l6=function(C){var e="Warning: "+C;typeof console<"u"&&console.error(e);try{throw new Error(e)}catch{}});var Vo,L8,_o;function Zo(C,e,t,o,r){if(process.env.NODE_ENV!=="production"){for(var i in C)if(_o(C,i)){var n;try{if(typeof C[i]!="function"){var a=Error((o||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof C[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw a.name="Invariant Violation",a}n=C[i](e,i,o,t,null,Vo);}catch(p){n=p;}if(n&&!(n instanceof Error)&&l6((o||"React class")+": type specification of "+t+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof n+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),n instanceof Error&&!(n.message in L8)){L8[n.message]=!0;var l=r?r():"";l6("Failed "+t+" type: "+n.message+(l??""));}}}}Zo.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(L8={});};So.exports=Zo;});var Fo=d2((WI,Bo)=>{var kf=s6(),Hf=bo(),s5=p8(),p6=a6(),Eo=Po(),a5=function(){};process.env.NODE_ENV!=="production"&&(a5=function(C){var e="Warning: "+C;typeof console<"u"&&console.error(e);try{throw new Error(e)}catch{}});function d8(){return null}Bo.exports=function(C,e){var t=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function r(g){var v=g&&(t&&g[t]||g[o]);if(typeof v=="function")return v}var i="<<anonymous>>",n={array:L("array"),bigint:L("bigint"),bool:L("boolean"),func:L("function"),number:L("number"),object:L("object"),string:L("string"),symbol:L("symbol"),any:d(),arrayOf:c,element:f(),elementType:m(),instanceOf:M,node:P(),objectOf:Z,oneOf:B,oneOfType:k,shape:u,exact:b};function a(g,v){return g===v?g!==0||1/g===1/v:g!==g&&v!==v}function l(g,v){this.message=g,this.data=v&&typeof v=="object"?v:{},this.stack="";}l.prototype=Error.prototype;function p(g){if(process.env.NODE_ENV!=="production")var v={},I=0;function U(G,x,D,X,Y,J,S1){if(X=X||i,J=J||D,S1!==s5){if(e){var y1=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y1.name="Invariant Violation",y1}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var L2=X+":"+D;!v[L2]&&I<3&&(a5("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+X+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),v[L2]=!0,I++);}}return x[D]==null?G?x[D]===null?new l("The "+Y+" `"+J+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new l("The "+Y+" `"+J+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:g(x,D,X,Y,J)}var A=U.bind(null,!1);return A.isRequired=U.bind(null,!0),A}function L(g){function v(I,U,A,G,x,D){var X=I[U],Y=K(X);if(Y!==g){var J=R(X);return new l("Invalid "+G+" `"+x+"` of type "+("`"+J+"` supplied to `"+A+"`, expected ")+("`"+g+"`."),{expectedType:g})}return null}return p(v)}function d(){return p(d8)}function c(g){function v(I,U,A,G,x){if(typeof g!="function")return new l("Property `"+x+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var D=I[U];if(!Array.isArray(D)){var X=K(D);return new l("Invalid "+G+" `"+x+"` of type "+("`"+X+"` supplied to `"+A+"`, expected an array."))}for(var Y=0;Y<D.length;Y++){var J=g(D,Y,A,G,x+"["+Y+"]",s5);if(J instanceof Error)return J}return null}return p(v)}function f(){function g(v,I,U,A,G){var x=v[I];if(!C(x)){var D=K(x);return new l("Invalid "+A+" `"+G+"` of type "+("`"+D+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return p(g)}function m(){function g(v,I,U,A,G){var x=v[I];if(!kf.isValidElementType(x)){var D=K(x);return new l("Invalid "+A+" `"+G+"` of type "+("`"+D+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return p(g)}function M(g){function v(I,U,A,G,x){if(!(I[U]instanceof g)){var D=g.name||i,X=m1(I[U]);return new l("Invalid "+G+" `"+x+"` of type "+("`"+X+"` supplied to `"+A+"`, expected ")+("instance of `"+D+"`."))}return null}return p(v)}function B(g){if(!Array.isArray(g))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a5("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a5("Invalid argument supplied to oneOf, expected an array.")),d8;function v(I,U,A,G,x){for(var D=I[U],X=0;X<g.length;X++)if(a(D,g[X]))return null;var Y=JSON.stringify(g,function(S1,y1){var L2=R(y1);return L2==="symbol"?String(y1):y1});return new l("Invalid "+G+" `"+x+"` of value `"+String(D)+"` "+("supplied to `"+A+"`, expected one of "+Y+"."))}return p(v)}function Z(g){function v(I,U,A,G,x){if(typeof g!="function")return new l("Property `"+x+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var D=I[U],X=K(D);if(X!=="object")return new l("Invalid "+G+" `"+x+"` of type "+("`"+X+"` supplied to `"+A+"`, expected an object."));for(var Y in D)if(p6(D,Y)){var J=g(D,Y,A,G,x+"."+Y,s5);if(J instanceof Error)return J}return null}return p(v)}function k(g){if(!Array.isArray(g))return process.env.NODE_ENV!=="production"&&a5("Invalid argument supplied to oneOfType, expected an instance of array."),d8;for(var v=0;v<g.length;v++){var I=g[v];if(typeof I!="function")return a5("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+C1(I)+" at index "+v+"."),d8}function U(A,G,x,D,X){for(var Y=[],J=0;J<g.length;J++){var S1=g[J],y1=S1(A,G,x,D,X,s5);if(y1==null)return null;y1.data&&p6(y1.data,"expectedType")&&Y.push(y1.data.expectedType);}var L2=Y.length>0?", expected one of type ["+Y.join(", ")+"]":"";return new l("Invalid "+D+" `"+X+"` supplied to "+("`"+x+"`"+L2+"."))}return p(U)}function P(){function g(v,I,U,A,G){return y(v[I])?null:new l("Invalid "+A+" `"+G+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return p(g)}function H(g,v,I,U,A){return new l((g||"React class")+": "+v+" type `"+I+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function u(g){function v(I,U,A,G,x){var D=I[U],X=K(D);if(X!=="object")return new l("Invalid "+G+" `"+x+"` of type `"+X+"` "+("supplied to `"+A+"`, expected `object`."));for(var Y in g){var J=g[Y];if(typeof J!="function")return H(A,G,x,Y,R(J));var S1=J(D,Y,A,G,x+"."+Y,s5);if(S1)return S1}return null}return p(v)}function b(g){function v(I,U,A,G,x){var D=I[U],X=K(D);if(X!=="object")return new l("Invalid "+G+" `"+x+"` of type `"+X+"` "+("supplied to `"+A+"`, expected `object`."));var Y=Hf({},I[U],g);for(var J in Y){var S1=g[J];if(p6(g,J)&&typeof S1!="function")return H(A,G,x,J,R(S1));if(!S1)return new l("Invalid "+G+" `"+x+"` key `"+J+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(I[U],null," ")+`
|
|
52
52
|
Valid keys: `+JSON.stringify(Object.keys(g),null," "));var y1=S1(D,J,A,G,x+"."+J,s5);if(y1)return y1}return null}return p(v)}function y(g){switch(typeof g){case"number":case"string":case"undefined":return !0;case"boolean":return !g;case"object":if(Array.isArray(g))return g.every(y);if(g===null||C(g))return !0;var v=r(g);if(v){var I=v.call(g),U;if(v!==g.entries){for(;!(U=I.next()).done;)if(!y(U.value))return !1}else for(;!(U=I.next()).done;){var A=U.value;if(A&&!y(A[1]))return !1}}else return !1;return !0;default:return !1}}function O(g,v){return g==="symbol"?!0:v?v["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&v instanceof Symbol:!1}function K(g){var v=typeof g;return Array.isArray(g)?"array":g instanceof RegExp?"object":O(v,g)?"symbol":v}function R(g){if(typeof g>"u"||g===null)return ""+g;var v=K(g);if(v==="object"){if(g instanceof Date)return "date";if(g instanceof RegExp)return "regexp"}return v}function C1(g){var v=R(g);switch(v){case"array":case"object":return "an "+v;case"boolean":case"date":case"regexp":return "a "+v;default:return v}}function m1(g){return !g.constructor||!g.constructor.name?i:g.constructor.name}return n.checkPropTypes=Eo,n.resetWarningCache=Eo.resetWarningCache,n.PropTypes=n,n};});var Ao=d2((NI,Oo)=>{var Vf=p8();function Do(){}function Io(){}Io.resetWarningCache=Do;Oo.exports=function(){function C(o,r,i,n,a,l){if(l!==Vf){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}C.isRequired=C;function e(){return C}var t={array:C,bigint:C,bool:C,func:C,number:C,object:C,string:C,symbol:C,any:C,arrayOf:e,element:C,elementType:C,instanceOf:e,node:C,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Io,resetWarningCache:Do};return t.PropTypes=t,t};});var Uo=d2((XI,L6)=>{process.env.NODE_ENV!=="production"?(To=s6(),Ro=!0,L6.exports=Fo()(To.isElement,Ro)):L6.exports=Ao()();var To,Ro;});var ml={from:{opacity:0},to:{opacity:1}},gl={from:{transform:"translateY(50px)",opacity:0},to:{transform:"translateY(0)",opacity:1}},hl=(C,e,t)=>{if(e&&t)return {to:e,from:t};switch(C){case"fadeIn":return ml;case"slideIn":return gl;default:return {to:e,from:t}}},ul=({children:C=null,delay:e=0,type:t="fadeIn",to:o=null,from:r=null,trigger:i=!0,disabled:n=!1,style:a={},config:l="default",animationProps:p={},...L})=>{let{to:d,from:c}=hl(t,o,r),f=web.useSpring({from:c,to:i?d:c,delay:e,config:web.config[l],...p});return n?jsxRuntime.jsx("div",{...L,children:C}):jsxRuntime.jsx(web.animated.div,{style:{...a,...f},...L,children:C})},f2=ul;var Ml=$__default.default(web.animated.div)`
|
|
53
53
|
position: absolute;
|
|
54
54
|
top: 1px;
|
|
@@ -784,11 +784,11 @@ Valid keys: `+JSON.stringify(Object.keys(g),null," "));var y1=S1(D,J,A,G,x+"."+
|
|
|
784
784
|
gap: 8px;
|
|
785
785
|
margin-top: 6px;
|
|
786
786
|
margin-bottom: ${({marginBottom:C})=>C}px;
|
|
787
|
-
`,ff=({children:C=null,text:e="This field is required",includeIcon:t=!0,marginBottom:o=0})=>jsxRuntime.jsxs(df,{marginBottom:o,children:[t&&jsxRuntime.jsx(T.ErrorExclamation,{}),jsxRuntime.jsx(w.Body,{size:"xs",color:"#DA4D54",children:C||e})]}),N=ff;var b1=Ll(Uo(),1);var Go=[],l5="";function d6({previousConformedValue:C=l5,previousPlaceholder:e=l5,currentCaretPosition:t=0,conformedValue:o,rawValue:r,placeholderChar:i,placeholder:n,indexesOfPipedChars:a=Go,caretTrapIndexes:l=Go}){if(t===0||!r.length)return 0;let p=r.length,L=C.length,d=n.length,c=o.length,f=p-L,m=f>0,M=L===0;if(f>1&&!m&&!M)return t;let Z=m&&(C===o||o===n),k=0,
|
|
787
|
+
`,ff=({children:C=null,text:e="This field is required",includeIcon:t=!0,marginBottom:o=0})=>jsxRuntime.jsxs(df,{marginBottom:o,children:[t&&jsxRuntime.jsx(T.ErrorExclamation,{}),jsxRuntime.jsx(w.Body,{size:"xs",color:"#DA4D54",children:C||e})]}),N=ff;var b1=Ll(Uo(),1);var Go=[],l5="";function d6({previousConformedValue:C=l5,previousPlaceholder:e=l5,currentCaretPosition:t=0,conformedValue:o,rawValue:r,placeholderChar:i,placeholder:n,indexesOfPipedChars:a=Go,caretTrapIndexes:l=Go}){if(t===0||!r.length)return 0;let p=r.length,L=C.length,d=n.length,c=o.length,f=p-L,m=f>0,M=L===0;if(f>1&&!m&&!M)return t;let Z=m&&(C===o||o===n),k=0,P,H;if(Z)k=t-f;else {let u=o.toLowerCase(),O=r.toLowerCase().substr(0,t).split(l5).filter(x=>u.indexOf(x)!==-1);H=O[O.length-1];let K=e.substr(0,O.length).split(l5).filter(x=>x!==i).length,C1=n.substr(0,O.length).split(l5).filter(x=>x!==i).length!==K,m1=e[O.length-1]!==void 0&&n[O.length-2]!==void 0&&e[O.length-1]!==i&&e[O.length-1]!==n[O.length-1]&&e[O.length-1]===n[O.length-2];!m&&(C1||m1)&&K>0&&n.indexOf(H)>-1&&r[t]!==void 0&&(P=!0,H=r[t]);let v=a.map(x=>u[x]).filter(x=>x===H).length,I=O.filter(x=>x===H).length,A=n.substr(0,n.indexOf(i)).split(l5).filter((x,D)=>x===H&&r[D]!==x).length+I+v+(P?1:0),G=0;for(let x=0;x<c;x++){let D=u[x];if(k=x+1,D===H&&G++,G>=A)break}}if(m){let u=k;for(let b=k;b<=d;b++)if(n[b]===i&&(u=b),n[b]===i||l.indexOf(b)!==-1||b===d)return u}else if(P){for(let u=k-1;u>=0;u--)if(o[u]===H||l.indexOf(u)!==-1||u===0)return u}else for(let u=k;u>=0;u--)if(n[u-1]===i||l.indexOf(u)!==-1||u===0)return u}var p5="_",J5="function";var _f=[];function Y5(C=_f,e=p5){if(!f6(C))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(C.indexOf(e)!==-1)throw new Error(`Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.
|
|
788
788
|
|
|
789
789
|
The placeholder character that was received is: ${JSON.stringify(e)}
|
|
790
790
|
|
|
791
|
-
The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instanceof RegExp?e:t).join("")}function f6(C){return Array.isArray&&Array.isArray(C)||C instanceof Array}function c6(C){return typeof C=="string"||C instanceof String}function $o(C){return typeof C=="number"&&C.length===void 0&&!isNaN(C)}function K5(C){return typeof C>"u"||C===null}var Zf="[]";function f8(C){let e=[],t;for(;t=C.indexOf(Zf),t!==-1;)e.push(t),C.splice(t,1);return {maskWithoutCaretTraps:C,indexes:e}}var Sf=[],B3="";function m6(C=B3,e=Sf,t={}){if(!f6(e))if(typeof e===J5)e=e(C,t),e=f8(e).maskWithoutCaretTraps;else throw new Error("Text-mask:conformToMask; The mask property must be an array.");let{guide:o=!0,previousConformedValue:r=B3,placeholderChar:i=p5,placeholder:n=Y5(e,i),currentCaretPosition:a,keepCharPositions:l}=t,p=o===!1&&r!==void 0,L=C.length,d=r.length,c=n.length,f=e.length,m=L-d,M=m>0,B=a+(M?-m:0),Z=B+Math.abs(m);if(l===!0&&!M){let u=B3;for(let b=B;b<Z;b++)n[b]===i&&(u+=i);C=C.slice(0,B)+u+C.slice(B,L);}let k=C.split(B3).map((u,b)=>({char:u,isNew:b>=B&&b<Z}));for(let u=L-1;u>=0;u--){let{char:b}=k[u];if(b!==i){let y=u>=B&&d===f;b===n[y?u-m:u]&&k.splice(u,1);}}let
|
|
791
|
+
The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instanceof RegExp?e:t).join("")}function f6(C){return Array.isArray&&Array.isArray(C)||C instanceof Array}function c6(C){return typeof C=="string"||C instanceof String}function $o(C){return typeof C=="number"&&C.length===void 0&&!isNaN(C)}function K5(C){return typeof C>"u"||C===null}var Zf="[]";function f8(C){let e=[],t;for(;t=C.indexOf(Zf),t!==-1;)e.push(t),C.splice(t,1);return {maskWithoutCaretTraps:C,indexes:e}}var Sf=[],B3="";function m6(C=B3,e=Sf,t={}){if(!f6(e))if(typeof e===J5)e=e(C,t),e=f8(e).maskWithoutCaretTraps;else throw new Error("Text-mask:conformToMask; The mask property must be an array.");let{guide:o=!0,previousConformedValue:r=B3,placeholderChar:i=p5,placeholder:n=Y5(e,i),currentCaretPosition:a,keepCharPositions:l}=t,p=o===!1&&r!==void 0,L=C.length,d=r.length,c=n.length,f=e.length,m=L-d,M=m>0,B=a+(M?-m:0),Z=B+Math.abs(m);if(l===!0&&!M){let u=B3;for(let b=B;b<Z;b++)n[b]===i&&(u+=i);C=C.slice(0,B)+u+C.slice(B,L);}let k=C.split(B3).map((u,b)=>({char:u,isNew:b>=B&&b<Z}));for(let u=L-1;u>=0;u--){let{char:b}=k[u];if(b!==i){let y=u>=B&&d===f;b===n[y?u-m:u]&&k.splice(u,1);}}let P=B3,H=!1;C:for(let u=0;u<c;u++){let b=n[u];if(b===i){if(k.length>0)for(;k.length>0;){let{char:y,isNew:O}=k.shift();if(y===i&&p!==!0){P+=i;continue C}else if(e[u].test(y)){if(l!==!0||O===!1||r===B3||o===!1||!M)P+=y;else {let K=k.length,R=null;for(let C1=0;C1<K;C1++){let m1=k[C1];if(m1.char!==i&&m1.isNew===!1)break;if(m1.char===i){R=C1;break}}R!==null?(P+=y,k.splice(R,1)):u--;}continue C}else H=!0;}p===!1&&(P+=n.substr(u,c));break}else P+=b;}if(p&&M===!1){let u=null;for(let b=0;b<P.length;b++)n[b]===i&&(u=b);u!==null?P=P.substr(0,u+1):P=B3;}return {conformedValue:P,meta:{someCharsRejected:H}}}var Wo="",zo="none",Pf="object",Ef=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),Bf=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout;function g6(C){let e={previousConformedValue:void 0,previousPlaceholder:void 0};return {state:e,update(t,{inputElement:o,mask:r,guide:i,pipe:n,placeholderChar:a=p5,keepCharPositions:l=!1,showMask:p=!1}=C){if(typeof t>"u"&&(t=o.value),t===e.previousConformedValue)return;typeof r===Pf&&r.pipe!==void 0&&r.mask!==void 0&&(n=r.pipe,r=r.mask);let L,d;if(r instanceof Array&&(L=Y5(r,a)),r===!1)return;let c=Df(t),{selectionEnd:f}=o,{previousConformedValue:m,previousPlaceholder:M}=e,B;if(typeof r===J5){if(d=r(c,{currentCaretPosition:f,previousConformedValue:m,placeholderChar:a}),d===!1)return;let{maskWithoutCaretTraps:R,indexes:C1}=f8(d);d=R,B=C1,L=Y5(d,a);}else d=r;let Z={previousConformedValue:m,guide:i,placeholderChar:a,pipe:n,placeholder:L,currentCaretPosition:f,keepCharPositions:l},{conformedValue:k}=m6(c,d,Z),P=typeof n===J5,H={};P&&(H=n(k,{rawValue:c,...Z}),H===!1?H={value:m,rejected:!0}:c6(H)&&(H={value:H}));let u=P?H.value:k,b=d6({previousConformedValue:m,previousPlaceholder:M,conformedValue:u,placeholder:L,rawValue:c,currentCaretPosition:f,placeholderChar:a,indexesOfPipedChars:H.indexesOfPipedChars,caretTrapIndexes:B}),K=u===L&&b===0?p?L:Wo:u;e.previousConformedValue=K,e.previousPlaceholder=L,o.value!==K&&(o.value=K,Ff(o,b));}}}function Ff(C,e){document.activeElement===C&&(Ef?Bf(()=>C.setSelectionRange(e,e,zo),0):C.setSelectionRange(e,e,zo));}function Df(C){if(c6(C))return C;if($o(C))return String(C);if(C==null)return Wo;throw new Error(`The 'value' provided to Text Mask needs to be a string or a number. The value received was:
|
|
792
792
|
|
|
793
793
|
${JSON.stringify(C)}`)}var F3=class extends If__default.default.PureComponent{constructor(...e){super(...e),this.setRef=this.setRef.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this);}setRef(e){this.inputElement=e;}initTextMask(){let{props:e,props:{value:t}}=this;this.textMaskInputElement=g6({inputElement:this.inputElement,...e}),this.textMaskInputElement.update(t);}componentDidMount(){this.initTextMask();}componentDidUpdate(e){let{value:t,pipe:o,mask:r,guide:i,placeholderChar:n,showMask:a}=this.props,l={guide:i,placeholderChar:n,showMask:a},p=typeof o=="function"&&typeof e.pipe=="function"?o.toString()!==e.pipe.toString():K5(o)&&!K5(e.pipe)||!K5(o)&&K5(e.pipe),L=r.toString()!==e.mask.toString(),d=Object.keys(l).some(f=>l[f]!==e[f])||L||p;(t!==this.inputElement.value||d)&&this.initTextMask();}render(){let{render:e,...t}=this.props;return delete t.mask,delete t.guide,delete t.pipe,delete t.placeholderChar,delete t.keepCharPositions,delete t.value,delete t.onBlur,delete t.onChange,delete t.showMask,e(this.setRef,{onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value,...t})}onChange(e){this.textMaskInputElement.update(),typeof this.props.onChange=="function"&&this.props.onChange(e);}onBlur(e){typeof this.props.onBlur=="function"&&this.props.onBlur(e);}};F3.propTypes={mask:b1.default.oneOfType([b1.default.array,b1.default.func,b1.default.bool,b1.default.shape({mask:b1.default.oneOfType([b1.default.array,b1.default.func]),pipe:b1.default.func})]).isRequired,guide:b1.default.bool,value:b1.default.oneOfType([b1.default.string,b1.default.number]),pipe:b1.default.func,placeholderChar:b1.default.string,keepCharPositions:b1.default.bool,showMask:b1.default.bool};F3.defaultProps={render:(C,e)=>jsxRuntime.jsx("input",{ref:C,...e})};var {TextArea:Rf}=antd.Input,No=$__default.default(web.animated.div)`
|
|
794
794
|
position: absolute;
|
|
@@ -879,7 +879,7 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
879
879
|
}
|
|
880
880
|
`;$__default.default(w.Body)`
|
|
881
881
|
display: block;
|
|
882
|
-
`;var Ko=(l=>(l.Phone="phone",l.Currency="currency",l.Email="email",l.Zipcode="zipcode",l.SSN="SSN",l.Zip="SSN",l.MBI="MBI",l.Date="date",l))(Ko||{}),Qo=(o=>(o.City="city",o.Full="full",o.CityWithState="city_with_state",o))(Qo||{});var jo=C=>{let e;switch(C){case"zipcode":e=[/\d/,/\d/,/\d/,/\d/,/\d/];break;case"phone":e=["(",/[1-9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/];break;case"currency":e=textMaskAddons.createNumberMask({prefix:"$"});break;case"email":e=textMaskAddons.emailMask;break;default:e=[C];}return e};var Nf=({name:C,label:e=null,details:t=null,type:o="text",formOptions:r={},previewOnly:i=!1,textArea:n=!1,marginBottom:a=void 0,isLabelBold:l=!0,helpContent:p=void 0,helpLabel:L=void 0,format:d="",errorMessage:c="This field is required",...f})=>{let{control:m,formState:{errors:M}}=reactHookForm.useFormContext(),B=!!reactHookForm.get(M,C),Z=M?.[C]?.message?.toString()||c,k=({field:
|
|
882
|
+
`;var Ko=(l=>(l.Phone="phone",l.Currency="currency",l.Email="email",l.Zipcode="zipcode",l.SSN="SSN",l.Zip="SSN",l.MBI="MBI",l.Date="date",l))(Ko||{}),Qo=(o=>(o.City="city",o.Full="full",o.CityWithState="city_with_state",o))(Qo||{});var jo=C=>{let e;switch(C){case"zipcode":e=[/\d/,/\d/,/\d/,/\d/,/\d/];break;case"phone":e=["(",/[1-9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/];break;case"currency":e=textMaskAddons.createNumberMask({prefix:"$"});break;case"email":e=textMaskAddons.emailMask;break;default:e=[C];}return e};var Nf=({name:C,label:e=null,details:t=null,type:o="text",formOptions:r={},previewOnly:i=!1,textArea:n=!1,marginBottom:a=void 0,isLabelBold:l=!0,helpContent:p=void 0,helpLabel:L=void 0,format:d="",errorMessage:c="This field is required",...f})=>{let{control:m,formState:{errors:M}}=reactHookForm.useFormContext(),B=!!reactHookForm.get(M,C),Z=M?.[C]?.message?.toString()||c,k=({field:P})=>n?jsxRuntime.jsx(Yo,{...P,marginBottom:a,error:B,disabled:i,...f}):d?jsxRuntime.jsx(qo,{...P,mask:jo(d),guide:!1,disabled:i,type:o,error:B,...f}):jsxRuntime.jsx(Xo,{...P,disabled:i,type:o,error:B,...f});return jsxRuntime.jsxs("div",{style:{width:"100%"},children:[jsxRuntime.jsx(q,{label:e,isLabelBold:l,required:!!r.required,details:t,helpLabel:L,helpContent:p}),jsxRuntime.jsxs(Jo,{marginBottom:a,children:[jsxRuntime.jsx(reactHookForm.Controller,{render:k,name:C,rules:r,control:m}),jsxRuntime.jsx(No,{children:B&&jsxRuntime.jsx(T.ErrorExclamation,{})})]}),B&&jsxRuntime.jsx(N,{text:Z,includeIcon:!1})]})},d5=Nf;$__default.default.div`
|
|
883
883
|
margin-bottom: 32px;
|
|
884
884
|
`;var er=$__default.default.div`
|
|
885
885
|
display: ${C=>C.isColumns?"grid":"flex"};
|
|
@@ -1152,7 +1152,7 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1152
1152
|
align-items: center;
|
|
1153
1153
|
justify-content: center;
|
|
1154
1154
|
padding-right: 1rem;
|
|
1155
|
-
`;var yr=({color:C="#5A5A5A",size:e=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 21 21",fill:"none",children:jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.19934 1.57751L2.02083 2.75603L5.4083 6.14349C5.09278 6.40498 4.78053 6.6858 4.47171 6.98444C3.7807 7.65269 3.15554 8.36611 2.60521 9.07983C2.27313 9.51051 2.03735 9.84931 1.90826 10.0511L1.62109 10.5001L1.90826 10.9491C2.03735 11.151 2.27313 11.4898 2.60521 11.9205C3.15554 12.6342 3.7807 13.3476 4.47171 14.0159C6.49722 15.9746 8.67067 17.1668 10.9436 17.1668C12.3777 17.1668 13.7721 16.6922 15.1148 15.85L18.6875 19.4227L19.866 18.2442L3.19934 1.57751ZM13.8974 14.6326L12.6379 13.3731C12.1421 13.6656 11.5639 13.8334 10.9466 13.8334C9.10567 13.8334 7.61328 12.341 7.61328 10.5C7.61328 9.88272 7.78109 9.30459 8.07359 8.80878L6.5933 7.3285C6.2705 7.58882 5.94924 7.87411 5.63032 8.18252C5.00182 8.79032 4.42895 9.44408 3.92508 10.0975C3.81626 10.2387 3.7157 10.3733 3.62376 10.5001C3.7157 10.627 3.81626 10.7616 3.92508 10.9028C4.42895 11.5562 5.00182 12.21 5.63032 12.8178C7.37487 14.5048 9.18939 15.5001 10.9436 15.5001C11.9171 15.5001 12.9091 15.1937 13.8974 14.6326ZM9.33572 10.0709C9.29934 10.2078 9.27995 10.3517 9.27995 10.5C9.27995 11.4205 10.0261 12.1667 10.9466 12.1667C11.095 12.1667 11.2388 12.1473 11.3758 12.1109L9.33572 10.0709ZM17.6889 13.7426L16.5104 12.5641C17.0388 12.0298 17.5246 11.4662 17.959 10.9027C18.0679 10.7616 18.1684 10.6269 18.2604 10.5001C18.1684 10.3733 18.0679 10.2387 17.959 10.0975C17.4552 9.44405 16.8823 8.79029 16.2538 8.1825C14.5093 6.49543 12.6947 5.50012 10.9405 5.50012C10.5052 5.50012 10.0663 5.56139 9.6256 5.6793L8.30729 4.36099C9.16766 4.01794 10.0464 3.83346 10.9405 3.83346C13.2135 3.83346 15.3869 5.02564 17.4124 6.98441C18.1034 7.65266 18.7286 8.36609 19.2789 9.07981C19.611 9.51049 19.8468 9.84928 19.9759 10.0511L20.263 10.5001L19.9759 10.9491C19.8468 11.151 19.611 11.4898 19.2789 11.9204C18.8029 12.5377 18.271 13.1548 17.6889 13.7426Z",fill:C})});var vr=({color:C="#5A5A5A",size:e=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e*.65,viewBox:"0 0 20 13",fill:"none",children:jsxRuntime.jsx("path",{d:"M9.94792 10.3334C10.9896 10.3334 11.875 9.96879 12.6042 9.23962C13.3333 8.51046 13.6979 7.62504 13.6979 6.58337C13.6979 5.54171 13.3333 4.65629 12.6042 3.92712C11.875 3.19796 10.9896 2.83337 9.94792 2.83337C8.90625 2.83337 8.02083 3.19796 7.29167 3.92712C6.5625 4.65629 6.19792 5.54171 6.19792 6.58337C6.19792 7.62504 6.5625 8.51046 7.29167 9.23962C8.02083 9.96879 8.90625 10.3334 9.94792 10.3334ZM9.94792 8.83337C9.32292 8.83337 8.79167 8.61462 8.35417 8.17712C7.91667 7.73962 7.69792 7.20837 7.69792 6.58337C7.69792 5.95837 7.91667 5.42712 8.35417 4.98962C8.79167 4.55212 9.32292 4.33337 9.94792 4.33337C10.5729 4.33337 11.1042 4.55212 11.5417 4.98962C11.9792 5.42712 12.1979 5.95837 12.1979 6.58337C12.1979 7.20837 11.9792 7.73962 11.5417 8.17712C11.1042 8.61462 10.5729 8.83337 9.94792 8.83337ZM9.94792 12.8334C7.92014 12.8334 6.07292 12.2674 4.40625 11.1355C2.73958 10.0035 1.53125 8.48615 0.78125 6.58337C1.53125 4.6806 2.73958 3.16324 4.40625 2.03129C6.07292 0.899346 7.92014 0.333374 9.94792 0.333374C11.9757 0.333374 13.8229 0.899346 15.4896 2.03129C17.1562 3.16324 18.3646 4.6806 19.1146 6.58337C18.3646 8.48615 17.1562 10.0035 15.4896 11.1355C13.8229 12.2674 11.9757 12.8334 9.94792 12.8334ZM9.94792 11.1667C11.5174 11.1667 12.9583 10.7535 14.2708 9.92712C15.5833 9.10073 16.5868 7.98615 17.2813 6.58337C16.5868 5.1806 15.5833 4.06601 14.2708 3.23962C12.9583 2.41323 11.5174 2.00004 9.94792 2.00004C8.37847 2.00004 6.9375 2.41323 5.625 3.23962C4.3125 4.06601 3.30903 5.1806 2.61458 6.58337C3.30903 7.98615 4.3125 9.10073 5.625 9.92712C6.9375 10.7535 8.37847 11.1667 9.94792 11.1667Z",fill:C})});var bc=({previewOnly:C=!1,format:e,onAccept:t=void 0,...o})=>{let[r,i]=If.useState(!1),n=o?.status==="error",l=["SSN"].some(L=>L===e),p=(()=>{switch(e){case"phone":return "(000) 000-0000";case"MBI":return "****-***-****";case"date":return "00/00/0000";case"email":return /^\S*@?\S*$/;case"SSN":return [{mask:r?"000-00-0000":"XXX-XX-0000",definitions:{X:{mask:"0",displayChar:"\u25CF",placeholderChar:"#"}},lazy:!1,overwrite:"shift"}];case"SSN":return "00000";case"currency":return [{mask:"$num",lazy:!1,blocks:{num:{mask:Number,scale:2,thousandsSeparator:",",padFractionalZeros:!0,radix:".",mapToRadix:["."]}}}];default:return e}})();return jsxRuntime.jsxs(ur,{children:[jsxRuntime.jsx(w8,{format:e,mask:p,unmask:!0,onAccept:t,disabled:C,error:n,...o})
|
|
1155
|
+
`;var yr=({color:C="#5A5A5A",size:e=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 21 21",fill:"none",children:jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.19934 1.57751L2.02083 2.75603L5.4083 6.14349C5.09278 6.40498 4.78053 6.6858 4.47171 6.98444C3.7807 7.65269 3.15554 8.36611 2.60521 9.07983C2.27313 9.51051 2.03735 9.84931 1.90826 10.0511L1.62109 10.5001L1.90826 10.9491C2.03735 11.151 2.27313 11.4898 2.60521 11.9205C3.15554 12.6342 3.7807 13.3476 4.47171 14.0159C6.49722 15.9746 8.67067 17.1668 10.9436 17.1668C12.3777 17.1668 13.7721 16.6922 15.1148 15.85L18.6875 19.4227L19.866 18.2442L3.19934 1.57751ZM13.8974 14.6326L12.6379 13.3731C12.1421 13.6656 11.5639 13.8334 10.9466 13.8334C9.10567 13.8334 7.61328 12.341 7.61328 10.5C7.61328 9.88272 7.78109 9.30459 8.07359 8.80878L6.5933 7.3285C6.2705 7.58882 5.94924 7.87411 5.63032 8.18252C5.00182 8.79032 4.42895 9.44408 3.92508 10.0975C3.81626 10.2387 3.7157 10.3733 3.62376 10.5001C3.7157 10.627 3.81626 10.7616 3.92508 10.9028C4.42895 11.5562 5.00182 12.21 5.63032 12.8178C7.37487 14.5048 9.18939 15.5001 10.9436 15.5001C11.9171 15.5001 12.9091 15.1937 13.8974 14.6326ZM9.33572 10.0709C9.29934 10.2078 9.27995 10.3517 9.27995 10.5C9.27995 11.4205 10.0261 12.1667 10.9466 12.1667C11.095 12.1667 11.2388 12.1473 11.3758 12.1109L9.33572 10.0709ZM17.6889 13.7426L16.5104 12.5641C17.0388 12.0298 17.5246 11.4662 17.959 10.9027C18.0679 10.7616 18.1684 10.6269 18.2604 10.5001C18.1684 10.3733 18.0679 10.2387 17.959 10.0975C17.4552 9.44405 16.8823 8.79029 16.2538 8.1825C14.5093 6.49543 12.6947 5.50012 10.9405 5.50012C10.5052 5.50012 10.0663 5.56139 9.6256 5.6793L8.30729 4.36099C9.16766 4.01794 10.0464 3.83346 10.9405 3.83346C13.2135 3.83346 15.3869 5.02564 17.4124 6.98441C18.1034 7.65266 18.7286 8.36609 19.2789 9.07981C19.611 9.51049 19.8468 9.84928 19.9759 10.0511L20.263 10.5001L19.9759 10.9491C19.8468 11.151 19.611 11.4898 19.2789 11.9204C18.8029 12.5377 18.271 13.1548 17.6889 13.7426Z",fill:C})});var vr=({color:C="#5A5A5A",size:e=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e*.65,viewBox:"0 0 20 13",fill:"none",children:jsxRuntime.jsx("path",{d:"M9.94792 10.3334C10.9896 10.3334 11.875 9.96879 12.6042 9.23962C13.3333 8.51046 13.6979 7.62504 13.6979 6.58337C13.6979 5.54171 13.3333 4.65629 12.6042 3.92712C11.875 3.19796 10.9896 2.83337 9.94792 2.83337C8.90625 2.83337 8.02083 3.19796 7.29167 3.92712C6.5625 4.65629 6.19792 5.54171 6.19792 6.58337C6.19792 7.62504 6.5625 8.51046 7.29167 9.23962C8.02083 9.96879 8.90625 10.3334 9.94792 10.3334ZM9.94792 8.83337C9.32292 8.83337 8.79167 8.61462 8.35417 8.17712C7.91667 7.73962 7.69792 7.20837 7.69792 6.58337C7.69792 5.95837 7.91667 5.42712 8.35417 4.98962C8.79167 4.55212 9.32292 4.33337 9.94792 4.33337C10.5729 4.33337 11.1042 4.55212 11.5417 4.98962C11.9792 5.42712 12.1979 5.95837 12.1979 6.58337C12.1979 7.20837 11.9792 7.73962 11.5417 8.17712C11.1042 8.61462 10.5729 8.83337 9.94792 8.83337ZM9.94792 12.8334C7.92014 12.8334 6.07292 12.2674 4.40625 11.1355C2.73958 10.0035 1.53125 8.48615 0.78125 6.58337C1.53125 4.6806 2.73958 3.16324 4.40625 2.03129C6.07292 0.899346 7.92014 0.333374 9.94792 0.333374C11.9757 0.333374 13.8229 0.899346 15.4896 2.03129C17.1562 3.16324 18.3646 4.6806 19.1146 6.58337C18.3646 8.48615 17.1562 10.0035 15.4896 11.1355C13.8229 12.2674 11.9757 12.8334 9.94792 12.8334ZM9.94792 11.1667C11.5174 11.1667 12.9583 10.7535 14.2708 9.92712C15.5833 9.10073 16.5868 7.98615 17.2813 6.58337C16.5868 5.1806 15.5833 4.06601 14.2708 3.23962C12.9583 2.41323 11.5174 2.00004 9.94792 2.00004C8.37847 2.00004 6.9375 2.41323 5.625 3.23962C4.3125 4.06601 3.30903 5.1806 2.61458 6.58337C3.30903 7.98615 4.3125 9.10073 5.625 9.92712C6.9375 10.7535 8.37847 11.1667 9.94792 11.1667Z",fill:C})});var bc=({previewOnly:C=!1,format:e,onAccept:t=void 0,...o})=>{let[r,i]=If.useState(!1),n=o?.status==="error",l=["SSN"].some(L=>L===e),p=(()=>{switch(e){case"phone":return "(000) 000-0000";case"MBI":return "****-***-****";case"date":return "00/00/0000";case"email":return /^\S*@?\S*$/;case"SSN":return [{mask:r?"000-00-0000":"XXX-XX-0000",definitions:{X:{mask:"0",displayChar:"\u25CF",placeholderChar:"#"}},lazy:!1,overwrite:"shift"}];case"SSN":return "00000";case"currency":return [{mask:"$num",lazy:!1,blocks:{num:{mask:Number,scale:2,thousandsSeparator:",",padFractionalZeros:!0,radix:".",mapToRadix:["."]}}}];default:return e}})();return jsxRuntime.jsxs(ur,{children:[jsxRuntime.jsx(w8,{format:e,mask:p,unmask:!0,onAccept:t,disabled:C,error:n,...o}),!l&&jsxRuntime.jsx(xr,{children:o.suffix}),l&&jsxRuntime.jsx(wr,{onClick:()=>i(!r),children:r?jsxRuntime.jsx(vr,{}):jsxRuntime.jsx(yr,{})})]})},Mr=bc;var a3={Area:cr,Text:mr,Number:gr,Password:hr,Mask:Mr};var br=C=>{let e;switch(C){case"MBI":e={value:/^[1-9]{1}[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz]{1}[0-9]{1}-?[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz]{1}[0-9]{1}-?[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz|^0-9]{1}[0-9]{1}[0-9]{1}/g,message:"Invalid medicare number"};break;case"zipcode":e={value:/\d{5}/,message:"Invalid zipcode"};break;case"phone":e={value:/\d{10}/,message:"Invalid phone number"};break;case"SSN":e={value:/\d{9}/,message:"Invalid social security number"};break;case"currency":e={value:/\d*(?:\.\d{2})?/,message:"Invalid amount"};break;case"email":e={value:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Invalid email address"};break;case"date":e={value:/^(?:\d{4}-\d{2}-\d{2}|\d{2}-\d{2}-\d{4})$/,message:"Invalid date"};break;default:e=C;}return e};$__default.default(web.animated.div)`
|
|
1156
1156
|
position: absolute;
|
|
1157
1157
|
display: block;
|
|
1158
1158
|
width: 45px;
|
|
@@ -1170,7 +1170,7 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1170
1170
|
display: flex;
|
|
1171
1171
|
flex-direction: column;
|
|
1172
1172
|
position: relative;
|
|
1173
|
-
`;var Sc=({name:C,label:e=null,details:t=null,formOptions:o={},pattern:r=void 0,format:i=void 0,textArea:n=!1,password:a=!1,isLabelBold:l=!0,helpContent:p=void 0,helpLabel:L=void 0,errorMessage:d="This field is required",disableErrorState:c=!1,showErrorMessage:f=!0,...m})=>{let{control:M}=reactHookForm.useFormContext(),B=r?{pattern:br(r)}:{},{field:Z,fieldState:k}=reactHookForm.useController({name:C,control:M,rules:{...B,...o}}),
|
|
1173
|
+
`;var Sc=({name:C,label:e=null,details:t=null,formOptions:o={},pattern:r=void 0,format:i=void 0,textArea:n=!1,password:a=!1,isLabelBold:l=!0,helpContent:p=void 0,helpLabel:L=void 0,errorMessage:d="This field is required",disableErrorState:c=!1,showErrorMessage:f=!0,...m})=>{let{control:M}=reactHookForm.useFormContext(),B=r?{pattern:br(r)}:{},{field:Z,fieldState:k}=reactHookForm.useController({name:C,control:M,rules:{...B,...o}}),P=c?!1:k.error,H=k.error?.message?.toString()||d,u=If.useMemo(()=>n?jsxRuntime.jsx(a3.Area,{status:P?"error":"",suffix:P?jsxRuntime.jsx(T.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...m,...Z}):i?jsxRuntime.jsx(a3.Mask,{name:Z.name,onBlur:Z.onBlur,format:i,onAccept:b=>Z.onChange(b),ref:Z.ref,value:Z.value,status:P?"error":"",suffix:P?jsxRuntime.jsx(T.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...m}):a?jsxRuntime.jsx(a3.Password,{status:P?"error":"",suffix:P?jsxRuntime.jsx(T.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...m,...Z}):jsxRuntime.jsx(a3.Text,{status:P?"error":"",suffix:P?jsxRuntime.jsx(T.ErrorExclamation,{}):jsxRuntime.jsx("span",{}),...m,...Z}),[Z,m,n,i,a]);return jsxRuntime.jsxs("div",{style:{width:"100%"},children:[jsxRuntime.jsx(q,{label:e,isLabelBold:l,required:!!o.required,details:t,helpLabel:L,helpContent:p}),jsxRuntime.jsx(Hr,{children:u}),f&&P&&jsxRuntime.jsx(N,{text:H,includeIcon:!1})]})},y8=Sc;var Fc=({label:C=null,isLabelBold:e=!0,name:t,disabled:o=!1,defaultValue:r=void 0,formOptions:i={},errorMessage:n="This field is required.",options:a={},style:l={},...p})=>{let{control:L,formState:{errors:d}}=reactHookForm.useFormContext(),c=!!reactHookForm.get(d,t),f=reactHookForm.get(d,t)?.message?.toString()||n;return jsxRuntime.jsxs("div",{style:l,children:[jsxRuntime.jsx(q,{label:C,isLabelBold:e,required:!!i.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:m})=>jsxRuntime.jsx(a3.Number,{disabled:o,status:c?"error":"",suffix:c?jsxRuntime.jsx(T.ErrorExclamation,{}):null,...p,...m}),name:t,defaultValue:r,rules:i,control:L,...a}),c&&jsxRuntime.jsx(N,{text:f,includeIcon:!1})]})},_r=Fc;var Zr=$__default.default.div`
|
|
1174
1174
|
position: relative;
|
|
1175
1175
|
margin-bottom: 24px;
|
|
1176
1176
|
|
|
@@ -1233,7 +1233,7 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1233
1233
|
padding: 12px 6px;
|
|
1234
1234
|
height: 57px;
|
|
1235
1235
|
border-bottom: 1px solid #000;
|
|
1236
|
-
`;var Ac=({label:C="",name:e,formOptions:t={},description:o="",previewOnly:r=!1,errorMessage:i=void 0,signatureType:n=void 0,date:a=void 0,isAdvocate:l=!1,showIcon:p=!0,formStyle:L="MINIMAL",...d})=>{let{control:c,formState:{errors:f}}=reactHookForm.useFormContext(),m=n==="advocate"?"Advocate":"Client",M=l&&n==="advocate"||!l&&n==="client",B=({field:
|
|
1236
|
+
`;var Ac=({label:C="",name:e,formOptions:t={},description:o="",previewOnly:r=!1,errorMessage:i=void 0,signatureType:n=void 0,date:a=void 0,isAdvocate:l=!1,showIcon:p=!0,formStyle:L="MINIMAL",...d})=>{let{control:c,formState:{errors:f}}=reactHookForm.useFormContext(),m=n==="advocate"?"Advocate":"Client",M=l&&n==="advocate"||!l&&n==="client",B=({field:P})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(Sr,{previewOnly:r,children:[p&&jsxRuntime.jsx(Y7,{}),jsxRuntime.jsx(Dr,{...P,...d})]}),jsxRuntime.jsx("label",{htmlFor:e,children:jsxRuntime.jsx(w.Body,{children:C})})]}),Z=a?new Date(a).toLocaleDateString():"",k=({field:P})=>jsxRuntime.jsx(Pr,{children:jsxRuntime.jsxs(Er,{children:[jsxRuntime.jsxs(Br,{children:[jsxRuntime.jsx(Ir,{...P,...d,placeholder:`${m} Signature`,disabled:r||!M,hasError:!!f[e]}),jsxRuntime.jsx(u6,{children:`${m}`}),f[e]&&jsxRuntime.jsx(N,{text:i,includeIcon:!1})]}),jsxRuntime.jsxs(Fr,{children:[jsxRuntime.jsx(Or,{children:Z}),jsxRuntime.jsx(u6,{children:"Date"})]})]})});return jsxRuntime.jsxs(Zr,{previewOnly:r,children:[(C||n)&&jsxRuntime.jsx(q,{label:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n&&`${m} `,C]}),required:!0,isLabelBold:!0}),o,jsxRuntime.jsx(reactHookForm.Controller,{render:L==="MINIMAL"?B:k,name:e,rules:t,control:c})]})},Tr=Ac;var Ur=$__default.default(antd.Radio)`
|
|
1237
1237
|
width: 100%;
|
|
1238
1238
|
height: 100%;
|
|
1239
1239
|
z-index: 2;
|
|
@@ -1604,7 +1604,7 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1604
1604
|
left: 0;
|
|
1605
1605
|
`;$__default.default(w.Body)`
|
|
1606
1606
|
margin-bottom: 24px;
|
|
1607
|
-
`;var am=({label:C="",name:e,details:t="",placeholder:o="",options:r=[],allowInput:i=!1,previewOnly:n=!1,isLabelBold:a=!0,formOptions:l={},onChange:p=()=>null,containerStyle:L={}})=>{let d=If.useRef(),c=reactHookForm.useFormContext(),{errors:f}=c.formState;c.register(e,l);let m=!!reactHookForm.get(f,e),M=reactHookForm.get(f,e)?.message?.toString(),[B,Z]=If.useState(!1),[k,
|
|
1607
|
+
`;var am=({label:C="",name:e,details:t="",placeholder:o="",options:r=[],allowInput:i=!1,previewOnly:n=!1,isLabelBold:a=!0,formOptions:l={},onChange:p=()=>null,containerStyle:L={}})=>{let d=If.useRef(),c=reactHookForm.useFormContext(),{errors:f}=c.formState;c.register(e,l);let m=!!reactHookForm.get(f,e),M=reactHookForm.get(f,e)?.message?.toString(),[B,Z]=If.useState(!1),[k,P]=If.useState(""),[H,u]=If.useState(r),b=web.useSpring(B?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});If.useEffect(()=>{let R=C1=>{B&&d.current&&!d.current.contains(C1.target)&&Z(!1);};return document.addEventListener("mousedown",C1=>R(C1)),()=>{document.removeEventListener("mousedown",C1=>R(C1));}},[B]);let y=r.find(R=>R.value===c.getValues(e))?.label,O=R=>{P(""),c.setValue(e,R.value),c.trigger(e),p&&p(R),Z(!1);};If.useEffect(()=>{if(Z(!!k),k){let R=r.filter(C1=>String(C1.value).toLowerCase().match(k.toLowerCase()));u(R),c.setValue(e,k);}else u(r);},[k,r.length]);let K=R=>{R.code==="Enter"&&R.preventDefault();};return jsxRuntime.jsxs(ci,{style:L,children:[jsxRuntime.jsx(q,{label:C,isLabelBold:a,required:!!l.required,details:t}),jsxRuntime.jsx(mi,{onClick:()=>Z(!B),previewOnly:n,children:n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("i",{style:{color:s.grey300},children:"--Select--"}),jsxRuntime.jsx(T.Caret,{direction:"down",color:s.grey300})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[y||jsxRuntime.jsx("i",{children:o}),i&&jsxRuntime.jsx(wi,{onKeyDown:K,value:k,onChange:R=>P(R.target.value),type:"text"}),jsxRuntime.jsx(T.Caret,{direction:B?"up":"down"}),jsxRuntime.jsx(gi,{style:b,ref:d,children:H.map(R=>{let{label:C1}=R,m1=R.label===y;return jsxRuntime.jsxs(hi,{onClick:()=>O(R),children:[jsxRuntime.jsx(w.Body,{size:"lg",children:C1}),jsxRuntime.jsx(ui,{isCurrent:m1,children:jsxRuntime.jsx(T.Check,{color:"#fff"})})]},R.value)})})]})}),m&&jsxRuntime.jsx(N,{text:M,includeIcon:!1})]})},Mi=am;var bi=$__default.default.div`
|
|
1608
1608
|
background: #eeeeee;
|
|
1609
1609
|
border-radius: 10px;
|
|
1610
1610
|
border: 1px solid #ccc;
|
|
@@ -1715,7 +1715,7 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1715
1715
|
border-color: var(--green-600, #3f937c);
|
|
1716
1716
|
box-shadow: none;
|
|
1717
1717
|
}
|
|
1718
|
-
`;var Lm=({style:C={},sort:e=!0,...t})=>{let o=(i,n)=>n?.label?(n.label.toString().toLowerCase()??"").includes(i.toLowerCase()):!1,r=(i,n)=>{let a=i?.label?.toString().toLowerCase()??"",l=n?.label?.toString().toLowerCase()??"";return a.localeCompare(l)};return jsxRuntime.jsx(Vi,{showSearch:!0,style:{width:"100%",...C},filterOption:o,filterSort:e?r:void 0,virtual:!1,...t})},o7=Lm;var mm=({label:C="",name:e,details:t="",placeholder:o="",unit:r="",options:i=[],disabled:n=!1,mode:a=void 0,previewOnly:l=!1,isLabelBold:p=!0,formOptions:L={},onChange:d=()=>null,showPreview:c=!1,containerStyle:f={},style:m={},allowClear:M=!0,loading:B=!1,value:Z=void 0,errorMessage:k="This field is required",defaultValue:
|
|
1718
|
+
`;var Lm=({style:C={},sort:e=!0,...t})=>{let o=(i,n)=>n?.label?(n.label.toString().toLowerCase()??"").includes(i.toLowerCase()):!1,r=(i,n)=>{let a=i?.label?.toString().toLowerCase()??"",l=n?.label?.toString().toLowerCase()??"";return a.localeCompare(l)};return jsxRuntime.jsx(Vi,{showSearch:!0,style:{width:"100%",...C},filterOption:o,filterSort:e?r:void 0,virtual:!1,...t})},o7=Lm;var mm=({label:C="",name:e,details:t="",placeholder:o="",unit:r="",options:i=[],disabled:n=!1,mode:a=void 0,previewOnly:l=!1,isLabelBold:p=!0,formOptions:L={},onChange:d=()=>null,showPreview:c=!1,containerStyle:f={},style:m={},allowClear:M=!0,loading:B=!1,value:Z=void 0,errorMessage:k="This field is required",defaultValue:P=void 0,...H})=>{let u=reactHookForm.useFormContext();u.register(e,L);let{control:b,formState:{errors:y},getValues:O}=reactHookForm.useFormContext(),K=!!reactHookForm.get(y,e),R=k||y?.[e]?.message?.toString(),m1=O()[e],g=I=>{u.setValue(e,I,{shouldDirty:!0,shouldTouch:!0}),u.trigger(e),d(I);},v=({field:I})=>jsxRuntime.jsx(o7,{allowClear:M,loading:B,mode:a,showSearch:!0,onChange:g,placeholder:o,options:i,isError:K,disabled:n||l,value:I.value??Z,defaultValue:P,style:m,...H});return jsxRuntime.jsxs("div",{style:f,children:[jsxRuntime.jsx(q,{label:C,isLabelBold:p,required:!!L.required,details:t}),jsxRuntime.jsxs(Hi,{children:[jsxRuntime.jsx(reactHookForm.Controller,{control:b,name:e,rules:L,render:v}),r&&jsxRuntime.jsx(w.Body,{size:"lg",children:r})]}),l&&c&&jsxRuntime.jsx(bi,{children:i.map(I=>jsxRuntime.jsx(ki,{selected:I.value===m1,children:I.label}))}),K&&jsxRuntime.jsx(N,{text:R,includeIcon:!1})]})},Si=mm;var wm=({label:C="Submit",isSubmitting:e=!1,hideWhenInvalid:t=!1,...o})=>{let r=reactHookForm.useFormContext(),{isValid:i}=r.formState,a=web.useSpring((t?i:!0)?{position:"relative",zIndex:0,opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:250}}:{opacity:0,transform:"translate(0px, -3px)",display:"none",config:{duration:250}});return jsxRuntime.jsx(web.animated.div,{style:a,...o,children:jsxRuntime.jsx(d1.Primary,{htmlType:"submit",isSubmitting:e,...o,children:C})})},Ei=wm;var Fi=$__default.default.div`
|
|
1719
1719
|
position: relative;
|
|
1720
1720
|
z-index: 20;
|
|
1721
1721
|
`,Di=$__default.default.div`
|
|
@@ -1837,7 +1837,7 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1837
1837
|
stroke: ${({color:C})=>C||"#fff"};
|
|
1838
1838
|
}
|
|
1839
1839
|
}
|
|
1840
|
-
`,b6=({color:C=void 0,size:e="sm"})=>jsxRuntime.jsx(vm,{color:C,size:e,children:jsxRuntime.jsx("div",{className:"loader",children:jsxRuntime.jsx("svg",{className:"circular-loader",viewBox:"25 25 50 50",children:jsxRuntime.jsx("circle",{className:"loader-path",cx:"50",cy:"50",r:"20",fill:"none"})})})});var _m=C=>{let e="",t="",o="",r="",i="";C.address_components.forEach(p=>{p.types.some(L=>{switch(L){case"locality":return e=p.short_name,!0;case"administrative_area_level_1":return t=p.short_name,!0;case"street_number":return o=p.short_name,!0;case"route":return r=p.short_name,!0;case"postal_code":return i=p.short_name,!0;default:return !1}});});let n=C.geometry.location.lat(),a=C.geometry.location.lng(),l=`${o} ${r}`;return {city:e,state:t,street:l,zip:i,lat:n,long:a}},Zm=({handleSelect:C,option:e,value:t})=>{let{description:o}=e,r=o===t,i=o.replace(", USA","");return jsxRuntime.jsx(Ai,{isCurrent:r,onClick:()=>C(i),children:jsxRuntime.jsx(w.Body,{size:"lg",children:i})})},Sm=["places"],Pm=({label:C="",details:e="",formOptions:t={},previewOnly:o=!1,isLabelBold:r=!0,locationType:i="city",streetFieldName:n="street",cityFieldName:a="city",stateFieldName:l="state",zipFieldName:p="zip",cityWithStateFieldName:L="city_with_state",placeholder:d="",containerStyle:c={},errorMessage:f="This field is required",hasError:m=!1,style:M={},className:B=""})=>{let Z=If.useRef(),[k,
|
|
1840
|
+
`,b6=({color:C=void 0,size:e="sm"})=>jsxRuntime.jsx(vm,{color:C,size:e,children:jsxRuntime.jsx("div",{className:"loader",children:jsxRuntime.jsx("svg",{className:"circular-loader",viewBox:"25 25 50 50",children:jsxRuntime.jsx("circle",{className:"loader-path",cx:"50",cy:"50",r:"20",fill:"none"})})})});var _m=C=>{let e="",t="",o="",r="",i="";C.address_components.forEach(p=>{p.types.some(L=>{switch(L){case"locality":return e=p.short_name,!0;case"administrative_area_level_1":return t=p.short_name,!0;case"street_number":return o=p.short_name,!0;case"route":return r=p.short_name,!0;case"postal_code":return i=p.short_name,!0;default:return !1}});});let n=C.geometry.location.lat(),a=C.geometry.location.lng(),l=`${o} ${r}`;return {city:e,state:t,street:l,zip:i,lat:n,long:a}},Zm=({handleSelect:C,option:e,value:t})=>{let{description:o}=e,r=o===t,i=o.replace(", USA","");return jsxRuntime.jsx(Ai,{isCurrent:r,onClick:()=>C(i),children:jsxRuntime.jsx(w.Body,{size:"lg",children:i})})},Sm=["places"],Pm=({label:C="",details:e="",formOptions:t={},previewOnly:o=!1,isLabelBold:r=!0,locationType:i="city",streetFieldName:n="street",cityFieldName:a="city",stateFieldName:l="state",zipFieldName:p="zip",cityWithStateFieldName:L="city_with_state",placeholder:d="",containerStyle:c={},errorMessage:f="This field is required",hasError:m=!1,style:M={},className:B=""})=>{let Z=If.useRef(),[k,P]=If.useState(!1),[H,u]=If.useState(!1),b=reactHookForm.useFormContext(),y;switch(i){case"city":y=a;break;case"full":y=n;break;case"city_with_state":y=L;break;default:return null}let O=web.useSpring(k?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});If.useEffect(()=>{let x=D=>{k&&Z.current&&!Z.current.contains(D.target)&&P(!1);};return document.addEventListener("mousedown",D=>x(D)),()=>{document.removeEventListener("mousedown",D=>x(D));}},[k]);let K=b.getValues(y)?`${b.getValues(y)}, ${b.getValues(l)}`:"",{value:R,suggestions:{data:C1,loading:m1},setValue:g,clearSuggestions:v}=km__default.default({requestOptions:{...["city","city_with_state"].includes(i)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}});If.useEffect(()=>{if(m1){u(m1);return}setTimeout(()=>{u(m1);},2e3);},[m1]);let I=web.useSpring(H?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),U=x=>{g(x.target.value),b.setValue(l,""),i==="full"&&(b.setValue(p,""),b.setValue(a,"")),b.trigger(y),x.target.value.length>=3&&P(!0);},A=x=>{g(x,!1),v(),!(x.length<=2)&&km.getGeocode({address:x}).then(D=>{let{city:X,state:Y,street:J,zip:S1,lat:y1,long:L2}=_m(D[0]),x7=[y,a,l];b.setValue(a,X),b.setValue(l,Y),i==="full"&&(b.setValue(n,J),b.setValue(p,S1),x7.push(n,p)),i==="city_with_state"&&b.setValue(L,`${X}, ${Y}`),b.setValue("lat",y1),b.setValue("long",L2),b.trigger(x7);}).catch(D=>console.error(`Google Maps API error: ${D}`));},G=x=>{x.code==="Enter"&&x.preventDefault();};return jsxRuntime.jsxs(Fi,{style:M,className:B,children:[jsxRuntime.jsx(q,{label:C,isLabelBold:r,required:!!t.required,details:e}),o?jsxRuntime.jsx(Ri,{size:"md",children:K||"N/A"}):jsxRuntime.jsxs(Di,{style:c,children:[jsxRuntime.jsx(Ti,{onKeyDown:G,type:"text",placeholder:d,...b.register(y,{...t,onChange:U})}),C1.length>0&&jsxRuntime.jsx(Ii,{style:O,ref:Z,children:C1.map(x=>jsxRuntime.jsx(Zm,{handleSelect:A,option:x,value:R},x.description))}),jsxRuntime.jsx(Oi,{style:I,children:jsxRuntime.jsx(b6,{size:"sm"})})]}),m&&jsxRuntime.jsx(N,{text:f,includeIcon:!1})]})},Wi=({api_key:C,...e})=>{let{isLoaded:t}=api.useLoadScript({googleMapsApiKey:C||process.env.GOOGLE_MAPS_API_KEY||"",libraries:Sm});return t?jsxRuntime.jsx(Pm,{...e}):null};var Rm=$__default.default(antd.Input.Search)`
|
|
1841
1841
|
.ant-input,
|
|
1842
1842
|
.ant-input-search-button {
|
|
1843
1843
|
height: 48px;
|
|
@@ -1849,7 +1849,7 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1849
1849
|
.ant-input-search-button {
|
|
1850
1850
|
border-left: none;
|
|
1851
1851
|
}
|
|
1852
|
-
`,Um=C=>{let e="",t="",o="",r="",i="";C.address_components.forEach(p=>{p.types.some(L=>{switch(L){case"locality":return e=p.short_name,!0;case"administrative_area_level_1":return t=p.short_name,!0;case"street_number":return o=p.short_name,!0;case"route":return r=p.short_name,!0;case"postal_code":return i=p.short_name,!0;default:return !1}});});let n=C.geometry.location.lat(),a=C.geometry.location.lng(),l=`${o} ${r}`;return {city:e,state:t,street:l,zip:i,lat:n,long:a}},Gm=["places"],$m=({label:C="",formOptions:e={},isLabelBold:t=!0,addressType:o="city",streetFieldName:r="street",cityFieldName:i="city",stateFieldName:n="state",zipFieldName:a="zip",cityWithStateFieldName:l="city_with_state",latFieldName:p="lat",longFieldName:L="long",fullAddressFieldName:d="fullAddress",placeholder:c=""})=>{let f=reactHookForm.useFormContext(),{suggestions:{data:m=[]},setValue:M,clearSuggestions:B}=km__default.default({requestOptions:{...["city","city_with_state"].includes(o)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}}),Z;switch(o){case"city":Z=i;break;case"full":Z=d;break;case"city_with_state":Z=l;break;default:return null}let k=H=>{M(H),!(H.length<=3)&&(f.setValue(n,""),o==="full"&&(f.setValue(a,""),f.setValue(i,"")),f.trigger(Z));},
|
|
1852
|
+
`,Um=C=>{let e="",t="",o="",r="",i="";C.address_components.forEach(p=>{p.types.some(L=>{switch(L){case"locality":return e=p.short_name,!0;case"administrative_area_level_1":return t=p.short_name,!0;case"street_number":return o=p.short_name,!0;case"route":return r=p.short_name,!0;case"postal_code":return i=p.short_name,!0;default:return !1}});});let n=C.geometry.location.lat(),a=C.geometry.location.lng(),l=`${o} ${r}`;return {city:e,state:t,street:l,zip:i,lat:n,long:a}},Gm=["places"],$m=({label:C="",formOptions:e={},isLabelBold:t=!0,addressType:o="city",streetFieldName:r="street",cityFieldName:i="city",stateFieldName:n="state",zipFieldName:a="zip",cityWithStateFieldName:l="city_with_state",latFieldName:p="lat",longFieldName:L="long",fullAddressFieldName:d="fullAddress",placeholder:c=""})=>{let f=reactHookForm.useFormContext(),{suggestions:{data:m=[]},setValue:M,clearSuggestions:B}=km__default.default({requestOptions:{...["city","city_with_state"].includes(o)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}}),Z;switch(o){case"city":Z=i;break;case"full":Z=d;break;case"city_with_state":Z=l;break;default:return null}let k=H=>{M(H),!(H.length<=3)&&(f.setValue(n,""),o==="full"&&(f.setValue(a,""),f.setValue(i,"")),f.trigger(Z));},P=H=>{typeof H=="string"&&(M(H,!1),B(),!(H.length<=2)&&km.getGeocode({address:H}).then(u=>{let{city:b,state:y,street:O,zip:K,lat:R,long:C1}=Um(u[0]),m1=[Z,i,n];f.setValue(i,b),f.setValue(n,y),o==="full"&&(f.setValue(r,O),f.setValue(a,K),m1.push(r,a)),o==="city_with_state"&&f.setValue(l,`${b}, ${y}`),f.setValue(p,R),f.setValue(L,C1),f.setValue(d,H),f.trigger(m1);}).catch(u=>console.error(`Google Maps API error: ${u}`)));};return jsxRuntime.jsxs(p1,{vertical:!0,style:{width:"100%"},children:[jsxRuntime.jsx(q,{label:C,isLabelBold:t,required:!!e.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:H})=>{let{ref:u,...b}=H;return jsxRuntime.jsx(antd.AutoComplete,{onSearch:k,options:m.map(y=>({label:y.description,value:y.description})),onSelect:P,...b,children:jsxRuntime.jsx(Rm,{size:"large",placeholder:c})})},name:Z,rules:{...e},control:f.control}),f.formState.errors[Z]&&jsxRuntime.jsx(N,{text:f.formState.errors[Z]?.message,includeIcon:!1})]})},zm=({api_key:C,...e})=>{let{isLoaded:t}=api.useLoadScript({googleMapsApiKey:C||process.env.GOOGLE_MAPS_API_KEY||"",libraries:Gm});return t?jsxRuntime.jsx($m,{...e}):null},Ni=zm;var qm=$__default.default(antd.TimePicker)`
|
|
1853
1853
|
height: 50px;
|
|
1854
1854
|
border-color: #424242;
|
|
1855
1855
|
`,Jm=({onChange:C=()=>null,format:e="h:mma",ref:t=void 0,...o})=>jsxRuntime.jsx(qm,{use12Hours:!0,format:e,onChange:C,...o,ref:t}),k6=Jm;var eg=$__default.default.div`
|
|
@@ -1941,11 +1941,11 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1941
1941
|
border: 0.766898px solid;
|
|
1942
1942
|
border-color: ${C=>C.isCurrent?"#285E50 !important":"var(--green-600, #3f937c)"};
|
|
1943
1943
|
background: ${C=>C.isCurrent?"#285E50 !important":"#FFF"};
|
|
1944
|
-
`,vg=({label:C="",name:e,details:t="",options:o=[],previewOnly:r=!1})=>{let i=If.useRef(),n=reactHookForm.useFormContext(),[a,l]=If.useState(!1),[p,L]=If.useState(""),[d,c]=If.useState(n.getValues(e)||[]),f=If.useRef({search:p,keywords:d});If.useEffect(()=>{f.current={search:p,keywords:d};},[p,d]);let[m,M]=If.useState(o),B=web.useSpring(a?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}}),Z=o.find(y=>y===n.getValues(e)),k=y=>{let O=[...f.current.keywords,y];L(""),c(O),n.setValue(e,O),l(!1);},
|
|
1944
|
+
`,vg=({label:C="",name:e,details:t="",options:o=[],previewOnly:r=!1})=>{let i=If.useRef(),n=reactHookForm.useFormContext(),[a,l]=If.useState(!1),[p,L]=If.useState(""),[d,c]=If.useState(n.getValues(e)||[]),f=If.useRef({search:p,keywords:d});If.useEffect(()=>{f.current={search:p,keywords:d};},[p,d]);let[m,M]=If.useState(o),B=web.useSpring(a?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}}),Z=o.find(y=>y===n.getValues(e)),k=y=>{let O=[...f.current.keywords,y];L(""),c(O),n.setValue(e,O),l(!1);},P=y=>y?y.charAt(0).toUpperCase()+y.slice(1).toLowerCase():"",H=()=>{if(!f.current.search)return;let y=P(f.current.search);k(y);};If.useEffect(()=>{let y=O=>{a&&i.current&&!i.current.contains(O.target)&&(H(),l(!1));};return document.addEventListener("mousedown",O=>y(O)),()=>{document.removeEventListener("mousedown",O=>y(O));}},[a]);let u=y=>{y.code==="Enter"&&(H(),y.preventDefault());},b=y=>{let O=d.filter(K=>K!==y);c(O),L(""),n.setValue(e,O);};return If.useEffect(()=>{if(l(!!p),p){let y=o.filter(O=>O.toLowerCase().match(p.toLowerCase()));M(y);}else M(o);},[p]),If.useEffect(()=>{let y=o.filter(O=>!d.includes(O));M(y);},[d]),jsxRuntime.jsxs(cg,{children:[jsxRuntime.jsx(mg,{size:"lg",children:C}),t&&jsxRuntime.jsx(gg,{children:t}),!r&&jsxRuntime.jsxs(hg,{onClick:()=>l(!a),children:[jsxRuntime.jsx(X7,{}),Z,jsxRuntime.jsx(wg,{onKeyDown:u,value:p,onChange:y=>L(y.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxRuntime.jsxs(ug,{style:B,ref:i,children:[m.map(y=>{let O=y===Z;return jsxRuntime.jsxs(Qi,{onClick:()=>k(y),children:[jsxRuntime.jsx(w.Body,{size:"lg",children:y}),jsxRuntime.jsx(yg,{isCurrent:O,children:jsxRuntime.jsx(T.Check,{color:"#fff"})})]},y)}),!m.length&&jsxRuntime.jsx(Qi,{onClick:()=>H(),children:jsxRuntime.jsx(w.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[r&&d.length===0&&"N/A",d.map(y=>jsxRuntime.jsxs(xg,{onClick:()=>b(y),children:[y,!r&&jsxRuntime.jsx(D7,{})]},y))]})]})},ji=vg;var Vg=({defaultState:C=!1,name:e,label:t={active:"YES",inactive:"NO"},handleEvent:o=null,value:r,disabled:i=!1,loading:n=!1})=>{let a=reactHookForm.useFormContext(),[l,p]=If.useState(C);If.useEffect(()=>{a&&C&&a.setValue(e,r),p(C);},[C]);let L=d=>{i||(a&&a.setValue(e,d?r:null),o&&o(d),p(d));};return jsxRuntime.jsx(antd.Switch,{defaultChecked:C,checkedChildren:t.active,unCheckedChildren:t.inactive,checked:l,loading:n,disabled:i,onChange:L})},V6=Vg;var Ig=$__default.default(antd.DatePicker)`
|
|
1945
1945
|
padding: 12px 24px;
|
|
1946
1946
|
width: 100%;
|
|
1947
1947
|
max-width: 25rem;
|
|
1948
|
-
`,Og=({label:C=null,isLabelBold:e=!0,name:t,details:o=void 0,disabled:r=!1,defaultValue:i=void 0,startRange:n=void 0,endRange:a=void 0,formOptions:l={},errorMessage:p="This field is required.",style:L={},format:d="MM/DD/YYYY",...c})=>{let{control:f,formState:{errors:m}}=reactHookForm.useFormContext(),M=!!reactHookForm.get(m,t),B=m?.[t]?.message?.toString()||p,Z=
|
|
1948
|
+
`,Og=({label:C=null,isLabelBold:e=!0,name:t,details:o=void 0,disabled:r=!1,defaultValue:i=void 0,startRange:n=void 0,endRange:a=void 0,formOptions:l={},errorMessage:p="This field is required.",style:L={},format:d="MM/DD/YYYY",...c})=>{let{control:f,formState:{errors:m}}=reactHookForm.useFormContext(),M=!!reactHookForm.get(m,t),B=m?.[t]?.message?.toString()||p,Z=P=>P?!!(n&&P.isBefore(i7__default.default(n).endOf("day"))||a&&P.isAfter(i7__default.default(a).endOf("day"))):!1,{field:k}=reactHookForm.useController({name:t,control:f,defaultValue:i,rules:l});return jsxRuntime.jsxs("div",{style:L,children:[jsxRuntime.jsx(q,{label:C,details:o,isLabelBold:e,required:!!l.required}),jsxRuntime.jsx(Ig,{format:d,disabled:r,disabledDate:Z,status:M?"error":"",...c,onChange:(P,H)=>{k.onChange(H);},value:k.value?i7__default.default(k.value):null,popupClassName:"date-select-pop-up-container"}),jsxRuntime.jsx(react.Global,{styles:react.css`
|
|
1949
1949
|
.date-select-pop-up-container {
|
|
1950
1950
|
&&&&& .ant-picker-cell-selected .ant-picker-cell-inner {
|
|
1951
1951
|
background: #285e50;
|
|
@@ -1984,21 +1984,6 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
1984
1984
|
border-radius: 50%;
|
|
1985
1985
|
}
|
|
1986
1986
|
|
|
1987
|
-
&&&&& .ant-picker-header {
|
|
1988
|
-
padding-block: 0.75rem;
|
|
1989
|
-
align-items: center;
|
|
1990
|
-
.ant-picker-header-super-prev-btn {
|
|
1991
|
-
display: none;
|
|
1992
|
-
}
|
|
1993
|
-
.ant-picker-header-super-next-btn {
|
|
1994
|
-
display: none;
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
.ant-picker-footer {
|
|
1999
|
-
display: none;
|
|
2000
|
-
}
|
|
2001
|
-
|
|
2002
1987
|
.ant-picker-body {
|
|
2003
1988
|
th {
|
|
2004
1989
|
font-size: 0.75rem;
|
|
@@ -2032,7 +2017,7 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
2032
2017
|
gap: 8px;
|
|
2033
2018
|
`,Z6=$__default.default(w.Body)`
|
|
2034
2019
|
color: rgba(135, 135, 135);
|
|
2035
|
-
`;var{Dragger:Ug}=antd.Upload,Gg=({label:C="",name:e,disabled:t=!1,description:o="",isLabelBold:r=!0,formOptions:i={},onChange:n,onRemove:a,onDownload:l,onDrop:p,defaultValue:L=void 0,containerStyle:d={},errorMessage:c=void 0,action:f="",headers:m={},uploadData:M={},defaultFileList:B=[],...Z})=>{reactHookForm.useFormContext().register(e,i);let{getFieldState:
|
|
2020
|
+
`;var{Dragger:Ug}=antd.Upload,Gg=({label:C="",name:e,disabled:t=!1,description:o="",isLabelBold:r=!0,formOptions:i={},onChange:n,onRemove:a,onDownload:l,onDrop:p,defaultValue:L=void 0,containerStyle:d={},errorMessage:c=void 0,action:f="",headers:m={},uploadData:M={},defaultFileList:B=[],...Z})=>{reactHookForm.useFormContext().register(e,i);let{getFieldState:P,formState:{errors:H}}=reactHookForm.useFormContext(),u=!!reactHookForm.get(H,e);return jsxRuntime.jsxs("div",{style:d,children:[jsxRuntime.jsx(q,{label:C,isLabelBold:r,required:!!i.required,details:o}),jsxRuntime.jsx("div",{style:{height:"0px",width:"0px",opacity:0},children:jsxRuntime.jsx(y8,{formOptions:{required:P(e).invalid},name:`${e}_validation`,type:"text"})}),jsxRuntime.jsxs(Ug,{name:"file",multiple:!0,onChange:n,onDrop:p,onRemove:a,onDownload:l,action:f,disabled:t,headers:m,defaultFileList:B,showUploadList:{showDownloadIcon:!0},data:M,...Z,capture:void 0,children:[jsxRuntime.jsx(T.Attachment,{}),jsxRuntime.jsxs(tn,{children:[jsxRuntime.jsx(Z6,{children:jsxRuntime.jsx("span",{style:{fontWeight:"bold"},children:"DRAG FILE HERE"})}),jsxRuntime.jsx(Z6,{size:"sm",children:"or click to browse (10 MB max)"})]})]}),L?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Current Value: ",L]}):null,u&&jsxRuntime.jsx(N,{text:c,includeIcon:!1})]})},rn=Gg;var Wg=C=>{let{title:e,description:t}=C;return jsxRuntime.jsxs(p1,{vertical:!0,style:{paddingBottom:24},children:[jsxRuntime.jsx(w.Header,{children:e}),t&&jsxRuntime.jsx(w.Body,{children:t})]})};function P8({defaultExpandAll:C,treeData:e,checkedKeys:t,...o}){let[r,i]=If.useState([]),[n,a]=If.useState([]),l=L=>{let d=[];return L.forEach(c=>{c.key&&d.push(c.key),Array.isArray(c.children)&&(d=d.concat(l(c.children)));}),d},p=(L,d)=>{if(n.includes(d.node.key)){let f=new Set([d.node.key]);d.node.children&&d.node.children.forEach(({key:m})=>f.add(m)),a(m=>m.filter(M=>!f.has(M))),i(m=>m.filter(M=>!f.has(M)));}else a(f=>[...f,d.node.key]),i(f=>[...f,d.node.key]);};return If.useEffect(()=>{if(!C||!e)return;let L=l(e);a(L),i(L);},[C]),If.useEffect(()=>{t&&(C||(a(t),i(t)));},[C,t]),jsxRuntime.jsx(antd.Tree,{switcherIcon:null,expandedKeys:r,checkedKeys:t,checkable:!0,checkStrictly:!0,selectable:!1,treeData:e,onCheck:p,titleRender:Wg,style:{backgroundColor:s.green100},...o})}var Jg=({name:C,...e})=>{let{control:t}=reactHookForm.useFormContext();return jsxRuntime.jsx(reactHookForm.Controller,{control:t,name:C,render:({field:o})=>jsxRuntime.jsx(P8,{onCheck:r=>{Array.isArray(r)?o.onChange(r):o.onChange(r.checked);},checkedKeys:o.value,onBlur:o.onBlur,...e})})},ln=Jg;var pn=$__default.default.div`
|
|
2036
2021
|
position: relative;
|
|
2037
2022
|
z-index: 40;
|
|
2038
2023
|
`;$__default.default(w.Body)`
|
|
@@ -2099,7 +2084,7 @@ The mask that was received is: ${JSON.stringify(C)}`);return C.map(t=>t instance
|
|
|
2099
2084
|
width: auto;
|
|
2100
2085
|
height: auto;
|
|
2101
2086
|
}
|
|
2102
|
-
`;var oh={dissatisfied:{iconFill:"#DA4D54",background:"#F1E1E2"},neutral:{iconFill:"#D7A13B",background:"#F4E5CA"},satisfied:{iconFill:"#285E50",background:"#D4E2DD"}};function E8({iconProps:C={},containerStyles:e={},value:t=void 0,onChange:o=void 0}){let[r,i]=If.useState(t),n=l=>i(l),a=l=>r===l;return If.useEffect(()=>{o&&o(r);},[r]),jsxRuntime.jsx(p1,{gap:".5rem",style:{...e},children:Object.values(q7).map(l=>{let{iconFill:p,background:L}=oh[l],d=a(l);return jsxRuntime.jsx(cn,{backgroundColor:r?L:"#ffffff",onClick:()=>n(l),isActive:d,children:jsxRuntime.jsx(T.Sentiment,{...C,variant:l,color:d?p:"#7F7F7F"})})})})}function B6({name:C,...e}){let{control:t}=reactHookForm.useFormContext();return jsxRuntime.jsx(reactHookForm.Controller,{control:t,name:C,render:({field:{value:o,onChange:r}})=>jsxRuntime.jsx(E8,{...e,onChange:r,value:o})})}var gn=C=>{let e=C.split("/"),t=+e[0],o=+e[1],r=+e[2];return new Date(r,t-1,o)},hn=C=>{let e=C.getDate(),t=C.getMonth()+1,o=C.getFullYear(),r=e<10?`0${e}`:e.toString();return [t<10?`0${t}`:t.toString(),r,o].join("/")},ph=({label:C=void 0,isLabelBold:e=!0,name:t,details:o=void 0,formOptions:r={},style:i={},errorMessage:n="This field is required.",minDate:a=new Date(1915,0,1),maxDate:l=new Date,showErrorMessage:p=!0,...L})=>{let{formState:{errors:d},setValue:c,register:f,watch:m}=reactHookForm.useFormContext();f(t,r);let M=m(t),[B,Z]=If.useState("");If.useEffect(()=>{if(!M)return;let u=typeof M=="string"?new Date(M):M,b=hn(u);Z(b);},[M]);let k=(u,b)=>{Z(u),b.unmaskedValue.length!==8&&c(t,"");},
|
|
2087
|
+
`;var oh={dissatisfied:{iconFill:"#DA4D54",background:"#F1E1E2"},neutral:{iconFill:"#D7A13B",background:"#F4E5CA"},satisfied:{iconFill:"#285E50",background:"#D4E2DD"}};function E8({iconProps:C={},containerStyles:e={},value:t=void 0,onChange:o=void 0}){let[r,i]=If.useState(t),n=l=>i(l),a=l=>r===l;return If.useEffect(()=>{o&&o(r);},[r]),jsxRuntime.jsx(p1,{gap:".5rem",style:{...e},children:Object.values(q7).map(l=>{let{iconFill:p,background:L}=oh[l],d=a(l);return jsxRuntime.jsx(cn,{backgroundColor:r?L:"#ffffff",onClick:()=>n(l),isActive:d,children:jsxRuntime.jsx(T.Sentiment,{...C,variant:l,color:d?p:"#7F7F7F"})})})})}function B6({name:C,...e}){let{control:t}=reactHookForm.useFormContext();return jsxRuntime.jsx(reactHookForm.Controller,{control:t,name:C,render:({field:{value:o,onChange:r}})=>jsxRuntime.jsx(E8,{...e,onChange:r,value:o})})}var gn=C=>{let e=C.split("/"),t=+e[0],o=+e[1],r=+e[2];return new Date(r,t-1,o)},hn=C=>{let e=C.getDate(),t=C.getMonth()+1,o=C.getFullYear(),r=e<10?`0${e}`:e.toString();return [t<10?`0${t}`:t.toString(),r,o].join("/")},ph=({label:C=void 0,isLabelBold:e=!0,name:t,details:o=void 0,formOptions:r={},style:i={},errorMessage:n="This field is required.",minDate:a=new Date(1915,0,1),maxDate:l=new Date,showErrorMessage:p=!0,...L})=>{let{formState:{errors:d},setValue:c,register:f,watch:m}=reactHookForm.useFormContext();f(t,r);let M=m(t),[B,Z]=If.useState("");If.useEffect(()=>{if(!M)return;let u=typeof M=="string"?new Date(M):M,b=hn(u);Z(b);},[M]);let k=(u,b)=>{Z(u),b.unmaskedValue.length!==8&&c(t,"");},P=!!reactHookForm.get(d,t),H=d?.[t]?.message?.toString()||n;return jsxRuntime.jsxs("div",{style:i,children:[jsxRuntime.jsx(q,{label:C,details:o,isLabelBold:e,required:!!r.required}),jsxRuntime.jsx(w8,{value:B,mask:Date,placeholder:"MM/DD/YYYY",pattern:"m/d/Y",format:hn,parse:gn,onAccept:k,onComplete:u=>c(t,gn(u)),min:a,max:l,autofix:!1,lazy:!0,overwrite:!1,...L}),p&&P&&jsxRuntime.jsx(N,{text:H,includeIcon:!1})]})},un=ph;var g5={AddressSelect:Ni,ButtonRadioGroup:di,Container:fr,Checkbox:m8,CheckboxGroup:lr,CheckboxCardGroup:pr,InputLabel:q,DateSelect:Cn,DateTextMaskInput:un,TextInput:d5,Text:y8,TimePicker:Xi,TimeSelect:Yi,Radio:v8,RadioGroup:pi,CheckMarkRadio:fi,WelcomeCheckbox:Lr,CardRadioGroup:Li,Number:_r,Select:Mi,SelectMenu:Si,SentimentSelector:B6,Signature:Tr,Submit:Ei,LocationSelect:Wi,Keyword:ji,Toggle:V6,FileUpload:rn,Tree:ln,DateDropdown:fn};var yh=()=>Array.from({length:12},(e,t)=>({label:new Date(t,t).toLocaleString("en-US",{month:"long"}),value:t+1})),vh=(C,e)=>{let t=C||1,o=e||2024,r=new Date(o,t,0).getDate();return Array.from({length:r},(n,a)=>({label:a+1,value:a+1}))},Mh=()=>Array.from({length:110},(e,t)=>{let o=new Date().getFullYear()-t;return {label:o,value:o}}),bh=({label:C="",details:e=void 0,isLabelBold:t=!1,required:o=!1,onChange:r=()=>null,defaultValue:i=null,hasError:n=!1})=>{let a=If.useRef(null),[l,p]=If.useState(!1),L=reactHookForm.useForm({defaultValues:{month:null,day:null,year:null}}),{reset:d}=L;If.useEffect(()=>{if(!i)return;let m=new Date(i);d({month:m.getMonth()+1,day:m.getDate(),year:m.getFullYear()});},[i]);let c=L.watch(),f=vh(c?.month,c?.year);return If.useEffect(()=>{let m=f.find(M=>M.value===c.day);if(c.month&&c.day&&c.year&&m){let M=new Date(c.year,c.month-1,c.day);r(M);}else r(null);},[c.month,c.day,c.year]),If.useEffect(()=>{a.current&&p(!0);},[a,l]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:a}),l&&reactDom.createPortal(jsxRuntime.jsxs(g5.Container,{formMethods:L,onSubmit:()=>null,children:[jsxRuntime.jsx(q,{label:C,isLabelBold:t,required:!!o,details:e}),jsxRuntime.jsxs(Co,{gap:8,hasError:n,children:[jsxRuntime.jsx(g5.SelectMenu,{name:"month",options:yh(),placeholder:"Month",containerStyle:{width:"100%"},sort:!1}),jsxRuntime.jsx(g5.SelectMenu,{name:"day",options:f,placeholder:"Day",containerStyle:{width:"100%"},sort:!1}),jsxRuntime.jsx(g5.SelectMenu,{name:"year",options:Mh(),placeholder:"Year",containerStyle:{width:"100%"}})]})]}),a.current||document.body)]})},P6=bh;var _h=({value:C=null,onChange:e,startRange:t=void 0,endRange:o=void 0,defaultValue:r=i7__default.default(),format:i=void 0,placeholder:n=void 0,className:a=void 0,hasError:l=!1,disabled:p=!1,...L})=>{let[d,c]=If.useState(!1),f=M=>M?!!(t&&M<i7__default.default(t).endOf("day")||o&&M>i7__default.default(o).endOf("day")):!1,m=l?A1.colors.fail:"#5a5a5a";return jsxRuntime.jsx(antd.DatePicker,{className:a,placeholder:n,format:i,disabled:p,disabledDate:f,onChange:e,onFocus:()=>{c(!0);},onBlur:()=>{c(!1);},value:C?i7__default.default(C):i7__default.default(r),style:{width:"100%",height:"50px",boxSizing:"border-box",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:d?A1.colors.secondaryGreen:m,padding:"20px 23px",backgroundColor:"#fff",fontFamily:A1.typography.family.body,fontWeight:A1.typography.weight.normal,fontStyle:"normal",fontSize:"16px",outlineStyle:"none",boxShadow:d?`0 0 0 1px ${A1.colors.secondaryGreen}`:"none"},...L})},Zh=_h;var Eh=({style:C={width:50,borderWidth:2,borderColor:"#d4e2dd"},type:e="horizontal",...t})=>jsxRuntime.jsx(antd.Divider,{style:C,type:e,...t}),Bh=Eh;var wn=$__default.default(({className:C,...e})=>jsxRuntime.jsx(antd.Drawer,{rootClassName:C,classNames:{content:C},...e}))`
|
|
2103
2088
|
--border-radius: ${C=>C.placement==="bottom"?32:0}px;
|
|
2104
2089
|
|
|
2105
2090
|
&.ant-drawer-content {
|