@solace-health/ui 0.10.214 → 0.10.215
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 +25 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +25 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -48,8 +48,8 @@ var K5__default = /*#__PURE__*/_interopDefault(K5);
|
|
|
48
48
|
var Oa__default = /*#__PURE__*/_interopDefault(Oa);
|
|
49
49
|
var FB__namespace = /*#__PURE__*/_interopNamespace(FB);
|
|
50
50
|
|
|
51
|
-
var WQ=Object.create;var c6=Object.defineProperty;var NQ=Object.getOwnPropertyDescriptor;var _Q=Object.getOwnPropertyNames;var $Q=Object.getPrototypeOf,Ae=Object.prototype.hasOwnProperty;var $2=(A,C)=>()=>(C||A((C={exports:{}}).exports,C),C.exports);var Ce=(A,C,g,E)=>{if(C&&typeof C=="object"||typeof C=="function")for(let I of _Q(C))!Ae.call(A,I)&&I!==g&&c6(A,I,{get:()=>C[I],enumerable:!(E=NQ(C,I))||E.enumerable});return A};var ge=(A,C,g)=>(g=A!=null?WQ($Q(A)):{},Ce(C||!A||!A.__esModule?c6(g,"default",{value:A,enumerable:!0}):g,A));var gg=$2(N=>{var c2=typeof Symbol=="function"&&Symbol.for,q7=c2?Symbol.for("react.element"):60103,m7=c2?Symbol.for("react.portal"):60106,w9=c2?Symbol.for("react.fragment"):60107,x9=c2?Symbol.for("react.strict_mode"):60108,P9=c2?Symbol.for("react.profiler"):60114,z9=c2?Symbol.for("react.provider"):60109,U9=c2?Symbol.for("react.context"):60110,v7=c2?Symbol.for("react.async_mode"):60111,H9=c2?Symbol.for("react.concurrent_mode"):60111,S9=c2?Symbol.for("react.forward_ref"):60112,k9=c2?Symbol.for("react.suspense"):60113,ir=c2?Symbol.for("react.suspense_list"):60120,F9=c2?Symbol.for("react.memo"):60115,O9=c2?Symbol.for("react.lazy"):60116,tr=c2?Symbol.for("react.block"):60121,rr=c2?Symbol.for("react.fundamental"):60117,nr=c2?Symbol.for("react.responder"):60118,Lr=c2?Symbol.for("react.scope"):60119;function O2(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case q7:switch(A=A.type,A){case v7:case H9:case w9:case P9:case x9:case k9:return A;default:switch(A=A&&A.$$typeof,A){case U9:case S9:case O9:case F9:case z9:return A;default:return C}}case m7:return C}}}function Cg(A){return O2(A)===H9}N.AsyncMode=v7;N.ConcurrentMode=H9;N.ContextConsumer=U9;N.ContextProvider=z9;N.Element=q7;N.ForwardRef=S9;N.Fragment=w9;N.Lazy=O9;N.Memo=F9;N.Portal=m7;N.Profiler=P9;N.StrictMode=x9;N.Suspense=k9;N.isAsyncMode=function(A){return Cg(A)||O2(A)===v7};N.isConcurrentMode=Cg;N.isContextConsumer=function(A){return O2(A)===U9};N.isContextProvider=function(A){return O2(A)===z9};N.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===q7};N.isForwardRef=function(A){return O2(A)===S9};N.isFragment=function(A){return O2(A)===w9};N.isLazy=function(A){return O2(A)===O9};N.isMemo=function(A){return O2(A)===F9};N.isPortal=function(A){return O2(A)===m7};N.isProfiler=function(A){return O2(A)===P9};N.isStrictMode=function(A){return O2(A)===x9};N.isSuspense=function(A){return O2(A)===k9};N.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===w9||A===H9||A===P9||A===x9||A===k9||A===ir||typeof A=="object"&&A!==null&&(A.$$typeof===O9||A.$$typeof===F9||A.$$typeof===z9||A.$$typeof===U9||A.$$typeof===S9||A.$$typeof===rr||A.$$typeof===nr||A.$$typeof===Lr||A.$$typeof===tr)};N.typeOf=O2;});var Eg=$2(_=>{process.env.NODE_ENV!=="production"&&function(){var A=typeof Symbol=="function"&&Symbol.for,C=A?Symbol.for("react.element"):60103,g=A?Symbol.for("react.portal"):60106,E=A?Symbol.for("react.fragment"):60107,I=A?Symbol.for("react.strict_mode"):60108,B=A?Symbol.for("react.profiler"):60114,Q=A?Symbol.for("react.provider"):60109,e=A?Symbol.for("react.context"):60110,o=A?Symbol.for("react.async_mode"):60111,i=A?Symbol.for("react.concurrent_mode"):60111,r=A?Symbol.for("react.forward_ref"):60112,t=A?Symbol.for("react.suspense"):60113,n=A?Symbol.for("react.suspense_list"):60120,L=A?Symbol.for("react.memo"):60115,f=A?Symbol.for("react.lazy"):60116,R=A?Symbol.for("react.block"):60121,u=A?Symbol.for("react.fundamental"):60117,K=A?Symbol.for("react.responder"):60118,m=A?Symbol.for("react.scope"):60119;function U(x){return typeof x=="string"||typeof x=="function"||x===E||x===i||x===B||x===I||x===t||x===n||typeof x=="object"&&x!==null&&(x.$$typeof===f||x.$$typeof===L||x.$$typeof===Q||x.$$typeof===e||x.$$typeof===r||x.$$typeof===u||x.$$typeof===K||x.$$typeof===m||x.$$typeof===R)}function a(x){if(typeof x=="object"&&x!==null){var d4=x.$$typeof;switch(d4){case C:var _5=x.type;switch(_5){case o:case i:case E:case B:case I:case t:return _5;default:var d6=_5&&_5.$$typeof;switch(d6){case e:case r:case f:case L:case Q:return d6;default:return d4}}case g:return d4}}}var l=o,S=i,w=e,k=Q,W=C,F=r,g2=E,P2=f,s=L,p=g,P=B,J=I,q=t,z=!1;function h(x){return z||(z=!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.")),H(x)||a(x)===o}function H(x){return a(x)===i}function j(x){return a(x)===e}function D(x){return a(x)===Q}function y(x){return typeof x=="object"&&x!==null&&x.$$typeof===C}function m2(x){return a(x)===r}function l2(x){return a(x)===E}function R1(x){return a(x)===f}function ZQ(x){return a(x)===L}function YQ(x){return a(x)===g}function DQ(x){return a(x)===B}function TQ(x){return a(x)===I}function GQ(x){return a(x)===t}_.AsyncMode=l,_.ConcurrentMode=S,_.ContextConsumer=w,_.ContextProvider=k,_.Element=W,_.ForwardRef=F,_.Fragment=g2,_.Lazy=P2,_.Memo=s,_.Portal=p,_.Profiler=P,_.StrictMode=J,_.Suspense=q,_.isAsyncMode=h,_.isConcurrentMode=H,_.isContextConsumer=j,_.isContextProvider=D,_.isElement=y,_.isForwardRef=m2,_.isFragment=l2,_.isLazy=R1,_.isMemo=ZQ,_.isPortal=YQ,_.isProfiler=DQ,_.isStrictMode=TQ,_.isSuspense=GQ,_.isValidElementType=U,_.typeOf=a;}();});var w7=$2((OP,M7)=>{process.env.NODE_ENV==="production"?M7.exports=gg():M7.exports=Eg();});var Qg=$2((JP,Bg)=>{var Ig=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable;function lr(A){if(A==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(A)}function fr(){try{if(!Object.assign)return !1;var A=new String("abc");if(A[5]="de",Object.getOwnPropertyNames(A)[0]==="5")return !1;for(var C={},g=0;g<10;g++)C["_"+String.fromCharCode(g)]=g;var E=Object.getOwnPropertyNames(C).map(function(B){return C[B]});if(E.join("")!=="0123456789")return !1;var I={};return "abcdefghijklmnopqrst".split("").forEach(function(B){I[B]=B;}),Object.keys(Object.assign({},I)).join("")==="abcdefghijklmnopqrst"}catch{return !1}}Bg.exports=fr()?Object.assign:function(A,C){for(var g,E=lr(A),I,B=1;B<arguments.length;B++){g=Object(arguments[B]);for(var Q in g)sr.call(g,Q)&&(E[Q]=g[Q]);if(Ig){I=Ig(g);for(var e=0;e<I.length;e++)ar.call(g,I[e])&&(E[I[e]]=g[I[e]]);}}return E};});var J9=$2((KP,eg)=>{var pr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";eg.exports=pr;});var x7=$2((XP,og)=>{og.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var Lg=$2((bP,ng)=>{var P7=function(){};process.env.NODE_ENV!=="production"&&(ig=J9(),K9={},tg=x7(),P7=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});var ig,K9,tg;function rg(A,C,g,E,I){if(process.env.NODE_ENV!=="production"){for(var B in A)if(tg(A,B)){var Q;try{if(typeof A[B]!="function"){var e=Error((E||"React class")+": "+g+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw e.name="Invariant Violation",e}Q=A[B](C,B,E,g,null,ig);}catch(i){Q=i;}if(Q&&!(Q instanceof Error)&&P7((E||"React class")+": type specification of "+g+" `"+B+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof Q+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),Q instanceof Error&&!(Q.message in K9)){K9[Q.message]=!0;var o=I?I():"";P7("Failed "+g+" type: "+Q.message+(o??""));}}}}rg.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(K9={});};ng.exports=rg;});var lg=$2((jP,ag)=>{var dr=w7(),cr=Qg(),Y3=J9(),z7=x7(),sg=Lg(),D3=function(){};process.env.NODE_ENV!=="production"&&(D3=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});function X9(){return null}ag.exports=function(A,C){var g=typeof Symbol=="function"&&Symbol.iterator,E="@@iterator";function I(s){var p=s&&(g&&s[g]||s[E]);if(typeof p=="function")return p}var B="<<anonymous>>",Q={array:r("array"),bigint:r("bigint"),bool:r("boolean"),func:r("function"),number:r("number"),object:r("object"),string:r("string"),symbol:r("symbol"),any:t(),arrayOf:n,element:L(),elementType:f(),instanceOf:R,node:U(),objectOf:K,oneOf:u,oneOfType:m,shape:l,exact:S};function e(s,p){return s===p?s!==0||1/s===1/p:s!==s&&p!==p}function o(s,p){this.message=s,this.data=p&&typeof p=="object"?p:{},this.stack="";}o.prototype=Error.prototype;function i(s){if(process.env.NODE_ENV!=="production")var p={},P=0;function J(z,h,H,j,D,y,m2){if(j=j||B,y=y||H,m2!==Y3){if(C){var l2=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 l2.name="Invariant Violation",l2}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var R1=j+":"+H;!p[R1]&&P<3&&(D3("You are manually calling a React.PropTypes validation function for the `"+y+"` prop on `"+j+"`. 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."),p[R1]=!0,P++);}}return h[H]==null?z?h[H]===null?new o("The "+D+" `"+y+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new o("The "+D+" `"+y+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:s(h,H,j,D,y)}var q=J.bind(null,!1);return q.isRequired=J.bind(null,!0),q}function r(s){function p(P,J,q,z,h,H){var j=P[J],D=W(j);if(D!==s){var y=F(j);return new o("Invalid "+z+" `"+h+"` of type "+("`"+y+"` supplied to `"+q+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return i(p)}function t(){return i(X9)}function n(s){function p(P,J,q,z,h){if(typeof s!="function")return new o("Property `"+h+"` of component `"+q+"` has invalid PropType notation inside arrayOf.");var H=P[J];if(!Array.isArray(H)){var j=W(H);return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+q+"`, expected an array."))}for(var D=0;D<H.length;D++){var y=s(H,D,q,z,h+"["+D+"]",Y3);if(y instanceof Error)return y}return null}return i(p)}function L(){function s(p,P,J,q,z){var h=p[P];if(!A(h)){var H=W(h);return new o("Invalid "+q+" `"+z+"` of type "+("`"+H+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return i(s)}function f(){function s(p,P,J,q,z){var h=p[P];if(!dr.isValidElementType(h)){var H=W(h);return new o("Invalid "+q+" `"+z+"` of type "+("`"+H+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return i(s)}function R(s){function p(P,J,q,z,h){if(!(P[J]instanceof s)){var H=s.name||B,j=P2(P[J]);return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+q+"`, expected ")+("instance of `"+H+"`."))}return null}return i(p)}function u(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?D3("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])."):D3("Invalid argument supplied to oneOf, expected an array.")),X9;function p(P,J,q,z,h){for(var H=P[J],j=0;j<s.length;j++)if(e(H,s[j]))return null;var D=JSON.stringify(s,function(m2,l2){var R1=F(l2);return R1==="symbol"?String(l2):l2});return new o("Invalid "+z+" `"+h+"` of value `"+String(H)+"` "+("supplied to `"+q+"`, expected one of "+D+"."))}return i(p)}function K(s){function p(P,J,q,z,h){if(typeof s!="function")return new o("Property `"+h+"` of component `"+q+"` has invalid PropType notation inside objectOf.");var H=P[J],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+q+"`, expected an object."));for(var D in H)if(z7(H,D)){var y=s(H,D,q,z,h+"."+D,Y3);if(y instanceof Error)return y}return null}return i(p)}function m(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&D3("Invalid argument supplied to oneOfType, expected an instance of array."),X9;for(var p=0;p<s.length;p++){var P=s[p];if(typeof P!="function")return D3("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+g2(P)+" at index "+p+"."),X9}function J(q,z,h,H,j){for(var D=[],y=0;y<s.length;y++){var m2=s[y],l2=m2(q,z,h,H,j,Y3);if(l2==null)return null;l2.data&&z7(l2.data,"expectedType")&&D.push(l2.data.expectedType);}var R1=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new o("Invalid "+H+" `"+j+"` supplied to "+("`"+h+"`"+R1+"."))}return i(J)}function U(){function s(p,P,J,q,z){return w(p[P])?null:new o("Invalid "+q+" `"+z+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return i(s)}function a(s,p,P,J,q){return new o((s||"React class")+": "+p+" type `"+P+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+q+"`.")}function l(s){function p(P,J,q,z,h){var H=P[J],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type `"+j+"` "+("supplied to `"+q+"`, expected `object`."));for(var D in s){var y=s[D];if(typeof y!="function")return a(q,z,h,D,F(y));var m2=y(H,D,q,z,h+"."+D,Y3);if(m2)return m2}return null}return i(p)}function S(s){function p(P,J,q,z,h){var H=P[J],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type `"+j+"` "+("supplied to `"+q+"`, expected `object`."));var D=cr({},P[J],s);for(var y in D){var m2=s[y];if(z7(s,y)&&typeof m2!="function")return a(q,z,h,y,F(m2));if(!m2)return new o("Invalid "+z+" `"+h+"` key `"+y+"` supplied to `"+q+"`.\nBad object: "+JSON.stringify(P[J],null," ")+`
|
|
52
|
-
Valid keys: `+JSON.stringify(Object.keys(s),null," "));var l2=m2(H,y,q,z,h+"."+y,Y3);if(l2)return l2}return null}return i(p)}function w(s){switch(typeof s){case"number":case"string":case"undefined":return !0;case"boolean":return !s;case"object":if(Array.isArray(s))return s.every(w);if(s===null||A(s))return !0;var p=I(s);if(p){var P=p.call(s),J;if(p!==s.entries){for(;!(J=P.next()).done;)if(!w(J.value))return !1}else for(;!(J=P.next()).done;){var q=J.value;if(q&&!w(q[1]))return !1}}else return !1;return !0;default:return !1}}function k(s,p){return s==="symbol"?!0:p?p["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&p instanceof Symbol:!1}function W(s){var p=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":k(p,s)?"symbol":p}function F(s){if(typeof s>"u"||s===null)return ""+s;var p=W(s);if(p==="object"){if(s instanceof Date)return "date";if(s instanceof RegExp)return "regexp"}return p}function g2(s){var p=F(s);switch(p){case"array":case"object":return "an "+p;case"boolean":case"date":case"regexp":return "a "+p;default:return p}}function P2(s){return !s.constructor||!s.constructor.name?B:s.constructor.name}return Q.checkPropTypes=sg,Q.resetWarningCache=sg.resetWarningCache,Q.PropTypes=Q,Q};});var cg=$2((yP,dg)=>{var Vr=J9();function fg(){}function pg(){}pg.resetWarningCache=fg;dg.exports=function(){function A(E,I,B,Q,e,o){if(o!==Vr){var i=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 i.name="Invariant Violation",i}}A.isRequired=A;function C(){return A}var g={array:A,bigint:A,bool:A,func:A,number:A,object:A,string:A,symbol:A,any:A,arrayOf:C,element:A,elementType:A,instanceOf:C,node:A,objectOf:C,oneOf:C,oneOfType:C,shape:C,exact:C,checkPropTypes:pg,resetWarningCache:fg};return g.PropTypes=g,g};});var ug=$2((ZP,U7)=>{process.env.NODE_ENV!=="production"?(Vg=w7(),hg=!0,U7.exports=lg()(Vg.isElement,hg)):U7.exports=cg()();var Vg,hg;});var Qe={from:{opacity:0},to:{opacity:1}},ee={from:{transform:"translateY(50px)",opacity:0},to:{transform:"translateY(0)",opacity:1}},oe=(A,C,g)=>{if(C&&g)return {to:C,from:g};switch(A){case"fadeIn":return Qe;case"slideIn":return ee;default:return {to:C,from:g}}},ie=({children:A,delay:C=0,type:g="fadeIn",to:E=null,from:I=null,trigger:B=!0,style:Q={},config:e="default",animationProps:o={},...i})=>{let{to:
|
|
51
|
+
var WQ=Object.create;var c6=Object.defineProperty;var NQ=Object.getOwnPropertyDescriptor;var _Q=Object.getOwnPropertyNames;var $Q=Object.getPrototypeOf,Ae=Object.prototype.hasOwnProperty;var $2=(A,C)=>()=>(C||A((C={exports:{}}).exports,C),C.exports);var Ce=(A,C,g,E)=>{if(C&&typeof C=="object"||typeof C=="function")for(let I of _Q(C))!Ae.call(A,I)&&I!==g&&c6(A,I,{get:()=>C[I],enumerable:!(E=NQ(C,I))||E.enumerable});return A};var ge=(A,C,g)=>(g=A!=null?WQ($Q(A)):{},Ce(C||!A||!A.__esModule?c6(g,"default",{value:A,enumerable:!0}):g,A));var gg=$2(N=>{var c2=typeof Symbol=="function"&&Symbol.for,q7=c2?Symbol.for("react.element"):60103,m7=c2?Symbol.for("react.portal"):60106,w9=c2?Symbol.for("react.fragment"):60107,x9=c2?Symbol.for("react.strict_mode"):60108,P9=c2?Symbol.for("react.profiler"):60114,z9=c2?Symbol.for("react.provider"):60109,U9=c2?Symbol.for("react.context"):60110,v7=c2?Symbol.for("react.async_mode"):60111,H9=c2?Symbol.for("react.concurrent_mode"):60111,S9=c2?Symbol.for("react.forward_ref"):60112,k9=c2?Symbol.for("react.suspense"):60113,ir=c2?Symbol.for("react.suspense_list"):60120,F9=c2?Symbol.for("react.memo"):60115,O9=c2?Symbol.for("react.lazy"):60116,tr=c2?Symbol.for("react.block"):60121,rr=c2?Symbol.for("react.fundamental"):60117,nr=c2?Symbol.for("react.responder"):60118,Lr=c2?Symbol.for("react.scope"):60119;function O2(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case q7:switch(A=A.type,A){case v7:case H9:case w9:case P9:case x9:case k9:return A;default:switch(A=A&&A.$$typeof,A){case U9:case S9:case O9:case F9:case z9:return A;default:return C}}case m7:return C}}}function Cg(A){return O2(A)===H9}N.AsyncMode=v7;N.ConcurrentMode=H9;N.ContextConsumer=U9;N.ContextProvider=z9;N.Element=q7;N.ForwardRef=S9;N.Fragment=w9;N.Lazy=O9;N.Memo=F9;N.Portal=m7;N.Profiler=P9;N.StrictMode=x9;N.Suspense=k9;N.isAsyncMode=function(A){return Cg(A)||O2(A)===v7};N.isConcurrentMode=Cg;N.isContextConsumer=function(A){return O2(A)===U9};N.isContextProvider=function(A){return O2(A)===z9};N.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===q7};N.isForwardRef=function(A){return O2(A)===S9};N.isFragment=function(A){return O2(A)===w9};N.isLazy=function(A){return O2(A)===O9};N.isMemo=function(A){return O2(A)===F9};N.isPortal=function(A){return O2(A)===m7};N.isProfiler=function(A){return O2(A)===P9};N.isStrictMode=function(A){return O2(A)===x9};N.isSuspense=function(A){return O2(A)===k9};N.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===w9||A===H9||A===P9||A===x9||A===k9||A===ir||typeof A=="object"&&A!==null&&(A.$$typeof===O9||A.$$typeof===F9||A.$$typeof===z9||A.$$typeof===U9||A.$$typeof===S9||A.$$typeof===rr||A.$$typeof===nr||A.$$typeof===Lr||A.$$typeof===tr)};N.typeOf=O2;});var Eg=$2(_=>{process.env.NODE_ENV!=="production"&&function(){var A=typeof Symbol=="function"&&Symbol.for,C=A?Symbol.for("react.element"):60103,g=A?Symbol.for("react.portal"):60106,E=A?Symbol.for("react.fragment"):60107,I=A?Symbol.for("react.strict_mode"):60108,B=A?Symbol.for("react.profiler"):60114,Q=A?Symbol.for("react.provider"):60109,e=A?Symbol.for("react.context"):60110,o=A?Symbol.for("react.async_mode"):60111,i=A?Symbol.for("react.concurrent_mode"):60111,t=A?Symbol.for("react.forward_ref"):60112,r=A?Symbol.for("react.suspense"):60113,n=A?Symbol.for("react.suspense_list"):60120,L=A?Symbol.for("react.memo"):60115,f=A?Symbol.for("react.lazy"):60116,R=A?Symbol.for("react.block"):60121,u=A?Symbol.for("react.fundamental"):60117,K=A?Symbol.for("react.responder"):60118,m=A?Symbol.for("react.scope"):60119;function U(x){return typeof x=="string"||typeof x=="function"||x===E||x===i||x===B||x===I||x===r||x===n||typeof x=="object"&&x!==null&&(x.$$typeof===f||x.$$typeof===L||x.$$typeof===Q||x.$$typeof===e||x.$$typeof===t||x.$$typeof===u||x.$$typeof===K||x.$$typeof===m||x.$$typeof===R)}function a(x){if(typeof x=="object"&&x!==null){var d4=x.$$typeof;switch(d4){case C:var _5=x.type;switch(_5){case o:case i:case E:case B:case I:case r:return _5;default:var d6=_5&&_5.$$typeof;switch(d6){case e:case t:case f:case L:case Q:return d6;default:return d4}}case g:return d4}}}var l=o,S=i,w=e,k=Q,W=C,F=t,g2=E,P2=f,s=L,p=g,P=B,J=I,q=r,z=!1;function h(x){return z||(z=!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.")),H(x)||a(x)===o}function H(x){return a(x)===i}function j(x){return a(x)===e}function D(x){return a(x)===Q}function y(x){return typeof x=="object"&&x!==null&&x.$$typeof===C}function m2(x){return a(x)===t}function l2(x){return a(x)===E}function R1(x){return a(x)===f}function ZQ(x){return a(x)===L}function YQ(x){return a(x)===g}function DQ(x){return a(x)===B}function TQ(x){return a(x)===I}function GQ(x){return a(x)===r}_.AsyncMode=l,_.ConcurrentMode=S,_.ContextConsumer=w,_.ContextProvider=k,_.Element=W,_.ForwardRef=F,_.Fragment=g2,_.Lazy=P2,_.Memo=s,_.Portal=p,_.Profiler=P,_.StrictMode=J,_.Suspense=q,_.isAsyncMode=h,_.isConcurrentMode=H,_.isContextConsumer=j,_.isContextProvider=D,_.isElement=y,_.isForwardRef=m2,_.isFragment=l2,_.isLazy=R1,_.isMemo=ZQ,_.isPortal=YQ,_.isProfiler=DQ,_.isStrictMode=TQ,_.isSuspense=GQ,_.isValidElementType=U,_.typeOf=a;}();});var w7=$2((OP,M7)=>{process.env.NODE_ENV==="production"?M7.exports=gg():M7.exports=Eg();});var Qg=$2((JP,Bg)=>{var Ig=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable;function lr(A){if(A==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(A)}function fr(){try{if(!Object.assign)return !1;var A=new String("abc");if(A[5]="de",Object.getOwnPropertyNames(A)[0]==="5")return !1;for(var C={},g=0;g<10;g++)C["_"+String.fromCharCode(g)]=g;var E=Object.getOwnPropertyNames(C).map(function(B){return C[B]});if(E.join("")!=="0123456789")return !1;var I={};return "abcdefghijklmnopqrst".split("").forEach(function(B){I[B]=B;}),Object.keys(Object.assign({},I)).join("")==="abcdefghijklmnopqrst"}catch{return !1}}Bg.exports=fr()?Object.assign:function(A,C){for(var g,E=lr(A),I,B=1;B<arguments.length;B++){g=Object(arguments[B]);for(var Q in g)sr.call(g,Q)&&(E[Q]=g[Q]);if(Ig){I=Ig(g);for(var e=0;e<I.length;e++)ar.call(g,I[e])&&(E[I[e]]=g[I[e]]);}}return E};});var J9=$2((KP,eg)=>{var pr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";eg.exports=pr;});var x7=$2((XP,og)=>{og.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var Lg=$2((bP,ng)=>{var P7=function(){};process.env.NODE_ENV!=="production"&&(ig=J9(),K9={},tg=x7(),P7=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});var ig,K9,tg;function rg(A,C,g,E,I){if(process.env.NODE_ENV!=="production"){for(var B in A)if(tg(A,B)){var Q;try{if(typeof A[B]!="function"){var e=Error((E||"React class")+": "+g+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw e.name="Invariant Violation",e}Q=A[B](C,B,E,g,null,ig);}catch(i){Q=i;}if(Q&&!(Q instanceof Error)&&P7((E||"React class")+": type specification of "+g+" `"+B+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof Q+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),Q instanceof Error&&!(Q.message in K9)){K9[Q.message]=!0;var o=I?I():"";P7("Failed "+g+" type: "+Q.message+(o??""));}}}}rg.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(K9={});};ng.exports=rg;});var lg=$2((jP,ag)=>{var dr=w7(),cr=Qg(),Y3=J9(),z7=x7(),sg=Lg(),D3=function(){};process.env.NODE_ENV!=="production"&&(D3=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});function X9(){return null}ag.exports=function(A,C){var g=typeof Symbol=="function"&&Symbol.iterator,E="@@iterator";function I(s){var p=s&&(g&&s[g]||s[E]);if(typeof p=="function")return p}var B="<<anonymous>>",Q={array:t("array"),bigint:t("bigint"),bool:t("boolean"),func:t("function"),number:t("number"),object:t("object"),string:t("string"),symbol:t("symbol"),any:r(),arrayOf:n,element:L(),elementType:f(),instanceOf:R,node:U(),objectOf:K,oneOf:u,oneOfType:m,shape:l,exact:S};function e(s,p){return s===p?s!==0||1/s===1/p:s!==s&&p!==p}function o(s,p){this.message=s,this.data=p&&typeof p=="object"?p:{},this.stack="";}o.prototype=Error.prototype;function i(s){if(process.env.NODE_ENV!=="production")var p={},P=0;function J(z,h,H,j,D,y,m2){if(j=j||B,y=y||H,m2!==Y3){if(C){var l2=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 l2.name="Invariant Violation",l2}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var R1=j+":"+H;!p[R1]&&P<3&&(D3("You are manually calling a React.PropTypes validation function for the `"+y+"` prop on `"+j+"`. 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."),p[R1]=!0,P++);}}return h[H]==null?z?h[H]===null?new o("The "+D+" `"+y+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new o("The "+D+" `"+y+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:s(h,H,j,D,y)}var q=J.bind(null,!1);return q.isRequired=J.bind(null,!0),q}function t(s){function p(P,J,q,z,h,H){var j=P[J],D=W(j);if(D!==s){var y=F(j);return new o("Invalid "+z+" `"+h+"` of type "+("`"+y+"` supplied to `"+q+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return i(p)}function r(){return i(X9)}function n(s){function p(P,J,q,z,h){if(typeof s!="function")return new o("Property `"+h+"` of component `"+q+"` has invalid PropType notation inside arrayOf.");var H=P[J];if(!Array.isArray(H)){var j=W(H);return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+q+"`, expected an array."))}for(var D=0;D<H.length;D++){var y=s(H,D,q,z,h+"["+D+"]",Y3);if(y instanceof Error)return y}return null}return i(p)}function L(){function s(p,P,J,q,z){var h=p[P];if(!A(h)){var H=W(h);return new o("Invalid "+q+" `"+z+"` of type "+("`"+H+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return i(s)}function f(){function s(p,P,J,q,z){var h=p[P];if(!dr.isValidElementType(h)){var H=W(h);return new o("Invalid "+q+" `"+z+"` of type "+("`"+H+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return i(s)}function R(s){function p(P,J,q,z,h){if(!(P[J]instanceof s)){var H=s.name||B,j=P2(P[J]);return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+q+"`, expected ")+("instance of `"+H+"`."))}return null}return i(p)}function u(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?D3("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])."):D3("Invalid argument supplied to oneOf, expected an array.")),X9;function p(P,J,q,z,h){for(var H=P[J],j=0;j<s.length;j++)if(e(H,s[j]))return null;var D=JSON.stringify(s,function(m2,l2){var R1=F(l2);return R1==="symbol"?String(l2):l2});return new o("Invalid "+z+" `"+h+"` of value `"+String(H)+"` "+("supplied to `"+q+"`, expected one of "+D+"."))}return i(p)}function K(s){function p(P,J,q,z,h){if(typeof s!="function")return new o("Property `"+h+"` of component `"+q+"` has invalid PropType notation inside objectOf.");var H=P[J],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+q+"`, expected an object."));for(var D in H)if(z7(H,D)){var y=s(H,D,q,z,h+"."+D,Y3);if(y instanceof Error)return y}return null}return i(p)}function m(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&D3("Invalid argument supplied to oneOfType, expected an instance of array."),X9;for(var p=0;p<s.length;p++){var P=s[p];if(typeof P!="function")return D3("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+g2(P)+" at index "+p+"."),X9}function J(q,z,h,H,j){for(var D=[],y=0;y<s.length;y++){var m2=s[y],l2=m2(q,z,h,H,j,Y3);if(l2==null)return null;l2.data&&z7(l2.data,"expectedType")&&D.push(l2.data.expectedType);}var R1=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new o("Invalid "+H+" `"+j+"` supplied to "+("`"+h+"`"+R1+"."))}return i(J)}function U(){function s(p,P,J,q,z){return w(p[P])?null:new o("Invalid "+q+" `"+z+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return i(s)}function a(s,p,P,J,q){return new o((s||"React class")+": "+p+" type `"+P+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+q+"`.")}function l(s){function p(P,J,q,z,h){var H=P[J],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type `"+j+"` "+("supplied to `"+q+"`, expected `object`."));for(var D in s){var y=s[D];if(typeof y!="function")return a(q,z,h,D,F(y));var m2=y(H,D,q,z,h+"."+D,Y3);if(m2)return m2}return null}return i(p)}function S(s){function p(P,J,q,z,h){var H=P[J],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type `"+j+"` "+("supplied to `"+q+"`, expected `object`."));var D=cr({},P[J],s);for(var y in D){var m2=s[y];if(z7(s,y)&&typeof m2!="function")return a(q,z,h,y,F(m2));if(!m2)return new o("Invalid "+z+" `"+h+"` key `"+y+"` supplied to `"+q+"`.\nBad object: "+JSON.stringify(P[J],null," ")+`
|
|
52
|
+
Valid keys: `+JSON.stringify(Object.keys(s),null," "));var l2=m2(H,y,q,z,h+"."+y,Y3);if(l2)return l2}return null}return i(p)}function w(s){switch(typeof s){case"number":case"string":case"undefined":return !0;case"boolean":return !s;case"object":if(Array.isArray(s))return s.every(w);if(s===null||A(s))return !0;var p=I(s);if(p){var P=p.call(s),J;if(p!==s.entries){for(;!(J=P.next()).done;)if(!w(J.value))return !1}else for(;!(J=P.next()).done;){var q=J.value;if(q&&!w(q[1]))return !1}}else return !1;return !0;default:return !1}}function k(s,p){return s==="symbol"?!0:p?p["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&p instanceof Symbol:!1}function W(s){var p=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":k(p,s)?"symbol":p}function F(s){if(typeof s>"u"||s===null)return ""+s;var p=W(s);if(p==="object"){if(s instanceof Date)return "date";if(s instanceof RegExp)return "regexp"}return p}function g2(s){var p=F(s);switch(p){case"array":case"object":return "an "+p;case"boolean":case"date":case"regexp":return "a "+p;default:return p}}function P2(s){return !s.constructor||!s.constructor.name?B:s.constructor.name}return Q.checkPropTypes=sg,Q.resetWarningCache=sg.resetWarningCache,Q.PropTypes=Q,Q};});var cg=$2((yP,dg)=>{var Vr=J9();function fg(){}function pg(){}pg.resetWarningCache=fg;dg.exports=function(){function A(E,I,B,Q,e,o){if(o!==Vr){var i=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 i.name="Invariant Violation",i}}A.isRequired=A;function C(){return A}var g={array:A,bigint:A,bool:A,func:A,number:A,object:A,string:A,symbol:A,any:A,arrayOf:C,element:A,elementType:A,instanceOf:C,node:A,objectOf:C,oneOf:C,oneOfType:C,shape:C,exact:C,checkPropTypes:pg,resetWarningCache:fg};return g.PropTypes=g,g};});var ug=$2((ZP,U7)=>{process.env.NODE_ENV!=="production"?(Vg=w7(),hg=!0,U7.exports=lg()(Vg.isElement,hg)):U7.exports=cg()();var Vg,hg;});var Qe={from:{opacity:0},to:{opacity:1}},ee={from:{transform:"translateY(50px)",opacity:0},to:{transform:"translateY(0)",opacity:1}},oe=(A,C,g)=>{if(C&&g)return {to:C,from:g};switch(A){case"fadeIn":return Qe;case"slideIn":return ee;default:return {to:C,from:g}}},ie=({children:A,delay:C=0,type:g="fadeIn",to:E=null,from:I=null,trigger:B=!0,style:Q={},config:e="default",animationProps:o={},...i})=>{let{to:t,from:r}=oe(g,E,I),n=web.useSpring({from:r,to:B?t:r,delay:C,config:web.config[e],...o});return jsxRuntime.jsx(web.animated.div,{style:{...Q,...n},...i,children:A})},q3=ie;var ae=a2__default.default(web.animated.div)`
|
|
53
53
|
position: absolute;
|
|
54
54
|
top: 1px;
|
|
55
55
|
left: 0px;
|
|
@@ -666,13 +666,13 @@ Valid keys: `+JSON.stringify(Object.keys(s),null," "));var l2=m2(H,y,q,z,h+"."+
|
|
|
666
666
|
gap: 8px;
|
|
667
667
|
margin-top: 6px;
|
|
668
668
|
margin-bottom: ${({marginBottom:A})=>A}px;
|
|
669
|
-
`,er=({children:A=null,text:C="This field is required",includeIcon:g=!0,marginBottom:E=0})=>jsxRuntime.jsxs(Qr,{marginBottom:E,children:[g&&jsxRuntime.jsx(O.ErrorExclamation,{}),jsxRuntime.jsx(d.Body,{size:"xs",color:"#DA4D54",children:A||C})]}),Y=er;var V2=ge(ug(),1);var Rg=[],T3="";function H7({previousConformedValue:A=T3,previousPlaceholder:C=T3,currentCaretPosition:g=0,conformedValue:E,rawValue:I,placeholderChar:B,placeholder:Q,indexesOfPipedChars:e=Rg,caretTrapIndexes:o=Rg}){if(g===0||!I.length)return 0;let i=I.length,
|
|
669
|
+
`,er=({children:A=null,text:C="This field is required",includeIcon:g=!0,marginBottom:E=0})=>jsxRuntime.jsxs(Qr,{marginBottom:E,children:[g&&jsxRuntime.jsx(O.ErrorExclamation,{}),jsxRuntime.jsx(d.Body,{size:"xs",color:"#DA4D54",children:A||C})]}),Y=er;var V2=ge(ug(),1);var Rg=[],T3="";function H7({previousConformedValue:A=T3,previousPlaceholder:C=T3,currentCaretPosition:g=0,conformedValue:E,rawValue:I,placeholderChar:B,placeholder:Q,indexesOfPipedChars:e=Rg,caretTrapIndexes:o=Rg}){if(g===0||!I.length)return 0;let i=I.length,t=A.length,r=Q.length,n=E.length,L=i-t,f=L>0,R=t===0;if(L>1&&!f&&!R)return g;let K=f&&(A===E||E===Q),m=0,U,a;if(K)m=g-L;else {let l=E.toLowerCase(),k=I.toLowerCase().substr(0,g).split(T3).filter(h=>l.indexOf(h)!==-1);a=k[k.length-1];let W=C.substr(0,k.length).split(T3).filter(h=>h!==B).length,g2=Q.substr(0,k.length).split(T3).filter(h=>h!==B).length!==W,P2=C[k.length-1]!==void 0&&Q[k.length-2]!==void 0&&C[k.length-1]!==B&&C[k.length-1]!==Q[k.length-1]&&C[k.length-1]===Q[k.length-2];!f&&(g2||P2)&&W>0&&Q.indexOf(a)>-1&&I[g]!==void 0&&(U=!0,a=I[g]);let p=e.map(h=>l[h]).filter(h=>h===a).length,P=k.filter(h=>h===a).length,q=Q.substr(0,Q.indexOf(B)).split(T3).filter((h,H)=>h===a&&I[H]!==h).length+P+p+(U?1:0),z=0;for(let h=0;h<n;h++){let H=l[h];if(m=h+1,H===a&&z++,z>=q)break}}if(f){let l=m;for(let S=m;S<=r;S++)if(Q[S]===B&&(l=S),Q[S]===B||o.indexOf(S)!==-1||S===r)return l}else if(U){for(let l=m-1;l>=0;l--)if(E[l]===a||o.indexOf(l)!==-1||l===0)return l}else for(let l=m;l>=0;l--)if(Q[l-1]===B||o.indexOf(l)!==-1||l===0)return l}var G3="_",P5="function";var hr=[];function z5(A=hr,C=G3){if(!S7(A))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(A.indexOf(C)!==-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.
|
|
670
670
|
|
|
671
671
|
The placeholder character that was received is: ${JSON.stringify(C)}
|
|
672
672
|
|
|
673
|
-
The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instanceof RegExp?C:g).join("")}function S7(A){return Array.isArray&&Array.isArray(A)||A instanceof Array}function k7(A){return typeof A=="string"||A instanceof String}function qg(A){return typeof A=="number"&&A.length===void 0&&!isNaN(A)}function U5(A){return typeof A>"u"||A===null}var ur="[]";function b9(A){let C=[],g;for(;g=A.indexOf(ur),g!==-1;)C.push(g),A.splice(g,1);return {maskWithoutCaretTraps:A,indexes:C}}var Rr=[],p3="";function F7(A=p3,C=Rr,g={}){if(!S7(C))if(typeof C===P5)C=C(A,g),C=b9(C).maskWithoutCaretTraps;else throw new Error("Text-mask:conformToMask; The mask property must be an array.");let{guide:E=!0,previousConformedValue:I=p3,placeholderChar:B=G3,placeholder:Q=z5(C,B),currentCaretPosition:e,keepCharPositions:o}=g,i=E===!1&&I!==void 0,
|
|
673
|
+
The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instanceof RegExp?C:g).join("")}function S7(A){return Array.isArray&&Array.isArray(A)||A instanceof Array}function k7(A){return typeof A=="string"||A instanceof String}function qg(A){return typeof A=="number"&&A.length===void 0&&!isNaN(A)}function U5(A){return typeof A>"u"||A===null}var ur="[]";function b9(A){let C=[],g;for(;g=A.indexOf(ur),g!==-1;)C.push(g),A.splice(g,1);return {maskWithoutCaretTraps:A,indexes:C}}var Rr=[],p3="";function F7(A=p3,C=Rr,g={}){if(!S7(C))if(typeof C===P5)C=C(A,g),C=b9(C).maskWithoutCaretTraps;else throw new Error("Text-mask:conformToMask; The mask property must be an array.");let{guide:E=!0,previousConformedValue:I=p3,placeholderChar:B=G3,placeholder:Q=z5(C,B),currentCaretPosition:e,keepCharPositions:o}=g,i=E===!1&&I!==void 0,t=A.length,r=I.length,n=Q.length,L=C.length,f=t-r,R=f>0,u=e+(R?-f:0),K=u+Math.abs(f);if(o===!0&&!R){let l=p3;for(let S=u;S<K;S++)Q[S]===B&&(l+=B);A=A.slice(0,u)+l+A.slice(u,t);}let m=A.split(p3).map((l,S)=>({char:l,isNew:S>=u&&S<K}));for(let l=t-1;l>=0;l--){let{char:S}=m[l];if(S!==B){let w=l>=u&&r===L;S===Q[w?l-f:l]&&m.splice(l,1);}}let U=p3,a=!1;A:for(let l=0;l<n;l++){let S=Q[l];if(S===B){if(m.length>0)for(;m.length>0;){let{char:w,isNew:k}=m.shift();if(w===B&&i!==!0){U+=B;continue A}else if(C[l].test(w)){if(o!==!0||k===!1||I===p3||E===!1||!R)U+=w;else {let W=m.length,F=null;for(let g2=0;g2<W;g2++){let P2=m[g2];if(P2.char!==B&&P2.isNew===!1)break;if(P2.char===B){F=g2;break}}F!==null?(U+=w,m.splice(F,1)):l--;}continue A}else a=!0;}i===!1&&(U+=Q.substr(l,n));break}else U+=S;}if(i&&R===!1){let l=null;for(let S=0;S<U.length;S++)Q[S]===B&&(l=S);l!==null?U=U.substr(0,l+1):U=p3;}return {conformedValue:U,meta:{someCharsRejected:a}}}var vg="",mg="none",qr="object",mr=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),vr=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout;function O7(A){let C={previousConformedValue:void 0,previousPlaceholder:void 0};return {state:C,update(g,{inputElement:E,mask:I,guide:B,pipe:Q,placeholderChar:e=G3,keepCharPositions:o=!1,showMask:i=!1}=A){if(typeof g>"u"&&(g=E.value),g===C.previousConformedValue)return;typeof I===qr&&I.pipe!==void 0&&I.mask!==void 0&&(Q=I.pipe,I=I.mask);let t,r;if(I instanceof Array&&(t=z5(I,e)),I===!1)return;let n=wr(g),{selectionEnd:L}=E,{previousConformedValue:f,previousPlaceholder:R}=C,u;if(typeof I===P5){if(r=I(n,{currentCaretPosition:L,previousConformedValue:f,placeholderChar:e}),r===!1)return;let{maskWithoutCaretTraps:F,indexes:g2}=b9(r);r=F,u=g2,t=z5(r,e);}else r=I;let K={previousConformedValue:f,guide:B,placeholderChar:e,pipe:Q,placeholder:t,currentCaretPosition:L,keepCharPositions:o},{conformedValue:m}=F7(n,r,K),U=typeof Q===P5,a={};U&&(a=Q(m,{rawValue:n,...K}),a===!1?a={value:f,rejected:!0}:k7(a)&&(a={value:a}));let l=U?a.value:m,S=H7({previousConformedValue:f,previousPlaceholder:R,conformedValue:l,placeholder:t,rawValue:n,currentCaretPosition:L,placeholderChar:e,indexesOfPipedChars:a.indexesOfPipedChars,caretTrapIndexes:u}),W=l===t&&S===0?i?t:vg:l;C.previousConformedValue=W,C.previousPlaceholder=t,E.value!==W&&(E.value=W,Mr(E,S));}}}function Mr(A,C){document.activeElement===A&&(mr?vr(()=>A.setSelectionRange(C,C,mg),0):A.setSelectionRange(C,C,mg));}function wr(A){if(k7(A))return A;if(qg(A))return String(A);if(A==null)return vg;throw new Error(`The 'value' provided to Text Mask needs to be a string or a number. The value received was:
|
|
674
674
|
|
|
675
|
-
${JSON.stringify(A)}`)}var d3=class extends xr__default.default.PureComponent{constructor(...C){super(...C),this.setRef=this.setRef.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this);}setRef(C){this.inputElement=C;}initTextMask(){let{props:C,props:{value:g}}=this;this.textMaskInputElement=O7({inputElement:this.inputElement,...C}),this.textMaskInputElement.update(g);}componentDidMount(){this.initTextMask();}componentDidUpdate(C){let{value:g,pipe:E,mask:I,guide:B,placeholderChar:Q,showMask:e}=this.props,o={guide:B,placeholderChar:Q,showMask:e},i=typeof E=="function"&&typeof C.pipe=="function"?E.toString()!==C.pipe.toString():U5(E)&&!U5(C.pipe)||!U5(E)&&U5(C.pipe),
|
|
675
|
+
${JSON.stringify(A)}`)}var d3=class extends xr__default.default.PureComponent{constructor(...C){super(...C),this.setRef=this.setRef.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this);}setRef(C){this.inputElement=C;}initTextMask(){let{props:C,props:{value:g}}=this;this.textMaskInputElement=O7({inputElement:this.inputElement,...C}),this.textMaskInputElement.update(g);}componentDidMount(){this.initTextMask();}componentDidUpdate(C){let{value:g,pipe:E,mask:I,guide:B,placeholderChar:Q,showMask:e}=this.props,o={guide:B,placeholderChar:Q,showMask:e},i=typeof E=="function"&&typeof C.pipe=="function"?E.toString()!==C.pipe.toString():U5(E)&&!U5(C.pipe)||!U5(E)&&U5(C.pipe),t=I.toString()!==C.mask.toString(),r=Object.keys(o).some(L=>o[L]!==C[L])||t||i;(g!==this.inputElement.value||r)&&this.initTextMask();}render(){let{render:C,...g}=this.props;return delete g.mask,delete g.guide,delete g.pipe,delete g.placeholderChar,delete g.keepCharPositions,delete g.value,delete g.onBlur,delete g.onChange,delete g.showMask,C(this.setRef,{onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value,...g})}onChange(C){this.textMaskInputElement.update(),typeof this.props.onChange=="function"&&this.props.onChange(C);}onBlur(C){typeof this.props.onBlur=="function"&&this.props.onBlur(C);}};d3.propTypes={mask:V2.default.oneOfType([V2.default.array,V2.default.func,V2.default.bool,V2.default.shape({mask:V2.default.oneOfType([V2.default.array,V2.default.func]),pipe:V2.default.func})]).isRequired,guide:V2.default.bool,value:V2.default.oneOfType([V2.default.string,V2.default.number]),pipe:V2.default.func,placeholderChar:V2.default.string,keepCharPositions:V2.default.bool,showMask:V2.default.bool};d3.defaultProps={render:(A,C)=>jsxRuntime.jsx("input",{ref:A,...C})};var {TextArea:Hr}=antd.Input,Mg=a2__default.default(web.animated.div)`
|
|
676
676
|
position: absolute;
|
|
677
677
|
display: block;
|
|
678
678
|
width: 45px;
|
|
@@ -761,7 +761,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
761
761
|
}
|
|
762
762
|
`;a2__default.default(d.Body)`
|
|
763
763
|
display: block;
|
|
764
|
-
`;var Ug=(o=>(o.Phone="phone",o.Currency="currency",o.Email="email",o.Zipcode="zipcode",o.SSN="SSN",o.Zip="SSN",o.MBI="MBI",o.Date="date",o))(Ug||{}),Hg=(E=>(E.City="city",E.Full="full",E.CityWithState="city_with_state",E))(Hg||{});var Sg=A=>{let C;switch(A){case"zipcode":C=[/\d/,/\d/,/\d/,/\d/,/\d/];break;case"phone":C=["(",/[1-9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/];break;case"currency":C=textMaskAddons.createNumberMask({prefix:"$"});break;case"email":C=textMaskAddons.emailMask;break;default:C=[A];}return C};var Kr=({name:A,label:C=null,details:g=null,type:E="text",formOptions:I={},previewOnly:B=!1,textArea:Q=!1,marginBottom:e=void 0,isLabelBold:o=!0,helpContent:i=void 0,helpLabel:
|
|
764
|
+
`;var Ug=(o=>(o.Phone="phone",o.Currency="currency",o.Email="email",o.Zipcode="zipcode",o.SSN="SSN",o.Zip="SSN",o.MBI="MBI",o.Date="date",o))(Ug||{}),Hg=(E=>(E.City="city",E.Full="full",E.CityWithState="city_with_state",E))(Hg||{});var Sg=A=>{let C;switch(A){case"zipcode":C=[/\d/,/\d/,/\d/,/\d/,/\d/];break;case"phone":C=["(",/[1-9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/];break;case"currency":C=textMaskAddons.createNumberMask({prefix:"$"});break;case"email":C=textMaskAddons.emailMask;break;default:C=[A];}return C};var Kr=({name:A,label:C=null,details:g=null,type:E="text",formOptions:I={},previewOnly:B=!1,textArea:Q=!1,marginBottom:e=void 0,isLabelBold:o=!0,helpContent:i=void 0,helpLabel:t=void 0,format:r="",errorMessage:n="This field is required",...L})=>{let{control:f,formState:{errors:R}}=reactHookForm.useFormContext(),u=!!reactHookForm.get(R,A),K=R?.[A]?.message?.toString()||n,m=({field:U})=>Q?jsxRuntime.jsx(zg,{...U,marginBottom:e,error:u,disabled:B,...L}):r?jsxRuntime.jsx(xg,{...U,mask:Sg(r),guide:!1,disabled:B,type:E,error:u,...L}):jsxRuntime.jsx(wg,{...U,disabled:B,type:E,error:u,...L});return jsxRuntime.jsxs("div",{style:{width:"100%"},children:[jsxRuntime.jsx(T,{label:C,isLabelBold:o,required:!!I.required,details:g,helpLabel:t,helpContent:i}),jsxRuntime.jsxs(Pg,{marginBottom:e,children:[jsxRuntime.jsx(reactHookForm.Controller,{render:m,name:A,rules:I,control:f}),jsxRuntime.jsx(Mg,{children:u&&jsxRuntime.jsx(O.ErrorExclamation,{})})]}),u&&jsxRuntime.jsx(Y,{text:K,includeIcon:!1})]})},N3=Kr;a2__default.default.div`
|
|
765
765
|
margin-bottom: 32px;
|
|
766
766
|
`;var Fg=a2__default.default.div`
|
|
767
767
|
display: ${A=>A.isColumns?"grid":"flex"};
|
|
@@ -968,7 +968,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
968
968
|
height: 100%;
|
|
969
969
|
border-radius: 4px;
|
|
970
970
|
cursor: pointer;
|
|
971
|
-
`;function yr(){if(typeof window<"u"){let{innerWidth:A,innerHeight:C}=window;return {innerWidth:A,innerHeight:C}}return {innerWidth:0,innerHeight:0}}var j9={MOBILE:768,TABLET:1024},jg=()=>{let A=yr();return {isMobile:A.innerWidth<=j9.MOBILE,isTablet:A.innerWidth>j9.MOBILE&&A.innerWidth<=j9.TABLET,isLaptop:A.innerWidth>j9.TABLET,innerWidth:A.innerWidth,windowSize:A}},Zr=()=>{let[A,C]=xr.useState(jg()),g=xr.useCallback(()=>{let E=jg();C(E);},[]);return xr.useEffect(()=>(typeof window<"u"&&window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[]),A},H5=Zr;var y9=({option:A,name:C,formOptions:g={},previewOnly:E=!1,errorMessage:I=void 0,inGroup:B=!1,...Q})=>{let{register:e,formState:{errors:o}}=reactHookForm.useFormContext(),i=!!reactHookForm.get(o,C),
|
|
971
|
+
`;function yr(){if(typeof window<"u"){let{innerWidth:A,innerHeight:C}=window;return {innerWidth:A,innerHeight:C}}return {innerWidth:0,innerHeight:0}}var j9={MOBILE:768,TABLET:1024},jg=()=>{let A=yr();return {isMobile:A.innerWidth<=j9.MOBILE,isTablet:A.innerWidth>j9.MOBILE&&A.innerWidth<=j9.TABLET,isLaptop:A.innerWidth>j9.TABLET,innerWidth:A.innerWidth,windowSize:A}},Zr=()=>{let[A,C]=xr.useState(jg()),g=xr.useCallback(()=>{let E=jg();C(E);},[]);return xr.useEffect(()=>(typeof window<"u"&&window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[]),A},H5=Zr;var y9=({option:A,name:C,formOptions:g={},previewOnly:E=!1,errorMessage:I=void 0,inGroup:B=!1,...Q})=>{let{register:e,formState:{errors:o}}=reactHookForm.useFormContext(),i=!!reactHookForm.get(o,C),t=reactHookForm.get(o,C)?.message?.toString()||I;return jsxRuntime.jsxs(Og,{children:[jsxRuntime.jsxs(antd.Flex,{gap:".5rem",children:[jsxRuntime.jsx(Jg,{type:"checkbox",value:A.value,hasError:i,previewOnly:E,disabled:!!Q?.disabled||E,...e(C,g),...Q}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(d.Body,{children:A.label})})]}),i&&!B&&jsxRuntime.jsx(Y,{text:t,includeIcon:!1})]})},Zg=({name:A,label:C=void 0,details:g="",options:E=[],inline:I=!1,previewOnly:B=!1,other:Q={},errorMessage:e=void 0,formOptions:o={},...i})=>{let{formState:{errors:t}}=reactHookForm.useFormContext(),r=!!t?.[A];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(T,{label:C,isLabelBold:!0,required:!!o.required,details:g}),jsxRuntime.jsxs(Fg,{inline:I,isColumns:E.length>5,children:[E.map(n=>jsxRuntime.jsx(y9,{name:A,inGroup:!0,option:n,hasError:r,formOptions:o,previewOnly:B,...i},`${A}-${n.value}`)),Q.label&&jsxRuntime.jsxs(Kg,{children:[jsxRuntime.jsx(y9,{option:{label:Q.label,value:"other"},name:A,inGroup:!0,formOptions:o,previewOnly:B,...i},A),jsxRuntime.jsx(N3,{name:`${A}_other`,placeholder:"Other",...i,previewOnly:B})]})]}),r&&jsxRuntime.jsx(Y,{text:e,includeIcon:!1})]})},Tr=({option:A,name:C,previewOnly:g=!1,errorMessage:E=void 0,inGroup:I=!1,checked:B,field:Q,hasError:e=!1,...o})=>{let{isMobile:i}=H5(),[t,r]=xr.useState(!1);return jsxRuntime.jsxs(V7.Illustration,{selected:B,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),active:B||t&&!i,illustration:A.illustration,children:[jsxRuntime.jsx(bg,{type:"checkbox",value:A.value,disabled:!!o?.disabled||g,onChange:n=>{if(!B){Q.onChange([...Q.value,n.target.value]);return}Q.onChange((Q.value??[]).filter(L=>L!==n.target.value));},...o}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(d.Body,{children:A.label})}),e&&!I&&jsxRuntime.jsx(Y,{text:E,includeIcon:!1})]})},Yg=({name:A,label:C=void 0,details:g="",options:E=[],previewOnly:I=!1,errorMessage:B=void 0,formOptions:Q={},...e})=>{let{control:o,formState:{errors:i}}=reactHookForm.useFormContext(),t=!!reactHookForm.get(i,A);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(T,{label:C,isLabelBold:!0,required:!!Q.required,details:g}),jsxRuntime.jsx(Xg,{itemNumber:E.length,children:jsxRuntime.jsx(reactHookForm.Controller,{name:A,control:o,rules:{...Q},defaultValue:[],render:({field:r})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:E.map(n=>jsxRuntime.jsx(Tr,{name:A,inGroup:!0,field:r,option:n,checked:(r.value??[]).some(L=>L===n.value),hasError:t,previewOnly:I,...e},`${A}-${n.value}`))})})}),t&&jsxRuntime.jsx(Y,{text:B,includeIcon:!1})]})},Dg=({options:A,name:C,formOptions:g=void 0,disabled:E=!1,errorMessage:I=void 0,onChange:B=()=>null})=>{let{control:Q,formState:e}=reactHookForm.useFormContext(),o=!!e.errors[C];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactHookForm.Controller,{rules:g,control:Q,name:C,render:({field:i})=>jsxRuntime.jsx(R7,{options:A,disabled:E,...i,onChange:t=>{B(t),i.onChange(t);}})}),o&&jsxRuntime.jsx(Y,{text:I,includeIcon:!1})]})};var Nr=({formMethods:A=null,formOptions:C={},onSubmit:g,children:E,className:I=""})=>{let B={mode:"onBlur",...C},Q=reactHookForm.useForm(B),e=A||Q,o=i=>g(i);return jsxRuntime.jsx(reactHookForm.FormProvider,{...e,children:jsxRuntime.jsx("form",{className:I,onSubmit:e.handleSubmit(o),children:E})})},Gg=Nr;a2__default.default(web.animated.div)`
|
|
972
972
|
position: absolute;
|
|
973
973
|
display: block;
|
|
974
974
|
width: 45px;
|
|
@@ -1052,7 +1052,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1052
1052
|
align-items: center;
|
|
1053
1053
|
justify-content: center;
|
|
1054
1054
|
padding-right: 1rem;
|
|
1055
|
-
`;var QE=({color:A="#5A5A5A",size:C=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:C,height:C,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:A})});var eE=({color:A="#5A5A5A",size:C=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:C,height:C*.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:A})});var cn=({previewOnly:A=!1,format:C,onAccept:g=void 0,...E})=>{let[I,B]=xr.useState(!1),Q=E?.status==="error",o=["SSN"].some(
|
|
1055
|
+
`;var QE=({color:A="#5A5A5A",size:C=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:C,height:C,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:A})});var eE=({color:A="#5A5A5A",size:C=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:C,height:C*.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:A})});var cn=({previewOnly:A=!1,format:C,onAccept:g=void 0,...E})=>{let[I,B]=xr.useState(!1),Q=E?.status==="error",o=["SSN"].some(t=>t===C),i=(()=>{switch(C){case"phone":return "(000) 000-0000";case"MBI":return "****-***-****";case"date":return [{mask:Date,pattern:"m/d/Y",lazy:!1,autofix:!0,blocks:{d:{mask:reactImask.IMask.MaskedRange,from:1,to:31,maxLength:2},m:{mask:reactImask.IMask.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:reactImask.IMask.MaskedRange,from:1900,to:9999}},format:t=>{let r=t.getDate(),n=t.getMonth()+1,L=t.getFullYear(),f=r<10?`0${r}`:`${r}`;return [n<10?`0${n}`:`${n}`,f,L].join("/")},parse:t=>{let r=t.split("/");return new Date(parseInt(r[2],10),parseInt(r[0],10)-1,parseInt(r[1],10))}}];case"email":return /^\S*@?\S*$/;case"SSN":return [{mask:I?"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 ""}})();return jsxRuntime.jsxs(EE,{children:[jsxRuntime.jsx(gE,{format:C,mask:i,unmask:!0,onAccept:g,disabled:A,error:Q,...E}),Q&&!o&&!!E?.suffix&&jsxRuntime.jsx(BE,{children:E.suffix}),o&&jsxRuntime.jsx(IE,{onClick:()=>B(!I),children:I?jsxRuntime.jsx(eE,{}):jsxRuntime.jsx(QE,{})})]})},oE=cn;var T1={Area:_g,Text:$g,Number:AE,Password:CE,Mask:oE};var iE=A=>{let C;switch(A){case"MBI":C={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":C={value:/\d{5}/,message:"Invalid zipcode"};break;case"phone":C={value:/\d{10}/,message:"Invalid phone number"};break;case"SSN":C={value:/\d{9}/,message:"Invalid social security number"};break;case"currency":C={value:/\d*(?:\.\d{2})?/,message:"Invalid amount"};break;case"email":C={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;default:C=A;}return C};var Rn=({name:A,label:C=null,details:g=null,formOptions:E={},pattern:I=void 0,format:B=void 0,textArea:Q=!1,password:e=!1,isLabelBold:o=!0,helpContent:i=void 0,helpLabel:t=void 0,errorMessage:r="This field is required",disableErrorState:n=!1,...L})=>{let{control:f,formState:{errors:R}}=reactHookForm.useFormContext(),u=n?!1:!!reactHookForm.get(R,A),K=reactHookForm.get(R,A)?.message?.toString()||r,m=({field:a})=>Q?jsxRuntime.jsx(T1.Area,{status:u?"error":"",suffix:u?jsxRuntime.jsx(O.ErrorExclamation,{}):null,...L,...a}):B?jsxRuntime.jsx(T1.Mask,{name:a.name,onBlur:a.onBlur,format:B,onAccept:l=>a.onChange(l),ref:a.ref,value:a.value,status:u?"error":"",suffix:u?jsxRuntime.jsx(O.ErrorExclamation,{}):null,...L}):e?jsxRuntime.jsx(T1.Password,{status:u?"error":"",suffix:u?jsxRuntime.jsx(O.ErrorExclamation,{}):null,...L,...a}):jsxRuntime.jsx(T1.Text,{status:u?"error":"",suffix:u?jsxRuntime.jsx(O.ErrorExclamation,{}):null,...L,...a}),U=I?{pattern:iE(I)}:{};return jsxRuntime.jsxs("div",{style:{width:"100%"},children:[jsxRuntime.jsx(T,{label:C,isLabelBold:o,required:!!E.required,details:g,helpLabel:t,helpContent:i}),jsxRuntime.jsx(Ng,{children:jsxRuntime.jsx(reactHookForm.Controller,{render:m,name:A,rules:{...U,...E},control:f})}),u&&jsxRuntime.jsx(Y,{text:K,includeIcon:!1})]})},G9=Rn;var Mn=({label:A=null,isLabelBold:C=!0,name:g,disabled:E=!1,defaultValue:I=void 0,formOptions:B={},errorMessage:Q="This field is required.",options:e={},style:o={},...i})=>{let{control:t,formState:{errors:r}}=reactHookForm.useFormContext(),n=!!reactHookForm.get(r,g),L=reactHookForm.get(r,g)?.message?.toString()||Q;return jsxRuntime.jsxs("div",{style:o,children:[jsxRuntime.jsx(T,{label:A,isLabelBold:C,required:!!B.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:f})=>jsxRuntime.jsx(T1.Number,{disabled:E,status:n?"error":"",suffix:n?jsxRuntime.jsx(O.ErrorExclamation,{}):null,...i,...f}),name:g,defaultValue:I,rules:B,control:t,...e}),n&&jsxRuntime.jsx(Y,{text:L,includeIcon:!1})]})},nE=Mn;var LE=a2__default.default.div`
|
|
1056
1056
|
position: relative;
|
|
1057
1057
|
margin-bottom: 24px;
|
|
1058
1058
|
|
|
@@ -1115,7 +1115,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1115
1115
|
padding: 12px 6px;
|
|
1116
1116
|
height: 57px;
|
|
1117
1117
|
border-bottom: 1px solid #000;
|
|
1118
|
-
`;var zn=({label:A="",name:C,formOptions:g={},description:E="",previewOnly:I=!1,errorMessage:B=void 0,signatureType:Q=void 0,date:e=void 0,isAdvocate:o=!1,showIcon:i=!0,formStyle:
|
|
1118
|
+
`;var zn=({label:A="",name:C,formOptions:g={},description:E="",previewOnly:I=!1,errorMessage:B=void 0,signatureType:Q=void 0,date:e=void 0,isAdvocate:o=!1,showIcon:i=!0,formStyle:t="MINIMAL",...r})=>{let{control:n,formState:{errors:L}}=reactHookForm.useFormContext(),f=Q==="advocate"?"Advocate":"Client",R=o&&Q==="advocate"||!o&&Q==="client",u=({field:U})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(sE,{previewOnly:I,children:[i&&jsxRuntime.jsx(m9,{}),jsxRuntime.jsx(dE,{...U,...r})]}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(d.Body,{children:A})})]}),K=e?new Date(e).toLocaleDateString():"",m=({field:U})=>jsxRuntime.jsx(aE,{children:jsxRuntime.jsxs(lE,{children:[jsxRuntime.jsxs(fE,{children:[jsxRuntime.jsx(cE,{...U,...r,placeholder:`${f} Signature`,disabled:I||!R,hasError:!!L[C]}),jsxRuntime.jsx(X7,{children:`${f}`}),L[C]&&jsxRuntime.jsx(Y,{text:B,includeIcon:!1})]}),jsxRuntime.jsxs(pE,{children:[jsxRuntime.jsx(VE,{children:K}),jsxRuntime.jsx(X7,{children:"Date"})]})]})});return jsxRuntime.jsxs(LE,{previewOnly:I,children:[(A||Q)&&jsxRuntime.jsx(T,{label:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Q&&`${f} `,A]}),required:!0,isLabelBold:!0}),E,jsxRuntime.jsx(reactHookForm.Controller,{render:t==="MINIMAL"?u:m,name:C,rules:g,control:n})]})},uE=zn;var qE=a2__default.default(antd.Radio)`
|
|
1119
1119
|
width: 100%;
|
|
1120
1120
|
height: 100%;
|
|
1121
1121
|
z-index: 2;
|
|
@@ -1411,7 +1411,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1411
1411
|
display: flex;
|
|
1412
1412
|
flex-flow: column;
|
|
1413
1413
|
gap: var(--spacing-m, 1rem);
|
|
1414
|
-
`;var N9=({option:A,name:C,inline:g,previewOnly:E=!1,hasError:I=!1,formOptions:B={},...Q})=>{let{register:e}=reactHookForm.useFormContext();return jsxRuntime.jsxs(zE,{inline:g,children:[jsxRuntime.jsx(UE,{type:"radio",...e(C,B),value:A.value,previewOnly:E,disabled:E,hasError:I,...Q}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(d.Body,{children:A.label})})]})},DE=({name:A,label:C,details:g="",options:E=[],inline:I=!1,allowOther:B=!1,previewOnly:Q=!1,formOptions:e={},errorMessage:o=void 0,...i})=>{let{formState:{errors:
|
|
1414
|
+
`;var N9=({option:A,name:C,inline:g,previewOnly:E=!1,hasError:I=!1,formOptions:B={},...Q})=>{let{register:e}=reactHookForm.useFormContext();return jsxRuntime.jsxs(zE,{inline:g,children:[jsxRuntime.jsx(UE,{type:"radio",...e(C,B),value:A.value,previewOnly:E,disabled:E,hasError:I,...Q}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(d.Body,{children:A.label})})]})},DE=({name:A,label:C,details:g="",options:E=[],inline:I=!1,allowOther:B=!1,previewOnly:Q=!1,formOptions:e={},errorMessage:o=void 0,...i})=>{let{formState:{errors:t}}=reactHookForm.useFormContext(),r=!!reactHookForm.get(t,A);return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(T,{label:C,required:!!e.required,isLabelBold:!0,details:g}),jsxRuntime.jsxs(PE,{inline:I,isColumns:E.length>5,children:[E.map(n=>jsxRuntime.jsx(N9,{option:n,name:A,inline:I,previewOnly:Q,formOptions:e,...i,hasError:r},`${A}-${n.value}`)),B&&jsxRuntime.jsxs(HE,{children:[jsxRuntime.jsx(N9,{option:{label:"Other",value:"other"},name:A,inline:I,...i},A),jsxRuntime.jsx(N3,{name:`${A}_other`,...i})]})]}),r&&jsxRuntime.jsx(Y,{text:o,includeIcon:!1})]})},Tn=({option:A,name:C,formOptions:g})=>{let{register:E,watch:I,formState:B}=reactHookForm.useFormContext(),Q=I(C)===A.value;return jsxRuntime.jsxs(SE,{selected:Q,hasError:!!B.errors[C],disabled:A.disabled||!1,children:[jsxRuntime.jsxs(kE,{children:[jsxRuntime.jsxs(OE,{selected:Q,children:[A.icon||null,A.label]}),jsxRuntime.jsx(FE,{type:"radio",value:A.value,...E(C,g)})]}),A.description&&jsxRuntime.jsx(JE,{selected:Q,children:A.description})]})},TE=({name:A,label:C=null,className:g="",options:E,formOptions:I={},id:B=""})=>jsxRuntime.jsxs(j7,{className:g,id:B,children:[C&&jsxRuntime.jsx(y7,{size:"lg",children:C}),jsxRuntime.jsx("div",{children:E.map(Q=>jsxRuntime.jsx(Tn,{option:Q,name:A,formOptions:I},`${Q.label}-${Q.value}`))})]}),Gn=({option:A,name:C,formOptions:g,showCaret:E=!1,onClick:I=void 0,onMouseEnter:B=()=>null,onMouseLeave:Q=()=>null})=>{let{register:e,watch:o}=reactHookForm.useFormContext(),i=o(C)===A.value,[t,r]=xr.useState(!1),n=k4[A.icon],L=web.useSpring(t?{transform:"translate(8px, 0px)"}:{transform:"translate(0px, 0px)"}),f=()=>{r(!0),B(A.value);},R=()=>{r(!1),Q(A.value);};return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsx(jE,{type:"radio",onClick:u=>I?I(u.currentTarget.value):null,value:A.value,...e(C,g),onMouseEnter:f,onMouseLeave:R}),jsxRuntime.jsxs(KE,{selected:i,children:[jsxRuntime.jsxs(antd.Flex,{align:"center",gap:16,children:[jsxRuntime.jsx(XE,{children:jsxRuntime.jsx(n,{active:i||t})}),jsxRuntime.jsxs("div",{style:{display:"flex",gap:4,flexDirection:"column"},children:[jsxRuntime.jsx(yE,{children:A.label}),A?.description&&jsxRuntime.jsx(ZE,{children:A.description})]})]}),E&&jsxRuntime.jsx(bE,{style:L,children:jsxRuntime.jsx(O.Caret,{direction:"right",color:i||t?"#285E50":"#7F7F7F"})})]})]})},GE=({name:A,label:C=null,className:g="",options:E,onClick:I=void 0,onMouseEnter:B=()=>null,onMouseLeave:Q=()=>null,showCaret:e=!1,formOptions:o={}})=>jsxRuntime.jsxs(j7,{className:g,children:[C&&jsxRuntime.jsx(y7,{size:"lg",children:C}),jsxRuntime.jsx(YE,{children:E.map(i=>jsxRuntime.jsx(Gn,{option:i,name:A,onClick:I,onMouseEnter:B,onMouseLeave:Q,formOptions:o,showCaret:e},`${i.label}-${i.value}`))})]}),WE=({options:A,name:C,formOptions:g=void 0,disabled:E=!1,errorMessage:I=void 0,onChange:B=()=>null})=>{let{control:Q,formState:e}=reactHookForm.useFormContext(),o=!!e.errors[C];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactHookForm.Controller,{rules:g,control:Q,name:C,render:({field:i})=>jsxRuntime.jsx(b7,{options:A,disabled:E,...i,onChange:t=>{B(t.target.value),i.onChange(t);}})}),o&&jsxRuntime.jsx(Y,{text:I,includeIcon:!1})]})};var NE=a2__default.default.div`
|
|
1415
1415
|
position: relative;
|
|
1416
1416
|
margin-bottom: 24px;
|
|
1417
1417
|
z-index: 40;
|
|
@@ -1481,7 +1481,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1481
1481
|
left: 0;
|
|
1482
1482
|
`;a2__default.default(d.Body)`
|
|
1483
1483
|
margin-bottom: 24px;
|
|
1484
|
-
`;var CL=({label:A="",name:C,details:g="",placeholder:E="",options:I=[],allowInput:B=!1,previewOnly:Q=!1,isLabelBold:e=!0,formOptions:o={},onChange:i=()=>null,containerStyle:
|
|
1484
|
+
`;var CL=({label:A="",name:C,details:g="",placeholder:E="",options:I=[],allowInput:B=!1,previewOnly:Q=!1,isLabelBold:e=!0,formOptions:o={},onChange:i=()=>null,containerStyle:t={}})=>{let r=xr.useRef(),n=reactHookForm.useFormContext(),{errors:L}=n.formState;n.register(C,o);let f=!!reactHookForm.get(L,C),R=reactHookForm.get(L,C)?.message?.toString(),[u,K]=xr.useState(!1),[m,U]=xr.useState(""),[a,l]=xr.useState(I),S=web.useSpring(u?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});xr.useEffect(()=>{let F=g2=>{u&&r.current&&!r.current.contains(g2.target)&&K(!1);};return document.addEventListener("mousedown",g2=>F(g2)),()=>{document.removeEventListener("mousedown",g2=>F(g2));}},[u]);let w=I.find(F=>F.value===n.getValues(C))?.label,k=F=>{U(""),n.setValue(C,F.value),n.trigger(C),i&&i(F),K(!1);};xr.useEffect(()=>{if(K(!!m),m){let F=I.filter(g2=>String(g2.value).toLowerCase().match(m.toLowerCase()));l(F),n.setValue(C,m);}else l(I);},[m,I.length]);let W=F=>{F.code==="Enter"&&F.preventDefault();};return jsxRuntime.jsxs(NE,{style:t,children:[jsxRuntime.jsx(T,{label:A,isLabelBold:e,required:!!o.required,details:g}),jsxRuntime.jsx(_E,{onClick:()=>K(!u),previewOnly:Q,children:Q?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("i",{style:{color:"#7F7F7F"},children:"--Select--"}),jsxRuntime.jsx(O.Caret,{direction:"down",color:"#7F7F7F"})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w||jsxRuntime.jsx("i",{children:E}),B&&jsxRuntime.jsx(gI,{onKeyDown:W,value:m,onChange:F=>U(F.target.value),type:"text"}),jsxRuntime.jsx(O.Caret,{direction:u?"up":"down"}),jsxRuntime.jsx($E,{style:S,ref:r,children:a.map(F=>{let{label:g2}=F,P2=F.label===w;return jsxRuntime.jsxs(AI,{onClick:()=>k(F),children:[jsxRuntime.jsx(d.Body,{size:"lg",children:g2}),jsxRuntime.jsx(CI,{isCurrent:P2,children:jsxRuntime.jsx(O.Check,{color:"#fff"})})]},F.value)})})]})}),f&&jsxRuntime.jsx(Y,{text:R,includeIcon:!1})]})},QI=CL;var eI=a2__default.default.div`
|
|
1485
1485
|
background: #eeeeee;
|
|
1486
1486
|
border-radius: 10px;
|
|
1487
1487
|
border: 1px solid #ccc;
|
|
@@ -1592,7 +1592,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1592
1592
|
border-color: #3f937c;
|
|
1593
1593
|
box-shadow: none;
|
|
1594
1594
|
}
|
|
1595
|
-
`;var IL=({style:A={},sort:C=!0,...g})=>{let E=(B,Q)=>Q?.label?(Q.label.toString().toLowerCase()??"").includes(B.toLowerCase()):!1,I=(B,Q)=>{let e=B?.label?.toString().toLowerCase()??"",o=Q?.label?.toString().toLowerCase()??"";return e.localeCompare(o)};return jsxRuntime.jsx(tI,{showSearch:!0,style:{width:"100%",...A},filterOption:E,filterSort:C?I:void 0,virtual:!1,...g})},J5=IL;var oL=({label:A="",name:C,details:g="",placeholder:E="",unit:I="",options:B=[],disabled:Q=!1,mode:e=void 0,previewOnly:o=!1,isLabelBold:i=!0,formOptions:
|
|
1595
|
+
`;var IL=({style:A={},sort:C=!0,...g})=>{let E=(B,Q)=>Q?.label?(Q.label.toString().toLowerCase()??"").includes(B.toLowerCase()):!1,I=(B,Q)=>{let e=B?.label?.toString().toLowerCase()??"",o=Q?.label?.toString().toLowerCase()??"";return e.localeCompare(o)};return jsxRuntime.jsx(tI,{showSearch:!0,style:{width:"100%",...A},filterOption:E,filterSort:C?I:void 0,virtual:!1,...g})},J5=IL;var oL=({label:A="",name:C,details:g="",placeholder:E="",unit:I="",options:B=[],disabled:Q=!1,mode:e=void 0,previewOnly:o=!1,isLabelBold:i=!0,formOptions:t={},onChange:r=()=>null,showPreview:n=!1,containerStyle:L={},style:f={},allowClear:R=!0,loading:u=!1,value:K=void 0,errorMessage:m="This field is required",defaultValue:U=void 0,...a})=>{let l=reactHookForm.useFormContext();l.register(C,t);let{control:S,formState:{errors:w},getValues:k}=reactHookForm.useFormContext(),W=!!reactHookForm.get(w,C),F=m||w?.[C]?.message?.toString(),P2=k()[C],s=P=>{l.setValue(C,P,{shouldDirty:!0,shouldTouch:!0}),l.trigger(C),r(P);},p=({field:P})=>jsxRuntime.jsx(J5,{allowClear:R,loading:u,mode:e,showSearch:!0,onChange:s,placeholder:E,options:B,isError:W,disabled:Q||o,value:P.value??K,defaultValue:U,style:f,...a});return jsxRuntime.jsxs("div",{style:L,children:[jsxRuntime.jsx(T,{label:A,isLabelBold:i,required:!!t.required,details:g}),jsxRuntime.jsxs(iI,{children:[jsxRuntime.jsx(reactHookForm.Controller,{control:S,name:C,rules:t,render:p}),I&&jsxRuntime.jsx(d.Body,{size:"lg",children:I})]}),o&&n&&jsxRuntime.jsx(eI,{children:B.map(P=>jsxRuntime.jsx(oI,{selected:P.value===P2,children:P.label}))}),W&&jsxRuntime.jsx(Y,{text:F,includeIcon:!1})]})},LI=oL;var nL=({label:A="Submit",isSubmitting:C=!1,hideWhenInvalid:g=!1,...E})=>{let I=reactHookForm.useFormContext(),{isValid:B}=I.formState,e=web.useSpring((g?B:!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:e,...E,children:jsxRuntime.jsx(r2.Primary,{htmlType:"submit",isSubmitting:C,...E,children:A})})},aI=nL;var fI=a2__default.default.div`
|
|
1596
1596
|
position: relative;
|
|
1597
1597
|
z-index: 20;
|
|
1598
1598
|
`,pI=a2__default.default.div`
|
|
@@ -1714,13 +1714,13 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1714
1714
|
stroke: ${({color:A})=>A||"#fff"};
|
|
1715
1715
|
}
|
|
1716
1716
|
}
|
|
1717
|
-
`,D7=({color:A=void 0,size:C="sm"})=>jsxRuntime.jsx(aL,{color:A,size:C,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 VL=A=>{let C="",g="",E="",I="",B="";A.address_components.forEach(i=>{i.types.some(
|
|
1717
|
+
`,D7=({color:A=void 0,size:C="sm"})=>jsxRuntime.jsx(aL,{color:A,size:C,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 VL=A=>{let C="",g="",E="",I="",B="";A.address_components.forEach(i=>{i.types.some(t=>{switch(t){case"locality":return C=i.short_name,!0;case"administrative_area_level_1":return g=i.short_name,!0;case"street_number":return E=i.short_name,!0;case"route":return I=i.short_name,!0;case"postal_code":return B=i.short_name,!0;default:return !1}});});let Q=A.geometry.location.lat(),e=A.geometry.location.lng(),o=`${E} ${I}`;return {city:C,state:g,street:o,zip:B,lat:Q,long:e}},hL=({handleSelect:A,option:C,value:g})=>{let{description:E}=C,I=E===g,B=E.replace(", USA","");return jsxRuntime.jsx(VI,{isCurrent:I,onClick:()=>A(B),children:jsxRuntime.jsx(d.Body,{size:"lg",children:B})})},uL=["places"],RL=({label:A="",details:C="",formOptions:g={},previewOnly:E=!1,isLabelBold:I=!0,locationType:B="city",streetFieldName:Q="street",cityFieldName:e="city",stateFieldName:o="state",zipFieldName:i="zip",cityWithStateFieldName:t="city_with_state",placeholder:r="",containerStyle:n={},errorMessage:L="This field is required",hasError:f=!1})=>{let R=xr.useRef(),[u,K]=xr.useState(!1),[m,U]=xr.useState(!1),a=reactHookForm.useFormContext(),l;switch(B){case"city":l=e;break;case"full":l=Q;break;case"city_with_state":l=t;break;default:return null}let S=web.useSpring(u?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});xr.useEffect(()=>{let q=z=>{u&&R.current&&!R.current.contains(z.target)&&K(!1);};return document.addEventListener("mousedown",z=>q(z)),()=>{document.removeEventListener("mousedown",z=>q(z));}},[u]);let w=a.getValues(l)?`${a.getValues(l)}, ${a.getValues(o)}`:"",{value:k,suggestions:{data:W,loading:F},setValue:g2,clearSuggestions:P2}=pL__default.default({requestOptions:{...["city","city_with_state"].includes(B)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}});xr.useEffect(()=>{if(F){U(F);return}setTimeout(()=>{U(F);},2e3);},[F]);let s=web.useSpring(m?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),p=q=>{g2(q.target.value),a.setValue(o,""),B==="full"&&(a.setValue(i,""),a.setValue(e,"")),a.trigger(l),q.target.value.length>=3&&K(!0);},P=q=>{g2(q,!1),P2(),!(q.length<=2)&&pL.getGeocode({address:q}).then(z=>{let{city:h,state:H,street:j,zip:D,lat:y,long:m2}=VL(z[0]),l2=[l,e,o];a.setValue(e,h),a.setValue(o,H),B==="full"&&(a.setValue(Q,j),a.setValue(i,D),l2.push(Q,i)),B==="city_with_state"&&a.setValue(t,`${h}, ${H}`),a.setValue("lat",y),a.setValue("long",m2),a.trigger(l2);}).catch(z=>console.error(`Google Maps API error: ${z}`));},J=q=>{q.code==="Enter"&&q.preventDefault();};return jsxRuntime.jsxs(fI,{children:[jsxRuntime.jsx(T,{label:A,isLabelBold:I,required:!!g.required,details:C}),E?jsxRuntime.jsx(uI,{size:"md",children:w||"N/A"}):jsxRuntime.jsxs(pI,{style:n,children:[jsxRuntime.jsx(hI,{onKeyDown:J,type:"text",placeholder:r,...a.register(l,{...g,onChange:p})}),W.length>0&&jsxRuntime.jsx(dI,{style:S,ref:R,children:W.map(q=>jsxRuntime.jsx(hL,{handleSelect:P,option:q,value:k},q.description))}),jsxRuntime.jsx(cI,{style:s,children:jsxRuntime.jsx(D7,{size:"sm"})})]}),f&&jsxRuntime.jsx(Y,{text:L,includeIcon:!1})]})},MI=({api_key:A,...C})=>{let{isLoaded:g}=api.useLoadScript({googleMapsApiKey:A||process.env.GOOGLE_MAPS_API_KEY||"",libraries:uL});return g?jsxRuntime.jsx(RL,{...C}):null};var vL=a2__default.default(antd.TimePicker)`
|
|
1718
1718
|
height: 50px;
|
|
1719
1719
|
border-color: #424242;
|
|
1720
1720
|
`,ML=({onChange:A=()=>null,format:C="h:mma",...g})=>jsxRuntime.jsx(vL,{use12Hours:!0,format:C,onChange:A,...g}),T7=ML;var HL=a2__default.default.div`
|
|
1721
1721
|
position: relative;
|
|
1722
1722
|
margin-bottom: 24px;
|
|
1723
|
-
`,SL=({label:A="",formOptions:C={},defaultValue:g=null,name:E,...I})=>{let{control:B,formState:{errors:Q}}=reactHookForm.useFormContext(),e=reactHookForm.get(Q,E),o=e?e.message?.toString():"This field is required";return jsxRuntime.jsxs(HL,{children:[jsxRuntime.jsx(T,{isLabelBold:!0,label:A,required:!!C.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:i})=>jsxRuntime.jsx(T7,{...I,...i,status:e?"error":""}),name:E,defaultValue:g?K5__default.default(g):null,rules:C,control:B,...C}),e&&jsxRuntime.jsx(Y,{includeIcon:!1,children:o})]})},wI=SL;var JL=({startTime:A="00:00",endTime:C="24:00",interval:g=30,defaultValue:E=null,onChange:I=()=>null,...B})=>{let e=xr.useCallback(()=>{let
|
|
1723
|
+
`,SL=({label:A="",formOptions:C={},defaultValue:g=null,name:E,...I})=>{let{control:B,formState:{errors:Q}}=reactHookForm.useFormContext(),e=reactHookForm.get(Q,E),o=e?e.message?.toString():"This field is required";return jsxRuntime.jsxs(HL,{children:[jsxRuntime.jsx(T,{isLabelBold:!0,label:A,required:!!C.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:i})=>jsxRuntime.jsx(T7,{...I,...i,status:e?"error":""}),name:E,defaultValue:g?K5__default.default(g):null,rules:C,control:B,...C}),e&&jsxRuntime.jsx(Y,{includeIcon:!1,children:o})]})},wI=SL;var JL=({startTime:A="00:00",endTime:C="24:00",interval:g=30,defaultValue:E=null,onChange:I=()=>null,...B})=>{let e=xr.useCallback(()=>{let t=luxon.DateTime.fromFormat(C,"HH:mm"),r=luxon.Duration.fromObject({minutes:g}),n=[],L=luxon.DateTime.fromFormat(A,"hh:mm");for(;L<=t;)n.push({label:L.toFormat("h:mm a"),value:{hour:L.toFormat("HH"),min:L.toFormat("mm"),raw:L.toFormat("HH:mm"),formatted:L.toFormat("h:mm a")}}),L=L.plus(r);return n},[A,C,g,E])(),o=e.map(t=>({label:t.label,value:t.value.raw}));return jsxRuntime.jsx(J5,{options:o,defaultValue:E,onChange:t=>{let r=e.find(n=>n.value.raw===t);I(r);},showSearch:!1,sort:!1,allowClear:!1,style:{maxWidth:"15rem"},...B})},G7=JL;var bL=({label:A="",name:C,options:g=void 0,...E})=>{let{setValue:I,watch:B}=reactHookForm.useFormContext(),Q=B(C),e=a2__default.default.div`
|
|
1724
1724
|
position: relative;
|
|
1725
1725
|
margin-bottom: 24px;
|
|
1726
1726
|
`,o=i=>{I(C,i);};return jsxRuntime.jsxs(e,{children:[jsxRuntime.jsx(T,{label:A,required:!!g?.required}),jsxRuntime.jsx(G7,{name:C,...E,onChange:o,value:Q})]})},zI=bL;var DL=a2__default.default.div`
|
|
@@ -1806,11 +1806,11 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1806
1806
|
border: 0.766898px solid;
|
|
1807
1807
|
border-color: ${A=>A.isCurrent?"#285E50 !important":"#3f937c"};
|
|
1808
1808
|
background: ${A=>A.isCurrent?"#285E50 !important":"#FFF"};
|
|
1809
|
-
`,Cs=({label:A="",name:C,details:g="",options:E=[],previewOnly:I=!1})=>{let B=xr.useRef(),Q=reactHookForm.useFormContext(),[e,o]=xr.useState(!1),[i,
|
|
1809
|
+
`,Cs=({label:A="",name:C,details:g="",options:E=[],previewOnly:I=!1})=>{let B=xr.useRef(),Q=reactHookForm.useFormContext(),[e,o]=xr.useState(!1),[i,t]=xr.useState(""),[r,n]=xr.useState(Q.getValues(C)||[]),L=xr.useRef({search:i,keywords:r});xr.useEffect(()=>{L.current={search:i,keywords:r};},[i,r]);let[f,R]=xr.useState(E),u=web.useSpring(e?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}}),K=E.find(w=>w===Q.getValues(C)),m=w=>{let k=[...L.current.keywords,w];t(""),n(k),Q.setValue(C,k),o(!1);},U=w=>w?w.charAt(0).toUpperCase()+w.slice(1).toLowerCase():"",a=()=>{if(!L.current.search)return;let w=U(L.current.search);m(w);};xr.useEffect(()=>{let w=k=>{e&&B.current&&!B.current.contains(k.target)&&(a(),o(!1));};return document.addEventListener("mousedown",k=>w(k)),()=>{document.removeEventListener("mousedown",k=>w(k));}},[e]);let l=w=>{w.code==="Enter"&&(a(),w.preventDefault());},S=w=>{let k=r.filter(W=>W!==w);n(k),t(""),Q.setValue(C,k);};return xr.useEffect(()=>{if(o(!!i),i){let w=E.filter(k=>k.toLowerCase().match(i.toLowerCase()));R(w);}else R(E);},[i]),xr.useEffect(()=>{let w=E.filter(k=>!r.includes(k));R(w);},[r]),jsxRuntime.jsxs(DL,{children:[jsxRuntime.jsx(TL,{size:"lg",children:A}),g&&jsxRuntime.jsx(GL,{children:g}),!I&&jsxRuntime.jsxs(WL,{onClick:()=>o(!e),children:[jsxRuntime.jsx(h9,{}),K,jsxRuntime.jsx(_L,{onKeyDown:l,value:i,onChange:w=>t(w.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxRuntime.jsxs(NL,{style:u,ref:B,children:[f.map(w=>{let k=w===K;return jsxRuntime.jsxs(HI,{onClick:()=>m(w),children:[jsxRuntime.jsx(d.Body,{size:"lg",children:w}),jsxRuntime.jsx(As,{isCurrent:k,children:jsxRuntime.jsx(O.Check,{color:"#fff"})})]},w)}),!f.length&&jsxRuntime.jsx(HI,{onClick:()=>a(),children:jsxRuntime.jsx(d.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[I&&r.length===0&&"N/A",r.map(w=>jsxRuntime.jsxs($L,{onClick:()=>S(w),children:[w,!I&&jsxRuntime.jsx(n9,{})]},w))]})]})},SI=Cs;var Qs=({defaultState:A=!1,name:C,label:g={active:"YES",inactive:"NO"},handleEvent:E=null,value:I,disabled:B=!1,loading:Q=!1})=>{let e=reactHookForm.useFormContext(),[o,i]=xr.useState(A);xr.useEffect(()=>{e&&A&&e.setValue(C,I),i(A);},[A]);let t=r=>{B||(e&&e.setValue(C,r?I:null),E&&E(r),i(r));};return jsxRuntime.jsx(antd.Switch,{defaultChecked:A,checkedChildren:g.active,unCheckedChildren:g.inactive,checked:o,loading:Q,disabled:B,onChange:t})},W7=Qs;var Ls=a2__default.default(antd.DatePicker)`
|
|
1810
1810
|
padding: 12px 24px;
|
|
1811
1811
|
width: 100%;
|
|
1812
1812
|
max-width: 25rem;
|
|
1813
|
-
`,ss=({label:A=null,isLabelBold:C=!0,name:g,details:E=void 0,disabled:I=!1,defaultValue:B=void 0,startRange:Q=null,endRange:e=null,formOptions:o={},errorMessage:i="This field is required.",options:
|
|
1813
|
+
`,ss=({label:A=null,isLabelBold:C=!0,name:g,details:E=void 0,disabled:I=!1,defaultValue:B=void 0,startRange:Q=null,endRange:e=null,formOptions:o={},errorMessage:i="This field is required.",options:t={},style:r={},format:n="MM/DD/YYYY",...L})=>{let{control:f,formState:{errors:R}}=reactHookForm.useFormContext(),u=!!reactHookForm.get(R,g),K=R?.[g]?.message?.toString()||i,m=a=>a?!!(Q&&a<K5__default.default(Q).endOf("day")||e&&a>K5__default.default(e).endOf("day")):!1,U=a=>{if(a)return K5__default.default(a);if(B)return K5__default.default(B)};return jsxRuntime.jsxs("div",{style:r,children:[jsxRuntime.jsx(T,{label:A,details:E,isLabelBold:C,required:!!o.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:a})=>jsxRuntime.jsx(Ls,{format:n,disabled:I,disabledDate:m,defaultValue:U(a.value),status:u?"error":"",onChange:(l,S)=>a.onChange(S),value:a.value?K5__default.default(a.value):null,changeOnBlur:!0,...L}),name:g,rules:o,control:f,...t}),u&&jsxRuntime.jsx(Y,{text:K,includeIcon:!1})]})},kI=ss;var OI=a2__default.default.div`
|
|
1814
1814
|
display: flex;
|
|
1815
1815
|
flex: 1;
|
|
1816
1816
|
align-items: center;
|
|
@@ -1820,7 +1820,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1820
1820
|
gap: 8px;
|
|
1821
1821
|
`,N7=a2__default.default(d.Body)`
|
|
1822
1822
|
color: rgba(135, 135, 135);
|
|
1823
|
-
`;var{Dragger:ps}=antd.Upload,ds=({label:A="",name:C,disabled:g=!1,description:E="",isLabelBold:I=!0,formOptions:B={},onChange:Q,onRemove:e,onDownload:o,onDrop:i,defaultValue:
|
|
1823
|
+
`;var{Dragger:ps}=antd.Upload,ds=({label:A="",name:C,disabled:g=!1,description:E="",isLabelBold:I=!0,formOptions:B={},onChange:Q,onRemove:e,onDownload:o,onDrop:i,defaultValue:t=void 0,containerStyle:r={},errorMessage:n=void 0,action:L="",headers:f={},uploadData:R={},defaultFileList:u=[],...K})=>{reactHookForm.useFormContext().register(C,B);let{getFieldState:U,formState:{errors:a}}=reactHookForm.useFormContext(),l=!!reactHookForm.get(a,C);return jsxRuntime.jsxs("div",{style:r,children:[jsxRuntime.jsx(T,{label:A,isLabelBold:I,required:!!B.required,details:E}),jsxRuntime.jsx("div",{style:{height:"0px",width:"0px",opacity:0},children:jsxRuntime.jsx(G9,{formOptions:{required:U(C).invalid},name:`${C}_validation`,type:"text"})}),jsxRuntime.jsxs(ps,{name:"file",multiple:!0,onChange:Q,onDrop:i,onRemove:e,onDownload:o,action:L,disabled:g,headers:f,defaultFileList:u,showUploadList:{showDownloadIcon:!0},data:R,...K,capture:void 0,children:[jsxRuntime.jsx(O.Attachment,{}),jsxRuntime.jsxs(OI,{children:[jsxRuntime.jsx(N7,{children:jsxRuntime.jsx("span",{style:{fontWeight:"bold"},children:"DRAG FILE HERE"})}),jsxRuntime.jsx(N7,{size:"sm",children:"or click to browse (10 MB max)"})]})]}),t?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Current Value: ",t]}):null,l&&jsxRuntime.jsx(Y,{text:n,includeIcon:!1})]})},KI=ds;var hs=A=>{let{title:C,description:g}=A;return jsxRuntime.jsxs(g1,{vertical:!0,style:{paddingBottom:24},children:[jsxRuntime.jsx(d.Header,{children:C}),g&&jsxRuntime.jsx(d.Body,{children:g})]})};function Q4({defaultExpandAll:A,treeData:C,checkedKeys:g,...E}){let[I,B]=xr.useState([]),[Q,e]=xr.useState([]),o=t=>{let r=[];return t.forEach(n=>{n.key&&r.push(n.key),Array.isArray(n.children)&&(r=r.concat(o(n.children)));}),r},i=(t,r)=>{if(Q.includes(r.node.key)){let L=new Set([r.node.key]);r.node.children&&r.node.children.forEach(({key:f})=>L.add(f)),e(f=>f.filter(R=>!L.has(R))),B(f=>f.filter(R=>!L.has(R)));}else e(L=>[...L,r.node.key]),B(L=>[...L,r.node.key]);};return xr.useEffect(()=>{if(!A||!C)return;let t=o(C);e(t),B(t);},[A]),xr.useEffect(()=>{g&&(A||(e(g),B(g)));},[A,g]),jsxRuntime.jsx(antd.Tree,{switcherIcon:null,expandedKeys:I,checkedKeys:g,checkable:!0,checkStrictly:!0,selectable:!1,treeData:C,onCheck:i,titleRender:hs,style:{backgroundColor:"#F4F8F7"},...E})}var ms=({name:A,...C})=>{let{control:g}=reactHookForm.useFormContext();return jsxRuntime.jsx(reactHookForm.Controller,{control:g,name:A,render:({field:E})=>jsxRuntime.jsx(Q4,{onCheck:I=>{Array.isArray(I)?E.onChange(I):E.onChange(I.checked);},checkedKeys:E.value,onBlur:E.onBlur,...C})})},yI=ms;var ZI=a2__default.default.div`
|
|
1824
1824
|
position: relative;
|
|
1825
1825
|
z-index: 40;
|
|
1826
1826
|
`;a2__default.default(d.Body)`
|
|
@@ -1870,7 +1870,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1870
1870
|
left: 0;
|
|
1871
1871
|
`;a2__default.default(d.Body)`
|
|
1872
1872
|
margin-bottom: 24px;
|
|
1873
|
-
`;var ws=({label:A="",details:C=void 0,isLabelBold:g=!0,name:E,formOptions:I={},containerStyle:B=void 0})=>{let{formState:{errors:Q,defaultValues:e},register:o,setValue:i}=reactHookForm.useFormContext();o(E,I);let
|
|
1873
|
+
`;var ws=({label:A="",details:C=void 0,isLabelBold:g=!0,name:E,formOptions:I={},containerStyle:B=void 0})=>{let{formState:{errors:Q,defaultValues:e},register:o,setValue:i}=reactHookForm.useFormContext();o(E,I);let t=!!reactHookForm.get(Q,E),r=reactHookForm.get(Q,E)?.message?.toString();return jsxRuntime.jsxs(ZI,{style:B,children:[jsxRuntime.jsx($7,{label:A,isLabelBold:g,details:C,required:!!I.required,onChange:n=>i(E,n),hasError:t,defaultValue:e?.[E]}),t&&jsxRuntime.jsx(Y,{text:r})]})},TI=ws;var GI=a2__default.default(r2.Unstyled)`
|
|
1874
1874
|
padding: 0.5rem;
|
|
1875
1875
|
border-radius: 90px;
|
|
1876
1876
|
background: ${({backgroundColor:A,isActive:C})=>C?A:"#fffff"};
|
|
@@ -1887,7 +1887,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1887
1887
|
width: auto;
|
|
1888
1888
|
height: auto;
|
|
1889
1889
|
}
|
|
1890
|
-
`;var Hs={dissatisfied:{iconFill:"#DA4D54",background:"#F1E1E2"},neutral:{iconFill:"#D7A13B",background:"#F4E5CA"},satisfied:{iconFill:"#285E50",background:"#D4E2DD"}};function e4({iconProps:A={},containerStyles:C={},value:g=void 0,onChange:E=void 0}){let[I,B]=xr.useState(g),Q=o=>B(o),e=o=>I===o;return xr.useEffect(()=>{E&&E(I);},[I]),jsxRuntime.jsx(g1,{gap:".5rem",style:{...C},children:Object.values(u9).map(o=>{let{iconFill:i,background:
|
|
1890
|
+
`;var Hs={dissatisfied:{iconFill:"#DA4D54",background:"#F1E1E2"},neutral:{iconFill:"#D7A13B",background:"#F4E5CA"},satisfied:{iconFill:"#285E50",background:"#D4E2DD"}};function e4({iconProps:A={},containerStyles:C={},value:g=void 0,onChange:E=void 0}){let[I,B]=xr.useState(g),Q=o=>B(o),e=o=>I===o;return xr.useEffect(()=>{E&&E(I);},[I]),jsxRuntime.jsx(g1,{gap:".5rem",style:{...C},children:Object.values(u9).map(o=>{let{iconFill:i,background:t}=Hs[o],r=e(o);return jsxRuntime.jsx(GI,{backgroundColor:I?t:"#ffffff",onClick:()=>Q(o),isActive:r,children:jsxRuntime.jsx(O.Sentiment,{...A,variant:o,color:r?i:"#7F7F7F"})})})})}function C6({name:A,...C}){let{control:g}=reactHookForm.useFormContext();return jsxRuntime.jsx(reactHookForm.Controller,{control:g,name:A,render:({field:{value:E,onChange:I}})=>jsxRuntime.jsx(e4,{...C,onChange:I,value:E})})}var $3={ButtonRadioGroup:GE,Container:Gg,Checkbox:y9,CheckboxGroup:Zg,CheckboxCardGroup:Yg,InputLabel:T,DateSelect:kI,TextInput:N3,Text:G9,TimePicker:wI,TimeSelect:zI,Radio:N9,RadioGroup:DE,NourishRadio:WE,NourishCheckbox:Dg,CardRadioGroup:TE,Number:nE,Select:QI,SelectMenu:LI,SentimentSelector:C6,Signature:uE,Submit:aI,LocationSelect:MI,Keyword:SI,Toggle:W7,FileUpload:KI,Tree:yI,DateDropdown:TI};var Ys=()=>Array.from({length:12},(C,g)=>({label:new Date(g,g).toLocaleString("en-US",{month:"long"}),value:g+1})),Ds=(A,C)=>{let g=A||1,E=C||2024,I=new Date(E,g,0).getDate();return Array.from({length:I},(Q,e)=>({label:e+1,value:e+1}))},Ts=()=>Array.from({length:110},(C,g)=>{let E=new Date().getFullYear()-g;return {label:E,value:E}}),Gs=({label:A="",details:C=void 0,isLabelBold:g=!1,required:E=!1,onChange:I=()=>null,defaultValue:B=null,hasError:Q=!1})=>{let e=xr.useRef(null),[o,i]=xr.useState(!1),t=reactHookForm.useForm({defaultValues:{month:null,day:null,year:null}}),{reset:r}=t;xr.useEffect(()=>{if(!B)return;let f=new Date(B);r({month:f.getMonth()+1,day:f.getDate(),year:f.getFullYear()});},[B]);let n=t.watch(),L=Ds(n?.month,n?.year);return xr.useEffect(()=>{let f=L.find(R=>R.value===n.day);if(n.month&&n.day&&n.year&&f){let R=new Date(n.year,n.month-1,n.day);I(R);}else I(null);},[n.month,n.day,n.year]),xr.useEffect(()=>{e.current&&i(!0);},[e,o]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:e}),o&&reactDom.createPortal(jsxRuntime.jsxs($3.Container,{formMethods:t,onSubmit:()=>null,children:[jsxRuntime.jsx(T,{label:A,isLabelBold:g,required:!!E,details:C}),jsxRuntime.jsxs(JC,{gap:8,hasError:Q,children:[jsxRuntime.jsx($3.SelectMenu,{name:"month",options:Ys(),placeholder:"Month",containerStyle:{width:"100%"},sort:!1}),jsxRuntime.jsx($3.SelectMenu,{name:"day",options:L,placeholder:"Day",containerStyle:{width:"100%"},sort:!1}),jsxRuntime.jsx($3.SelectMenu,{name:"year",options:Ts(),placeholder:"Year",containerStyle:{width:"100%"}})]})]}),e.current||document.body)]})},$7=Gs;var $s=({value:A=null,onChange:C,startRange:g=null,endRange:E=null,defaultValue:I=K5__default.default(),format:B=null,placeholder:Q=null,className:e=null,hasError:o=!1,disabled:i=!1,...t})=>{let[r,n]=xr.useState(!1),L=R=>R?!!(g&&R<K5__default.default(g).endOf("day")||E&&R>K5__default.default(E).endOf("day")):!1,f=o?w3.colors.fail:"#5a5a5a";return jsxRuntime.jsx(antd.DatePicker,{className:e,placeholder:Q,format:B,disabled:i,disabledDate:L,onChange:(R,u)=>{C&&C(u,R);},onFocus:()=>{n(!0);},onBlur:()=>{n(!1);},value:A?K5__default.default(A):I,style:{width:"100%",height:"50px",boxSizing:"border-box",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:r?w3.colors.secondaryGreen:f,padding:"20px 23px",backgroundColor:"#fff",fontFamily:w3.typography.family.body,fontWeight:w3.typography.weight.normal,fontStyle:"normal",fontSize:"16px",outlineStyle:"none",boxShadow:r?`0 0 0 1px ${w3.colors.secondaryGreen}`:"none"},...t})},Aa=$s;var Ea=({style:A={width:50,borderWidth:2,borderColor:"#d4e2dd"},type:C="horizontal",...g})=>jsxRuntime.jsx(antd.Divider,{style:A,type:C,...g}),Ia=Ea;var NI=a2__default.default(({className:A,...C})=>jsxRuntime.jsx(antd.Drawer,{rootClassName:A,classNames:{content:A},...C}))`
|
|
1891
1891
|
--border-radius: ${A=>A.placement==="bottom"?32:0}px;
|
|
1892
1892
|
|
|
1893
1893
|
&.ant-drawer-content {
|
|
@@ -2216,7 +2216,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2216
2216
|
}
|
|
2217
2217
|
|
|
2218
2218
|
${JB}
|
|
2219
|
-
`;function r6({className:A="",isActive:C=!1,color:g="#000"}){let E=web.useSpring(C?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{className:A,style:{...E,display:"flex",alignItems:"center"},children:jsxRuntime.jsx(O.Caret,{direction:"up",color:g})})}var GB={overflow:"auto",position:"anchor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0,transitionTimeout:50},Wa=({children:A,cta:C,onItemClick:g=()=>null,onMenuChange:E=()=>null,className:I="",expandIconClassName:B="",menuProps:Q={menuButton:null},caretColor:e="#000",borderColor:o="#555555"})=>{let i=xr.useRef(null),[r
|
|
2219
|
+
`;function r6({className:A="",isActive:C=!1,color:g="#000"}){let E=web.useSpring(C?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{className:A,style:{...E,display:"flex",alignItems:"center"},children:jsxRuntime.jsx(O.Caret,{direction:"up",color:g})})}var GB={overflow:"auto",position:"anchor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0,transitionTimeout:50},Wa=({children:A,cta:C,onItemClick:g=()=>null,onMenuChange:E=()=>null,className:I="",expandIconClassName:B="",menuProps:Q={menuButton:null},caretColor:e="#000",borderColor:o="#555555"})=>{let i=xr.useRef(null),[t,r]=reactMenu.useMenuState({transition:!0}),n=reactMenu.useClick(t.state,r),L=t.state==="open"||t.state==="opening";return xr.useEffect(()=>{E(t.state);},[t.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(XB,{className:`${I} ${L?"menu-open":"menu-closed"}`,ref:i,borderColor:o,...n,children:[jsxRuntime.jsx(OB,{children:C}),jsxRuntime.jsx(r6,{className:B,isActive:L,color:e}),jsxRuntime.jsx(reactMenu.ControlledMenu,{...t,anchorRef:i,onClose:()=>r(!1),onItemClick:g,onMenuChange:E,...GB,...Q,children:A})]})})},Na=({children:A,cta:C,onItemClick:g=()=>null,onMenuChange:E=()=>null,className:I="",menuProps:B={menuButton:null}})=>{let Q=xr.useRef(null),[e,o]=reactMenu.useMenuState({transition:!0}),i=reactMenu.useClick(e.state,o),t=e.state==="open"||e.state==="opening";return xr.useEffect(()=>{E(e.state);},[e.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(KB,{className:`${I} ${t?"menu-open":"menu-closed"}`,ref:Q,...i,children:[C,jsxRuntime.jsx(reactMenu.ControlledMenu,{...e,anchorRef:Q,onClose:()=>o(!1),onItemClick:g,onMenuChange:E,...GB,...B,children:A})]})})},_a=({label:A,className:C=""})=>jsxRuntime.jsx(reactMenu.MenuButton,{className:C,children:A}),$a=({label:A,value:C,selected:g=!1,onClick:E=()=>null,disabled:I=!1,linkTo:B="",className:Q=""})=>jsxRuntime.jsx(reactMenu.MenuItem,{className:`${Q} ${g?"active":"inactive"}`,value:C,onClick:E,href:B,disabled:I,children:A}),Al=({value:A,onChange:C=()=>null,className:g=""})=>jsxRuntime.jsx(reactMenu.FocusableItem,{children:({ref:E})=>jsxRuntime.jsx("input",{className:g,ref:E,type:"text",placeholder:"Type to filter",value:A,onChange:C})}),Cl=({children:A,className:C=""})=>jsxRuntime.jsx(reactMenu.MenuHeader,{className:C,children:A}),gl=({className:A=""})=>jsxRuntime.jsx(reactMenu.MenuDivider,{className:A}),El={Button:_a,Container:Wa,Wrapper:Na,Search:Al,Divider:gl,Header:Cl,Item:$a};var _B=a2__default.default.div`
|
|
2220
2220
|
--steps-number: ${A=>A.steps};
|
|
2221
2221
|
|
|
2222
2222
|
display: grid;
|
|
@@ -2408,14 +2408,14 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2408
2408
|
div * {
|
|
2409
2409
|
color: ${({isActive:A})=>A?"#000":"rgba(85, 85, 85, 0.50)"};
|
|
2410
2410
|
}
|
|
2411
|
-
`;var aQ=({steps:A,activeStep:C=void 0,allActive:g=!1,isWide:E=!1,spacing:I=40,showGradient:B=!1})=>{let[Q,e]=xr.useState(0),o=xr.useRef(null),i=xr.useRef(null);xr.useLayoutEffect(()=>{if(i.current&&o.current){let L=i.current.getBoundingClientRect().top,f=o.current.getBoundingClientRect().bottom;e(f-L);}},[A,I]);let
|
|
2411
|
+
`;var aQ=({steps:A,activeStep:C=void 0,allActive:g=!1,isWide:E=!1,spacing:I=40,showGradient:B=!1})=>{let[Q,e]=xr.useState(0),o=xr.useRef(null),i=xr.useRef(null);xr.useLayoutEffect(()=>{if(i.current&&o.current){let L=i.current.getBoundingClientRect().top,f=o.current.getBoundingClientRect().bottom;e(f-L);}},[A,I]);let t=L=>L===0?i:L===A.length-1?o:null,r=L=>g||C===L,n=A.map((L,f)=>jsxRuntime.jsxs(eQ,{spacing:I,children:[L?.icon&&L?.iconOnly?jsxRuntime.jsx(tQ,{children:L.icon}):jsxRuntime.jsx("div",{children:jsxRuntime.jsx(iQ,{hideBorder:!!L?.icon,isActive:r(f),children:L?.icon?L.icon:f+1})}),jsxRuntime.jsxs(rQ,{children:[jsxRuntime.jsx(nQ,{isActive:r(f),ref:t(f),children:L.title}),jsxRuntime.jsx(LQ,{isActive:r(f),children:L.description})]})]},L.title.toString()));return jsxRuntime.jsxs(QQ,{children:[jsxRuntime.jsx(oQ,{lineHeight:Q,isWide:E,gradientPercent:C?C/A.length*100:void 0,showGradient:B}),n]})};var ol={Horizontal:BQ,Vertical:aQ};var nl=a2__default.default(antd.Tag)`
|
|
2412
2412
|
font-size: 16px;
|
|
2413
2413
|
line-height: 16px;
|
|
2414
2414
|
padding: ${({padding:A})=>A||"4px 10px"};
|
|
2415
2415
|
border-radius: 24px;
|
|
2416
2416
|
${A=>A.textcolor&&`color: ${A.textcolor} !important;`}
|
|
2417
2417
|
${A=>A.bordercolor&&`border-color: ${A.bordercolor} !important;`}
|
|
2418
|
-
`,Ll=({children:A,status:C="default",icon:g=null,padding:E=void 0,ref:I=void 0,borderColor:B=void 0,textColor:Q=void 0,...e})=>{let o=xr.useMemo(()=>{let i="#EEEEEE",
|
|
2418
|
+
`,Ll=({children:A,status:C="default",icon:g=null,padding:E=void 0,ref:I=void 0,borderColor:B=void 0,textColor:Q=void 0,...e})=>{let o=xr.useMemo(()=>{let i="#EEEEEE",t="#000000",r;switch(C){case"success":i="#E9F0EE",t="#285E50";break;case"error":i="#DA4D54",t="#FFFFFF";break;case"warning":i="#F4E5CA";break;case"processing":i="#F4E5CA";break;case"label":r="#000",i="#ffffff";break;default:i="#EEEEEE";}return {bdrColor:r,bgColor:i,textcolor:t}},[C]);return jsxRuntime.jsx(nl,{color:o.bgColor,icon:g,textcolor:Q??o.textcolor,bordercolor:B??o.bdrColor,padding:E,ref:I,...e,children:A})},sl=Ll;var pl=a2__default.default(({className:A,children:C,placement:g="bottom",disabled:E=!1,title:I="",arrow:B=!1,...Q})=>jsxRuntime.jsx(antd.Popover,{placement:g,overlayClassName:A,title:E?"":I,arrow:B,...Q,children:C}))`
|
|
2419
2419
|
min-width: 15rem;
|
|
2420
2420
|
max-width: 30rem;
|
|
2421
2421
|
`,dl=pl;var ul=({percent:A=75,type:C="circle",strokeColor:g="#3F937C",strokeLinecap:E="butt",...I})=>jsxRuntime.jsx(antd.Space,{wrap:!0,children:jsxRuntime.jsx(antd.Progress,{type:C,percent:A,strokeLinecap:E,strokeColor:g,"aria-label":"progress-loader","aria-labelledby":"progress",...I})});var ql=A=>jsxRuntime.jsx(antd.Badge.Ribbon,{...A}),ml=ql;var xl=a2__default.default.div`
|
|
@@ -2465,10 +2465,10 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2465
2465
|
justify-content: center;
|
|
2466
2466
|
flex: 1 1 0;
|
|
2467
2467
|
flex-direction: column;
|
|
2468
|
-
`;function L6({id:A,children:C,onClickElement:g,style:E={},disabled:I=!1}){let{attributes:B,listeners:Q,setNodeRef:e,transform:o,transition:i,isDragging:
|
|
2468
|
+
`;function L6({id:A,children:C,onClickElement:g,style:E={},disabled:I=!1}){let{attributes:B,listeners:Q,setNodeRef:e,transform:o,transition:i,isDragging:t}=sortable.useSortable({id:A,disabled:I}),r={...E,transform:utilities.CSS.Transform.toString(o),transition:i,opacity:t?.25:1};return jsxRuntime.jsx(Gl,{style:r,ref:e,...B,...Q,onClick:()=>g(A),id:A,children:jsxRuntime.jsx(Wl,{children:C})})}var If=a2__default.default.div`
|
|
2469
2469
|
display: flex;
|
|
2470
2470
|
flex-direction: column;
|
|
2471
|
-
`;function uQ({id:A,onClickElement:C=()=>null,elements:g=[],onChange:E,onDragOver:I=()=>null,className:B="",disabled:Q=!1}){let{setNodeRef:e}=core.useDroppable({id:A}),o=({active:
|
|
2471
|
+
`;function uQ({id:A,onClickElement:C=()=>null,elements:g=[],onChange:E,onDragOver:I=()=>null,className:B="",disabled:Q=!1}){let{setNodeRef:e}=core.useDroppable({id:A}),o=({active:r,over:n,delta:L})=>{if(Math.abs(L.x)<1&&Math.abs(L.y)<1)return C(r.id);let R=g.findIndex(m=>m.id===r.id),u=g.findIndex(m=>m.id===n?.id),K=m=>sortable.arrayMove(m,R,u);return n?.id&&I(K(g)),!1},i=({active:r,over:n,delta:L})=>{if(Math.abs(L.x)<1&&Math.abs(L.y)<1)return C(r.id);let R=g.findIndex(m=>m.id===r.id),u=g.findIndex(m=>m.id===n?.id),K=m=>sortable.arrayMove(m,R,u);return n?.id&&E(K(g)),null},t=core.useSensors(core.useSensor(s4),core.useSensor(a4));return jsxRuntime.jsx(core.DndContext,{collisionDetection:core.closestCorners,onDragOver:o,onDragEnd:i,sensors:t,children:jsxRuntime.jsx(sortable.SortableContext,{id:A,items:g,strategy:sortable.verticalListSortingStrategy,children:jsxRuntime.jsx(If,{ref:e,className:B,children:g.map(r=>jsxRuntime.jsx(L6,{onClickElement:C,id:r.id,disabled:Q,children:r.children},r.id))})})})}var Bf=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M6.17984 0L7.58984 1.41L3.00984 6L7.58984 10.59L6.17984 12L0.179844 6L6.17984 0Z",fill:"#555555"})}),"Previous"]}),Qf=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Next",jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M1.99984 0L0.589844 1.41L5.16984 6L0.589844 10.59L1.99984 12L7.99984 6L1.99984 0Z",fill:"#555555"})})]}),s6={Previous:Bf,Next:Qf};a2__default.default.header`
|
|
2472
2472
|
display: flex;
|
|
2473
2473
|
justify-content: space-between;
|
|
2474
2474
|
margin-bottom: 1rem;
|
|
@@ -2719,7 +2719,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2719
2719
|
margin: 0;
|
|
2720
2720
|
line-height: 12px;
|
|
2721
2721
|
color: #1d4339;
|
|
2722
|
-
`,bf=({contentfulConfig:A,size:C=58})=>{let[g,E]=xr.useState(""),[I,B]=web.useSpring(()=>({from:{width:C+24,backgroundColor:"#fff",color:"#ffffff"}}));xr.useEffect(()=>{new E5(A).getImage("vanta-logo").then(n=>{E(n);});},[]);let[Q,e]=web.useSpring(()=>({from:{opacity:0},delay:100})),o=n=>({width:n?198+C:C+24,backgroundColor:n?"#d4e2dd":"#fff"}),i=n=>({opacity:n?1:0}),
|
|
2722
|
+
`,bf=({contentfulConfig:A,size:C=58})=>{let[g,E]=xr.useState(""),[I,B]=web.useSpring(()=>({from:{width:C+24,backgroundColor:"#fff",color:"#ffffff"}}));xr.useEffect(()=>{new E5(A).getImage("vanta-logo").then(n=>{E(n);});},[]);let[Q,e]=web.useSpring(()=>({from:{opacity:0},delay:100})),o=n=>({width:n?198+C:C+24,backgroundColor:n?"#d4e2dd":"#fff"}),i=n=>({opacity:n?1:0}),t=()=>{B(o(!0)),e(i(!0));},r=()=>{B(o(!1)),e(i(!1));};return g?jsxRuntime.jsxs(Of,{style:I,onMouseEnter:t,onMouseLeave:r,size:C,children:[jsxRuntime.jsx("img",{alt:"Vanta Logo",src:g,height:C,width:C}),jsxRuntime.jsxs(Jf,{style:Q,children:[jsxRuntime.jsx(d.Body,{children:jsxRuntime.jsx(Kf,{children:"Guaranteed Security"})}),jsxRuntime.jsx(d.Body,{size:"xs",children:jsxRuntime.jsx(Xf,{children:"We're committed to protecting your privacy. Solace is safe, secure, and HIPAA compliant\u2014 certified by Vanta."})})]})]}):null},jf=bf;var Zf=({style:A={},...C})=>jsxRuntime.jsx(antd.DatePicker,{open:!0,style:{marginTop:"-30px",marginBottom:"350px",visibility:"hidden",width:"100%",...A},...C}),Yf=Zf;/*! Bundled license information:
|
|
2723
2723
|
|
|
2724
2724
|
react-is/cjs/react-is.production.min.js:
|
|
2725
2725
|
(** @license React v16.13.1
|