@solace-health/ui 0.10.141 → 0.10.142
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 +34 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +31 -27
- package/dist/index.js.map +1 -1
- package/package.json +10 -1
package/dist/index.cjs
CHANGED
|
@@ -47,8 +47,8 @@ var je__default = /*#__PURE__*/_interopDefault(je);
|
|
|
47
47
|
var _8__namespace = /*#__PURE__*/_interopNamespace(_8);
|
|
48
48
|
var Ji__default = /*#__PURE__*/_interopDefault(Ji);
|
|
49
49
|
|
|
50
|
-
var jE=Object.create;var W7=Object.defineProperty;var TE=Object.getOwnPropertyDescriptor;var YE=Object.getOwnPropertyNames;var ZE=Object.getPrototypeOf,WE=Object.prototype.hasOwnProperty;var y2=(A,C)=>()=>(C||A((C={exports:{}}).exports,C),C.exports);var GE=(A,C,g,E)=>{if(C&&typeof C=="object"||typeof C=="function")for(let B of YE(C))!WE.call(A,B)&&B!==g&&W7(A,B,{get:()=>C[B],enumerable:!(E=TE(C,B))||E.enumerable});return A};var NE=(A,C,g)=>(g=A!=null?jE(ZE(A)):{},GE(C||!A||!A.__esModule?W7(g,"default",{value:A,enumerable:!0}):g,A));var K0=y2(W=>{var n2=typeof Symbol=="function"&&Symbol.for,d7=n2?Symbol.for("react.element"):60103,p7=n2?Symbol.for("react.portal"):60106,XA=n2?Symbol.for("react.fragment"):60107,bA=n2?Symbol.for("react.strict_mode"):60108,kA=n2?Symbol.for("react.profiler"):60114,FA=n2?Symbol.for("react.provider"):60109,JA=n2?Symbol.for("react.context"):60110,c7=n2?Symbol.for("react.async_mode"):60111,zA=n2?Symbol.for("react.concurrent_mode"):60111,KA=n2?Symbol.for("react.forward_ref"):60112,yA=n2?Symbol.for("react.suspense"):60113,Tt=n2?Symbol.for("react.suspense_list"):60120,OA=n2?Symbol.for("react.memo"):60115,DA=n2?Symbol.for("react.lazy"):60116,Yt=n2?Symbol.for("react.block"):60121,Zt=n2?Symbol.for("react.fundamental"):60117,Wt=n2?Symbol.for("react.responder"):60118,Gt=n2?Symbol.for("react.scope"):60119;function x2(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case d7:switch(A=A.type,A){case c7:case zA:case XA:case kA:case bA:case yA:return A;default:switch(A=A&&A.$$typeof,A){case JA:case KA:case DA:case OA:case FA:return A;default:return C}}case p7:return C}}}function z0(A){return x2(A)===zA}W.AsyncMode=c7;W.ConcurrentMode=zA;W.ContextConsumer=JA;W.ContextProvider=FA;W.Element=d7;W.ForwardRef=KA;W.Fragment=XA;W.Lazy=DA;W.Memo=OA;W.Portal=p7;W.Profiler=kA;W.StrictMode=bA;W.Suspense=yA;W.isAsyncMode=function(A){return z0(A)||x2(A)===c7};W.isConcurrentMode=z0;W.isContextConsumer=function(A){return x2(A)===JA};W.isContextProvider=function(A){return x2(A)===FA};W.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===d7};W.isForwardRef=function(A){return x2(A)===KA};W.isFragment=function(A){return x2(A)===XA};W.isLazy=function(A){return x2(A)===DA};W.isMemo=function(A){return x2(A)===OA};W.isPortal=function(A){return x2(A)===p7};W.isProfiler=function(A){return x2(A)===kA};W.isStrictMode=function(A){return x2(A)===bA};W.isSuspense=function(A){return x2(A)===yA};W.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===XA||A===zA||A===kA||A===bA||A===yA||A===Tt||typeof A=="object"&&A!==null&&(A.$$typeof===DA||A.$$typeof===OA||A.$$typeof===FA||A.$$typeof===JA||A.$$typeof===KA||A.$$typeof===Zt||A.$$typeof===Wt||A.$$typeof===Gt||A.$$typeof===Yt)};W.typeOf=x2;});var y0=y2(G=>{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,B=A?Symbol.for("react.strict_mode"):60108,I=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,r=A?Symbol.for("react.concurrent_mode"):60111,t=A?Symbol.for("react.forward_ref"):60112,i=A?Symbol.for("react.suspense"):60113,L=A?Symbol.for("react.suspense_list"):60120,l=A?Symbol.for("react.memo"):60115,f=A?Symbol.for("react.lazy"):60116,x=A?Symbol.for("react.block"):60121,d=A?Symbol.for("react.fundamental"):60117,q=A?Symbol.for("react.responder"):60118,h=A?Symbol.for("react.scope"):60119;function M(H){return typeof H=="string"||typeof H=="function"||H===E||H===r||H===I||H===B||H===i||H===L||typeof H=="object"&&H!==null&&(H.$$typeof===f||H.$$typeof===l||H.$$typeof===Q||H.$$typeof===e||H.$$typeof===t||H.$$typeof===d||H.$$typeof===q||H.$$typeof===h||H.$$typeof===x)}function p(H){if(typeof H=="object"&&H!==null){var r5=H.$$typeof;switch(r5){case C:var BA=H.type;switch(BA){case o:case r:case E:case I:case B:case i:return BA;default:var Z7=BA&&BA.$$typeof;switch(Z7){case e:case t:case f:case l:case Q:return Z7;default:return r5}}case g:return r5}}}var s=o,c=r,u=e,U=Q,N=C,K=t,_=E,w2=f,n=l,a=g,b=I,k=B,S=i,F=!1;function V(H){return F||(F=!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.")),X(H)||p(H)===o}function X(H){return p(H)===r}function O(H){return p(H)===e}function Z(H){return p(H)===Q}function D(H){return typeof H=="object"&&H!==null&&H.$$typeof===C}function R2(H){return p(H)===t}function c2(H){return p(H)===E}function o1(H){return p(H)===f}function zE(H){return p(H)===l}function KE(H){return p(H)===g}function yE(H){return p(H)===I}function OE(H){return p(H)===B}function DE(H){return p(H)===i}G.AsyncMode=s,G.ConcurrentMode=c,G.ContextConsumer=u,G.ContextProvider=U,G.Element=N,G.ForwardRef=K,G.Fragment=_,G.Lazy=w2,G.Memo=n,G.Portal=a,G.Profiler=b,G.StrictMode=k,G.Suspense=S,G.isAsyncMode=V,G.isConcurrentMode=X,G.isContextConsumer=O,G.isContextProvider=Z,G.isElement=D,G.isForwardRef=R2,G.isFragment=c2,G.isLazy=o1,G.isMemo=zE,G.isPortal=KE,G.isProfiler=yE,G.isStrictMode=OE,G.isSuspense=DE,G.isValidElementType=M,G.typeOf=p;}();});var h7=y2((ZR,u7)=>{process.env.NODE_ENV==="production"?u7.exports=K0():u7.exports=y0();});var j0=y2((WR,D0)=>{var O0=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;function $t(A){if(A==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(A)}function Ar(){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(I){return C[I]});if(E.join("")!=="0123456789")return !1;var B={};return "abcdefghijklmnopqrst".split("").forEach(function(I){B[I]=I;}),Object.keys(Object.assign({},B)).join("")==="abcdefghijklmnopqrst"}catch{return !1}}D0.exports=Ar()?Object.assign:function(A,C){for(var g,E=$t(A),B,I=1;I<arguments.length;I++){g=Object(arguments[I]);for(var Q in g)Nt.call(g,Q)&&(E[Q]=g[Q]);if(O0){B=O0(g);for(var e=0;e<B.length;e++)_t.call(g,B[e])&&(E[B[e]]=g[B[e]]);}}return E};});var jA=y2((GR,T0)=>{var Cr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";T0.exports=Cr;});var v7=y2((NR,Y0)=>{Y0.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var _0=y2((_R,N0)=>{var w7=function(){};process.env.NODE_ENV!=="production"&&(Z0=jA(),TA={},W0=v7(),w7=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});var Z0,TA,W0;function G0(A,C,g,E,B){if(process.env.NODE_ENV!=="production"){for(var I in A)if(W0(A,I)){var Q;try{if(typeof A[I]!="function"){var e=Error((E||"React class")+": "+g+" type `"+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[I]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw e.name="Invariant Violation",e}Q=A[I](C,I,E,g,null,Z0);}catch(r){Q=r;}if(Q&&!(Q instanceof Error)&&w7((E||"React class")+": type specification of "+g+" `"+I+"` 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 TA)){TA[Q.message]=!0;var o=B?B():"";w7("Failed "+g+" type: "+Q.message+(o??""));}}}}G0.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(TA={});};N0.exports=G0;});var CC=y2(($R,AC)=>{var gr=h7(),Er=j0(),c3=jA(),V7=v7(),$0=_0(),u3=function(){};process.env.NODE_ENV!=="production"&&(u3=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});function YA(){return null}AC.exports=function(A,C){var g=typeof Symbol=="function"&&Symbol.iterator,E="@@iterator";function B(n){var a=n&&(g&&n[g]||n[E]);if(typeof a=="function")return a}var I="<<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:i(),arrayOf:L,element:l(),elementType:f(),instanceOf:x,node:M(),objectOf:q,oneOf:d,oneOfType:h,shape:s,exact:c};function e(n,a){return n===a?n!==0||1/n===1/a:n!==n&&a!==a}function o(n,a){this.message=n,this.data=a&&typeof a=="object"?a:{},this.stack="";}o.prototype=Error.prototype;function r(n){if(process.env.NODE_ENV!=="production")var a={},b=0;function k(F,V,X,O,Z,D,R2){if(O=O||I,D=D||X,R2!==c3){if(C){var c2=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 c2.name="Invariant Violation",c2}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var o1=O+":"+X;!a[o1]&&b<3&&(u3("You are manually calling a React.PropTypes validation function for the `"+D+"` prop on `"+O+"`. 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."),a[o1]=!0,b++);}}return V[X]==null?F?V[X]===null?new o("The "+Z+" `"+D+"` is marked as required "+("in `"+O+"`, but its value is `null`.")):new o("The "+Z+" `"+D+"` is marked as required in "+("`"+O+"`, but its value is `undefined`.")):null:n(V,X,O,Z,D)}var S=k.bind(null,!1);return S.isRequired=k.bind(null,!0),S}function t(n){function a(b,k,S,F,V,X){var O=b[k],Z=N(O);if(Z!==n){var D=K(O);return new o("Invalid "+F+" `"+V+"` of type "+("`"+D+"` supplied to `"+S+"`, expected ")+("`"+n+"`."),{expectedType:n})}return null}return r(a)}function i(){return r(YA)}function L(n){function a(b,k,S,F,V){if(typeof n!="function")return new o("Property `"+V+"` of component `"+S+"` has invalid PropType notation inside arrayOf.");var X=b[k];if(!Array.isArray(X)){var O=N(X);return new o("Invalid "+F+" `"+V+"` of type "+("`"+O+"` supplied to `"+S+"`, expected an array."))}for(var Z=0;Z<X.length;Z++){var D=n(X,Z,S,F,V+"["+Z+"]",c3);if(D instanceof Error)return D}return null}return r(a)}function l(){function n(a,b,k,S,F){var V=a[b];if(!A(V)){var X=N(V);return new o("Invalid "+S+" `"+F+"` of type "+("`"+X+"` supplied to `"+k+"`, expected a single ReactElement."))}return null}return r(n)}function f(){function n(a,b,k,S,F){var V=a[b];if(!gr.isValidElementType(V)){var X=N(V);return new o("Invalid "+S+" `"+F+"` of type "+("`"+X+"` supplied to `"+k+"`, expected a single ReactElement type."))}return null}return r(n)}function x(n){function a(b,k,S,F,V){if(!(b[k]instanceof n)){var X=n.name||I,O=w2(b[k]);return new o("Invalid "+F+" `"+V+"` of type "+("`"+O+"` supplied to `"+S+"`, expected ")+("instance of `"+X+"`."))}return null}return r(a)}function d(n){if(!Array.isArray(n))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u3("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])."):u3("Invalid argument supplied to oneOf, expected an array.")),YA;function a(b,k,S,F,V){for(var X=b[k],O=0;O<n.length;O++)if(e(X,n[O]))return null;var Z=JSON.stringify(n,function(R2,c2){var o1=K(c2);return o1==="symbol"?String(c2):c2});return new o("Invalid "+F+" `"+V+"` of value `"+String(X)+"` "+("supplied to `"+S+"`, expected one of "+Z+"."))}return r(a)}function q(n){function a(b,k,S,F,V){if(typeof n!="function")return new o("Property `"+V+"` of component `"+S+"` has invalid PropType notation inside objectOf.");var X=b[k],O=N(X);if(O!=="object")return new o("Invalid "+F+" `"+V+"` of type "+("`"+O+"` supplied to `"+S+"`, expected an object."));for(var Z in X)if(V7(X,Z)){var D=n(X,Z,S,F,V+"."+Z,c3);if(D instanceof Error)return D}return null}return r(a)}function h(n){if(!Array.isArray(n))return process.env.NODE_ENV!=="production"&&u3("Invalid argument supplied to oneOfType, expected an instance of array."),YA;for(var a=0;a<n.length;a++){var b=n[a];if(typeof b!="function")return u3("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(b)+" at index "+a+"."),YA}function k(S,F,V,X,O){for(var Z=[],D=0;D<n.length;D++){var R2=n[D],c2=R2(S,F,V,X,O,c3);if(c2==null)return null;c2.data&&V7(c2.data,"expectedType")&&Z.push(c2.data.expectedType);}var o1=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new o("Invalid "+X+" `"+O+"` supplied to "+("`"+V+"`"+o1+"."))}return r(k)}function M(){function n(a,b,k,S,F){return u(a[b])?null:new o("Invalid "+S+" `"+F+"` supplied to "+("`"+k+"`, expected a ReactNode."))}return r(n)}function p(n,a,b,k,S){return new o((n||"React class")+": "+a+" type `"+b+"."+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+S+"`.")}function s(n){function a(b,k,S,F,V){var X=b[k],O=N(X);if(O!=="object")return new o("Invalid "+F+" `"+V+"` of type `"+O+"` "+("supplied to `"+S+"`, expected `object`."));for(var Z in n){var D=n[Z];if(typeof D!="function")return p(S,F,V,Z,K(D));var R2=D(X,Z,S,F,V+"."+Z,c3);if(R2)return R2}return null}return r(a)}function c(n){function a(b,k,S,F,V){var X=b[k],O=N(X);if(O!=="object")return new o("Invalid "+F+" `"+V+"` of type `"+O+"` "+("supplied to `"+S+"`, expected `object`."));var Z=Er({},b[k],n);for(var D in Z){var R2=n[D];if(V7(n,D)&&typeof R2!="function")return p(S,F,V,D,K(R2));if(!R2)return new o("Invalid "+F+" `"+V+"` key `"+D+"` supplied to `"+S+"`.\nBad object: "+JSON.stringify(b[k],null," ")+`
|
|
51
|
-
Valid keys: `+JSON.stringify(Object.keys(n),null," "));var c2=R2(
|
|
50
|
+
var jE=Object.create;var W7=Object.defineProperty;var TE=Object.getOwnPropertyDescriptor;var YE=Object.getOwnPropertyNames;var ZE=Object.getPrototypeOf,WE=Object.prototype.hasOwnProperty;var y2=(A,C)=>()=>(C||A((C={exports:{}}).exports,C),C.exports);var GE=(A,C,g,E)=>{if(C&&typeof C=="object"||typeof C=="function")for(let B of YE(C))!WE.call(A,B)&&B!==g&&W7(A,B,{get:()=>C[B],enumerable:!(E=TE(C,B))||E.enumerable});return A};var NE=(A,C,g)=>(g=A!=null?jE(ZE(A)):{},GE(C||!A||!A.__esModule?W7(g,"default",{value:A,enumerable:!0}):g,A));var K0=y2(W=>{var n2=typeof Symbol=="function"&&Symbol.for,d7=n2?Symbol.for("react.element"):60103,p7=n2?Symbol.for("react.portal"):60106,XA=n2?Symbol.for("react.fragment"):60107,bA=n2?Symbol.for("react.strict_mode"):60108,kA=n2?Symbol.for("react.profiler"):60114,FA=n2?Symbol.for("react.provider"):60109,JA=n2?Symbol.for("react.context"):60110,c7=n2?Symbol.for("react.async_mode"):60111,zA=n2?Symbol.for("react.concurrent_mode"):60111,KA=n2?Symbol.for("react.forward_ref"):60112,yA=n2?Symbol.for("react.suspense"):60113,Tt=n2?Symbol.for("react.suspense_list"):60120,OA=n2?Symbol.for("react.memo"):60115,DA=n2?Symbol.for("react.lazy"):60116,Yt=n2?Symbol.for("react.block"):60121,Zt=n2?Symbol.for("react.fundamental"):60117,Wt=n2?Symbol.for("react.responder"):60118,Gt=n2?Symbol.for("react.scope"):60119;function x2(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case d7:switch(A=A.type,A){case c7:case zA:case XA:case kA:case bA:case yA:return A;default:switch(A=A&&A.$$typeof,A){case JA:case KA:case DA:case OA:case FA:return A;default:return C}}case p7:return C}}}function z0(A){return x2(A)===zA}W.AsyncMode=c7;W.ConcurrentMode=zA;W.ContextConsumer=JA;W.ContextProvider=FA;W.Element=d7;W.ForwardRef=KA;W.Fragment=XA;W.Lazy=DA;W.Memo=OA;W.Portal=p7;W.Profiler=kA;W.StrictMode=bA;W.Suspense=yA;W.isAsyncMode=function(A){return z0(A)||x2(A)===c7};W.isConcurrentMode=z0;W.isContextConsumer=function(A){return x2(A)===JA};W.isContextProvider=function(A){return x2(A)===FA};W.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===d7};W.isForwardRef=function(A){return x2(A)===KA};W.isFragment=function(A){return x2(A)===XA};W.isLazy=function(A){return x2(A)===DA};W.isMemo=function(A){return x2(A)===OA};W.isPortal=function(A){return x2(A)===p7};W.isProfiler=function(A){return x2(A)===kA};W.isStrictMode=function(A){return x2(A)===bA};W.isSuspense=function(A){return x2(A)===yA};W.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===XA||A===zA||A===kA||A===bA||A===yA||A===Tt||typeof A=="object"&&A!==null&&(A.$$typeof===DA||A.$$typeof===OA||A.$$typeof===FA||A.$$typeof===JA||A.$$typeof===KA||A.$$typeof===Zt||A.$$typeof===Wt||A.$$typeof===Gt||A.$$typeof===Yt)};W.typeOf=x2;});var y0=y2(G=>{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,B=A?Symbol.for("react.strict_mode"):60108,I=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,r=A?Symbol.for("react.concurrent_mode"):60111,t=A?Symbol.for("react.forward_ref"):60112,i=A?Symbol.for("react.suspense"):60113,L=A?Symbol.for("react.suspense_list"):60120,a=A?Symbol.for("react.memo"):60115,f=A?Symbol.for("react.lazy"):60116,x=A?Symbol.for("react.block"):60121,d=A?Symbol.for("react.fundamental"):60117,q=A?Symbol.for("react.responder"):60118,h=A?Symbol.for("react.scope"):60119;function M(H){return typeof H=="string"||typeof H=="function"||H===E||H===r||H===I||H===B||H===i||H===L||typeof H=="object"&&H!==null&&(H.$$typeof===f||H.$$typeof===a||H.$$typeof===Q||H.$$typeof===e||H.$$typeof===t||H.$$typeof===d||H.$$typeof===q||H.$$typeof===h||H.$$typeof===x)}function p(H){if(typeof H=="object"&&H!==null){var r5=H.$$typeof;switch(r5){case C:var BA=H.type;switch(BA){case o:case r:case E:case I:case B:case i:return BA;default:var Z7=BA&&BA.$$typeof;switch(Z7){case e:case t:case f:case a:case Q:return Z7;default:return r5}}case g:return r5}}}var s=o,c=r,u=e,U=Q,N=C,F=t,A2=E,w2=f,n=a,l=g,S=I,k=B,X=i,J=!1;function V(H){return J||(J=!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.")),b(H)||p(H)===o}function b(H){return p(H)===r}function O(H){return p(H)===e}function Z(H){return p(H)===Q}function D(H){return typeof H=="object"&&H!==null&&H.$$typeof===C}function R2(H){return p(H)===t}function c2(H){return p(H)===E}function o1(H){return p(H)===f}function zE(H){return p(H)===a}function KE(H){return p(H)===g}function yE(H){return p(H)===I}function OE(H){return p(H)===B}function DE(H){return p(H)===i}G.AsyncMode=s,G.ConcurrentMode=c,G.ContextConsumer=u,G.ContextProvider=U,G.Element=N,G.ForwardRef=F,G.Fragment=A2,G.Lazy=w2,G.Memo=n,G.Portal=l,G.Profiler=S,G.StrictMode=k,G.Suspense=X,G.isAsyncMode=V,G.isConcurrentMode=b,G.isContextConsumer=O,G.isContextProvider=Z,G.isElement=D,G.isForwardRef=R2,G.isFragment=c2,G.isLazy=o1,G.isMemo=zE,G.isPortal=KE,G.isProfiler=yE,G.isStrictMode=OE,G.isSuspense=DE,G.isValidElementType=M,G.typeOf=p;}();});var h7=y2((GR,u7)=>{process.env.NODE_ENV==="production"?u7.exports=K0():u7.exports=y0();});var j0=y2((NR,D0)=>{var O0=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable;function $t(A){if(A==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(A)}function Ar(){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(I){return C[I]});if(E.join("")!=="0123456789")return !1;var B={};return "abcdefghijklmnopqrst".split("").forEach(function(I){B[I]=I;}),Object.keys(Object.assign({},B)).join("")==="abcdefghijklmnopqrst"}catch{return !1}}D0.exports=Ar()?Object.assign:function(A,C){for(var g,E=$t(A),B,I=1;I<arguments.length;I++){g=Object(arguments[I]);for(var Q in g)Nt.call(g,Q)&&(E[Q]=g[Q]);if(O0){B=O0(g);for(var e=0;e<B.length;e++)_t.call(g,B[e])&&(E[B[e]]=g[B[e]]);}}return E};});var jA=y2((_R,T0)=>{var Cr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";T0.exports=Cr;});var v7=y2(($R,Y0)=>{Y0.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var _0=y2((AP,N0)=>{var w7=function(){};process.env.NODE_ENV!=="production"&&(Z0=jA(),TA={},W0=v7(),w7=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});var Z0,TA,W0;function G0(A,C,g,E,B){if(process.env.NODE_ENV!=="production"){for(var I in A)if(W0(A,I)){var Q;try{if(typeof A[I]!="function"){var e=Error((E||"React class")+": "+g+" type `"+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[I]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw e.name="Invariant Violation",e}Q=A[I](C,I,E,g,null,Z0);}catch(r){Q=r;}if(Q&&!(Q instanceof Error)&&w7((E||"React class")+": type specification of "+g+" `"+I+"` 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 TA)){TA[Q.message]=!0;var o=B?B():"";w7("Failed "+g+" type: "+Q.message+(o??""));}}}}G0.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(TA={});};N0.exports=G0;});var CC=y2((CP,AC)=>{var gr=h7(),Er=j0(),c3=jA(),V7=v7(),$0=_0(),u3=function(){};process.env.NODE_ENV!=="production"&&(u3=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});function YA(){return null}AC.exports=function(A,C){var g=typeof Symbol=="function"&&Symbol.iterator,E="@@iterator";function B(n){var l=n&&(g&&n[g]||n[E]);if(typeof l=="function")return l}var I="<<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:i(),arrayOf:L,element:a(),elementType:f(),instanceOf:x,node:M(),objectOf:q,oneOf:d,oneOfType:h,shape:s,exact:c};function e(n,l){return n===l?n!==0||1/n===1/l:n!==n&&l!==l}function o(n,l){this.message=n,this.data=l&&typeof l=="object"?l:{},this.stack="";}o.prototype=Error.prototype;function r(n){if(process.env.NODE_ENV!=="production")var l={},S=0;function k(J,V,b,O,Z,D,R2){if(O=O||I,D=D||b,R2!==c3){if(C){var c2=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 c2.name="Invariant Violation",c2}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var o1=O+":"+b;!l[o1]&&S<3&&(u3("You are manually calling a React.PropTypes validation function for the `"+D+"` prop on `"+O+"`. 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."),l[o1]=!0,S++);}}return V[b]==null?J?V[b]===null?new o("The "+Z+" `"+D+"` is marked as required "+("in `"+O+"`, but its value is `null`.")):new o("The "+Z+" `"+D+"` is marked as required in "+("`"+O+"`, but its value is `undefined`.")):null:n(V,b,O,Z,D)}var X=k.bind(null,!1);return X.isRequired=k.bind(null,!0),X}function t(n){function l(S,k,X,J,V,b){var O=S[k],Z=N(O);if(Z!==n){var D=F(O);return new o("Invalid "+J+" `"+V+"` of type "+("`"+D+"` supplied to `"+X+"`, expected ")+("`"+n+"`."),{expectedType:n})}return null}return r(l)}function i(){return r(YA)}function L(n){function l(S,k,X,J,V){if(typeof n!="function")return new o("Property `"+V+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var b=S[k];if(!Array.isArray(b)){var O=N(b);return new o("Invalid "+J+" `"+V+"` of type "+("`"+O+"` supplied to `"+X+"`, expected an array."))}for(var Z=0;Z<b.length;Z++){var D=n(b,Z,X,J,V+"["+Z+"]",c3);if(D instanceof Error)return D}return null}return r(l)}function a(){function n(l,S,k,X,J){var V=l[S];if(!A(V)){var b=N(V);return new o("Invalid "+X+" `"+J+"` of type "+("`"+b+"` supplied to `"+k+"`, expected a single ReactElement."))}return null}return r(n)}function f(){function n(l,S,k,X,J){var V=l[S];if(!gr.isValidElementType(V)){var b=N(V);return new o("Invalid "+X+" `"+J+"` of type "+("`"+b+"` supplied to `"+k+"`, expected a single ReactElement type."))}return null}return r(n)}function x(n){function l(S,k,X,J,V){if(!(S[k]instanceof n)){var b=n.name||I,O=w2(S[k]);return new o("Invalid "+J+" `"+V+"` of type "+("`"+O+"` supplied to `"+X+"`, expected ")+("instance of `"+b+"`."))}return null}return r(l)}function d(n){if(!Array.isArray(n))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u3("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])."):u3("Invalid argument supplied to oneOf, expected an array.")),YA;function l(S,k,X,J,V){for(var b=S[k],O=0;O<n.length;O++)if(e(b,n[O]))return null;var Z=JSON.stringify(n,function(R2,c2){var o1=F(c2);return o1==="symbol"?String(c2):c2});return new o("Invalid "+J+" `"+V+"` of value `"+String(b)+"` "+("supplied to `"+X+"`, expected one of "+Z+"."))}return r(l)}function q(n){function l(S,k,X,J,V){if(typeof n!="function")return new o("Property `"+V+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var b=S[k],O=N(b);if(O!=="object")return new o("Invalid "+J+" `"+V+"` of type "+("`"+O+"` supplied to `"+X+"`, expected an object."));for(var Z in b)if(V7(b,Z)){var D=n(b,Z,X,J,V+"."+Z,c3);if(D instanceof Error)return D}return null}return r(l)}function h(n){if(!Array.isArray(n))return process.env.NODE_ENV!=="production"&&u3("Invalid argument supplied to oneOfType, expected an instance of array."),YA;for(var l=0;l<n.length;l++){var S=n[l];if(typeof S!="function")return u3("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+A2(S)+" at index "+l+"."),YA}function k(X,J,V,b,O){for(var Z=[],D=0;D<n.length;D++){var R2=n[D],c2=R2(X,J,V,b,O,c3);if(c2==null)return null;c2.data&&V7(c2.data,"expectedType")&&Z.push(c2.data.expectedType);}var o1=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new o("Invalid "+b+" `"+O+"` supplied to "+("`"+V+"`"+o1+"."))}return r(k)}function M(){function n(l,S,k,X,J){return u(l[S])?null:new o("Invalid "+X+" `"+J+"` supplied to "+("`"+k+"`, expected a ReactNode."))}return r(n)}function p(n,l,S,k,X){return new o((n||"React class")+": "+l+" type `"+S+"."+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function s(n){function l(S,k,X,J,V){var b=S[k],O=N(b);if(O!=="object")return new o("Invalid "+J+" `"+V+"` of type `"+O+"` "+("supplied to `"+X+"`, expected `object`."));for(var Z in n){var D=n[Z];if(typeof D!="function")return p(X,J,V,Z,F(D));var R2=D(b,Z,X,J,V+"."+Z,c3);if(R2)return R2}return null}return r(l)}function c(n){function l(S,k,X,J,V){var b=S[k],O=N(b);if(O!=="object")return new o("Invalid "+J+" `"+V+"` of type `"+O+"` "+("supplied to `"+X+"`, expected `object`."));var Z=Er({},S[k],n);for(var D in Z){var R2=n[D];if(V7(n,D)&&typeof R2!="function")return p(X,J,V,D,F(R2));if(!R2)return new o("Invalid "+J+" `"+V+"` key `"+D+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(S[k],null," ")+`
|
|
51
|
+
Valid keys: `+JSON.stringify(Object.keys(n),null," "));var c2=R2(b,D,X,J,V+"."+D,c3);if(c2)return c2}return null}return r(l)}function u(n){switch(typeof n){case"number":case"string":case"undefined":return !0;case"boolean":return !n;case"object":if(Array.isArray(n))return n.every(u);if(n===null||A(n))return !0;var l=B(n);if(l){var S=l.call(n),k;if(l!==n.entries){for(;!(k=S.next()).done;)if(!u(k.value))return !1}else for(;!(k=S.next()).done;){var X=k.value;if(X&&!u(X[1]))return !1}}else return !1;return !0;default:return !1}}function U(n,l){return n==="symbol"?!0:l?l["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&l instanceof Symbol:!1}function N(n){var l=typeof n;return Array.isArray(n)?"array":n instanceof RegExp?"object":U(l,n)?"symbol":l}function F(n){if(typeof n>"u"||n===null)return ""+n;var l=N(n);if(l==="object"){if(n instanceof Date)return "date";if(n instanceof RegExp)return "regexp"}return l}function A2(n){var l=F(n);switch(l){case"array":case"object":return "an "+l;case"boolean":case"date":case"regexp":return "a "+l;default:return l}}function w2(n){return !n.constructor||!n.constructor.name?I:n.constructor.name}return Q.checkPropTypes=$0,Q.resetWarningCache=$0.resetWarningCache,Q.PropTypes=Q,Q};});var IC=y2((gP,BC)=>{var Br=jA();function gC(){}function EC(){}EC.resetWarningCache=gC;BC.exports=function(){function A(E,B,I,Q,e,o){if(o!==Br){var r=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 r.name="Invariant Violation",r}}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:EC,resetWarningCache:gC};return g.PropTypes=g,g};});var oC=y2((EP,m7)=>{process.env.NODE_ENV!=="production"?(QC=h7(),eC=!0,m7.exports=CC()(QC.isElement,eC)):m7.exports=IC()();var QC,eC;});var gB=y__default.default(web.animated.div)`
|
|
52
52
|
position: absolute;
|
|
53
53
|
top: 1px;
|
|
54
54
|
left: 0px;
|
|
@@ -408,7 +408,7 @@ Valid keys: `+JSON.stringify(Object.keys(n),null," "));var c2=R2(X,D,S,F,V+"."+
|
|
|
408
408
|
padding-top: 0;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
`,dI=A=>{let C=reactHookForm.get(A,"isActive",!1),g=web.useSpring(C?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{style:g,children:jsxRuntime.jsx("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M1.58301 8.24927L7.99968 1.8326L14.4163 8.24927",stroke:"black",strokeWidth:"1.66756",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})},pI=({items:A,onChange:C=()=>null,showIndicator:g=!1,indicatorColor:E="#E4767C",borderColor:B="",...I})=>{let Q=Array.isArray(A)?A:[A];return jsxRuntime.jsx(fI,{items:Q,expandIcon:dI,defaultActiveKey:["1"],onChange:o=>C(o),expandIconPosition:"end",showIndicator:g,borderColor:B,indicatorColor:E,...I})},cI=pI;var vI=({value:A=null,onChange:C,startRange:g=null,endRange:E=null,defaultValue:B=gA__default.default(),format:I=null,placeholder:Q=null,className:e=null,hasError:o=!1,disabled:r=!1,...t})=>{let[i,L]=Lr.useState(!1),
|
|
411
|
+
`,dI=A=>{let C=reactHookForm.get(A,"isActive",!1),g=web.useSpring(C?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{style:g,children:jsxRuntime.jsx("svg",{width:"16",height:"10",viewBox:"0 0 16 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M1.58301 8.24927L7.99968 1.8326L14.4163 8.24927",stroke:"black",strokeWidth:"1.66756",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})})},pI=({items:A,onChange:C=()=>null,showIndicator:g=!1,indicatorColor:E="#E4767C",borderColor:B="",...I})=>{let Q=Array.isArray(A)?A:[A];return jsxRuntime.jsx(fI,{items:Q,expandIcon:dI,defaultActiveKey:["1"],onChange:o=>C(o),expandIconPosition:"end",showIndicator:g,borderColor:B,indicatorColor:E,...I})},cI=pI;var vI=({value:A=null,onChange:C,startRange:g=null,endRange:E=null,defaultValue:B=gA__default.default(),format:I=null,placeholder:Q=null,className:e=null,hasError:o=!1,disabled:r=!1,...t})=>{let[i,L]=Lr.useState(!1),a=x=>x?!!(g&&x<gA__default.default(g).endOf("day")||E&&x>gA__default.default(E).endOf("day")):!1,f=o?o3.colors.fail:"#5a5a5a";return jsxRuntime.jsx(antd.DatePicker,{className:e,placeholder:Q,format:I,disabled:r,disabledDate:a,onChange:(x,d)=>{C&&C(d,x);},onFocus:()=>{L(!0);},onBlur:()=>{L(!1);},value:A?gA__default.default(A):B,style:{width:"100%",height:"50px",boxSizing:"border-box",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:i?o3.colors.secondaryGreen:f,padding:"20px 23px",backgroundColor:"#fff",fontFamily:o3.typography.family.body,fontWeight:o3.typography.weight.normal,fontStyle:"normal",fontSize:"16px",outlineStyle:"none",boxShadow:i?`0 0 0 1px ${o3.colors.secondaryGreen}`:"none"},...t})},wI=vI;var RI=({style:A={width:50,borderWidth:2,borderColor:"#d4e2dd"},type:C="horizontal",...g})=>jsxRuntime.jsx(antd.Divider,{style:A,type:C,...g}),PI=RI;var W4=y__default.default(({className:A,...C})=>jsxRuntime.jsx(antd.Drawer,{rootClassName:A,classNames:{content:A},...C}))`
|
|
412
412
|
--border-radius: ${A=>A.placement==="bottom"?32:0}px;
|
|
413
413
|
|
|
414
414
|
&.ant-drawer-content {
|
|
@@ -554,7 +554,7 @@ Valid keys: `+JSON.stringify(Object.keys(n),null," "));var c2=R2(X,D,S,F,V+"."+
|
|
|
554
554
|
gap: 8px;
|
|
555
555
|
margin-top: 6px;
|
|
556
556
|
margin-bottom: ${({marginBottom:A})=>A}px;
|
|
557
|
-
`,be=({children:A=null,text:C="This field is required",includeIcon:g=!0,marginBottom:E=0})=>jsxRuntime.jsxs(Xe,{marginBottom:E,children:[g&&jsxRuntime.jsx(T.ErrorExclamation,{}),jsxRuntime.jsx(m.Body,{size:"xs",color:"red",children:A||C})]})
|
|
557
|
+
`,be=({children:A=null,text:C="This field is required",includeIcon:g=!0,marginBottom:E=0})=>jsxRuntime.jsxs(Xe,{marginBottom:E,children:[g&&jsxRuntime.jsx(T.ErrorExclamation,{}),jsxRuntime.jsx(m.Body,{size:"xs",color:"red",children:A||C})]}),$=be;var Y8=y__default.default.div`
|
|
558
558
|
display: flex;
|
|
559
559
|
flex-direction: column;
|
|
560
560
|
gap: 16px;
|
|
@@ -880,7 +880,7 @@ Valid keys: `+JSON.stringify(Object.keys(n),null," "));var c2=R2(X,D,S,F,V+"."+
|
|
|
880
880
|
}
|
|
881
881
|
|
|
882
882
|
${A0}
|
|
883
|
-
`;function r7({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(T.Caret,{direction:"up",color:g})})}var r0={overflow:"auto",position:"anchor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0,transitionTimeout:50},Eo=({children:A,cta:C,onItemClick:g=()=>null,onMenuChange:E=()=>null,className:B="",expandIconClassName:I="",menuProps:Q={menuButton:null},caretColor:e="#000",borderColor:o="#555555"})=>{let r=Lr.useRef(null),[t,i]=reactMenu.useMenuState({transition:!0}),L=reactMenu.useClick(t.state,i),
|
|
883
|
+
`;function r7({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(T.Caret,{direction:"up",color:g})})}var r0={overflow:"auto",position:"anchor",viewScroll:"auto",boundingBoxPadding:"20 0 50 0",gap:10,transition:!0,transitionTimeout:50},Eo=({children:A,cta:C,onItemClick:g=()=>null,onMenuChange:E=()=>null,className:B="",expandIconClassName:I="",menuProps:Q={menuButton:null},caretColor:e="#000",borderColor:o="#555555"})=>{let r=Lr.useRef(null),[t,i]=reactMenu.useMenuState({transition:!0}),L=reactMenu.useClick(t.state,i),a=t.state==="open"||t.state==="opening";return Lr.useEffect(()=>{E(t.state);},[t.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(g0,{className:`${B} ${a?"menu-open":"menu-closed"}`,ref:r,borderColor:o,...L,children:[jsxRuntime.jsx($8,{children:C}),jsxRuntime.jsx(r7,{className:I,isActive:a,color:e}),jsxRuntime.jsx(reactMenu.ControlledMenu,{...t,anchorRef:r,onClose:()=>i(!1),onItemClick:g,onMenuChange:E,...r0,...Q,children:A})]})})},Bo=({children:A,cta:C,onItemClick:g=()=>null,onMenuChange:E=()=>null,className:B="",menuProps:I={menuButton:null}})=>{let Q=Lr.useRef(null),[e,o]=reactMenu.useMenuState({transition:!0}),r=reactMenu.useClick(e.state,o),t=e.state==="open"||e.state==="opening";return Lr.useEffect(()=>{E(e.state);},[e.state]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(C0,{className:`${B} ${t?"menu-open":"menu-closed"}`,ref:Q,...r,children:[C,jsxRuntime.jsx(reactMenu.ControlledMenu,{...e,anchorRef:Q,onClose:()=>o(!1),onItemClick:g,onMenuChange:E,...r0,...I,children:A})]})})},Io=({label:A,className:C=""})=>jsxRuntime.jsx(reactMenu.MenuButton,{className:C,children:A}),Qo=({label:A,value:C,selected:g=!1,onClick:E=()=>null,disabled:B=!1,linkTo:I="",className:Q=""})=>jsxRuntime.jsx(reactMenu.MenuItem,{className:`${Q} ${g?"active":"inactive"}`,value:C,onClick:E,href:I,disabled:B,children:A}),eo=({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})}),oo=({children:A,className:C=""})=>jsxRuntime.jsx(reactMenu.MenuHeader,{className:C,children:A}),to=({className:A=""})=>jsxRuntime.jsx(reactMenu.MenuDivider,{className:A}),ro={Button:Io,Container:Eo,Wrapper:Bo,Search:eo,Divider:to,Header:oo,Item:Qo};var Lo=y__default.default(antd.Modal)`
|
|
884
884
|
border-radius: 20px;
|
|
885
885
|
|
|
886
886
|
@media ${h2.Medium} {
|
|
@@ -1320,13 +1320,13 @@ Valid keys: `+JSON.stringify(Object.keys(n),null," "));var c2=R2(X,D,S,F,V+"."+
|
|
|
1320
1320
|
border-color: #3f937c;
|
|
1321
1321
|
box-shadow: none;
|
|
1322
1322
|
}
|
|
1323
|
-
`;var St=({placeholder:A="",unit:C="",options:g=[],disabled:E=!1,mode:B=void 0,previewOnly:I=!1,onChange:Q=()=>null,style:e={},allowClear:o=!0,loading:r=!1,value:t=void 0,sort:i=!0,defaultValue:L=void 0,isError:
|
|
1323
|
+
`;var St=({placeholder:A="",unit:C="",options:g=[],disabled:E=!1,mode:B=void 0,previewOnly:I=!1,onChange:Q=()=>null,style:e={},allowClear:o=!0,loading:r=!1,value:t=void 0,sort:i=!0,defaultValue:L=void 0,isError:a=!1,...f})=>{let x=h=>{Q(h);},d=(h,M)=>M?.label?(M.label.toString().toLowerCase()??"").includes(h.toLowerCase()):!1,q=(h,M)=>{let p=h?.label?.toString().toLowerCase()??"",s=M?.label?.toString().toLowerCase()??"";return p.localeCompare(s)};return jsxRuntime.jsx(F0,{allowClear:o,loading:r,mode:B,showSearch:!0,onChange:x,placeholder:A,options:g,disabled:E||I,value:t,defaultValue:g.find(h=>h.value===L),style:{width:C?"auto":"100%",...e},filterOption:d,filterSort:i?q:void 0,isError:!!a,...f})},U1=St;var Ft=({startTime:A="00:00",endTime:C="24:00",interval:g=30,defaultValue:E="",onChange:B=()=>null,...I})=>{let e=Lr.useCallback(()=>{let t=luxon.DateTime.fromFormat(C,"HH:mm"),i=luxon.Duration.fromObject({minutes:g}),L=[],a=luxon.DateTime.fromFormat(A,"hh:mm");for(;a<=t;)L.push({label:a.toFormat("h:mm a"),value:{hour:a.toFormat("HH"),min:a.toFormat("mm"),raw:a.toFormat("HH:mm"),formatted:a.toFormat("h:mm a")}}),a=a.plus(i);return L},[A,C,g,E])(),o=e.map(t=>({label:t.label,value:t.value.raw})),r=t=>{let i=e.find(L=>L.value.raw===t);B(i);};return jsxRuntime.jsx(U1,{options:o,defaultValue:E||o[0].value,onChange:r,showSearch:!1,sort:!1,allowClear:!1,style:{maxWidth:"15rem"},...I})},l7=Ft;var Dt=({defaultState:A=!1,name:C,label:g={active:"YES",inactive:"NO"},handleEvent:E=null,value:B,disabled:I=!1,loading:Q=!1})=>{let e=reactHookForm.useFormContext(),[o,r]=Lr.useState(A);Lr.useEffect(()=>{e&&A&&e.setValue(C,B),r(A);},[A]);let t=i=>{I||(e&&e.setValue(C,i?B:null),E&&E(i),r(i));};return jsxRuntime.jsx(antd.Switch,{defaultChecked:A,checkedChildren:g.active,unCheckedChildren:g.inactive,checked:o,loading:Q,disabled:I,onChange:t})},f7=Dt;var L2=NE(oC(),1);var tC=[],h3="";function R7({previousConformedValue:A=h3,previousPlaceholder:C=h3,currentCaretPosition:g=0,conformedValue:E,rawValue:B,placeholderChar:I,placeholder:Q,indexesOfPipedChars:e=tC,caretTrapIndexes:o=tC}){if(g===0||!B.length)return 0;let r=B.length,t=A.length,i=Q.length,L=E.length,a=r-t,f=a>0,x=t===0;if(a>1&&!f&&!x)return g;let q=f&&(A===E||E===Q),h=0,M,p;if(q)h=g-a;else {let s=E.toLowerCase(),U=B.toLowerCase().substr(0,g).split(h3).filter(V=>s.indexOf(V)!==-1);p=U[U.length-1];let N=C.substr(0,U.length).split(h3).filter(V=>V!==I).length,A2=Q.substr(0,U.length).split(h3).filter(V=>V!==I).length!==N,w2=C[U.length-1]!==void 0&&Q[U.length-2]!==void 0&&C[U.length-1]!==I&&C[U.length-1]!==Q[U.length-1]&&C[U.length-1]===Q[U.length-2];!f&&(A2||w2)&&N>0&&Q.indexOf(p)>-1&&B[g]!==void 0&&(M=!0,p=B[g]);let l=e.map(V=>s[V]).filter(V=>V===p).length,S=U.filter(V=>V===p).length,X=Q.substr(0,Q.indexOf(I)).split(h3).filter((V,b)=>V===p&&B[b]!==V).length+S+l+(M?1:0),J=0;for(let V=0;V<L;V++){let b=s[V];if(h=V+1,b===p&&J++,J>=X)break}}if(f){let s=h;for(let c=h;c<=i;c++)if(Q[c]===I&&(s=c),Q[c]===I||o.indexOf(c)!==-1||c===i)return s}else if(M){for(let s=h-1;s>=0;s--)if(E[s]===p||o.indexOf(s)!==-1||s===0)return s}else for(let s=h;s>=0;s--)if(Q[s-1]===I||o.indexOf(s)!==-1||s===0)return s}var v3="_",G3="function";var Ir=[];function N3(A=Ir,C=v3){if(!P7(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.
|
|
1324
1324
|
|
|
1325
1325
|
The placeholder character that was received is: ${JSON.stringify(C)}
|
|
1326
1326
|
|
|
1327
|
-
The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instanceof RegExp?C:g).join("")}function P7(A){return Array.isArray&&Array.isArray(A)||A instanceof Array}function q7(A){return typeof A=="string"||A instanceof String}function rC(A){return typeof A=="number"&&A.length===void 0&&!isNaN(A)}function _3(A){return typeof A>"u"||A===null}var Qr="[]";function ZA(A){let C=[],g;for(;g=A.indexOf(Qr),g!==-1;)C.push(g),A.splice(g,1);return {maskWithoutCaretTraps:A,indexes:C}}var er=[],A3="";function x7(A=A3,C=er,g={}){if(!P7(C))if(typeof C===G3)C=C(A,g),C=ZA(C).maskWithoutCaretTraps;else throw new Error("Text-mask:conformToMask; The mask property must be an array.");let{guide:E=!0,previousConformedValue:B=A3,placeholderChar:I=v3,placeholder:Q=N3(C,I),currentCaretPosition:e,keepCharPositions:o}=g,r=E===!1&&B!==void 0,t=A.length,i=B.length,L=Q.length,
|
|
1327
|
+
The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instanceof RegExp?C:g).join("")}function P7(A){return Array.isArray&&Array.isArray(A)||A instanceof Array}function q7(A){return typeof A=="string"||A instanceof String}function rC(A){return typeof A=="number"&&A.length===void 0&&!isNaN(A)}function _3(A){return typeof A>"u"||A===null}var Qr="[]";function ZA(A){let C=[],g;for(;g=A.indexOf(Qr),g!==-1;)C.push(g),A.splice(g,1);return {maskWithoutCaretTraps:A,indexes:C}}var er=[],A3="";function x7(A=A3,C=er,g={}){if(!P7(C))if(typeof C===G3)C=C(A,g),C=ZA(C).maskWithoutCaretTraps;else throw new Error("Text-mask:conformToMask; The mask property must be an array.");let{guide:E=!0,previousConformedValue:B=A3,placeholderChar:I=v3,placeholder:Q=N3(C,I),currentCaretPosition:e,keepCharPositions:o}=g,r=E===!1&&B!==void 0,t=A.length,i=B.length,L=Q.length,a=C.length,f=t-i,x=f>0,d=e+(x?-f:0),q=d+Math.abs(f);if(o===!0&&!x){let s=A3;for(let c=d;c<q;c++)Q[c]===I&&(s+=I);A=A.slice(0,d)+s+A.slice(d,t);}let h=A.split(A3).map((s,c)=>({char:s,isNew:c>=d&&c<q}));for(let s=t-1;s>=0;s--){let{char:c}=h[s];if(c!==I){let u=s>=d&&i===a;c===Q[u?s-f:s]&&h.splice(s,1);}}let M=A3,p=!1;A:for(let s=0;s<L;s++){let c=Q[s];if(c===I){if(h.length>0)for(;h.length>0;){let{char:u,isNew:U}=h.shift();if(u===I&&r!==!0){M+=I;continue A}else if(C[s].test(u)){if(o!==!0||U===!1||B===A3||E===!1||!x)M+=u;else {let N=h.length,F=null;for(let A2=0;A2<N;A2++){let w2=h[A2];if(w2.char!==I&&w2.isNew===!1)break;if(w2.char===I){F=A2;break}}F!==null?(M+=u,h.splice(F,1)):s--;}continue A}else p=!0;}r===!1&&(M+=Q.substr(s,L));break}else M+=c;}if(r&&x===!1){let s=null;for(let c=0;c<M.length;c++)Q[c]===I&&(s=c);s!==null?M=M.substr(0,s+1):M=A3;}return {conformedValue:M,meta:{someCharsRejected:p}}}var nC="",iC="none",or="object",tr=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),rr=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout;function U7(A){let C={previousConformedValue:void 0,previousPlaceholder:void 0};return {state:C,update(g,{inputElement:E,mask:B,guide:I,pipe:Q,placeholderChar:e=v3,keepCharPositions:o=!1,showMask:r=!1}=A){if(typeof g>"u"&&(g=E.value),g===C.previousConformedValue)return;typeof B===or&&B.pipe!==void 0&&B.mask!==void 0&&(Q=B.pipe,B=B.mask);let t,i;if(B instanceof Array&&(t=N3(B,e)),B===!1)return;let L=nr(g),{selectionEnd:a}=E,{previousConformedValue:f,previousPlaceholder:x}=C,d;if(typeof B===G3){if(i=B(L,{currentCaretPosition:a,previousConformedValue:f,placeholderChar:e}),i===!1)return;let{maskWithoutCaretTraps:F,indexes:A2}=ZA(i);i=F,d=A2,t=N3(i,e);}else i=B;let q={previousConformedValue:f,guide:I,placeholderChar:e,pipe:Q,placeholder:t,currentCaretPosition:a,keepCharPositions:o},{conformedValue:h}=x7(L,i,q),M=typeof Q===G3,p={};M&&(p=Q(h,{rawValue:L,...q}),p===!1?p={value:f,rejected:!0}:q7(p)&&(p={value:p}));let s=M?p.value:h,c=R7({previousConformedValue:f,previousPlaceholder:x,conformedValue:s,placeholder:t,rawValue:L,currentCaretPosition:a,placeholderChar:e,indexesOfPipedChars:p.indexesOfPipedChars,caretTrapIndexes:d}),N=s===t&&c===0?r?t:nC:s;C.previousConformedValue=N,C.previousPlaceholder=t,E.value!==N&&(E.value=N,ir(E,c));}}}function ir(A,C){document.activeElement===A&&(tr?rr(()=>A.setSelectionRange(C,C,iC),0):A.setSelectionRange(C,C,iC));}function nr(A){if(q7(A))return A;if(rC(A))return String(A);if(A==null)return nC;throw new Error(`The 'value' provided to Text Mask needs to be a string or a number. The value received was:
|
|
1328
1328
|
|
|
1329
|
-
${JSON.stringify(A)}`)}var C3=class extends Lr__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=U7({inputElement:this.inputElement,...C}),this.textMaskInputElement.update(g);}componentDidMount(){this.initTextMask();}componentDidUpdate(C){let{value:g,pipe:E,mask:B,guide:I,placeholderChar:Q,showMask:e}=this.props,o={guide:I,placeholderChar:Q,showMask:e},r=typeof E=="function"&&typeof C.pipe=="function"?E.toString()!==C.pipe.toString():_3(E)&&!_3(C.pipe)||!_3(E)&&_3(C.pipe),t=B.toString()!==C.mask.toString(),i=Object.keys(o).some(
|
|
1329
|
+
${JSON.stringify(A)}`)}var C3=class extends Lr__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=U7({inputElement:this.inputElement,...C}),this.textMaskInputElement.update(g);}componentDidMount(){this.initTextMask();}componentDidUpdate(C){let{value:g,pipe:E,mask:B,guide:I,placeholderChar:Q,showMask:e}=this.props,o={guide:I,placeholderChar:Q,showMask:e},r=typeof E=="function"&&typeof C.pipe=="function"?E.toString()!==C.pipe.toString():_3(E)&&!_3(C.pipe)||!_3(E)&&_3(C.pipe),t=B.toString()!==C.mask.toString(),i=Object.keys(o).some(a=>o[a]!==C[a])||t||r;(g!==this.inputElement.value||i)&&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);}};C3.propTypes={mask:L2.default.oneOfType([L2.default.array,L2.default.func,L2.default.bool,L2.default.shape({mask:L2.default.oneOfType([L2.default.array,L2.default.func]),pipe:L2.default.func})]).isRequired,guide:L2.default.bool,value:L2.default.oneOfType([L2.default.string,L2.default.number]),pipe:L2.default.func,placeholderChar:L2.default.string,keepCharPositions:L2.default.bool,showMask:L2.default.bool};C3.defaultProps={render:(A,C)=>jsxRuntime.jsx("input",{ref:A,...C})};var {TextArea:fr}=antd.Input,LC=y__default.default(web.animated.div)`
|
|
1330
1330
|
position: absolute;
|
|
1331
1331
|
display: block;
|
|
1332
1332
|
width: 45px;
|
|
@@ -1439,7 +1439,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1439
1439
|
line-height: 130%;
|
|
1440
1440
|
letter-spacing: 0.009rem;
|
|
1441
1441
|
text-decoration-line: underline;
|
|
1442
|
-
`;var pr=({modalContent:A,modalLabel:C=void 0,modalButtonText:g="Go Back"})=>{let[E,B]=Lr.useState(!1);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(uC,{onClick:()=>B(!0),children:C?jsxRuntime.jsx(hC,{children:`(${C})`}):jsxRuntime.jsx(T.CircleExclamation,{})}),jsxRuntime.jsx(i7,{isOpen:E,onClose:()=>B(!1),footer:jsxRuntime.jsx(P2.Secondary,{onClick:()=>B(!1),children:g}),children:jsxRuntime.jsx("div",{style:{marginTop:"2rem"},children:A})})]})},vC=pr;var hr=({label:A=null,isLabelBold:C=!1,required:g=!1,details:E=null,helpContent:B=void 0,helpLabel:I=void 0})=>{if(!A)return null;let Q=typeof E=="string"?jsxRuntime.jsx(pC,{size:"lg",children:E}):E;return jsxRuntime.jsxs(cC,{children:[jsxRuntime.jsxs(dC,{className:"input-label",size:"lg",isLabelBold:C,children:[A,g&&jsxRuntime.jsx("span",{style:{color:"#DA4D54"},children:"*"}),B&&jsxRuntime.jsx(vC,{modalContent:B,modalLabel:I})]}),Q]})},Y=hr;var VC=(Q=>(Q.Phone="phone",Q.Currency="currency",Q.Email="email",Q.Zipcode="zipcode",Q.SSN="SSN",Q.Zip="SSN",Q))(VC||{});var mC=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 Rr=({name:A,label:C=null,details:g=null,type:E="text",formOptions:B={},previewOnly:I=!1,textArea:Q=!1,marginBottom:e=void 0,isLabelBold:o=!0,helpContent:r=void 0,helpLabel:t=void 0,format:i="",errorMessage:L="This field is required",...
|
|
1442
|
+
`;var pr=({modalContent:A,modalLabel:C=void 0,modalButtonText:g="Go Back"})=>{let[E,B]=Lr.useState(!1);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(uC,{onClick:()=>B(!0),children:C?jsxRuntime.jsx(hC,{children:`(${C})`}):jsxRuntime.jsx(T.CircleExclamation,{})}),jsxRuntime.jsx(i7,{isOpen:E,onClose:()=>B(!1),footer:jsxRuntime.jsx(P2.Secondary,{onClick:()=>B(!1),children:g}),children:jsxRuntime.jsx("div",{style:{marginTop:"2rem"},children:A})})]})},vC=pr;var hr=({label:A=null,isLabelBold:C=!1,required:g=!1,details:E=null,helpContent:B=void 0,helpLabel:I=void 0})=>{if(!A)return null;let Q=typeof E=="string"?jsxRuntime.jsx(pC,{size:"lg",children:E}):E;return jsxRuntime.jsxs(cC,{children:[jsxRuntime.jsxs(dC,{className:"input-label",size:"lg",isLabelBold:C,children:[A,g&&jsxRuntime.jsx("span",{style:{color:"#DA4D54"},children:"*"}),B&&jsxRuntime.jsx(vC,{modalContent:B,modalLabel:I})]}),Q]})},Y=hr;var VC=(Q=>(Q.Phone="phone",Q.Currency="currency",Q.Email="email",Q.Zipcode="zipcode",Q.SSN="SSN",Q.Zip="SSN",Q))(VC||{});var mC=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 Rr=({name:A,label:C=null,details:g=null,type:E="text",formOptions:B={},previewOnly:I=!1,textArea:Q=!1,marginBottom:e=void 0,isLabelBold:o=!0,helpContent:r=void 0,helpLabel:t=void 0,format:i="",errorMessage:L="This field is required",...a})=>{let{control:f,formState:{errors:x}}=reactHookForm.useFormContext(),d=!!x?.[A],q=x?.[A]?.message?.toString()||L,h=({field:M})=>Q?jsxRuntime.jsx(fC,{...M,marginBottom:e,error:d,disabled:I,...a}):i?jsxRuntime.jsx(aC,{...M,mask:mC(i),guide:!1,disabled:I,type:E,error:d,...a}):jsxRuntime.jsx(sC,{...M,disabled:I,type:E,error:d,...a});return jsxRuntime.jsxs("div",{style:{width:"100%"},children:[jsxRuntime.jsx(Y,{label:C,isLabelBold:o,required:!!B.required,details:g,helpLabel:t,helpContent:r}),jsxRuntime.jsxs(lC,{marginBottom:e,children:[jsxRuntime.jsx(reactHookForm.Controller,{render:h,name:A,rules:B,control:f}),jsxRuntime.jsx(LC,{children:d&&jsxRuntime.jsx(T.ErrorExclamation,{})})]}),d&&jsxRuntime.jsx($,{text:q,includeIcon:!1})]})},m3=Rr;y__default.default.div`
|
|
1443
1443
|
margin-bottom: 32px;
|
|
1444
1444
|
`;var PC=y__default.default.div`
|
|
1445
1445
|
display: ${A=>A.isColumns?"grid":"flex"};
|
|
@@ -1646,7 +1646,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1646
1646
|
height: 100%;
|
|
1647
1647
|
border-radius: 4px;
|
|
1648
1648
|
cursor: pointer;
|
|
1649
|
-
`;function Ur(){if(typeof window<"u"){let{innerWidth:A,innerHeight:C}=window;return {innerWidth:A,innerHeight:C}}else return {innerWidth:0,innerHeight:0}}var WA={MOBILE:768,TABLET:1024},SC=()=>{let A=Ur();return {isMobile:A.innerWidth<=WA.MOBILE,isTablet:A.innerWidth>WA.MOBILE&&A.innerWidth<=WA.TABLET,isLaptop:A.innerWidth>WA.TABLET,innerWidth:A.innerWidth,windowSize:A}},Hr=()=>{let[A,C]=Lr.useState(SC()),g=Lr.useCallback(()=>{let E=SC();C(E);},[]);return Lr.useEffect(()=>{if(typeof window<"u")return window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[]),A},XC=Hr;var GA=({option:A,name:C,formOptions:g={},previewOnly:E=!1,errorMessage:B=void 0,inGroup:I=!1,...Q})=>{let{register:e,formState:{errors:o}}=reactHookForm.useFormContext(),r=!!reactHookForm.get(o,C),t=reactHookForm.get(o,C)?.message?.toString()||B;return jsxRuntime.jsxs(qC,{children:[jsxRuntime.jsxs(antd.Flex,{gap:".5rem",children:[jsxRuntime.jsx(xC,{type:"checkbox",value:A.value,hasError:r,previewOnly:E,disabled:!!Q?.disabled||E,...e(C,g),...Q}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(m.Body,{children:A.label})})]}),r&&!I&&jsxRuntime.jsx(
|
|
1649
|
+
`;function Ur(){if(typeof window<"u"){let{innerWidth:A,innerHeight:C}=window;return {innerWidth:A,innerHeight:C}}else return {innerWidth:0,innerHeight:0}}var WA={MOBILE:768,TABLET:1024},SC=()=>{let A=Ur();return {isMobile:A.innerWidth<=WA.MOBILE,isTablet:A.innerWidth>WA.MOBILE&&A.innerWidth<=WA.TABLET,isLaptop:A.innerWidth>WA.TABLET,innerWidth:A.innerWidth,windowSize:A}},Hr=()=>{let[A,C]=Lr.useState(SC()),g=Lr.useCallback(()=>{let E=SC();C(E);},[]);return Lr.useEffect(()=>{if(typeof window<"u")return window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[]),A},XC=Hr;var GA=({option:A,name:C,formOptions:g={},previewOnly:E=!1,errorMessage:B=void 0,inGroup:I=!1,...Q})=>{let{register:e,formState:{errors:o}}=reactHookForm.useFormContext(),r=!!reactHookForm.get(o,C),t=reactHookForm.get(o,C)?.message?.toString()||B;return jsxRuntime.jsxs(qC,{children:[jsxRuntime.jsxs(antd.Flex,{gap:".5rem",children:[jsxRuntime.jsx(xC,{type:"checkbox",value:A.value,hasError:r,previewOnly:E,disabled:!!Q?.disabled||E,...e(C,g),...Q}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(m.Body,{children:A.label})})]}),r&&!I&&jsxRuntime.jsx($,{text:t,includeIcon:!1})]})},kC=({name:A,label:C=void 0,details:g="",options:E=[],inline:B=!1,previewOnly:I=!1,other:Q={},errorMessage:e=void 0,formOptions:o={},...r})=>{let{formState:{errors:t}}=reactHookForm.useFormContext(),i=!!t?.[A];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Y,{label:C,isLabelBold:!0,required:!!o.required,details:g}),jsxRuntime.jsxs(PC,{inline:B,isColumns:E.length>5,children:[E.map(L=>jsxRuntime.jsx(GA,{name:A,inGroup:!0,option:L,hasError:i,formOptions:o,previewOnly:I,...r},`${A}-${L.value}`)),Q.label&&jsxRuntime.jsxs(UC,{children:[jsxRuntime.jsx(GA,{option:{label:Q.label,value:"other"},name:A,inGroup:!0,formOptions:o,previewOnly:I,...r},A),jsxRuntime.jsx(m3,{name:`${A}_other`,placeholder:"Other",...r,previewOnly:I})]})]}),i&&jsxRuntime.jsx($,{text:e,includeIcon:!1})]})},br=({option:A,name:C,previewOnly:g=!1,errorMessage:E=void 0,inGroup:B=!1,checked:I,field:Q,hasError:e=!1,...o})=>{let{isMobile:r}=XC(),[t,i]=Lr.useState(!1);return jsxRuntime.jsxs(U5.Illustration,{selected:I,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),active:I||t&&!r,illustration:A.illustration,children:[jsxRuntime.jsx(MC,{type:"checkbox",value:A.value,disabled:!!o?.disabled||g,onChange:L=>{if(!I){Q.onChange([...Q.value,L.target.value]);return}Q.onChange((Q.value??[]).filter(a=>a!==L.target.value));},...o}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(m.Body,{children:A.label})}),e&&!B&&jsxRuntime.jsx($,{text:E,includeIcon:!1})]})},FC=({name:A,label:C=void 0,details:g="",options:E=[],previewOnly:B=!1,errorMessage:I=void 0,formOptions:Q={},...e})=>{let{control:o,formState:{errors:r}}=reactHookForm.useFormContext(),t=!!r?.[A];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Y,{label:C,isLabelBold:!0,required:!!Q.required,details:g}),jsxRuntime.jsx(HC,{itemNumber:E.length,children:jsxRuntime.jsx(reactHookForm.Controller,{name:A,control:o,rules:{...Q},defaultValue:[],render:({field:i})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:E.map(L=>jsxRuntime.jsx(br,{name:A,inGroup:!0,field:i,option:L,checked:(i.value??[]).some(a=>a===L.value),hasError:t,previewOnly:B,...e},`${A}-${L.value}`))})})}),t&&jsxRuntime.jsx($,{text:I,includeIcon:!1})]})};var Jr=({formMethods:A=null,formOptions:C={},onSubmit:g,children:E,className:B=""})=>{let I={mode:"onBlur",...C},Q=reactHookForm.useForm(I),e=A||Q,o=r=>g(r);return jsxRuntime.jsx(reactHookForm.FormProvider,{...e,children:jsxRuntime.jsx("form",{className:B,onSubmit:e.handleSubmit(o),children:E})})},zC=Jr;y__default.default(web.animated.div)`
|
|
1650
1650
|
position: absolute;
|
|
1651
1651
|
display: block;
|
|
1652
1652
|
width: 45px;
|
|
@@ -1730,7 +1730,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1730
1730
|
align-items: center;
|
|
1731
1731
|
justify-content: center;
|
|
1732
1732
|
padding-right: 1rem;
|
|
1733
|
-
`;var NC=({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 _C=({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 ei=({previewOnly:A=!1,format:C,onAccept:g=void 0,...E})=>{let[B,I]=Lr.useState(!1),Q=E?.status==="error",o=["SSN"].some(t=>t===C),r=(()=>{switch(C){case"phone":return "(000) 000-0000";case"email":return /^\S*@?\S*$/;case"SSN":return [{mask:B?"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(ZC,{children:[jsxRuntime.jsx(YC,{format:C,mask:r,unmask:!0,onAccept:g,disabled:A,error:Q,...E}),Q&&!o&&!!E?.suffix&&jsxRuntime.jsx(GC,{children:E.suffix}),o&&jsxRuntime.jsx(WC,{onClick:()=>I(!B),children:B?jsxRuntime.jsx(_C,{}):jsxRuntime.jsx(NC,{})})]})},$C=ei;var M1={Area:OC,Text:DC,Number:jC,Password:TC,Mask:$C};var Ag=A=>{let C;switch(A){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:/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/,message:"Invalid email address"};break;default:C=A;}return C};var ii=({name:A,label:C=null,details:g=null,formOptions:E={},pattern:B=void 0,format:I=void 0,textArea:Q=!1,password:e=!1,isLabelBold:o=!0,errorMessage:r="This field is required",disableErrorState:t=!1,...i})=>{let{control:L,formState:{errors:
|
|
1733
|
+
`;var NC=({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 _C=({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 ei=({previewOnly:A=!1,format:C,onAccept:g=void 0,...E})=>{let[B,I]=Lr.useState(!1),Q=E?.status==="error",o=["SSN"].some(t=>t===C),r=(()=>{switch(C){case"phone":return "(000) 000-0000";case"email":return /^\S*@?\S*$/;case"SSN":return [{mask:B?"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(ZC,{children:[jsxRuntime.jsx(YC,{format:C,mask:r,unmask:!0,onAccept:g,disabled:A,error:Q,...E}),Q&&!o&&!!E?.suffix&&jsxRuntime.jsx(GC,{children:E.suffix}),o&&jsxRuntime.jsx(WC,{onClick:()=>I(!B),children:B?jsxRuntime.jsx(_C,{}):jsxRuntime.jsx(NC,{})})]})},$C=ei;var M1={Area:OC,Text:DC,Number:jC,Password:TC,Mask:$C};var Ag=A=>{let C;switch(A){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:/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/,message:"Invalid email address"};break;default:C=A;}return C};var ii=({name:A,label:C=null,details:g=null,formOptions:E={},pattern:B=void 0,format:I=void 0,textArea:Q=!1,password:e=!1,isLabelBold:o=!0,errorMessage:r="This field is required",disableErrorState:t=!1,...i})=>{let{control:L,formState:{errors:a}}=reactHookForm.useFormContext(),f=t?!1:!!reactHookForm.get(a,A),x=reactHookForm.get(a,A)?.message?.toString()||r,d=({field:h})=>Q?jsxRuntime.jsx(M1.Area,{status:f?"error":"",suffix:f?jsxRuntime.jsx(T.ErrorExclamation,{}):null,...i,...h}):I?jsxRuntime.jsx(M1.Mask,{name:h.name,onBlur:h.onBlur,format:I,onAccept:M=>h.onChange(M),ref:h.ref,value:h.value,status:f?"error":"",suffix:f?jsxRuntime.jsx(T.ErrorExclamation,{}):null,...i}):e?jsxRuntime.jsx(M1.Password,{status:f?"error":"",suffix:f?jsxRuntime.jsx(T.ErrorExclamation,{}):null,...i,...h}):jsxRuntime.jsx(M1.Text,{status:f?"error":"",suffix:f?jsxRuntime.jsx(T.ErrorExclamation,{}):null,...i,...h}),q=B?{pattern:Ag(B)}:{};return jsxRuntime.jsxs("div",{style:{width:"100%"},children:[jsxRuntime.jsx(Y,{label:C,isLabelBold:o,required:!!E.required,details:g}),jsxRuntime.jsx(yC,{children:jsxRuntime.jsx(reactHookForm.Controller,{render:d,name:A,rules:{...q,...E},control:L})}),f&&jsxRuntime.jsx($,{text:x,includeIcon:!1})]})},$A=ii;var ai=({label:A=null,isLabelBold:C=!0,name:g,disabled:E=!1,defaultValue:B=void 0,formOptions:I={},errorMessage:Q="This field is required.",options:e={},style:o={},...r})=>{let{control:t,formState:{errors:i}}=reactHookForm.useFormContext(),L=!!reactHookForm.get(i,g),a=reactHookForm.get(i,g)?.message?.toString()||Q;return jsxRuntime.jsxs("div",{style:o,children:[jsxRuntime.jsx(Y,{label:A,isLabelBold:C,required:!!I.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:f})=>jsxRuntime.jsx(M1.Number,{disabled:E,status:L?"error":"",suffix:L?jsxRuntime.jsx(T.ErrorExclamation,{}):null,...r,...f}),name:g,defaultValue:B,rules:I,control:t,...e}),L&&jsxRuntime.jsx($,{text:a,includeIcon:!1})]})},Eg=ai;var Bg=y__default.default.div`
|
|
1734
1734
|
position: relative;
|
|
1735
1735
|
margin-bottom: 24px;
|
|
1736
1736
|
|
|
@@ -1793,7 +1793,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1793
1793
|
padding: 12px 6px;
|
|
1794
1794
|
height: 57px;
|
|
1795
1795
|
border-bottom: 1px solid #000;
|
|
1796
|
-
`;var pi=({label:A,name:C,formOptions:g={},description:E="",previewOnly:B=!1,errorMessage:I=void 0,signatureType:Q=void 0,date:e=void 0,isAdvocate:o=!1,showIcon:r=!0,formStyle:t="MINIMAL",...i})=>{let{control:L,formState:{errors:
|
|
1796
|
+
`;var pi=({label:A,name:C,formOptions:g={},description:E="",previewOnly:B=!1,errorMessage:I=void 0,signatureType:Q=void 0,date:e=void 0,isAdvocate:o=!1,showIcon:r=!0,formStyle:t="MINIMAL",...i})=>{let{control:L,formState:{errors:a}}=reactHookForm.useFormContext(),f=Q==="advocate"?"Advocate":"Client",x=o&&Q==="advocate"||!o&&Q==="client",d=({field:M})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(Ig,{previewOnly:B,children:[r&&jsxRuntime.jsx(mA,{}),jsxRuntime.jsx(rg,{...M,...i})]}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(m.Body,{children:A})})]}),q=e?new Date(e).toLocaleDateString():"",h=({field:M})=>jsxRuntime.jsx(Qg,{children:jsxRuntime.jsxs(eg,{children:[jsxRuntime.jsxs(og,{children:[jsxRuntime.jsx(ig,{...M,...i,placeholder:`${f} Signature`,disabled:B||!x,hasError:!!a[C]}),jsxRuntime.jsx(X7,{children:`${f}`}),a[C]&&jsxRuntime.jsx($,{text:I,includeIcon:!1})]}),jsxRuntime.jsxs(tg,{children:[jsxRuntime.jsx(ng,{children:q}),jsxRuntime.jsx(X7,{children:"Date"})]})]})});return jsxRuntime.jsxs(Bg,{previewOnly:B,children:[A&&jsxRuntime.jsx(Y,{label:i?`${f} ${A}`:A,required:!0,isLabelBold:!0}),E,jsxRuntime.jsx(reactHookForm.Controller,{render:t==="MINIMAL"?d:h,name:C,rules:g,control:L})]})},Lg=pi;y__default.default.div`
|
|
1797
1797
|
margin-bottom: 32px;
|
|
1798
1798
|
`;var sg=y__default.default.div`
|
|
1799
1799
|
display: ${A=>A.isColumns?"grid":"flex"};
|
|
@@ -2034,7 +2034,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2034
2034
|
display: flex;
|
|
2035
2035
|
flex-flow: column;
|
|
2036
2036
|
gap: var(--spacing-m, 1rem);
|
|
2037
|
-
`;var A5=({option:A,name:C,inline:g,previewOnly:E=!1,hasError:B=!1,formOptions:I={},...Q})=>{let{register:e}=reactHookForm.useFormContext();return jsxRuntime.jsxs(ag,{inline:g,children:[jsxRuntime.jsx(lg,{type:"radio",...e(C,I),value:A.value,previewOnly:E,disabled:E,hasError:B,...Q}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(m.Body,{children:A.label})})]})},Pg=({name:A,label:C,details:g="",options:E=[],inline:B=!1,allowOther:I=!1,previewOnly:Q=!1,formOptions:e={},errorMessage:o=void 0,...r})=>{let{formState:{errors:t}}=reactHookForm.useFormContext(),i=!!t?.[A];return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Y,{label:C,required:!!e.required,isLabelBold:!0,details:g}),jsxRuntime.jsxs(sg,{inline:B,isColumns:E.length>5,children:[E.map(L=>jsxRuntime.jsx(A5,{option:L,name:A,inline:B,previewOnly:Q,formOptions:e,...r,hasError:i},`${A}-${L.value}`)),I&&jsxRuntime.jsxs(fg,{children:[jsxRuntime.jsx(A5,{option:{label:"Other",value:"other"},name:A,inline:B,...r},A),jsxRuntime.jsx(m3,{name:`${A}_other`,...r})]})]}),i&&jsxRuntime.jsx(
|
|
2037
|
+
`;var A5=({option:A,name:C,inline:g,previewOnly:E=!1,hasError:B=!1,formOptions:I={},...Q})=>{let{register:e}=reactHookForm.useFormContext();return jsxRuntime.jsxs(ag,{inline:g,children:[jsxRuntime.jsx(lg,{type:"radio",...e(C,I),value:A.value,previewOnly:E,disabled:E,hasError:B,...Q}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(m.Body,{children:A.label})})]})},Pg=({name:A,label:C,details:g="",options:E=[],inline:B=!1,allowOther:I=!1,previewOnly:Q=!1,formOptions:e={},errorMessage:o=void 0,...r})=>{let{formState:{errors:t}}=reactHookForm.useFormContext(),i=!!t?.[A];return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Y,{label:C,required:!!e.required,isLabelBold:!0,details:g}),jsxRuntime.jsxs(sg,{inline:B,isColumns:E.length>5,children:[E.map(L=>jsxRuntime.jsx(A5,{option:L,name:A,inline:B,previewOnly:Q,formOptions:e,...r,hasError:i},`${A}-${L.value}`)),I&&jsxRuntime.jsxs(fg,{children:[jsxRuntime.jsx(A5,{option:{label:"Other",value:"other"},name:A,inline:B,...r},A),jsxRuntime.jsx(m3,{name:`${A}_other`,...r})]})]}),i&&jsxRuntime.jsx($,{text:o,includeIcon:!1})]})},vi=({option:A,name:C,formOptions:g})=>{let{register:E,watch:B,formState:I}=reactHookForm.useFormContext(),Q=B(C)===A.value;return jsxRuntime.jsxs(dg,{selected:Q,hasError:!!I.errors[C],children:[jsxRuntime.jsxs(pg,{children:[jsxRuntime.jsxs(ug,{selected:Q,children:[A.icon||null,A.label]}),jsxRuntime.jsx(cg,{type:"radio",value:A.value,...E(C,g)})]}),jsxRuntime.jsx(hg,{selected:Q,children:A.description})]})},qg=({name:A,label:C=null,className:g="",options:E,formOptions:B={},id:I=""})=>jsxRuntime.jsxs(b7,{className:g,id:I,children:[C&&jsxRuntime.jsx(k7,{size:"lg",children:C}),jsxRuntime.jsx("div",{children:E.map(Q=>jsxRuntime.jsx(vi,{option:Q,name:A,formOptions:B},`${Q.label}-${Q.value}`))})]}),wi=({option:A,name:C,formOptions:g,onClick:E=void 0})=>{let{register:B,watch:I}=reactHookForm.useFormContext(),Q=I(C)===A.value,[e,o]=Lr.useState(!1),r=R5[A.icon];return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsx(wg,{type:"radio",onClick:t=>E?E(t.currentTarget.value):null,value:A.value,...B(C,g),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1)}),jsxRuntime.jsxs(vg,{selected:Q,children:[jsxRuntime.jsx(r,{active:Q||e}),jsxRuntime.jsxs("div",{style:{display:"flex",gap:4,flexDirection:"column"},children:[jsxRuntime.jsx(Vg,{children:A.label}),A?.description&&jsxRuntime.jsx(mg,{children:A.description})]})]})]})},xg=({name:A,label:C=null,className:g="",options:E,onClick:B=void 0,formOptions:I={}})=>jsxRuntime.jsxs(b7,{className:g,children:[C&&jsxRuntime.jsx(k7,{size:"lg",children:C}),jsxRuntime.jsx(Rg,{children:E.map(Q=>jsxRuntime.jsx(wi,{option:Q,name:A,onClick:B,formOptions:I},`${Q.label}-${Q.value}`))})]});var Ug=y__default.default.div`
|
|
2038
2038
|
position: relative;
|
|
2039
2039
|
margin-bottom: 24px;
|
|
2040
2040
|
z-index: 40;
|
|
@@ -2104,7 +2104,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2104
2104
|
left: 0;
|
|
2105
2105
|
`;y__default.default(m.Body)`
|
|
2106
2106
|
margin-bottom: 24px;
|
|
2107
|
-
`;var qi=({label:A="",name:C,details:g="",placeholder:E="",options:B=[],allowInput:I=!1,previewOnly:Q=!1,isLabelBold:e=!0,formOptions:o={},onChange:r=()=>null,containerStyle:t={}})=>{let i=Lr.useRef(),L=reactHookForm.useFormContext(),{errors:
|
|
2107
|
+
`;var qi=({label:A="",name:C,details:g="",placeholder:E="",options:B=[],allowInput:I=!1,previewOnly:Q=!1,isLabelBold:e=!0,formOptions:o={},onChange:r=()=>null,containerStyle:t={}})=>{let i=Lr.useRef(),L=reactHookForm.useFormContext(),{errors:a}=L.formState;L.register(C,o);let f=!!reactHookForm.get(a,C),x=reactHookForm.get(a,C)?.message?.toString(),[d,q]=Lr.useState(!1),[h,M]=Lr.useState(""),[p,s]=Lr.useState(B),c=web.useSpring(d?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});Lr.useEffect(()=>{let F=A2=>{d&&i.current&&!i.current.contains(A2.target)&&q(!1);};return document.addEventListener("mousedown",A2=>F(A2)),()=>{document.removeEventListener("mousedown",A2=>F(A2));}},[d]);let u=B.find(F=>F.value===L.getValues(C))?.label,U=F=>{M(""),L.setValue(C,F.value),L.trigger(C),r&&r(F),q(!1);};Lr.useEffect(()=>{if(q(!!h),h){let F=B.filter(A2=>String(A2.value).toLowerCase().match(h.toLowerCase()));s(F),L.setValue(C,h);}else s(B);},[h,B.length]);let N=F=>{F.code==="Enter"&&F.preventDefault();};return jsxRuntime.jsxs(Ug,{style:t,children:[jsxRuntime.jsx(Y,{label:A,isLabelBold:e,required:!!o.required,details:g}),jsxRuntime.jsx(Hg,{onClick:()=>q(!d),previewOnly:Q,children:Q?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("i",{style:{color:"#7F7F7F"},children:"--Select--"}),jsxRuntime.jsx(T.Caret,{direction:"down",color:"#7F7F7F"})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[u||jsxRuntime.jsx("i",{children:E}),I&&jsxRuntime.jsx(bg,{onKeyDown:N,value:h,onChange:F=>M(F.target.value),type:"text"}),jsxRuntime.jsx(T.Caret,{direction:d?"up":"down"}),jsxRuntime.jsx(Mg,{style:c,ref:i,children:p.map(F=>{let{label:A2}=F,w2=F.label===u;return jsxRuntime.jsxs(Sg,{onClick:()=>U(F),children:[jsxRuntime.jsx(m.Body,{size:"lg",children:A2}),jsxRuntime.jsx(Xg,{isCurrent:w2,children:jsxRuntime.jsx(T.Check,{color:"#fff"})})]},F.value)})})]})}),f&&jsxRuntime.jsx($,{text:x,includeIcon:!1})]})},zg=qi;var Kg=y__default.default.div`
|
|
2108
2108
|
background: #eeeeee;
|
|
2109
2109
|
border-radius: 10px;
|
|
2110
2110
|
border: 1px solid #ccc;
|
|
@@ -2117,7 +2117,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2117
2117
|
display: flex;
|
|
2118
2118
|
align-items: center;
|
|
2119
2119
|
gap: 1rem;
|
|
2120
|
-
`;var Ui=({label:A="",name:C,details:g="",placeholder:E="",unit:B="",options:I=[],disabled:Q=!1,mode:e=void 0,previewOnly:o=!1,isLabelBold:r=!0,formOptions:t={},onChange:i=()=>null,showPreview:L=!1,containerStyle:
|
|
2120
|
+
`;var Ui=({label:A="",name:C,details:g="",placeholder:E="",unit:B="",options:I=[],disabled:Q=!1,mode:e=void 0,previewOnly:o=!1,isLabelBold:r=!0,formOptions:t={},onChange:i=()=>null,showPreview:L=!1,containerStyle:a={},style:f={},allowClear:x=!0,loading:d=!1,value:q=void 0,errorMessage:h="This field is required",defaultValue:M=void 0,...p})=>{let s=reactHookForm.useFormContext();s.register(C,t);let{control:c,formState:{errors:u},getValues:U}=reactHookForm.useFormContext(),N=!!u?.[C],F=h||u?.[C]?.message?.toString(),w2=U()[C],n=S=>{s.setValue(C,S,{shouldDirty:!0,shouldTouch:!0}),s.trigger(C),i(S);},l=({field:S})=>jsxRuntime.jsx(U1,{allowClear:x,loading:d,mode:e,showSearch:!0,onChange:n,placeholder:E,options:I,isError:N,disabled:Q||o,value:S.value??q,defaultValue:M,style:f,...p});return jsxRuntime.jsxs("div",{style:a,children:[jsxRuntime.jsx(Y,{label:A,isLabelBold:r,required:!!t.required,details:g}),jsxRuntime.jsxs(Og,{children:[jsxRuntime.jsx(reactHookForm.Controller,{control:c,name:C,rules:t,render:l}),B&&jsxRuntime.jsx(m.Body,{size:"lg",children:B})]}),o&&L&&jsxRuntime.jsx(Kg,{children:I.map(S=>jsxRuntime.jsx(yg,{selected:S.value===w2,children:S.label}))}),N&&jsxRuntime.jsx($,{text:F,includeIcon:!1})]})},Tg=Ui;var Xi=({label:A="Submit",isSubmitting:C=!1,hideWhenInvalid:g=!1,...E})=>{let B=reactHookForm.useFormContext(),{isValid:I}=B.formState,e=web.useSpring((g?I:!0)?{position:"relative",zIndex:0,opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:250}}:{opacity:0,transform:"translate(0px, -3px)",display:"none",config:{duration:250}});return jsxRuntime.jsx(web.animated.div,{style:e,...E,children:jsxRuntime.jsx(P2.Primary,{htmlType:"submit",isSubmitting:C,...E,children:A})})},Zg=Xi;var Gg=y__default.default.div`
|
|
2121
2121
|
position: relative;
|
|
2122
2122
|
margin-bottom: 24px;
|
|
2123
2123
|
z-index: 20;
|
|
@@ -2181,10 +2181,10 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2181
2181
|
height: 100%;
|
|
2182
2182
|
`,gE=y__default.default(m.Body)`
|
|
2183
2183
|
margin-bottom: 24px;
|
|
2184
|
-
`;var yi=A=>{let C="",g="",E="",B="",I="";A.address_components.forEach(r=>{r.types.some(t=>{switch(t){case"locality":return C=r.short_name,!0;case"administrative_area_level_1":return g=r.short_name,!0;case"street_number":return E=r.short_name,!0;case"route":return B=r.short_name,!0;case"postal_code":return I=r.short_name,!0;default:return !1}});});let Q=A.geometry.location.lat(),e=A.geometry.location.lng(),o=`${E} ${B}`;return {city:C,state:g,street:o,zip:I,lat:Q,long:e}},Oi=({handleSelect:A,option:C,value:g})=>{let{description:E}=C,B=E===g,I=E.replace(", USA","");return jsxRuntime.jsx(AE,{isCurrent:B,onClick:()=>A(I),children:jsxRuntime.jsx(m.Body,{size:"lg",children:I})})},Di=({label:A="",details:C="",formOptions:g={},previewOnly:E=!1,locationType:B="city",streetFieldName:I="street",cityFieldName:Q="city",stateFieldName:e="state",zipFieldName:o="zip",placeholder:r="",containerStyle:t={}})=>{let i=Lr.useRef(),[L,
|
|
2184
|
+
`;var yi=A=>{let C="",g="",E="",B="",I="";A.address_components.forEach(r=>{r.types.some(t=>{switch(t){case"locality":return C=r.short_name,!0;case"administrative_area_level_1":return g=r.short_name,!0;case"street_number":return E=r.short_name,!0;case"route":return B=r.short_name,!0;case"postal_code":return I=r.short_name,!0;default:return !1}});});let Q=A.geometry.location.lat(),e=A.geometry.location.lng(),o=`${E} ${B}`;return {city:C,state:g,street:o,zip:I,lat:Q,long:e}},Oi=({handleSelect:A,option:C,value:g})=>{let{description:E}=C,B=E===g,I=E.replace(", USA","");return jsxRuntime.jsx(AE,{isCurrent:B,onClick:()=>A(I),children:jsxRuntime.jsx(m.Body,{size:"lg",children:I})})},Di=({label:A="",details:C="",formOptions:g={},previewOnly:E=!1,locationType:B="city",streetFieldName:I="street",cityFieldName:Q="city",stateFieldName:e="state",zipFieldName:o="zip",placeholder:r="",containerStyle:t={}})=>{let i=Lr.useRef(),[L,a]=Lr.useState(!1),[f,x]=Lr.useState(!1),d=reactHookForm.useFormContext(),q=B==="city"?Q:I,h=web.useSpring(L?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});Lr.useEffect(()=>{let n=l=>{L&&i.current&&!i.current.contains(l.target)&&a(!1);};return document.addEventListener("mousedown",l=>n(l)),()=>{document.removeEventListener("mousedown",l=>n(l));}},[L]);let M=d.getValues(q)?`${d.getValues(q)}, ${d.getValues(e)}`:"",{value:p,suggestions:{data:s,loading:c},setValue:u,clearSuggestions:U}=Ji__default.default({requestOptions:{...B==="city"?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}});Lr.useEffect(()=>{if(c){x(c);return}setTimeout(()=>{x(c);},2e3);},[c]);let N=web.useSpring(f?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),F=n=>{u(n.target.value),d.setValue(e,""),B==="full"&&(d.setValue(o,""),d.setValue(Q,"")),d.trigger(q),n.target.value.length>=3&&a(!0);},A2=n=>{u(n,!1),U(),!(n.length<=2)&&Ji.getGeocode({address:n}).then(l=>{let{city:S,state:k,street:X,zip:J,lat:V,long:b}=yi(l[0]),O=[q,Q,e];d.setValue(Q,S),d.setValue(e,k),B==="full"&&(d.setValue(I,X),d.setValue(o,J),O.push(I,o)),d.setValue("lat",V),d.setValue("long",b),d.trigger(O);}).catch(l=>console.error(`Google Maps API error: ${l}`));},w2=n=>{n.code==="Enter"&&n.preventDefault();};return jsxRuntime.jsxs(Gg,{children:[jsxRuntime.jsx(Y,{label:A,isLabelBold:!0,required:!!g.required,details:C}),E?jsxRuntime.jsx(gE,{size:"md",children:M||"N/A"}):jsxRuntime.jsxs(Ng,{style:t,children:[jsxRuntime.jsx(CE,{onKeyDown:w2,type:"text",placeholder:r,...d.register(q,{...g,onChange:F})}),s.length>0&&jsxRuntime.jsx(_g,{style:h,ref:i,children:s.map(n=>jsxRuntime.jsx(Oi,{handleSelect:A2,option:n,value:p},n.description))}),jsxRuntime.jsx($g,{style:N,children:jsxRuntime.jsx(e7,{size:"sm"})})]})]})},eE=A=>{let{isLoaded:C}=api.useLoadScript({googleMapsApiKey:A.api_key||process.env.GOOGLE_MAPS_API_KEY||"",libraries:["places"]});return C?jsxRuntime.jsx(Di,{...A}):null};var Zi=y__default.default.div`
|
|
2185
2185
|
position: relative;
|
|
2186
2186
|
margin-bottom: 24px;
|
|
2187
|
-
`,Wi=({label:A="",formOptions:C={},defaultValue:g=null,name:E,...B})=>{let{control:I,formState:{errors:Q}}=reactHookForm.useFormContext(),e=Q[E],o=e?e.message?.toString():"This field is required";return jsxRuntime.jsxs(Zi,{children:[jsxRuntime.jsx(Y,{isLabelBold:!0,label:A,required:!!C.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:r})=>jsxRuntime.jsx(a7,{...B,...r,status:e?"error":""}),name:E,defaultValue:g?gA__default.default(g):null,rules:C,control:I,...C}),e&&jsxRuntime.jsx(
|
|
2187
|
+
`,Wi=({label:A="",formOptions:C={},defaultValue:g=null,name:E,...B})=>{let{control:I,formState:{errors:Q}}=reactHookForm.useFormContext(),e=Q[E],o=e?e.message?.toString():"This field is required";return jsxRuntime.jsxs(Zi,{children:[jsxRuntime.jsx(Y,{isLabelBold:!0,label:A,required:!!C.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:r})=>jsxRuntime.jsx(a7,{...B,...r,status:e?"error":""}),name:E,defaultValue:g?gA__default.default(g):null,rules:C,control:I,...C}),e&&jsxRuntime.jsx($,{includeIcon:!1,children:o})]})},oE=Wi;var _i=({label:A="",name:C,options:g=void 0,...E})=>{let{setValue:B,watch:I}=reactHookForm.useFormContext(),Q=I(C),e=y__default.default.div`
|
|
2188
2188
|
position: relative;
|
|
2189
2189
|
margin-bottom: 24px;
|
|
2190
2190
|
`,o=r=>{B(C,r);};return jsxRuntime.jsxs(e,{children:[jsxRuntime.jsx(Y,{label:A,required:!!g?.required}),jsxRuntime.jsx(l7,{name:C,...E,onChange:o,value:Q})]})},rE=_i;var En=y__default.default.div`
|
|
@@ -2270,7 +2270,11 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2270
2270
|
border: 0.766898px solid;
|
|
2271
2271
|
border-color: ${A=>A.isCurrent?"#285E50 !important":"#3f937c"};
|
|
2272
2272
|
background: ${A=>A.isCurrent?"#285E50 !important":"#FFF"};
|
|
2273
|
-
`,nn=({label:A="",name:C,details:g="",options:E=[],previewOnly:B=!1})=>{let I=Lr.useRef(),Q=reactHookForm.useFormContext(),[e,o]=Lr.useState(!1),[r,t]=Lr.useState(""),[i,L]=Lr.useState(Q.getValues(C)||[]),
|
|
2273
|
+
`,nn=({label:A="",name:C,details:g="",options:E=[],previewOnly:B=!1})=>{let I=Lr.useRef(),Q=reactHookForm.useFormContext(),[e,o]=Lr.useState(!1),[r,t]=Lr.useState(""),[i,L]=Lr.useState(Q.getValues(C)||[]),a=Lr.useRef({search:r,keywords:i});Lr.useEffect(()=>{a.current={search:r,keywords:i};},[r,i]);let[f,x]=Lr.useState(E),d=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}}),q=E.find(u=>u===Q.getValues(C)),h=u=>{let U=[...a.current.keywords,u];t(""),L(U),Q.setValue(C,U),o(!1);},M=u=>u?u.charAt(0).toUpperCase()+u.slice(1).toLowerCase():"",p=()=>{if(!a.current.search)return;let u=M(a.current.search);h(u);};Lr.useEffect(()=>{let u=U=>{e&&I.current&&!I.current.contains(U.target)&&(p(),o(!1));};return document.addEventListener("mousedown",U=>u(U)),()=>{document.removeEventListener("mousedown",U=>u(U));}},[e]);let s=u=>{u.code==="Enter"&&(p(),u.preventDefault());},c=u=>{let U=i.filter(N=>N!==u);L(U),t(""),Q.setValue(C,U);};return Lr.useEffect(()=>{if(o(!!r),r){let u=E.filter(U=>U.toLowerCase().match(r.toLowerCase()));x(u);}else x(E);},[r]),Lr.useEffect(()=>{let u=E.filter(U=>!i.includes(U));x(u);},[i]),jsxRuntime.jsxs(En,{children:[jsxRuntime.jsx(Bn,{size:"lg",children:A}),g&&jsxRuntime.jsx(In,{children:g}),!B&&jsxRuntime.jsxs(Qn,{onClick:()=>o(!e),children:[jsxRuntime.jsx(VA,{}),q,jsxRuntime.jsx(on,{onKeyDown:s,value:r,onChange:u=>t(u.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxRuntime.jsxs(en,{style:d,ref:I,children:[f.map(u=>{let U=u===q;return jsxRuntime.jsxs(nE,{onClick:()=>h(u),children:[jsxRuntime.jsx(m.Body,{size:"lg",children:u}),jsxRuntime.jsx(rn,{isCurrent:U,children:jsxRuntime.jsx(T.Check,{color:"#fff"})})]},u)}),!f.length&&jsxRuntime.jsx(nE,{onClick:()=>p(),children:jsxRuntime.jsx(m.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[B&&i.length===0&&"N/A",i.map(u=>jsxRuntime.jsxs(tn,{onClick:()=>c(u),children:[u,!B&&jsxRuntime.jsx(lA,{})]},u))]})]})},LE=nn;var fn=y__default.default(antd.DatePicker)`
|
|
2274
|
+
padding: 12px 24px;
|
|
2275
|
+
width: 100%;
|
|
2276
|
+
max-width: 25rem;
|
|
2277
|
+
`,dn=({label:A=null,isLabelBold:C=!0,name:g,details:E=void 0,disabled:B=!1,defaultValue:I=void 0,startRange:Q=null,endRange:e=null,formOptions:o={},errorMessage:r="This field is required.",options:t={},style:i={},format:L="MM/DD/YYYY",...a})=>{let{control:f,formState:{errors:x}}=reactHookForm.useFormContext(),d=!!x[g],q=x?.[g]?.message?.toString()||r,h=p=>p?!!(Q&&p<gA__default.default(Q).endOf("day")||e&&p>gA__default.default(e).endOf("day")):!1,M=p=>{if(p)return gA__default.default(p);if(I)return gA__default.default(I)};return jsxRuntime.jsxs("div",{style:i,children:[jsxRuntime.jsx(Y,{label:A,details:E,isLabelBold:C,required:!!o.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:p})=>jsxRuntime.jsx(fn,{format:L,disabled:B,disabledDate:h,defaultValue:M(p.value),status:d?"error":"",onChange:(s,c)=>p.onChange(c),value:p.value?gA__default.default(p.value):null,changeOnBlur:!0,...a}),name:g,rules:o,control:f,...t}),d&&jsxRuntime.jsx($,{text:q,includeIcon:!1})]})},sE=dn;var lE=y__default.default.div`
|
|
2274
2278
|
display: flex;
|
|
2275
2279
|
flex: 1;
|
|
2276
2280
|
align-items: center;
|
|
@@ -2280,9 +2284,9 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2280
2284
|
gap: 8px;
|
|
2281
2285
|
`,z7=y__default.default(m.Body)`
|
|
2282
2286
|
color: rgba(135, 135, 135);
|
|
2283
|
-
`;var{Dragger:
|
|
2287
|
+
`;var{Dragger:un}=antd.Upload,hn=({label:A="",name:C,disabled:g=!1,description:E="",isLabelBold:B=!0,formOptions:I={},onChange:Q,onRemove:e,onDownload:o,onDrop:r,defaultValue:t=void 0,containerStyle:i={},errorMessage:L=void 0,action:a="",headers:f={},uploadData:x={},defaultFileList:d=[],...q})=>{reactHookForm.useFormContext().register(C,I);let{getFieldState:M,formState:{errors:p}}=reactHookForm.useFormContext(),s=!!p?.[C];return jsxRuntime.jsxs("div",{style:i,children:[jsxRuntime.jsx(Y,{label:A,isLabelBold:B,required:!!I.required,details:E}),jsxRuntime.jsx("div",{style:{height:"0px",width:"0px",opacity:0},children:jsxRuntime.jsx($A,{formOptions:{required:M(C).invalid},name:`${C}_validation`,type:"text"})}),jsxRuntime.jsxs(un,{name:"file",multiple:!0,onChange:Q,onDrop:r,onRemove:e,onDownload:o,action:a,disabled:g,headers:f,defaultFileList:d,showUploadList:{showDownloadIcon:!0},data:x,...q,capture:void 0,children:[jsxRuntime.jsx(T.Attachment,{}),jsxRuntime.jsxs(lE,{children:[jsxRuntime.jsx(z7,{children:jsxRuntime.jsx("span",{style:{fontWeight:"bold"},children:"DRAG FILE HERE"})}),jsxRuntime.jsx(z7,{size:"sm",children:"or click to browse (10 MB max)"})]})]}),t?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Current Value: ",t]}):null,s&&jsxRuntime.jsx($,{text:L,includeIcon:!1})]})},dE=hn;var Vn=A=>{let{title:C,description:g}=A;return jsxRuntime.jsxs(h1,{vertical:!0,style:{paddingBottom:24},children:[jsxRuntime.jsx(m.Header,{children:C}),g&&jsxRuntime.jsx(m.Body,{children:g})]})};function o5({defaultExpandAll:A,treeData:C,checkedKeys:g,...E}){let[B,I]=Lr.useState([]),[Q,e]=Lr.useState([]),o=t=>{let i=[];return t.forEach(L=>{L.key&&i.push(L.key),Array.isArray(L.children)&&(i=i.concat(o(L.children)));}),i},r=(t,i)=>{if(Q.includes(i.node.key)){let a=new Set([i.node.key]);i.node.children&&i.node.children.forEach(({key:f})=>a.add(f)),e(f=>f.filter(x=>!a.has(x))),I(f=>f.filter(x=>!a.has(x)));}else e(a=>[...a,i.node.key]),I(a=>[...a,i.node.key]);};return Lr.useEffect(()=>{if(!A||!C)return;let t=o(C);e(t),I(t);},[A]),Lr.useEffect(()=>{g&&(A||(e(g),I(g)));},[A,g]),jsxRuntime.jsx(antd.Tree,{switcherIcon:null,expandedKeys:B,checkedKeys:g,checkable:!0,checkStrictly:!0,selectable:!1,treeData:C,onCheck:r,titleRender:Vn,style:{backgroundColor:"#F4F8F7"},...E})}var qn=({name:A,...C})=>{let{control:g}=reactHookForm.useFormContext();return jsxRuntime.jsx(reactHookForm.Controller,{control:g,name:A,render:({field:E})=>jsxRuntime.jsx(o5,{onCheck:B=>{Array.isArray(B)?E.onChange(B):E.onChange(B.checked);},checkedKeys:E.value,onBlur:E.onBlur,...C})})},hE=qn;var vE=y__default.default(antd.Flex)`
|
|
2284
2288
|
gap: 8px;
|
|
2285
|
-
`;var VE=["January","February","March","April","May","June","July","August","September","October","November","December"];function O7({name:A,labelProps:C={},disabled:g=!1,defaultValue:E=void 0,required:B=!1,errorMessage:I=void 0,containerStyle:Q={},dateContainerStyle:e={}}){let[o,r]=Lr.useState(),[t,i]=Lr.useState(),[L,
|
|
2289
|
+
`;var VE=["January","February","March","April","May","June","July","August","September","October","November","December"];function O7({name:A,labelProps:C={},disabled:g=!1,defaultValue:E=void 0,required:B=!1,errorMessage:I=void 0,containerStyle:Q={},dateContainerStyle:e={}}){let[o,r]=Lr.useState(),[t,i]=Lr.useState(),[L,a]=Lr.useState(),{control:f,setValue:x}=reactHookForm.useFormContext();Lr.useEffect(()=>{!t||!o||!L||x(A,new Date([o,t,L].join("/")));},[t,o,L]),Lr.useEffect(()=>{if(!E)return;let s=new Date(E),c=(s.getMonth()+1).toString(),u=s.getDate().toString(),U=s.getFullYear().toString();r(c),i(u),a(U);},[E]);let d=()=>L?+L%100===0?+L%400===0:+L%4===0:!1,q=s=>{if(!s)return 31;let c=["4","6","9","11"],u=["1","3","5","7","8","10","12"];return c.includes(s)?30:u.includes(s)?31:d()?29:28},h=(()=>VE.map((s,c)=>({label:s,value:(c+1).toString()})))(),M=s=>{let c=q(s);return [...new Array(c)].map((u,U)=>({label:(U+1).toString(),value:(U+1).toString()}))},p=(()=>{let s=new Date().getFullYear(),c=s-125;return [...new Array(s-c)].map((u,U)=>({label:(c+U).toString(),value:(c+U).toString()})).reverse()})();return jsxRuntime.jsxs(antd.Flex,{vertical:!0,style:{...Q},children:[jsxRuntime.jsx(Y,{...C,required:C?.required||B}),jsxRuntime.jsx(reactHookForm.Controller,{name:A,control:f,render:({field:s})=>jsxRuntime.jsxs(vE,{style:{...e},onBlur:s.onBlur,children:[jsxRuntime.jsx(U1,{options:h,placeholder:"Month",disabled:g,showSearch:!1,sort:!1,previewOnly:g,value:o?{label:VE[+o-1],value:o}:void 0,onChange:c=>{let u=q(o),U=q(c);u>U&&i(void 0),r(c);},isError:!!I,fontSize:"16px"}),jsxRuntime.jsx(U1,{options:M(o),placeholder:"Day",disabled:g,showSearch:!1,previewOnly:g,onChange:c=>i(c),value:t?{label:t,value:t}:void 0,sort:!1,isError:!!I,fontSize:"16px"}),jsxRuntime.jsx(U1,{options:p,placeholder:"Year",disabled:g,previewOnly:g,showSearch:!1,value:L?{label:L,value:L}:void 0,onChange:c=>a(c),sort:!1,isError:!!I,fontSize:"16px"})]})}),I&&jsxRuntime.jsx(m.Body,{size:"xs",color:"red",children:I})]})}var Kn={ButtonRadioGroup:xg,Container:zC,Checkbox:GA,CheckboxGroup:kC,CheckboxCardGroup:FC,InputLabel:Y,DateSelect:sE,TextInput:m3,Text:$A,TimePicker:oE,TimeSelect:rE,Radio:A5,RadioGroup:Pg,CardRadioGroup:qg,Number:Eg,Select:zg,SelectMenu:Tg,Signature:Lg,Submit:Zg,LocationSelect:eE,Keyword:LE,Toggle:f7,FileUpload:dE,Tree:hE,DateDropdown:O7};function D7({isActive:A,color:C="#000"}){let g=web.useSpring(A?{transform:"rotate(0deg)",config:web.config.stiff}:{transform:"rotate(180deg)",config:web.config.stiff});return jsxRuntime.jsx(web.animated.div,{style:{...g,display:"flex",alignItems:"center"},children:jsxRuntime.jsx(T.Caret,{direction:"up",color:C})})}var qE=y__default.default(antd.Menu)`
|
|
2286
2290
|
--border-radius: 5px;
|
|
2287
2291
|
--green-dark: #285e50;
|
|
2288
2292
|
--green-light: #e9f0ee;
|
|
@@ -2409,7 +2413,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2409
2413
|
&.ant-menu-submenu-popup .ant-badge {
|
|
2410
2414
|
display: none;
|
|
2411
2415
|
}
|
|
2412
|
-
`;var
|
|
2416
|
+
`;var Gn=A=>window.location.pathname===A,ME=({icon:A,active:C,useDot:g,ribbonText:E,notificationCount:B,iconSize:I})=>{let Q=A&&Lr.cloneElement(A,{active:C,size:I??32,color:C?"#000":"#555555"});return jsxRuntime.jsx(antd.Badge,{count:B||E,offset:E?[5,0]:[-30,2],color:"#3F937C",dot:g,size:E?"small":"default",children:Q})},Nn=({isOpen:A,hideExpandIcon:C=!1})=>!C&&jsxRuntime.jsx(D7,{isActive:A,color:"#555555"}),SE=({children:A,mode:C,...g})=>jsxRuntime.jsx(qE,{...g,mode:C,expandIcon:C==="inline"?Nn:null,children:A}),Y7=({icon:A=void 0,label:C,key:g="",active:E=!1,...B})=>{let[I,Q]=Lr.useState(!1),e=Gn(g)||I||E;return jsxRuntime.jsx(xE,{title:C,...B,active:E,onMouseEnter:()=>Q(!0),onMouseLeave:()=>Q(!1),children:jsxRuntime.jsxs(antd.Flex,{gap:"0.5rem",align:"center",children:[jsxRuntime.jsx(ME,{icon:A,active:e,...B}),jsxRuntime.jsx("span",{children:C})]})})},XE=A=>jsxRuntime.jsx(antd.Menu.Divider,{...A}),bE=({icon:A,active:C=!1,children:g,...E})=>{let[B,I]=Lr.useState(!1);return jsxRuntime.jsx("div",{onMouseEnter:()=>I(!0),onMouseLeave:()=>I(!1),children:jsxRuntime.jsx(UE,{icon:jsxRuntime.jsx(ME,{icon:A,active:B||C,...E,iconSize:32}),...E,children:g})})},_n=({items:A,...C})=>jsxRuntime.jsx(SE,{...C,children:A.map(g=>g?g.type==="divider"?jsxRuntime.jsx(XE,{},g.key):g.children?jsxRuntime.jsx(bE,{...g,title:g.label,children:g.children?.map(E=>jsxRuntime.jsx(Y7,{...E,iconSize:25}))}):jsxRuntime.jsx(Y7,{...g}):null)}),$n={Container:SE,MenuDivider:XE,MenuItem:Y7,SubMenuContainer:bE,NavigationMenuMain:_n};var EL=y__default.default(web.animated.div)`
|
|
2413
2417
|
max-height: ${({size:A})=>(A||58)+24}px;
|
|
2414
2418
|
padding: 12px;
|
|
2415
2419
|
display: flex;
|
|
@@ -2423,25 +2427,25 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2423
2427
|
&:hover {
|
|
2424
2428
|
border-radius: 40px;
|
|
2425
2429
|
}
|
|
2426
|
-
`,
|
|
2430
|
+
`,BL=y__default.default(web.animated.div)`
|
|
2427
2431
|
display: flex;
|
|
2428
2432
|
flex-direction: column;
|
|
2429
2433
|
flex-wrap: wrap;
|
|
2430
2434
|
min-width: 180px;
|
|
2431
2435
|
max-width: 180px;
|
|
2432
2436
|
margin-left: 12px;
|
|
2433
|
-
`,
|
|
2437
|
+
`,IL=y__default.default.span`
|
|
2434
2438
|
font-weight: 700;
|
|
2435
2439
|
letter-spacing: 0.157px;
|
|
2436
2440
|
color: #1d4339;
|
|
2437
|
-
`,
|
|
2441
|
+
`,QL=y__default.default.p`
|
|
2438
2442
|
font-size: 10px;
|
|
2439
2443
|
letter-spacing: 0.157px;
|
|
2440
2444
|
text-align: left;
|
|
2441
2445
|
margin: 0;
|
|
2442
2446
|
line-height: 12px;
|
|
2443
2447
|
color: #1d4339;
|
|
2444
|
-
`,
|
|
2448
|
+
`,eL=({contentfulConfig:A,size:C=58})=>{let[g,E]=Lr.useState(""),[B,I]=web.useSpring(()=>({from:{width:C+24,backgroundColor:"#fff",color:"#ffffff"}}));Lr.useEffect(()=>{new d3(A).getImage("vanta-logo").then(L=>{E(L);});},[]);let[Q,e]=web.useSpring(()=>({from:{opacity:0},delay:100})),o=L=>({width:L?198+C:C+24,backgroundColor:L?"#d4e2dd":"#fff"}),r=L=>({opacity:L?1:0}),t=()=>{I(o(!0)),e(r(!0));},i=()=>{I(o(!1)),e(r(!1));};return g?jsxRuntime.jsxs(EL,{style:B,onMouseEnter:t,onMouseLeave:i,size:C,children:[jsxRuntime.jsx("img",{alt:"Vanta Logo",src:g,height:C,width:C}),jsxRuntime.jsxs(BL,{style:Q,children:[jsxRuntime.jsx(m.Body,{children:jsxRuntime.jsx(IL,{children:"Guaranteed Security"})}),jsxRuntime.jsx(m.Body,{size:"xs",children:jsxRuntime.jsx(QL,{children:"We're committed to protecting your privacy. Solace is safe, secure, and HIPAA compliant\u2014 certified by Vanta."})})]})]}):null},oL=eL;var rL=({style:A={},...C})=>jsxRuntime.jsx(antd.DatePicker,{open:!0,style:{marginTop:"-30px",marginBottom:"350px",visibility:"hidden",width:"100%",...A},...C}),iL=rL;/*! Bundled license information:
|
|
2445
2449
|
|
|
2446
2450
|
react-is/cjs/react-is.production.min.js:
|
|
2447
2451
|
(** @license React v16.13.1
|
|
@@ -2505,15 +2509,15 @@ exports.Card = U5;
|
|
|
2505
2509
|
exports.Collapse = cI;
|
|
2506
2510
|
exports.Contentful = d3;
|
|
2507
2511
|
exports.ContentfulLottieFileSlug = ye;
|
|
2508
|
-
exports.DatePicker =
|
|
2512
|
+
exports.DatePicker = iL;
|
|
2509
2513
|
exports.DateSelect = wI;
|
|
2510
2514
|
exports.Divider = PI;
|
|
2511
2515
|
exports.Drawer = XI;
|
|
2512
2516
|
exports.Dropdown = zI;
|
|
2513
|
-
exports.ErrorTypography =
|
|
2517
|
+
exports.ErrorTypography = $;
|
|
2514
2518
|
exports.File = Je;
|
|
2515
2519
|
exports.Flex = h1;
|
|
2516
|
-
exports.Form =
|
|
2520
|
+
exports.Form = Kn;
|
|
2517
2521
|
exports.FormatType = VC;
|
|
2518
2522
|
exports.Icons = T;
|
|
2519
2523
|
exports.Input = M1;
|
|
@@ -2521,7 +2525,7 @@ exports.LoadingSpinner = e7;
|
|
|
2521
2525
|
exports.LottieAnimation = We;
|
|
2522
2526
|
exports.Menu = ro;
|
|
2523
2527
|
exports.Modal = i7;
|
|
2524
|
-
exports.NavigationMenu =
|
|
2528
|
+
exports.NavigationMenu = $n;
|
|
2525
2529
|
exports.NumberedProgressSteps = vo;
|
|
2526
2530
|
exports.Pill = qo;
|
|
2527
2531
|
exports.Popover = So;
|
|
@@ -2543,6 +2547,6 @@ exports.Tooltip = P5;
|
|
|
2543
2547
|
exports.Tree = o5;
|
|
2544
2548
|
exports.Typography = m;
|
|
2545
2549
|
exports.UserTypes = J4;
|
|
2546
|
-
exports.VantaLogo =
|
|
2550
|
+
exports.VantaLogo = oL;
|
|
2547
2551
|
//# sourceMappingURL=out.js.map
|
|
2548
2552
|
//# sourceMappingURL=index.cjs.map
|