@solace-health/ui 0.10.221 → 0.10.224
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 +17 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -8
- package/dist/index.d.ts +15 -8
- package/dist/index.js +17 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -48,8 +48,8 @@ var X5__default = /*#__PURE__*/_interopDefault(X5);
|
|
|
48
48
|
var Oa__default = /*#__PURE__*/_interopDefault(Oa);
|
|
49
49
|
var FB__namespace = /*#__PURE__*/_interopNamespace(FB);
|
|
50
50
|
|
|
51
|
-
var WQ=Object.create;var d6=Object.defineProperty;var NQ=Object.getOwnPropertyDescriptor;var _Q=Object.getOwnPropertyNames;var $Q=Object.getPrototypeOf,Ae=Object.prototype.hasOwnProperty;var $2=(A,C)=>()=>(C||A((C={exports:{}}).exports,C),C.exports);var Ce=(A,C,g,E)=>{if(C&&typeof C=="object"||typeof C=="function")for(let I of _Q(C))!Ae.call(A,I)&&I!==g&&d6(A,I,{get:()=>C[I],enumerable:!(E=NQ(C,I))||E.enumerable});return A};var ge=(A,C,g)=>(g=A!=null?WQ($Q(A)):{},Ce(C||!A||!A.__esModule?d6(g,"default",{value:A,enumerable:!0}):g,A));var gg=$2(N=>{var c2=typeof Symbol=="function"&&Symbol.for,q7=c2?Symbol.for("react.element"):60103,m7=c2?Symbol.for("react.portal"):60106,x9=c2?Symbol.for("react.fragment"):60107,P9=c2?Symbol.for("react.strict_mode"):60108,z9=c2?Symbol.for("react.profiler"):60114,U9=c2?Symbol.for("react.provider"):60109,H9=c2?Symbol.for("react.context"):60110,v7=c2?Symbol.for("react.async_mode"):60111,S9=c2?Symbol.for("react.concurrent_mode"):60111,k9=c2?Symbol.for("react.forward_ref"):60112,F9=c2?Symbol.for("react.suspense"):60113,or=c2?Symbol.for("react.suspense_list"):60120,O9=c2?Symbol.for("react.memo"):60115,J9=c2?Symbol.for("react.lazy"):60116,ir=c2?Symbol.for("react.block"):60121,tr=c2?Symbol.for("react.fundamental"):60117,rr=c2?Symbol.for("react.responder"):60118,nr=c2?Symbol.for("react.scope"):60119;function O2(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case q7:switch(A=A.type,A){case v7:case S9:case x9:case z9:case P9:case F9:return A;default:switch(A=A&&A.$$typeof,A){case H9:case k9:case J9:case O9:case U9:return A;default:return C}}case m7:return C}}}function Cg(A){return O2(A)===S9}N.AsyncMode=v7;N.ConcurrentMode=S9;N.ContextConsumer=H9;N.ContextProvider=U9;N.Element=q7;N.ForwardRef=k9;N.Fragment=x9;N.Lazy=J9;N.Memo=O9;N.Portal=m7;N.Profiler=z9;N.StrictMode=P9;N.Suspense=F9;N.isAsyncMode=function(A){return Cg(A)||O2(A)===v7};N.isConcurrentMode=Cg;N.isContextConsumer=function(A){return O2(A)===H9};N.isContextProvider=function(A){return O2(A)===U9};N.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===q7};N.isForwardRef=function(A){return O2(A)===k9};N.isFragment=function(A){return O2(A)===x9};N.isLazy=function(A){return O2(A)===J9};N.isMemo=function(A){return O2(A)===O9};N.isPortal=function(A){return O2(A)===m7};N.isProfiler=function(A){return O2(A)===z9};N.isStrictMode=function(A){return O2(A)===P9};N.isSuspense=function(A){return O2(A)===F9};N.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===x9||A===S9||A===z9||A===P9||A===F9||A===or||typeof A=="object"&&A!==null&&(A.$$typeof===J9||A.$$typeof===O9||A.$$typeof===U9||A.$$typeof===H9||A.$$typeof===k9||A.$$typeof===tr||A.$$typeof===rr||A.$$typeof===nr||A.$$typeof===ir)};N.typeOf=O2;});var Eg=$2(_=>{process.env.NODE_ENV!=="production"&&function(){var A=typeof Symbol=="function"&&Symbol.for,C=A?Symbol.for("react.element"):60103,g=A?Symbol.for("react.portal"):60106,E=A?Symbol.for("react.fragment"):60107,I=A?Symbol.for("react.strict_mode"):60108,B=A?Symbol.for("react.profiler"):60114,Q=A?Symbol.for("react.provider"):60109,e=A?Symbol.for("react.context"):60110,o=A?Symbol.for("react.async_mode"):60111,i=A?Symbol.for("react.concurrent_mode"):60111,t=A?Symbol.for("react.forward_ref"):60112,r=A?Symbol.for("react.suspense"):60113,n=A?Symbol.for("react.suspense_list"):60120,L=A?Symbol.for("react.memo"):60115,f=A?Symbol.for("react.lazy"):60116,q=A?Symbol.for("react.block"):60121,u=A?Symbol.for("react.fundamental"):60117,K=A?Symbol.for("react.responder"):60118,m=A?Symbol.for("react.scope"):60119;function U(x){return typeof x=="string"||typeof x=="function"||x===E||x===i||x===B||x===I||x===r||x===n||typeof x=="object"&&x!==null&&(x.$$typeof===f||x.$$typeof===L||x.$$typeof===Q||x.$$typeof===e||x.$$typeof===t||x.$$typeof===u||x.$$typeof===K||x.$$typeof===m||x.$$typeof===q)}function a(x){if(typeof x=="object"&&x!==null){var c4=x.$$typeof;switch(c4){case C:var $5=x.type;switch($5){case o:case i:case E:case B:case I:case r:return $5;default:var p6=$5&&$5.$$typeof;switch(p6){case e:case t:case f:case L:case Q:return p6;default:return c4}}case g:return c4}}}var l=o,S=i,w=e,k=Q,W=C,F=t,g2=E,P2=f,s=L,p=g,P=B,J=I,R=r,z=!1;function h(x){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),H(x)||a(x)===o}function H(x){return a(x)===i}function j(x){return a(x)===e}function D(x){return a(x)===Q}function y(x){return typeof x=="object"&&x!==null&&x.$$typeof===C}function m2(x){return a(x)===t}function l2(x){return a(x)===E}function R1(x){return a(x)===f}function ZQ(x){return a(x)===L}function YQ(x){return a(x)===g}function DQ(x){return a(x)===B}function TQ(x){return a(x)===I}function GQ(x){return a(x)===r}_.AsyncMode=l,_.ConcurrentMode=S,_.ContextConsumer=w,_.ContextProvider=k,_.Element=W,_.ForwardRef=F,_.Fragment=g2,_.Lazy=P2,_.Memo=s,_.Portal=p,_.Profiler=P,_.StrictMode=J,_.Suspense=R,_.isAsyncMode=h,_.isConcurrentMode=H,_.isContextConsumer=j,_.isContextProvider=D,_.isElement=y,_.isForwardRef=m2,_.isFragment=l2,_.isLazy=R1,_.isMemo=ZQ,_.isPortal=YQ,_.isProfiler=DQ,_.isStrictMode=TQ,_.isSuspense=GQ,_.isValidElementType=U,_.typeOf=a;}();});var w7=$2((bP,M7)=>{process.env.NODE_ENV==="production"?M7.exports=gg():M7.exports=Eg();});var Qg=$2((jP,Bg)=>{var Ig=Object.getOwnPropertySymbols,Lr=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable;function ar(A){if(A==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(A)}function lr(){try{if(!Object.assign)return !1;var A=new String("abc");if(A[5]="de",Object.getOwnPropertyNames(A)[0]==="5")return !1;for(var C={},g=0;g<10;g++)C["_"+String.fromCharCode(g)]=g;var E=Object.getOwnPropertyNames(C).map(function(B){return C[B]});if(E.join("")!=="0123456789")return !1;var I={};return "abcdefghijklmnopqrst".split("").forEach(function(B){I[B]=B;}),Object.keys(Object.assign({},I)).join("")==="abcdefghijklmnopqrst"}catch{return !1}}Bg.exports=lr()?Object.assign:function(A,C){for(var g,E=ar(A),I,B=1;B<arguments.length;B++){g=Object(arguments[B]);for(var Q in g)Lr.call(g,Q)&&(E[Q]=g[Q]);if(Ig){I=Ig(g);for(var e=0;e<I.length;e++)sr.call(g,I[e])&&(E[I[e]]=g[I[e]]);}}return E};});var K9=$2((yP,eg)=>{var fr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";eg.exports=fr;});var x7=$2((ZP,og)=>{og.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var Lg=$2((YP,ng)=>{var P7=function(){};process.env.NODE_ENV!=="production"&&(ig=K9(),X9={},tg=x7(),P7=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});var ig,X9,tg;function rg(A,C,g,E,I){if(process.env.NODE_ENV!=="production"){for(var B in A)if(tg(A,B)){var Q;try{if(typeof A[B]!="function"){var e=Error((E||"React class")+": "+g+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw e.name="Invariant Violation",e}Q=A[B](C,B,E,g,null,ig);}catch(i){Q=i;}if(Q&&!(Q instanceof Error)&&P7((E||"React class")+": type specification of "+g+" `"+B+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof Q+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),Q instanceof Error&&!(Q.message in X9)){X9[Q.message]=!0;var o=I?I():"";P7("Failed "+g+" type: "+Q.message+(o??""));}}}}rg.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(X9={});};ng.exports=rg;});var lg=$2((DP,ag)=>{var pr=w7(),dr=Qg(),Y3=K9(),z7=x7(),sg=Lg(),D3=function(){};process.env.NODE_ENV!=="production"&&(D3=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});function b9(){return null}ag.exports=function(A,C){var g=typeof Symbol=="function"&&Symbol.iterator,E="@@iterator";function I(s){var p=s&&(g&&s[g]||s[E]);if(typeof p=="function")return p}var B="<<anonymous>>",Q={array:t("array"),bigint:t("bigint"),bool:t("boolean"),func:t("function"),number:t("number"),object:t("object"),string:t("string"),symbol:t("symbol"),any:r(),arrayOf:n,element:L(),elementType:f(),instanceOf:q,node:U(),objectOf:K,oneOf:u,oneOfType:m,shape:l,exact:S};function e(s,p){return s===p?s!==0||1/s===1/p:s!==s&&p!==p}function o(s,p){this.message=s,this.data=p&&typeof p=="object"?p:{},this.stack="";}o.prototype=Error.prototype;function i(s){if(process.env.NODE_ENV!=="production")var p={},P=0;function J(z,h,H,j,D,y,m2){if(j=j||B,y=y||H,m2!==Y3){if(C){var l2=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw l2.name="Invariant Violation",l2}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var R1=j+":"+H;!p[R1]&&P<3&&(D3("You are manually calling a React.PropTypes validation function for the `"+y+"` prop on `"+j+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),p[R1]=!0,P++);}}return h[H]==null?z?h[H]===null?new o("The "+D+" `"+y+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new o("The "+D+" `"+y+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:s(h,H,j,D,y)}var R=J.bind(null,!1);return R.isRequired=J.bind(null,!0),R}function t(s){function p(P,J,R,z,h,H){var j=P[J],D=W(j);if(D!==s){var y=F(j);return new o("Invalid "+z+" `"+h+"` of type "+("`"+y+"` supplied to `"+R+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return i(p)}function r(){return i(b9)}function n(s){function p(P,J,R,z,h){if(typeof s!="function")return new o("Property `"+h+"` of component `"+R+"` has invalid PropType notation inside arrayOf.");var H=P[J];if(!Array.isArray(H)){var j=W(H);return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+R+"`, expected an array."))}for(var D=0;D<H.length;D++){var y=s(H,D,R,z,h+"["+D+"]",Y3);if(y instanceof Error)return y}return null}return i(p)}function L(){function s(p,P,J,R,z){var h=p[P];if(!A(h)){var H=W(h);return new o("Invalid "+R+" `"+z+"` of type "+("`"+H+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return i(s)}function f(){function s(p,P,J,R,z){var h=p[P];if(!pr.isValidElementType(h)){var H=W(h);return new o("Invalid "+R+" `"+z+"` of type "+("`"+H+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return i(s)}function q(s){function p(P,J,R,z,h){if(!(P[J]instanceof s)){var H=s.name||B,j=P2(P[J]);return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+R+"`, expected ")+("instance of `"+H+"`."))}return null}return i(p)}function u(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?D3("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):D3("Invalid argument supplied to oneOf, expected an array.")),b9;function p(P,J,R,z,h){for(var H=P[J],j=0;j<s.length;j++)if(e(H,s[j]))return null;var D=JSON.stringify(s,function(m2,l2){var R1=F(l2);return R1==="symbol"?String(l2):l2});return new o("Invalid "+z+" `"+h+"` of value `"+String(H)+"` "+("supplied to `"+R+"`, expected one of "+D+"."))}return i(p)}function K(s){function p(P,J,R,z,h){if(typeof s!="function")return new o("Property `"+h+"` of component `"+R+"` has invalid PropType notation inside objectOf.");var H=P[J],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+R+"`, expected an object."));for(var D in H)if(z7(H,D)){var y=s(H,D,R,z,h+"."+D,Y3);if(y instanceof Error)return y}return null}return i(p)}function m(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&D3("Invalid argument supplied to oneOfType, expected an instance of array."),b9;for(var p=0;p<s.length;p++){var P=s[p];if(typeof P!="function")return D3("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+g2(P)+" at index "+p+"."),b9}function J(R,z,h,H,j){for(var D=[],y=0;y<s.length;y++){var m2=s[y],l2=m2(R,z,h,H,j,Y3);if(l2==null)return null;l2.data&&z7(l2.data,"expectedType")&&D.push(l2.data.expectedType);}var R1=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new o("Invalid "+H+" `"+j+"` supplied to "+("`"+h+"`"+R1+"."))}return i(J)}function U(){function s(p,P,J,R,z){return w(p[P])?null:new o("Invalid "+R+" `"+z+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return i(s)}function a(s,p,P,J,R){return new o((s||"React class")+": "+p+" type `"+P+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+R+"`.")}function l(s){function p(P,J,R,z,h){var H=P[J],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type `"+j+"` "+("supplied to `"+R+"`, expected `object`."));for(var D in s){var y=s[D];if(typeof y!="function")return a(R,z,h,D,F(y));var m2=y(H,D,R,z,h+"."+D,Y3);if(m2)return m2}return null}return i(p)}function S(s){function p(P,J,R,z,h){var H=P[J],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type `"+j+"` "+("supplied to `"+R+"`, expected `object`."));var D=dr({},P[J],s);for(var y in D){var m2=s[y];if(z7(s,y)&&typeof m2!="function")return a(R,z,h,y,F(m2));if(!m2)return new o("Invalid "+z+" `"+h+"` key `"+y+"` supplied to `"+R+"`.\nBad object: "+JSON.stringify(P[J],null," ")+`
|
|
52
|
-
Valid keys: `+JSON.stringify(Object.keys(s),null," "));var l2=m2(H,y,
|
|
51
|
+
var WQ=Object.create;var d6=Object.defineProperty;var NQ=Object.getOwnPropertyDescriptor;var _Q=Object.getOwnPropertyNames;var $Q=Object.getPrototypeOf,Ae=Object.prototype.hasOwnProperty;var $2=(A,C)=>()=>(C||A((C={exports:{}}).exports,C),C.exports);var Ce=(A,C,g,E)=>{if(C&&typeof C=="object"||typeof C=="function")for(let I of _Q(C))!Ae.call(A,I)&&I!==g&&d6(A,I,{get:()=>C[I],enumerable:!(E=NQ(C,I))||E.enumerable});return A};var ge=(A,C,g)=>(g=A!=null?WQ($Q(A)):{},Ce(C||!A||!A.__esModule?d6(g,"default",{value:A,enumerable:!0}):g,A));var gg=$2(N=>{var c2=typeof Symbol=="function"&&Symbol.for,q7=c2?Symbol.for("react.element"):60103,m7=c2?Symbol.for("react.portal"):60106,x9=c2?Symbol.for("react.fragment"):60107,P9=c2?Symbol.for("react.strict_mode"):60108,z9=c2?Symbol.for("react.profiler"):60114,U9=c2?Symbol.for("react.provider"):60109,H9=c2?Symbol.for("react.context"):60110,v7=c2?Symbol.for("react.async_mode"):60111,S9=c2?Symbol.for("react.concurrent_mode"):60111,k9=c2?Symbol.for("react.forward_ref"):60112,F9=c2?Symbol.for("react.suspense"):60113,or=c2?Symbol.for("react.suspense_list"):60120,O9=c2?Symbol.for("react.memo"):60115,J9=c2?Symbol.for("react.lazy"):60116,ir=c2?Symbol.for("react.block"):60121,tr=c2?Symbol.for("react.fundamental"):60117,rr=c2?Symbol.for("react.responder"):60118,nr=c2?Symbol.for("react.scope"):60119;function O2(A){if(typeof A=="object"&&A!==null){var C=A.$$typeof;switch(C){case q7:switch(A=A.type,A){case v7:case S9:case x9:case z9:case P9:case F9:return A;default:switch(A=A&&A.$$typeof,A){case H9:case k9:case J9:case O9:case U9:return A;default:return C}}case m7:return C}}}function Cg(A){return O2(A)===S9}N.AsyncMode=v7;N.ConcurrentMode=S9;N.ContextConsumer=H9;N.ContextProvider=U9;N.Element=q7;N.ForwardRef=k9;N.Fragment=x9;N.Lazy=J9;N.Memo=O9;N.Portal=m7;N.Profiler=z9;N.StrictMode=P9;N.Suspense=F9;N.isAsyncMode=function(A){return Cg(A)||O2(A)===v7};N.isConcurrentMode=Cg;N.isContextConsumer=function(A){return O2(A)===H9};N.isContextProvider=function(A){return O2(A)===U9};N.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===q7};N.isForwardRef=function(A){return O2(A)===k9};N.isFragment=function(A){return O2(A)===x9};N.isLazy=function(A){return O2(A)===J9};N.isMemo=function(A){return O2(A)===O9};N.isPortal=function(A){return O2(A)===m7};N.isProfiler=function(A){return O2(A)===z9};N.isStrictMode=function(A){return O2(A)===P9};N.isSuspense=function(A){return O2(A)===F9};N.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===x9||A===S9||A===z9||A===P9||A===F9||A===or||typeof A=="object"&&A!==null&&(A.$$typeof===J9||A.$$typeof===O9||A.$$typeof===U9||A.$$typeof===H9||A.$$typeof===k9||A.$$typeof===tr||A.$$typeof===rr||A.$$typeof===nr||A.$$typeof===ir)};N.typeOf=O2;});var Eg=$2(_=>{process.env.NODE_ENV!=="production"&&function(){var A=typeof Symbol=="function"&&Symbol.for,C=A?Symbol.for("react.element"):60103,g=A?Symbol.for("react.portal"):60106,E=A?Symbol.for("react.fragment"):60107,I=A?Symbol.for("react.strict_mode"):60108,B=A?Symbol.for("react.profiler"):60114,Q=A?Symbol.for("react.provider"):60109,e=A?Symbol.for("react.context"):60110,o=A?Symbol.for("react.async_mode"):60111,i=A?Symbol.for("react.concurrent_mode"):60111,t=A?Symbol.for("react.forward_ref"):60112,r=A?Symbol.for("react.suspense"):60113,n=A?Symbol.for("react.suspense_list"):60120,L=A?Symbol.for("react.memo"):60115,f=A?Symbol.for("react.lazy"):60116,w=A?Symbol.for("react.block"):60121,u=A?Symbol.for("react.fundamental"):60117,J=A?Symbol.for("react.responder"):60118,m=A?Symbol.for("react.scope"):60119;function U(x){return typeof x=="string"||typeof x=="function"||x===E||x===i||x===B||x===I||x===r||x===n||typeof x=="object"&&x!==null&&(x.$$typeof===f||x.$$typeof===L||x.$$typeof===Q||x.$$typeof===e||x.$$typeof===t||x.$$typeof===u||x.$$typeof===J||x.$$typeof===m||x.$$typeof===w)}function l(x){if(typeof x=="object"&&x!==null){var c4=x.$$typeof;switch(c4){case C:var $5=x.type;switch($5){case o:case i:case E:case B:case I:case r:return $5;default:var p6=$5&&$5.$$typeof;switch(p6){case e:case t:case f:case L:case Q:return p6;default:return c4}}case g:return c4}}}var a=o,S=i,R=e,k=Q,W=C,F=t,g2=E,P2=f,s=L,p=g,P=B,K=I,q=r,z=!1;function h(x){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),H(x)||l(x)===o}function H(x){return l(x)===i}function j(x){return l(x)===e}function D(x){return l(x)===Q}function y(x){return typeof x=="object"&&x!==null&&x.$$typeof===C}function m2(x){return l(x)===t}function l2(x){return l(x)===E}function R1(x){return l(x)===f}function ZQ(x){return l(x)===L}function YQ(x){return l(x)===g}function DQ(x){return l(x)===B}function TQ(x){return l(x)===I}function GQ(x){return l(x)===r}_.AsyncMode=a,_.ConcurrentMode=S,_.ContextConsumer=R,_.ContextProvider=k,_.Element=W,_.ForwardRef=F,_.Fragment=g2,_.Lazy=P2,_.Memo=s,_.Portal=p,_.Profiler=P,_.StrictMode=K,_.Suspense=q,_.isAsyncMode=h,_.isConcurrentMode=H,_.isContextConsumer=j,_.isContextProvider=D,_.isElement=y,_.isForwardRef=m2,_.isFragment=l2,_.isLazy=R1,_.isMemo=ZQ,_.isPortal=YQ,_.isProfiler=DQ,_.isStrictMode=TQ,_.isSuspense=GQ,_.isValidElementType=U,_.typeOf=l;}();});var w7=$2((bP,M7)=>{process.env.NODE_ENV==="production"?M7.exports=gg():M7.exports=Eg();});var Qg=$2((jP,Bg)=>{var Ig=Object.getOwnPropertySymbols,Lr=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable;function ar(A){if(A==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(A)}function lr(){try{if(!Object.assign)return !1;var A=new String("abc");if(A[5]="de",Object.getOwnPropertyNames(A)[0]==="5")return !1;for(var C={},g=0;g<10;g++)C["_"+String.fromCharCode(g)]=g;var E=Object.getOwnPropertyNames(C).map(function(B){return C[B]});if(E.join("")!=="0123456789")return !1;var I={};return "abcdefghijklmnopqrst".split("").forEach(function(B){I[B]=B;}),Object.keys(Object.assign({},I)).join("")==="abcdefghijklmnopqrst"}catch{return !1}}Bg.exports=lr()?Object.assign:function(A,C){for(var g,E=ar(A),I,B=1;B<arguments.length;B++){g=Object(arguments[B]);for(var Q in g)Lr.call(g,Q)&&(E[Q]=g[Q]);if(Ig){I=Ig(g);for(var e=0;e<I.length;e++)sr.call(g,I[e])&&(E[I[e]]=g[I[e]]);}}return E};});var K9=$2((yP,eg)=>{var fr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";eg.exports=fr;});var x7=$2((ZP,og)=>{og.exports=Function.call.bind(Object.prototype.hasOwnProperty);});var Lg=$2((YP,ng)=>{var P7=function(){};process.env.NODE_ENV!=="production"&&(ig=K9(),X9={},tg=x7(),P7=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});var ig,X9,tg;function rg(A,C,g,E,I){if(process.env.NODE_ENV!=="production"){for(var B in A)if(tg(A,B)){var Q;try{if(typeof A[B]!="function"){var e=Error((E||"React class")+": "+g+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw e.name="Invariant Violation",e}Q=A[B](C,B,E,g,null,ig);}catch(i){Q=i;}if(Q&&!(Q instanceof Error)&&P7((E||"React class")+": type specification of "+g+" `"+B+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof Q+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),Q instanceof Error&&!(Q.message in X9)){X9[Q.message]=!0;var o=I?I():"";P7("Failed "+g+" type: "+Q.message+(o??""));}}}}rg.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(X9={});};ng.exports=rg;});var lg=$2((DP,ag)=>{var pr=w7(),dr=Qg(),Y3=K9(),z7=x7(),sg=Lg(),D3=function(){};process.env.NODE_ENV!=="production"&&(D3=function(A){var C="Warning: "+A;typeof console<"u"&&console.error(C);try{throw new Error(C)}catch{}});function b9(){return null}ag.exports=function(A,C){var g=typeof Symbol=="function"&&Symbol.iterator,E="@@iterator";function I(s){var p=s&&(g&&s[g]||s[E]);if(typeof p=="function")return p}var B="<<anonymous>>",Q={array:t("array"),bigint:t("bigint"),bool:t("boolean"),func:t("function"),number:t("number"),object:t("object"),string:t("string"),symbol:t("symbol"),any:r(),arrayOf:n,element:L(),elementType:f(),instanceOf:w,node:U(),objectOf:J,oneOf:u,oneOfType:m,shape:a,exact:S};function e(s,p){return s===p?s!==0||1/s===1/p:s!==s&&p!==p}function o(s,p){this.message=s,this.data=p&&typeof p=="object"?p:{},this.stack="";}o.prototype=Error.prototype;function i(s){if(process.env.NODE_ENV!=="production")var p={},P=0;function K(z,h,H,j,D,y,m2){if(j=j||B,y=y||H,m2!==Y3){if(C){var l2=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw l2.name="Invariant Violation",l2}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var R1=j+":"+H;!p[R1]&&P<3&&(D3("You are manually calling a React.PropTypes validation function for the `"+y+"` prop on `"+j+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),p[R1]=!0,P++);}}return h[H]==null?z?h[H]===null?new o("The "+D+" `"+y+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new o("The "+D+" `"+y+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:s(h,H,j,D,y)}var q=K.bind(null,!1);return q.isRequired=K.bind(null,!0),q}function t(s){function p(P,K,q,z,h,H){var j=P[K],D=W(j);if(D!==s){var y=F(j);return new o("Invalid "+z+" `"+h+"` of type "+("`"+y+"` supplied to `"+q+"`, expected ")+("`"+s+"`."),{expectedType:s})}return null}return i(p)}function r(){return i(b9)}function n(s){function p(P,K,q,z,h){if(typeof s!="function")return new o("Property `"+h+"` of component `"+q+"` has invalid PropType notation inside arrayOf.");var H=P[K];if(!Array.isArray(H)){var j=W(H);return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+q+"`, expected an array."))}for(var D=0;D<H.length;D++){var y=s(H,D,q,z,h+"["+D+"]",Y3);if(y instanceof Error)return y}return null}return i(p)}function L(){function s(p,P,K,q,z){var h=p[P];if(!A(h)){var H=W(h);return new o("Invalid "+q+" `"+z+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return i(s)}function f(){function s(p,P,K,q,z){var h=p[P];if(!pr.isValidElementType(h)){var H=W(h);return new o("Invalid "+q+" `"+z+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return i(s)}function w(s){function p(P,K,q,z,h){if(!(P[K]instanceof s)){var H=s.name||B,j=P2(P[K]);return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+q+"`, expected ")+("instance of `"+H+"`."))}return null}return i(p)}function u(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&(arguments.length>1?D3("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):D3("Invalid argument supplied to oneOf, expected an array.")),b9;function p(P,K,q,z,h){for(var H=P[K],j=0;j<s.length;j++)if(e(H,s[j]))return null;var D=JSON.stringify(s,function(m2,l2){var R1=F(l2);return R1==="symbol"?String(l2):l2});return new o("Invalid "+z+" `"+h+"` of value `"+String(H)+"` "+("supplied to `"+q+"`, expected one of "+D+"."))}return i(p)}function J(s){function p(P,K,q,z,h){if(typeof s!="function")return new o("Property `"+h+"` of component `"+q+"` has invalid PropType notation inside objectOf.");var H=P[K],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type "+("`"+j+"` supplied to `"+q+"`, expected an object."));for(var D in H)if(z7(H,D)){var y=s(H,D,q,z,h+"."+D,Y3);if(y instanceof Error)return y}return null}return i(p)}function m(s){if(!Array.isArray(s))return process.env.NODE_ENV!=="production"&&D3("Invalid argument supplied to oneOfType, expected an instance of array."),b9;for(var p=0;p<s.length;p++){var P=s[p];if(typeof P!="function")return D3("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+g2(P)+" at index "+p+"."),b9}function K(q,z,h,H,j){for(var D=[],y=0;y<s.length;y++){var m2=s[y],l2=m2(q,z,h,H,j,Y3);if(l2==null)return null;l2.data&&z7(l2.data,"expectedType")&&D.push(l2.data.expectedType);}var R1=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new o("Invalid "+H+" `"+j+"` supplied to "+("`"+h+"`"+R1+"."))}return i(K)}function U(){function s(p,P,K,q,z){return R(p[P])?null:new o("Invalid "+q+" `"+z+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return i(s)}function l(s,p,P,K,q){return new o((s||"React class")+": "+p+" type `"+P+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+q+"`.")}function a(s){function p(P,K,q,z,h){var H=P[K],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type `"+j+"` "+("supplied to `"+q+"`, expected `object`."));for(var D in s){var y=s[D];if(typeof y!="function")return l(q,z,h,D,F(y));var m2=y(H,D,q,z,h+"."+D,Y3);if(m2)return m2}return null}return i(p)}function S(s){function p(P,K,q,z,h){var H=P[K],j=W(H);if(j!=="object")return new o("Invalid "+z+" `"+h+"` of type `"+j+"` "+("supplied to `"+q+"`, expected `object`."));var D=dr({},P[K],s);for(var y in D){var m2=s[y];if(z7(s,y)&&typeof m2!="function")return l(q,z,h,y,F(m2));if(!m2)return new o("Invalid "+z+" `"+h+"` key `"+y+"` supplied to `"+q+"`.\nBad object: "+JSON.stringify(P[K],null," ")+`
|
|
52
|
+
Valid keys: `+JSON.stringify(Object.keys(s),null," "));var l2=m2(H,y,q,z,h+"."+y,Y3);if(l2)return l2}return null}return i(p)}function R(s){switch(typeof s){case"number":case"string":case"undefined":return !0;case"boolean":return !s;case"object":if(Array.isArray(s))return s.every(R);if(s===null||A(s))return !0;var p=I(s);if(p){var P=p.call(s),K;if(p!==s.entries){for(;!(K=P.next()).done;)if(!R(K.value))return !1}else for(;!(K=P.next()).done;){var q=K.value;if(q&&!R(q[1]))return !1}}else return !1;return !0;default:return !1}}function k(s,p){return s==="symbol"?!0:p?p["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&p instanceof Symbol:!1}function W(s){var p=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":k(p,s)?"symbol":p}function F(s){if(typeof s>"u"||s===null)return ""+s;var p=W(s);if(p==="object"){if(s instanceof Date)return "date";if(s instanceof RegExp)return "regexp"}return p}function g2(s){var p=F(s);switch(p){case"array":case"object":return "an "+p;case"boolean":case"date":case"regexp":return "a "+p;default:return p}}function P2(s){return !s.constructor||!s.constructor.name?B:s.constructor.name}return Q.checkPropTypes=sg,Q.resetWarningCache=sg.resetWarningCache,Q.PropTypes=Q,Q};});var cg=$2((TP,dg)=>{var cr=K9();function fg(){}function pg(){}pg.resetWarningCache=fg;dg.exports=function(){function A(E,I,B,Q,e,o){if(o!==cr){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}A.isRequired=A;function C(){return A}var g={array:A,bigint:A,bool:A,func:A,number:A,object:A,string:A,symbol:A,any:A,arrayOf:C,element:A,elementType:A,instanceOf:C,node:A,objectOf:C,oneOf:C,oneOfType:C,shape:C,exact:C,checkPropTypes:pg,resetWarningCache:fg};return g.PropTypes=g,g};});var ug=$2((GP,U7)=>{process.env.NODE_ENV!=="production"?(Vg=w7(),hg=!0,U7.exports=lg()(Vg.isElement,hg)):U7.exports=cg()();var Vg,hg;});var Qe={from:{opacity:0},to:{opacity:1}},ee={from:{transform:"translateY(50px)",opacity:0},to:{transform:"translateY(0)",opacity:1}},oe=(A,C,g)=>{if(C&&g)return {to:C,from:g};switch(A){case"fadeIn":return Qe;case"slideIn":return ee;default:return {to:C,from:g}}},ie=({children:A,delay:C=0,type:g="fadeIn",to:E=null,from:I=null,trigger:B=!0,style:Q={},config:e="default",animationProps:o={},...i})=>{let{to:t,from:r}=oe(g,E,I),n=web.useSpring({from:r,to:B?t:r,delay:C,config:web.config[e],...o});return jsxRuntime.jsx(web.animated.div,{style:{...Q,...n},...i,children:A})},q3=ie;var ae=a2__default.default(web.animated.div)`
|
|
53
53
|
position: absolute;
|
|
54
54
|
top: 1px;
|
|
55
55
|
left: 0px;
|
|
@@ -597,7 +597,7 @@ Valid keys: `+JSON.stringify(Object.keys(s),null," "));var l2=m2(H,y,R,z,h+"."+
|
|
|
597
597
|
}
|
|
598
598
|
`,Yt=a2__default.default(web.animated.div)`
|
|
599
599
|
background-color: #fefefe;
|
|
600
|
-
`,h7=({children:A,isOpen:C,onClose:g=()=>null,
|
|
600
|
+
`,h7=({children:A,isOpen:C,onClose:g=()=>null,centered:E=!0,style:I={},styles:B={},bodyStyle:Q={},className:e="",...o})=>{let i={...I};return o.width&&(i.width=i.width||o.width||560),jsxRuntime.jsx(Zt,{centered:E,open:C,onCancel:g,footer:!1,style:i,styles:{body:Q,...B},wrapClassName:e,...o,children:jsxRuntime.jsx(Yt,{children:A})})};var Tt=({modalContent:A,modalLabel:C=void 0,modalButtonText:g="Go Back"})=>{let[E,I]=wr.useState(!1);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(jC,{onClick:()=>I(!0),children:C?jsxRuntime.jsx(yC,{children:`(${C})`}):jsxRuntime.jsx(O.CircleExclamation,{})}),jsxRuntime.jsx(h7,{isOpen:E,onClose:()=>I(!1),footer:jsxRuntime.jsx(r2.Secondary,{onClick:()=>I(!1),children:g}),children:jsxRuntime.jsx("div",{style:{marginTop:"2rem"},children:A})})]})},DC=Tt;var Nt=({label:A=null,isLabelBold:C=!1,required:g=!1,details:E=null,helpContent:I=void 0,helpLabel:B=void 0})=>{if(!A)return null;let Q=typeof E=="string"?jsxRuntime.jsx(KC,{children:E}):E;return jsxRuntime.jsxs(XC,{children:[jsxRuntime.jsxs(d.Body,{className:"input-label",bold:C,size:"lg",children:[A,g&&jsxRuntime.jsx(bC,{}),I&&jsxRuntime.jsx(DC,{modalContent:I,modalLabel:B})]}),Q]})},T=Nt;var WC=a2__default.default(antd.Checkbox)`
|
|
601
601
|
display: flex;
|
|
602
602
|
align-items: center;
|
|
603
603
|
padding: var(--Spacing-lg, 1rem) var(--Spacing-xl, 1.5rem);
|
|
@@ -666,11 +666,11 @@ Valid keys: `+JSON.stringify(Object.keys(s),null," "));var l2=m2(H,y,R,z,h+"."+
|
|
|
666
666
|
gap: 8px;
|
|
667
667
|
margin-top: 6px;
|
|
668
668
|
margin-bottom: ${({marginBottom:A})=>A}px;
|
|
669
|
-
`,Qr=({children:A=null,text:C="This field is required",includeIcon:g=!0,marginBottom:E=0})=>jsxRuntime.jsxs(Br,{marginBottom:E,children:[g&&jsxRuntime.jsx(O.ErrorExclamation,{}),jsxRuntime.jsx(d.Body,{size:"xs",color:"#DA4D54",children:A||C})]}),Y=Qr;var V2=ge(ug(),1);var Rg=[],T3="";function H7({previousConformedValue:A=T3,previousPlaceholder:C=T3,currentCaretPosition:g=0,conformedValue:E,rawValue:I,placeholderChar:B,placeholder:Q,indexesOfPipedChars:e=Rg,caretTrapIndexes:o=Rg}){if(g===0||!I.length)return 0;let i=I.length,t=A.length,r=Q.length,n=E.length,L=i-t,f=L>0,
|
|
669
|
+
`,Qr=({children:A=null,text:C="This field is required",includeIcon:g=!0,marginBottom:E=0})=>jsxRuntime.jsxs(Br,{marginBottom:E,children:[g&&jsxRuntime.jsx(O.ErrorExclamation,{}),jsxRuntime.jsx(d.Body,{size:"xs",color:"#DA4D54",children:A||C})]}),Y=Qr;var V2=ge(ug(),1);var Rg=[],T3="";function H7({previousConformedValue:A=T3,previousPlaceholder:C=T3,currentCaretPosition:g=0,conformedValue:E,rawValue:I,placeholderChar:B,placeholder:Q,indexesOfPipedChars:e=Rg,caretTrapIndexes:o=Rg}){if(g===0||!I.length)return 0;let i=I.length,t=A.length,r=Q.length,n=E.length,L=i-t,f=L>0,w=t===0;if(L>1&&!f&&!w)return g;let J=f&&(A===E||E===Q),m=0,U,l;if(J)m=g-L;else {let a=E.toLowerCase(),k=I.toLowerCase().substr(0,g).split(T3).filter(h=>a.indexOf(h)!==-1);l=k[k.length-1];let W=C.substr(0,k.length).split(T3).filter(h=>h!==B).length,g2=Q.substr(0,k.length).split(T3).filter(h=>h!==B).length!==W,P2=C[k.length-1]!==void 0&&Q[k.length-2]!==void 0&&C[k.length-1]!==B&&C[k.length-1]!==Q[k.length-1]&&C[k.length-1]===Q[k.length-2];!f&&(g2||P2)&&W>0&&Q.indexOf(l)>-1&&I[g]!==void 0&&(U=!0,l=I[g]);let p=e.map(h=>a[h]).filter(h=>h===l).length,P=k.filter(h=>h===l).length,q=Q.substr(0,Q.indexOf(B)).split(T3).filter((h,H)=>h===l&&I[H]!==h).length+P+p+(U?1:0),z=0;for(let h=0;h<n;h++){let H=a[h];if(m=h+1,H===l&&z++,z>=q)break}}if(f){let a=m;for(let S=m;S<=r;S++)if(Q[S]===B&&(a=S),Q[S]===B||o.indexOf(S)!==-1||S===r)return a}else if(U){for(let a=m-1;a>=0;a--)if(E[a]===l||o.indexOf(a)!==-1||a===0)return a}else for(let a=m;a>=0;a--)if(Q[a-1]===B||o.indexOf(a)!==-1||a===0)return a}var G3="_",U5="function";var Vr=[];function H5(A=Vr,C=G3){if(!S7(A))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(A.indexOf(C)!==-1)throw new Error(`Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.
|
|
670
670
|
|
|
671
671
|
The placeholder character that was received is: ${JSON.stringify(C)}
|
|
672
672
|
|
|
673
|
-
The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instanceof RegExp?C:g).join("")}function S7(A){return Array.isArray&&Array.isArray(A)||A instanceof Array}function k7(A){return typeof A=="string"||A instanceof String}function qg(A){return typeof A=="number"&&A.length===void 0&&!isNaN(A)}function S5(A){return typeof A>"u"||A===null}var hr="[]";function j9(A){let C=[],g;for(;g=A.indexOf(hr),g!==-1;)C.push(g),A.splice(g,1);return {maskWithoutCaretTraps:A,indexes:C}}var ur=[],p3="";function F7(A=p3,C=ur,g={}){if(!S7(C))if(typeof C===U5)C=C(A,g),C=j9(C).maskWithoutCaretTraps;else throw new Error("Text-mask:conformToMask; The mask property must be an array.");let{guide:E=!0,previousConformedValue:I=p3,placeholderChar:B=G3,placeholder:Q=H5(C,B),currentCaretPosition:e,keepCharPositions:o}=g,i=E===!1&&I!==void 0,t=A.length,r=I.length,n=Q.length,L=C.length,f=t-r,
|
|
673
|
+
The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instanceof RegExp?C:g).join("")}function S7(A){return Array.isArray&&Array.isArray(A)||A instanceof Array}function k7(A){return typeof A=="string"||A instanceof String}function qg(A){return typeof A=="number"&&A.length===void 0&&!isNaN(A)}function S5(A){return typeof A>"u"||A===null}var hr="[]";function j9(A){let C=[],g;for(;g=A.indexOf(hr),g!==-1;)C.push(g),A.splice(g,1);return {maskWithoutCaretTraps:A,indexes:C}}var ur=[],p3="";function F7(A=p3,C=ur,g={}){if(!S7(C))if(typeof C===U5)C=C(A,g),C=j9(C).maskWithoutCaretTraps;else throw new Error("Text-mask:conformToMask; The mask property must be an array.");let{guide:E=!0,previousConformedValue:I=p3,placeholderChar:B=G3,placeholder:Q=H5(C,B),currentCaretPosition:e,keepCharPositions:o}=g,i=E===!1&&I!==void 0,t=A.length,r=I.length,n=Q.length,L=C.length,f=t-r,w=f>0,u=e+(w?-f:0),J=u+Math.abs(f);if(o===!0&&!w){let a=p3;for(let S=u;S<J;S++)Q[S]===B&&(a+=B);A=A.slice(0,u)+a+A.slice(u,t);}let m=A.split(p3).map((a,S)=>({char:a,isNew:S>=u&&S<J}));for(let a=t-1;a>=0;a--){let{char:S}=m[a];if(S!==B){let R=a>=u&&r===L;S===Q[R?a-f:a]&&m.splice(a,1);}}let U=p3,l=!1;A:for(let a=0;a<n;a++){let S=Q[a];if(S===B){if(m.length>0)for(;m.length>0;){let{char:R,isNew:k}=m.shift();if(R===B&&i!==!0){U+=B;continue A}else if(C[a].test(R)){if(o!==!0||k===!1||I===p3||E===!1||!w)U+=R;else {let W=m.length,F=null;for(let g2=0;g2<W;g2++){let P2=m[g2];if(P2.char!==B&&P2.isNew===!1)break;if(P2.char===B){F=g2;break}}F!==null?(U+=R,m.splice(F,1)):a--;}continue A}else l=!0;}i===!1&&(U+=Q.substr(a,n));break}else U+=S;}if(i&&w===!1){let a=null;for(let S=0;S<U.length;S++)Q[S]===B&&(a=S);a!==null?U=U.substr(0,a+1):U=p3;}return {conformedValue:U,meta:{someCharsRejected:l}}}var vg="",mg="none",Rr="object",qr=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),mr=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout;function O7(A){let C={previousConformedValue:void 0,previousPlaceholder:void 0};return {state:C,update(g,{inputElement:E,mask:I,guide:B,pipe:Q,placeholderChar:e=G3,keepCharPositions:o=!1,showMask:i=!1}=A){if(typeof g>"u"&&(g=E.value),g===C.previousConformedValue)return;typeof I===Rr&&I.pipe!==void 0&&I.mask!==void 0&&(Q=I.pipe,I=I.mask);let t,r;if(I instanceof Array&&(t=H5(I,e)),I===!1)return;let n=Mr(g),{selectionEnd:L}=E,{previousConformedValue:f,previousPlaceholder:w}=C,u;if(typeof I===U5){if(r=I(n,{currentCaretPosition:L,previousConformedValue:f,placeholderChar:e}),r===!1)return;let{maskWithoutCaretTraps:F,indexes:g2}=j9(r);r=F,u=g2,t=H5(r,e);}else r=I;let J={previousConformedValue:f,guide:B,placeholderChar:e,pipe:Q,placeholder:t,currentCaretPosition:L,keepCharPositions:o},{conformedValue:m}=F7(n,r,J),U=typeof Q===U5,l={};U&&(l=Q(m,{rawValue:n,...J}),l===!1?l={value:f,rejected:!0}:k7(l)&&(l={value:l}));let a=U?l.value:m,S=H7({previousConformedValue:f,previousPlaceholder:w,conformedValue:a,placeholder:t,rawValue:n,currentCaretPosition:L,placeholderChar:e,indexesOfPipedChars:l.indexesOfPipedChars,caretTrapIndexes:u}),W=a===t&&S===0?i?t:vg:a;C.previousConformedValue=W,C.previousPlaceholder=t,E.value!==W&&(E.value=W,vr(E,S));}}}function vr(A,C){document.activeElement===A&&(qr?mr(()=>A.setSelectionRange(C,C,mg),0):A.setSelectionRange(C,C,mg));}function Mr(A){if(k7(A))return A;if(qg(A))return String(A);if(A==null)return vg;throw new Error(`The 'value' provided to Text Mask needs to be a string or a number. The value received was:
|
|
674
674
|
|
|
675
675
|
${JSON.stringify(A)}`)}var d3=class extends wr__default.default.PureComponent{constructor(...C){super(...C),this.setRef=this.setRef.bind(this),this.onBlur=this.onBlur.bind(this),this.onChange=this.onChange.bind(this);}setRef(C){this.inputElement=C;}initTextMask(){let{props:C,props:{value:g}}=this;this.textMaskInputElement=O7({inputElement:this.inputElement,...C}),this.textMaskInputElement.update(g);}componentDidMount(){this.initTextMask();}componentDidUpdate(C){let{value:g,pipe:E,mask:I,guide:B,placeholderChar:Q,showMask:e}=this.props,o={guide:B,placeholderChar:Q,showMask:e},i=typeof E=="function"&&typeof C.pipe=="function"?E.toString()!==C.pipe.toString():S5(E)&&!S5(C.pipe)||!S5(E)&&S5(C.pipe),t=I.toString()!==C.mask.toString(),r=Object.keys(o).some(L=>o[L]!==C[L])||t||i;(g!==this.inputElement.value||r)&&this.initTextMask();}render(){let{render:C,...g}=this.props;return delete g.mask,delete g.guide,delete g.pipe,delete g.placeholderChar,delete g.keepCharPositions,delete g.value,delete g.onBlur,delete g.onChange,delete g.showMask,C(this.setRef,{onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value,...g})}onChange(C){this.textMaskInputElement.update(),typeof this.props.onChange=="function"&&this.props.onChange(C);}onBlur(C){typeof this.props.onBlur=="function"&&this.props.onBlur(C);}};d3.propTypes={mask:V2.default.oneOfType([V2.default.array,V2.default.func,V2.default.bool,V2.default.shape({mask:V2.default.oneOfType([V2.default.array,V2.default.func]),pipe:V2.default.func})]).isRequired,guide:V2.default.bool,value:V2.default.oneOfType([V2.default.string,V2.default.number]),pipe:V2.default.func,placeholderChar:V2.default.string,keepCharPositions:V2.default.bool,showMask:V2.default.bool};d3.defaultProps={render:(A,C)=>jsxRuntime.jsx("input",{ref:A,...C})};var {TextArea:Ur}=antd.Input,Mg=a2__default.default(web.animated.div)`
|
|
676
676
|
position: absolute;
|
|
@@ -761,7 +761,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
761
761
|
}
|
|
762
762
|
`;a2__default.default(d.Body)`
|
|
763
763
|
display: block;
|
|
764
|
-
`;var Ug=(o=>(o.Phone="phone",o.Currency="currency",o.Email="email",o.Zipcode="zipcode",o.SSN="SSN",o.Zip="SSN",o.MBI="MBI",o.Date="date",o))(Ug||{}),Hg=(E=>(E.City="city",E.Full="full",E.CityWithState="city_with_state",E))(Hg||{});var Sg=A=>{let C;switch(A){case"zipcode":C=[/\d/,/\d/,/\d/,/\d/,/\d/];break;case"phone":C=["(",/[1-9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/];break;case"currency":C=textMaskAddons.createNumberMask({prefix:"$"});break;case"email":C=textMaskAddons.emailMask;break;default:C=[A];}return C};var Jr=({name:A,label:C=null,details:g=null,type:E="text",formOptions:I={},previewOnly:B=!1,textArea:Q=!1,marginBottom:e=void 0,isLabelBold:o=!0,helpContent:i=void 0,helpLabel:t=void 0,format:r="",errorMessage:n="This field is required",...L})=>{let{control:f,formState:{errors:
|
|
764
|
+
`;var Ug=(o=>(o.Phone="phone",o.Currency="currency",o.Email="email",o.Zipcode="zipcode",o.SSN="SSN",o.Zip="SSN",o.MBI="MBI",o.Date="date",o))(Ug||{}),Hg=(E=>(E.City="city",E.Full="full",E.CityWithState="city_with_state",E))(Hg||{});var Sg=A=>{let C;switch(A){case"zipcode":C=[/\d/,/\d/,/\d/,/\d/,/\d/];break;case"phone":C=["(",/[1-9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/];break;case"currency":C=textMaskAddons.createNumberMask({prefix:"$"});break;case"email":C=textMaskAddons.emailMask;break;default:C=[A];}return C};var Jr=({name:A,label:C=null,details:g=null,type:E="text",formOptions:I={},previewOnly:B=!1,textArea:Q=!1,marginBottom:e=void 0,isLabelBold:o=!0,helpContent:i=void 0,helpLabel:t=void 0,format:r="",errorMessage:n="This field is required",...L})=>{let{control:f,formState:{errors:w}}=reactHookForm.useFormContext(),u=!!reactHookForm.get(w,A),J=w?.[A]?.message?.toString()||n,m=({field:U})=>Q?jsxRuntime.jsx(zg,{...U,marginBottom:e,error:u,disabled:B,...L}):r?jsxRuntime.jsx(xg,{...U,mask:Sg(r),guide:!1,disabled:B,type:E,error:u,...L}):jsxRuntime.jsx(wg,{...U,disabled:B,type:E,error:u,...L});return jsxRuntime.jsxs("div",{style:{width:"100%"},children:[jsxRuntime.jsx(T,{label:C,isLabelBold:o,required:!!I.required,details:g,helpLabel:t,helpContent:i}),jsxRuntime.jsxs(Pg,{marginBottom:e,children:[jsxRuntime.jsx(reactHookForm.Controller,{render:m,name:A,rules:I,control:f}),jsxRuntime.jsx(Mg,{children:u&&jsxRuntime.jsx(O.ErrorExclamation,{})})]}),u&&jsxRuntime.jsx(Y,{text:J,includeIcon:!1})]})},N3=Jr;a2__default.default.div`
|
|
765
765
|
margin-bottom: 32px;
|
|
766
766
|
`;var Fg=a2__default.default.div`
|
|
767
767
|
display: ${A=>A.isColumns?"grid":"flex"};
|
|
@@ -1052,7 +1052,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1052
1052
|
align-items: center;
|
|
1053
1053
|
justify-content: center;
|
|
1054
1054
|
padding-right: 1rem;
|
|
1055
|
-
`;var QE=({color:A="#5A5A5A",size:C=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:C,height:C,viewBox:"0 0 21 21",fill:"none",children:jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.19934 1.57751L2.02083 2.75603L5.4083 6.14349C5.09278 6.40498 4.78053 6.6858 4.47171 6.98444C3.7807 7.65269 3.15554 8.36611 2.60521 9.07983C2.27313 9.51051 2.03735 9.84931 1.90826 10.0511L1.62109 10.5001L1.90826 10.9491C2.03735 11.151 2.27313 11.4898 2.60521 11.9205C3.15554 12.6342 3.7807 13.3476 4.47171 14.0159C6.49722 15.9746 8.67067 17.1668 10.9436 17.1668C12.3777 17.1668 13.7721 16.6922 15.1148 15.85L18.6875 19.4227L19.866 18.2442L3.19934 1.57751ZM13.8974 14.6326L12.6379 13.3731C12.1421 13.6656 11.5639 13.8334 10.9466 13.8334C9.10567 13.8334 7.61328 12.341 7.61328 10.5C7.61328 9.88272 7.78109 9.30459 8.07359 8.80878L6.5933 7.3285C6.2705 7.58882 5.94924 7.87411 5.63032 8.18252C5.00182 8.79032 4.42895 9.44408 3.92508 10.0975C3.81626 10.2387 3.7157 10.3733 3.62376 10.5001C3.7157 10.627 3.81626 10.7616 3.92508 10.9028C4.42895 11.5562 5.00182 12.21 5.63032 12.8178C7.37487 14.5048 9.18939 15.5001 10.9436 15.5001C11.9171 15.5001 12.9091 15.1937 13.8974 14.6326ZM9.33572 10.0709C9.29934 10.2078 9.27995 10.3517 9.27995 10.5C9.27995 11.4205 10.0261 12.1667 10.9466 12.1667C11.095 12.1667 11.2388 12.1473 11.3758 12.1109L9.33572 10.0709ZM17.6889 13.7426L16.5104 12.5641C17.0388 12.0298 17.5246 11.4662 17.959 10.9027C18.0679 10.7616 18.1684 10.6269 18.2604 10.5001C18.1684 10.3733 18.0679 10.2387 17.959 10.0975C17.4552 9.44405 16.8823 8.79029 16.2538 8.1825C14.5093 6.49543 12.6947 5.50012 10.9405 5.50012C10.5052 5.50012 10.0663 5.56139 9.6256 5.6793L8.30729 4.36099C9.16766 4.01794 10.0464 3.83346 10.9405 3.83346C13.2135 3.83346 15.3869 5.02564 17.4124 6.98441C18.1034 7.65266 18.7286 8.36609 19.2789 9.07981C19.611 9.51049 19.8468 9.84928 19.9759 10.0511L20.263 10.5001L19.9759 10.9491C19.8468 11.151 19.611 11.4898 19.2789 11.9204C18.8029 12.5377 18.271 13.1548 17.6889 13.7426Z",fill:A})});var eE=({color:A="#5A5A5A",size:C=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:C,height:C*.65,viewBox:"0 0 20 13",fill:"none",children:jsxRuntime.jsx("path",{d:"M9.94792 10.3334C10.9896 10.3334 11.875 9.96879 12.6042 9.23962C13.3333 8.51046 13.6979 7.62504 13.6979 6.58337C13.6979 5.54171 13.3333 4.65629 12.6042 3.92712C11.875 3.19796 10.9896 2.83337 9.94792 2.83337C8.90625 2.83337 8.02083 3.19796 7.29167 3.92712C6.5625 4.65629 6.19792 5.54171 6.19792 6.58337C6.19792 7.62504 6.5625 8.51046 7.29167 9.23962C8.02083 9.96879 8.90625 10.3334 9.94792 10.3334ZM9.94792 8.83337C9.32292 8.83337 8.79167 8.61462 8.35417 8.17712C7.91667 7.73962 7.69792 7.20837 7.69792 6.58337C7.69792 5.95837 7.91667 5.42712 8.35417 4.98962C8.79167 4.55212 9.32292 4.33337 9.94792 4.33337C10.5729 4.33337 11.1042 4.55212 11.5417 4.98962C11.9792 5.42712 12.1979 5.95837 12.1979 6.58337C12.1979 7.20837 11.9792 7.73962 11.5417 8.17712C11.1042 8.61462 10.5729 8.83337 9.94792 8.83337ZM9.94792 12.8334C7.92014 12.8334 6.07292 12.2674 4.40625 11.1355C2.73958 10.0035 1.53125 8.48615 0.78125 6.58337C1.53125 4.6806 2.73958 3.16324 4.40625 2.03129C6.07292 0.899346 7.92014 0.333374 9.94792 0.333374C11.9757 0.333374 13.8229 0.899346 15.4896 2.03129C17.1562 3.16324 18.3646 4.6806 19.1146 6.58337C18.3646 8.48615 17.1562 10.0035 15.4896 11.1355C13.8229 12.2674 11.9757 12.8334 9.94792 12.8334ZM9.94792 11.1667C11.5174 11.1667 12.9583 10.7535 14.2708 9.92712C15.5833 9.10073 16.5868 7.98615 17.2813 6.58337C16.5868 5.1806 15.5833 4.06601 14.2708 3.23962C12.9583 2.41323 11.5174 2.00004 9.94792 2.00004C8.37847 2.00004 6.9375 2.41323 5.625 3.23962C4.3125 4.06601 3.30903 5.1806 2.61458 6.58337C3.30903 7.98615 4.3125 9.10073 5.625 9.92712C6.9375 10.7535 8.37847 11.1667 9.94792 11.1667Z",fill:A})});var dn=({previewOnly:A=!1,format:C,onAccept:g=void 0,...E})=>{let[I,B]=wr.useState(!1),Q=E?.status==="error",o=["SSN"].some(t=>t===C),i=(()=>{switch(C){case"phone":return "(000) 000-0000";case"MBI":return "****-***-****";case"date":return "00/00/0000";case"email":return /^\S*@?\S*$/;case"SSN":return [{mask:I?"000-00-0000":"XXX-XX-0000",definitions:{X:{mask:"0",displayChar:"\u25CF",placeholderChar:"#"}},lazy:!1,overwrite:"shift"}];case"SSN":return "00000";case"currency":return [{mask:"$num",lazy:!1,blocks:{num:{mask:Number,scale:2,thousandsSeparator:",",padFractionalZeros:!0,radix:".",mapToRadix:["."]}}}];default:return C}})();return jsxRuntime.jsxs(EE,{children:[jsxRuntime.jsx(gE,{format:C,mask:i,unmask:!0,onAccept:g,disabled:A,error:Q,...E}),Q&&!o&&!!E?.suffix&&jsxRuntime.jsx(BE,{children:E.suffix}),o&&jsxRuntime.jsx(IE,{onClick:()=>B(!I),children:I?jsxRuntime.jsx(eE,{}):jsxRuntime.jsx(QE,{})})]})},oE=dn;var T1={Area:_g,Text:$g,Number:AE,Password:CE,Mask:oE};var iE=A=>{let C;switch(A){case"MBI":C={value:/^[1-9]{1}[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz]{1}[0-9]{1}-?[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz]{1}[0-9]{1}-?[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz|^0-9]{1}[0-9]{1}[0-9]{1}/g,message:"Invalid medicare number"};break;case"zipcode":C={value:/\d{5}/,message:"Invalid zipcode"};break;case"phone":C={value:/\d{10}/,message:"Invalid phone number"};break;case"SSN":C={value:/\d{9}/,message:"Invalid social security number"};break;case"currency":C={value:/\d*(?:\.\d{2})?/,message:"Invalid amount"};break;case"email":C={value:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Invalid email address"};break;default:C=A;}return C};var un=({name:A,label:C=null,details:g=null,formOptions:E={},pattern:I=void 0,format:B=void 0,textArea:Q=!1,password:e=!1,isLabelBold:o=!0,helpContent:i=void 0,helpLabel:t=void 0,errorMessage:r="This field is required",disableErrorState:n=!1,...L})=>{let{control:f,formState:{errors:
|
|
1055
|
+
`;var QE=({color:A="#5A5A5A",size:C=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:C,height:C,viewBox:"0 0 21 21",fill:"none",children:jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.19934 1.57751L2.02083 2.75603L5.4083 6.14349C5.09278 6.40498 4.78053 6.6858 4.47171 6.98444C3.7807 7.65269 3.15554 8.36611 2.60521 9.07983C2.27313 9.51051 2.03735 9.84931 1.90826 10.0511L1.62109 10.5001L1.90826 10.9491C2.03735 11.151 2.27313 11.4898 2.60521 11.9205C3.15554 12.6342 3.7807 13.3476 4.47171 14.0159C6.49722 15.9746 8.67067 17.1668 10.9436 17.1668C12.3777 17.1668 13.7721 16.6922 15.1148 15.85L18.6875 19.4227L19.866 18.2442L3.19934 1.57751ZM13.8974 14.6326L12.6379 13.3731C12.1421 13.6656 11.5639 13.8334 10.9466 13.8334C9.10567 13.8334 7.61328 12.341 7.61328 10.5C7.61328 9.88272 7.78109 9.30459 8.07359 8.80878L6.5933 7.3285C6.2705 7.58882 5.94924 7.87411 5.63032 8.18252C5.00182 8.79032 4.42895 9.44408 3.92508 10.0975C3.81626 10.2387 3.7157 10.3733 3.62376 10.5001C3.7157 10.627 3.81626 10.7616 3.92508 10.9028C4.42895 11.5562 5.00182 12.21 5.63032 12.8178C7.37487 14.5048 9.18939 15.5001 10.9436 15.5001C11.9171 15.5001 12.9091 15.1937 13.8974 14.6326ZM9.33572 10.0709C9.29934 10.2078 9.27995 10.3517 9.27995 10.5C9.27995 11.4205 10.0261 12.1667 10.9466 12.1667C11.095 12.1667 11.2388 12.1473 11.3758 12.1109L9.33572 10.0709ZM17.6889 13.7426L16.5104 12.5641C17.0388 12.0298 17.5246 11.4662 17.959 10.9027C18.0679 10.7616 18.1684 10.6269 18.2604 10.5001C18.1684 10.3733 18.0679 10.2387 17.959 10.0975C17.4552 9.44405 16.8823 8.79029 16.2538 8.1825C14.5093 6.49543 12.6947 5.50012 10.9405 5.50012C10.5052 5.50012 10.0663 5.56139 9.6256 5.6793L8.30729 4.36099C9.16766 4.01794 10.0464 3.83346 10.9405 3.83346C13.2135 3.83346 15.3869 5.02564 17.4124 6.98441C18.1034 7.65266 18.7286 8.36609 19.2789 9.07981C19.611 9.51049 19.8468 9.84928 19.9759 10.0511L20.263 10.5001L19.9759 10.9491C19.8468 11.151 19.611 11.4898 19.2789 11.9204C18.8029 12.5377 18.271 13.1548 17.6889 13.7426Z",fill:A})});var eE=({color:A="#5A5A5A",size:C=21})=>jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:C,height:C*.65,viewBox:"0 0 20 13",fill:"none",children:jsxRuntime.jsx("path",{d:"M9.94792 10.3334C10.9896 10.3334 11.875 9.96879 12.6042 9.23962C13.3333 8.51046 13.6979 7.62504 13.6979 6.58337C13.6979 5.54171 13.3333 4.65629 12.6042 3.92712C11.875 3.19796 10.9896 2.83337 9.94792 2.83337C8.90625 2.83337 8.02083 3.19796 7.29167 3.92712C6.5625 4.65629 6.19792 5.54171 6.19792 6.58337C6.19792 7.62504 6.5625 8.51046 7.29167 9.23962C8.02083 9.96879 8.90625 10.3334 9.94792 10.3334ZM9.94792 8.83337C9.32292 8.83337 8.79167 8.61462 8.35417 8.17712C7.91667 7.73962 7.69792 7.20837 7.69792 6.58337C7.69792 5.95837 7.91667 5.42712 8.35417 4.98962C8.79167 4.55212 9.32292 4.33337 9.94792 4.33337C10.5729 4.33337 11.1042 4.55212 11.5417 4.98962C11.9792 5.42712 12.1979 5.95837 12.1979 6.58337C12.1979 7.20837 11.9792 7.73962 11.5417 8.17712C11.1042 8.61462 10.5729 8.83337 9.94792 8.83337ZM9.94792 12.8334C7.92014 12.8334 6.07292 12.2674 4.40625 11.1355C2.73958 10.0035 1.53125 8.48615 0.78125 6.58337C1.53125 4.6806 2.73958 3.16324 4.40625 2.03129C6.07292 0.899346 7.92014 0.333374 9.94792 0.333374C11.9757 0.333374 13.8229 0.899346 15.4896 2.03129C17.1562 3.16324 18.3646 4.6806 19.1146 6.58337C18.3646 8.48615 17.1562 10.0035 15.4896 11.1355C13.8229 12.2674 11.9757 12.8334 9.94792 12.8334ZM9.94792 11.1667C11.5174 11.1667 12.9583 10.7535 14.2708 9.92712C15.5833 9.10073 16.5868 7.98615 17.2813 6.58337C16.5868 5.1806 15.5833 4.06601 14.2708 3.23962C12.9583 2.41323 11.5174 2.00004 9.94792 2.00004C8.37847 2.00004 6.9375 2.41323 5.625 3.23962C4.3125 4.06601 3.30903 5.1806 2.61458 6.58337C3.30903 7.98615 4.3125 9.10073 5.625 9.92712C6.9375 10.7535 8.37847 11.1667 9.94792 11.1667Z",fill:A})});var dn=({previewOnly:A=!1,format:C,onAccept:g=void 0,...E})=>{let[I,B]=wr.useState(!1),Q=E?.status==="error",o=["SSN"].some(t=>t===C),i=(()=>{switch(C){case"phone":return "(000) 000-0000";case"MBI":return "****-***-****";case"date":return "00/00/0000";case"email":return /^\S*@?\S*$/;case"SSN":return [{mask:I?"000-00-0000":"XXX-XX-0000",definitions:{X:{mask:"0",displayChar:"\u25CF",placeholderChar:"#"}},lazy:!1,overwrite:"shift"}];case"SSN":return "00000";case"currency":return [{mask:"$num",lazy:!1,blocks:{num:{mask:Number,scale:2,thousandsSeparator:",",padFractionalZeros:!0,radix:".",mapToRadix:["."]}}}];default:return C}})();return jsxRuntime.jsxs(EE,{children:[jsxRuntime.jsx(gE,{format:C,mask:i,unmask:!0,onAccept:g,disabled:A,error:Q,...E}),Q&&!o&&!!E?.suffix&&jsxRuntime.jsx(BE,{children:E.suffix}),o&&jsxRuntime.jsx(IE,{onClick:()=>B(!I),children:I?jsxRuntime.jsx(eE,{}):jsxRuntime.jsx(QE,{})})]})},oE=dn;var T1={Area:_g,Text:$g,Number:AE,Password:CE,Mask:oE};var iE=A=>{let C;switch(A){case"MBI":C={value:/^[1-9]{1}[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz]{1}[0-9]{1}-?[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz]{1}[0-9]{1}-?[^SLOIBZsloibz|^0-9]{1}[^SLOIBZsloibz|^0-9]{1}[0-9]{1}[0-9]{1}/g,message:"Invalid medicare number"};break;case"zipcode":C={value:/\d{5}/,message:"Invalid zipcode"};break;case"phone":C={value:/\d{10}/,message:"Invalid phone number"};break;case"SSN":C={value:/\d{9}/,message:"Invalid social security number"};break;case"currency":C={value:/\d*(?:\.\d{2})?/,message:"Invalid amount"};break;case"email":C={value:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Invalid email address"};break;default:C=A;}return C};var un=({name:A,label:C=null,details:g=null,formOptions:E={},pattern:I=void 0,format:B=void 0,textArea:Q=!1,password:e=!1,isLabelBold:o=!0,helpContent:i=void 0,helpLabel:t=void 0,errorMessage:r="This field is required",disableErrorState:n=!1,...L})=>{let{control:f,formState:{errors:w}}=reactHookForm.useFormContext(),u=n?!1:!!reactHookForm.get(w,A),J=reactHookForm.get(w,A)?.message?.toString()||r,m=({field:l})=>Q?jsxRuntime.jsx(T1.Area,{status:u?"error":"",suffix:u?jsxRuntime.jsx(O.ErrorExclamation,{}):null,...L,...l}):B?jsxRuntime.jsx(T1.Mask,{name:l.name,onBlur:l.onBlur,format:B,onAccept:a=>l.onChange(a),ref:l.ref,value:l.value,status:u?"error":"",suffix:u?jsxRuntime.jsx(O.ErrorExclamation,{}):null,...L}):e?jsxRuntime.jsx(T1.Password,{status:u?"error":"",suffix:u?jsxRuntime.jsx(O.ErrorExclamation,{}):null,...L,...l}):jsxRuntime.jsx(T1.Text,{status:u?"error":"",suffix:u?jsxRuntime.jsx(O.ErrorExclamation,{}):null,...L,...l}),U=I?{pattern:iE(I)}:{};return jsxRuntime.jsxs("div",{style:{width:"100%"},children:[jsxRuntime.jsx(T,{label:C,isLabelBold:o,required:!!E.required,details:g,helpLabel:t,helpContent:i}),jsxRuntime.jsx(Ng,{children:jsxRuntime.jsx(reactHookForm.Controller,{render:m,name:A,rules:{...U,...E},control:f})}),u&&jsxRuntime.jsx(Y,{text:J,includeIcon:!1})]})},W9=un;var vn=({label:A=null,isLabelBold:C=!0,name:g,disabled:E=!1,defaultValue:I=void 0,formOptions:B={},errorMessage:Q="This field is required.",options:e={},style:o={},...i})=>{let{control:t,formState:{errors:r}}=reactHookForm.useFormContext(),n=!!reactHookForm.get(r,g),L=reactHookForm.get(r,g)?.message?.toString()||Q;return jsxRuntime.jsxs("div",{style:o,children:[jsxRuntime.jsx(T,{label:A,isLabelBold:C,required:!!B.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:f})=>jsxRuntime.jsx(T1.Number,{disabled:E,status:n?"error":"",suffix:n?jsxRuntime.jsx(O.ErrorExclamation,{}):null,...i,...f}),name:g,defaultValue:I,rules:B,control:t,...e}),n&&jsxRuntime.jsx(Y,{text:L,includeIcon:!1})]})},nE=vn;var LE=a2__default.default.div`
|
|
1056
1056
|
position: relative;
|
|
1057
1057
|
margin-bottom: 24px;
|
|
1058
1058
|
|
|
@@ -1115,7 +1115,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1115
1115
|
padding: 12px 6px;
|
|
1116
1116
|
height: 57px;
|
|
1117
1117
|
border-bottom: 1px solid #000;
|
|
1118
|
-
`;var Pn=({label:A="",name:C,formOptions:g={},description:E="",previewOnly:I=!1,errorMessage:B=void 0,signatureType:Q=void 0,date:e=void 0,isAdvocate:o=!1,showIcon:i=!0,formStyle:t="MINIMAL",...r})=>{let{control:n,formState:{errors:L}}=reactHookForm.useFormContext(),f=Q==="advocate"?"Advocate":"Client",
|
|
1118
|
+
`;var Pn=({label:A="",name:C,formOptions:g={},description:E="",previewOnly:I=!1,errorMessage:B=void 0,signatureType:Q=void 0,date:e=void 0,isAdvocate:o=!1,showIcon:i=!0,formStyle:t="MINIMAL",...r})=>{let{control:n,formState:{errors:L}}=reactHookForm.useFormContext(),f=Q==="advocate"?"Advocate":"Client",w=o&&Q==="advocate"||!o&&Q==="client",u=({field:U})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(sE,{previewOnly:I,children:[i&&jsxRuntime.jsx(v9,{}),jsxRuntime.jsx(dE,{...U,...r})]}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(d.Body,{children:A})})]}),J=e?new Date(e).toLocaleDateString():"",m=({field:U})=>jsxRuntime.jsx(aE,{children:jsxRuntime.jsxs(lE,{children:[jsxRuntime.jsxs(fE,{children:[jsxRuntime.jsx(cE,{...U,...r,placeholder:`${f} Signature`,disabled:I||!w,hasError:!!L[C]}),jsxRuntime.jsx(K7,{children:`${f}`}),L[C]&&jsxRuntime.jsx(Y,{text:B,includeIcon:!1})]}),jsxRuntime.jsxs(pE,{children:[jsxRuntime.jsx(VE,{children:J}),jsxRuntime.jsx(K7,{children:"Date"})]})]})});return jsxRuntime.jsxs(LE,{previewOnly:I,children:[(A||Q)&&jsxRuntime.jsx(T,{label:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Q&&`${f} `,A]}),required:!0,isLabelBold:!0}),E,jsxRuntime.jsx(reactHookForm.Controller,{render:t==="MINIMAL"?u:m,name:C,rules:g,control:n})]})},uE=Pn;var qE=a2__default.default(antd.Radio)`
|
|
1119
1119
|
width: 100%;
|
|
1120
1120
|
height: 100%;
|
|
1121
1121
|
z-index: 2;
|
|
@@ -1411,7 +1411,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1411
1411
|
display: flex;
|
|
1412
1412
|
flex-flow: column;
|
|
1413
1413
|
gap: var(--spacing-m, 1rem);
|
|
1414
|
-
`;var _9=({option:A,name:C,inline:g,previewOnly:E=!1,hasError:I=!1,formOptions:B={},...Q})=>{let{register:e}=reactHookForm.useFormContext();return jsxRuntime.jsxs(zE,{inline:g,children:[jsxRuntime.jsx(UE,{type:"radio",...e(C,B),value:A.value,previewOnly:E,disabled:E,hasError:I,...Q}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(d.Body,{children:A.label})})]})},DE=({name:A,label:C,details:g="",options:E=[],inline:I=!1,allowOther:B=!1,previewOnly:Q=!1,formOptions:e={},errorMessage:o=void 0,...i})=>{let{formState:{errors:t}}=reactHookForm.useFormContext(),r=!!reactHookForm.get(t,A);return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(T,{label:C,required:!!e.required,isLabelBold:!0,details:g}),jsxRuntime.jsxs(PE,{inline:I,isColumns:E.length>5,children:[E.map(n=>jsxRuntime.jsx(_9,{option:n,name:A,inline:I,previewOnly:Q,formOptions:e,...i,hasError:r},`${A}-${n.value}`)),B&&jsxRuntime.jsxs(HE,{children:[jsxRuntime.jsx(_9,{option:{label:"Other",value:"other"},name:A,inline:I,...i},A),jsxRuntime.jsx(N3,{name:`${A}_other`,...i})]})]}),r&&jsxRuntime.jsx(Y,{text:o,includeIcon:!1})]})},Tn=({option:A,name:C,formOptions:g})=>{let{register:E,watch:I,formState:B}=reactHookForm.useFormContext(),Q=I(C)===A.value;return jsxRuntime.jsxs(SE,{selected:Q,hasError:!!B.errors[C],disabled:A.disabled||!1,children:[jsxRuntime.jsxs(kE,{children:[jsxRuntime.jsxs(OE,{selected:Q,children:[A.icon||null,A.label]}),jsxRuntime.jsx(FE,{type:"radio",value:A.value,...E(C,g)})]}),A.description&&jsxRuntime.jsx(JE,{selected:Q,children:A.description})]})},TE=({name:A,label:C=null,className:g="",options:E,formOptions:I={},id:B=""})=>jsxRuntime.jsxs(b7,{className:g,id:B,children:[C&&jsxRuntime.jsx(j7,{size:"lg",children:C}),jsxRuntime.jsx("div",{children:E.map(Q=>jsxRuntime.jsx(Tn,{option:Q,name:A,formOptions:I},`${Q.label}-${Q.value}`))})]}),Gn=({option:A,name:C,formOptions:g,showCaret:E=!1,onClick:I=void 0,onMouseEnter:B=()=>null,onMouseLeave:Q=()=>null})=>{let{register:e,watch:o}=reactHookForm.useFormContext(),i=o(C)===A.value,[t,r]=wr.useState(!1),n=F4[A.icon],L=web.useSpring(t?{transform:"translate(8px, 0px)"}:{transform:"translate(0px, 0px)"}),f=()=>{r(!0),B(A.value);},
|
|
1414
|
+
`;var _9=({option:A,name:C,inline:g,previewOnly:E=!1,hasError:I=!1,formOptions:B={},...Q})=>{let{register:e}=reactHookForm.useFormContext();return jsxRuntime.jsxs(zE,{inline:g,children:[jsxRuntime.jsx(UE,{type:"radio",...e(C,B),value:A.value,previewOnly:E,disabled:E,hasError:I,...Q}),jsxRuntime.jsx("label",{htmlFor:C,children:jsxRuntime.jsx(d.Body,{children:A.label})})]})},DE=({name:A,label:C,details:g="",options:E=[],inline:I=!1,allowOther:B=!1,previewOnly:Q=!1,formOptions:e={},errorMessage:o=void 0,...i})=>{let{formState:{errors:t}}=reactHookForm.useFormContext(),r=!!reactHookForm.get(t,A);return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(T,{label:C,required:!!e.required,isLabelBold:!0,details:g}),jsxRuntime.jsxs(PE,{inline:I,isColumns:E.length>5,children:[E.map(n=>jsxRuntime.jsx(_9,{option:n,name:A,inline:I,previewOnly:Q,formOptions:e,...i,hasError:r},`${A}-${n.value}`)),B&&jsxRuntime.jsxs(HE,{children:[jsxRuntime.jsx(_9,{option:{label:"Other",value:"other"},name:A,inline:I,...i},A),jsxRuntime.jsx(N3,{name:`${A}_other`,...i})]})]}),r&&jsxRuntime.jsx(Y,{text:o,includeIcon:!1})]})},Tn=({option:A,name:C,formOptions:g})=>{let{register:E,watch:I,formState:B}=reactHookForm.useFormContext(),Q=I(C)===A.value;return jsxRuntime.jsxs(SE,{selected:Q,hasError:!!B.errors[C],disabled:A.disabled||!1,children:[jsxRuntime.jsxs(kE,{children:[jsxRuntime.jsxs(OE,{selected:Q,children:[A.icon||null,A.label]}),jsxRuntime.jsx(FE,{type:"radio",value:A.value,...E(C,g)})]}),A.description&&jsxRuntime.jsx(JE,{selected:Q,children:A.description})]})},TE=({name:A,label:C=null,className:g="",options:E,formOptions:I={},id:B=""})=>jsxRuntime.jsxs(b7,{className:g,id:B,children:[C&&jsxRuntime.jsx(j7,{size:"lg",children:C}),jsxRuntime.jsx("div",{children:E.map(Q=>jsxRuntime.jsx(Tn,{option:Q,name:A,formOptions:I},`${Q.label}-${Q.value}`))})]}),Gn=({option:A,name:C,formOptions:g,showCaret:E=!1,onClick:I=void 0,onMouseEnter:B=()=>null,onMouseLeave:Q=()=>null})=>{let{register:e,watch:o}=reactHookForm.useFormContext(),i=o(C)===A.value,[t,r]=wr.useState(!1),n=F4[A.icon],L=web.useSpring(t?{transform:"translate(8px, 0px)"}:{transform:"translate(0px, 0px)"}),f=()=>{r(!0),B(A.value);},w=()=>{r(!1),Q(A.value);};return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsx(jE,{type:"radio",onClick:u=>I?I(u.currentTarget.value):null,value:A.value,...e(C,g),onMouseEnter:f,onMouseLeave:w}),jsxRuntime.jsxs(KE,{selected:i,children:[jsxRuntime.jsxs(antd.Flex,{align:"center",gap:16,children:[jsxRuntime.jsx(XE,{children:jsxRuntime.jsx(n,{active:i||t})}),jsxRuntime.jsxs("div",{style:{display:"flex",gap:4,flexDirection:"column"},children:[jsxRuntime.jsx(yE,{children:A.label}),A?.description&&jsxRuntime.jsx(ZE,{children:A.description})]})]}),E&&jsxRuntime.jsx(bE,{style:L,children:jsxRuntime.jsx(O.Caret,{direction:"right",color:i||t?"#285E50":"#7F7F7F"})})]})]})},GE=({name:A,label:C=null,className:g="",options:E,onClick:I=void 0,onMouseEnter:B=()=>null,onMouseLeave:Q=()=>null,showCaret:e=!1,formOptions:o={}})=>jsxRuntime.jsxs(b7,{className:g,children:[C&&jsxRuntime.jsx(j7,{size:"lg",children:C}),jsxRuntime.jsx(YE,{children:E.map(i=>jsxRuntime.jsx(Gn,{option:i,name:A,onClick:I,onMouseEnter:B,onMouseLeave:Q,formOptions:o,showCaret:e},`${i.label}-${i.value}`))})]}),WE=({options:A,name:C,formOptions:g=void 0,disabled:E=!1,errorMessage:I=void 0,onChange:B=()=>null})=>{let{control:Q,formState:e}=reactHookForm.useFormContext(),o=!!e.errors[C];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactHookForm.Controller,{rules:g,control:Q,name:C,render:({field:i})=>jsxRuntime.jsx(X7,{options:A,disabled:E,...i,onChange:t=>{i.onChange(t),B(t.target.value);}})}),o&&jsxRuntime.jsx(Y,{text:I,includeIcon:!1})]})};var NE=a2__default.default.div`
|
|
1415
1415
|
position: relative;
|
|
1416
1416
|
margin-bottom: 24px;
|
|
1417
1417
|
z-index: 40;
|
|
@@ -1481,7 +1481,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1481
1481
|
left: 0;
|
|
1482
1482
|
`;a2__default.default(d.Body)`
|
|
1483
1483
|
margin-bottom: 24px;
|
|
1484
|
-
`;var CL=({label:A="",name:C,details:g="",placeholder:E="",options:I=[],allowInput:B=!1,previewOnly:Q=!1,isLabelBold:e=!0,formOptions:o={},onChange:i=()=>null,containerStyle:t={}})=>{let r=wr.useRef(),n=reactHookForm.useFormContext(),{errors:L}=n.formState;n.register(C,o);let f=!!reactHookForm.get(L,C),
|
|
1484
|
+
`;var CL=({label:A="",name:C,details:g="",placeholder:E="",options:I=[],allowInput:B=!1,previewOnly:Q=!1,isLabelBold:e=!0,formOptions:o={},onChange:i=()=>null,containerStyle:t={}})=>{let r=wr.useRef(),n=reactHookForm.useFormContext(),{errors:L}=n.formState;n.register(C,o);let f=!!reactHookForm.get(L,C),w=reactHookForm.get(L,C)?.message?.toString(),[u,J]=wr.useState(!1),[m,U]=wr.useState(""),[l,a]=wr.useState(I),S=web.useSpring(u?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});wr.useEffect(()=>{let F=g2=>{u&&r.current&&!r.current.contains(g2.target)&&J(!1);};return document.addEventListener("mousedown",g2=>F(g2)),()=>{document.removeEventListener("mousedown",g2=>F(g2));}},[u]);let R=I.find(F=>F.value===n.getValues(C))?.label,k=F=>{U(""),n.setValue(C,F.value),n.trigger(C),i&&i(F),J(!1);};wr.useEffect(()=>{if(J(!!m),m){let F=I.filter(g2=>String(g2.value).toLowerCase().match(m.toLowerCase()));a(F),n.setValue(C,m);}else a(I);},[m,I.length]);let W=F=>{F.code==="Enter"&&F.preventDefault();};return jsxRuntime.jsxs(NE,{style:t,children:[jsxRuntime.jsx(T,{label:A,isLabelBold:e,required:!!o.required,details:g}),jsxRuntime.jsx(_E,{onClick:()=>J(!u),previewOnly:Q,children:Q?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("i",{style:{color:"#7F7F7F"},children:"--Select--"}),jsxRuntime.jsx(O.Caret,{direction:"down",color:"#7F7F7F"})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[R||jsxRuntime.jsx("i",{children:E}),B&&jsxRuntime.jsx(gI,{onKeyDown:W,value:m,onChange:F=>U(F.target.value),type:"text"}),jsxRuntime.jsx(O.Caret,{direction:u?"up":"down"}),jsxRuntime.jsx($E,{style:S,ref:r,children:l.map(F=>{let{label:g2}=F,P2=F.label===R;return jsxRuntime.jsxs(AI,{onClick:()=>k(F),children:[jsxRuntime.jsx(d.Body,{size:"lg",children:g2}),jsxRuntime.jsx(CI,{isCurrent:P2,children:jsxRuntime.jsx(O.Check,{color:"#fff"})})]},F.value)})})]})}),f&&jsxRuntime.jsx(Y,{text:w,includeIcon:!1})]})},QI=CL;var eI=a2__default.default.div`
|
|
1485
1485
|
background: #eeeeee;
|
|
1486
1486
|
border-radius: 10px;
|
|
1487
1487
|
border: 1px solid #ccc;
|
|
@@ -1592,7 +1592,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1592
1592
|
border-color: #3f937c;
|
|
1593
1593
|
box-shadow: none;
|
|
1594
1594
|
}
|
|
1595
|
-
`;var IL=({style:A={},sort:C=!0,...g})=>{let E=(B,Q)=>Q?.label?(Q.label.toString().toLowerCase()??"").includes(B.toLowerCase()):!1,I=(B,Q)=>{let e=B?.label?.toString().toLowerCase()??"",o=Q?.label?.toString().toLowerCase()??"";return e.localeCompare(o)};return jsxRuntime.jsx(tI,{showSearch:!0,style:{width:"100%",...A},filterOption:E,filterSort:C?I:void 0,virtual:!1,...g})},K5=IL;var oL=({label:A="",name:C,details:g="",placeholder:E="",unit:I="",options:B=[],disabled:Q=!1,mode:e=void 0,previewOnly:o=!1,isLabelBold:i=!0,formOptions:t={},onChange:r=()=>null,showPreview:n=!1,containerStyle:L={},style:f={},allowClear:
|
|
1595
|
+
`;var IL=({style:A={},sort:C=!0,...g})=>{let E=(B,Q)=>Q?.label?(Q.label.toString().toLowerCase()??"").includes(B.toLowerCase()):!1,I=(B,Q)=>{let e=B?.label?.toString().toLowerCase()??"",o=Q?.label?.toString().toLowerCase()??"";return e.localeCompare(o)};return jsxRuntime.jsx(tI,{showSearch:!0,style:{width:"100%",...A},filterOption:E,filterSort:C?I:void 0,virtual:!1,...g})},K5=IL;var oL=({label:A="",name:C,details:g="",placeholder:E="",unit:I="",options:B=[],disabled:Q=!1,mode:e=void 0,previewOnly:o=!1,isLabelBold:i=!0,formOptions:t={},onChange:r=()=>null,showPreview:n=!1,containerStyle:L={},style:f={},allowClear:w=!0,loading:u=!1,value:J=void 0,errorMessage:m="This field is required",defaultValue:U=void 0,...l})=>{let a=reactHookForm.useFormContext();a.register(C,t);let{control:S,formState:{errors:R},getValues:k}=reactHookForm.useFormContext(),W=!!reactHookForm.get(R,C),F=m||R?.[C]?.message?.toString(),P2=k()[C],s=P=>{a.setValue(C,P,{shouldDirty:!0,shouldTouch:!0}),a.trigger(C),r(P);},p=({field:P})=>jsxRuntime.jsx(K5,{allowClear:w,loading:u,mode:e,showSearch:!0,onChange:s,placeholder:E,options:B,isError:W,disabled:Q||o,value:P.value??J,defaultValue:U,style:f,...l});return jsxRuntime.jsxs("div",{style:L,children:[jsxRuntime.jsx(T,{label:A,isLabelBold:i,required:!!t.required,details:g}),jsxRuntime.jsxs(iI,{children:[jsxRuntime.jsx(reactHookForm.Controller,{control:S,name:C,rules:t,render:p}),I&&jsxRuntime.jsx(d.Body,{size:"lg",children:I})]}),o&&n&&jsxRuntime.jsx(eI,{children:B.map(P=>jsxRuntime.jsx(oI,{selected:P.value===P2,children:P.label}))}),W&&jsxRuntime.jsx(Y,{text:F,includeIcon:!1})]})},LI=oL;var nL=({label:A="Submit",isSubmitting:C=!1,hideWhenInvalid:g=!1,...E})=>{let I=reactHookForm.useFormContext(),{isValid:B}=I.formState,e=web.useSpring((g?B:!0)?{position:"relative",zIndex:0,opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:250}}:{opacity:0,transform:"translate(0px, -3px)",display:"none",config:{duration:250}});return jsxRuntime.jsx(web.animated.div,{style:e,...E,children:jsxRuntime.jsx(r2.Primary,{htmlType:"submit",isSubmitting:C,...E,children:A})})},aI=nL;var fI=a2__default.default.div`
|
|
1596
1596
|
position: relative;
|
|
1597
1597
|
z-index: 20;
|
|
1598
1598
|
`,pI=a2__default.default.div`
|
|
@@ -1714,7 +1714,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1714
1714
|
stroke: ${({color:A})=>A||"#fff"};
|
|
1715
1715
|
}
|
|
1716
1716
|
}
|
|
1717
|
-
`,Y7=({color:A=void 0,size:C="sm"})=>jsxRuntime.jsx(aL,{color:A,size:C,children:jsxRuntime.jsx("div",{className:"loader",children:jsxRuntime.jsx("svg",{className:"circular-loader",viewBox:"25 25 50 50",children:jsxRuntime.jsx("circle",{className:"loader-path",cx:"50",cy:"50",r:"20",fill:"none"})})})});var VL=A=>{let C="",g="",E="",I="",B="";A.address_components.forEach(i=>{i.types.some(t=>{switch(t){case"locality":return C=i.short_name,!0;case"administrative_area_level_1":return g=i.short_name,!0;case"street_number":return E=i.short_name,!0;case"route":return I=i.short_name,!0;case"postal_code":return B=i.short_name,!0;default:return !1}});});let Q=A.geometry.location.lat(),e=A.geometry.location.lng(),o=`${E} ${I}`;return {city:C,state:g,street:o,zip:B,lat:Q,long:e}},hL=({handleSelect:A,option:C,value:g})=>{let{description:E}=C,I=E===g,B=E.replace(", USA","");return jsxRuntime.jsx(VI,{isCurrent:I,onClick:()=>A(B),children:jsxRuntime.jsx(d.Body,{size:"lg",children:B})})},uL=["places"],RL=({label:A="",details:C="",formOptions:g={},previewOnly:E=!1,isLabelBold:I=!0,locationType:B="city",streetFieldName:Q="street",cityFieldName:e="city",stateFieldName:o="state",zipFieldName:i="zip",cityWithStateFieldName:t="city_with_state",placeholder:r="",containerStyle:n={},errorMessage:L="This field is required",hasError:f=!1})=>{let
|
|
1717
|
+
`,Y7=({color:A=void 0,size:C="sm"})=>jsxRuntime.jsx(aL,{color:A,size:C,children:jsxRuntime.jsx("div",{className:"loader",children:jsxRuntime.jsx("svg",{className:"circular-loader",viewBox:"25 25 50 50",children:jsxRuntime.jsx("circle",{className:"loader-path",cx:"50",cy:"50",r:"20",fill:"none"})})})});var VL=A=>{let C="",g="",E="",I="",B="";A.address_components.forEach(i=>{i.types.some(t=>{switch(t){case"locality":return C=i.short_name,!0;case"administrative_area_level_1":return g=i.short_name,!0;case"street_number":return E=i.short_name,!0;case"route":return I=i.short_name,!0;case"postal_code":return B=i.short_name,!0;default:return !1}});});let Q=A.geometry.location.lat(),e=A.geometry.location.lng(),o=`${E} ${I}`;return {city:C,state:g,street:o,zip:B,lat:Q,long:e}},hL=({handleSelect:A,option:C,value:g})=>{let{description:E}=C,I=E===g,B=E.replace(", USA","");return jsxRuntime.jsx(VI,{isCurrent:I,onClick:()=>A(B),children:jsxRuntime.jsx(d.Body,{size:"lg",children:B})})},uL=["places"],RL=({label:A="",details:C="",formOptions:g={},previewOnly:E=!1,isLabelBold:I=!0,locationType:B="city",streetFieldName:Q="street",cityFieldName:e="city",stateFieldName:o="state",zipFieldName:i="zip",cityWithStateFieldName:t="city_with_state",placeholder:r="",containerStyle:n={},errorMessage:L="This field is required",hasError:f=!1})=>{let w=wr.useRef(),[u,J]=wr.useState(!1),[m,U]=wr.useState(!1),l=reactHookForm.useFormContext(),a;switch(B){case"city":a=e;break;case"full":a=Q;break;case"city_with_state":a=t;break;default:return null}let S=web.useSpring(u?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}});wr.useEffect(()=>{let q=z=>{u&&w.current&&!w.current.contains(z.target)&&J(!1);};return document.addEventListener("mousedown",z=>q(z)),()=>{document.removeEventListener("mousedown",z=>q(z));}},[u]);let R=l.getValues(a)?`${l.getValues(a)}, ${l.getValues(o)}`:"",{value:k,suggestions:{data:W,loading:F},setValue:g2,clearSuggestions:P2}=pL__default.default({requestOptions:{...["city","city_with_state"].includes(B)?{types:["locality","postal_code"]}:{},componentRestrictions:{country:"us"}}});wr.useEffect(()=>{if(F){U(F);return}setTimeout(()=>{U(F);},2e3);},[F]);let s=web.useSpring(m?{opacity:1,transform:"translate(0px, 0px)",config:{duration:400}}:{opacity:0,transform:"translate(5px, 0px)",config:{duration:200}}),p=q=>{g2(q.target.value),l.setValue(o,""),B==="full"&&(l.setValue(i,""),l.setValue(e,"")),l.trigger(a),q.target.value.length>=3&&J(!0);},P=q=>{g2(q,!1),P2(),!(q.length<=2)&&pL.getGeocode({address:q}).then(z=>{let{city:h,state:H,street:j,zip:D,lat:y,long:m2}=VL(z[0]),l2=[a,e,o];l.setValue(e,h),l.setValue(o,H),B==="full"&&(l.setValue(Q,j),l.setValue(i,D),l2.push(Q,i)),B==="city_with_state"&&l.setValue(t,`${h}, ${H}`),l.setValue("lat",y),l.setValue("long",m2),l.trigger(l2);}).catch(z=>console.error(`Google Maps API error: ${z}`));},K=q=>{q.code==="Enter"&&q.preventDefault();};return jsxRuntime.jsxs(fI,{children:[jsxRuntime.jsx(T,{label:A,isLabelBold:I,required:!!g.required,details:C}),E?jsxRuntime.jsx(uI,{size:"md",children:R||"N/A"}):jsxRuntime.jsxs(pI,{style:n,children:[jsxRuntime.jsx(hI,{onKeyDown:K,type:"text",placeholder:r,...l.register(a,{...g,onChange:p})}),W.length>0&&jsxRuntime.jsx(dI,{style:S,ref:w,children:W.map(q=>jsxRuntime.jsx(hL,{handleSelect:P,option:q,value:k},q.description))}),jsxRuntime.jsx(cI,{style:s,children:jsxRuntime.jsx(Y7,{size:"sm"})})]}),f&&jsxRuntime.jsx(Y,{text:L,includeIcon:!1})]})},MI=({api_key:A,...C})=>{let{isLoaded:g}=api.useLoadScript({googleMapsApiKey:A||process.env.GOOGLE_MAPS_API_KEY||"",libraries:uL});return g?jsxRuntime.jsx(RL,{...C}):null};var vL=a2__default.default(antd.TimePicker)`
|
|
1718
1718
|
height: 50px;
|
|
1719
1719
|
border-color: #424242;
|
|
1720
1720
|
`,ML=({onChange:A=()=>null,format:C="h:mma",...g})=>jsxRuntime.jsx(vL,{use12Hours:!0,format:C,onChange:A,...g}),D7=ML;var HL=a2__default.default.div`
|
|
@@ -1806,11 +1806,11 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1806
1806
|
border: 0.766898px solid;
|
|
1807
1807
|
border-color: ${A=>A.isCurrent?"#285E50 !important":"#3f937c"};
|
|
1808
1808
|
background: ${A=>A.isCurrent?"#285E50 !important":"#FFF"};
|
|
1809
|
-
`,Cs=({label:A="",name:C,details:g="",options:E=[],previewOnly:I=!1})=>{let B=wr.useRef(),Q=reactHookForm.useFormContext(),[e,o]=wr.useState(!1),[i,t]=wr.useState(""),[r,n]=wr.useState(Q.getValues(C)||[]),L=wr.useRef({search:i,keywords:r});wr.useEffect(()=>{L.current={search:i,keywords:r};},[i,r]);let[f,
|
|
1809
|
+
`,Cs=({label:A="",name:C,details:g="",options:E=[],previewOnly:I=!1})=>{let B=wr.useRef(),Q=reactHookForm.useFormContext(),[e,o]=wr.useState(!1),[i,t]=wr.useState(""),[r,n]=wr.useState(Q.getValues(C)||[]),L=wr.useRef({search:i,keywords:r});wr.useEffect(()=>{L.current={search:i,keywords:r};},[i,r]);let[f,w]=wr.useState(E),u=web.useSpring(e?{opacity:1,transform:"translate(0px, 0px)",display:"block",config:{duration:150}}:{opacity:0,transform:"translate(0px, -2px)",display:"none",config:{duration:150}}),J=E.find(R=>R===Q.getValues(C)),m=R=>{let k=[...L.current.keywords,R];t(""),n(k),Q.setValue(C,k),o(!1);},U=R=>R?R.charAt(0).toUpperCase()+R.slice(1).toLowerCase():"",l=()=>{if(!L.current.search)return;let R=U(L.current.search);m(R);};wr.useEffect(()=>{let R=k=>{e&&B.current&&!B.current.contains(k.target)&&(l(),o(!1));};return document.addEventListener("mousedown",k=>R(k)),()=>{document.removeEventListener("mousedown",k=>R(k));}},[e]);let a=R=>{R.code==="Enter"&&(l(),R.preventDefault());},S=R=>{let k=r.filter(W=>W!==R);n(k),t(""),Q.setValue(C,k);};return wr.useEffect(()=>{if(o(!!i),i){let R=E.filter(k=>k.toLowerCase().match(i.toLowerCase()));w(R);}else w(E);},[i]),wr.useEffect(()=>{let R=E.filter(k=>!r.includes(k));w(R);},[r]),jsxRuntime.jsxs(DL,{children:[jsxRuntime.jsx(TL,{size:"lg",children:A}),g&&jsxRuntime.jsx(GL,{children:g}),!I&&jsxRuntime.jsxs(WL,{onClick:()=>o(!e),children:[jsxRuntime.jsx(u9,{}),J,jsxRuntime.jsx(_L,{onKeyDown:a,value:i,onChange:R=>t(R.target.value),type:"text",style:{marginLeft:"45px",width:"calc(100% - 80px)"}}),jsxRuntime.jsxs(NL,{style:u,ref:B,children:[f.map(R=>{let k=R===J;return jsxRuntime.jsxs(HI,{onClick:()=>m(R),children:[jsxRuntime.jsx(d.Body,{size:"lg",children:R}),jsxRuntime.jsx(As,{isCurrent:k,children:jsxRuntime.jsx(O.Check,{color:"#fff"})})]},R)}),!f.length&&jsxRuntime.jsx(HI,{onClick:()=>l(),children:jsxRuntime.jsx(d.Body,{size:"lg",children:"Add Option"})},"add")]})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:[I&&r.length===0&&"N/A",r.map(R=>jsxRuntime.jsxs($L,{onClick:()=>S(R),children:[R,!I&&jsxRuntime.jsx(L9,{})]},R))]})]})},SI=Cs;var Qs=({defaultState:A=!1,name:C,label:g={active:"YES",inactive:"NO"},handleEvent:E=null,value:I,disabled:B=!1,loading:Q=!1})=>{let e=reactHookForm.useFormContext(),[o,i]=wr.useState(A);wr.useEffect(()=>{e&&A&&e.setValue(C,I),i(A);},[A]);let t=r=>{B||(e&&e.setValue(C,r?I:null),E&&E(r),i(r));};return jsxRuntime.jsx(antd.Switch,{defaultChecked:A,checkedChildren:g.active,unCheckedChildren:g.inactive,checked:o,loading:Q,disabled:B,onChange:t})},G7=Qs;var Ls=a2__default.default(antd.DatePicker)`
|
|
1810
1810
|
padding: 12px 24px;
|
|
1811
1811
|
width: 100%;
|
|
1812
1812
|
max-width: 25rem;
|
|
1813
|
-
`,ss=({label:A=null,isLabelBold:C=!0,name:g,details:E=void 0,disabled:I=!1,defaultValue:B=void 0,
|
|
1813
|
+
`,ss=({label:A=null,isLabelBold:C=!0,name:g,details:E=void 0,disabled:I=!1,defaultValue:B=void 0,returnFormat:Q="string",startRange:e=null,endRange:o=null,formOptions:i={},errorMessage:t="This field is required.",options:r={},style:n={},format:L="MM/DD/YYYY",...f})=>{let{control:w,formState:{errors:u}}=reactHookForm.useFormContext(),J=!!reactHookForm.get(u,g),m=u?.[g]?.message?.toString()||t,U=a=>a?!!(e&&a<X5__default.default(e).endOf("day")||o&&a>X5__default.default(o).endOf("day")):!1,l=a=>{if(a)return X5__default.default(a);if(B)return X5__default.default(B)};return jsxRuntime.jsxs("div",{style:n,children:[jsxRuntime.jsx(T,{label:A,details:E,isLabelBold:C,required:!!i.required}),jsxRuntime.jsx(reactHookForm.Controller,{render:({field:a})=>jsxRuntime.jsx(Ls,{format:L,disabled:I,disabledDate:U,defaultValue:l(a.value),status:J?"error":"",onChange:(S,R)=>a.onChange(Q==="date"?S:R),value:a.value?X5__default.default(a.value):null,changeOnBlur:!0,...f}),name:g,rules:i,control:w,...r}),J&&jsxRuntime.jsx(Y,{text:m,includeIcon:!1})]})},kI=ss;var OI=a2__default.default.div`
|
|
1814
1814
|
display: flex;
|
|
1815
1815
|
flex: 1;
|
|
1816
1816
|
align-items: center;
|
|
@@ -1820,7 +1820,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1820
1820
|
gap: 8px;
|
|
1821
1821
|
`,W7=a2__default.default(d.Body)`
|
|
1822
1822
|
color: rgba(135, 135, 135);
|
|
1823
|
-
`;var{Dragger:ps}=antd.Upload,ds=({label:A="",name:C,disabled:g=!1,description:E="",isLabelBold:I=!0,formOptions:B={},onChange:Q,onRemove:e,onDownload:o,onDrop:i,defaultValue:t=void 0,containerStyle:r={},errorMessage:n=void 0,action:L="",headers:f={},uploadData:
|
|
1823
|
+
`;var{Dragger:ps}=antd.Upload,ds=({label:A="",name:C,disabled:g=!1,description:E="",isLabelBold:I=!0,formOptions:B={},onChange:Q,onRemove:e,onDownload:o,onDrop:i,defaultValue:t=void 0,containerStyle:r={},errorMessage:n=void 0,action:L="",headers:f={},uploadData:w={},defaultFileList:u=[],...J})=>{reactHookForm.useFormContext().register(C,B);let{getFieldState:U,formState:{errors:l}}=reactHookForm.useFormContext(),a=!!reactHookForm.get(l,C);return jsxRuntime.jsxs("div",{style:r,children:[jsxRuntime.jsx(T,{label:A,isLabelBold:I,required:!!B.required,details:E}),jsxRuntime.jsx("div",{style:{height:"0px",width:"0px",opacity:0},children:jsxRuntime.jsx(W9,{formOptions:{required:U(C).invalid},name:`${C}_validation`,type:"text"})}),jsxRuntime.jsxs(ps,{name:"file",multiple:!0,onChange:Q,onDrop:i,onRemove:e,onDownload:o,action:L,disabled:g,headers:f,defaultFileList:u,showUploadList:{showDownloadIcon:!0},data:w,...J,capture:void 0,children:[jsxRuntime.jsx(O.Attachment,{}),jsxRuntime.jsxs(OI,{children:[jsxRuntime.jsx(W7,{children:jsxRuntime.jsx("span",{style:{fontWeight:"bold"},children:"DRAG FILE HERE"})}),jsxRuntime.jsx(W7,{size:"sm",children:"or click to browse (10 MB max)"})]})]}),t?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Current Value: ",t]}):null,a&&jsxRuntime.jsx(Y,{text:n,includeIcon:!1})]})},KI=ds;var hs=A=>{let{title:C,description:g}=A;return jsxRuntime.jsxs(g1,{vertical:!0,style:{paddingBottom:24},children:[jsxRuntime.jsx(d.Header,{children:C}),g&&jsxRuntime.jsx(d.Body,{children:g})]})};function e4({defaultExpandAll:A,treeData:C,checkedKeys:g,...E}){let[I,B]=wr.useState([]),[Q,e]=wr.useState([]),o=t=>{let r=[];return t.forEach(n=>{n.key&&r.push(n.key),Array.isArray(n.children)&&(r=r.concat(o(n.children)));}),r},i=(t,r)=>{if(Q.includes(r.node.key)){let L=new Set([r.node.key]);r.node.children&&r.node.children.forEach(({key:f})=>L.add(f)),e(f=>f.filter(w=>!L.has(w))),B(f=>f.filter(w=>!L.has(w)));}else e(L=>[...L,r.node.key]),B(L=>[...L,r.node.key]);};return wr.useEffect(()=>{if(!A||!C)return;let t=o(C);e(t),B(t);},[A]),wr.useEffect(()=>{g&&(A||(e(g),B(g)));},[A,g]),jsxRuntime.jsx(antd.Tree,{switcherIcon:null,expandedKeys:I,checkedKeys:g,checkable:!0,checkStrictly:!0,selectable:!1,treeData:C,onCheck:i,titleRender:hs,style:{backgroundColor:"#F4F8F7"},...E})}var ms=({name:A,...C})=>{let{control:g}=reactHookForm.useFormContext();return jsxRuntime.jsx(reactHookForm.Controller,{control:g,name:A,render:({field:E})=>jsxRuntime.jsx(e4,{onCheck:I=>{Array.isArray(I)?E.onChange(I):E.onChange(I.checked);},checkedKeys:E.value,onBlur:E.onBlur,...C})})},yI=ms;var ZI=a2__default.default.div`
|
|
1824
1824
|
position: relative;
|
|
1825
1825
|
z-index: 40;
|
|
1826
1826
|
`;a2__default.default(d.Body)`
|
|
@@ -1887,7 +1887,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
1887
1887
|
width: auto;
|
|
1888
1888
|
height: auto;
|
|
1889
1889
|
}
|
|
1890
|
-
`;var Hs={dissatisfied:{iconFill:"#DA4D54",background:"#F1E1E2"},neutral:{iconFill:"#D7A13B",background:"#F4E5CA"},satisfied:{iconFill:"#285E50",background:"#D4E2DD"}};function o4({iconProps:A={},containerStyles:C={},value:g=void 0,onChange:E=void 0}){let[I,B]=wr.useState(g),Q=o=>B(o),e=o=>I===o;return wr.useEffect(()=>{E&&E(I);},[I]),jsxRuntime.jsx(g1,{gap:".5rem",style:{...C},children:Object.values(R9).map(o=>{let{iconFill:i,background:t}=Hs[o],r=e(o);return jsxRuntime.jsx(GI,{backgroundColor:I?t:"#ffffff",onClick:()=>Q(o),isActive:r,children:jsxRuntime.jsx(O.Sentiment,{...A,variant:o,color:r?i:"#7F7F7F"})})})})}function A6({name:A,...C}){let{control:g}=reactHookForm.useFormContext();return jsxRuntime.jsx(reactHookForm.Controller,{control:g,name:A,render:({field:{value:E,onChange:I}})=>jsxRuntime.jsx(o4,{...C,onChange:I,value:E})})}var A5={ButtonRadioGroup:GE,Container:Gg,Checkbox:Z9,CheckboxGroup:Zg,CheckboxCardGroup:Yg,InputLabel:T,DateSelect:kI,TextInput:N3,Text:W9,TimePicker:wI,TimeSelect:zI,Radio:_9,RadioGroup:DE,NourishRadio:WE,NourishCheckbox:Dg,CardRadioGroup:TE,Number:nE,Select:QI,SelectMenu:LI,SentimentSelector:A6,Signature:uE,Submit:aI,LocationSelect:MI,Keyword:SI,Toggle:G7,FileUpload:KI,Tree:yI,DateDropdown:TI};var Ys=()=>Array.from({length:12},(C,g)=>({label:new Date(g,g).toLocaleString("en-US",{month:"long"}),value:g+1})),Ds=(A,C)=>{let g=A||1,E=C||2024,I=new Date(E,g,0).getDate();return Array.from({length:I},(Q,e)=>({label:e+1,value:e+1}))},Ts=()=>Array.from({length:110},(C,g)=>{let E=new Date().getFullYear()-g;return {label:E,value:E}}),Gs=({label:A="",details:C=void 0,isLabelBold:g=!1,required:E=!1,onChange:I=()=>null,defaultValue:B=null,hasError:Q=!1})=>{let e=wr.useRef(null),[o,i]=wr.useState(!1),t=reactHookForm.useForm({defaultValues:{month:null,day:null,year:null}}),{reset:r}=t;wr.useEffect(()=>{if(!B)return;let f=new Date(B);r({month:f.getMonth()+1,day:f.getDate(),year:f.getFullYear()});},[B]);let n=t.watch(),L=Ds(n?.month,n?.year);return wr.useEffect(()=>{let f=L.find(
|
|
1890
|
+
`;var Hs={dissatisfied:{iconFill:"#DA4D54",background:"#F1E1E2"},neutral:{iconFill:"#D7A13B",background:"#F4E5CA"},satisfied:{iconFill:"#285E50",background:"#D4E2DD"}};function o4({iconProps:A={},containerStyles:C={},value:g=void 0,onChange:E=void 0}){let[I,B]=wr.useState(g),Q=o=>B(o),e=o=>I===o;return wr.useEffect(()=>{E&&E(I);},[I]),jsxRuntime.jsx(g1,{gap:".5rem",style:{...C},children:Object.values(R9).map(o=>{let{iconFill:i,background:t}=Hs[o],r=e(o);return jsxRuntime.jsx(GI,{backgroundColor:I?t:"#ffffff",onClick:()=>Q(o),isActive:r,children:jsxRuntime.jsx(O.Sentiment,{...A,variant:o,color:r?i:"#7F7F7F"})})})})}function A6({name:A,...C}){let{control:g}=reactHookForm.useFormContext();return jsxRuntime.jsx(reactHookForm.Controller,{control:g,name:A,render:({field:{value:E,onChange:I}})=>jsxRuntime.jsx(o4,{...C,onChange:I,value:E})})}var A5={ButtonRadioGroup:GE,Container:Gg,Checkbox:Z9,CheckboxGroup:Zg,CheckboxCardGroup:Yg,InputLabel:T,DateSelect:kI,TextInput:N3,Text:W9,TimePicker:wI,TimeSelect:zI,Radio:_9,RadioGroup:DE,NourishRadio:WE,NourishCheckbox:Dg,CardRadioGroup:TE,Number:nE,Select:QI,SelectMenu:LI,SentimentSelector:A6,Signature:uE,Submit:aI,LocationSelect:MI,Keyword:SI,Toggle:G7,FileUpload:KI,Tree:yI,DateDropdown:TI};var Ys=()=>Array.from({length:12},(C,g)=>({label:new Date(g,g).toLocaleString("en-US",{month:"long"}),value:g+1})),Ds=(A,C)=>{let g=A||1,E=C||2024,I=new Date(E,g,0).getDate();return Array.from({length:I},(Q,e)=>({label:e+1,value:e+1}))},Ts=()=>Array.from({length:110},(C,g)=>{let E=new Date().getFullYear()-g;return {label:E,value:E}}),Gs=({label:A="",details:C=void 0,isLabelBold:g=!1,required:E=!1,onChange:I=()=>null,defaultValue:B=null,hasError:Q=!1})=>{let e=wr.useRef(null),[o,i]=wr.useState(!1),t=reactHookForm.useForm({defaultValues:{month:null,day:null,year:null}}),{reset:r}=t;wr.useEffect(()=>{if(!B)return;let f=new Date(B);r({month:f.getMonth()+1,day:f.getDate(),year:f.getFullYear()});},[B]);let n=t.watch(),L=Ds(n?.month,n?.year);return wr.useEffect(()=>{let f=L.find(w=>w.value===n.day);if(n.month&&n.day&&n.year&&f){let w=new Date(n.year,n.month-1,n.day);I(w);}else I(null);},[n.month,n.day,n.year]),wr.useEffect(()=>{e.current&&i(!0);},[e,o]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:e}),o&&reactDom.createPortal(jsxRuntime.jsxs(A5.Container,{formMethods:t,onSubmit:()=>null,children:[jsxRuntime.jsx(T,{label:A,isLabelBold:g,required:!!E,details:C}),jsxRuntime.jsxs(JC,{gap:8,hasError:Q,children:[jsxRuntime.jsx(A5.SelectMenu,{name:"month",options:Ys(),placeholder:"Month",containerStyle:{width:"100%"},sort:!1}),jsxRuntime.jsx(A5.SelectMenu,{name:"day",options:L,placeholder:"Day",containerStyle:{width:"100%"},sort:!1}),jsxRuntime.jsx(A5.SelectMenu,{name:"year",options:Ts(),placeholder:"Year",containerStyle:{width:"100%"}})]})]}),e.current||document.body)]})},_7=Gs;var $s=({value:A=null,onChange:C,startRange:g=null,endRange:E=null,defaultValue:I=X5__default.default(),format:B=null,placeholder:Q=null,className:e=null,hasError:o=!1,disabled:i=!1,...t})=>{let[r,n]=wr.useState(!1),L=w=>w?!!(g&&w<X5__default.default(g).endOf("day")||E&&w>X5__default.default(E).endOf("day")):!1,f=o?w3.colors.fail:"#5a5a5a";return jsxRuntime.jsx(antd.DatePicker,{className:e,placeholder:Q,format:B,disabled:i,disabledDate:L,onChange:(w,u)=>{C&&C(u,w);},onFocus:()=>{n(!0);},onBlur:()=>{n(!1);},value:A?X5__default.default(A):I,style:{width:"100%",height:"50px",boxSizing:"border-box",borderRadius:"8px",borderWidth:"1px",borderStyle:"solid",borderColor:r?w3.colors.secondaryGreen:f,padding:"20px 23px",backgroundColor:"#fff",fontFamily:w3.typography.family.body,fontWeight:w3.typography.weight.normal,fontStyle:"normal",fontSize:"16px",outlineStyle:"none",boxShadow:r?`0 0 0 1px ${w3.colors.secondaryGreen}`:"none"},...t})},Aa=$s;var Ea=({style:A={width:50,borderWidth:2,borderColor:"#d4e2dd"},type:C="horizontal",...g})=>jsxRuntime.jsx(antd.Divider,{style:A,type:C,...g}),Ia=Ea;var NI=a2__default.default(({className:A,...C})=>jsxRuntime.jsx(antd.Drawer,{rootClassName:A,classNames:{content:A},...C}))`
|
|
1891
1891
|
--border-radius: ${A=>A.placement==="bottom"?32:0}px;
|
|
1892
1892
|
|
|
1893
1893
|
&.ant-drawer-content {
|
|
@@ -2468,7 +2468,7 @@ The mask that was received is: ${JSON.stringify(A)}`);return A.map(g=>g instance
|
|
|
2468
2468
|
`;function n6({id:A,children:C,onClickElement:g,style:E={},disabled:I=!1}){let{attributes:B,listeners:Q,setNodeRef:e,transform:o,transition:i,isDragging:t}=sortable.useSortable({id:A,disabled:I}),r={...E,transform:utilities.CSS.Transform.toString(o),transition:i,opacity:t?.25:1};return jsxRuntime.jsx(Gl,{style:r,ref:e,...B,...Q,onClick:()=>g(A),id:A,children:jsxRuntime.jsx(Wl,{children:C})})}var If=a2__default.default.div`
|
|
2469
2469
|
display: flex;
|
|
2470
2470
|
flex-direction: column;
|
|
2471
|
-
`;function uQ({id:A,onClickElement:C=()=>null,elements:g=[],onChange:E,onDragOver:I=()=>null,className:B="",disabled:Q=!1}){let{setNodeRef:e}=core.useDroppable({id:A}),o=({active:r,over:n,delta:L})=>{if(Math.abs(L.x)<1&&Math.abs(L.y)<1)return C(r.id);let
|
|
2471
|
+
`;function uQ({id:A,onClickElement:C=()=>null,elements:g=[],onChange:E,onDragOver:I=()=>null,className:B="",disabled:Q=!1}){let{setNodeRef:e}=core.useDroppable({id:A}),o=({active:r,over:n,delta:L})=>{if(Math.abs(L.x)<1&&Math.abs(L.y)<1)return C(r.id);let w=g.findIndex(m=>m.id===r.id),u=g.findIndex(m=>m.id===n?.id),J=m=>sortable.arrayMove(m,w,u);return n?.id&&I(J(g)),!1},i=({active:r,over:n,delta:L})=>{if(Math.abs(L.x)<1&&Math.abs(L.y)<1)return C(r.id);let w=g.findIndex(m=>m.id===r.id),u=g.findIndex(m=>m.id===n?.id),J=m=>sortable.arrayMove(m,w,u);return n?.id&&E(J(g)),null},t=core.useSensors(core.useSensor(a4),core.useSensor(l4));return jsxRuntime.jsx(core.DndContext,{collisionDetection:core.closestCorners,onDragOver:o,onDragEnd:i,sensors:t,children:jsxRuntime.jsx(sortable.SortableContext,{id:A,items:g,strategy:sortable.verticalListSortingStrategy,children:jsxRuntime.jsx(If,{ref:e,className:B,children:g.map(r=>jsxRuntime.jsx(n6,{onClickElement:C,id:r.id,disabled:Q,children:r.children},r.id))})})})}var Bf=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M6.17984 0L7.58984 1.41L3.00984 6L7.58984 10.59L6.17984 12L0.179844 6L6.17984 0Z",fill:"#555555"})}),"Previous"]}),Qf=()=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:["Next",jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M1.99984 0L0.589844 1.41L5.16984 6L0.589844 10.59L1.99984 12L7.99984 6L1.99984 0Z",fill:"#555555"})})]}),L6={Previous:Bf,Next:Qf};a2__default.default.header`
|
|
2472
2472
|
display: flex;
|
|
2473
2473
|
justify-content: space-between;
|
|
2474
2474
|
margin-bottom: 1rem;
|