peercore-ui-library 1.0.78 → 1.0.80
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.es.js +3 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/function k(){return c||(c=1,"production"===process.env.NODE_ENV?i.exports=function(){if(a)return l;a=1;var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var a=e.$$typeof;switch(a){case n:switch(e=e.type){case d:case u:case r:case i:case o:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case h:case s:return e;default:return a}}case t:return a}}}function C(e){return w(e)===u}return l.AsyncMode=d,l.ConcurrentMode=u,l.ContextConsumer=c,l.ContextProvider=s,l.Element=n,l.ForwardRef=p,l.Fragment=r,l.Lazy=v,l.Memo=h,l.Portal=t,l.Profiler=i,l.StrictMode=o,l.Suspense=f,l.isAsyncMode=function(e){return C(e)||w(e)===d},l.isConcurrentMode=C,l.isContextConsumer=function(e){return w(e)===c},l.isContextProvider=function(e){return w(e)===s},l.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},l.isForwardRef=function(e){return w(e)===p},l.isFragment=function(e){return w(e)===r},l.isLazy=function(e){return w(e)===v},l.isMemo=function(e){return w(e)===h},l.isPortal=function(e){return w(e)===t},l.isProfiler=function(e){return w(e)===i},l.isStrictMode=function(e){return w(e)===o},l.isSuspense=function(e){return w(e)===f},l.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===g)},l.typeOf=w,l}():i.exports=(s||(s=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case n:var h=e.type;switch(h){case s:case c:case r:case o:case a:case u:return h;default:var v=h&&h.$$typeof;switch(v){case l:case d:case m:case f:case i:return v;default:return p}}case t:return p}}}var x=s,w=c,C=l,k=i,
|
|
9
|
+
*/function k(){return c||(c=1,"production"===process.env.NODE_ENV?i.exports=function(){if(a)return l;a=1;var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var a=e.$$typeof;switch(a){case n:switch(e=e.type){case d:case u:case r:case i:case o:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case h:case s:return e;default:return a}}case t:return a}}}function C(e){return w(e)===u}return l.AsyncMode=d,l.ConcurrentMode=u,l.ContextConsumer=c,l.ContextProvider=s,l.Element=n,l.ForwardRef=p,l.Fragment=r,l.Lazy=v,l.Memo=h,l.Portal=t,l.Profiler=i,l.StrictMode=o,l.Suspense=f,l.isAsyncMode=function(e){return C(e)||w(e)===d},l.isConcurrentMode=C,l.isContextConsumer=function(e){return w(e)===c},l.isContextProvider=function(e){return w(e)===s},l.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},l.isForwardRef=function(e){return w(e)===p},l.isFragment=function(e){return w(e)===r},l.isLazy=function(e){return w(e)===v},l.isMemo=function(e){return w(e)===h},l.isPortal=function(e){return w(e)===t},l.isProfiler=function(e){return w(e)===i},l.isStrictMode=function(e){return w(e)===o},l.isSuspense=function(e){return w(e)===f},l.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===g)},l.typeOf=w,l}():i.exports=(s||(s=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case n:var h=e.type;switch(h){case s:case c:case r:case o:case a:case u:return h;default:var v=h&&h.$$typeof;switch(v){case l:case d:case m:case f:case i:return v;default:return p}}case t:return p}}}var x=s,w=c,C=l,k=i,N=n,_=d,S=r,O=m,D=f,T=t,E=o,L=a,M=u,A=!1;function P(e){return y(e)===c}j.AsyncMode=x,j.ConcurrentMode=w,j.ContextConsumer=C,j.ContextProvider=k,j.Element=N,j.ForwardRef=_,j.Fragment=S,j.Lazy=O,j.Memo=D,j.Portal=T,j.Profiler=E,j.StrictMode=L,j.Suspense=M,j.isAsyncMode=function(e){return A||(A=!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.")),P(e)||y(e)===s},j.isConcurrentMode=P,j.isContextConsumer=function(e){return y(e)===l},j.isContextProvider=function(e){return y(e)===i},j.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},j.isForwardRef=function(e){return y(e)===d},j.isFragment=function(e){return y(e)===r},j.isLazy=function(e){return y(e)===m},j.isMemo=function(e){return y(e)===f},j.isPortal=function(e){return y(e)===t},j.isProfiler=function(e){return y(e)===o},j.isStrictMode=function(e){return y(e)===a},j.isSuspense=function(e){return y(e)===u},j.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===a||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===i||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===g||e.$$typeof===b||e.$$typeof===h)},j.typeOf=y}()),j)),i.exports}
|
|
10
10
|
/*
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
|
-
*/function _(){if(u)return d;u=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;return d=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(e){return n[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var o,i,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),s=1;s<arguments.length;s++){for(var c in o=Object(arguments[s]))n.call(o,c)&&(l[c]=o[c]);if(e){i=e(o);for(var d=0;d<i.length;d++)t.call(o,i[d])&&(l[i[d]]=o[i[d]])}}return l},d}function N(){if(f)return p;f=1;return p="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function O(){return h?m:(h=1,m=Function.call.bind(Object.prototype.hasOwnProperty))}function S(){if(g)return v;g=1;var e=function(){};if("production"!==process.env.NODE_ENV){var n=N(),t={},r=O();e=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}}function a(a,o,i,l,s){if("production"!==process.env.NODE_ENV)for(var c in a)if(r(a,c)){var d;try{if("function"!=typeof a[c]){var u=Error((l||"React class")+": "+i+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=a[c](o,c,l,i,null,n)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+i+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var p=s?s():"";e("Failed "+i+" type: "+d.message+(null!=p?p:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(t={})},v=a}function D(){if(y)return b;y=1;var e=k(),n=_(),t=N(),r=O(),a=S(),o=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}),b=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(i),arrayOf:function(e){return m(function(n,r,a,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=n[r];if(!Array.isArray(l))return new f("Invalid "+o+" `"+i+"` of type `"+b(l)+"` supplied to `"+a+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,a,o,i+"["+s+"]",t);if(c instanceof Error)return c}return null})},element:m(function(e,n,t,r,a){var o=e[n];return l(o)?null:new f("Invalid "+r+" `"+a+"` of type `"+b(o)+"` supplied to `"+t+"`, expected a single ReactElement.")}),elementType:m(function(n,t,r,a,o){var i=n[t];return e.isValidElementType(i)?null:new f("Invalid "+a+" `"+o+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return m(function(n,t,r,a,o){if(!(n[t]instanceof e)){var i=e.name||d;return new f("Invalid "+a+" `"+o+"` of type `"+(((l=n[t]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+i+"`.")}var l;return null})},node:m(function(e,n,t,r,a){return g(e[n])?null:new f("Invalid "+r+" `"+a+"` supplied to `"+t+"`, expected a ReactNode.")}),objectOf:function(e){return m(function(n,a,o,i,l){if("function"!=typeof e)return new f("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=n[a],c=b(s);if("object"!==c)return new f("Invalid "+i+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,i,l+"."+d,t);if(u instanceof Error)return u}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"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]).":"Invalid argument supplied to oneOf, expected an array."),i;return m(function(n,t,r,a,o){for(var i=n[t],l=0;l<e.length;l++)if(p(i,e[l]))return null;var s=JSON.stringify(e,function(e,n){return"symbol"===y(n)?String(n):n});return new f("Invalid "+a+" `"+o+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+s+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var n=0;n<e.length;n++){var a=e[n];if("function"!=typeof a)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(a)+" at index "+n+"."),i}return m(function(n,a,o,i,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(n,a,o,i,l,t);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new f("Invalid "+i+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")})},shape:function(e){return m(function(n,r,a,o,i){var l=n[r],s=b(l);if("object"!==s)return new f("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return v(a,o,i,c,y(d));var u=d(l,c,a,o,i+"."+c,t);if(u)return u}return null})},exact:function(e){return m(function(a,o,i,l,s){var c=a[o],d=b(c);if("object"!==d)return new f("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+i+"`, expected `object`.");var u=n({},a[o],e);for(var p in u){var m=e[p];if(r(e,p)&&"function"!=typeof m)return v(i,l,s,p,y(m));if(!m)return new f("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(a[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(c,p,i,l,s+"."+p,t);if(h)return h}return null})}};function p(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}function f(e,n){this.message=e,this.data=n&&"object"==typeof n?n:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function a(a,i,l,c,u,p,m){if(c=c||d,p=p||l,m!==t){if(s){var h=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 h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+l;!n[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. 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."),n[v]=!0,r++)}}return null==i[l]?a?null===i[l]?new f("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(i,l,c,u,p)}var i=a.bind(null,!1);return i.isRequired=a.bind(null,!0),i}function h(e){return m(function(n,t,r,a,o,i){var l=n[t];return b(l)!==e?new f("Invalid "+a+" `"+o+"` of type `"+y(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function v(e,n,t,r,a){return new f((e||"React class")+": "+n+" type `"+t+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||l(e))return!0;var n=function(e){var n=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof n)return n}(e);if(!n)return!1;var t,r=n.call(e);if(n!==e.entries){for(;!(t=r.next()).done;)if(!g(t.value))return!1}else for(;!(t=r.next()).done;){var a=t.value;if(a&&!g(a[1]))return!1}return!0;default:return!1}}function b(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,n){return"symbol"===e||!!n&&("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}(n,e)?"symbol":n}function y(e){if(null==e)return""+e;var n=b(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function x(e){var n=y(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}return f.prototype=Error.prototype,u.checkPropTypes=a,u.resetWarningCache=a.resetWarningCache,u.PropTypes=u,u},b}function T(){if(w)return x;w=1;var e=N();function n(){}function t(){}return t.resetWarningCache=n,x=function(){function r(n,t,r,a,o,i){if(i!==e){var l=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 l.name="Invariant Violation",l}}function a(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:t,resetWarningCache:n};return o.PropTypes=o,o}}function E(){if(C)return o.exports;if(C=1,"production"!==process.env.NODE_ENV){var e=k();o.exports=D()(e.isElement,true)}else o.exports=T()();return o.exports}var L=r(E());function M({label:e,icon:t,loading:r=!1,disabled:a=!1,variant:o="primary",type:i="button",className:l="",...s}){const c=!!e,d=!e&&t;return n.jsxs("button",{type:i,className:`btn btn-${o} ${l} d-flex align-items-center justify-center gap-2 ${d?"p-2":""}`,disabled:a||r,...s,children:[r&&n.jsx("span",{className:"custom-spinner"}),t&&n.jsx("span",{className:"px-2",children:t}),c&&n.jsx("span",{children:e}),n.jsx("style",{jsx:!0,children:"\n .custom-spinner {\n display: inline-block;\n width: 1rem;\n height: 1rem;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top-color: white;\n border-radius: 50%;\n animation: spin 0.6s linear infinite;\n }\n\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n }\n "})]})}M.propTypes={label:L.oneOfType([L.string,L.node]),icon:L.node,loading:L.bool,disabled:L.bool,variant:L.oneOf(["primary","secondary","outline-primary","outline-secondary","success","danger","warning","info","light","dark"]),type:L.oneOf(["button","submit","reset"])};const A=({options:t=[],placeholder:r="Select...",onChange:a,isInvalid:o=!1,errMsg:i="",id:l,name:s,dataTestId:c,enableSearch:d=!1,selected:u=null})=>{const[p,f]=e.useState(!1),[m,h]=e.useState(""),v=e.useRef(null),g=e.useRef(null),[b,y]=e.useState(null),x=null!==u?u:b;e.useEffect(()=>{null!==u&&y(u)},[u]),e.useEffect(()=>{const e=e=>{v.current&&!v.current.contains(e.target)&&f(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const w=t.filter(e=>e.label.toLowerCase().includes(m.toLowerCase()));return n.jsxs("div",{className:"position-relative w-100",ref:v,children:[n.jsxs("div",{className:"dropdown",children:[n.jsx("button",{type:"button",ref:g,className:"form-select pc-ele-border text-start "+(o?"invalid":""),onClick:()=>f(e=>!e),id:l,name:s,"data-testid":c,children:x?.label||r}),p&&n.jsxs("div",{className:"slc-dropdown-options-wrp overflow-auto show w-100 pc-ele-border position-absolute top-100 start-0 z-index-2",style:{maxHeight:300},children:[d&&n.jsx("div",{className:"mb-2 px-3 py-2 border-bottom",children:n.jsx("input",{type:"text",className:"form-control pc-select-opt-input",placeholder:"Search...",value:m,onChange:e=>h(e.target.value)})}),w.length>0?w.map((e,t)=>n.jsx("span",{className:"pc-select-opt d-block w-100 py-3 px-4",type:"button",onClick:()=>(e=>{null===u&&y(e),f(!1),a?.(s,e)})(e),children:e.label},t)):n.jsx("div",{className:"text-muted px-2",children:"No results found"})]})]}),o&&i&&n.jsx("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"},children:i}),n.jsx("style",{jsx:!0,children:"\n .slc-dropdown-options-wrp {\n border-radius: 0.375rem;\n background-color: var(--kt-dropdown-bg);\n }\n .pc-select-opt:hover {\n background-color: var(--kt-input-solid-bg);\n }\n .pc-select-opt-input {\n margin-top: 3px;\n }\n .pc-select-opt {\n color: var(--kt-form-check-label-color-checked);\n }\n .pc-ele-border {\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n }\n .pc-ele-border.invalid{\n border-color: var(--kt-danger);\n }\n .pc-err-txt {\n color: var(--kt-danger);\n }\n "})]})};A.propTypes={options:L.arrayOf(L.shape({label:L.string,value:L.any})).isRequired,placeholder:L.string,onChange:L.func,isInvalid:L.bool,errMsg:L.string,id:L.string,name:L.string,dataTestId:L.string,enableSearch:L.bool};const P=({placement:e="top",caption:t,children:r,customStyles:a,visibility:o=!0})=>n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:` tooltip-wrapper tooltip-${e}`,tabIndex:"0",children:[r,o&&n.jsx("div",{className:`tooltip-content shadow-sm ${a}`,role:"tooltip",children:t})]}),n.jsx("style",{jsx:!0,children:`\n .tooltip-wrapper {\n position: relative;\n display: inline-block;\n cursor: pointer;\n }\n\n .tooltip-content {\n position: absolute;\n z-index: 999;\n background-color: var(--kt-secondary);\n color: var(--kt-secondary-inverse);\n padding: 4px 8px;\n border-radius: 0.375rem;\n font-size: 0.9rem;\n line-height: 1.2;\n text-wrap: nowrap;\n white-space: ${a?"normal":"nowrap"};\n visibility: hidden;\n opacity: 0;\n transition: opacity 0.2s ease-in-out;\n pointer-events: none;\n border: 1px rgba(0, 0, 0, 0.82);\n }\n\n .tooltip-wrapper:hover .tooltip-content,\n .tooltip-wrapper:focus-within .tooltip-content {\n visibility: visible;\n opacity: 1;\n }\n\n .tooltip-content::after {\n content: "";\n position: absolute;\n border-style: solid;\n }\n\n /* Top */\n .tooltip-top .tooltip-content {\n bottom: 125%;\n left: 50%;\n transform: translateX(-50%);\n }\n\n .tooltip-top .tooltip-content::after {\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-color: var(--kt-secondary) transparent transparent transparent;\n }\n\n /* Bottom */\n .tooltip-bottom .tooltip-content {\n top: 125%;\n left: 50%;\n transform: translateX(-50%);\n }\n\n .tooltip-bottom .tooltip-content::after {\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-color: transparent transparent var(--kt-secondary) transparent;\n }\n\n /* Left */\n .tooltip-left .tooltip-content {\n right: 125%;\n top: 50%;\n transform: translateY(-50%);\n }\n\n .tooltip-left .tooltip-content::after {\n top: 50%;\n left: 100%;\n margin-top: -5px;\n border-width: 5px;\n border-color: transparent transparent transparent var(--kt-secondary);\n }\n\n /* Right */\n .tooltip-right .tooltip-content {\n left: 125%;\n top: 50%;\n transform: translateY(-50%);\n }\n\n .tooltip-right .tooltip-content::after {\n top: 50%;\n right: 100%;\n margin-top: -5px;\n border-width: 5px;\n border-color: transparent var(--kt-secondary) transparent transparent;\n }\n `})]});function V(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}P.propTypes={placement:L.oneOf(["top","bottom","left","right"]),caption:L.string.isRequired,children:L.node.isRequired};V(".pc-table tr {\r\n border-bottom-width: 1px;\r\n border-bottom-style: dashed;\r\n border-bottom-color: var(--kt-border-color);\r\n}\r\n.pc-table>:not(:last-child)>:last-child>*\r\n {\r\n border-bottom-color: inherit;\r\n}\r\n\r\n.pc-table.table.gy-3 td, .pc-table.table.gy-3 th {\r\n padding-top: 1rem;\r\n padding-bottom: 1rem;\r\n}\r\n .pc-table.table.gy-3 th {\r\n font-weight: 600;\r\n}\r\n.pc-table >:not(:first-child) {\r\n border-color: transparent;\r\n border-width: 0;\r\n border-style: none;\r\n}\r\n.pc-table td:last-child, .pc-table th:last-child {\r\n padding-right: 1rem;\r\n}\r\n.pc-table.table-hover>tbody>tr:hover>* {\r\n background-color: var(--bs-table-hover-bg);\r\n color: var(--bs-table-hover-color);\r\n}\r\n.dataTables_info {\r\n display: flex;\r\n flex-direction: column;\r\n font-weight: 500;\r\n color: var(--kt-gray-700);\r\n padding: 1rem 0;\r\n}\r\n.pc-pagination-wrp .page-link{\r\n font-weight: 500;\r\n font-size: 1rem;\r\n}\r\n.pc-pagination-wrp i{\r\n font-size: 0.75rem;\r\n}");const I=({value:e,onChange:t,isDisabled:r=!1,isInvalid:a=!1,maxChar:o=null,showCharCount:i=!1,cols:l=30,rows:s=4,id:c,name:d,dataTestId:u,errMsg:p="",placeholder:f=""})=>n.jsxs("div",{className:"position-relative w-100",children:[o&&i&&n.jsxs("div",{className:"form-text text-end",children:[e.length,"/",o," characters"]}),n.jsx("textarea",{id:c,name:d,"data-testid":u,className:"form-control pc-ele-border "+(a?"invalid":""),cols:l,rows:s,value:e,onChange:e=>{const{value:n}=e.target;(!o||n.length<=o)&&t?.(d,n)},placeholder:f,disabled:r}),a&&p&&n.jsx("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"},children:p}),n.jsx("style",{jsx:!0,children:"\n .slc-dropdown-options-wrp {\n border-radius: 0.375rem;\n background-color: var(--kt-dropdown-bg);\n }\n .pc-select-opt:hover {\n background-color: var(--kt-input-solid-bg);\n }\n .pc-select-opt-input {\n margin-top: 3px;\n }\n .pc-select-opt {\n color: var(--kt-form-check-label-color-checked);\n }\n .pc-ele-border {\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n }\n .pc-ele-border.invalid{\n border-color: var(--kt-danger);\n }\n .pc-err-txt {\n color: var(--kt-danger);\n }\n "})]});I.propTypes={value:L.string.isRequired,onChange:L.func,isDisabled:L.bool,isInvalid:L.bool,maxChar:L.number,showCharCount:L.bool,cols:L.number,rows:L.number,id:L.string,name:L.string,dataTestId:L.string,errMsg:L.string,placeholder:L.string};const F={ArrowRightBold:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...e,children:n.jsx("path",{fill:"currentColor",d:"m224.49 136.49l-72 72a12 12 0 0 1-17-17L187 140H40a12 12 0 0 1 0-24h147l-51.49-51.52a12 12 0 0 1 17-17l72 72a12 12 0 0 1-.02 17.01"})}),Conditions:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:n.jsx("path",{fill:"currentColor",d:"M3.25 4.07V1.75a.75.75 0 0 1 1.5 0v2.32a4.001 4.001 0 0 1 0 7.86v2.32a.75.75 0 0 1-1.5 0v-2.32a4.001 4.001 0 0 1 0-7.86M4 10.5a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5M9.75 4a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5zm0 3.25a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5zm-.75 4a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})}),Up:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 14l4-4l4 4",...e})}),Down:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 10l4 4l4-4"})}),NewRow:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"128",height:"128",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 14v1a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2h-6m-3-3H7m0 0H4m3 0V5m0 3v3"})}),Settings:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor","fill-rule":"evenodd",d:"M12.563 3.2h-1.126l-.645 2.578l-.647.2a6.3 6.3 0 0 0-1.091.452l-.599.317l-2.28-1.368l-.796.797l1.368 2.28l-.317.598a6.3 6.3 0 0 0-.453 1.091l-.199.647l-2.578.645v1.126l2.578.645l.2.647q.173.568.452 1.091l.317.599l-1.368 2.28l.797.796l2.28-1.368l.598.317q.523.278 1.091.453l.647.199l.645 2.578h1.126l.645-2.578l.647-.2a6.3 6.3 0 0 0 1.091-.452l.599-.317l2.28 1.368l.796-.797l-1.368-2.28l.317-.598q.278-.523.453-1.091l.199-.647l2.578-.645v-1.126l-2.578-.645l-.2-.647a6.3 6.3 0 0 0-.452-1.091l-.317-.599l1.368-2.28l-.797-.796l-2.28 1.368l-.598-.317a6.3 6.3 0 0 0-1.091-.453l-.647-.199zm2.945 2.17l1.833-1.1a1 1 0 0 1 1.221.15l1.018 1.018a1 1 0 0 1 .15 1.221l-1.1 1.833q.33.62.54 1.3l2.073.519a1 1 0 0 1 .757.97v1.438a1 1 0 0 1-.757.97l-2.073.519q-.21.68-.54 1.3l1.1 1.833a1 1 0 0 1-.15 1.221l-1.018 1.018a1 1 0 0 1-1.221.15l-1.833-1.1q-.62.33-1.3.54l-.519 2.073a1 1 0 0 1-.97.757h-1.438a1 1 0 0 1-.97-.757l-.519-2.073a7.5 7.5 0 0 1-1.3-.54l-1.833 1.1a1 1 0 0 1-1.221-.15L4.42 18.562a1 1 0 0 1-.15-1.221l1.1-1.833a7.5 7.5 0 0 1-.54-1.3l-2.073-.519A1 1 0 0 1 2 12.72v-1.438a1 1 0 0 1 .757-.97l2.073-.519q.21-.68.54-1.3L4.27 6.66a1 1 0 0 1 .15-1.221L5.438 4.42a1 1 0 0 1 1.221-.15l1.833 1.1q.62-.33 1.3-.54l.519-2.073A1 1 0 0 1 11.28 2h1.438a1 1 0 0 1 .97.757l.519 2.073q.68.21 1.3.54zM12 14.8a2.8 2.8 0 1 0 0-5.6a2.8 2.8 0 0 0 0 5.6m0 1.2a4 4 0 1 1 0-8a4 4 0 0 1 0 8"})}),SettingsTutorial:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor","fill-rule":"evenodd",d:"M13.435 2.075a3.33 3.33 0 0 0-2.87 0c-.394.189-.755.497-1.26.928l-.079.066a2.56 2.56 0 0 1-1.58.655l-.102.008c-.662.053-1.135.09-1.547.236a3.33 3.33 0 0 0-2.03 2.029c-.145.412-.182.885-.235 1.547l-.008.102a2.56 2.56 0 0 1-.655 1.58l-.066.078c-.431.506-.74.867-.928 1.261a3.33 3.33 0 0 0 0 2.87c.189.394.497.755.928 1.26l.066.079c.41.48.604.939.655 1.58l.008.102c.053.662.09 1.135.236 1.547a3.33 3.33 0 0 0 2.029 2.03c.412.145.885.182 1.547.235l.102.008c.629.05 1.09.238 1.58.655l.078.066c.506.431.867.74 1.261.928a3.33 3.33 0 0 0 2.87 0c.394-.189.755-.497 1.26-.928l.079-.066c.48-.41.939-.604 1.58-.655l.102-.008c.662-.053 1.135-.09 1.547-.236a3.33 3.33 0 0 0 2.03-2.029c.145-.412.182-.885.235-1.547l.008-.102c.05-.629.238-1.09.655-1.58l.066-.079c.431-.505.74-.866.928-1.26a3.33 3.33 0 0 0 0-2.87c-.189-.394-.497-.755-.928-1.26l-.066-.079a2.56 2.56 0 0 1-.655-1.58l-.008-.102c-.053-.662-.09-1.135-.236-1.547a3.33 3.33 0 0 0-2.029-2.03c-.412-.145-.885-.182-1.547-.235l-.102-.008a2.56 2.56 0 0 1-1.58-.655l-.079-.066c-.505-.431-.866-.74-1.26-.928M12 7.25a.75.75 0 0 1 .75.75v.5a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75M10.75 16a.75.75 0 0 1 .5-.707v-3.586a.75.75 0 0 1 .25-1.457h.5a.75.75 0 0 1 .75.75v4.293a.75.75 0 0 1-.25 1.457h-1a.75.75 0 0 1-.75-.75"})}),CrmUserSettingsListSettings:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M19.14 12.94c.04-.3.06-.61.06-.94c0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6s3.6 1.62 3.6 3.6s-1.62 3.6-3.6 3.6"})}),CrmUserSettingsEdit:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M15.891 3.048a3.578 3.578 0 1 1 5.061 5.06l-.892.893L15 3.94zM13.94 5.001L3.94 15a3.1 3.1 0 0 0-.825 1.476L2.02 21.078a.75.75 0 0 0 .904.903l4.601-1.096a3.1 3.1 0 0 0 1.477-.825l1.151-1.151a6.5 6.5 0 0 1 7.754-7.755L19 10.06zm-.662 8.975a2 2 0 0 1-1.441 2.497l-.584.144a5.7 5.7 0 0 0 .006 1.807l.54.13a2 2 0 0 1 1.45 2.51l-.187.632c.44.386.94.699 1.485.922l.493-.52a2 2 0 0 1 2.899.001l.499.525a5.3 5.3 0 0 0 1.482-.913l-.198-.686a2 2 0 0 1 1.442-2.496l.583-.144a5.7 5.7 0 0 0-.006-1.808l-.54-.13a2 2 0 0 1-1.449-2.51l.186-.63a5.3 5.3 0 0 0-1.484-.923l-.493.519a2 2 0 0 1-2.9 0l-.498-.525c-.544.22-1.044.53-1.483.912zm3.222 5.025c-.8 0-1.45-.672-1.45-1.5c0-.829.65-1.5 1.45-1.5s1.45.671 1.45 1.5c0 .828-.65 1.5-1.45 1.5"})}),CrmSaveUserConfig:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M13.23 22v-2.21l5.334-5.307q.148-.13.307-.19q.16-.062.32-.062q.165 0 .334.064q.17.065.298.194l.925.944q.123.148.187.308q.065.159.065.319t-.052.322t-.2.31L15.44 22zM6.77 9.77h7.422v-3H6.77zm12.42 7.246l.925-.956l-.924-.944l-.95.95zM10.463 20H5.616q-.672 0-1.144-.472T4 18.385V5.615q0-.67.472-1.143Q4.944 4 5.616 4h10.961L20 7.423v4.146q-.244-.085-.468-.099t-.474.003q-.635.017-1.264.265t-1.106.718l-2.822 2.804q.096-.166.134-.322t.039-.361q0-.846-.577-1.423t-1.423-.577t-1.423.577t-.577 1.423t.577 1.423t1.423.577q.178 0 .348-.039t.329-.134l-2.254 2.234z"})}),CrmOutletLead:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M20.16 7.8c-.09-.46-.5-.8-.98-.8H4.82c-.48 0-.89.34-.98.8L3 12v1c0 .55.45 1 1 1v5c0 .55.45 1 1 1h8c.55 0 1-.45 1-1v-5h4v5c0 .55.45 1 1 1s1-.45 1-1v-5c.55 0 1-.45 1-1v-1zM12 18H6v-4h6zM5 6h14c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1 .45-1 1s.45 1 1 1"})}),CrmCustomerLead:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsxs("g",{fill:"none",children:[n.jsx("path",{d:"m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),n.jsx("path",{fill:"currentColor",d:"M16 14a5 5 0 0 1 4.995 4.783L21 19v1a2 2 0 0 1-1.85 1.995L19 22H5a2 2 0 0 1-1.995-1.85L3 20v-1a5 5 0 0 1 4.783-4.995L8 14zM12 2a5 5 0 1 1 0 10a5 5 0 0 1 0-10"})]})}),CrmLeadFormSettingsButton:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M23.33 12.65v1a1 1 0 0 1-.8 1l-1.24.25a9.3 9.3 0 0 1-1.18 2.81l.71 1.06A1 1 0 0 1 20.7 20l-1.37 1.37a1 1 0 0 1-1.26.12L17 20.77A9.3 9.3 0 0 1 14.2 22l-.2 1.19a1 1 0 0 1-1 .8h-2a1 1 0 0 1-1-.8L9.8 22A9.3 9.3 0 0 1 7 20.77l-1.06.71a1 1 0 0 1-1.26-.12L3.3 20a1 1 0 0 1-.12-1.26l.71-1.06a9.3 9.3 0 0 1-1.18-2.81l-1.24-.25a1 1 0 0 1-.8-1v-1h6.56a4.77 4.77 0 0 0 9.54 0Zm-6.16-8.84a2.32 2.32 0 1 0 4.64 0a2.32 2.32 0 1 0-4.64 0m-14.97 0a2.32 2.32 0 1 0 4.64 0a2.32 2.32 0 1 0-4.64 0M6.8 8.8a5 5 0 0 0-1.15-.54A4.92 4.92 0 0 0 0 10.64h5.73A11 11 0 0 1 6.8 8.8m11.38 1.87H24a4.92 4.92 0 0 0-5.66-2.4a5 5 0 0 0-1.17.55a11.5 11.5 0 0 1 1.01 1.85m-1.11 0A5.74 5.74 0 0 0 12 7a5.76 5.76 0 0 0-5.12 3.68ZM8.99 2.91a2.91 2.91 0 1 0 5.82 0a2.91 2.91 0 1 0-5.82 0"})}),CrmLeadOutletSettings:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M20.16 7.8c-.09-.46-.5-.8-.98-.8H4.82c-.48 0-.89.34-.98.8L3 12v1c0 .55.45 1 1 1v5c0 .55.45 1 1 1h8c.55 0 1-.45 1-1v-5h4v5c0 .55.45 1 1 1s1-.45 1-1v-5c.55 0 1-.45 1-1v-1zM12 18H6v-4h6zM5 6h14c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1 .45-1 1s.45 1 1 1"})}),CrmOpportunitySettings:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M1.998 21v-2h2V4.835a1 1 0 0 1 .821-.984l9.472-1.722a.6.6 0 0 1 .707.59v1.28l4 .001a1 1 0 0 1 1 1v14h2v2h-4V6h-3v15zm10-10h-2v2h2z"})}),CrmUserSettings:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:640,height:512,viewBox:"0 0 640 512",...e,children:n.jsx("path",{fill:"currentColor",d:"M224 0a128 128 0 1 1 0 256a128 128 0 1 1 0-256m-45.7 304h91.4c11.8 0 23.4 1.2 34.5 3.3c-2.1 18.5 7.4 35.6 21.8 44.8c-16.6 10.6-26.7 31.6-20 53.3c4 12.9 9.4 25.5 16.4 37.6s15.2 23.1 24.4 33c15.7 16.9 39.6 18.4 57.2 8.7v.9c0 9.2 2.7 18.5 7.9 26.3l-382.2.1C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304M436 218.2c0-7 4.5-13.3 11.3-14.8c10.5-2.4 21.5-3.7 32.7-3.7s22.2 1.3 32.7 3.7c6.8 1.5 11.3 7.8 11.3 14.8v30.6c7.9 3.4 15.4 7.7 22.3 12.8l24.9-14.3c6.1-3.5 13.7-2.7 18.5 2.4c7.6 8.1 14.3 17.2 20.1 27.2s10.3 20.4 13.5 31c2.1 6.7-1.1 13.7-7.2 17.2l-25 14.4c.4 4 .7 8.1.7 12.3s-.2 8.2-.7 12.3l25 14.4c6.1 3.5 9.2 10.5 7.2 17.2c-3.3 10.6-7.8 21-13.5 31s-12.5 19.1-20.1 27.2c-4.8 5.1-12.5 5.9-18.5 2.4L546.3 442c-6.9 5.1-14.3 9.4-22.3 12.8v30.6c0 7-4.5 13.3-11.3 14.8c-10.5 2.4-21.5 3.7-32.7 3.7s-22.2-1.3-32.7-3.7c-6.8-1.5-11.3-7.8-11.3-14.8v-30.5c-8-3.4-15.6-7.7-22.5-12.9l-24.7 14.3c-6.1 3.5-13.7 2.7-18.5-2.4c-7.6-8.1-14.3-17.2-20.1-27.2s-10.3-20.4-13.5-31c-2.1-6.7 1.1-13.7 7.2-17.2l24.8-14.3c-.4-4.1-.7-8.2-.7-12.4s.2-8.3.7-12.4L343.8 325c-6.1-3.5-9.2-10.5-7.2-17.2c3.3-10.6 7.7-21 13.5-31s12.5-19.1 20.1-27.2c4.8-5.1 12.4-5.9 18.5-2.4l24.8 14.3c6.9-5.1 14.5-9.4 22.5-12.9v-30.5zm92.1 133.5a48.1 48.1 0 1 0-96.1 0a48.1 48.1 0 1 0 96.1 0"})}),EmailIconWithCount:({count:e=0,props:t})=>n.jsxs("div",{className:"position-relative email-icon-wrapper",children:[n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...t,children:n.jsx("path",{fill:"currentColor",d:"m20 8l-8 5l-8-5V6l8 5l8-5m0-2H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2"})}),e>0&&n.jsx("span",{className:"counter-badge",children:e>9?"9+":e}),n.jsx("style",{jsx:!0,children:"\n .counter-badge {\n position: absolute;\n top: 10px;\n right: -1px;\n min-width: 10px;\n height: 10px;\n background-color: red;\n color: white;\n font-size: 7px;\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 2px;\n font-weight: bold;\n }\n "})]}),ViewOriginal:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 56 56",...e,children:n.jsx("path",{fill:"currentColor",d:"M28.01 46.403C44.556 46.403 56 33.017 56 28.844c0-4.193-11.465-17.558-27.99-17.558C11.588 11.286 0 24.651 0 28.844c0 4.173 11.671 17.559 28.01 17.559m0-6.053c-6.445 0-11.526-5.226-11.567-11.506C16.422 22.4 21.565 17.34 28.01 17.34c6.404 0 11.547 5.06 11.547 11.505c0 6.28-5.143 11.506-11.547 11.506m0-7.354c2.293 0 4.194-1.88 4.194-4.152c0-2.293-1.9-4.172-4.194-4.172c-2.313 0-4.214 1.88-4.214 4.172c0 2.273 1.9 4.152 4.214 4.152"})}),SyncDocument:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M11 17.5c0-3.6 2.9-6.5 6.5-6.5c.9 0 1.7.2 2.5.5V8l-6-6H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h6.8c-1.1-1.2-1.8-2.8-1.8-4.5m2-14L18.5 9H13zm4 8.5v1.5c2.2 0 4 1.8 4 4c0 .8-.2 1.6-.7 2.2l-1.1-1.1c.2-.3.3-.7.3-1.1c0-1.4-1.1-2.5-2.5-2.5v1.5l-2.2-2.2zm0 11v-1.5c-2.2 0-4-1.8-4-4c0-.8.2-1.6.7-2.2l1.1 1.1c-.2.3-.3.7-.3 1.1c0 1.4 1.1 2.5 2.5 2.5v-1.5l2.2 2.2z"})}),ResendDocument:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:9,fill:"none",viewBox:"0 0 10 9",...e,children:n.jsx("path",{fill:"currentColor",d:"M.855.471C.38.471 0 .838 0 1.296v4.947c0 .219.09.429.25.583a.87.87 0 0 0 .605.242H5.34a2.599 2.599 0 0 1-.214-1.03c0-.712.293-1.393.814-1.896a2.83 2.83 0 0 1 2.604-.71V1.296a.81.81 0 0 0-.25-.583A.87.87 0 0 0 7.69.47H.855Zm0 .825 3.418 2.061L7.69 1.296v.825L4.273 4.18.855 2.122v-.825ZM7.69 3.77l-.962.927.962.928v-.619c.283 0 .555.109.755.302a1.013 1.013 0 0 1 .202 1.19l.465.45c.18-.26.287-.573.287-.91 0-.912-.765-1.65-1.71-1.65V3.77ZM6.268 5.126c-.18.26-.286.573-.286.911 0 .911.764 1.65 1.709 1.65v.618l.961-.928-.961-.928v.619c-.284 0-.555-.109-.756-.302a1.013 1.013 0 0 1-.201-1.19l-.466-.45Z"})}),SignedDocument:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:7,height:8,viewBox:"0 0 7 10",...e,children:n.jsx("path",{fill:"currentColor",d:"M4.083 2.656V0H.437C.196 0 0 .209 0 .469V9.53c0 .26.195.469.438.469h6.125C6.804 10 7 9.791 7 9.531V3.125H4.52c-.24 0-.437-.21-.437-.469Zm-2.916-1.25c0-.086.065-.156.145-.156h1.459c.08 0 .146.07.146.156v.313c0 .086-.066.156-.146.156H1.313c-.081 0-.146-.07-.146-.156v-.313Zm0 1.25c0-.086.065-.156.145-.156h1.459c.08 0 .146.07.146.156v.313c0 .086-.066.156-.146.156H1.313c-.081 0-.146-.07-.146-.156v-.313ZM4.68 7.5h.86c.162 0 .292.14.292.313 0 .172-.13.312-.291.312h-.86a.78.78 0 0 1-.705-.466c-.054-.116-.147-.127-.185-.127a.197.197 0 0 0-.183.12l-.14.3a.305.305 0 0 1-.107.126.277.277 0 0 1-.174.046.295.295 0 0 1-.256-.213l-.307-.985-.193.622a.794.794 0 0 1-.748.577h-.226c-.16 0-.291-.14-.291-.313 0-.172.13-.312.291-.312h.226c.088 0 .166-.06.194-.15l.332-1.067a.442.442 0 0 1 .415-.32c.188 0 .355.128.415.32l.253.813c.36-.316.985-.189 1.203.277.037.08.109.127.185.127Zm2.191-5.45L5.088.138A.423.423 0 0 0 4.778 0h-.111v2.5H7v-.12a.485.485 0 0 0-.128-.33Z"})}),DocumentVoid:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:20,viewBox:"0 0 9 11",...e,children:n.jsx("path",{d:"M2.548 4.692a.43.43 0 0 0 .43-.44.432.432 0 0 0-.123-.314.412.412 0 0 0-.307-.126.412.412 0 0 0-.306.126.432.432 0 0 0-.124.314.43.43 0 0 0 .43.44Zm1.785.88H2.548a.412.412 0 0 0-.306.126.432.432 0 0 0-.124.314.43.43 0 0 0 .43.44h2.646l-.86-.88Zm4.56 2.157L5.924 4.692h.924a.43.43 0 0 0 .43-.44.431.431 0 0 0-.123-.314.411.411 0 0 0-.307-.126H5.065l-2.581-2.64H8.14a.82.82 0 0 1 .608.258c.168.172.252.38.252.621V7.29c0 .08-.007.157-.022.23a.587.587 0 0 1-.086.21Zm-.818 1.65L6.914 8.213H1.258a.819.819 0 0 1-.607-.259.858.858 0 0 1-.253-.621V2.05c0-.242.084-.449.253-.621a.818.818 0 0 1 .607-.259l3.44 3.52H3.496L.118 1.238A.423.423 0 0 1 0 .93C0 .804.04.702.118.621A.403.403 0 0 1 .42.5C.541.5.642.54.72.621l7.957 8.142c.08.08.12.181.124.303a.415.415 0 0 1-.124.313.403.403 0 0 1-.3.121.403.403 0 0 1-.302-.121Z"})}),SendDocument:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:23,height:23,viewBox:"0 0 23 23",...e,children:n.jsx("path",{fill:"currentColor",d:"M4.4 19.425q-.5.2-.95-.088T3 18.5V14l8-2l-8-2V5.5q0-.55.45-.837t.95-.088l15.4 6.5q.625.275.625.925t-.625.925z"})}),DeleteCrm:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})}),CrmLink:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.415 4.84a4.775 4.775 0 0 1 6.752 6.752l-.013.013l-2.264 2.265a4.776 4.776 0 0 1-7.201-.516a1 1 0 0 1 1.601-1.198a2.774 2.774 0 0 0 4.185.3l2.259-2.259a2.776 2.776 0 0 0-3.925-3.923L12.516 7.56a1 1 0 0 1-1.41-1.418l1.298-1.291zM8.818 9.032a4.775 4.775 0 0 1 5.492 1.614a1 1 0 0 1-1.601 1.198a2.775 2.775 0 0 0-4.185-.3l-2.258 2.259a2.775 2.775 0 0 0 3.923 3.924l1.285-1.285a1 1 0 1 1 1.414 1.414l-1.291 1.291l-.012.013a4.775 4.775 0 0 1-6.752-6.752l.012-.013L7.11 10.13a4.8 4.8 0 0 1 1.708-1.098",clipRule:"evenodd"})}),CrmWarning:e=>n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:[n.jsx("path",{fill:"currentColor",d:"M11.001 10h2v5h-2zM11 16h2v2h-2z"}),n.jsx("path",{fill:"currentColor",d:"M13.768 4.2C13.42 3.545 12.742 3.138 12 3.138s-1.42.407-1.768 1.063L2.894 18.064a1.99 1.99 0 0 0 .054 1.968A1.98 1.98 0 0 0 4.661 21h14.678c.708 0 1.349-.362 1.714-.968a1.99 1.99 0 0 0 .054-1.968zM4.661 19L12 5.137L19.344 19z"})]}),CrmError:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})}),ExportCSV:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",...e,children:n.jsx("path",{fill:"none",stroke:"currentColor","stroke-linejoin":"round",d:"M8 11.5h5.5m-1.5 2l2-2l-2-2m-2.5 5h-6v-13H9m0 0V5h3.5M9 1.5L12.5 5m0 0v2.5","stroke-width":"1"})}),Maximize:e=>n.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",...e,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","data-p-icon":"window-maximize",class:"p-icon",pc1090:"",children:[n.jsx("g",{"clip-path":"url(#pui_id_99)",children:n.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z",fill:"currentColor"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"url(#pui_id_99)",children:n.jsx("rect",{width:"14",height:"14",fill:"white"})})})]}),Minimize:e=>n.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",...e,xmlns:"http://www.w3.org/2000/svg","data-p-icon":"window-minimize",class:"p-icon",pc1091:"",children:[n.jsx("g",{"clip-path":"url(#pui_id_100)",children:n.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"url(#pui_id_100)",children:n.jsx("rect",{width:"14",height:"14",fill:"white"})})})]})};function R({name:t,width:r="1em",height:a="1em",className:o="",color:i="currentColor",activeColor:l,hoverColor:s,...c}){const[d,u]=e.useState(!1),[p,f]=e.useState(!1),m=p?l||i:d&&s||i,h=F[t];return h?n.jsx(h,{width:r,height:a,className:o,style:{color:m,cursor:c.onClick?"pointer":void 0},onMouseEnter:()=>u(!0),onMouseLeave:()=>{u(!1),f(!1)},onMouseDown:()=>f(!0),onMouseUp:()=>f(!1),...c}):(console.warn(`Icon "${t}" not found`),null)}function z(e){var n,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(t=z(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function H(){for(var e,n,t=0,r="",a=arguments.length;t<a;t++)(e=arguments[t])&&(n=z(e))&&(r&&(r+=" "),r+=n);return r}const K=({fluid:e=!1,className:t="",children:r,...a})=>{const o=H(e?"container-fluid":"container",t);return n.jsx("div",{className:o,...a,children:r})};K.propTypes={fluid:L.bool,className:L.string,children:L.node};const q=({justify:e="",align:t="",className:r="",children:a,...o})=>{const i=H("row",e&&`justify-content-${e}`,t&&`align-items-${t}`,r);return n.jsx("div",{className:i,...o,children:a})};q.propTypes={justify:L.oneOf(["start","center","end","around","between","evenly"]),align:L.oneOf(["start","center","end","stretch","baseline"]),className:L.string,children:L.node};const B=({xs:e,sm:t,md:r,lg:a,xl:o,offset:i,order:l,className:s="",children:c,...d})=>{const u=H(void 0!==e&&`col-${e}`,void 0!==t&&`col-sm-${t}`,void 0!==r&&`col-md-${r}`,void 0!==a&&`col-lg-${a}`,void 0!==o&&`col-xl-${o}`,void 0!==i&&`offset-${i}`,void 0!==l&&`order-${l}`,s);return n.jsx("div",{className:u,...d,children:c})};B.propTypes={xs:L.oneOfType([L.string,L.number]),sm:L.oneOfType([L.string,L.number]),md:L.oneOfType([L.string,L.number]),lg:L.oneOfType([L.string,L.number]),xl:L.oneOfType([L.string,L.number]),offset:L.oneOfType([L.string,L.number]),order:L.oneOfType([L.string,L.number]),className:L.string,children:L.node};const W=({title:t,children:r,footer:a,titleOnTop:o=!1,onClose:i,customStyles:l="",maxWidth:s="600px",width:c="100%",maxHeight:d="80vh",outsideClickHandle:u=!1})=>{const p=e.useRef();return e.useEffect(()=>{if(!u)return;const e=e=>{p.current&&!p.current.contains(e.target)&&i?.()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[i]),n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"conditions-overlay position-fixed top-0 start-0 w-100 h-100 bg-dark bg-opacity-10 d-flex justify-content-center align-items-center z-3",children:n.jsxs("div",{className:`card position-relative shadow p-4 ${l}`,ref:p,style:{width:c,maxWidth:s,maxHeight:d,overflowY:"auto"},children:[n.jsxs("div",{className:"w-full d-flex svg-icon align-items-center svg-icon-1 "+(o?"justify-content-between":"justify-content-end"),children:[t&&o&&n.jsx("h5",{className:"mt-3",children:t}),n.jsx("div",{className:"cursor-pointer w-24px h-24px",onClick:i,children:n.jsx(Y,{})})]}),t&&!o&&n.jsx("h5",{className:"mb-3",children:t}),r&&n.jsx("div",{className:"mb-3",children:r}),a&&n.jsx("div",{className:"text-end",children:a})]})}),n.jsx("style",{jsx:!0,children:"\n .conditions-overlay {\n z-index: 1001;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n "})]})},Y=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeDasharray:12,strokeDashoffset:12,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 12l7 7M12 12l-7 -7M12 12l-7 7M12 12l7 -7",children:n.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"12;0"})})}),Z=({label:t="Enter Label",required:r=!1,type:a="",placeholder:o="",errorMessage:i="",value:l,onChange:s,disabled:c=!1,className:d="",maxLength:u,minLength:p,inputSymbol:f,...m})=>{const h=e.useId(),v=m.id||`input-${h}`;return n.jsxs("div",{className:"form-group-lg",children:[n.jsx("label",{htmlFor:v,className:"form-label "+(r?"required":""),children:t}),n.jsxs("div",{className:"input-group",style:{fontFamily:"inherit"},children:[f&&n.jsx("span",{className:"input-group-text border",children:f}),n.jsx("input",{id:v,type:a,placeholder:"date"===a?void 0:o,value:l,required:r,onChange:s,disabled:c,maxLength:u,minLength:p,className:`form-control form-control-solid border${i?" is-invalid border-danger":""}${d?` ${d}`:""}`,...m})]}),i&&n.jsx("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"},children:i})]})};Z.propTypes={label:L.string,required:L.bool,type:L.string,placeholder:L.string,errorMessage:L.string,value:L.oneOfType([L.string,L.number]),onChange:L.func,disabled:L.bool,className:L.string,maxLength:L.oneOfType([L.string,L.number]),minLength:L.oneOfType([L.string,L.number]),inputSymbol:L.node,id:L.string};const U=e=>{if(""===e||null===e)return"";const n=Number(e.toString().replace(/[^\d.-]/g,""));return isNaN(n)?"":n.toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0})},G={small:"spinner-border-sm",medium:"",large:"spinner-border-lg"},J={primary:"text-primary",secondary:"text-secondary",success:"text-success",danger:"text-danger",warning:"text-warning",info:"text-info",light:"text-light",dark:"text-dark"},X={primary:"#007bff",secondary:"#6c757d",success:"#28a745",danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:"#f8f9fa",dark:"#343a40"},Q="table",ee="dots",ne="bar",te="circular",re="pulse",ae="text",oe="wave",ie=({size:e="medium",color:t="primary",ariaLabel:r="Loading...",loadingType:a="spinner",className:o="",placeholderRows:i=4})=>{const l="large"===e?"":G[e]||"",s=J[t]||J.primary,c="large"===e?{width:"3rem",height:"3rem",borderWidth:"0.3em"}:{};if(a===Q){const e=X[t]||X.primary;return n.jsx("div",{className:"w-100",children:n.jsx("div",{className:"placeholder-glow",children:Array.from({length:i}).map((t,r)=>n.jsx("span",{className:`placeholder col-12 rounded bg-secondary${0===r?" mb-2":""}${r===i-1?" mt-2":" mb-2"}`,style:{height:44,display:"block",background:e}},r))})})}if(a===ee){const e=X[t]||X.primary;return n.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":r,children:[n.jsxs("span",{className:"dots-loader",children:[n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}})]}),n.jsx("style",{children:"\n .dots-loader {\n display: inline-block;\n }\n .dots-loader span {\n display: inline-block;\n width: 8px;\n height: 8px;\n margin: 0 2px;\n border-radius: 50%;\n animation: dots-bounce 1s infinite;\n }\n .dots-loader span:nth-child(2) { animation-delay: 0.2s; }\n .dots-loader span:nth-child(3) { animation-delay: 0.4s; }\n @keyframes dots-bounce {\n 0%, 80%, 100% { transform: scale(1); }\n 40% { transform: scale(1.5); }\n }\n "})]})}if(a===ne){const e=X[t]||X.primary;return n.jsxs("div",{style:{width:"100%",padding:"8px 0"},"aria-label":r,children:[n.jsx("div",{className:"bar-loader",children:n.jsx("div",{style:{background:e}})}),n.jsx("style",{children:"\n .bar-loader {\n width: 100%;\n height: 8px;\n background: #e0e0e0;\n border-radius: 4px;\n overflow: hidden;\n position: relative;\n }\n .bar-loader div {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 30%;\n animation: bar-move 1.2s linear infinite;\n }\n @keyframes bar-move {\n 0% { left: -30%; }\n 100% { left: 100%; }\n }\n "})]})}if(a===re){const e=X[t]||X.primary;return n.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":r,children:[n.jsx("span",{className:"pulse-loader",style:{background:e}}),n.jsx("style",{children:"\n .pulse-loader {\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n animation: pulse-grow 1s infinite;\n }\n @keyframes pulse-grow {\n 0%, 100% { transform: scale(1); opacity: 1; }\n 50% { transform: scale(1.5); opacity: 0.5; }\n }\n "})]})}if(a===ae){const e=X[t]||X.primary;return n.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":r,children:[n.jsx("span",{style:{color:e},children:"Loading"}),n.jsx("span",{className:"ellipsis-loader",style:{color:e}}),n.jsx("style",{children:"\n .ellipsis-loader::after {\n content: '...';\n animation: ellipsis 1.2s infinite steps(4);\n }\n @keyframes ellipsis {\n 0% { content: ''; }\n 25% { content: '.'; }\n 50% { content: '..'; }\n 75% { content: '...'; }\n 100% { content: ''; }\n }\n "})]})}if(a===oe){const e=X[t]||X.primary;return n.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:2},"aria-label":r,children:[n.jsxs("span",{className:"wave-loader",children:[n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}})]}),n.jsx("style",{children:"\n .wave-loader {\n display: inline-block;\n height: 20px;\n }\n .wave-loader span {\n display: inline-block;\n width: 4px;\n height: 100%;\n margin: 0 2px;\n animation: wave-bounce 1.2s infinite;\n }\n .wave-loader span:nth-child(2) { animation-delay: 0.2s; }\n .wave-loader span:nth-child(3) { animation-delay: 0.4s; }\n .wave-loader span:nth-child(4) { animation-delay: 0.6s; }\n .wave-loader span:nth-child(5) { animation-delay: 0.8s; }\n @keyframes wave-bounce {\n 0%, 100% { transform: scaleY(1); }\n 50% { transform: scaleY(2); }\n }\n "})]})}if(a===te){const e=X[t]||X.primary;return n.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":r,children:[n.jsxs("svg",{className:"circular-loader",width:"40",height:"40",viewBox:"0 0 40 40",children:[n.jsx("circle",{cx:"20",cy:"20",r:"18",stroke:e,strokeWidth:"4",fill:"none",opacity:"0.2"}),n.jsx("circle",{cx:"20",cy:"20",r:"18",stroke:e,strokeWidth:"4",fill:"none",strokeDasharray:"113",strokeDashoffset:"80",style:{animation:"circular-spin 1s linear infinite"}})]}),n.jsx("style",{children:"\n @keyframes circular-spin {\n 100% { stroke-dashoffset: 0; }\n }\n "})]})}return n.jsxs("div",{role:"status","aria-label":r,style:{display:"inline-flex",alignItems:"center"},children:[n.jsx("span",{className:`spinner-border ${l} ${s} ${o}`.trim(),style:c,"aria-hidden":"true"}),n.jsx("span",{className:"visually-hidden",children:r})]})},le=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:n.jsx("path",{fill:"currentColor",d:"M7 20h2V8h3L8 4L4 8h3zm13-4h-3V4h-2v12h-3l4 4z"})}),se=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",children:n.jsx("path",{fill:"currentColor",d:"M3 0L6 3H3.75V12H2.25V3H0L3 0ZM6.75 9H13.5V7.5H6.75V9ZM6.75 6H12V4.5H6.75V6ZM6.75 12H15V10.5H6.75V12ZM6.75 3H10.5V1.5H6.75V3Z"})}),ce=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:n.jsx("path",{fill:"currentColor",d:"m6 20l4-4H7V4H5v12H2zm5-12h9v2h-9zm0 4h7v2h-7zm0-8h11v2H11zm0 12h5v2h-5z"})}),de=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:n.jsx("path",{fill:"currentColor",d:"M14 20.5h-4a.76.76 0 0 1-.75-.75V12L3.9 4.69a.73.73 0 0 1-.07-.78a.76.76 0 0 1 .67-.41h15a.76.76 0 0 1 .67.41a.73.73 0 0 1-.07.78L14.75 12v7.75a.76.76 0 0 1-.75.75M10.75 19h2.5v-7.25a.7.7 0 0 1 .15-.44L18 5H6l4.62 6.31a.7.7 0 0 1 .15.44Z"})}),ue=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",version:"1.1",children:n.jsxs("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:[n.jsx("polygon",{points:"0 0 24 0 24 24 0 24"}),n.jsx("path",{d:"M6.70710678,15.7071068 C6.31658249,16.0976311 5.68341751,16.0976311 5.29289322,15.7071068 C4.90236893,15.3165825 4.90236893,14.6834175 5.29289322,14.2928932 L11.2928932,8.29289322 C11.6714722,7.91431428 12.2810586,7.90106866 12.6757246,8.26284586 L18.6757246,13.7628459 C19.0828436,14.1360383 19.1103465,14.7686056 18.7371541,15.1757246 C18.3639617,15.5828436 17.7313944,15.6103465 17.3242754,15.2371541 L12.0300757,10.3841378 L6.70710678,15.7071068 Z",fill:"currentColor","fill-rule":"nonzero",transform:"translate(12.000003, 11.999999) rotate(-270.000000) translate(-12.000003, -11.999999) "})]})}),pe=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",version:"1.1",children:n.jsxs("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:[n.jsx("polygon",{points:"0 0 24 0 24 24 0 24"}),n.jsx("path",{d:"M6.70710678,15.7071068 C6.31658249,16.0976311 5.68341751,16.0976311 5.29289322,15.7071068 C4.90236893,15.3165825 4.90236893,14.6834175 5.29289322,14.2928932 L11.2928932,8.29289322 C11.6714722,7.91431428 12.2810586,7.90106866 12.6757246,8.26284586 L18.6757246,13.7628459 C19.0828436,14.1360383 19.1103465,14.7686056 18.7371541,15.1757246 C18.3639617,15.5828436 17.7313944,15.6103465 17.3242754,15.2371541 L12.0300757,10.3841378 L6.70710678,15.7071068 Z",fill:"currentColor","fill-rule":"nonzero",transform:"translate(12.000003, 11.999999) scale(-1, 1) rotate(-270.000000) translate(-12.000003, -11.999999) "})]})});function fe(e){if(!e)return e;return e.replace(/(?<year>[0-9]{4})-(?<month>[0-9]{2})-(?<day>[0-9]{2})(?:T[0-9:.]+(?:[+-][0-9:]+)?)?/,"$<day>-$<month>-$<year>")}const me=({datePickerDates:t,setDatePickerDates:r})=>{const a=e.useRef();return e.useEffect(()=>{$(a.current).daterangepicker({dateFormat:"dd-mm-yyyy",autoApply:!0,autoUpdateInput:!0},function(e,n){r({startDate:e.format("YYYY-MM-DD"),endDate:n.format("YYYY-MM-DD")})})},[t,r,a]),n.jsxs("div",{className:"form-control form-control-solid border d-flex align-items-center p-3 justify-content-between",ref:a,children:[n.jsx("div",{className:"fs-6",children:t?n.jsxs(n.Fragment,{children:[n.jsx("input",{hidden:!0,type:"date",defaultValue:t?.startDate,name:"startDate"}),n.jsx("input",{hidden:!0,type:"date",defaultValue:t?.endDate,name:"endDate"}),`${fe(t?.startDate)} - ${fe(t?.endDate)}`]}):"Pick a date range"}),n.jsx("span",{className:"svg-icon svg-icon-1 ms-2 me-0",children:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{opacity:"0.3",d:"M21 22H3C2.4 22 2 21.6 2 21V5C2 4.4 2.4 4 3 4H21C21.6 4 22 4.4 22 5V21C22 21.6 21.6 22 21 22Z",fill:"currentColor"}),n.jsx("path",{d:"M6 6C5.4 6 5 5.6 5 5V3C5 2.4 5.4 2 6 2C6.6 2 7 2.4 7 3V5C7 5.6 6.6 6 6 6ZM11 5V3C11 2.4 10.6 2 10 2C9.4 2 9 2.4 9 3V5C9 5.6 9.4 6 10 6C10.6 6 11 5.6 11 5ZM15 5V3C15 2.4 14.6 2 14 2C13.4 2 13 2.4 13 3V5C13 5.6 13.4 6 14 6C14.6 6 15 5.6 15 5ZM19 5V3C19 2.4 18.6 2 18 2C17.4 2 17 2.4 17 3V5C17 5.6 17.4 6 18 6C18.6 6 19 5.6 19 5Z",fill:"currentColor"}),n.jsx("path",{d:"M8.8 13.1C9.2 13.1 9.5 13 9.7 12.8C9.9 12.6 10.1 12.3 10.1 11.9C10.1 11.6 10 11.3 9.8 11.1C9.6 10.9 9.3 10.8 9 10.8C8.8 10.8 8.59999 10.8 8.39999 10.9C8.19999 11 8.1 11.1 8 11.2C7.9 11.3 7.8 11.4 7.7 11.6C7.6 11.8 7.5 11.9 7.5 12.1C7.5 12.2 7.4 12.2 7.3 12.3C7.2 12.4 7.09999 12.4 6.89999 12.4C6.69999 12.4 6.6 12.3 6.5 12.2C6.4 12.1 6.3 11.9 6.3 11.7C6.3 11.5 6.4 11.3 6.5 11.1C6.6 10.9 6.8 10.7 7 10.5C7.2 10.3 7.49999 10.1 7.89999 10C8.29999 9.90003 8.60001 9.80003 9.10001 9.80003C9.50001 9.80003 9.80001 9.90003 10.1 10C10.4 10.1 10.7 10.3 10.9 10.4C11.1 10.5 11.3 10.8 11.4 11.1C11.5 11.4 11.6 11.6 11.6 11.9C11.6 12.3 11.5 12.6 11.3 12.9C11.1 13.2 10.9 13.5 10.6 13.7C10.9 13.9 11.2 14.1 11.4 14.3C11.6 14.5 11.8 14.7 11.9 15C12 15.3 12.1 15.5 12.1 15.8C12.1 16.2 12 16.5 11.9 16.8C11.8 17.1 11.5 17.4 11.3 17.7C11.1 18 10.7 18.2 10.3 18.3C9.9 18.4 9.5 18.5 9 18.5C8.5 18.5 8.1 18.4 7.7 18.2C7.3 18 7 17.8 6.8 17.6C6.6 17.4 6.4 17.1 6.3 16.8C6.2 16.5 6.10001 16.3 6.10001 16.1C6.10001 15.9 6.2 15.7 6.3 15.6C6.4 15.5 6.6 15.4 6.8 15.4C6.9 15.4 7.00001 15.4 7.10001 15.5C7.20001 15.6 7.3 15.6 7.3 15.7C7.5 16.2 7.7 16.6 8 16.9C8.3 17.2 8.6 17.3 9 17.3C9.2 17.3 9.5 17.2 9.7 17.1C9.9 17 10.1 16.8 10.3 16.6C10.5 16.4 10.5 16.1 10.5 15.8C10.5 15.3 10.4 15 10.1 14.7C9.80001 14.4 9.50001 14.3 9.10001 14.3C9.00001 14.3 8.9 14.3 8.7 14.3C8.5 14.3 8.39999 14.3 8.39999 14.3C8.19999 14.3 7.99999 14.2 7.89999 14.1C7.79999 14 7.7 13.8 7.7 13.7C7.7 13.5 7.79999 13.4 7.89999 13.2C7.99999 13 8.2 13 8.5 13H8.8V13.1ZM15.3 17.5V12.2C14.3 13 13.6 13.3 13.3 13.3C13.1 13.3 13 13.2 12.9 13.1C12.8 13 12.7 12.8 12.7 12.6C12.7 12.4 12.8 12.3 12.9 12.2C13 12.1 13.2 12 13.6 11.8C14.1 11.6 14.5 11.3 14.7 11.1C14.9 10.9 15.2 10.6 15.5 10.3C15.8 10 15.9 9.80003 15.9 9.70003C15.9 9.60003 16.1 9.60004 16.3 9.60004C16.5 9.60004 16.7 9.70003 16.8 9.80003C16.9 9.90003 17 10.2 17 10.5V17.2C17 18 16.7 18.4 16.2 18.4C16 18.4 15.8 18.3 15.6 18.2C15.4 18.1 15.3 17.8 15.3 17.5Z",fill:"currentColor"})]})})]})},he=["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onBlur","onInput","onInvalid","onReset","onSubmit","onLoad","onError","onKeyDown","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onChange","onToggle"];const ve=(e,n,t,r)=>{if("length"===t||"prototype"===t)return;if("arguments"===t||"caller"===t)return;const a=Object.getOwnPropertyDescriptor(e,t),o=Object.getOwnPropertyDescriptor(n,t);!ge(a,o)&&r||Object.defineProperty(e,t,o)},ge=function(e,n){return void 0===e||e.configurable||e.writable===n.writable&&e.enumerable===n.enumerable&&e.configurable===n.configurable&&(e.writable||e.value===n.value)},be=(e,n)=>`/* Wrapped ${e}*/\n${n}`,ye=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),xe=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");function we(e,n,{ignoreNonConfigurable:t=!1}={}){const{name:r}=e;for(const r of Reflect.ownKeys(n))ve(e,n,r,t);return((e,n)=>{const t=Object.getPrototypeOf(n);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t)})(e,n),((e,n,t)=>{const r=""===t?"":`with ${t.trim()}() `,a=be.bind(null,r,n.toString());Object.defineProperty(a,"name",xe);const{writable:o,enumerable:i,configurable:l}=ye;Object.defineProperty(e,"toString",{value:a,writable:o,enumerable:i,configurable:l})})(e,n,r),e}const Ce=2147483647,je=new WeakMap,ke=new WeakMap,_e=new WeakMap;function Ne(e,{cacheKey:n,cache:t=new Map,maxAge:r}={}){if(0===r)return e;if("number"==typeof r&&Number.isFinite(r)){if(r>Ce)throw new TypeError("The `maxAge` option cannot exceed 2147483647.");if(r<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const a=function(...o){const i=n?n(o):o[0],l=function(e,n){const t=e.get(n);if(t){if(!(t.maxAge<=Date.now()))return t;e.delete(n)}}(t,i);if(l)return l.data;const s=e.apply(this,o),c="function"==typeof r?r(...o):r;if(void 0!==c&&c!==Number.POSITIVE_INFINITY){if(!Number.isFinite(c))throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(c<=0)return s;if(c>Ce)throw new TypeError("The `maxAge` function result cannot exceed 2147483647.")}if(t.set(i,{data:s,maxAge:void 0===c||c===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Date.now()+c}),void 0!==c&&c!==Number.POSITIVE_INFINITY){const e=setTimeout(()=>{t.delete(i),ke.get(a)?.delete(e)},c);e.unref?.();const n=ke.get(a)??new Set;n.add(e),ke.set(a,n)}return s};return we(a,e,{ignoreNonConfigurable:!0}),je.set(a,t),_e.set(a,n??(e=>e[0])),a}function Oe(e){return"string"==typeof e}function Se(e,n,t){return t.indexOf(e)===n}function De(e){return-1===e.indexOf(",")?e:e.split(",")}function Te(e){if(!e)return e;if("C"===e||"posix"===e||"POSIX"===e)return"en-US";if(-1!==e.indexOf(".")){var n=e.split(".")[0];return Te(void 0===n?"":n)}if(-1!==e.indexOf("@")){var t=e.split("@")[0];return Te(void 0===t?"":t)}if(-1===e.indexOf("-")||(r=e).toLowerCase()!==r)return e;var r,a=e.split("-"),o=a[0],i=a[1],l=void 0===i?"":i;return"".concat(o,"-").concat(l.toUpperCase())}var Ee=Ne(function(e){var n=void 0===e?{}:e,t=n.useFallbackLocale,r=void 0===t||t,a=n.fallbackLocale,o=void 0===a?"en-US":a,i=[];if("undefined"!=typeof navigator){for(var l=[],s=0,c=navigator.languages||[];s<c.length;s++){var d=c[s];l=l.concat(De(d))}var u=navigator.language,p=u?De(u):u;i=i.concat(l,p)}return r&&i.push(o),i.filter(Oe).map(Te).filter(Se)},{cacheKey:JSON.stringify});var Le=Ne(function(e){return Ee(e)[0]||null},{cacheKey:JSON.stringify});function Me(e,n,t){return function(r,a=t){const o=e(r)+a;return n(o)}}function Ae(e){return function(n){return new Date(e(n).getTime()-1)}}function Pe(e,n){return function(t){return[e(t),n(t)]}}function $e(e){if(e instanceof Date)return e.getFullYear();if("number"==typeof e)return e;const n=Number.parseInt(e,10);if("string"==typeof e&&!Number.isNaN(n))return n;throw new Error(`Failed to get year from date: ${e}.`)}function Ve(e){if(e instanceof Date)return e.getMonth();throw new Error(`Failed to get month from date: ${e}.`)}function Ie(e){if(e instanceof Date)return e.getMonth()+1;throw new Error(`Failed to get human-readable month from date: ${e}.`)}function Fe(e){if(e instanceof Date)return e.getDate();throw new Error(`Failed to get year from date: ${e}.`)}function Re(e){const n=$e(e),t=n+(1-n)%100,r=new Date;return r.setFullYear(t,0,1),r.setHours(0,0,0,0),r}const ze=Me($e,Re,-100),He=Me($e,Re,100),Ke=Ae(He),qe=Me($e,Ke,-100),Be=Pe(Re,Ke);function We(e){const n=$e(e),t=n+(1-n)%10,r=new Date;return r.setFullYear(t,0,1),r.setHours(0,0,0,0),r}const Ye=Me($e,We,-10),Ze=Me($e,We,10),Ue=Ae(Ze),Ge=Me($e,Ue,-10),Je=Pe(We,Ue);function Xe(e){const n=$e(e),t=new Date;return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}const Qe=Me($e,Xe,-1),en=Me($e,Xe,1),nn=Ae(en),tn=Me($e,nn,-1),rn=Pe(Xe,nn);function an(e,n){return function(t,r=n){const a=$e(t),o=Ve(t)+r,i=new Date;return i.setFullYear(a,o,1),i.setHours(0,0,0,0),e(i)}}function on(e){const n=$e(e),t=Ve(e),r=new Date;return r.setFullYear(n,t,1),r.setHours(0,0,0,0),r}const ln=an(on,-1),sn=an(on,1),cn=Ae(sn),dn=an(cn,-1),un=Pe(on,cn);function pn(e){const n=$e(e),t=Ve(e),r=Fe(e),a=new Date;return a.setFullYear(n,t,r),a.setHours(0,0,0,0),a}var fn,mn;const hn=Ae((fn=pn,mn=1,function(e,n=mn){const t=$e(e),r=Ve(e),a=Fe(e)+n,o=new Date;return o.setFullYear(t,r,a),o.setHours(0,0,0,0),fn(o)})),vn=Pe(pn,hn);function gn(e){return Fe(cn(e))}function bn(e,n=2){const t=`${e}`;return t.length>=n?e:`0000${t}`.slice(-n)}function yn(e){return`${bn($e(e),4)}-${bn(Ie(e))}`}function xn(e){return`${bn($e(e),4)}-${bn(Ie(e))}-${bn(Fe(e))}`}var wn="gregory",Cn="hebrew",jn="islamic",kn="iso8601",_n={gregory:["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"],hebrew:["he","he-IL"],islamic:["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]},Nn=[0,1,2,3,4,5,6],On=new Map;function Sn(e){return function(n,t){return function(e){return function(n,t){var r=n||Le();On.has(r)||On.set(r,new Map);var a=On.get(r);return a.has(e)||a.set(e,new Intl.DateTimeFormat(r||void 0,e).format),a.get(e)(t)}}(e)(n,function(e){var n=new Date(e);return new Date(n.setHours(12))}(t))}}var Dn=Sn({day:"numeric"}),Tn=Sn({day:"numeric",month:"long",year:"numeric"}),En=Sn({month:"long"}),Ln=Sn({month:"long",year:"numeric"}),Mn=Sn({weekday:"short"}),An=Sn({weekday:"long"}),Pn=Sn({year:"numeric"}),$n=Nn[0],Vn=Nn[5],In=Nn[6];function Fn(e,n){void 0===n&&(n=kn);var t=e.getDay();switch(n){case kn:return(t+6)%7;case jn:return(t+1)%7;case Cn:case wn:return t;default:throw new Error("Unsupported calendar type.")}}function Rn(e,n){void 0===n&&(n=kn);var t=$e(e),r=Ve(e),a=e.getDate()-Fn(e,n);return new Date(t,r,a)}function zn(e,n){switch(e){case"century":return Re(n);case"decade":return We(n);case"year":return Xe(n);case"month":return on(n);case"day":return pn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function Hn(e,n){switch(e){case"century":return He(n);case"decade":return Ze(n);case"year":return en(n);case"month":return sn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function Kn(e,n){switch(e){case"century":return Ke(n);case"decade":return Ue(n);case"year":return nn(n);case"month":return cn(n);case"day":return hn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function qn(e,n){switch(e){case"century":return Be(n);case"decade":return Je(n);case"year":return rn(n);case"month":return un(n);case"day":return vn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function Bn(e,n,t){return t.map(function(t){return(n||Pn)(e,t)}).join(" – ")}function Wn(e,n,t){return Bn(e,n,Je(t))}function Yn(e){return e.getDay()===(new Date).getDay()}function Zn(e,n){void 0===n&&(n=kn);var t=e.getDay();switch(n){case jn:case Cn:return t===Vn||t===In;case kn:case wn:return t===In||t===$n;default:throw new Error("Unsupported calendar type.")}}var Un="react-calendar__navigation";function Gn(e){var t,r=e.activeStartDate,a=e.drillUp,o=e.formatMonthYear,i=void 0===o?Ln:o,l=e.formatYear,s=void 0===l?Pn:l,c=e.locale,d=e.maxDate,u=e.minDate,p=e.navigationAriaLabel,f=void 0===p?"":p,m=e.navigationAriaLive,h=e.navigationLabel,v=e.next2AriaLabel,g=void 0===v?"":v,b=e.next2Label,y=void 0===b?"»":b,x=e.nextAriaLabel,w=void 0===x?"":x,C=e.nextLabel,j=void 0===C?"›":C,k=e.prev2AriaLabel,_=void 0===k?"":k,N=e.prev2Label,O=void 0===N?"«":N,S=e.prevAriaLabel,D=void 0===S?"":S,T=e.prevLabel,E=void 0===T?"‹":T,L=e.setActiveStartDate,M=e.showDoubleView,A=e.view,P=e.views.indexOf(A)>0,$="century"!==A,V=function(e,n){switch(e){case"century":return ze(n);case"decade":return Ye(n);case"year":return Qe(n);case"month":return ln(n);default:throw new Error("Invalid rangeType: ".concat(e))}}(A,r),I=$?function(e,n){switch(e){case"decade":return Ye(n,-100);case"year":return Qe(n,-10);case"month":return ln(n,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}(A,r):void 0,F=Hn(A,r),R=$?function(e,n){switch(e){case"decade":return Ze(n,100);case"year":return en(n,10);case"month":return sn(n,12);default:throw new Error("Invalid rangeType: ".concat(e))}}(A,r):void 0,z=function(){if(V.getFullYear()<0)return!0;var e=function(e,n){switch(e){case"century":return qe(n);case"decade":return Ge(n);case"year":return tn(n);case"month":return dn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}(A,r);return u&&u>=e}(),H=$&&function(){if(I.getFullYear()<0)return!0;var e=function(e,n){switch(e){case"decade":return Ge(n,-100);case"year":return tn(n,-10);case"month":return dn(n,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}(A,r);return u&&u>=e}(),K=d&&d<F,q=$&&d&&d<R;function B(e){var n=function(){switch(A){case"century":return function(e,n,t){return Bn(e,n,Be(t))}(c,s,e);case"decade":return Wn(c,s,e);case"year":return s(c,e);case"month":return i(c,e);default:throw new Error("Invalid view: ".concat(A,"."))}}();return h?h({date:e,label:n,locale:c||Le()||void 0,view:A}):n}return n.jsxs("div",{className:Un,children:[null!==O&&$?n.jsx("button",{"aria-label":_,className:"".concat(Un,"__arrow ").concat(Un,"__prev2-button"),disabled:H,onClick:function(){L(I,"prev2")},type:"button",children:O}):null,null!==E&&n.jsx("button",{"aria-label":D,className:"".concat(Un,"__arrow ").concat(Un,"__prev-button"),disabled:z,onClick:function(){L(V,"prev")},type:"button",children:E}),(t="".concat(Un,"__label"),n.jsxs("button",{"aria-label":f,"aria-live":m,className:t,disabled:!P,onClick:a,style:{flexGrow:1},type:"button",children:[n.jsx("span",{className:"".concat(t,"__labelText ").concat(t,"__labelText--from"),children:B(r)}),M?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"".concat(t,"__divider"),children:" – "}),n.jsx("span",{className:"".concat(t,"__labelText ").concat(t,"__labelText--to"),children:B(F)})]}):null]})),null!==j&&n.jsx("button",{"aria-label":w,className:"".concat(Un,"__arrow ").concat(Un,"__next-button"),disabled:K,onClick:function(){L(F,"next")},type:"button",children:j}),null!==y&&$?n.jsx("button",{"aria-label":g,className:"".concat(Un,"__arrow ").concat(Un,"__next2-button"),disabled:q,onClick:function(){L(R,"next2")},type:"button",children:y}):null]})}var Jn=function(){return Jn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},Jn.apply(this,arguments)},Xn=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function Qn(e){return"".concat(e,"%")}function et(t){var r=t.children,a=t.className,o=t.count,i=t.direction,l=t.offset,s=t.style,c=t.wrap,d=Xn(t,["children","className","count","direction","offset","style","wrap"]);return n.jsx("div",Jn({className:a,style:Jn({display:"flex",flexDirection:i,flexWrap:c?"wrap":"nowrap"},s)},d,{children:e.Children.map(r,function(n,t){var r=l&&0===t?Qn(100*l/o):null;return e.cloneElement(n,Jn(Jn({},n.props),{style:{flexBasis:Qn(100/o),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:r,marginInlineStart:r,marginInlineEnd:0}}))})}))}function nt(e,n){return n[0]<=e&&n[1]>=e}function tt(e,n){return nt(e[0],n)||nt(e[1],n)}function rt(e,n,t){var r=[];if(tt(n,e)){r.push(t);var a=nt(e[0],n),o=nt(e[1],n);a&&r.push("".concat(t,"Start")),o&&r.push("".concat(t,"End")),a&&o&&r.push("".concat(t,"BothEnds"))}return r}function at(e){if(!e)throw new Error("args is required");var n=e.value,t=e.date,r=e.hover,a="react-calendar__tile",o=[a];if(!t)return o;var i=new Date,l=function(){if(Array.isArray(t))return t;var n=e.dateType;if(!n)throw new Error("dateType is required when date is not an array of two dates");return qn(n,t)}();if(nt(i,l)&&o.push("".concat(a,"--now")),!n||!function(e){return Array.isArray(e)?null!==e[0]&&null!==e[1]:null!==e}(n))return o;var s,c,d=function(){if(Array.isArray(n))return n;var t=e.valueType;if(!t)throw new Error("valueType is required when value is not an array of two dates");return qn(t,n)}();c=l,(s=d)[0]<=c[0]&&s[1]>=c[1]?o.push("".concat(a,"--active")):tt(d,l)&&o.push("".concat(a,"--hasActive"));var u=rt(d,l,"".concat(a,"--range"));o.push.apply(o,u);var p=Array.isArray(n)?n:[n];if(r&&1===p.length){var f=rt(r>d[0]?[d[0],r]:[r,d[0]],l,"".concat(a,"--hover"));o.push.apply(o,f)}return o}function ot(e){for(var t=e.className,r=e.count,a=void 0===r?3:r,o=e.dateTransform,i=e.dateType,l=e.end,s=e.hover,c=e.offset,d=e.renderTile,u=e.start,p=e.step,f=void 0===p?1:p,m=e.value,h=e.valueType,v=[],g=u;g<=l;g+=f){var b=o(g);v.push(d({classes:at({date:b,dateType:i,hover:s,value:m,valueType:h}),date:b}))}return n.jsx(et,{className:t,count:a,offset:c,wrap:!0,children:v})}function it(t){var r=t.activeStartDate,a=t.children,o=t.classes,i=t.date,l=t.formatAbbr,s=t.locale,c=t.maxDate,d=t.maxDateTransform,u=t.minDate,p=t.minDateTransform,f=t.onClick,m=t.onMouseOver,h=t.style,v=t.tileClassName,g=t.tileContent,b=t.tileDisabled,y=t.view,x=e.useMemo(function(){return"function"==typeof v?v({activeStartDate:r,date:i,view:y}):v},[r,i,v,y]),w=e.useMemo(function(){return"function"==typeof g?g({activeStartDate:r,date:i,view:y}):g},[r,i,g,y]);return n.jsxs("button",{className:H(o,x),disabled:u&&p(u)>i||c&&d(c)<i||(null==b?void 0:b({activeStartDate:r,date:i,view:y})),onClick:f?function(e){return f(i,e)}:void 0,onFocus:m?function(){return m(i)}:void 0,onMouseOver:m?function(){return m(i)}:void 0,style:h,type:"button",children:[l?n.jsx("abbr",{"aria-label":l(s,i),children:a}):a,w]})}var lt=function(){return lt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},lt.apply(this,arguments)},st=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t},ct="react-calendar__century-view__decades__decade";function dt(e){var t=e.classes,r=void 0===t?[]:t,a=e.currentCentury,o=e.formatYear,i=void 0===o?Pn:o,l=st(e,["classes","currentCentury","formatYear"]),s=l.date,c=l.locale,d=[];return r&&d.push.apply(d,r),d.push(ct),Re(s).getFullYear()!==a&&d.push("".concat(ct,"--neighboringCentury")),n.jsx(it,lt({},l,{classes:d,maxDateTransform:Ue,minDateTransform:We,view:"century",children:Wn(c,i,s)}))}var ut=function(){return ut=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},ut.apply(this,arguments)},pt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function ft(e){var t=e.activeStartDate,r=e.hover,a=e.showNeighboringCentury,o=e.value,i=e.valueType,l=pt(e,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),s=$e(Re(t)),c=s+(a?119:99);return n.jsx(ot,{className:"react-calendar__century-view__decades",dateTransform:We,dateType:"decade",end:c,hover:r,renderTile:function(e){var r=e.date,a=pt(e,["date"]);return n.jsx(dt,ut({},l,a,{activeStartDate:t,currentCentury:s,date:r}),r.getTime())},start:s,step:10,value:o,valueType:i})}var mt=function(){return mt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},mt.apply(this,arguments)};function ht(e){return n.jsx("div",{className:"react-calendar__century-view",children:n.jsx(ft,mt({},e))})}var vt=function(){return vt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},vt.apply(this,arguments)},gt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t},bt="react-calendar__decade-view__years__year";function yt(e){var t=e.classes,r=void 0===t?[]:t,a=e.currentDecade,o=e.formatYear,i=void 0===o?Pn:o,l=gt(e,["classes","currentDecade","formatYear"]),s=l.date,c=l.locale,d=[];return r&&d.push.apply(d,r),d.push(bt),We(s).getFullYear()!==a&&d.push("".concat(bt,"--neighboringDecade")),n.jsx(it,vt({},l,{classes:d,maxDateTransform:nn,minDateTransform:Xe,view:"decade",children:i(c,s)}))}var xt=function(){return xt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},xt.apply(this,arguments)},wt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function Ct(e){var t=e.activeStartDate,r=e.hover,a=e.showNeighboringDecade,o=e.value,i=e.valueType,l=wt(e,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),s=$e(We(t)),c=s+(a?11:9);return n.jsx(ot,{className:"react-calendar__decade-view__years",dateTransform:Xe,dateType:"year",end:c,hover:r,renderTile:function(e){var r=e.date,a=wt(e,["date"]);return n.jsx(yt,xt({},l,a,{activeStartDate:t,currentDecade:s,date:r}),r.getTime())},start:s,value:o,valueType:i})}var jt=function(){return jt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},jt.apply(this,arguments)};function kt(e){return n.jsx("div",{className:"react-calendar__decade-view",children:n.jsx(Ct,jt({},e))})}var _t=function(){return _t=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},_t.apply(this,arguments)},Nt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t},Ot=function(e,n,t){if(t||2===arguments.length)for(var r,a=0,o=n.length;a<o;a++)!r&&a in n||(r||(r=Array.prototype.slice.call(n,0,a)),r[a]=n[a]);return e.concat(r||Array.prototype.slice.call(n))};function St(e){var t=e.classes,r=void 0===t?[]:t,a=e.formatMonth,o=void 0===a?En:a,i=e.formatMonthYear,l=void 0===i?Ln:i,s=Nt(e,["classes","formatMonth","formatMonthYear"]),c=s.date,d=s.locale;return n.jsx(it,_t({},s,{classes:Ot(Ot([],r,!0),["react-calendar__year-view__months__month"],!1),formatAbbr:l,maxDateTransform:cn,minDateTransform:on,view:"year",children:o(d,c)}))}var Dt=function(){return Dt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},Dt.apply(this,arguments)},Tt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function Et(e){var t=e.activeStartDate,r=e.hover,a=e.value,o=e.valueType,i=Tt(e,["activeStartDate","hover","value","valueType"]),l=$e(t);return n.jsx(ot,{className:"react-calendar__year-view__months",dateTransform:function(e){var n=new Date;return n.setFullYear(l,e,1),on(n)},dateType:"month",end:11,hover:r,renderTile:function(e){var r=e.date,a=Tt(e,["date"]);return n.jsx(St,Dt({},i,a,{activeStartDate:t,date:r}),r.getTime())},start:0,value:a,valueType:o})}var Lt=function(){return Lt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},Lt.apply(this,arguments)};function Mt(e){return n.jsx("div",{className:"react-calendar__year-view",children:n.jsx(Et,Lt({},e))})}var At=function(){return At=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},At.apply(this,arguments)},Pt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t},$t="react-calendar__month-view__days__day";function Vt(e){var t=e.calendarType,r=e.classes,a=void 0===r?[]:r,o=e.currentMonthIndex,i=e.formatDay,l=void 0===i?Dn:i,s=e.formatLongDate,c=void 0===s?Tn:s,d=Pt(e,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),u=d.date,p=d.locale,f=[];return a&&f.push.apply(f,a),f.push($t),Zn(u,t)&&f.push("".concat($t,"--weekend")),u.getMonth()!==o&&f.push("".concat($t,"--neighboringMonth")),n.jsx(it,At({},d,{classes:f,formatAbbr:c,maxDateTransform:hn,minDateTransform:pn,view:"month",children:l(p,u)}))}var It=function(){return It=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},It.apply(this,arguments)},Ft=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function Rt(e){var t=e.activeStartDate,r=e.calendarType,a=e.hover,o=e.showFixedNumberOfWeeks,i=e.showNeighboringMonth,l=e.value,s=e.valueType,c=Ft(e,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),d=$e(t),u=Ve(t),p=o||i,f=Fn(t,r),m=p?0:f,h=1+(p?-f:0),v=function(){if(o)return h+42-1;var e=gn(t);if(i){var n=new Date;return n.setFullYear(d,u,e),n.setHours(0,0,0,0),e+(7-Fn(n,r)-1)}return e}();return n.jsx(ot,{className:"react-calendar__month-view__days",count:7,dateTransform:function(e){var n=new Date;return n.setFullYear(d,u,e),pn(n)},dateType:"day",hover:a,end:v,renderTile:function(e){var a=e.date,o=Ft(e,["date"]);return n.jsx(Vt,It({},c,o,{activeStartDate:t,calendarType:r,currentMonthIndex:u,date:a}),a.getTime())},offset:m,start:h,value:l,valueType:s})}var zt="react-calendar__month-view__weekdays",Ht="".concat(zt,"__weekday");function Kt(e){for(var t=e.calendarType,r=e.formatShortWeekday,a=void 0===r?Mn:r,o=e.formatWeekday,i=void 0===o?An:o,l=e.locale,s=e.onMouseLeave,c=on(new Date),d=$e(c),u=Ve(c),p=[],f=1;f<=7;f+=1){var m=new Date(d,u,f-Fn(c,t)),h=i(l,m);p.push(n.jsx("div",{className:H(Ht,Yn(m)&&"".concat(Ht,"--current"),Zn(m,t)&&"".concat(Ht,"--weekend")),children:n.jsx("abbr",{"aria-label":h,title:h,children:a(l,m).replace(".","")})},f))}return n.jsx(et,{className:zt,count:7,onFocus:s,onMouseOver:s,children:p})}var qt=function(){return qt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},qt.apply(this,arguments)},Bt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t},Wt="react-calendar__tile";function Yt(e){var t=e.onClickWeekNumber,r=e.weekNumber,a=n.jsx("span",{children:r});if(t){var o=e.date,i=e.onClickWeekNumber,l=e.weekNumber,s=Bt(e,["date","onClickWeekNumber","weekNumber"]);return n.jsx("button",qt({},s,{className:Wt,onClick:function(e){return i(l,o,e)},type:"button",children:a}))}e.date,e.onClickWeekNumber,e.weekNumber;s=Bt(e,["date","onClickWeekNumber","weekNumber"]);return n.jsx("div",qt({},s,{className:Wt,children:a}))}function Zt(e){var t=e.activeStartDate,r=e.calendarType,a=e.onClickWeekNumber,o=e.onMouseLeave,i=e.showFixedNumberOfWeeks,l=function(){if(i)return 6;var e=gn(t)-(7-Fn(t,r));return 1+Math.ceil(e/7)}(),s=function(){for(var e=$e(t),n=Ve(t),a=Fe(t),o=[],i=0;i<l;i+=1)o.push(Rn(new Date(e,n,a+7*i),r));return o}(),c=s.map(function(e){return function(e,n){void 0===n&&(n=kn);var t,r=n===wn?wn:kn,a=Rn(e,n),o=$e(e)+1;do{t=Rn(new Date(o,0,r===kn?4:1),n),o-=1}while(e<t);return Math.round((a.getTime()-t.getTime())/6048e5)+1}(e,r)});return n.jsx(et,{className:"react-calendar__month-view__weekNumbers",count:l,direction:"column",onFocus:o,onMouseOver:o,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0},children:c.map(function(e,t){var r=s[t];if(!r)throw new Error("date is not defined");return n.jsx(Yt,{date:r,onClickWeekNumber:a,weekNumber:e},e)})})}var Ut=function(){return Ut=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},Ut.apply(this,arguments)},Gt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function Jt(e){var t=e.activeStartDate,r=e.locale,a=e.onMouseLeave,o=e.showFixedNumberOfWeeks,i=e.calendarType,l=void 0===i?function(e){if(e)for(var n=0,t=Object.entries(_n);n<t.length;n++){var r=t[n],a=r[0];if(r[1].includes(e))return a}return kn}(r):i,s=e.formatShortWeekday,c=e.formatWeekday,d=e.onClickWeekNumber,u=e.showWeekNumbers,p=Gt(e,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);var f="react-calendar__month-view";return n.jsx("div",{className:H(f,u?"".concat(f,"--weekNumbers"):""),children:n.jsxs("div",{style:{display:"flex",alignItems:"flex-end"},children:[u?n.jsx(Zt,{activeStartDate:t,calendarType:l,onClickWeekNumber:d,onMouseLeave:a,showFixedNumberOfWeeks:o}):null,n.jsxs("div",{style:{flexGrow:1,width:"100%"},children:[n.jsx(Kt,{calendarType:l,formatShortWeekday:s,formatWeekday:c,locale:r,onMouseLeave:a}),n.jsx(Rt,Ut({calendarType:l},p))]})]})})}var Xt=function(){return Xt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},Xt.apply(this,arguments)},Qt="react-calendar",er=["century","decade","year","month"],nr=["decade","year","month","day"],tr=new Date;tr.setFullYear(1,0,1),tr.setHours(0,0,0,0);var rr=new Date(864e13);function ar(e){return e instanceof Date?e:new Date(e)}function or(e,n){return er.slice(er.indexOf(e),er.indexOf(n)+1)}function ir(e,n,t){return e&&function(e,n,t){return-1!==or(n,t).indexOf(e)}(e,n,t)?e:t}function lr(e){var n=er.indexOf(e);return nr[n]}function sr(e,n){var t=e.value,r=e.minDate,a=e.maxDate,o=e.maxDetail,i=function(e,n){var t=Array.isArray(e)?e[n]:e;if(!t)return null;var r=ar(t);if(Number.isNaN(r.getTime()))throw new Error("Invalid date: ".concat(e));return r}(t,n);if(!i)return null;var l=lr(o);return function(e,n,t){return n&&n>e?n:t&&t<e?t:e}(function(){switch(n){case 0:return zn(l,i);case 1:return Kn(l,i);default:throw new Error("Invalid index value: ".concat(n))}}(),r,a)}var cr=function(e){return sr(e,0)},dr=function(e){return sr(e,1)},ur=function(e){return[cr,dr].map(function(n){return n(e)})};function pr(e){var n=e.maxDate,t=e.maxDetail,r=e.minDate,a=e.minDetail,o=e.value;return zn(ir(e.view,a,t),cr({value:o,minDate:r,maxDate:n,maxDetail:t})||new Date)}function fr(e){return e&&(!Array.isArray(e)||1===e.length)}function mr(e,n){return e instanceof Date&&n instanceof Date&&e.getTime()===n.getTime()}var hr,vr,gr=e.forwardRef(function(t,r){var a,o=t.activeStartDate,i=t.allowPartialRange,l=t.calendarType,s=t.className,c=t.defaultActiveStartDate,d=t.defaultValue,u=t.defaultView,p=t.formatDay,f=t.formatLongDate,m=t.formatMonth,h=t.formatMonthYear,v=t.formatShortWeekday,g=t.formatWeekday,b=t.formatYear,y=t.goToRangeStartOnSelect,x=void 0===y||y,w=t.inputRef,C=t.locale,j=t.maxDate,k=void 0===j?rr:j,_=t.maxDetail,N=void 0===_?"month":_,O=t.minDate,S=void 0===O?tr:O,D=t.minDetail,T=void 0===D?"century":D,E=t.navigationAriaLabel,L=t.navigationAriaLive,M=t.navigationLabel,A=t.next2AriaLabel,P=t.next2Label,$=t.nextAriaLabel,V=t.nextLabel,I=t.onActiveStartDateChange,F=t.onChange,R=t.onClickDay,z=t.onClickDecade,K=t.onClickMonth,q=t.onClickWeekNumber,B=t.onClickYear,W=t.onDrillDown,Y=t.onDrillUp,Z=t.onViewChange,U=t.prev2AriaLabel,G=t.prev2Label,J=t.prevAriaLabel,X=t.prevLabel,Q=t.returnValue,ee=void 0===Q?"start":Q,ne=t.selectRange,te=t.showDoubleView,re=t.showFixedNumberOfWeeks,ae=t.showNavigation,oe=void 0===ae||ae,ie=t.showNeighboringCentury,le=t.showNeighboringDecade,se=t.showNeighboringMonth,ce=void 0===se||se,de=t.showWeekNumbers,ue=t.tileClassName,pe=t.tileContent,fe=t.tileDisabled,me=t.value,he=t.view,ve=e.useState(c),ge=ve[0],be=ve[1],ye=e.useState(null),xe=ye[0],we=ye[1],Ce=e.useState(Array.isArray(d)?d.map(function(e){return null!==e?ar(e):null}):null!=d?ar(d):null),je=Ce[0],ke=Ce[1],_e=e.useState(u),Ne=_e[0],Oe=_e[1],Se=o||ge||function(e){var n=e.activeStartDate,t=e.defaultActiveStartDate,r=e.defaultValue,a=e.defaultView,o=e.maxDate,i=e.maxDetail,l=e.minDate,s=e.minDetail,c=e.value,d=e.view,u=ir(d,s,i),p=n||t;return p?zn(u,p):pr({maxDate:o,maxDetail:i,minDate:l,minDetail:s,value:c||r,view:d||a})}({activeStartDate:o,defaultActiveStartDate:c,defaultValue:d,defaultView:u,maxDate:k,maxDetail:N,minDate:S,minDetail:T,value:me,view:he}),De=(a=ne&&fr(je)?je:void 0!==me?me:je)?Array.isArray(a)?a.map(function(e){return null!==e?ar(e):null}):null!==a?ar(a):null:null,Te=lr(N),Ee=ir(he||Ne,T,N),Le=or(T,N),Me=ne?xe:null,Ae=Le.indexOf(Ee)<Le.length-1,Pe=Le.indexOf(Ee)>0,$e=e.useCallback(function(e){return function(){switch(ee){case"start":return cr;case"end":return dr;case"range":return ur;default:throw new Error("Invalid returnValue.")}}()({maxDate:k,maxDetail:N,minDate:S,value:e})},[k,N,S,ee]),Ve=e.useCallback(function(e,n){be(e);var t={action:n,activeStartDate:e,value:De,view:Ee};I&&!mr(Se,e)&&I(t)},[Se,I,De,Ee]),Ie=e.useCallback(function(e,n){var t=function(){switch(Ee){case"century":return z;case"decade":return B;case"year":return K;case"month":return R;default:throw new Error("Invalid view: ".concat(Ee,"."))}}();t&&t(e,n)},[R,z,K,B,Ee]),Fe=e.useCallback(function(e,n){if(Ae){Ie(e,n);var t=Le[Le.indexOf(Ee)+1];if(!t)throw new Error("Attempted to drill down from the lowest view.");be(e),Oe(t);var r={action:"drillDown",activeStartDate:e,value:De,view:t};I&&!mr(Se,e)&&I(r),Z&&Ee!==t&&Z(r),W&&W(r)}},[Se,Ae,I,Ie,W,Z,De,Ee,Le]),Re=e.useCallback(function(){if(Pe){var e=Le[Le.indexOf(Ee)-1];if(!e)throw new Error("Attempted to drill up from the highest view.");var n=zn(e,Se);be(n),Oe(e);var t={action:"drillUp",activeStartDate:n,value:De,view:e};I&&!mr(Se,n)&&I(t),Z&&Ee!==e&&Z(t),Y&&Y(t)}},[Se,Pe,I,Y,Z,De,Ee,Le]),ze=e.useCallback(function(e,n){var t=De;Ie(e,n);var r,a=ne&&!fr(t);if(ne)if(a)r=zn(Te,e);else{if(!t)throw new Error("previousValue is required");if(Array.isArray(t))throw new Error("previousValue must not be an array");r=function(e,n,t){var r=[n,t].sort(function(e,n){return e.getTime()-n.getTime()});return[zn(e,r[0]),Kn(e,r[1])]}(Te,t,e)}else r=$e(e);var o=!ne||a||x?pr({maxDate:k,maxDetail:N,minDate:S,minDetail:T,value:r,view:Ee}):null;n.persist(),be(o),ke(r);var l={action:"onChange",activeStartDate:o,value:r,view:Ee};if(I&&!mr(Se,o)&&I(l),F)if(ne)if(fr(r)){if(i){if(Array.isArray(r))throw new Error("value must not be an array");F([r||null,null],n)}}else F(r||null,n);else F(r||null,n)},[Se,i,$e,x,k,N,S,T,I,F,Ie,ne,De,Te,Ee]);function He(e){we(e)}function Ke(){we(null)}function qe(e){var t={activeStartDate:e?Hn(Ee,Se):zn(Ee,Se),hover:Me,locale:C,maxDate:k,minDate:S,onClick:Ae?Fe:ze,onMouseOver:ne?He:void 0,tileClassName:ue,tileContent:pe,tileDisabled:fe,value:De,valueType:Te};switch(Ee){case"century":return n.jsx(ht,Xt({formatYear:b,showNeighboringCentury:ie},t));case"decade":return n.jsx(kt,Xt({formatYear:b,showNeighboringDecade:le},t));case"year":return n.jsx(Mt,Xt({formatMonth:m,formatMonthYear:h},t));case"month":return n.jsx(Jt,Xt({calendarType:l,formatDay:p,formatLongDate:f,formatShortWeekday:v,formatWeekday:g,onClickWeekNumber:q,onMouseLeave:ne?Ke:void 0,showFixedNumberOfWeeks:void 0!==re?re:te,showNeighboringMonth:ce,showWeekNumbers:de},t));default:throw new Error("Invalid view: ".concat(Ee,"."))}}e.useImperativeHandle(r,function(){return{activeStartDate:Se,drillDown:Fe,drillUp:Re,onChange:ze,setActiveStartDate:Ve,value:De,view:Ee}},[Se,Fe,Re,ze,Ve,De,Ee]);var Be=Array.isArray(De)?De:[De];return n.jsxs("div",{className:H(Qt,ne&&1===Be.length&&"".concat(Qt,"--selectRange"),te&&"".concat(Qt,"--doubleView"),s),ref:w,children:[oe?n.jsx(Gn,{activeStartDate:Se,drillUp:Re,formatMonthYear:h,formatYear:b,locale:C,maxDate:k,minDate:S,navigationAriaLabel:E,navigationAriaLive:L,navigationLabel:M,next2AriaLabel:A,next2Label:P,nextAriaLabel:$,nextLabel:V,prev2AriaLabel:U,prev2Label:G,prevAriaLabel:J,prevLabel:X,setActiveStartDate:Ve,showDoubleView:te,view:Ee,views:Le}):null,n.jsxs("div",{className:"".concat(Qt,"__viewContainer"),onBlur:ne?Ke:void 0,onMouseLeave:ne?Ke:void 0,children:[qe(),te?qe(!0):null]})]})});function br(e){return e.getBoundingClientRect()}function yr(e,n){return{get collidedTop(){return br(e).top<br(n).top},get collidedBottom(){return br(e).bottom>br(n).bottom},get collidedLeft(){return br(e).left<br(n).left},get collidedRight(){return br(e).right>br(n).right},get overflowTop(){return br(n).top-br(e).top},get overflowBottom(){return br(e).bottom-br(n).bottom},get overflowLeft(){return br(n).left-br(e).left},get overflowRight(){return br(e).right-br(n).right}}}var xr=function(){if(vr)return hr;vr=1;var e=function(){};if("production"!==process.env.NODE_ENV){var n=function(e,n){var t=arguments.length;n=new Array(t>1?t-1:0);for(var r=1;r<t;r++)n[r-1]=arguments[r];var a=0,o="Warning: "+e.replace(/%s/g,function(){return n[a++]});"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};e=function(e,t,r){var a=arguments.length;r=new Array(a>2?a-2:0);for(var o=2;o<a;o++)r[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||n.apply(null,[t].concat(r))}}return hr=e}(),wr=r(xr),Cr=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};const jr="undefined"!=typeof window&&"MutationObserver"in window;function kr(e){return e.charAt(0).toUpperCase()+e.slice(1)}function _r({axis:e,container:n,element:t,invertAxis:r,scrollContainer:a,secondary:o,spacing:i}){const l=window.getComputedStyle(t),s=n.parentElement;if(!s)return;const c=yr(s,a),d=yr(s,document.documentElement),u="x"===e,p=u?"left":"top",f=u?"right":"bottom",m=u?"width":"height",h=`overflow${kr(p)}`,v=`overflow${kr(f)}`,g=`scroll${kr(p)}`,b=kr(m),y=`offset${b}`,x=`client${b}`,w=`min-${m}`,C=a[y]-a[x],j="object"==typeof i?i[p]:i;let k=-Math.max(c[h],d[h]+document.documentElement[g])-j;const _="object"==typeof i?i[f]:i;let N=-Math.max(c[v],d[v]-document.documentElement[g])-_-C;o&&(k+=s[x],N+=s[x]);const O=t[y];function S(){t.style[p]="auto",t.style[f]=o?"0":"100%"}function D(){t.style[p]=o?"0":"100%",t.style[f]="auto"}function T(e,n){const t=O<=e;return t&&n(),t}function E(){return T(k,S)}function L(){return T(N,D)}let M;M=r?E()||L():L()||E(),M||function(){const e=k>N,n=l.getPropertyValue(w),r=n?Number.parseInt(n,10):null;function a(e){wr(!r||e>=r,`<Fit />'s child will not fit anywhere with its current ${w} of ${r}px.`);const n=Math.max(e,r||0);wr(!1,`<Fit />'s child needed to have its ${m} decreased to ${n}px.`),t.style[m]=`${n}px`}e?(a(k),S()):(a(N),D())}()}function Nr(e){const{invertAxis:n,invertSecondaryAxis:t}=e,r=Cr(e,["invertAxis","invertSecondaryAxis"]);!function(e){_r(e)}(Object.assign(Object.assign({},r),{invertAxis:n})),function(e){_r(Object.assign(Object.assign({},e),{axis:"x"===e.axis?"y":"x",secondary:!0}))}(Object.assign(Object.assign({},r),{invertAxis:t}))}function Or({children:t,invertAxis:r,invertSecondaryAxis:a,mainAxis:o="y",spacing:i=8}){const l=e.useRef(void 0),s=e.useRef(void 0),c=e.useRef(void 0),d=e.useRef(void 0),u=e.useRef(void 0),p=e.useCallback(()=>{if(!u.current||!l.current||!s.current)return;const e=s.current.clientWidth,n=s.current.clientHeight;if(c.current===e&&d.current===n)return;c.current=e,d.current=n;const t=l.current.parentElement;if(!t)return;const p=window.getComputedStyle(s.current),{position:f}=p;"absolute"!==f&&(s.current.style.position="absolute");const m=window.getComputedStyle(t),{position:h}=m;"relative"!==h&&"absolute"!==h&&(t.style.position="relative"),Nr({axis:o,container:l.current,element:s.current,invertAxis:r,invertSecondaryAxis:a,scrollContainer:u.current,spacing:i})},[r,a,o,i]),f=e.Children.only(t);function m(e){e&&e instanceof HTMLElement&&(s.current=e,u.current=function(e){let n=e.parentElement;for(;n;){const{overflow:e}=window.getComputedStyle(n);if(e.split(" ").every(e=>"auto"===e||"scroll"===e))return n;n=n.parentElement}return document.documentElement}(e))}return e.useEffect(()=>{if(p(),jr&&s.current){new MutationObserver(function(){p()}).observe(s.current,{attributes:!0,attributeFilter:["class","style"]})}},[p]),n.jsx("span",{ref:e=>{if(!e)return;l.current=e;m(null==e?void 0:e.firstElementChild)},style:{display:"contents"},children:f})}var Sr,Dr=["normal","small-caps"];function Tr(e){if(!e)return"";var n=window.getComputedStyle(e);if(n.font)return n.font;if(!(""!==n.fontFamily))return"";var t=Dr.includes(n.fontVariant)?n.fontVariant:"normal";return"".concat(n.fontStyle," ").concat(t," ").concat(n.fontWeight," ").concat(n.fontSize," / ").concat(n.lineHeight," ").concat(n.fontFamily)}function Er(e){if("undefined"==typeof document||!e)return null;var n=Tr(e),t=function(e,n){var t=(Sr||(Sr=document.createElement("canvas"))).getContext("2d");if(!t)return null;t.font=n;var r=t.measureText(e).width;return Math.ceil(r)}(e.value||e.placeholder,n);return null===t?null:(e.style.width="".concat(t,"px"),t)}const Lr="undefined"!=typeof window,Mr=Lr?e.useLayoutEffect:e.useEffect,Ar=Lr&&/(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent),Pr=Lr&&/Firefox/.test(navigator.userAgent);function $r(e){const{target:n}=e;Ar?requestAnimationFrame(()=>n.select()):n.select()}function Vr(e){if(null!==e)return function(n){if(Pr)return;const{key:t,target:r}=n,{value:a}=r,o=1===t.length&&/\d/.test(t),i=function(e){if(e&&"selectionStart"in e&&null!==e.selectionStart&&"selectionEnd"in e&&null!==e.selectionEnd)return e.value.slice(e.selectionStart,e.selectionEnd);if("getSelection"in window){const e=window.getSelection();return null==e?void 0:e.toString()}return null}(r);o&&(i||a.length<e)||n.preventDefault()}}function Ir({ariaLabel:e,autoFocus:t,className:r,disabled:a,inputRef:o,max:i,min:l,name:s,nameForClass:c,onChange:d,onKeyDown:u,onKeyUp:p,placeholder:f="--",required:m,showLeadingZeros:h,step:v,value:g}){Mr(()=>{var e;o&&o.current&&(Er(o.current),e=o.current,"complete"!==document.readyState&&window.addEventListener("load",function(){Er(e)}),function(e){if(!document.fonts)return;const n=Tr(e);if(!n)return;document.fonts.check(n)||document.fonts.addEventListener("loadingdone",function(){Er(e)})}(o.current))},[o,g]);const b=h&&g&&Number(g)<10&&("0"===g||!g.toString().startsWith("0")),y=i?i.toString().length:null;return n.jsxs(n.Fragment,{children:[b?n.jsx("span",{className:`${r}__leadingZero`,children:"0"}):null,n.jsx("input",{"aria-label":e,autoComplete:"off",autoFocus:t,className:H(`${r}__input`,`${r}__${c||s}`,b&&`${r}__input--hasLeadingZero`),"data-input":"true",disabled:a,inputMode:"numeric",max:i,min:l,name:s,onChange:d,onFocus:$r,onKeyDown:u,onKeyPress:Vr(y),onKeyUp:e=>{Er(e.target),p&&p(e)},placeholder:f,ref:o,required:m,step:v,type:"number",value:null!==g?g:""})]})}function Fr(e){return null!==e&&!1!==e&&!Number.isNaN(Number(e))}function Rr(...e){return Math.min(...e.filter(Fr))}function zr(...e){return Math.max(...e.filter(Fr))}function Hr({maxDate:e,minDate:t,month:r,year:a,...o}){function i(e){return a===$e(e).toString()&&r===Ie(e).toString()}const l=Rr(r?gn(new Date(Number(a),Number(r)-1,1)):31,e&&i(e)&&Fe(e)),s=zr(1,t&&i(t)&&Fe(t));return n.jsx(Ir,{max:l,min:s,name:"day",...o})}function Kr({maxDate:e,minDate:t,year:r,...a}){function o(e){return e&&r===$e(e).toString()}const i=Rr(12,e&&o(e)&&Ie(e)),l=zr(1,t&&o(t)&&Ie(t));return n.jsx(Ir,{max:i,min:l,name:"month",...a})}const qr=new Map;function Br(e){return function(n,t){const r=n||Le();qr.has(r)||qr.set(r,new Map);const a=qr.get(r);return a.has(e)||a.set(e,new Intl.DateTimeFormat(r||void 0,e).format),a.get(e)(t)}}function Wr(e){return(n,t)=>Br(e)(n,function(e){const n=new Date(e);return new Date(n.setHours(12))}(t))}const Yr=Wr({month:"long"}),Zr=Wr({month:"short"});function Ur({ariaLabel:e,autoFocus:t,className:r,disabled:a,inputRef:o,locale:i,maxDate:l,minDate:s,onChange:c,onKeyDown:d,placeholder:u="--",required:p,short:f,value:m,year:h}){function v(e){return e&&h===$e(e).toString()}const g=Rr(12,l&&v(l)&&Ie(l)),b=zr(1,s&&v(s)&&Ie(s)),y=[...Array(12)].map((e,n)=>new Date(2019,n,1)),x="month",w=f?Zr:Yr;return n.jsxs("select",{"aria-label":e,autoFocus:t,className:H(`${r}__input`,`${r}__${x}`),"data-input":"true","data-select":"true",disabled:a,name:x,onChange:c,onKeyDown:d,ref:o,required:p,value:null!==m?m:"",children:[!m&&n.jsx("option",{value:"",children:u}),y.map(e=>{const t=Ie(e),r=t<b||t>g;return n.jsx("option",{disabled:r,value:t,children:w(i,e)},t)})]})}function Gr({ariaLabel:e,disabled:t,maxDate:r,minDate:a,name:o,onChange:i,required:l,value:s,valueType:c}){const d=(()=>{switch(c){case"decade":case"year":return"number";case"month":return"month";case"day":return"date";default:throw new Error("Invalid valueType")}})(),u=(()=>{switch(c){case"decade":case"year":return $e;case"month":return yn;case"day":return xn;default:throw new Error("Invalid valueType")}})();return n.jsx("input",{"aria-label":e,disabled:t,hidden:!0,max:r?u(r):void 0,min:a?u(a):void 0,name:o,onChange:i,onFocus:function(e){e.stopPropagation()},required:l,style:{visibility:"hidden",position:"absolute",zIndex:"-999"},type:d,value:s?u(s):""})}function Jr({maxDate:e,minDate:t,placeholder:r="----",valueType:a,...o}){const i=Rr(275760,e&&$e(e)),l=zr(1,t&&$e(t)),s="century"===a?10:1;return n.jsx(Ir,{max:i,min:l,name:"year",placeholder:r,step:s,...o})}function Xr({children:e}){return n.jsx("span",{className:"react-date-picker__inputGroup__divider",children:e})}const Qr={},ea=new Date;ea.setFullYear(1,0,1),ea.setHours(0,0,0,0);const na=new Date(864e13),ta=["century","decade","year","month"],ra=[...ta.slice(1),"day"];function aa(e){const n=ta.indexOf(e);return ra[n]}function oa(e,n){const t=Array.isArray(e)?e[n]:e;if(!t)return null;const r=function(e){return e instanceof Date?e:new Date(e)}(t);if(Number.isNaN(r.getTime()))throw new Error(`Invalid date: ${e}`);return r}function ia({value:e,minDate:n,maxDate:t,maxDetail:r},a){const o=oa(e,a);if(!o)return null;const i=aa(r);return function(e,n,t){return n&&n>e?n:t&&t<e?t:e}((()=>{switch(a){case 0:return function(e,n){switch(e){case"decade":return We(n);case"year":return Xe(n);case"month":return on(n);case"day":return pn(n);default:throw new Error(`Invalid rangeType: ${e}`)}}(i,o);case 1:return function(e,n){switch(e){case"decade":return Ue(n);case"year":return nn(n);case"month":return cn(n);case"day":return hn(n);default:throw new Error(`Invalid rangeType: ${e}`)}}(i,o);default:throw new Error(`Invalid index value: ${a}`)}})(),n,t)}const la=e=>ia(e,0),sa=e=>ia(e,1),ca=e=>[la,sa].map(n=>n(e));function da(e){return"true"===e.dataset.input}function ua(e,n){let t=e;do{t=t[n]}while(t&&!da(t));return t}function pa(e){e&&e.focus()}function fa({autoFocus:t,className:r,dayAriaLabel:a,dayPlaceholder:o,disabled:i,format:l,isCalendarOpen:s=null,locale:c,maxDate:d,maxDetail:u="month",minDate:p,monthAriaLabel:f,monthPlaceholder:m,name:h="date",nativeInputAriaLabel:v,onChange:g,onInvalidChange:b,required:y,returnValue:x="start",showLeadingZeros:w,value:C,yearAriaLabel:j,yearPlaceholder:k}){const[_,N]=e.useState(null),[O,S]=e.useState(null),[D,T]=e.useState(null),[E,L]=e.useState(null),M=e.useRef(null),A=e.useRef(null),P=e.useRef(null),$=e.useRef(null),[V,I]=e.useState(s),F=e.useRef(void 0);e.useEffect(()=>{I(s)},[s]),e.useEffect(()=>{const e=la({value:C,minDate:p,maxDate:d,maxDetail:u});e?(N($e(e).toString()),S(Ie(e).toString()),T(Fe(e).toString()),L(e)):(N(null),S(null),T(null),L(null))},[C,p,d,u,V]);const R=aa(u),z=(()=>{const e=ta.indexOf(u);return Br(Qr[e]||(()=>{const n={year:"numeric"};return e>=2&&(n.month="numeric"),e>=3&&(n.day="numeric"),Qr[e]=n,n})())})();const H=l||(()=>{const e=new Date(2017,11,11),n=z(c,e),t=["y","M","d"];let r=n;return["year","month","day"].forEach((n,a)=>{const o=function(e,n){return Br(Qr[e]||(()=>{const n={[e]:"numeric"};return Qr[e]=n,n})())(c,n).match(/\d{1,}/)}(n,e);if(o){const e=o[0],n=t[a];r=r.replace(e,n)}}),r=r.replace("17","y"),r})(),K=(()=>{const e=H.match(/[^0-9a-z]/i);return e?e[0]:null})();function q(){if(!g)return;const e=[$.current,A.current,P.current,M.current].filter(function(e){return Boolean(e)}),n={};for(const t of e)n[t.name]="valueAsNumber"in t?t.valueAsNumber:Number(t.value);if(e.every(e=>!e.value))return void g(null,!1);const t=e.every(e=>e.value),r=e.every(e=>e.validity.valid);if(t&&r){const e=Number(n.year||(new Date).getFullYear()),t=Number(n.month||1)-1,r=Number(n.day||1),a=new Date;a.setFullYear(e,t,r),a.setHours(0,0,0,0);const o=function(e){return(()=>{switch(x){case"start":return la;case"end":return sa;case"range":return ca;default:throw new Error("Invalid returnValue.")}})()({value:e,minDate:p,maxDate:d,maxDetail:u})}(a);return void g(o,!1)}b&&b()}function B(e){const{value:n}=e.target;if(!g)return;const t=(()=>{if(!n)return null;const[e,t,r]=n.split("-"),a=Number(e),o=Number(t)-1||0,i=Number(r)||1,l=new Date;return l.setFullYear(a,o,i),l.setHours(0,0,0,0),l})();g(t,!1)}const W={className:r,disabled:i,maxDate:d||na,minDate:p||ea,onChange:function(e){const{name:n,value:t}=e.target;switch(n){case"year":N(t);break;case"month":S(t);break;case"day":T(t)}q()},onKeyDown:function(e){switch(F.current=e.key,e.key){case"ArrowLeft":case"ArrowRight":case K:{e.preventDefault();const{target:n}=e;pa(ua(n,"ArrowLeft"===e.key?"previousElementSibling":"nextElementSibling"));break}}},onKeyUp:function(e){const{key:n,target:t}=e;if(!(F.current===n))return;if(!!Number.isNaN(Number(n)))return;const r=t.getAttribute("max");if(!r)return;const{value:a}=t;if(10*Number(a)>Number(r)||a.length>=r.length){pa(ua(t,"nextElementSibling"))}},required:Boolean(y||V)};function Y(e,r){if(e&&e.length>2)throw new Error(`Unsupported token: ${e}`);const i=e&&2===e.length;return n.jsx(Hr,{...W,ariaLabel:a,autoFocus:0===r&&t,inputRef:$,month:O,placeholder:o,showLeadingZeros:i||w,value:D,year:_},"day")}function Z(e,r){if(e&&e.length>4)throw new Error(`Unsupported token: ${e}`);if(e.length>2)return n.jsx(Ur,{...W,ariaLabel:f,autoFocus:0===r&&t,inputRef:P,locale:c,placeholder:m,short:3===e.length,value:O,year:_},"month");const a=e&&2===e.length;return n.jsx(Kr,{...W,ariaLabel:f,autoFocus:0===r&&t,inputRef:A,placeholder:m,showLeadingZeros:a||w,value:O,year:_},"month")}function U(e,r){return n.jsx(Jr,{...W,ariaLabel:j,autoFocus:0===r&&t,inputRef:M,placeholder:k,value:_,valueType:R},"year")}return n.jsxs("div",{className:r,onClick:function(e){if(e.target===e.currentTarget){pa(e.target.children[1])}},children:[n.jsx(Gr,{ariaLabel:v,disabled:i,maxDate:d||na,minDate:p||ea,name:h,onChange:B,required:y,value:E,valueType:R},"date"),function(e,t,r){const a=[],o=new RegExp(Object.keys(t).map(e=>`${e}+`).join("|"),"g"),i=e.match(o);return e.split(o).reduce((e,o,l)=>{const s=o&&n.jsx(Xr,{children:o},`separator_${l}`);e.push(s);const c=null==i?void 0:i[l];if(c){const n=t[c]||t[Object.keys(t).find(e=>c.match(e))];if(!n)return e;!r&&a.includes(n)?e.push(c):(e.push(n(c,l)),a.push(n))}return e},[])}(H,{d:Y,M:Z,y:U},void 0!==l)]})}const ma="react-date-picker",ha=["mousedown","focusin","touchstart"],va={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},ga=n.jsxs("svg",{...va,"aria-hidden":"true",className:`${ma}__calendar-button__icon ${ma}__button__icon`,children:[n.jsx("rect",{fill:"none",height:"15",width:"15",x:"2",y:"2"}),n.jsx("line",{x1:"6",x2:"6",y1:"0",y2:"4"}),n.jsx("line",{x1:"13",x2:"13",y1:"0",y2:"4"})]}),ba=n.jsxs("svg",{...va,"aria-hidden":"true",className:`${ma}__clear-button__icon ${ma}__button__icon`,children:[n.jsx("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),n.jsx("line",{x1:"15",x2:"4",y1:"4",y2:"15"})]});function ya(r){const{autoFocus:a,calendarAriaLabel:o,calendarIcon:i=ga,className:l,clearAriaLabel:s,clearIcon:c=ba,closeCalendar:d=!0,"data-testid":u,dayAriaLabel:p,dayPlaceholder:f,disableCalendar:m,disabled:h,format:v,id:g,isOpen:b=null,locale:y,maxDate:x,maxDetail:w="month",minDate:C,monthAriaLabel:j,monthPlaceholder:k,name:_="date",nativeInputAriaLabel:N,onCalendarClose:O,onCalendarOpen:S,onChange:D,onFocus:T,onInvalidChange:E,openCalendarOnFocus:L=!0,required:M,returnValue:A="start",shouldCloseCalendar:P,shouldOpenCalendar:$,showLeadingZeros:V,value:I,yearAriaLabel:F,yearPlaceholder:R,...z}=r,[K,q]=e.useState(b),B=e.useRef(null),W=e.useRef(null);function Y({reason:e}){$&&!$({reason:e})||(q(!0),S&&S())}e.useEffect(()=>{q(b)},[b]);const Z=e.useCallback(({reason:e})=>{P&&!P({reason:e})||(q(!1),O&&O())},[O,P]);function U(){K?Z({reason:"buttonClick"}):Y({reason:"buttonClick"})}function G(e,n=d){n&&Z({reason:"select"}),D&&D(e)}const J=e.useCallback(e=>{"Escape"===e.key&&Z({reason:"escape"})},[Z]);function X(){G(null)}function Q(e){e.stopPropagation()}const ee=e.useCallback(e=>{const{current:n}=B,{current:t}=W,r="composedPath"in e?e.composedPath()[0]:e.target;!r||!n||n.contains(r)||t&&t.contains(r)||Z({reason:"outsideAction"})},[Z]),ne=e.useCallback((e=K)=>{for(const n of ha)e?document.addEventListener(n,ee):document.removeEventListener(n,ee);e?document.addEventListener("keydown",J):document.removeEventListener("keydown",J)},[K,ee,J]);e.useEffect(()=>(ne(),()=>{ne(!1)}),[ne]);const te=e.useMemo(()=>function(e){const n={};for(const t of he){const r=e[t];r&&(n[t]=r)}return n}(z),[z]);return n.jsxs("div",{className:H(ma,`${ma}--${K?"open":"closed"}`,`${ma}--${h?"disabled":"enabled"}`,l),"data-testid":u,id:g,...te,onFocus:function(e){T&&T(e),h||K||!L||"true"===e.target.dataset.select||Y({reason:"focus"})},ref:B,children:[function(){const[t]=Array.isArray(I)?I:[I],r={dayAriaLabel:p,monthAriaLabel:j,nativeInputAriaLabel:N,yearAriaLabel:F},l={dayPlaceholder:f,monthPlaceholder:k,yearPlaceholder:R};return n.jsxs("div",{className:`${ma}__wrapper`,children:[n.jsx(fa,{...r,...l,autoFocus:a,className:`${ma}__inputGroup`,disabled:h,format:v,isCalendarOpen:K,locale:y,maxDate:x,maxDetail:w,minDate:C,name:_,onChange:G,onInvalidChange:E,required:M,returnValue:A,showLeadingZeros:V,value:t}),null!==c&&n.jsx("button",{"aria-label":s,className:`${ma}__clear-button ${ma}__button`,disabled:h,onClick:X,onFocus:Q,type:"button",children:"function"==typeof c?e.createElement(c):c}),null!==i&&!m&&n.jsx("button",{"aria-expanded":K||!1,"aria-label":o,className:`${ma}__calendar-button ${ma}__button`,disabled:h,onClick:U,onFocus:Q,type:"button",children:"function"==typeof i?e.createElement(i):i})]})}(),function(){if(null===K||m)return null;const{calendarProps:e,portalContainer:a,value:o}=r,i=`${ma}__calendar`,l=H(i,`${i}--${K?"open":"closed"}`),s=n.jsx(gr,{locale:y,maxDate:x,maxDetail:w,minDate:C,onChange:e=>G(e),value:o,...e});return a?t.createPortal(n.jsx("div",{ref:W,className:l,children:s}),a):n.jsx(Or,{children:n.jsx("div",{ref:e=>{e&&!K&&e.removeAttribute("style")},className:l,children:s})})}()]})}V(".react-date-picker {\n display: inline-flex;\n position: relative;\n}\n\n.react-date-picker,\n.react-date-picker *,\n.react-date-picker *:before,\n.react-date-picker *:after {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.react-date-picker--disabled {\n background-color: #f0f0f0;\n color: #6d6d6d;\n}\n\n.react-date-picker__wrapper {\n display: flex;\n flex-grow: 1;\n flex-shrink: 0;\n border: thin solid gray;\n}\n\n.react-date-picker__inputGroup {\n min-width: calc((4px * 3) + 0.54em * 8 + 0.217em * 2);\n flex-grow: 1;\n padding: 0 2px;\n box-sizing: content-box;\n}\n\n.react-date-picker__inputGroup__divider {\n padding: 1px 0;\n white-space: pre;\n}\n\n.react-date-picker__inputGroup__divider,\n.react-date-picker__inputGroup__leadingZero {\n display: inline-block;\n font: inherit;\n}\n\n.react-date-picker__inputGroup__input {\n min-width: 0.54em;\n height: 100%;\n position: relative;\n padding: 0 1px;\n border: 0;\n background: none;\n color: currentColor;\n font: inherit;\n box-sizing: content-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n\n.react-date-picker__inputGroup__input::-webkit-outer-spin-button,\n.react-date-picker__inputGroup__input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n margin: 0;\n}\n\n.react-date-picker__inputGroup__input:invalid {\n background: rgba(255, 0, 0, 0.1);\n}\n\n.react-date-picker__inputGroup__input--hasLeadingZero {\n margin-left: -0.54em;\n padding-left: calc(1px + 0.54em);\n}\n\n.react-date-picker__button {\n border: 0;\n background: transparent;\n padding: 4px 6px;\n}\n\n.react-date-picker__button:enabled {\n cursor: pointer;\n}\n\n.react-date-picker__button:enabled:hover .react-date-picker__button__icon,\n.react-date-picker__button:enabled:focus .react-date-picker__button__icon {\n stroke: #0078d7;\n}\n\n.react-date-picker__button:disabled .react-date-picker__button__icon {\n stroke: #6d6d6d;\n}\n\n.react-date-picker__button svg {\n display: inherit;\n}\n\n.react-date-picker__calendar {\n width: 350px;\n max-width: 100vw;\n z-index: 1;\n}\n\n.react-date-picker__calendar--closed {\n display: none;\n}\n\n.react-date-picker__calendar .react-calendar {\n border-width: thin;\n}\n");V(".react-calendar {\n width: 350px;\n max-width: 100%;\n background: white;\n border: 1px solid #a0a096;\n font-family: 'Arial', 'Helvetica', sans-serif;\n line-height: 1.125em;\n}\n\n.react-calendar--doubleView {\n width: 700px;\n}\n\n.react-calendar--doubleView .react-calendar__viewContainer {\n display: flex;\n margin: -0.5em;\n}\n\n.react-calendar--doubleView .react-calendar__viewContainer > * {\n width: 50%;\n margin: 0.5em;\n}\n\n.react-calendar,\n.react-calendar *,\n.react-calendar *:before,\n.react-calendar *:after {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.react-calendar button {\n margin: 0;\n border: 0;\n outline: none;\n}\n\n.react-calendar button:enabled:hover {\n cursor: pointer;\n}\n\n.react-calendar__navigation {\n display: flex;\n height: 44px;\n margin-bottom: 1em;\n}\n\n.react-calendar__navigation button {\n min-width: 44px;\n background: none;\n}\n\n.react-calendar__navigation button:disabled {\n background-color: #f0f0f0;\n}\n\n.react-calendar__navigation button:enabled:hover,\n.react-calendar__navigation button:enabled:focus {\n background-color: #e6e6e6;\n}\n\n.react-calendar__month-view__weekdays {\n text-align: center;\n text-transform: uppercase;\n font: inherit;\n font-size: 0.75em;\n font-weight: bold;\n}\n\n.react-calendar__month-view__weekdays__weekday {\n padding: 0.5em;\n}\n\n.react-calendar__month-view__weekNumbers .react-calendar__tile {\n display: flex;\n align-items: center;\n justify-content: center;\n font: inherit;\n font-size: 0.75em;\n font-weight: bold;\n}\n\n.react-calendar__month-view__days__day--weekend {\n color: #d10000;\n}\n\n.react-calendar__month-view__days__day--neighboringMonth,\n.react-calendar__decade-view__years__year--neighboringDecade,\n.react-calendar__century-view__decades__decade--neighboringCentury {\n color: #757575;\n}\n\n.react-calendar__year-view .react-calendar__tile,\n.react-calendar__decade-view .react-calendar__tile,\n.react-calendar__century-view .react-calendar__tile {\n padding: 2em 0.5em;\n}\n\n.react-calendar__tile {\n max-width: 100%;\n padding: 10px 6.6667px;\n background: none;\n text-align: center;\n font: inherit;\n font-size: 0.833em;\n}\n\n.react-calendar__tile:disabled {\n background-color: #f0f0f0;\n color: #ababab;\n}\n\n.react-calendar__month-view__days__day--neighboringMonth:disabled,\n.react-calendar__decade-view__years__year--neighboringDecade:disabled,\n.react-calendar__century-view__decades__decade--neighboringCentury:disabled {\n color: #cdcdcd;\n}\n\n.react-calendar__tile:enabled:hover,\n.react-calendar__tile:enabled:focus {\n background-color: #e6e6e6;\n}\n\n.react-calendar__tile--now {\n background: #ffff76;\n}\n\n.react-calendar__tile--now:enabled:hover,\n.react-calendar__tile--now:enabled:focus {\n background: #ffffa9;\n}\n\n.react-calendar__tile--hasActive {\n background: #76baff;\n}\n\n.react-calendar__tile--hasActive:enabled:hover,\n.react-calendar__tile--hasActive:enabled:focus {\n background: #a9d4ff;\n}\n\n.react-calendar__tile--active {\n background: #006edc;\n color: white;\n}\n\n.react-calendar__tile--active:enabled:hover,\n.react-calendar__tile--active:enabled:focus {\n background: #1087ff;\n}\n\n.react-calendar--selectRange .react-calendar__tile--hover {\n background-color: #e6e6e6;\n}\n");const xa=e=>null==e?"":Number(e).toLocaleString(),wa=e=>e?Number(e.replace(/,/g,"")):null;function Ca({value:t={min:null,max:null},onChange:r,currencySymbol:a=null,minPlaceholder:o="Min",maxPlaceholder:i="Max"}){const[l,s]=e.useState(t.min??null),[c,d]=e.useState(t.max??null),[u,p]=e.useState(""),f=e.useRef(!0);e.useEffect(()=>{t&&(t.min!==l&&s(t.min??null),t.max!==c&&d(t.max??null))},[t?.min,t?.max]),e.useEffect(()=>{f.current?f.current=!1:(p(null!==l&&null!==c&&c<l?"From value cannot be greater than To value.":""),t?.min===l&&t?.max===c||r?.({min:l,max:c}))},[l,c]);const m=e=>{/[0-9]/.test(e.key)||["Backspace","Delete","ArrowLeft","ArrowRight","Tab"].includes(e.key)||e.preventDefault()};return n.jsxs("div",{className:"d-flex flex-column gap-1",children:[n.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[n.jsxs("div",{className:"input_group",children:[a&&n.jsx("span",{className:"input-group-text",children:a}),n.jsx("input",{type:"text",className:"form-control form-control-sm",placeholder:o,value:xa(l),onChange:e=>{const n=wa(e.target.value);s(n)},onKeyDown:m})]}),n.jsx("span",{className:"text-muted",children:"—"}),n.jsxs("div",{className:"input_group",children:[a&&n.jsx("span",{className:"input-group-text",children:a}),n.jsx("input",{type:"text",className:"form-control form-control-sm",placeholder:i,value:xa(c),onChange:e=>{const n=wa(e.target.value);d(n)},onKeyDown:m})]})]}),u&&n.jsx("span",{className:"text-danger value-err",children:u}),n.jsx("style",{jsx:!0,children:"\n .value-err {\n font-size: 0.875rem;\n width: 74%;\n display: block;\n white-space: nowrap;\n padding-left: 5px;\n }\n .input-group-text {\n padding: .375rem .5rem;\n font-size: .925rem;\n border-radius: 4px 0 0 4px;\n margin-right: -1px;\n }\n .input_group {\n display: flex;\n }\n .input_group .form-control-sm{\n border-radius: 0 4px 4px 0;\n }\n \n "})]})}Ca.propTypes={value:L.shape({min:L.number,max:L.number}),onChange:L.func.isRequired,currencySymbol:L.string,minPlaceholder:L.string,maxPlaceholder:L.string};const ja=()=>null;ja.propTypes={header:L.oneOfType([L.string,L.node]).isRequired,accessor:L.string,colKey:L.string,filterKey:L.string,sortKey:L.string,filterType:L.string,filterOptions:L.any,valueRanage:L.object,sortable:L.bool,headerClassName:L.string,render:L.func,filterAlignment:L.string,children:L.oneOfType([L.func,L.node])},ja.defaultProps={filterAlignment:"left-0"};const ka=({title:t,data:r=[],children:a,tableClassName:o="",pageSize:i,currentPage:l,totalPages:s=0,onPageChange:c,onPageSizeChange:d,totalRecords:u,pageSizeOptions:p=[10,20,50,100],onSortChange:f,onFilterChange:m,onFilterReset:h,isLoading:v=!1,handleRowClick:g,filterSummery:b,loadingClassName:y,loadingSize:x,loadingType:w,loadingPlaceholderRows:C,loadingColSpan:j,enableFullScreen:k=!1})=>{const[_,N]=e.useState([]),[O,S]=e.useState({}),[D,T]=e.useState({}),[E,L]=e.useState(null),[M,P]=e.useState({}),$=e.useRef(null),[V,I]=e.useState(!1);e.useEffect(()=>{const e=e=>{$.current&&$.current.contains(e.target)||e.target.closest(".daterangepicker")||e.target.closest(".react-calendar")||e.target.closest(".react-date-picker__calendar")||L(null)};return null!==E&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[E]);const F=e.Children.toArray(a).filter(n=>e.isValidElement(n)).map(e=>{const{header:n,headerClassName:t,accessor:r,filterAlignment:a="left-0",colKey:o,filterKey:i,sortKey:l,sortable:s,filterType:c,filterOptions:d,render:u}=e.props,p="function"==typeof e.props.children?e.props.children:null;return{header:n,headerClassName:t,accessor:r,colKey:o,filterKey:i||o,sortKey:l||o,sortable:s,filterAlignment:a,filterType:c,filterOptions:d,render:u||p,rawChild:e.props.children}}),z=(e,n)=>{if("object"==typeof e&&null!==e)S(n=>{const t={...n,...e};return m?.(t),t});else{const t={...O,[e]:n};m?.(t),S(t)}},H=e=>{if(L(n=>n===e?null:e),E!==e){const n=F[e],t=n?.filterKey;if(T(e=>({...e,[t]:O[t]||""})),"DATERANGE"===n?.filterType&&t){const e=O[t];e&&"object"==typeof e&&P(n=>({...n,[t]:{startDate:e.from||"",endDate:e.to||""}}))}}},K=1===l?1:i*l-(i-1),q=l+1<s?i*l:u,B=(()=>{if(s<=5)return Array.from({length:s},(e,n)=>n+1);let e=l-Math.floor(2.5),n=e+5-1;return e<1&&(e=1,n=5),n>s&&(n=s,e=n-4),Array.from({length:n-e+1},(n,t)=>e+t)})();function W(e){if(!e)return{};const n={};return e.split(/\s+/).forEach(e=>{if(e.startsWith("left-")){const t=e.replace("left-","");n.left=t.endsWith("px")?t:`${t}`}else if(e.startsWith("right-")){const t=e.replace("right-","");n.right=t.endsWith("px")?t:`${t}`}}),n}return n.jsxs("div",{className:`filtered-table position-relative ${o} ${V?"fullScreenView":""}`,children:[t&&n.jsx("h4",{className:"mb-3",children:t}),k&&n.jsx("span",{className:"max-view-btn position-absolute",onClick:()=>{I(e=>!e)},title:V?"Minimize":"Maximize",children:n.jsx(R,{width:16,height:16,name:V?"Minimize":"Maximize"})}),n.jsxs("div",{className:"table-responsive min-h-475px",children:[Object.keys(O).some(e=>O[e])&&n.jsxs("div",{className:"d-flex justify-content-between align-items-center mb-3 p-2 border bg-light rounded",children:[b&&n.jsx("div",{className:"d-flex flex-wrap align-items-center",children:b.filter(e=>""!==e.value&&null!=e.value).map(e=>{let t=e.value;if("object"==typeof e.value&&(e.value.from||e.value.to)){const n=e=>{if(!e)return null;const n=new Date(e);return`${String(n.getDate()).padStart(2,"0")}-${String(n.getMonth()+1).padStart(2,"0")}-${n.getFullYear()}`};t=[e.value.from&&`From ${n(e.value.from)}`,e.value.to&&`To ${n(e.value.to)}`].filter(Boolean).join(" ")}else t="object"==typeof e.value&&(e.value.min||e.value.max)?[e.value.min&&`From ${formatDate(e.value.min)}`,e.value.max&&`To ${formatDate(e.value.max)}`].filter(Boolean).join(" "):String(e.value);return n.jsxs("span",{className:"badge bg-primary text-white me-2 my-1",children:[n.jsx("span",{className:"fw-bolder",children:e.label||e.key}),":"," ",t]},e.key)})}),!b&&O&&n.jsx("div",{className:"d-flex flex-wrap align-items-center",children:Object.entries(O).map(([e,t])=>{if(!t)return null;const r=F.find(n=>n.filterKey===e),a=r?.header||e;if("object"==typeof t&&(t.from||t.to)){const r=e=>{if(!e)return null;const n=new Date(e);return`${String(n.getDate()).padStart(2,"0")}-${String(n.getMonth()+1).padStart(2,"0")}-${n.getFullYear()}`},o=[t.from&&`From ${r(t.from)}`,t.to&&`To ${r(t.to)}`].filter(Boolean).join(" ");return n.jsxs("span",{className:"badge bg-primary text-white me-2 mb-2",children:[n.jsx("span",{className:"fw-bolder",children:a}),":"," ",o]},e)}return n.jsxs("span",{className:"badge bg-primary text-white me-2 mb-1",children:[n.jsx("span",{className:"fw-bolder",children:a}),":"," ",String(t)]},e)})}),n.jsx("div",{children:n.jsx("span",{className:"btn btn-sm btn-primary",onClick:()=>{const e={};Object.keys(O).forEach(n=>e[n]=""),S(e),Object.keys(e).forEach(e=>z(e,"")),h(),P({}),S({}),N([])},children:"Reset Filter"})})]}),n.jsxs("table",{className:"table align-middle position-relative table-row-dashed fs-6 gy-3 mb-0 table-hover filtered_table",children:[n.jsx("thead",{children:n.jsx("tr",{className:"fw-bold fs-6 fs-md-5 text-gray-900",children:F.map((e,t)=>{const r=e.sortKey,a=e.filterKey,o=_.find(e=>e.field===r);let i=!1;if("DATERANGE"===e.filterType&&a){const e=O[a];i=e&&(e.from||e.to)}else a&&(i=O[a]);return n.jsx("th",{scope:"col",className:`text-nowrap min-w-100px min-w-md-auto ${e.headerClassName||""}`,children:n.jsxs("div",{className:"d-flex align-items-end position-relative",children:["string"==typeof e.header?n.jsx("span",{children:e.header}):e.header,n.jsxs("div",{className:"ms-2 sort-filter-wrp d-flex align-items-end",children:[e.sortable&&r&&n.jsxs("div",{className:"ms-1",onClick:()=>r?(e=>{const n=e.sortKey;n&&(L(null),N(e=>{const t=e[0];let r=[];return t&&t.field===n?"asc"===t.order?r=[{field:n,order:"desc"}]:"desc"===t.order&&(r=[]):r=[{field:n,order:"asc"}],f?.(r),r}))})(e):null,style:{cursor:r?"pointer":"default",marginBottom:"1px"},children:["asc"===o?.order&&n.jsx("span",{style:{color:"#d8128c"},children:n.jsx(se,{})}),"desc"===o?.order&&n.jsx("span",{style:{color:"#d8128c"},children:n.jsx(ce,{})}),!o&&n.jsx(le,{})]}),e.filterType&&n.jsx("div",{className:"flt-btn w-25px h-25px pt-1 pe-3 "+(e.sortable?"ms-2":""),style:{color:i?"#d8128c":""},onClick:()=>H(t),children:n.jsx(de,{})})]}),E===t&&n.jsxs("div",{ref:$,children:["TEXT"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:W(e.filterAlignment),children:[n.jsx("input",{type:"text",className:"form-control form-control-sm",value:D[e.filterKey]||"",placeholder:"Filter By",onChange:n=>T(t=>({...t,[e.filterKey]:n.target.value}))}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{T(n=>({...n,[e.filterKey]:""})),z(e.filterKey,""),H(t)},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!D[e.filterKey]?.trim(),onClick:()=>{z(e.filterKey,D[e.filterKey]||""),H(t)},children:"Apply"})]})]}),"DATE"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:W(e.filterAlignment),children:[n.jsx(ya,{onChange:n=>{const t=(e=>e?`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}T00:00:00.000+00:00`:"")(n);T(n=>({...n,[e.filterKey]:t}))},value:D[e.filterKey]?new Date(D[e.filterKey].substring(0,10)):null,className:"form-control form-control-solid border h-40px pt-3",clearIcon:null}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{T(n=>({...n,[e.filterKey]:""})),z(e.filterKey,""),H(t)},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!D[e.filterKey],onClick:()=>{z(e.filterKey,D[e.filterKey]),H(t)},children:"Apply"})]})]}),"DATERANGE"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:W(e.filterAlignment),children:[n.jsx(me,{datePickerDates:M[e.filterKey]||null,setDatePickerDates:n=>P(t=>({...t,[e.filterKey]:n}))}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{e.filterKey&&(T(n=>({...n,[e.filterKey]:null})),z(e.filterKey,null),P(n=>{const t={...n};return delete t[e.filterKey],t}),H(t))},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!M[e.filterKey]?.startDate&&!M[e.filterKey]?.endDate,onClick:()=>{const n=M[e.filterKey],r={from:n?.startDate||"",to:n?.endDate||""};z(e.filterKey,r),H(t)},children:"Apply"})]})]}),"DROPDOWN"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:W(e.filterAlignment),children:[n.jsxs("select",{className:"form-select form-select-sm form-select-solid mb-3",value:D[e.filterKey]||"",onChange:n=>T(t=>({...t,[e.filterKey]:n.target.value})),children:[n.jsx("option",{value:"",children:"Any"}),e.filterOptions.map((e,t)=>n.jsx("option",{value:e.value,children:e.label},t))]}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{T(n=>({...n,[e.filterKey]:""})),z(e.filterKey,""),H(t)},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!D[e.filterKey],onClick:()=>{z(e.filterKey,D[e.filterKey]||""),H(t)},children:"Apply"})]})]}),"SEARCHDROPDOWN"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:W(e.filterAlignment),children:[n.jsx(A,{enableSearch:!0,selected:D[e.filterKey]??null,onChange:(n,t)=>{T(n=>({...n,[e.filterKey]:t}))},options:[{label:"Any",value:""},...e.filterOptions]}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{T(n=>({...n,[e.filterKey]:null})),z(e.filterKey,null),H(t)},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!D[e.filterKey],onClick:()=>{z(e.filterKey,D[e.filterKey]),H(t)},children:"Apply"})]})]}),"VALUERANGE"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:W(e.filterAlignment),children:[n.jsx(Ca,{currencySymbol:"A$",min:D[e.filterKey]?.min||"",max:D[e.filterKey]?.max||"",value:{min:D[e.filterKey]?.min,max:D[e.filterKey]?.max},onChange:n=>{T(t=>({...t,[e.filterKey]:n}))}}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{T(n=>({...n,[e.filterKey]:null})),z(e.filterKey,null),H(t)},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!(D[e.filterKey]?.min<=D[e.filterKey]?.max)||null===D[e.filterKey]?.min||null===D[e.filterKey]?.max,onClick:()=>{z(e.filterKey,D[e.filterKey]),H(t)},children:"Apply"})]})]})]})]})},t)})})}),n.jsx("tbody",{children:v?n.jsx("tr",{children:n.jsx("td",{colSpan:j||9,children:n.jsx(ie,{className:y||"w-100",size:x||"md",loadingType:w||"table",placeholderRows:C||9})})}):n.jsxs(n.Fragment,{children:[r&&r.length>0?r.map((e,t)=>n.jsx("tr",{onClick:()=>g(e),style:{cursor:"pointer"},children:F.map((r,a)=>{let o=null;if("function"==typeof r.render)o=r.render(e,t);else if(r.accessor){const n=function(e,n){if(n)return n.split(".").reduce((e,n)=>null==e?void 0:e[n],e)}(e,r.accessor);o=null==n?"":n}else o=r.rawChild??"";return n.jsx("td",{children:o},a)})},e.uuid??e.id??t)):n.jsx("tr",{children:n.jsx("td",{colSpan:F.length,className:"text-center py-4",children:n.jsx("div",{className:"my-10 py-10 mh-400px",children:"No data"})})}),r&&r.length<5&&n.jsx("tr",{children:n.jsx("td",{colSpan:F.length,className:"text-center",children:n.jsx("div",{style:{minHeight:"50px"}})})})]})})]})]}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-3",children:[n.jsxs("div",{className:"col-sm-12 col-md-6 d-flex align-items-center",children:[n.jsx("div",{className:"dataTables_length",children:n.jsx("label",{children:n.jsx("select",{className:"form-select form-select-sm form-select-solid",value:i,onChange:e=>d(Number(e.target.value)),children:p.map(e=>n.jsx("option",{value:e,children:e},e))})})}),n.jsxs("div",{className:"dataTables_info text-start ms-3",role:"status","aria-live":"polite",children:["Showing ",K," to ",q," of ",u," records"]})]}),n.jsx("div",{className:"col-lg-6 col-md-12 d-flex justify-content-end",children:n.jsxs("ul",{className:"pagination pagination-md",children:[l>1&&n.jsx("li",{className:"paginate_button page-item",children:n.jsx("span",{className:"page-link svg-icon svg-icon-2",onClick:()=>c(l-1),children:n.jsx(pe,{})})}),s>1&&B.map(e=>n.jsx("li",{className:"paginate_button page-item "+(l===e?"active":""),children:n.jsx("span",{onClick:()=>c(e),className:"page-link",children:e})},e)),l<s&&n.jsx("li",{className:"paginate_button page-item",children:n.jsx("span",{className:"page-link svg-icon svg-icon-2",onClick:()=>c(l+1),children:n.jsx(ue,{})})})]})}),n.jsx("style",{jsx:!0,global:!0,children:"\n th.txt-right div {\n justify-content: end;\n }\n .txt-right {\n text-align: right;\n }\n th.txt-left div {\n justify-content: start;\n }\n .txt-left {\n text-align: left;\n }\n th.txt-center div {\n justify-content: center;\n }\n .txt-center {\n text-align: center;\n }\n .filtered-table.fullScreenView{\n position: fixed !important;\n background-color: var(--kt-card-bg);\n top: 0;\n left: 0;\n z-index: 1000;\n padding: 30px 10px 10px;\n width: 100%;\n height: 100vh;\n }\n .filtered-table.fullScreenView .table-responsive{\n max-height: calc(100vh - 85px);\n overflow: auto;\n }\n .filtered-table.fullScreenView .max-view-btn{\n top: 5px;\n right: 5px;\n }\n .filtered-table .max-view-btn{\n top: -17px;\n right: -17px;\n color: var(--kt-text-muted) !important\n }\n .filtered-table.fullScreenView th {\n position: sticky;\n top: 0;\n background-color: var(--kt-card-bg);\n }\n \n /* FROZEN FIRST COLUMN — BODY CELLS */\n .filtered-table.fullScreenView table tbody td:nth-child(1) {\n position: sticky;\n left: 0;\n z-index: 20; /* Below header, above row cells */\n background: var(--kt-card-bg);\n }\n\n /* FROZEN FIRST COLUMN — HEADER CELL */\n .filtered-table.fullScreenView table thead th:nth-child(1) {\n position: sticky;\n left: 0;\n top: 0;\n z-index: 40 !important; /* Highest: must be above all */\n background: var(--kt-card-bg);\n }\n\n /* ALL HEADER CELLS */\n .filtered-table.fullScreenView table thead th {\n position: sticky;\n top: 0;\n z-index: 30; /* header layer */\n background: var(--kt-card-bg);\n }\n\n "})]})]})};ka.propTypes={title:L.string,data:L.array,children:L.node.isRequired,tableClassName:L.string,pageSize:L.number.isRequired,currentPage:L.number.isRequired,totalPages:L.number.isRequired,onPageChange:L.func.isRequired,onPageSizeChange:L.func.isRequired,pageSizeOptions:L.array,onSortChange:L.func,onFilterChange:L.func,onFilterReset:L.func,isLoading:L.bool,enableFullScreen:L.bool},ka.Col=ja;const _a=({children:t,items:r,className:a="",ariaLabel:o="Breadcrumb",autoSeparators:i=!1,separatorClass:l="bullet bg-gray-200 w-5px h-2px",separatorContent:s=" - ",direction:c="ltr"})=>{let d=t;if(!d&&Array.isArray(r)){d=r.map((e,t)=>{const a=e.title||e.label||e.lable||"",o=t===r.length-1,i=null!=e.isCurrent?e.isCurrent:o,l=e.linkClass||(i?"pc-breadcrumb-active text-dark fw-semibold":"pc-breadcrumb-link text-muted text-hover-primary"),s=e.icon;return n.jsx(Na,{href:e.href,title:a,linkClass:l,isCurrent:i,icon:s},t)})}let u=d;if(i){const t=e.Children.toArray(d).filter(Boolean);u=t.reduce((e,r,a)=>(e.push(r),a<t.length-1&&e.push(n.jsx(Oa,{className:l,content:s,index:a,direction:c},`sep-${a}`)),e),[])}return n.jsx("nav",{"aria-label":o,className:`pc-breadcrumb-nav ${a}`.trim(),dir:c,children:n.jsx("ol",{className:"pc-breadcrumb list-unstyled d-flex align-items-center m-0 p-0 flex-wrap",children:e.Children.map(u,t=>{if(!e.isValidElement(t))return null;return t.type===Na||t.type===Oa?t:n.jsx("li",{className:"pc-breadcrumb-item-wrapper",children:t})})})})};_a.propTypes={children:L.node,items:L.arrayOf(L.shape({title:L.oneOfType([L.string,L.node]),label:L.oneOfType([L.string,L.node]),lable:L.oneOfType([L.string,L.node]),href:L.string,linkClass:L.string,isCurrent:L.bool,icon:L.node})),className:L.string,ariaLabel:L.string,autoSeparators:L.bool,separatorClass:L.string,separatorContent:L.oneOfType([L.string,L.node,L.func]),direction:L.oneOf(["ltr","rtl"])};const Na=({href:e,title:t,linkClass:r="text-muted text-hover-primary",isCurrent:a=!1,children:o,icon:i})=>{const l=o||t,s=e,c={className:r,"aria-current":a?"page":void 0},d=s&&"#"!==s,u=n.jsxs(n.Fragment,{children:[i&&n.jsx("span",{className:"pc-breadcrumb-icon d-inline-flex align-items-center justify-content-center","aria-hidden":"true",children:i}),l]});return n.jsx("li",{className:"pc-breadcrumb-item d-flex align-items-center",children:a||!d?n.jsx("span",{...c,children:u}):n.jsx("a",{href:s,...c,children:u})})};Na.propTypes={href:L.string,title:L.oneOfType([L.string,L.node]),linkClass:L.string,isCurrent:L.bool,children:L.node,icon:L.node};const Oa=({className:t="bullet bg-gray-200 w-5px h-2px",content:r,index:a,direction:o="ltr"})=>{let i;if(null==r)i=null;else if("function"==typeof r)i=r(a,o);else if(e.isValidElement(r))i=r;else{let e=r;if("rtl"===o&&"string"==typeof e){const n={">":"<","<":">","»":"«","«":"»","›":"‹","‹":"›"};e=e.split("").map(e=>n[e]||e).join("")}i=e}return n.jsx("li",{className:"pc-breadcrumb-separator d-flex align-items-center","aria-hidden":"true",style:{lineHeight:1},children:n.jsx("span",{className:`pc-breadcrumb-separator-inner ${t}`.trim(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",margin:"0 4px"},children:null==i?"-":i})})};Oa.propTypes={className:L.string,content:L.oneOfType([L.string,L.node,L.func]),index:L.number,direction:L.oneOf(["ltr","rtl"])};const Sa=e=>null===e?"":e.toLocaleString();function Da({min:t,max:r,currencySymbol:a="",onChange:o}){const[i,l]=e.useState(0),[s,c]=e.useState(0),[d,u]=e.useState(null),[p,f]=e.useState(null),m=e.useRef(null),h=e.useRef(null),v=e.useRef(null);e.useEffect(()=>{m.current&&(l(m.current.offsetWidth),c(m.current.getBoundingClientRect().left))},[]);const g=(e,n)=>{null!==e&&null!==n&&o?.({min:e,max:n})},b=e=>e.clientX||e.touches&&e.touches[0].clientX,y=e=>{const n=100*(b(e)-s)/i,a=p??r,o=Math.max(t,Math.min(Math.floor(r*n/100),a-0));u(o),h.current.style.width=100*o/r+"%",g(o,p??r)},x=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x)},w=()=>{null===p&&f(r),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),document.addEventListener("touchmove",y),document.addEventListener("touchend",x)},C=e=>{const n=100*(b(e)-s)/i,a=d??t,o=Math.min(r,Math.max(Math.floor(r*n/100),a+0));f(o),v.current.style.width=100*o/r+"%",g(d??t,o)},j=()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",j),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",j)},k=()=>{null===d&&u(t),document.addEventListener("mousemove",C),document.addEventListener("mouseup",j),document.addEventListener("touchmove",C),document.addEventListener("touchend",j)};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"current-value",children:[n.jsxs("div",{children:[a,Sa(d)]}),n.jsxs("div",{children:[a,Sa(p)]})]}),n.jsx("div",{className:"slider-container",children:n.jsxs("div",{ref:m,id:"range-slider",children:[n.jsx("div",{ref:h,id:"min",style:{zIndex:0<p?5:1},children:n.jsx("div",{id:"min-drag",onMouseDown:w,onTouchStart:w})}),n.jsx("div",{ref:v,id:"max",style:{zIndex:0>p?5:1},children:n.jsx("div",{id:"max-drag",onMouseDown:k,onTouchStart:k})})]})}),n.jsxs("div",{className:"range-values",children:[n.jsxs("div",{children:[a,Sa(t)]}),n.jsxs("div",{children:[a,Sa(r)]})]}),n.jsx("style",{children:"\n.slider-container {\n padding: 0;\n}\n\n.current-value {\n display: flex;\n justify-content: space-between;\n margin: 10px 0;\n font-weight: 600;\n}\n\n.range-values {\n display: flex;\n justify-content: space-between;\n font-size: 12px;\n font-weight: 500;\n margin-top: 6px;\n}\n\n#range-slider {\n position: relative;\n height: 5px;\n background: #709fdc;\n border-radius: 5px;\n}\n\n#min,\n#max {\n position: absolute;\n height: 5px;\n border-radius: 5px;\n}\n\n#min {\n background: #709fdc;\n z-index: 2;\n}\n\n#max {\n background: #274684;\n z-index: 1;\n}\n\n#min-drag,\n#max-drag {\n position: absolute;\n right: -7.5px;\n top: -5px;\n width: 15px;\n height: 15px;\n border-radius: 50%;\n background: #071739;\n cursor: pointer;\n}\n "})]})}function Ta({tableKey:t,defaultColumns:r=[],onChange:a,btnLabel:o="Columns",enabledIcon:i=!0,enabledBtn:l=!0,title:s="Manage Columns",tenantId:c,userId:d,fetchTableSettingsOn:u,SaveTableSettingsOn:p}){const[f,m]=e.useState([]),[h,v]=e.useState([]),[g,b]=e.useState(!1),[y,x]=e.useState(!1),w=async()=>{try{let n=null,o=[];if(u&&(n=await u(c,t,d),e=n||[],o=Array.isArray(e)?e.map(e=>{const[n,t,r]=e.split("≈");return{key:n,label:t,visible:"true"===r}}):[]),o){const e=o||[],n=e.map(e=>{const n=r.find(n=>n.key===e.key);return n?{...n,...e}:e}),t=r.filter(n=>!e.some(e=>e.key===n.key)),i=[...n,...t];return m(i),v(i),void a?.(i)}m(r),v(r),a?.(r)}catch(e){console.error("Column load failed",e),m(r),v(r),a?.(r)}var e};e.useEffect(()=>{t&&w()},[t,d]);const C=e=>{e.currentTarget.classList.remove("dragging")},j=f.every(e=>e.visible),k=f.every(e=>!e.visible);return n.jsxs(n.Fragment,{children:[l&&n.jsx(M,{onClick:()=>b(!0),className:"btn btn-primary btn-sm",label:o,icon:i?n.jsx(R,{width:16,height:16,name:"Settings"}):null,variant:"primary"}),g&&n.jsxs(W,{onClose:()=>b(!1),title:s,maxWidth:"650px",width:"100%",maxHeight:"80vh",titleOnTop:!0,children:[n.jsxs("div",{children:[n.jsx("div",{className:"columns-container mt-3 mb-5 gap-2",children:f.map((e,t)=>n.jsxs("div",{className:"column-itm d-flex align-items-center justify-content-between draggable-item py-2 px-3",draggable:!0,onDragStart:e=>((e,n)=>{e.dataTransfer.setData("text/plain",String(n)),e.currentTarget.classList.add("dragging")})(e,t),onDragEnd:C,onDragOver:e=>e.preventDefault(),onDrop:e=>((e,n)=>{e.preventDefault();const t=Number(e.dataTransfer.getData("text/plain"));if(isNaN(t)||t===n)return;const r=e.currentTarget;m(e=>{const r=[...e],[a]=r.splice(t,1);return r.splice(n,0,a),r}),r.classList.add("drop-anim"),setTimeout(()=>r.classList.remove("drop-anim"),300)})(e,t),children:[n.jsxs("div",{className:"d-flex align-items-center gap-2",children:[n.jsx("span",{className:"me-2 handle",children:"⋮⋮"}),n.jsxs("div",{className:"form-check d-flex align-items-center mb-0",children:[n.jsx("input",{type:"checkbox",checked:e.visible,onChange:()=>{m(n=>n.map(n=>n.key===e.key?{...n,visible:!n.visible}:n))},className:"form-check-input me-2"}),n.jsx("label",{className:"mb-0 ps-2",children:e.label})]})]}),n.jsx("small",{className:e.visible?"text-success":"text-muted",children:e.visible?"Shown":"Hidden"})]},e.key))}),n.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[n.jsx(M,{onClick:()=>{const e=f.every(e=>e.visible),n=f.map(n=>({...n,visible:!e}));m(n)},label:j?"Deselect All":"Select All",variant:"outline-secondary",className:"btn btn-outline-secondary btn-sm border"}),n.jsxs("div",{className:"d-flex gap-2",children:[n.jsx(M,{onClick:()=>{m(h)},label:"Reset to Default",variant:"secondary",className:"btn btn-secondary btn-sm"}),n.jsx(M,{onClick:async()=>{x(!0);try{p&&await p(c,{authId:d,screen:t,columns:(e=f,Array.isArray(e)?e.map(e=>`${e.key}≈${e.label}≈${e.visible}`):[])}),a?.(f)}catch(e){console.error("Column save failed:",e)}var e;setTimeout(()=>{w(),x(!1),b(!1)},300)},disabled:k||y,label:y?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"spinner-border spinner-border-sm me-2",role:"status"}),"Saving..."]}):"Save Changes",className:"btn btn-primary btn-sm"})]})]})]}),n.jsx("style",{children:"\n .columns-container {\n display: flex;\n flex-direction: column;\n max-height: 60vh;\n overflow-y: auto;\n }\n .column-itm {\n background-color: var(--kt-form-select-bg);\n border: 1px solid var(--kt-form-select-border-color);\n border-radius: 4px;\n color: var(--kt-form-select-color);\n transition: 0.15s ease;\n }\n .handle {\n font-size: 16px;\n opacity: 0.6;\n cursor: grab;\n }\n .draggable-item.dragging {\n opacity: 0.5;\n background-color: #eaeaea;\n }\n .drop-anim {\n animation: dropFlash 300ms ease-out;\n }\n @keyframes dropFlash {\n 0% { background-color: #e7f1ff; }\n 100% { background-color: transparent; }\n }\n "})]})]})}Da.propTypes={min:L.number.isRequired,max:L.number.isRequired,currencySymbol:L.string,onChange:L.func},Ta.propTypes={tableKey:L.string.isRequired,defaultColumns:L.array.isRequired,onChange:L.func.isRequired,btnLabel:L.string,enabledIcon:L.bool,enabledBtn:L.bool,title:L.string,tenantId:L.string.isRequired,fetchTableSettingsOn:L.func,SaveTableSettingsOn:L.func};const Ea=e=>{const{checkBoxLabel:t,className:r="",checked:a=!1,onChange:o,inputClass:i="",...l}=e;return n.jsxs("label",{className:`form-check form-check-custom form-check-solid ${r}`,children:[n.jsx("input",{type:"checkbox",className:`form-check-input widget-9-check ${i}`,checked:a,onChange:o,...l}),t&&n.jsx("span",{className:"form-check-label fw-semibold ms-2",children:t})]})};Ea.propTypes={checkBoxLabel:L.oneOfType([L.string,L.node]),className:L.string,inputClass:L.string,checked:L.bool,onChange:L.func.isRequired},exports.AccordionItem=({title:e,children:t,isOpen:r,onToggle:a,index:o,id:i,className:l="",OpenByDefault:s=!1,"data-testid":c})=>{const d=i||`collapse-${o}`,u=`heading-${o}`;return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:`accordion-item pc-accordion-item pb-0 mb-2 ${l}`.trim(),"data-testid":c,children:[n.jsx("h2",{className:"accordion-header",id:u,children:n.jsx("button",{className:"accordion-button "+(r?"":"collapsed"),type:"button",onClick:a,"aria-expanded":r,"aria-controls":d,children:"string"==typeof e?n.jsx("span",{dangerouslySetInnerHTML:{__html:e}}):e})}),n.jsx("div",{id:d,className:"accordion-collapse collapse "+(r?"show":""),"aria-labelledby":u,children:n.jsx("div",{className:"accordion-body",children:t})})]}),n.jsx("style",{jsx:!0,children:"\n .pc-accordion-item,\n .pc-accordion-item:first-of-type,\n .pc-accordion-item:last-of-type {\n border-radius: 10px;\n border: 1px solid var(--kt-input-border-color);\n overflow: hidden;\n background-color: var(--kt-card-bg);\n }\n \n "})]})},exports.PCAccordionWrapper=({children:t,singleOpen:r=!0,id:a,className:o="","data-testid":i})=>{const[l,s]=e.useState(()=>{const n=[];return e.Children.forEach(t,(t,r)=>{e.isValidElement(t)&&t.props.OpenByDefault&&n.push(r)}),r&&n.length>1?[n[0]]:n}),c=e.Children.map(t,(n,t)=>{if(e.isValidElement(n)){const a=l.includes(t);return e.cloneElement(n,{index:t,isOpen:a,onToggle:()=>((e,n,t)=>{s(a=>{const o=a.includes(e);let i;return i=r?o?[]:[e]:o?a.filter(n=>n!==e):[...a,e],!o&&n&&n(),o&&t&&t(),i})})(t,n.props.onOpen,n.props.onClose)})}return n});return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`pc-accordion accordion ${o}`.trim(),id:a||"pcaccordionWrapper","data-testid":i,children:c}),n.jsx("style",{jsx:!0,children:"\n .pc-accordion{;\n }\n "})]})},exports.PCBreadcrumb=_a,exports.PCBreadcrumbItem=Na,exports.PCBreadcrumbSeparator=Oa,exports.PCButton=M,exports.PCCheckBox=Ea,exports.PCCol=B,exports.PCColumnsManager=Ta,exports.PCContainer=K,exports.PCCurrencyRange=Ca,exports.PCDatePicker=({selectedDate:e,setSelectedDate:t,placeholder:r="Select date",minDate:a=null,maxDate:o=null,disableWeekends:i=!1,inputFormat:l="dd/MM/yyyy"})=>n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"form-control form-control-solid border d-flex align-items-center p-2 justify-content-between",children:[n.jsx(ya,{value:e?new Date(e):null,onChange:t,calendarIcon:null,clearIcon:null,minDate:a?new Date(a):void 0,maxDate:o?new Date(o):void 0,tileDisabled:({date:e})=>{if(!i)return!1;const n=e.getDay();return 0===n||6===n},placeholderText:r,format:l}),n.jsx("span",{className:"svg-icon svg-icon-1 ms-2 me-0",children:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{opacity:"0.3",d:"M21 22H3C2.4 22 2 21.6 2 21V5C2 4.4 2.4 4 3 4H21C21.6 4 22 4.4 22 5V21C22 21.6 21.6 22 21 22Z",fill:"currentColor"}),n.jsx("path",{d:"M6 6C5.4 6 5 5.6 5 5V3C5 2.4 5.4 2 6 2C6.6 2 7 2.4 7 3V5C7 5.6 6.6 6 6 6ZM11 5V3C11 2.4 10.6 2 10 2C9.4 2 9 2.4 9 3V5C9 5.6 9.4 6 10 6C10.6 6 11 5.6 11 5ZM15 5V3C15 2.4 14.6 2 14 2C13.4 2 13 2.4 13 3V5C13 5.6 13.4 6 14 6C14.6 6 15 5.6 15 5ZM19 5V3C19 2.4 18.6 2 18 2C17.4 2 17 2.4 17 3V5C17 5.6 17.4 6 18 6C18.6 6 19 5.6 19 5Z",fill:"currentColor"}),n.jsx("path",{d:"M8.8 13.1C9.2 13.1 9.5 13 9.7 12.8C9.9 12.6 10.1 12.3 10.1 11.9C10.1 11.6 10 11.3 9.8 11.1C9.6 10.9 9.3 10.8 9 10.8C8.8 10.8 8.59999 10.8 8.39999 10.9C8.19999 11 8.1 11.1 8 11.2C7.9 11.3 7.8 11.4 7.7 11.6C7.6 11.8 7.5 11.9 7.5 12.1C7.5 12.2 7.4 12.2 7.3 12.3C7.2 12.4 7.09999 12.4 6.89999 12.4C6.69999 12.4 6.6 12.3 6.5 12.2C6.4 12.1 6.3 11.9 6.3 11.7C6.3 11.5 6.4 11.3 6.5 11.1C6.6 10.9 6.8 10.7 7 10.5C7.2 10.3 7.49999 10.1 7.89999 10C8.29999 9.90003 8.60001 9.80003 9.10001 9.80003C9.50001 9.80003 9.80001 9.90003 10.1 10C10.4 10.1 10.7 10.3 10.9 10.4C11.1 10.5 11.3 10.8 11.4 11.1C11.5 11.4 11.6 11.6 11.6 11.9C11.6 12.3 11.5 12.6 11.3 12.9C11.1 13.2 10.9 13.5 10.6 13.7C10.9 13.9 11.2 14.1 11.4 14.3C11.6 14.5 11.8 14.7 11.9 15C12 15.3 12.1 15.5 12.1 15.8C12.1 16.2 12 16.5 11.9 16.8C11.8 17.1 11.5 17.4 11.3 17.7C11.1 18 10.7 18.2 10.3 18.3C9.9 18.4 9.5 18.5 9 18.5C8.5 18.5 8.1 18.4 7.7 18.2C7.3 18 7 17.8 6.8 17.6C6.6 17.4 6.4 17.1 6.3 16.8C6.2 16.5 6.10001 16.3 6.10001 16.1C6.10001 15.9 6.2 15.7 6.3 15.6C6.4 15.5 6.6 15.4 6.8 15.4C6.9 15.4 7.00001 15.4 7.10001 15.5C7.20001 15.6 7.3 15.6 7.3 15.7C7.5 16.2 7.7 16.6 8 16.9C8.3 17.2 8.6 17.3 9 17.3C9.2 17.3 9.5 17.2 9.7 17.1C9.9 17 10.1 16.8 10.3 16.6C10.5 16.4 10.5 16.1 10.5 15.8C10.5 15.3 10.4 15 10.1 14.7C9.80001 14.4 9.50001 14.3 9.10001 14.3C9.00001 14.3 8.9 14.3 8.7 14.3C8.5 14.3 8.39999 14.3 8.39999 14.3C8.19999 14.3 7.99999 14.2 7.89999 14.1C7.79999 14 7.7 13.8 7.7 13.7C7.7 13.5 7.79999 13.4 7.89999 13.2C7.99999 13 8.2 13 8.5 13H8.8V13.1ZM15.3 17.5V12.2C14.3 13 13.6 13.3 13.3 13.3C13.1 13.3 13 13.2 12.9 13.1C12.8 13 12.7 12.8 12.7 12.6C12.7 12.4 12.8 12.3 12.9 12.2C13 12.1 13.2 12 13.6 11.8C14.1 11.6 14.5 11.3 14.7 11.1C14.9 10.9 15.2 10.6 15.5 10.3C15.8 10 15.9 9.80003 15.9 9.70003C15.9 9.60003 16.1 9.60004 16.3 9.60004C16.5 9.60004 16.7 9.70003 16.8 9.80003C16.9 9.90003 17 10.2 17 10.5V17.2C17 18 16.7 18.4 16.2 18.4C16 18.4 15.8 18.3 15.6 18.2C15.4 18.1 15.3 17.8 15.3 17.5Z",fill:"currentColor"})]})})]}),n.jsx("style",{jsx:!0,children:"\n/* DatePicker */\n.react-date-picker__wrapper {\n border: none !important;\n display: block !important;\n}\n\n.react-date-picker__inputGroup {\n min-width: none !important;\n flex-grow: initial !important;\n float: left;\n}\n\n.react-date-picker {\n padding: 6px 10px;\n}\n\n.react-date-picker__calendar {\n width: 300px !important;\n z-index: 999 !important;\n}\n\n.react-date-picker__calendar-button {\n float: right;\n}\n\n.react-date-picker__button svg {\n fill: #fff !important;\n stroke: var(--kt-light-inverse) !important;\n}\n\n.react-date-picker__calendar-button svg {\n display: none !important;\n}\n\n.react-date-picker__button {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n}\n\n.react-date-picker__calendar-button:after {\n content: \"\";\n background: url(\"data:image/svg+xml;utf8,<svg width='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path opacity='0.3' d='M21 22H3C2.4 22 2 21.6 2 21V5C2 4.4 2.4 4 3 4H21C21.6 4 22 4.4 22 5V21C22 21.6 21.6 22 21 22Z' fill='rgba(109, 109, 128, 1)'></path><path d='M6 6C5.4 6 5 5.6 5 5V3C5 2.4 5.4 2 6 2C6.6 2 7 2.4 7 3V5C7 5.6 6.6 6 6 6ZM11 5V3C11 2.4 10.6 2 10 2C9.4 2 9 2.4 9 3V5C9 5.6 9.4 6 10 6C10.6 6 11 5.6 11 5ZM15 5V3C15 2.4 14.6 2 14 2C13.4 2 13 2.4 13 3V5C13 5.6 13.4 6 14 6C14.6 6 15 5.6 15 5ZM19 5V3C19 2.4 18.6 2 18 2C17.4 2 17 2.4 17 3V5C17 5.6 17.4 6 18 6C18.6 6 19 5.6 19 5Z' fill='rgba(109, 109, 128, 1)'></path><path d='M8.8 13.1C9.2 13.1 9.5 13 9.7 12.8C9.9 12.6 10.1 12.3 10.1 11.9C10.1 11.6 10 11.3 9.8 11.1C9.6 10.9 9.3 10.8 9 10.8C8.8 10.8 8.59999 10.8 8.39999 10.9C8.19999 11 8.1 11.1 8 11.2C7.9 11.3 7.8 11.4 7.7 11.6C7.6 11.8 7.5 11.9 7.5 12.1C7.5 12.2 7.4 12.2 7.3 12.3C7.2 12.4 7.09999 12.4 6.89999 12.4C6.69999 12.4 6.6 12.3 6.5 12.2C6.4 12.1 6.3 11.9 6.3 11.7C6.3 11.5 6.4 11.3 6.5 11.1C6.6 10.9 6.8 10.7 7 10.5C7.2 10.3 7.49999 10.1 7.89999 10C8.29999 9.90003 8.60001 9.80003 9.10001 9.80003C9.50001 9.80003 9.80001 9.90003 10.1 10C10.4 10.1 10.7 10.3 10.9 10.4C11.1 10.5 11.3 10.8 11.4 11.1C11.5 11.4 11.6 11.6 11.6 11.9C11.6 12.3 11.5 12.6 11.3 12.9C11.1 13.2 10.9 13.5 10.6 13.7C10.9 13.9 11.2 14.1 11.4 14.3C11.6 14.5 11.8 14.7 11.9 15C12 15.3 12.1 15.5 12.1 15.8C12.1 16.2 12 16.5 11.9 16.8C11.8 17.1 11.5 17.4 11.3 17.7C11.1 18 10.7 18.2 10.3 18.3C9.9 18.4 9.5 18.5 9 18.5C8.5 18.5 8.1 18.4 7.7 18.2C7.3 18 7 17.8 6.8 17.6C6.6 17.4 6.4 17.1 6.3 16.8C6.2 16.5 6.10001 16.3 6.10001 16.1C6.10001 15.9 6.2 15.7 6.3 15.6C6.4 15.5 6.6 15.4 6.8 15.4C6.9 15.4 7.00001 15.4 7.10001 15.5C7.20001 15.6 7.3 15.6 7.3 15.7C7.5 16.2 7.7 16.6 8 16.9C8.3 17.2 8.6 17.3 9 17.3C9.2 17.3 9.5 17.2 9.7 17.1C9.9 17 10.1 16.8 10.3 16.6C10.5 16.4 10.5 16.1 10.5 15.8C10.5 15.3 10.4 15 10.1 14.7C9.80001 14.4 9.50001 14.3 9.10001 14.3C9.00001 14.3 8.9 14.3 8.7 14.3C8.5 14.3 8.39999 14.3 8.39999 14.3C8.19999 14.3 7.99999 14.2 7.89999 14.1C7.79999 14 7.7 13.8 7.7 13.7C7.7 13.5 7.79999 13.4 7.89999 13.2C7.99999 13 8.2 13 8.5 13H8.8V13.1ZM15.3 17.5V12.2C14.3 13 13.6 13.3 13.3 13.3C13.1 13.3 13 13.2 12.9 13.1C12.8 13 12.7 12.8 12.7 12.6C12.7 12.4 12.8 12.3 12.9 12.2C13 12.1 13.2 12 13.6 11.8C14.1 11.6 14.5 11.3 14.7 11.1C14.9 10.9 15.2 10.6 15.5 10.3C15.8 10 15.9 9.80003 15.9 9.70003C15.9 9.60003 16.1 9.60004 16.3 9.60004C16.5 9.60004 16.7 9.70003 16.8 9.80003C16.9 9.90003 17 10.2 17 10.5V17.2C17 18 16.7 18.4 16.2 18.4C16 18.4 15.8 18.3 15.6 18.2C15.4 18.1 15.3 17.8 15.3 17.5Z' fill='rgba(109, 109, 128, 1)'></path></svg>\") no-repeat;\n position: relative;\n right: 0;\n top: 0;\n display: block;\n width: 20px;\n height: 20px;\n}\n\n.react-date-picker__clear-button svg {\n width: 14px;\n}\n\n.react-date-picker__calendar .react-calendar {\n box-shadow: var(--kt-dropdown-box-shadow) !important;\n background-color: var(--kt-body-bg) !important;\n border: none;\n border-radius: .475rem;\n font-family: Inter, Helvetica, sans-serif;\n padding: 10px;\n}\n\n.react-date-picker__calendar .react-calendar .react-calendar__navigation__label__labelText {\n font-size: 1rem;\n font-weight: 500;\n color: var(--kt-gray-800);\n}\n\n.react-date-picker__calendar .react-calendar__month-view__weekdays__weekday {\n font-weight: 500;\n color: var(--kt-gray-800);\n font-size: 1rem;\n text-transform: none;\n}\n\n.react-date-picker__calendar .react-calendar__month-view__weekdays__weekday abbr[title] {\n text-decoration: none;\n}\n\n.react-date-picker__calendar .react-calendar .react-calendar__tile {\n font-size: 1rem;\n font-weight: 400;\n line-height: 24px;\n padding: 5px 0;\n color: var(--kt-gray-700);\n}\n\n\n\n.react-calendar__month-view__days__day--neighboringMonth {\n color: var(--kt-gray-400) !important;\n}\n\n.react-calendar__tile--active {\n border-radius: .475rem;\n background-color: var(--kt-component-active-bg) !important;\n color: var(--kt-component-active-color) !important;\n}\n\n.react-calendar__tile:enabled:hover,\n.react-calendar__tile:enabled:focus,\n.react-calendar__tile--hasActive,\n.react-calendar__tile--now {\n border-radius: .475rem;\n background-color: var(--kt-component-hover-bg) !important;\n color: var(--kt-component-hover-color) !important;\n}\n\n.react-calendar__navigation button {\n font-size: 16px;\n font-weight: 500;\n color: var(--kt-gray-600);\n}\n\n.react-calendar__navigation button:hover,\n.react-calendar__navigation button:focus {\n border-radius: .475rem;\n background-color: var(--kt-component-hover-bg) !important;\n color: var(--kt-component-hover-color);\n}\n\n.react-date-picker__inputGroup__input:focus {\n outline: none;\n}\n\n.react-date-picker__inputGroup__input:invalid {\n background-color: transparent !important;\n}\n\n.react-calendar__navigation button:disabled,\n.react-calendar__tile:disabled {\n opacity: .5;\n background-color: transparent !important;\n}\n\n "})]}),exports.PCExportToCSV=({btnLabel:t,totalRecords:r=0,startPageNumber:a=0,enabledIcon:o=!0,columns:i={},title:l="Export Data",fileName:s="export_data",onFetchData:c=async e=>[]})=>{const[d,u]=e.useState(!1),[p,f]=e.useState([]),[m,h]=e.useState(!1),[v,g]=e.useState(a),b=e.useMemo(()=>Object.keys(i),[i]);e.useEffect(()=>{d&&(f([...b]),g(a))},[d,a,b]);const y=1e3,x=Math.ceil(r/y),w=Array.from({length:x},(e,n)=>{const t=n*y+1,o=Math.min((n+1)*y,r);return{label:`${t} to ${o}`,value:n+a,start:t,end:o}});return n.jsxs(n.Fragment,{children:[n.jsx(M,{onClick:()=>u(!0),className:"btn btn-primary btn-sm",label:t||"Export",icon:o?n.jsx(R,{width:16,height:16,name:"ExportCSV"}):null,variant:"primary"}),d&&n.jsx(W,{onClose:()=>u(!1),outsideClickHandle:!1,title:l,customStyles:"w-100",maxWidth:"650px",width:"100%",maxHeight:"80vh",titleOnTop:!0,children:n.jsxs("div",{children:[n.jsxs("div",{className:"form-check mt-3 mb-1 d-flex align-items-center gap-2 justify-content-end",children:[n.jsx("input",{className:"form-check-input",type:"checkbox",id:"selectAll",checked:p.length===b.length,onChange:()=>{p.length===b.length?f([]):f([...b])}}),n.jsx("label",{className:"form-check-label",htmlFor:"selectAll",children:"Select All"})]}),n.jsx("div",{className:"separator separator-dashed mt-3 mb-4"}),n.jsx("div",{className:"d-flex flex-wrap mb-0 pt-2",children:b.map(e=>n.jsxs("div",{className:"col-4 form-check mb-3",children:[n.jsx("input",{className:"form-check-input",type:"checkbox",id:e,checked:p.includes(e),onChange:()=>{return n=e,void f(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n]);var n}}),n.jsx("label",{className:"form-check-label",htmlFor:e,children:i[e]})]},e))}),x>1&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"separator separator-dashed mt-3 mb-3"}),n.jsxs("div",{className:"mb-3",children:[n.jsx("label",{htmlFor:"pageSelect",className:"form-label",children:"Select a range"}),n.jsx("select",{id:"pageSelect",className:"form-select",value:v,onChange:e=>g(Number(e.target.value)),children:w.map((e,t)=>n.jsx("option",{value:e.value,children:e.label},t))})]})]}),n.jsx("div",{className:"separator separator-dashed mb-6 "+(x>1?"mt-6":"mt-3")}),n.jsx("div",{className:"d-flex justify-content-end gap-2",children:n.jsx(M,{onClick:async()=>{if(!p.length)return;h(!0);const e=e=>{if(null==e)return"";let n=String(e);return n.includes('"')&&(n=n.replace(/"/g,'""')),(n.includes(",")||n.includes('"')||n.includes("\n"))&&(n=`"${n}"`),n};try{const n=await c(v);if(!n||!n.length)return void h(!1);const t=p.map(n=>e(i[n]||n)),r=[t,...n.map(n=>p.map(t=>{const r=n[t];return e("object"==typeof r&&null!==r?JSON.stringify(r):r)}))].map(e=>e.join(",")).join("\n"),a=new Blob([r],{type:"text/csv;charset=utf-8;"}),o=URL.createObjectURL(a),l=document.createElement("a");l.href=o,l.setAttribute("download",`${s}_${w[v]?.label||"page"}.csv`),l.click()}catch(e){console.error("Error fetching data for CSV:",e)}finally{h(!1)}},className:"btn btn-primary btn-sm d-flex align-items-center",label:m?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"}),"Loading..."]}):`Download ${w[v]?.label} Records`,variant:"primary",disabled:!p.length||m})})]})})]})},exports.PCFilteredTable=ka,exports.PCIcon=R,exports.PCInput=Z,exports.PCInputCurrency=({label:t="Enter Lable",value:r="",onChange:a,required:o=!1,errorMessage:i="",name:l,disabled:s=!1})=>{const[c,d]=e.useState(U(r));e.useEffect(()=>{d(U(r))},[r]);return n.jsxs("div",{className:"form-group",children:[n.jsx("label",{className:`form-label ${o&&"required"}`,children:t}),n.jsx("div",{className:"input-group",style:{fontFamily:"inherit"},children:n.jsx("input",{name:l,disabled:s,required:o,type:"text",value:c,onChange:e=>{const n=e.target.value.replace(/[^\d.]/g,""),t=U(n);d(t),a&&a(l,n)},placeholder:"$0.00","aria-label":"Currency input",className:"form-control form-control-solid border"+(i?" is-invalid border-danger":"")})}),i&&n.jsx("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"},children:i})]})},exports.PCLoading=ie,exports.PCModal=W,exports.PCMultiSelectDropdown=({options:t=[],placeholder:r="Select...",onChange:a,enableSearch:o=!0,enableSelectAll:i=!0,showCountAfter:l=null,value:s=[],name:c,required:d=!1,labelKey:u="name",valueKey:p="value",isInvalid:f=!1,errMsg:m=""})=>{const[h,v]=e.useState([]),[g,b]=e.useState(!1),[y,x]=e.useState(""),w=e.useRef(null),C=e.useRef(null),[j,k]=e.useState("100%"),_=e.useMemo(()=>((e,n,t)=>Array.isArray(e)?e.map(e=>({name:e?.[n]??"",value:e?.[t]??"",original:e})):[])(t,u,p),[t,u,p]);e.useEffect(()=>{const e=e=>{w.current&&!w.current.contains(e.target)&&b(!1)},n=()=>{C.current&&k(`${C.current.offsetWidth}px`)};return document.addEventListener("mousedown",e),window.addEventListener("resize",n),n(),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",n)}},[]),e.useEffect(()=>{if(!Array.isArray(s))return;if(!(s.length===h.length&&s.every(e=>h.some(n=>n.original?.[p]===e?.[p])))){const e=_.filter(e=>s.some(n=>n?.[p]===e.original?.[p]));v(e)}},[s,_]);const N=e=>h.some(n=>n.value===e.value),O=_.filter(e=>e.name.toLowerCase().includes(y.toLowerCase()));return n.jsxs("div",{className:"position-relative pc-multi-select",ref:w,children:[n.jsx("div",{ref:C,className:"form-select form-select-solid pc-ele-border d-flex justify-content-between align-items-center "+(f?"invalid":""),onClick:()=>b(!g),style:{cursor:"pointer"},children:n.jsx("span",{className:"text-truncate",style:{maxWidth:"85%"},children:(()=>{if(0===h.length)return r;if(null!=l&&h.length>l){return`${h.slice(0,l).map(e=>e.name).join(", ")} +${h.length-l} more`}return h.map(e=>e.name).join(", ")})()})}),f&&m&&n.jsx("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%",zIndex:9999},children:m}),g&&n.jsx("div",{className:"multi-slc-dropdown-options-wrp show position-absolute top-100 start-0",style:{maxHeight:300,width:j,zIndex:9999},children:n.jsxs("div",{className:"dropdown-menu relative show py-3 shadow-none border position-relative",style:{maxHeight:300,overflowY:"auto",width:j,zIndex:9999},children:[(o||i)&&n.jsxs("div",{className:"d-flex align-items-center gap-2 pb-3 mb-3 border-bottom",children:[i&&n.jsxs("div",{className:"form-check pl-3 ms-4",children:[n.jsx("input",{type:"checkbox",className:"form-check-input",id:"selectAll",checked:h.length===_.length,onChange:()=>{const e=h.length===_.length?[]:[..._];v(e),a?.(c,e.map(e=>e.original))},name:c,required:d}),n.jsx("label",{className:"form-check-label",htmlFor:"selectAll",children:"All"})]}),o&&n.jsxs("div",{className:"input-group me-3 "+(i?"":"ms-3"),children:[n.jsx("input",{type:"text",className:"form-control border-end-0",placeholder:"Search...",value:y,onChange:e=>x(e.target.value)}),n.jsx("span",{className:"input-group-text border-start-0 bg-transparent",children:n.jsx("i",{className:"bi bi-search"})})]})]}),O.length>0?O.map((e,t)=>n.jsxs("div",{className:"form-check py-3 pl-5 mr-3 pc-multi-select-opt",style:{cursor:"pointer"},children:[n.jsx("input",{className:"form-check-input pc-multi-select-opt-input",type:"checkbox",id:`option-${t}`,checked:N(e),onChange:()=>(e=>{let n=h.some(n=>n.value===e.value)?h.filter(n=>n.value!==e.value):[...h,e];n=_.filter(e=>n.some(n=>n.value===e.value)),v(n),a?.(c,n.map(e=>e.original))})(e),name:c,required:d}),n.jsx("label",{className:"form-check-label ms-2",htmlFor:`option-${t}`,children:e.name})]},t)):n.jsx("div",{className:"text-center text-muted py-2",children:"No records found"})]})}),n.jsx("style",{jsx:!0,children:"\n .multi-slc-dropdown-options-wrp {\n border-radius: 0.375rem;\n background-color: var(--kt-page-bg);\n }\n .pc-multi-select-opt {\n padding: 0 15px 0 38px;\n }\n .pc-multi-select-opt:hover {\n background-color: var(--kt-input-solid-bg);\n }\n .pc-multi-select-opt-input {\n margin-top: 3px;\n }\n .pc-multi-select-opt label {\n color: var(--kt-form-check-label-color-checked);\n }\n .pc-ele-border {\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n }\n .pc-ele-border.invalid{\n border-color: var(--kt-danger);\n }\n .pc-err-txt {\n color: var(--kt-danger);\n }\n "})]})},exports.PCRadio=({label:e,checked:t=!1,onChange:r,name:a,value:o,disabled:i=!1,id:l,className:s="",dataTestId:c})=>n.jsxs("div",{className:`form-check ${s}`,"data-testid":c,children:[n.jsx("input",{className:"form-check-input",type:"radio",name:a,id:l,value:o,checked:t,onChange:r,disabled:i}),e&&n.jsx("label",{className:"form-check-label",htmlFor:l,children:e})]}),exports.PCRow=q,exports.PCSelectDropdown=A,exports.PCTable=({value:t=[],columns:r=[],style:a={},caption:o,header:i,footer:l,children:s,paginator:c=!1,rowsPerPageOptions:d=[10,25,50],currentPageReportTemplate:u="Showing {first} to {last} of {totalRecords} records",onPageChange:p=()=>{},paginationConfig:f=null})=>{const m=!!f,[h,v]=e.useState(1),[g,b]=e.useState(d[0]),y=m?f.current_page:h,x=m?f.page_size:g,w=m?f.total_records:t.length,C=m?f.total_pages:Math.ceil(w/x),j=e.useMemo(()=>{if(m)return t;const e=(y-1)*x,n=e+x;return t.slice(e,n)},[t,y,x,m]),k=e=>{e<1||e>C||(m||v(e),p({page:e,rows:x}))},_=r?.length>0,N=e.Children.toArray(s).some(n=>e.isValidElement(n)&&"tbody"===n.type),O=!_&&e.Children.count(s)>0;return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"table-responsive",children:[o&&n.jsx("div",{className:"mb-2",children:o}),n.jsxs("table",{className:"table pc-table align-middle table-row-dashed fs-6 gy-3 mb-0 dataTable no-footer table-hover gs-4",style:a,children:[_?n.jsx("thead",{children:n.jsx("tr",{children:r.map((e,t)=>n.jsx("th",{children:e.header},t))})}):i&&n.jsx("thead",{children:i}),_?n.jsx("tbody",{children:j.map((e,t)=>n.jsx("tr",{children:r.map((t,r)=>n.jsx("td",{children:n.jsx("div",{className:"py-2",children:e[t.field]})},r))},t))}):O&&(N?s:n.jsx("tbody",{children:s})),l&&n.jsx("tfoot",{children:l})]})]}),c&&n.jsxs("div",{className:"d-flex justify-content-between align-items-center mt-5 pc-pagination-wrp",children:[n.jsxs("div",{className:"dataTables_length d-flex align-items-center",children:[n.jsx("select",{className:"form-select form-select-sm form-select-solid w-auto me-3",value:x,onChange:e=>{const n=parseInt(e.target.value,10);m||(b(n),v(1)),p({page:1,rows:n})},children:d.map(e=>n.jsx("option",{value:e,children:e},e))})," ",n.jsx("div",{children:(()=>{const e=(y-1)*x+1,n=Math.min(e+x-1,w);return u.replace("{first}",e).replace("{last}",n).replace("{totalRecords}",w)})()})]}),n.jsx("div",{className:"d-flex align-items-center gap-2",children:n.jsx("nav",{children:n.jsxs("ul",{className:"pagination mb-0",children:[n.jsx("li",{className:"page-item "+(1===y?"disabled":""),children:n.jsxs("button",{className:"page-link",onClick:()=>k(1),children:[n.jsx("i",{class:"previous"}),n.jsx("i",{style:{marginLeft:"-5px"},class:"previous"})]})}),n.jsx("li",{className:"page-item "+(1===y?"disabled":""),children:n.jsx("button",{className:"page-link",onClick:()=>k(y-1),children:n.jsx("i",{class:"previous"})})}),Array.from({length:Math.min(C,5)},(e,t)=>{const r=y<=3?t+1:y-2+t;return r>C?null:n.jsx("li",{className:"page-item "+(y===r?"active":""),children:n.jsx("button",{className:"page-link",onClick:()=>k(r),children:r})},r)}),n.jsx("li",{className:"page-item "+(y===C?"disabled":""),children:n.jsx("button",{className:"page-link",onClick:()=>k(y+1),children:n.jsx("i",{class:"next"})})}),n.jsx("li",{className:"page-item "+(y===C?"disabled":""),children:n.jsxs("button",{className:"page-link",onClick:()=>k(C),children:[n.jsx("i",{class:"next fs-1"}),n.jsx("i",{style:{marginLeft:"-5px"},class:"next"})]})})]})})})]})]})},exports.PCTextarea=I,exports.PCTooltip=P,exports.ValueRangeSlider=Da;
|
|
14
|
+
*/function N(){if(u)return d;u=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;return d=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(e){return n[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var o,i,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),s=1;s<arguments.length;s++){for(var c in o=Object(arguments[s]))n.call(o,c)&&(l[c]=o[c]);if(e){i=e(o);for(var d=0;d<i.length;d++)t.call(o,i[d])&&(l[i[d]]=o[i[d]])}}return l},d}function _(){if(f)return p;f=1;return p="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function S(){return h?m:(h=1,m=Function.call.bind(Object.prototype.hasOwnProperty))}function O(){if(g)return v;g=1;var e=function(){};if("production"!==process.env.NODE_ENV){var n=_(),t={},r=S();e=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}}function a(a,o,i,l,s){if("production"!==process.env.NODE_ENV)for(var c in a)if(r(a,c)){var d;try{if("function"!=typeof a[c]){var u=Error((l||"React class")+": "+i+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=a[c](o,c,l,i,null,n)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+i+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var p=s?s():"";e("Failed "+i+" type: "+d.message+(null!=p?p:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(t={})},v=a}function D(){if(y)return b;y=1;var e=k(),n=N(),t=_(),r=S(),a=O(),o=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}),b=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(i),arrayOf:function(e){return m(function(n,r,a,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=n[r];if(!Array.isArray(l))return new f("Invalid "+o+" `"+i+"` of type `"+b(l)+"` supplied to `"+a+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,a,o,i+"["+s+"]",t);if(c instanceof Error)return c}return null})},element:m(function(e,n,t,r,a){var o=e[n];return l(o)?null:new f("Invalid "+r+" `"+a+"` of type `"+b(o)+"` supplied to `"+t+"`, expected a single ReactElement.")}),elementType:m(function(n,t,r,a,o){var i=n[t];return e.isValidElementType(i)?null:new f("Invalid "+a+" `"+o+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return m(function(n,t,r,a,o){if(!(n[t]instanceof e)){var i=e.name||d;return new f("Invalid "+a+" `"+o+"` of type `"+(((l=n[t]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+i+"`.")}var l;return null})},node:m(function(e,n,t,r,a){return g(e[n])?null:new f("Invalid "+r+" `"+a+"` supplied to `"+t+"`, expected a ReactNode.")}),objectOf:function(e){return m(function(n,a,o,i,l){if("function"!=typeof e)return new f("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=n[a],c=b(s);if("object"!==c)return new f("Invalid "+i+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,i,l+"."+d,t);if(u instanceof Error)return u}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"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]).":"Invalid argument supplied to oneOf, expected an array."),i;return m(function(n,t,r,a,o){for(var i=n[t],l=0;l<e.length;l++)if(p(i,e[l]))return null;var s=JSON.stringify(e,function(e,n){return"symbol"===y(n)?String(n):n});return new f("Invalid "+a+" `"+o+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+s+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var n=0;n<e.length;n++){var a=e[n];if("function"!=typeof a)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(a)+" at index "+n+"."),i}return m(function(n,a,o,i,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(n,a,o,i,l,t);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new f("Invalid "+i+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")})},shape:function(e){return m(function(n,r,a,o,i){var l=n[r],s=b(l);if("object"!==s)return new f("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return v(a,o,i,c,y(d));var u=d(l,c,a,o,i+"."+c,t);if(u)return u}return null})},exact:function(e){return m(function(a,o,i,l,s){var c=a[o],d=b(c);if("object"!==d)return new f("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+i+"`, expected `object`.");var u=n({},a[o],e);for(var p in u){var m=e[p];if(r(e,p)&&"function"!=typeof m)return v(i,l,s,p,y(m));if(!m)return new f("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(a[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(c,p,i,l,s+"."+p,t);if(h)return h}return null})}};function p(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}function f(e,n){this.message=e,this.data=n&&"object"==typeof n?n:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function a(a,i,l,c,u,p,m){if(c=c||d,p=p||l,m!==t){if(s){var h=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 h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+l;!n[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. 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."),n[v]=!0,r++)}}return null==i[l]?a?null===i[l]?new f("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(i,l,c,u,p)}var i=a.bind(null,!1);return i.isRequired=a.bind(null,!0),i}function h(e){return m(function(n,t,r,a,o,i){var l=n[t];return b(l)!==e?new f("Invalid "+a+" `"+o+"` of type `"+y(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function v(e,n,t,r,a){return new f((e||"React class")+": "+n+" type `"+t+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||l(e))return!0;var n=function(e){var n=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof n)return n}(e);if(!n)return!1;var t,r=n.call(e);if(n!==e.entries){for(;!(t=r.next()).done;)if(!g(t.value))return!1}else for(;!(t=r.next()).done;){var a=t.value;if(a&&!g(a[1]))return!1}return!0;default:return!1}}function b(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,n){return"symbol"===e||!!n&&("Symbol"===n["@@toStringTag"]||"function"==typeof Symbol&&n instanceof Symbol)}(n,e)?"symbol":n}function y(e){if(null==e)return""+e;var n=b(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function x(e){var n=y(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}return f.prototype=Error.prototype,u.checkPropTypes=a,u.resetWarningCache=a.resetWarningCache,u.PropTypes=u,u},b}function T(){if(w)return x;w=1;var e=_();function n(){}function t(){}return t.resetWarningCache=n,x=function(){function r(n,t,r,a,o,i){if(i!==e){var l=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 l.name="Invariant Violation",l}}function a(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:t,resetWarningCache:n};return o.PropTypes=o,o}}function E(){if(C)return o.exports;if(C=1,"production"!==process.env.NODE_ENV){var e=k();o.exports=D()(e.isElement,true)}else o.exports=T()();return o.exports}var L=r(E());function M({label:e,icon:t,loading:r=!1,disabled:a=!1,variant:o="primary",type:i="button",className:l="",...s}){const c=!!e,d=!e&&t;return n.jsxs("button",{type:i,className:`btn btn-${o} ${l} d-flex align-items-center justify-center gap-2 ${d?"p-2":""}`,disabled:a||r,...s,children:[r&&n.jsx("span",{className:"custom-spinner"}),t&&n.jsx("span",{className:"px-2",children:t}),c&&n.jsx("span",{children:e}),n.jsx("style",{jsx:!0,children:"\n .custom-spinner {\n display: inline-block;\n width: 1rem;\n height: 1rem;\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top-color: white;\n border-radius: 50%;\n animation: spin 0.6s linear infinite;\n }\n\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n }\n "})]})}M.propTypes={label:L.oneOfType([L.string,L.node]),icon:L.node,loading:L.bool,disabled:L.bool,variant:L.oneOf(["primary","secondary","outline-primary","outline-secondary","success","danger","warning","info","light","dark"]),type:L.oneOf(["button","submit","reset"])};const A=({options:t=[],placeholder:r="Select...",onChange:a,isInvalid:o=!1,errMsg:i="",id:l,name:s,dataTestId:c,enableSearch:d=!1,selected:u=null})=>{const[p,f]=e.useState(!1),[m,h]=e.useState(""),v=e.useRef(null),g=e.useRef(null),[b,y]=e.useState(null),x=null!==u?u:b;e.useEffect(()=>{null!==u&&y(u)},[u]),e.useEffect(()=>{const e=e=>{v.current&&!v.current.contains(e.target)&&f(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const w=t.filter(e=>e.label.toLowerCase().includes(m.toLowerCase()));return n.jsxs("div",{className:"position-relative w-100",ref:v,children:[n.jsxs("div",{className:"dropdown",children:[n.jsx("button",{type:"button",ref:g,className:"form-select pc-ele-border text-start "+(o?"invalid":""),onClick:()=>f(e=>!e),id:l,name:s,"data-testid":c,children:x?.label||r}),p&&n.jsxs("div",{className:"slc-dropdown-options-wrp overflow-auto show w-100 pc-ele-border position-absolute top-100 start-0 z-index-2",style:{maxHeight:300},children:[d&&n.jsx("div",{className:"mb-2 px-3 py-2 border-bottom",children:n.jsx("input",{type:"text",className:"form-control pc-select-opt-input",placeholder:"Search...",value:m,onChange:e=>h(e.target.value)})}),w.length>0?w.map((e,t)=>n.jsx("span",{className:"pc-select-opt d-block w-100 py-3 px-4",type:"button",onClick:()=>(e=>{null===u&&y(e),f(!1),a?.(s,e)})(e),children:e.label},t)):n.jsx("div",{className:"text-muted px-2",children:"No results found"})]})]}),o&&i&&n.jsx("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"},children:i}),n.jsx("style",{jsx:!0,children:"\n .slc-dropdown-options-wrp {\n border-radius: 0.375rem;\n background-color: var(--kt-dropdown-bg);\n }\n .pc-select-opt:hover {\n background-color: var(--kt-input-solid-bg);\n }\n .pc-select-opt-input {\n margin-top: 3px;\n }\n .pc-select-opt {\n color: var(--kt-form-check-label-color-checked);\n }\n .pc-ele-border {\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n }\n .pc-ele-border.invalid{\n border-color: var(--kt-danger);\n }\n .pc-err-txt {\n color: var(--kt-danger);\n }\n "})]})};A.propTypes={options:L.arrayOf(L.shape({label:L.string,value:L.any})).isRequired,placeholder:L.string,onChange:L.func,isInvalid:L.bool,errMsg:L.string,id:L.string,name:L.string,dataTestId:L.string,enableSearch:L.bool};const P=({placement:e="top",caption:t,children:r,customStyles:a,visibility:o=!0})=>n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:` tooltip-wrapper tooltip-${e}`,tabIndex:"0",children:[r,o&&n.jsx("div",{className:`tooltip-content shadow-sm ${a}`,role:"tooltip",children:t})]}),n.jsx("style",{jsx:!0,children:`\n .tooltip-wrapper {\n position: relative;\n display: inline-block;\n cursor: pointer;\n }\n\n .tooltip-content {\n position: absolute;\n z-index: 999;\n background-color: var(--kt-secondary);\n color: var(--kt-secondary-inverse);\n padding: 4px 8px;\n border-radius: 0.375rem;\n font-size: 0.9rem;\n line-height: 1.2;\n text-wrap: nowrap;\n white-space: ${a?"normal":"nowrap"};\n visibility: hidden;\n opacity: 0;\n transition: opacity 0.2s ease-in-out;\n pointer-events: none;\n border: 1px rgba(0, 0, 0, 0.82);\n }\n\n .tooltip-wrapper:hover .tooltip-content,\n .tooltip-wrapper:focus-within .tooltip-content {\n visibility: visible;\n opacity: 1;\n }\n\n .tooltip-content::after {\n content: "";\n position: absolute;\n border-style: solid;\n }\n\n /* Top */\n .tooltip-top .tooltip-content {\n bottom: 125%;\n left: 50%;\n transform: translateX(-50%);\n }\n\n .tooltip-top .tooltip-content::after {\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-color: var(--kt-secondary) transparent transparent transparent;\n }\n\n /* Bottom */\n .tooltip-bottom .tooltip-content {\n top: 125%;\n left: 50%;\n transform: translateX(-50%);\n }\n\n .tooltip-bottom .tooltip-content::after {\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border-width: 5px;\n border-color: transparent transparent var(--kt-secondary) transparent;\n }\n\n /* Left */\n .tooltip-left .tooltip-content {\n right: 125%;\n top: 50%;\n transform: translateY(-50%);\n }\n\n .tooltip-left .tooltip-content::after {\n top: 50%;\n left: 100%;\n margin-top: -5px;\n border-width: 5px;\n border-color: transparent transparent transparent var(--kt-secondary);\n }\n\n /* Right */\n .tooltip-right .tooltip-content {\n left: 125%;\n top: 50%;\n transform: translateY(-50%);\n }\n\n .tooltip-right .tooltip-content::after {\n top: 50%;\n right: 100%;\n margin-top: -5px;\n border-width: 5px;\n border-color: transparent var(--kt-secondary) transparent transparent;\n }\n `})]});function V(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}P.propTypes={placement:L.oneOf(["top","bottom","left","right"]),caption:L.string.isRequired,children:L.node.isRequired};V(".pc-table tr {\r\n border-bottom-width: 1px;\r\n border-bottom-style: dashed;\r\n border-bottom-color: var(--kt-border-color);\r\n}\r\n.pc-table>:not(:last-child)>:last-child>*\r\n {\r\n border-bottom-color: inherit;\r\n}\r\n\r\n.pc-table.table.gy-3 td, .pc-table.table.gy-3 th {\r\n padding-top: 1rem;\r\n padding-bottom: 1rem;\r\n}\r\n .pc-table.table.gy-3 th {\r\n font-weight: 600;\r\n}\r\n.pc-table >:not(:first-child) {\r\n border-color: transparent;\r\n border-width: 0;\r\n border-style: none;\r\n}\r\n.pc-table td:last-child, .pc-table th:last-child {\r\n padding-right: 1rem;\r\n}\r\n.pc-table.table-hover>tbody>tr:hover>* {\r\n background-color: var(--bs-table-hover-bg);\r\n color: var(--bs-table-hover-color);\r\n}\r\n.dataTables_info {\r\n display: flex;\r\n flex-direction: column;\r\n font-weight: 500;\r\n color: var(--kt-gray-700);\r\n padding: 1rem 0;\r\n}\r\n.pc-pagination-wrp .page-link{\r\n font-weight: 500;\r\n font-size: 1rem;\r\n}\r\n.pc-pagination-wrp i{\r\n font-size: 0.75rem;\r\n}");const I=({value:e,onChange:t,isDisabled:r=!1,isInvalid:a=!1,maxChar:o=null,showCharCount:i=!1,cols:l=30,rows:s=4,id:c,name:d,dataTestId:u,errMsg:p="",placeholder:f=""})=>n.jsxs("div",{className:"position-relative w-100",children:[o&&i&&n.jsxs("div",{className:"form-text text-end",children:[e.length,"/",o," characters"]}),n.jsx("textarea",{id:c,name:d,"data-testid":u,className:"form-control pc-ele-border "+(a?"invalid":""),cols:l,rows:s,value:e,onChange:e=>{const{value:n}=e.target;(!o||n.length<=o)&&t?.(d,n)},placeholder:f,disabled:r}),a&&p&&n.jsx("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"},children:p}),n.jsx("style",{jsx:!0,children:"\n .slc-dropdown-options-wrp {\n border-radius: 0.375rem;\n background-color: var(--kt-dropdown-bg);\n }\n .pc-select-opt:hover {\n background-color: var(--kt-input-solid-bg);\n }\n .pc-select-opt-input {\n margin-top: 3px;\n }\n .pc-select-opt {\n color: var(--kt-form-check-label-color-checked);\n }\n .pc-ele-border {\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n }\n .pc-ele-border.invalid{\n border-color: var(--kt-danger);\n }\n .pc-err-txt {\n color: var(--kt-danger);\n }\n "})]});I.propTypes={value:L.string.isRequired,onChange:L.func,isDisabled:L.bool,isInvalid:L.bool,maxChar:L.number,showCharCount:L.bool,cols:L.number,rows:L.number,id:L.string,name:L.string,dataTestId:L.string,errMsg:L.string,placeholder:L.string};const F={ArrowRightBold:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...e,children:n.jsx("path",{fill:"currentColor",d:"m224.49 136.49l-72 72a12 12 0 0 1-17-17L187 140H40a12 12 0 0 1 0-24h147l-51.49-51.52a12 12 0 0 1 17-17l72 72a12 12 0 0 1-.02 17.01"})}),Conditions:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:n.jsx("path",{fill:"currentColor",d:"M3.25 4.07V1.75a.75.75 0 0 1 1.5 0v2.32a4.001 4.001 0 0 1 0 7.86v2.32a.75.75 0 0 1-1.5 0v-2.32a4.001 4.001 0 0 1 0-7.86M4 10.5a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5M9.75 4a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5zm0 3.25a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5zm-.75 4a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75",clipRule:"evenodd"})}),Up:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 14l4-4l4 4",...e})}),Down:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 10l4 4l4-4"})}),NewRow:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"128",height:"128",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 14v1a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2h-6m-3-3H7m0 0H4m3 0V5m0 3v3"})}),Settings:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor","fill-rule":"evenodd",d:"M12.563 3.2h-1.126l-.645 2.578l-.647.2a6.3 6.3 0 0 0-1.091.452l-.599.317l-2.28-1.368l-.796.797l1.368 2.28l-.317.598a6.3 6.3 0 0 0-.453 1.091l-.199.647l-2.578.645v1.126l2.578.645l.2.647q.173.568.452 1.091l.317.599l-1.368 2.28l.797.796l2.28-1.368l.598.317q.523.278 1.091.453l.647.199l.645 2.578h1.126l.645-2.578l.647-.2a6.3 6.3 0 0 0 1.091-.452l.599-.317l2.28 1.368l.796-.797l-1.368-2.28l.317-.598q.278-.523.453-1.091l.199-.647l2.578-.645v-1.126l-2.578-.645l-.2-.647a6.3 6.3 0 0 0-.452-1.091l-.317-.599l1.368-2.28l-.797-.796l-2.28 1.368l-.598-.317a6.3 6.3 0 0 0-1.091-.453l-.647-.199zm2.945 2.17l1.833-1.1a1 1 0 0 1 1.221.15l1.018 1.018a1 1 0 0 1 .15 1.221l-1.1 1.833q.33.62.54 1.3l2.073.519a1 1 0 0 1 .757.97v1.438a1 1 0 0 1-.757.97l-2.073.519q-.21.68-.54 1.3l1.1 1.833a1 1 0 0 1-.15 1.221l-1.018 1.018a1 1 0 0 1-1.221.15l-1.833-1.1q-.62.33-1.3.54l-.519 2.073a1 1 0 0 1-.97.757h-1.438a1 1 0 0 1-.97-.757l-.519-2.073a7.5 7.5 0 0 1-1.3-.54l-1.833 1.1a1 1 0 0 1-1.221-.15L4.42 18.562a1 1 0 0 1-.15-1.221l1.1-1.833a7.5 7.5 0 0 1-.54-1.3l-2.073-.519A1 1 0 0 1 2 12.72v-1.438a1 1 0 0 1 .757-.97l2.073-.519q.21-.68.54-1.3L4.27 6.66a1 1 0 0 1 .15-1.221L5.438 4.42a1 1 0 0 1 1.221-.15l1.833 1.1q.62-.33 1.3-.54l.519-2.073A1 1 0 0 1 11.28 2h1.438a1 1 0 0 1 .97.757l.519 2.073q.68.21 1.3.54zM12 14.8a2.8 2.8 0 1 0 0-5.6a2.8 2.8 0 0 0 0 5.6m0 1.2a4 4 0 1 1 0-8a4 4 0 0 1 0 8"})}),SettingsTutorial:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor","fill-rule":"evenodd",d:"M13.435 2.075a3.33 3.33 0 0 0-2.87 0c-.394.189-.755.497-1.26.928l-.079.066a2.56 2.56 0 0 1-1.58.655l-.102.008c-.662.053-1.135.09-1.547.236a3.33 3.33 0 0 0-2.03 2.029c-.145.412-.182.885-.235 1.547l-.008.102a2.56 2.56 0 0 1-.655 1.58l-.066.078c-.431.506-.74.867-.928 1.261a3.33 3.33 0 0 0 0 2.87c.189.394.497.755.928 1.26l.066.079c.41.48.604.939.655 1.58l.008.102c.053.662.09 1.135.236 1.547a3.33 3.33 0 0 0 2.029 2.03c.412.145.885.182 1.547.235l.102.008c.629.05 1.09.238 1.58.655l.078.066c.506.431.867.74 1.261.928a3.33 3.33 0 0 0 2.87 0c.394-.189.755-.497 1.26-.928l.079-.066c.48-.41.939-.604 1.58-.655l.102-.008c.662-.053 1.135-.09 1.547-.236a3.33 3.33 0 0 0 2.03-2.029c.145-.412.182-.885.235-1.547l.008-.102c.05-.629.238-1.09.655-1.58l.066-.079c.431-.505.74-.866.928-1.26a3.33 3.33 0 0 0 0-2.87c-.189-.394-.497-.755-.928-1.26l-.066-.079a2.56 2.56 0 0 1-.655-1.58l-.008-.102c-.053-.662-.09-1.135-.236-1.547a3.33 3.33 0 0 0-2.029-2.03c-.412-.145-.885-.182-1.547-.235l-.102-.008a2.56 2.56 0 0 1-1.58-.655l-.079-.066c-.505-.431-.866-.74-1.26-.928M12 7.25a.75.75 0 0 1 .75.75v.5a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75M10.75 16a.75.75 0 0 1 .5-.707v-3.586a.75.75 0 0 1 .25-1.457h.5a.75.75 0 0 1 .75.75v4.293a.75.75 0 0 1-.25 1.457h-1a.75.75 0 0 1-.75-.75"})}),CrmUserSettingsListSettings:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M19.14 12.94c.04-.3.06-.61.06-.94c0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6s3.6 1.62 3.6 3.6s-1.62 3.6-3.6 3.6"})}),CrmUserSettingsEdit:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M15.891 3.048a3.578 3.578 0 1 1 5.061 5.06l-.892.893L15 3.94zM13.94 5.001L3.94 15a3.1 3.1 0 0 0-.825 1.476L2.02 21.078a.75.75 0 0 0 .904.903l4.601-1.096a3.1 3.1 0 0 0 1.477-.825l1.151-1.151a6.5 6.5 0 0 1 7.754-7.755L19 10.06zm-.662 8.975a2 2 0 0 1-1.441 2.497l-.584.144a5.7 5.7 0 0 0 .006 1.807l.54.13a2 2 0 0 1 1.45 2.51l-.187.632c.44.386.94.699 1.485.922l.493-.52a2 2 0 0 1 2.899.001l.499.525a5.3 5.3 0 0 0 1.482-.913l-.198-.686a2 2 0 0 1 1.442-2.496l.583-.144a5.7 5.7 0 0 0-.006-1.808l-.54-.13a2 2 0 0 1-1.449-2.51l.186-.63a5.3 5.3 0 0 0-1.484-.923l-.493.519a2 2 0 0 1-2.9 0l-.498-.525c-.544.22-1.044.53-1.483.912zm3.222 5.025c-.8 0-1.45-.672-1.45-1.5c0-.829.65-1.5 1.45-1.5s1.45.671 1.45 1.5c0 .828-.65 1.5-1.45 1.5"})}),CrmSaveUserConfig:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M13.23 22v-2.21l5.334-5.307q.148-.13.307-.19q.16-.062.32-.062q.165 0 .334.064q.17.065.298.194l.925.944q.123.148.187.308q.065.159.065.319t-.052.322t-.2.31L15.44 22zM6.77 9.77h7.422v-3H6.77zm12.42 7.246l.925-.956l-.924-.944l-.95.95zM10.463 20H5.616q-.672 0-1.144-.472T4 18.385V5.615q0-.67.472-1.143Q4.944 4 5.616 4h10.961L20 7.423v4.146q-.244-.085-.468-.099t-.474.003q-.635.017-1.264.265t-1.106.718l-2.822 2.804q.096-.166.134-.322t.039-.361q0-.846-.577-1.423t-1.423-.577t-1.423.577t-.577 1.423t.577 1.423t1.423.577q.178 0 .348-.039t.329-.134l-2.254 2.234z"})}),CrmOutletLead:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M20.16 7.8c-.09-.46-.5-.8-.98-.8H4.82c-.48 0-.89.34-.98.8L3 12v1c0 .55.45 1 1 1v5c0 .55.45 1 1 1h8c.55 0 1-.45 1-1v-5h4v5c0 .55.45 1 1 1s1-.45 1-1v-5c.55 0 1-.45 1-1v-1zM12 18H6v-4h6zM5 6h14c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1 .45-1 1s.45 1 1 1"})}),CrmCustomerLead:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsxs("g",{fill:"none",children:[n.jsx("path",{d:"m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z"}),n.jsx("path",{fill:"currentColor",d:"M16 14a5 5 0 0 1 4.995 4.783L21 19v1a2 2 0 0 1-1.85 1.995L19 22H5a2 2 0 0 1-1.995-1.85L3 20v-1a5 5 0 0 1 4.783-4.995L8 14zM12 2a5 5 0 1 1 0 10a5 5 0 0 1 0-10"})]})}),CrmLeadFormSettingsButton:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M23.33 12.65v1a1 1 0 0 1-.8 1l-1.24.25a9.3 9.3 0 0 1-1.18 2.81l.71 1.06A1 1 0 0 1 20.7 20l-1.37 1.37a1 1 0 0 1-1.26.12L17 20.77A9.3 9.3 0 0 1 14.2 22l-.2 1.19a1 1 0 0 1-1 .8h-2a1 1 0 0 1-1-.8L9.8 22A9.3 9.3 0 0 1 7 20.77l-1.06.71a1 1 0 0 1-1.26-.12L3.3 20a1 1 0 0 1-.12-1.26l.71-1.06a9.3 9.3 0 0 1-1.18-2.81l-1.24-.25a1 1 0 0 1-.8-1v-1h6.56a4.77 4.77 0 0 0 9.54 0Zm-6.16-8.84a2.32 2.32 0 1 0 4.64 0a2.32 2.32 0 1 0-4.64 0m-14.97 0a2.32 2.32 0 1 0 4.64 0a2.32 2.32 0 1 0-4.64 0M6.8 8.8a5 5 0 0 0-1.15-.54A4.92 4.92 0 0 0 0 10.64h5.73A11 11 0 0 1 6.8 8.8m11.38 1.87H24a4.92 4.92 0 0 0-5.66-2.4a5 5 0 0 0-1.17.55a11.5 11.5 0 0 1 1.01 1.85m-1.11 0A5.74 5.74 0 0 0 12 7a5.76 5.76 0 0 0-5.12 3.68ZM8.99 2.91a2.91 2.91 0 1 0 5.82 0a2.91 2.91 0 1 0-5.82 0"})}),CrmLeadOutletSettings:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M20.16 7.8c-.09-.46-.5-.8-.98-.8H4.82c-.48 0-.89.34-.98.8L3 12v1c0 .55.45 1 1 1v5c0 .55.45 1 1 1h8c.55 0 1-.45 1-1v-5h4v5c0 .55.45 1 1 1s1-.45 1-1v-5c.55 0 1-.45 1-1v-1zM12 18H6v-4h6zM5 6h14c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1 .45-1 1s.45 1 1 1"})}),CrmOpportunitySettings:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M1.998 21v-2h2V4.835a1 1 0 0 1 .821-.984l9.472-1.722a.6.6 0 0 1 .707.59v1.28l4 .001a1 1 0 0 1 1 1v14h2v2h-4V6h-3v15zm10-10h-2v2h2z"})}),CrmUserSettings:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:640,height:512,viewBox:"0 0 640 512",...e,children:n.jsx("path",{fill:"currentColor",d:"M224 0a128 128 0 1 1 0 256a128 128 0 1 1 0-256m-45.7 304h91.4c11.8 0 23.4 1.2 34.5 3.3c-2.1 18.5 7.4 35.6 21.8 44.8c-16.6 10.6-26.7 31.6-20 53.3c4 12.9 9.4 25.5 16.4 37.6s15.2 23.1 24.4 33c15.7 16.9 39.6 18.4 57.2 8.7v.9c0 9.2 2.7 18.5 7.9 26.3l-382.2.1C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304M436 218.2c0-7 4.5-13.3 11.3-14.8c10.5-2.4 21.5-3.7 32.7-3.7s22.2 1.3 32.7 3.7c6.8 1.5 11.3 7.8 11.3 14.8v30.6c7.9 3.4 15.4 7.7 22.3 12.8l24.9-14.3c6.1-3.5 13.7-2.7 18.5 2.4c7.6 8.1 14.3 17.2 20.1 27.2s10.3 20.4 13.5 31c2.1 6.7-1.1 13.7-7.2 17.2l-25 14.4c.4 4 .7 8.1.7 12.3s-.2 8.2-.7 12.3l25 14.4c6.1 3.5 9.2 10.5 7.2 17.2c-3.3 10.6-7.8 21-13.5 31s-12.5 19.1-20.1 27.2c-4.8 5.1-12.5 5.9-18.5 2.4L546.3 442c-6.9 5.1-14.3 9.4-22.3 12.8v30.6c0 7-4.5 13.3-11.3 14.8c-10.5 2.4-21.5 3.7-32.7 3.7s-22.2-1.3-32.7-3.7c-6.8-1.5-11.3-7.8-11.3-14.8v-30.5c-8-3.4-15.6-7.7-22.5-12.9l-24.7 14.3c-6.1 3.5-13.7 2.7-18.5-2.4c-7.6-8.1-14.3-17.2-20.1-27.2s-10.3-20.4-13.5-31c-2.1-6.7 1.1-13.7 7.2-17.2l24.8-14.3c-.4-4.1-.7-8.2-.7-12.4s.2-8.3.7-12.4L343.8 325c-6.1-3.5-9.2-10.5-7.2-17.2c3.3-10.6 7.7-21 13.5-31s12.5-19.1 20.1-27.2c4.8-5.1 12.4-5.9 18.5-2.4l24.8 14.3c6.9-5.1 14.5-9.4 22.5-12.9v-30.5zm92.1 133.5a48.1 48.1 0 1 0-96.1 0a48.1 48.1 0 1 0 96.1 0"})}),EmailIconWithCount:({count:e=0,props:t})=>n.jsxs("div",{className:"position-relative email-icon-wrapper",children:[n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...t,children:n.jsx("path",{fill:"currentColor",d:"m20 8l-8 5l-8-5V6l8 5l8-5m0-2H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2"})}),e>0&&n.jsx("span",{className:"counter-badge",children:e>9?"9+":e}),n.jsx("style",{jsx:!0,children:"\n .counter-badge {\n position: absolute;\n top: 10px;\n right: -1px;\n min-width: 10px;\n height: 10px;\n background-color: red;\n color: white;\n font-size: 7px;\n border-radius: 50%;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 2px;\n font-weight: bold;\n }\n "})]}),ViewOriginal:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 56 56",...e,children:n.jsx("path",{fill:"currentColor",d:"M28.01 46.403C44.556 46.403 56 33.017 56 28.844c0-4.193-11.465-17.558-27.99-17.558C11.588 11.286 0 24.651 0 28.844c0 4.173 11.671 17.559 28.01 17.559m0-6.053c-6.445 0-11.526-5.226-11.567-11.506C16.422 22.4 21.565 17.34 28.01 17.34c6.404 0 11.547 5.06 11.547 11.505c0 6.28-5.143 11.506-11.547 11.506m0-7.354c2.293 0 4.194-1.88 4.194-4.152c0-2.293-1.9-4.172-4.194-4.172c-2.313 0-4.214 1.88-4.214 4.172c0 2.273 1.9 4.152 4.214 4.152"})}),SyncDocument:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M11 17.5c0-3.6 2.9-6.5 6.5-6.5c.9 0 1.7.2 2.5.5V8l-6-6H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h6.8c-1.1-1.2-1.8-2.8-1.8-4.5m2-14L18.5 9H13zm4 8.5v1.5c2.2 0 4 1.8 4 4c0 .8-.2 1.6-.7 2.2l-1.1-1.1c.2-.3.3-.7.3-1.1c0-1.4-1.1-2.5-2.5-2.5v1.5l-2.2-2.2zm0 11v-1.5c-2.2 0-4-1.8-4-4c0-.8.2-1.6.7-2.2l1.1 1.1c-.2.3-.3.7-.3 1.1c0 1.4 1.1 2.5 2.5 2.5v-1.5l2.2 2.2z"})}),ResendDocument:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:9,fill:"none",viewBox:"0 0 10 9",...e,children:n.jsx("path",{fill:"currentColor",d:"M.855.471C.38.471 0 .838 0 1.296v4.947c0 .219.09.429.25.583a.87.87 0 0 0 .605.242H5.34a2.599 2.599 0 0 1-.214-1.03c0-.712.293-1.393.814-1.896a2.83 2.83 0 0 1 2.604-.71V1.296a.81.81 0 0 0-.25-.583A.87.87 0 0 0 7.69.47H.855Zm0 .825 3.418 2.061L7.69 1.296v.825L4.273 4.18.855 2.122v-.825ZM7.69 3.77l-.962.927.962.928v-.619c.283 0 .555.109.755.302a1.013 1.013 0 0 1 .202 1.19l.465.45c.18-.26.287-.573.287-.91 0-.912-.765-1.65-1.71-1.65V3.77ZM6.268 5.126c-.18.26-.286.573-.286.911 0 .911.764 1.65 1.709 1.65v.618l.961-.928-.961-.928v.619c-.284 0-.555-.109-.756-.302a1.013 1.013 0 0 1-.201-1.19l-.466-.45Z"})}),SignedDocument:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:7,height:8,viewBox:"0 0 7 10",...e,children:n.jsx("path",{fill:"currentColor",d:"M4.083 2.656V0H.437C.196 0 0 .209 0 .469V9.53c0 .26.195.469.438.469h6.125C6.804 10 7 9.791 7 9.531V3.125H4.52c-.24 0-.437-.21-.437-.469Zm-2.916-1.25c0-.086.065-.156.145-.156h1.459c.08 0 .146.07.146.156v.313c0 .086-.066.156-.146.156H1.313c-.081 0-.146-.07-.146-.156v-.313Zm0 1.25c0-.086.065-.156.145-.156h1.459c.08 0 .146.07.146.156v.313c0 .086-.066.156-.146.156H1.313c-.081 0-.146-.07-.146-.156v-.313ZM4.68 7.5h.86c.162 0 .292.14.292.313 0 .172-.13.312-.291.312h-.86a.78.78 0 0 1-.705-.466c-.054-.116-.147-.127-.185-.127a.197.197 0 0 0-.183.12l-.14.3a.305.305 0 0 1-.107.126.277.277 0 0 1-.174.046.295.295 0 0 1-.256-.213l-.307-.985-.193.622a.794.794 0 0 1-.748.577h-.226c-.16 0-.291-.14-.291-.313 0-.172.13-.312.291-.312h.226c.088 0 .166-.06.194-.15l.332-1.067a.442.442 0 0 1 .415-.32c.188 0 .355.128.415.32l.253.813c.36-.316.985-.189 1.203.277.037.08.109.127.185.127Zm2.191-5.45L5.088.138A.423.423 0 0 0 4.778 0h-.111v2.5H7v-.12a.485.485 0 0 0-.128-.33Z"})}),DocumentVoid:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:20,viewBox:"0 0 9 11",...e,children:n.jsx("path",{d:"M2.548 4.692a.43.43 0 0 0 .43-.44.432.432 0 0 0-.123-.314.412.412 0 0 0-.307-.126.412.412 0 0 0-.306.126.432.432 0 0 0-.124.314.43.43 0 0 0 .43.44Zm1.785.88H2.548a.412.412 0 0 0-.306.126.432.432 0 0 0-.124.314.43.43 0 0 0 .43.44h2.646l-.86-.88Zm4.56 2.157L5.924 4.692h.924a.43.43 0 0 0 .43-.44.431.431 0 0 0-.123-.314.411.411 0 0 0-.307-.126H5.065l-2.581-2.64H8.14a.82.82 0 0 1 .608.258c.168.172.252.38.252.621V7.29c0 .08-.007.157-.022.23a.587.587 0 0 1-.086.21Zm-.818 1.65L6.914 8.213H1.258a.819.819 0 0 1-.607-.259.858.858 0 0 1-.253-.621V2.05c0-.242.084-.449.253-.621a.818.818 0 0 1 .607-.259l3.44 3.52H3.496L.118 1.238A.423.423 0 0 1 0 .93C0 .804.04.702.118.621A.403.403 0 0 1 .42.5C.541.5.642.54.72.621l7.957 8.142c.08.08.12.181.124.303a.415.415 0 0 1-.124.313.403.403 0 0 1-.3.121.403.403 0 0 1-.302-.121Z"})}),SendDocument:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:23,height:23,viewBox:"0 0 23 23",...e,children:n.jsx("path",{fill:"currentColor",d:"M4.4 19.425q-.5.2-.95-.088T3 18.5V14l8-2l-8-2V5.5q0-.55.45-.837t.95-.088l15.4 6.5q.625.275.625.925t-.625.925z"})}),DeleteCrm:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})}),CrmLink:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.415 4.84a4.775 4.775 0 0 1 6.752 6.752l-.013.013l-2.264 2.265a4.776 4.776 0 0 1-7.201-.516a1 1 0 0 1 1.601-1.198a2.774 2.774 0 0 0 4.185.3l2.259-2.259a2.776 2.776 0 0 0-3.925-3.923L12.516 7.56a1 1 0 0 1-1.41-1.418l1.298-1.291zM8.818 9.032a4.775 4.775 0 0 1 5.492 1.614a1 1 0 0 1-1.601 1.198a2.775 2.775 0 0 0-4.185-.3l-2.258 2.259a2.775 2.775 0 0 0 3.923 3.924l1.285-1.285a1 1 0 1 1 1.414 1.414l-1.291 1.291l-.012.013a4.775 4.775 0 0 1-6.752-6.752l.012-.013L7.11 10.13a4.8 4.8 0 0 1 1.708-1.098",clipRule:"evenodd"})}),CrmWarning:e=>n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:[n.jsx("path",{fill:"currentColor",d:"M11.001 10h2v5h-2zM11 16h2v2h-2z"}),n.jsx("path",{fill:"currentColor",d:"M13.768 4.2C13.42 3.545 12.742 3.138 12 3.138s-1.42.407-1.768 1.063L2.894 18.064a1.99 1.99 0 0 0 .054 1.968A1.98 1.98 0 0 0 4.661 21h14.678c.708 0 1.349-.362 1.714-.968a1.99 1.99 0 0 0 .054-1.968zM4.661 19L12 5.137L19.344 19z"})]}),CrmError:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})}),ExportCSV:e=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16",...e,children:n.jsx("path",{fill:"none",stroke:"currentColor","stroke-linejoin":"round",d:"M8 11.5h5.5m-1.5 2l2-2l-2-2m-2.5 5h-6v-13H9m0 0V5h3.5M9 1.5L12.5 5m0 0v2.5","stroke-width":"1"})}),Maximize:e=>n.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",...e,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","data-p-icon":"window-maximize",class:"p-icon",pc1090:"",children:[n.jsx("g",{"clip-path":"url(#pui_id_99)",children:n.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z",fill:"currentColor"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"url(#pui_id_99)",children:n.jsx("rect",{width:"14",height:"14",fill:"white"})})})]}),Minimize:e=>n.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",...e,xmlns:"http://www.w3.org/2000/svg","data-p-icon":"window-minimize",class:"p-icon",pc1091:"",children:[n.jsx("g",{"clip-path":"url(#pui_id_100)",children:n.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"url(#pui_id_100)",children:n.jsx("rect",{width:"14",height:"14",fill:"white"})})})]})};function R({name:t,width:r="1em",height:a="1em",className:o="",color:i="currentColor",activeColor:l,hoverColor:s,...c}){const[d,u]=e.useState(!1),[p,f]=e.useState(!1),m=p?l||i:d&&s||i,h=F[t];return h?n.jsx(h,{width:r,height:a,className:o,style:{color:m,cursor:c.onClick?"pointer":void 0},onMouseEnter:()=>u(!0),onMouseLeave:()=>{u(!1),f(!1)},onMouseDown:()=>f(!0),onMouseUp:()=>f(!1),...c}):(console.warn(`Icon "${t}" not found`),null)}function z(e){var n,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(t=z(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function H(){for(var e,n,t=0,r="",a=arguments.length;t<a;t++)(e=arguments[t])&&(n=z(e))&&(r&&(r+=" "),r+=n);return r}const K=({fluid:e=!1,className:t="",children:r,...a})=>{const o=H(e?"container-fluid":"container",t);return n.jsx("div",{className:o,...a,children:r})};K.propTypes={fluid:L.bool,className:L.string,children:L.node};const q=({justify:e="",align:t="",className:r="",children:a,...o})=>{const i=H("row",e&&`justify-content-${e}`,t&&`align-items-${t}`,r);return n.jsx("div",{className:i,...o,children:a})};q.propTypes={justify:L.oneOf(["start","center","end","around","between","evenly"]),align:L.oneOf(["start","center","end","stretch","baseline"]),className:L.string,children:L.node};const B=({xs:e,sm:t,md:r,lg:a,xl:o,offset:i,order:l,className:s="",children:c,...d})=>{const u=H(void 0!==e&&`col-${e}`,void 0!==t&&`col-sm-${t}`,void 0!==r&&`col-md-${r}`,void 0!==a&&`col-lg-${a}`,void 0!==o&&`col-xl-${o}`,void 0!==i&&`offset-${i}`,void 0!==l&&`order-${l}`,s);return n.jsx("div",{className:u,...d,children:c})};B.propTypes={xs:L.oneOfType([L.string,L.number]),sm:L.oneOfType([L.string,L.number]),md:L.oneOfType([L.string,L.number]),lg:L.oneOfType([L.string,L.number]),xl:L.oneOfType([L.string,L.number]),offset:L.oneOfType([L.string,L.number]),order:L.oneOfType([L.string,L.number]),className:L.string,children:L.node};const W=({title:t,children:r,footer:a,titleOnTop:o=!1,onClose:i,customStyles:l="",maxWidth:s="600px",width:c="100%",maxHeight:d="80vh",outsideClickHandle:u=!1})=>{const p=e.useRef();return e.useEffect(()=>{if(!u)return;const e=e=>{p.current&&!p.current.contains(e.target)&&i?.()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[i]),n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"conditions-overlay position-fixed top-0 start-0 w-100 h-100 bg-dark bg-opacity-10 d-flex justify-content-center align-items-center z-3",children:n.jsxs("div",{className:`card position-relative shadow p-4 ${l}`,ref:p,style:{width:c,maxWidth:s,maxHeight:d,overflowY:"auto"},children:[n.jsxs("div",{className:"w-full d-flex svg-icon align-items-center svg-icon-1 "+(o?"justify-content-between":"justify-content-end"),children:[t&&o&&n.jsx("h5",{className:"mt-3",children:t}),n.jsx("div",{className:"cursor-pointer w-24px h-24px",onClick:i,children:n.jsx(Y,{})})]}),t&&!o&&n.jsx("h5",{className:"mb-3",children:t}),r&&n.jsx("div",{className:"mb-3",children:r}),a&&n.jsx("div",{className:"text-end",children:a})]})}),n.jsx("style",{jsx:!0,children:"\n .conditions-overlay {\n z-index: 1001;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n "})]})},Y=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeDasharray:12,strokeDashoffset:12,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 12l7 7M12 12l-7 -7M12 12l-7 7M12 12l7 -7",children:n.jsx("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"12;0"})})}),Z=({label:t="Enter Label",required:r=!1,type:a="",placeholder:o="",errorMessage:i="",value:l,onChange:s,disabled:c=!1,className:d="",maxLength:u,minLength:p,inputSymbol:f,...m})=>{const h=e.useId(),v=m.id||`input-${h}`;return n.jsxs("div",{className:"form-group-lg",children:[n.jsx("label",{htmlFor:v,className:"form-label "+(r?"required":""),children:t}),n.jsxs("div",{className:"input-group",style:{fontFamily:"inherit"},children:[f&&n.jsx("span",{className:"input-group-text border",children:f}),n.jsx("input",{id:v,type:a,placeholder:"date"===a?void 0:o,value:l,required:r,onChange:s,disabled:c,maxLength:u,minLength:p,className:`form-control form-control-solid border${i?" is-invalid border-danger":""}${d?` ${d}`:""}`,...m})]}),i&&n.jsx("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"},children:i})]})};Z.propTypes={label:L.string,required:L.bool,type:L.string,placeholder:L.string,errorMessage:L.string,value:L.oneOfType([L.string,L.number]),onChange:L.func,disabled:L.bool,className:L.string,maxLength:L.oneOfType([L.string,L.number]),minLength:L.oneOfType([L.string,L.number]),inputSymbol:L.node,id:L.string};const U=e=>{if(""===e||null===e)return"";const n=Number(e.toString().replace(/[^\d.-]/g,""));return isNaN(n)?"":n.toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0})},G={small:"spinner-border-sm",medium:"",large:"spinner-border-lg"},J={primary:"text-primary",secondary:"text-secondary",success:"text-success",danger:"text-danger",warning:"text-warning",info:"text-info",light:"text-light",dark:"text-dark"},X={primary:"#007bff",secondary:"#6c757d",success:"#28a745",danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:"#f8f9fa",dark:"#343a40"},Q="table",ee="dots",ne="bar",te="circular",re="pulse",ae="text",oe="wave",ie=({size:e="medium",color:t="primary",ariaLabel:r="Loading...",loadingType:a="spinner",className:o="",placeholderRows:i=4})=>{const l="large"===e?"":G[e]||"",s=J[t]||J.primary,c="large"===e?{width:"3rem",height:"3rem",borderWidth:"0.3em"}:{};if(a===Q){const e=X[t]||X.primary;return n.jsx("div",{className:"w-100",children:n.jsx("div",{className:"placeholder-glow",children:Array.from({length:i}).map((t,r)=>n.jsx("span",{className:`placeholder col-12 rounded bg-secondary${0===r?" mb-2":""}${r===i-1?" mt-2":" mb-2"}`,style:{height:44,display:"block",background:e}},r))})})}if(a===ee){const e=X[t]||X.primary;return n.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":r,children:[n.jsxs("span",{className:"dots-loader",children:[n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}})]}),n.jsx("style",{children:"\n .dots-loader {\n display: inline-block;\n }\n .dots-loader span {\n display: inline-block;\n width: 8px;\n height: 8px;\n margin: 0 2px;\n border-radius: 50%;\n animation: dots-bounce 1s infinite;\n }\n .dots-loader span:nth-child(2) { animation-delay: 0.2s; }\n .dots-loader span:nth-child(3) { animation-delay: 0.4s; }\n @keyframes dots-bounce {\n 0%, 80%, 100% { transform: scale(1); }\n 40% { transform: scale(1.5); }\n }\n "})]})}if(a===ne){const e=X[t]||X.primary;return n.jsxs("div",{style:{width:"100%",padding:"8px 0"},"aria-label":r,children:[n.jsx("div",{className:"bar-loader",children:n.jsx("div",{style:{background:e}})}),n.jsx("style",{children:"\n .bar-loader {\n width: 100%;\n height: 8px;\n background: #e0e0e0;\n border-radius: 4px;\n overflow: hidden;\n position: relative;\n }\n .bar-loader div {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 30%;\n animation: bar-move 1.2s linear infinite;\n }\n @keyframes bar-move {\n 0% { left: -30%; }\n 100% { left: 100%; }\n }\n "})]})}if(a===re){const e=X[t]||X.primary;return n.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":r,children:[n.jsx("span",{className:"pulse-loader",style:{background:e}}),n.jsx("style",{children:"\n .pulse-loader {\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n animation: pulse-grow 1s infinite;\n }\n @keyframes pulse-grow {\n 0%, 100% { transform: scale(1); opacity: 1; }\n 50% { transform: scale(1.5); opacity: 0.5; }\n }\n "})]})}if(a===ae){const e=X[t]||X.primary;return n.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":r,children:[n.jsx("span",{style:{color:e},children:"Loading"}),n.jsx("span",{className:"ellipsis-loader",style:{color:e}}),n.jsx("style",{children:"\n .ellipsis-loader::after {\n content: '...';\n animation: ellipsis 1.2s infinite steps(4);\n }\n @keyframes ellipsis {\n 0% { content: ''; }\n 25% { content: '.'; }\n 50% { content: '..'; }\n 75% { content: '...'; }\n 100% { content: ''; }\n }\n "})]})}if(a===oe){const e=X[t]||X.primary;return n.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:2},"aria-label":r,children:[n.jsxs("span",{className:"wave-loader",children:[n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}}),n.jsx("span",{style:{background:e}})]}),n.jsx("style",{children:"\n .wave-loader {\n display: inline-block;\n height: 20px;\n }\n .wave-loader span {\n display: inline-block;\n width: 4px;\n height: 100%;\n margin: 0 2px;\n animation: wave-bounce 1.2s infinite;\n }\n .wave-loader span:nth-child(2) { animation-delay: 0.2s; }\n .wave-loader span:nth-child(3) { animation-delay: 0.4s; }\n .wave-loader span:nth-child(4) { animation-delay: 0.6s; }\n .wave-loader span:nth-child(5) { animation-delay: 0.8s; }\n @keyframes wave-bounce {\n 0%, 100% { transform: scaleY(1); }\n 50% { transform: scaleY(2); }\n }\n "})]})}if(a===te){const e=X[t]||X.primary;return n.jsxs("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":r,children:[n.jsxs("svg",{className:"circular-loader",width:"40",height:"40",viewBox:"0 0 40 40",children:[n.jsx("circle",{cx:"20",cy:"20",r:"18",stroke:e,strokeWidth:"4",fill:"none",opacity:"0.2"}),n.jsx("circle",{cx:"20",cy:"20",r:"18",stroke:e,strokeWidth:"4",fill:"none",strokeDasharray:"113",strokeDashoffset:"80",style:{animation:"circular-spin 1s linear infinite"}})]}),n.jsx("style",{children:"\n @keyframes circular-spin {\n 100% { stroke-dashoffset: 0; }\n }\n "})]})}return n.jsxs("div",{role:"status","aria-label":r,style:{display:"inline-flex",alignItems:"center"},children:[n.jsx("span",{className:`spinner-border ${l} ${s} ${o}`.trim(),style:c,"aria-hidden":"true"}),n.jsx("span",{className:"visually-hidden",children:r})]})},le=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:n.jsx("path",{fill:"currentColor",d:"M7 20h2V8h3L8 4L4 8h3zm13-4h-3V4h-2v12h-3l4 4z"})}),se=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",children:n.jsx("path",{fill:"currentColor",d:"M3 0L6 3H3.75V12H2.25V3H0L3 0ZM6.75 9H13.5V7.5H6.75V9ZM6.75 6H12V4.5H6.75V6ZM6.75 12H15V10.5H6.75V12ZM6.75 3H10.5V1.5H6.75V3Z"})}),ce=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:n.jsx("path",{fill:"currentColor",d:"m6 20l4-4H7V4H5v12H2zm5-12h9v2h-9zm0 4h7v2h-7zm0-8h11v2H11zm0 12h5v2h-5z"})}),de=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:n.jsx("path",{fill:"currentColor",d:"M14 20.5h-4a.76.76 0 0 1-.75-.75V12L3.9 4.69a.73.73 0 0 1-.07-.78a.76.76 0 0 1 .67-.41h15a.76.76 0 0 1 .67.41a.73.73 0 0 1-.07.78L14.75 12v7.75a.76.76 0 0 1-.75.75M10.75 19h2.5v-7.25a.7.7 0 0 1 .15-.44L18 5H6l4.62 6.31a.7.7 0 0 1 .15.44Z"})}),ue=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",version:"1.1",children:n.jsxs("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:[n.jsx("polygon",{points:"0 0 24 0 24 24 0 24"}),n.jsx("path",{d:"M6.70710678,15.7071068 C6.31658249,16.0976311 5.68341751,16.0976311 5.29289322,15.7071068 C4.90236893,15.3165825 4.90236893,14.6834175 5.29289322,14.2928932 L11.2928932,8.29289322 C11.6714722,7.91431428 12.2810586,7.90106866 12.6757246,8.26284586 L18.6757246,13.7628459 C19.0828436,14.1360383 19.1103465,14.7686056 18.7371541,15.1757246 C18.3639617,15.5828436 17.7313944,15.6103465 17.3242754,15.2371541 L12.0300757,10.3841378 L6.70710678,15.7071068 Z",fill:"currentColor","fill-rule":"nonzero",transform:"translate(12.000003, 11.999999) rotate(-270.000000) translate(-12.000003, -11.999999) "})]})}),pe=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",version:"1.1",children:n.jsxs("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:[n.jsx("polygon",{points:"0 0 24 0 24 24 0 24"}),n.jsx("path",{d:"M6.70710678,15.7071068 C6.31658249,16.0976311 5.68341751,16.0976311 5.29289322,15.7071068 C4.90236893,15.3165825 4.90236893,14.6834175 5.29289322,14.2928932 L11.2928932,8.29289322 C11.6714722,7.91431428 12.2810586,7.90106866 12.6757246,8.26284586 L18.6757246,13.7628459 C19.0828436,14.1360383 19.1103465,14.7686056 18.7371541,15.1757246 C18.3639617,15.5828436 17.7313944,15.6103465 17.3242754,15.2371541 L12.0300757,10.3841378 L6.70710678,15.7071068 Z",fill:"currentColor","fill-rule":"nonzero",transform:"translate(12.000003, 11.999999) scale(-1, 1) rotate(-270.000000) translate(-12.000003, -11.999999) "})]})});function fe(e){if(!e)return e;return e.replace(/(?<year>[0-9]{4})-(?<month>[0-9]{2})-(?<day>[0-9]{2})(?:T[0-9:.]+(?:[+-][0-9:]+)?)?/,"$<day>-$<month>-$<year>")}const me=({datePickerDates:t,setDatePickerDates:r})=>{const a=e.useRef();return e.useEffect(()=>{$(a.current).daterangepicker({dateFormat:"dd-mm-yyyy",autoApply:!0,autoUpdateInput:!0},function(e,n){r({startDate:e.format("YYYY-MM-DD"),endDate:n.format("YYYY-MM-DD")})})},[t,r,a]),n.jsxs("div",{className:"form-control form-control-solid border d-flex align-items-center p-3 justify-content-between",ref:a,children:[n.jsx("div",{className:"fs-6",children:t?n.jsxs(n.Fragment,{children:[n.jsx("input",{hidden:!0,type:"date",defaultValue:t?.startDate,name:"startDate"}),n.jsx("input",{hidden:!0,type:"date",defaultValue:t?.endDate,name:"endDate"}),`${fe(t?.startDate)} - ${fe(t?.endDate)}`]}):"Pick a date range"}),n.jsx("span",{className:"svg-icon svg-icon-1 ms-2 me-0",children:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{opacity:"0.3",d:"M21 22H3C2.4 22 2 21.6 2 21V5C2 4.4 2.4 4 3 4H21C21.6 4 22 4.4 22 5V21C22 21.6 21.6 22 21 22Z",fill:"currentColor"}),n.jsx("path",{d:"M6 6C5.4 6 5 5.6 5 5V3C5 2.4 5.4 2 6 2C6.6 2 7 2.4 7 3V5C7 5.6 6.6 6 6 6ZM11 5V3C11 2.4 10.6 2 10 2C9.4 2 9 2.4 9 3V5C9 5.6 9.4 6 10 6C10.6 6 11 5.6 11 5ZM15 5V3C15 2.4 14.6 2 14 2C13.4 2 13 2.4 13 3V5C13 5.6 13.4 6 14 6C14.6 6 15 5.6 15 5ZM19 5V3C19 2.4 18.6 2 18 2C17.4 2 17 2.4 17 3V5C17 5.6 17.4 6 18 6C18.6 6 19 5.6 19 5Z",fill:"currentColor"}),n.jsx("path",{d:"M8.8 13.1C9.2 13.1 9.5 13 9.7 12.8C9.9 12.6 10.1 12.3 10.1 11.9C10.1 11.6 10 11.3 9.8 11.1C9.6 10.9 9.3 10.8 9 10.8C8.8 10.8 8.59999 10.8 8.39999 10.9C8.19999 11 8.1 11.1 8 11.2C7.9 11.3 7.8 11.4 7.7 11.6C7.6 11.8 7.5 11.9 7.5 12.1C7.5 12.2 7.4 12.2 7.3 12.3C7.2 12.4 7.09999 12.4 6.89999 12.4C6.69999 12.4 6.6 12.3 6.5 12.2C6.4 12.1 6.3 11.9 6.3 11.7C6.3 11.5 6.4 11.3 6.5 11.1C6.6 10.9 6.8 10.7 7 10.5C7.2 10.3 7.49999 10.1 7.89999 10C8.29999 9.90003 8.60001 9.80003 9.10001 9.80003C9.50001 9.80003 9.80001 9.90003 10.1 10C10.4 10.1 10.7 10.3 10.9 10.4C11.1 10.5 11.3 10.8 11.4 11.1C11.5 11.4 11.6 11.6 11.6 11.9C11.6 12.3 11.5 12.6 11.3 12.9C11.1 13.2 10.9 13.5 10.6 13.7C10.9 13.9 11.2 14.1 11.4 14.3C11.6 14.5 11.8 14.7 11.9 15C12 15.3 12.1 15.5 12.1 15.8C12.1 16.2 12 16.5 11.9 16.8C11.8 17.1 11.5 17.4 11.3 17.7C11.1 18 10.7 18.2 10.3 18.3C9.9 18.4 9.5 18.5 9 18.5C8.5 18.5 8.1 18.4 7.7 18.2C7.3 18 7 17.8 6.8 17.6C6.6 17.4 6.4 17.1 6.3 16.8C6.2 16.5 6.10001 16.3 6.10001 16.1C6.10001 15.9 6.2 15.7 6.3 15.6C6.4 15.5 6.6 15.4 6.8 15.4C6.9 15.4 7.00001 15.4 7.10001 15.5C7.20001 15.6 7.3 15.6 7.3 15.7C7.5 16.2 7.7 16.6 8 16.9C8.3 17.2 8.6 17.3 9 17.3C9.2 17.3 9.5 17.2 9.7 17.1C9.9 17 10.1 16.8 10.3 16.6C10.5 16.4 10.5 16.1 10.5 15.8C10.5 15.3 10.4 15 10.1 14.7C9.80001 14.4 9.50001 14.3 9.10001 14.3C9.00001 14.3 8.9 14.3 8.7 14.3C8.5 14.3 8.39999 14.3 8.39999 14.3C8.19999 14.3 7.99999 14.2 7.89999 14.1C7.79999 14 7.7 13.8 7.7 13.7C7.7 13.5 7.79999 13.4 7.89999 13.2C7.99999 13 8.2 13 8.5 13H8.8V13.1ZM15.3 17.5V12.2C14.3 13 13.6 13.3 13.3 13.3C13.1 13.3 13 13.2 12.9 13.1C12.8 13 12.7 12.8 12.7 12.6C12.7 12.4 12.8 12.3 12.9 12.2C13 12.1 13.2 12 13.6 11.8C14.1 11.6 14.5 11.3 14.7 11.1C14.9 10.9 15.2 10.6 15.5 10.3C15.8 10 15.9 9.80003 15.9 9.70003C15.9 9.60003 16.1 9.60004 16.3 9.60004C16.5 9.60004 16.7 9.70003 16.8 9.80003C16.9 9.90003 17 10.2 17 10.5V17.2C17 18 16.7 18.4 16.2 18.4C16 18.4 15.8 18.3 15.6 18.2C15.4 18.1 15.3 17.8 15.3 17.5Z",fill:"currentColor"})]})})]})},he=["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onBlur","onInput","onInvalid","onReset","onSubmit","onLoad","onError","onKeyDown","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onChange","onToggle"];const ve=(e,n,t,r)=>{if("length"===t||"prototype"===t)return;if("arguments"===t||"caller"===t)return;const a=Object.getOwnPropertyDescriptor(e,t),o=Object.getOwnPropertyDescriptor(n,t);!ge(a,o)&&r||Object.defineProperty(e,t,o)},ge=function(e,n){return void 0===e||e.configurable||e.writable===n.writable&&e.enumerable===n.enumerable&&e.configurable===n.configurable&&(e.writable||e.value===n.value)},be=(e,n)=>`/* Wrapped ${e}*/\n${n}`,ye=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),xe=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");function we(e,n,{ignoreNonConfigurable:t=!1}={}){const{name:r}=e;for(const r of Reflect.ownKeys(n))ve(e,n,r,t);return((e,n)=>{const t=Object.getPrototypeOf(n);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t)})(e,n),((e,n,t)=>{const r=""===t?"":`with ${t.trim()}() `,a=be.bind(null,r,n.toString());Object.defineProperty(a,"name",xe);const{writable:o,enumerable:i,configurable:l}=ye;Object.defineProperty(e,"toString",{value:a,writable:o,enumerable:i,configurable:l})})(e,n,r),e}const Ce=2147483647,je=new WeakMap,ke=new WeakMap,Ne=new WeakMap;function _e(e,{cacheKey:n,cache:t=new Map,maxAge:r}={}){if(0===r)return e;if("number"==typeof r&&Number.isFinite(r)){if(r>Ce)throw new TypeError("The `maxAge` option cannot exceed 2147483647.");if(r<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const a=function(...o){const i=n?n(o):o[0],l=function(e,n){const t=e.get(n);if(t){if(!(t.maxAge<=Date.now()))return t;e.delete(n)}}(t,i);if(l)return l.data;const s=e.apply(this,o),c="function"==typeof r?r(...o):r;if(void 0!==c&&c!==Number.POSITIVE_INFINITY){if(!Number.isFinite(c))throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(c<=0)return s;if(c>Ce)throw new TypeError("The `maxAge` function result cannot exceed 2147483647.")}if(t.set(i,{data:s,maxAge:void 0===c||c===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Date.now()+c}),void 0!==c&&c!==Number.POSITIVE_INFINITY){const e=setTimeout(()=>{t.delete(i),ke.get(a)?.delete(e)},c);e.unref?.();const n=ke.get(a)??new Set;n.add(e),ke.set(a,n)}return s};return we(a,e,{ignoreNonConfigurable:!0}),je.set(a,t),Ne.set(a,n??(e=>e[0])),a}function Se(e){return"string"==typeof e}function Oe(e,n,t){return t.indexOf(e)===n}function De(e){return-1===e.indexOf(",")?e:e.split(",")}function Te(e){if(!e)return e;if("C"===e||"posix"===e||"POSIX"===e)return"en-US";if(-1!==e.indexOf(".")){var n=e.split(".")[0];return Te(void 0===n?"":n)}if(-1!==e.indexOf("@")){var t=e.split("@")[0];return Te(void 0===t?"":t)}if(-1===e.indexOf("-")||(r=e).toLowerCase()!==r)return e;var r,a=e.split("-"),o=a[0],i=a[1],l=void 0===i?"":i;return"".concat(o,"-").concat(l.toUpperCase())}var Ee=_e(function(e){var n=void 0===e?{}:e,t=n.useFallbackLocale,r=void 0===t||t,a=n.fallbackLocale,o=void 0===a?"en-US":a,i=[];if("undefined"!=typeof navigator){for(var l=[],s=0,c=navigator.languages||[];s<c.length;s++){var d=c[s];l=l.concat(De(d))}var u=navigator.language,p=u?De(u):u;i=i.concat(l,p)}return r&&i.push(o),i.filter(Se).map(Te).filter(Oe)},{cacheKey:JSON.stringify});var Le=_e(function(e){return Ee(e)[0]||null},{cacheKey:JSON.stringify});function Me(e,n,t){return function(r,a=t){const o=e(r)+a;return n(o)}}function Ae(e){return function(n){return new Date(e(n).getTime()-1)}}function Pe(e,n){return function(t){return[e(t),n(t)]}}function $e(e){if(e instanceof Date)return e.getFullYear();if("number"==typeof e)return e;const n=Number.parseInt(e,10);if("string"==typeof e&&!Number.isNaN(n))return n;throw new Error(`Failed to get year from date: ${e}.`)}function Ve(e){if(e instanceof Date)return e.getMonth();throw new Error(`Failed to get month from date: ${e}.`)}function Ie(e){if(e instanceof Date)return e.getMonth()+1;throw new Error(`Failed to get human-readable month from date: ${e}.`)}function Fe(e){if(e instanceof Date)return e.getDate();throw new Error(`Failed to get year from date: ${e}.`)}function Re(e){const n=$e(e),t=n+(1-n)%100,r=new Date;return r.setFullYear(t,0,1),r.setHours(0,0,0,0),r}const ze=Me($e,Re,-100),He=Me($e,Re,100),Ke=Ae(He),qe=Me($e,Ke,-100),Be=Pe(Re,Ke);function We(e){const n=$e(e),t=n+(1-n)%10,r=new Date;return r.setFullYear(t,0,1),r.setHours(0,0,0,0),r}const Ye=Me($e,We,-10),Ze=Me($e,We,10),Ue=Ae(Ze),Ge=Me($e,Ue,-10),Je=Pe(We,Ue);function Xe(e){const n=$e(e),t=new Date;return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}const Qe=Me($e,Xe,-1),en=Me($e,Xe,1),nn=Ae(en),tn=Me($e,nn,-1),rn=Pe(Xe,nn);function an(e,n){return function(t,r=n){const a=$e(t),o=Ve(t)+r,i=new Date;return i.setFullYear(a,o,1),i.setHours(0,0,0,0),e(i)}}function on(e){const n=$e(e),t=Ve(e),r=new Date;return r.setFullYear(n,t,1),r.setHours(0,0,0,0),r}const ln=an(on,-1),sn=an(on,1),cn=Ae(sn),dn=an(cn,-1),un=Pe(on,cn);function pn(e){const n=$e(e),t=Ve(e),r=Fe(e),a=new Date;return a.setFullYear(n,t,r),a.setHours(0,0,0,0),a}var fn,mn;const hn=Ae((fn=pn,mn=1,function(e,n=mn){const t=$e(e),r=Ve(e),a=Fe(e)+n,o=new Date;return o.setFullYear(t,r,a),o.setHours(0,0,0,0),fn(o)})),vn=Pe(pn,hn);function gn(e){return Fe(cn(e))}function bn(e,n=2){const t=`${e}`;return t.length>=n?e:`0000${t}`.slice(-n)}function yn(e){return`${bn($e(e),4)}-${bn(Ie(e))}`}function xn(e){return`${bn($e(e),4)}-${bn(Ie(e))}-${bn(Fe(e))}`}var wn="gregory",Cn="hebrew",jn="islamic",kn="iso8601",Nn={gregory:["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"],hebrew:["he","he-IL"],islamic:["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]},_n=[0,1,2,3,4,5,6],Sn=new Map;function On(e){return function(n,t){return function(e){return function(n,t){var r=n||Le();Sn.has(r)||Sn.set(r,new Map);var a=Sn.get(r);return a.has(e)||a.set(e,new Intl.DateTimeFormat(r||void 0,e).format),a.get(e)(t)}}(e)(n,function(e){var n=new Date(e);return new Date(n.setHours(12))}(t))}}var Dn=On({day:"numeric"}),Tn=On({day:"numeric",month:"long",year:"numeric"}),En=On({month:"long"}),Ln=On({month:"long",year:"numeric"}),Mn=On({weekday:"short"}),An=On({weekday:"long"}),Pn=On({year:"numeric"}),$n=_n[0],Vn=_n[5],In=_n[6];function Fn(e,n){void 0===n&&(n=kn);var t=e.getDay();switch(n){case kn:return(t+6)%7;case jn:return(t+1)%7;case Cn:case wn:return t;default:throw new Error("Unsupported calendar type.")}}function Rn(e,n){void 0===n&&(n=kn);var t=$e(e),r=Ve(e),a=e.getDate()-Fn(e,n);return new Date(t,r,a)}function zn(e,n){switch(e){case"century":return Re(n);case"decade":return We(n);case"year":return Xe(n);case"month":return on(n);case"day":return pn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function Hn(e,n){switch(e){case"century":return He(n);case"decade":return Ze(n);case"year":return en(n);case"month":return sn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function Kn(e,n){switch(e){case"century":return Ke(n);case"decade":return Ue(n);case"year":return nn(n);case"month":return cn(n);case"day":return hn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function qn(e,n){switch(e){case"century":return Be(n);case"decade":return Je(n);case"year":return rn(n);case"month":return un(n);case"day":return vn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function Bn(e,n,t){return t.map(function(t){return(n||Pn)(e,t)}).join(" – ")}function Wn(e,n,t){return Bn(e,n,Je(t))}function Yn(e){return e.getDay()===(new Date).getDay()}function Zn(e,n){void 0===n&&(n=kn);var t=e.getDay();switch(n){case jn:case Cn:return t===Vn||t===In;case kn:case wn:return t===In||t===$n;default:throw new Error("Unsupported calendar type.")}}var Un="react-calendar__navigation";function Gn(e){var t,r=e.activeStartDate,a=e.drillUp,o=e.formatMonthYear,i=void 0===o?Ln:o,l=e.formatYear,s=void 0===l?Pn:l,c=e.locale,d=e.maxDate,u=e.minDate,p=e.navigationAriaLabel,f=void 0===p?"":p,m=e.navigationAriaLive,h=e.navigationLabel,v=e.next2AriaLabel,g=void 0===v?"":v,b=e.next2Label,y=void 0===b?"»":b,x=e.nextAriaLabel,w=void 0===x?"":x,C=e.nextLabel,j=void 0===C?"›":C,k=e.prev2AriaLabel,N=void 0===k?"":k,_=e.prev2Label,S=void 0===_?"«":_,O=e.prevAriaLabel,D=void 0===O?"":O,T=e.prevLabel,E=void 0===T?"‹":T,L=e.setActiveStartDate,M=e.showDoubleView,A=e.view,P=e.views.indexOf(A)>0,$="century"!==A,V=function(e,n){switch(e){case"century":return ze(n);case"decade":return Ye(n);case"year":return Qe(n);case"month":return ln(n);default:throw new Error("Invalid rangeType: ".concat(e))}}(A,r),I=$?function(e,n){switch(e){case"decade":return Ye(n,-100);case"year":return Qe(n,-10);case"month":return ln(n,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}(A,r):void 0,F=Hn(A,r),R=$?function(e,n){switch(e){case"decade":return Ze(n,100);case"year":return en(n,10);case"month":return sn(n,12);default:throw new Error("Invalid rangeType: ".concat(e))}}(A,r):void 0,z=function(){if(V.getFullYear()<0)return!0;var e=function(e,n){switch(e){case"century":return qe(n);case"decade":return Ge(n);case"year":return tn(n);case"month":return dn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}(A,r);return u&&u>=e}(),H=$&&function(){if(I.getFullYear()<0)return!0;var e=function(e,n){switch(e){case"decade":return Ge(n,-100);case"year":return tn(n,-10);case"month":return dn(n,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}(A,r);return u&&u>=e}(),K=d&&d<F,q=$&&d&&d<R;function B(e){var n=function(){switch(A){case"century":return function(e,n,t){return Bn(e,n,Be(t))}(c,s,e);case"decade":return Wn(c,s,e);case"year":return s(c,e);case"month":return i(c,e);default:throw new Error("Invalid view: ".concat(A,"."))}}();return h?h({date:e,label:n,locale:c||Le()||void 0,view:A}):n}return n.jsxs("div",{className:Un,children:[null!==S&&$?n.jsx("button",{"aria-label":N,className:"".concat(Un,"__arrow ").concat(Un,"__prev2-button"),disabled:H,onClick:function(){L(I,"prev2")},type:"button",children:S}):null,null!==E&&n.jsx("button",{"aria-label":D,className:"".concat(Un,"__arrow ").concat(Un,"__prev-button"),disabled:z,onClick:function(){L(V,"prev")},type:"button",children:E}),(t="".concat(Un,"__label"),n.jsxs("button",{"aria-label":f,"aria-live":m,className:t,disabled:!P,onClick:a,style:{flexGrow:1},type:"button",children:[n.jsx("span",{className:"".concat(t,"__labelText ").concat(t,"__labelText--from"),children:B(r)}),M?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"".concat(t,"__divider"),children:" – "}),n.jsx("span",{className:"".concat(t,"__labelText ").concat(t,"__labelText--to"),children:B(F)})]}):null]})),null!==j&&n.jsx("button",{"aria-label":w,className:"".concat(Un,"__arrow ").concat(Un,"__next-button"),disabled:K,onClick:function(){L(F,"next")},type:"button",children:j}),null!==y&&$?n.jsx("button",{"aria-label":g,className:"".concat(Un,"__arrow ").concat(Un,"__next2-button"),disabled:q,onClick:function(){L(R,"next2")},type:"button",children:y}):null]})}var Jn=function(){return Jn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},Jn.apply(this,arguments)},Xn=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function Qn(e){return"".concat(e,"%")}function et(t){var r=t.children,a=t.className,o=t.count,i=t.direction,l=t.offset,s=t.style,c=t.wrap,d=Xn(t,["children","className","count","direction","offset","style","wrap"]);return n.jsx("div",Jn({className:a,style:Jn({display:"flex",flexDirection:i,flexWrap:c?"wrap":"nowrap"},s)},d,{children:e.Children.map(r,function(n,t){var r=l&&0===t?Qn(100*l/o):null;return e.cloneElement(n,Jn(Jn({},n.props),{style:{flexBasis:Qn(100/o),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:r,marginInlineStart:r,marginInlineEnd:0}}))})}))}function nt(e,n){return n[0]<=e&&n[1]>=e}function tt(e,n){return nt(e[0],n)||nt(e[1],n)}function rt(e,n,t){var r=[];if(tt(n,e)){r.push(t);var a=nt(e[0],n),o=nt(e[1],n);a&&r.push("".concat(t,"Start")),o&&r.push("".concat(t,"End")),a&&o&&r.push("".concat(t,"BothEnds"))}return r}function at(e){if(!e)throw new Error("args is required");var n=e.value,t=e.date,r=e.hover,a="react-calendar__tile",o=[a];if(!t)return o;var i=new Date,l=function(){if(Array.isArray(t))return t;var n=e.dateType;if(!n)throw new Error("dateType is required when date is not an array of two dates");return qn(n,t)}();if(nt(i,l)&&o.push("".concat(a,"--now")),!n||!function(e){return Array.isArray(e)?null!==e[0]&&null!==e[1]:null!==e}(n))return o;var s,c,d=function(){if(Array.isArray(n))return n;var t=e.valueType;if(!t)throw new Error("valueType is required when value is not an array of two dates");return qn(t,n)}();c=l,(s=d)[0]<=c[0]&&s[1]>=c[1]?o.push("".concat(a,"--active")):tt(d,l)&&o.push("".concat(a,"--hasActive"));var u=rt(d,l,"".concat(a,"--range"));o.push.apply(o,u);var p=Array.isArray(n)?n:[n];if(r&&1===p.length){var f=rt(r>d[0]?[d[0],r]:[r,d[0]],l,"".concat(a,"--hover"));o.push.apply(o,f)}return o}function ot(e){for(var t=e.className,r=e.count,a=void 0===r?3:r,o=e.dateTransform,i=e.dateType,l=e.end,s=e.hover,c=e.offset,d=e.renderTile,u=e.start,p=e.step,f=void 0===p?1:p,m=e.value,h=e.valueType,v=[],g=u;g<=l;g+=f){var b=o(g);v.push(d({classes:at({date:b,dateType:i,hover:s,value:m,valueType:h}),date:b}))}return n.jsx(et,{className:t,count:a,offset:c,wrap:!0,children:v})}function it(t){var r=t.activeStartDate,a=t.children,o=t.classes,i=t.date,l=t.formatAbbr,s=t.locale,c=t.maxDate,d=t.maxDateTransform,u=t.minDate,p=t.minDateTransform,f=t.onClick,m=t.onMouseOver,h=t.style,v=t.tileClassName,g=t.tileContent,b=t.tileDisabled,y=t.view,x=e.useMemo(function(){return"function"==typeof v?v({activeStartDate:r,date:i,view:y}):v},[r,i,v,y]),w=e.useMemo(function(){return"function"==typeof g?g({activeStartDate:r,date:i,view:y}):g},[r,i,g,y]);return n.jsxs("button",{className:H(o,x),disabled:u&&p(u)>i||c&&d(c)<i||(null==b?void 0:b({activeStartDate:r,date:i,view:y})),onClick:f?function(e){return f(i,e)}:void 0,onFocus:m?function(){return m(i)}:void 0,onMouseOver:m?function(){return m(i)}:void 0,style:h,type:"button",children:[l?n.jsx("abbr",{"aria-label":l(s,i),children:a}):a,w]})}var lt=function(){return lt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},lt.apply(this,arguments)},st=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t},ct="react-calendar__century-view__decades__decade";function dt(e){var t=e.classes,r=void 0===t?[]:t,a=e.currentCentury,o=e.formatYear,i=void 0===o?Pn:o,l=st(e,["classes","currentCentury","formatYear"]),s=l.date,c=l.locale,d=[];return r&&d.push.apply(d,r),d.push(ct),Re(s).getFullYear()!==a&&d.push("".concat(ct,"--neighboringCentury")),n.jsx(it,lt({},l,{classes:d,maxDateTransform:Ue,minDateTransform:We,view:"century",children:Wn(c,i,s)}))}var ut=function(){return ut=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},ut.apply(this,arguments)},pt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function ft(e){var t=e.activeStartDate,r=e.hover,a=e.showNeighboringCentury,o=e.value,i=e.valueType,l=pt(e,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),s=$e(Re(t)),c=s+(a?119:99);return n.jsx(ot,{className:"react-calendar__century-view__decades",dateTransform:We,dateType:"decade",end:c,hover:r,renderTile:function(e){var r=e.date,a=pt(e,["date"]);return n.jsx(dt,ut({},l,a,{activeStartDate:t,currentCentury:s,date:r}),r.getTime())},start:s,step:10,value:o,valueType:i})}var mt=function(){return mt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},mt.apply(this,arguments)};function ht(e){return n.jsx("div",{className:"react-calendar__century-view",children:n.jsx(ft,mt({},e))})}var vt=function(){return vt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},vt.apply(this,arguments)},gt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t},bt="react-calendar__decade-view__years__year";function yt(e){var t=e.classes,r=void 0===t?[]:t,a=e.currentDecade,o=e.formatYear,i=void 0===o?Pn:o,l=gt(e,["classes","currentDecade","formatYear"]),s=l.date,c=l.locale,d=[];return r&&d.push.apply(d,r),d.push(bt),We(s).getFullYear()!==a&&d.push("".concat(bt,"--neighboringDecade")),n.jsx(it,vt({},l,{classes:d,maxDateTransform:nn,minDateTransform:Xe,view:"decade",children:i(c,s)}))}var xt=function(){return xt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},xt.apply(this,arguments)},wt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function Ct(e){var t=e.activeStartDate,r=e.hover,a=e.showNeighboringDecade,o=e.value,i=e.valueType,l=wt(e,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),s=$e(We(t)),c=s+(a?11:9);return n.jsx(ot,{className:"react-calendar__decade-view__years",dateTransform:Xe,dateType:"year",end:c,hover:r,renderTile:function(e){var r=e.date,a=wt(e,["date"]);return n.jsx(yt,xt({},l,a,{activeStartDate:t,currentDecade:s,date:r}),r.getTime())},start:s,value:o,valueType:i})}var jt=function(){return jt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},jt.apply(this,arguments)};function kt(e){return n.jsx("div",{className:"react-calendar__decade-view",children:n.jsx(Ct,jt({},e))})}var Nt=function(){return Nt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},Nt.apply(this,arguments)},_t=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t},St=function(e,n,t){if(t||2===arguments.length)for(var r,a=0,o=n.length;a<o;a++)!r&&a in n||(r||(r=Array.prototype.slice.call(n,0,a)),r[a]=n[a]);return e.concat(r||Array.prototype.slice.call(n))};function Ot(e){var t=e.classes,r=void 0===t?[]:t,a=e.formatMonth,o=void 0===a?En:a,i=e.formatMonthYear,l=void 0===i?Ln:i,s=_t(e,["classes","formatMonth","formatMonthYear"]),c=s.date,d=s.locale;return n.jsx(it,Nt({},s,{classes:St(St([],r,!0),["react-calendar__year-view__months__month"],!1),formatAbbr:l,maxDateTransform:cn,minDateTransform:on,view:"year",children:o(d,c)}))}var Dt=function(){return Dt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},Dt.apply(this,arguments)},Tt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function Et(e){var t=e.activeStartDate,r=e.hover,a=e.value,o=e.valueType,i=Tt(e,["activeStartDate","hover","value","valueType"]),l=$e(t);return n.jsx(ot,{className:"react-calendar__year-view__months",dateTransform:function(e){var n=new Date;return n.setFullYear(l,e,1),on(n)},dateType:"month",end:11,hover:r,renderTile:function(e){var r=e.date,a=Tt(e,["date"]);return n.jsx(Ot,Dt({},i,a,{activeStartDate:t,date:r}),r.getTime())},start:0,value:a,valueType:o})}var Lt=function(){return Lt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},Lt.apply(this,arguments)};function Mt(e){return n.jsx("div",{className:"react-calendar__year-view",children:n.jsx(Et,Lt({},e))})}var At=function(){return At=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},At.apply(this,arguments)},Pt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t},$t="react-calendar__month-view__days__day";function Vt(e){var t=e.calendarType,r=e.classes,a=void 0===r?[]:r,o=e.currentMonthIndex,i=e.formatDay,l=void 0===i?Dn:i,s=e.formatLongDate,c=void 0===s?Tn:s,d=Pt(e,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),u=d.date,p=d.locale,f=[];return a&&f.push.apply(f,a),f.push($t),Zn(u,t)&&f.push("".concat($t,"--weekend")),u.getMonth()!==o&&f.push("".concat($t,"--neighboringMonth")),n.jsx(it,At({},d,{classes:f,formatAbbr:c,maxDateTransform:hn,minDateTransform:pn,view:"month",children:l(p,u)}))}var It=function(){return It=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},It.apply(this,arguments)},Ft=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function Rt(e){var t=e.activeStartDate,r=e.calendarType,a=e.hover,o=e.showFixedNumberOfWeeks,i=e.showNeighboringMonth,l=e.value,s=e.valueType,c=Ft(e,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),d=$e(t),u=Ve(t),p=o||i,f=Fn(t,r),m=p?0:f,h=1+(p?-f:0),v=function(){if(o)return h+42-1;var e=gn(t);if(i){var n=new Date;return n.setFullYear(d,u,e),n.setHours(0,0,0,0),e+(7-Fn(n,r)-1)}return e}();return n.jsx(ot,{className:"react-calendar__month-view__days",count:7,dateTransform:function(e){var n=new Date;return n.setFullYear(d,u,e),pn(n)},dateType:"day",hover:a,end:v,renderTile:function(e){var a=e.date,o=Ft(e,["date"]);return n.jsx(Vt,It({},c,o,{activeStartDate:t,calendarType:r,currentMonthIndex:u,date:a}),a.getTime())},offset:m,start:h,value:l,valueType:s})}var zt="react-calendar__month-view__weekdays",Ht="".concat(zt,"__weekday");function Kt(e){for(var t=e.calendarType,r=e.formatShortWeekday,a=void 0===r?Mn:r,o=e.formatWeekday,i=void 0===o?An:o,l=e.locale,s=e.onMouseLeave,c=on(new Date),d=$e(c),u=Ve(c),p=[],f=1;f<=7;f+=1){var m=new Date(d,u,f-Fn(c,t)),h=i(l,m);p.push(n.jsx("div",{className:H(Ht,Yn(m)&&"".concat(Ht,"--current"),Zn(m,t)&&"".concat(Ht,"--weekend")),children:n.jsx("abbr",{"aria-label":h,title:h,children:a(l,m).replace(".","")})},f))}return n.jsx(et,{className:zt,count:7,onFocus:s,onMouseOver:s,children:p})}var qt=function(){return qt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},qt.apply(this,arguments)},Bt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t},Wt="react-calendar__tile";function Yt(e){var t=e.onClickWeekNumber,r=e.weekNumber,a=n.jsx("span",{children:r});if(t){var o=e.date,i=e.onClickWeekNumber,l=e.weekNumber,s=Bt(e,["date","onClickWeekNumber","weekNumber"]);return n.jsx("button",qt({},s,{className:Wt,onClick:function(e){return i(l,o,e)},type:"button",children:a}))}e.date,e.onClickWeekNumber,e.weekNumber;s=Bt(e,["date","onClickWeekNumber","weekNumber"]);return n.jsx("div",qt({},s,{className:Wt,children:a}))}function Zt(e){var t=e.activeStartDate,r=e.calendarType,a=e.onClickWeekNumber,o=e.onMouseLeave,i=e.showFixedNumberOfWeeks,l=function(){if(i)return 6;var e=gn(t)-(7-Fn(t,r));return 1+Math.ceil(e/7)}(),s=function(){for(var e=$e(t),n=Ve(t),a=Fe(t),o=[],i=0;i<l;i+=1)o.push(Rn(new Date(e,n,a+7*i),r));return o}(),c=s.map(function(e){return function(e,n){void 0===n&&(n=kn);var t,r=n===wn?wn:kn,a=Rn(e,n),o=$e(e)+1;do{t=Rn(new Date(o,0,r===kn?4:1),n),o-=1}while(e<t);return Math.round((a.getTime()-t.getTime())/6048e5)+1}(e,r)});return n.jsx(et,{className:"react-calendar__month-view__weekNumbers",count:l,direction:"column",onFocus:o,onMouseOver:o,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0},children:c.map(function(e,t){var r=s[t];if(!r)throw new Error("date is not defined");return n.jsx(Yt,{date:r,onClickWeekNumber:a,weekNumber:e},e)})})}var Ut=function(){return Ut=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},Ut.apply(this,arguments)},Gt=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};function Jt(e){var t=e.activeStartDate,r=e.locale,a=e.onMouseLeave,o=e.showFixedNumberOfWeeks,i=e.calendarType,l=void 0===i?function(e){if(e)for(var n=0,t=Object.entries(Nn);n<t.length;n++){var r=t[n],a=r[0];if(r[1].includes(e))return a}return kn}(r):i,s=e.formatShortWeekday,c=e.formatWeekday,d=e.onClickWeekNumber,u=e.showWeekNumbers,p=Gt(e,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);var f="react-calendar__month-view";return n.jsx("div",{className:H(f,u?"".concat(f,"--weekNumbers"):""),children:n.jsxs("div",{style:{display:"flex",alignItems:"flex-end"},children:[u?n.jsx(Zt,{activeStartDate:t,calendarType:l,onClickWeekNumber:d,onMouseLeave:a,showFixedNumberOfWeeks:o}):null,n.jsxs("div",{style:{flexGrow:1,width:"100%"},children:[n.jsx(Kt,{calendarType:l,formatShortWeekday:s,formatWeekday:c,locale:r,onMouseLeave:a}),n.jsx(Rt,Ut({calendarType:l},p))]})]})})}var Xt=function(){return Xt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},Xt.apply(this,arguments)},Qt="react-calendar",er=["century","decade","year","month"],nr=["decade","year","month","day"],tr=new Date;tr.setFullYear(1,0,1),tr.setHours(0,0,0,0);var rr=new Date(864e13);function ar(e){return e instanceof Date?e:new Date(e)}function or(e,n){return er.slice(er.indexOf(e),er.indexOf(n)+1)}function ir(e,n,t){return e&&function(e,n,t){return-1!==or(n,t).indexOf(e)}(e,n,t)?e:t}function lr(e){var n=er.indexOf(e);return nr[n]}function sr(e,n){var t=e.value,r=e.minDate,a=e.maxDate,o=e.maxDetail,i=function(e,n){var t=Array.isArray(e)?e[n]:e;if(!t)return null;var r=ar(t);if(Number.isNaN(r.getTime()))throw new Error("Invalid date: ".concat(e));return r}(t,n);if(!i)return null;var l=lr(o);return function(e,n,t){return n&&n>e?n:t&&t<e?t:e}(function(){switch(n){case 0:return zn(l,i);case 1:return Kn(l,i);default:throw new Error("Invalid index value: ".concat(n))}}(),r,a)}var cr=function(e){return sr(e,0)},dr=function(e){return sr(e,1)},ur=function(e){return[cr,dr].map(function(n){return n(e)})};function pr(e){var n=e.maxDate,t=e.maxDetail,r=e.minDate,a=e.minDetail,o=e.value;return zn(ir(e.view,a,t),cr({value:o,minDate:r,maxDate:n,maxDetail:t})||new Date)}function fr(e){return e&&(!Array.isArray(e)||1===e.length)}function mr(e,n){return e instanceof Date&&n instanceof Date&&e.getTime()===n.getTime()}var hr,vr,gr=e.forwardRef(function(t,r){var a,o=t.activeStartDate,i=t.allowPartialRange,l=t.calendarType,s=t.className,c=t.defaultActiveStartDate,d=t.defaultValue,u=t.defaultView,p=t.formatDay,f=t.formatLongDate,m=t.formatMonth,h=t.formatMonthYear,v=t.formatShortWeekday,g=t.formatWeekday,b=t.formatYear,y=t.goToRangeStartOnSelect,x=void 0===y||y,w=t.inputRef,C=t.locale,j=t.maxDate,k=void 0===j?rr:j,N=t.maxDetail,_=void 0===N?"month":N,S=t.minDate,O=void 0===S?tr:S,D=t.minDetail,T=void 0===D?"century":D,E=t.navigationAriaLabel,L=t.navigationAriaLive,M=t.navigationLabel,A=t.next2AriaLabel,P=t.next2Label,$=t.nextAriaLabel,V=t.nextLabel,I=t.onActiveStartDateChange,F=t.onChange,R=t.onClickDay,z=t.onClickDecade,K=t.onClickMonth,q=t.onClickWeekNumber,B=t.onClickYear,W=t.onDrillDown,Y=t.onDrillUp,Z=t.onViewChange,U=t.prev2AriaLabel,G=t.prev2Label,J=t.prevAriaLabel,X=t.prevLabel,Q=t.returnValue,ee=void 0===Q?"start":Q,ne=t.selectRange,te=t.showDoubleView,re=t.showFixedNumberOfWeeks,ae=t.showNavigation,oe=void 0===ae||ae,ie=t.showNeighboringCentury,le=t.showNeighboringDecade,se=t.showNeighboringMonth,ce=void 0===se||se,de=t.showWeekNumbers,ue=t.tileClassName,pe=t.tileContent,fe=t.tileDisabled,me=t.value,he=t.view,ve=e.useState(c),ge=ve[0],be=ve[1],ye=e.useState(null),xe=ye[0],we=ye[1],Ce=e.useState(Array.isArray(d)?d.map(function(e){return null!==e?ar(e):null}):null!=d?ar(d):null),je=Ce[0],ke=Ce[1],Ne=e.useState(u),_e=Ne[0],Se=Ne[1],Oe=o||ge||function(e){var n=e.activeStartDate,t=e.defaultActiveStartDate,r=e.defaultValue,a=e.defaultView,o=e.maxDate,i=e.maxDetail,l=e.minDate,s=e.minDetail,c=e.value,d=e.view,u=ir(d,s,i),p=n||t;return p?zn(u,p):pr({maxDate:o,maxDetail:i,minDate:l,minDetail:s,value:c||r,view:d||a})}({activeStartDate:o,defaultActiveStartDate:c,defaultValue:d,defaultView:u,maxDate:k,maxDetail:_,minDate:O,minDetail:T,value:me,view:he}),De=(a=ne&&fr(je)?je:void 0!==me?me:je)?Array.isArray(a)?a.map(function(e){return null!==e?ar(e):null}):null!==a?ar(a):null:null,Te=lr(_),Ee=ir(he||_e,T,_),Le=or(T,_),Me=ne?xe:null,Ae=Le.indexOf(Ee)<Le.length-1,Pe=Le.indexOf(Ee)>0,$e=e.useCallback(function(e){return function(){switch(ee){case"start":return cr;case"end":return dr;case"range":return ur;default:throw new Error("Invalid returnValue.")}}()({maxDate:k,maxDetail:_,minDate:O,value:e})},[k,_,O,ee]),Ve=e.useCallback(function(e,n){be(e);var t={action:n,activeStartDate:e,value:De,view:Ee};I&&!mr(Oe,e)&&I(t)},[Oe,I,De,Ee]),Ie=e.useCallback(function(e,n){var t=function(){switch(Ee){case"century":return z;case"decade":return B;case"year":return K;case"month":return R;default:throw new Error("Invalid view: ".concat(Ee,"."))}}();t&&t(e,n)},[R,z,K,B,Ee]),Fe=e.useCallback(function(e,n){if(Ae){Ie(e,n);var t=Le[Le.indexOf(Ee)+1];if(!t)throw new Error("Attempted to drill down from the lowest view.");be(e),Se(t);var r={action:"drillDown",activeStartDate:e,value:De,view:t};I&&!mr(Oe,e)&&I(r),Z&&Ee!==t&&Z(r),W&&W(r)}},[Oe,Ae,I,Ie,W,Z,De,Ee,Le]),Re=e.useCallback(function(){if(Pe){var e=Le[Le.indexOf(Ee)-1];if(!e)throw new Error("Attempted to drill up from the highest view.");var n=zn(e,Oe);be(n),Se(e);var t={action:"drillUp",activeStartDate:n,value:De,view:e};I&&!mr(Oe,n)&&I(t),Z&&Ee!==e&&Z(t),Y&&Y(t)}},[Oe,Pe,I,Y,Z,De,Ee,Le]),ze=e.useCallback(function(e,n){var t=De;Ie(e,n);var r,a=ne&&!fr(t);if(ne)if(a)r=zn(Te,e);else{if(!t)throw new Error("previousValue is required");if(Array.isArray(t))throw new Error("previousValue must not be an array");r=function(e,n,t){var r=[n,t].sort(function(e,n){return e.getTime()-n.getTime()});return[zn(e,r[0]),Kn(e,r[1])]}(Te,t,e)}else r=$e(e);var o=!ne||a||x?pr({maxDate:k,maxDetail:_,minDate:O,minDetail:T,value:r,view:Ee}):null;n.persist(),be(o),ke(r);var l={action:"onChange",activeStartDate:o,value:r,view:Ee};if(I&&!mr(Oe,o)&&I(l),F)if(ne)if(fr(r)){if(i){if(Array.isArray(r))throw new Error("value must not be an array");F([r||null,null],n)}}else F(r||null,n);else F(r||null,n)},[Oe,i,$e,x,k,_,O,T,I,F,Ie,ne,De,Te,Ee]);function He(e){we(e)}function Ke(){we(null)}function qe(e){var t={activeStartDate:e?Hn(Ee,Oe):zn(Ee,Oe),hover:Me,locale:C,maxDate:k,minDate:O,onClick:Ae?Fe:ze,onMouseOver:ne?He:void 0,tileClassName:ue,tileContent:pe,tileDisabled:fe,value:De,valueType:Te};switch(Ee){case"century":return n.jsx(ht,Xt({formatYear:b,showNeighboringCentury:ie},t));case"decade":return n.jsx(kt,Xt({formatYear:b,showNeighboringDecade:le},t));case"year":return n.jsx(Mt,Xt({formatMonth:m,formatMonthYear:h},t));case"month":return n.jsx(Jt,Xt({calendarType:l,formatDay:p,formatLongDate:f,formatShortWeekday:v,formatWeekday:g,onClickWeekNumber:q,onMouseLeave:ne?Ke:void 0,showFixedNumberOfWeeks:void 0!==re?re:te,showNeighboringMonth:ce,showWeekNumbers:de},t));default:throw new Error("Invalid view: ".concat(Ee,"."))}}e.useImperativeHandle(r,function(){return{activeStartDate:Oe,drillDown:Fe,drillUp:Re,onChange:ze,setActiveStartDate:Ve,value:De,view:Ee}},[Oe,Fe,Re,ze,Ve,De,Ee]);var Be=Array.isArray(De)?De:[De];return n.jsxs("div",{className:H(Qt,ne&&1===Be.length&&"".concat(Qt,"--selectRange"),te&&"".concat(Qt,"--doubleView"),s),ref:w,children:[oe?n.jsx(Gn,{activeStartDate:Oe,drillUp:Re,formatMonthYear:h,formatYear:b,locale:C,maxDate:k,minDate:O,navigationAriaLabel:E,navigationAriaLive:L,navigationLabel:M,next2AriaLabel:A,next2Label:P,nextAriaLabel:$,nextLabel:V,prev2AriaLabel:U,prev2Label:G,prevAriaLabel:J,prevLabel:X,setActiveStartDate:Ve,showDoubleView:te,view:Ee,views:Le}):null,n.jsxs("div",{className:"".concat(Qt,"__viewContainer"),onBlur:ne?Ke:void 0,onMouseLeave:ne?Ke:void 0,children:[qe(),te?qe(!0):null]})]})});function br(e){return e.getBoundingClientRect()}function yr(e,n){return{get collidedTop(){return br(e).top<br(n).top},get collidedBottom(){return br(e).bottom>br(n).bottom},get collidedLeft(){return br(e).left<br(n).left},get collidedRight(){return br(e).right>br(n).right},get overflowTop(){return br(n).top-br(e).top},get overflowBottom(){return br(e).bottom-br(n).bottom},get overflowLeft(){return br(n).left-br(e).left},get overflowRight(){return br(e).right-br(n).right}}}var xr=function(){if(vr)return hr;vr=1;var e=function(){};if("production"!==process.env.NODE_ENV){var n=function(e,n){var t=arguments.length;n=new Array(t>1?t-1:0);for(var r=1;r<t;r++)n[r-1]=arguments[r];var a=0,o="Warning: "+e.replace(/%s/g,function(){return n[a++]});"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};e=function(e,t,r){var a=arguments.length;r=new Array(a>2?a-2:0);for(var o=2;o<a;o++)r[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||n.apply(null,[t].concat(r))}}return hr=e}(),wr=r(xr),Cr=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t};const jr="undefined"!=typeof window&&"MutationObserver"in window;function kr(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Nr({axis:e,container:n,element:t,invertAxis:r,scrollContainer:a,secondary:o,spacing:i}){const l=window.getComputedStyle(t),s=n.parentElement;if(!s)return;const c=yr(s,a),d=yr(s,document.documentElement),u="x"===e,p=u?"left":"top",f=u?"right":"bottom",m=u?"width":"height",h=`overflow${kr(p)}`,v=`overflow${kr(f)}`,g=`scroll${kr(p)}`,b=kr(m),y=`offset${b}`,x=`client${b}`,w=`min-${m}`,C=a[y]-a[x],j="object"==typeof i?i[p]:i;let k=-Math.max(c[h],d[h]+document.documentElement[g])-j;const N="object"==typeof i?i[f]:i;let _=-Math.max(c[v],d[v]-document.documentElement[g])-N-C;o&&(k+=s[x],_+=s[x]);const S=t[y];function O(){t.style[p]="auto",t.style[f]=o?"0":"100%"}function D(){t.style[p]=o?"0":"100%",t.style[f]="auto"}function T(e,n){const t=S<=e;return t&&n(),t}function E(){return T(k,O)}function L(){return T(_,D)}let M;M=r?E()||L():L()||E(),M||function(){const e=k>_,n=l.getPropertyValue(w),r=n?Number.parseInt(n,10):null;function a(e){wr(!r||e>=r,`<Fit />'s child will not fit anywhere with its current ${w} of ${r}px.`);const n=Math.max(e,r||0);wr(!1,`<Fit />'s child needed to have its ${m} decreased to ${n}px.`),t.style[m]=`${n}px`}e?(a(k),O()):(a(_),D())}()}function _r(e){const{invertAxis:n,invertSecondaryAxis:t}=e,r=Cr(e,["invertAxis","invertSecondaryAxis"]);!function(e){Nr(e)}(Object.assign(Object.assign({},r),{invertAxis:n})),function(e){Nr(Object.assign(Object.assign({},e),{axis:"x"===e.axis?"y":"x",secondary:!0}))}(Object.assign(Object.assign({},r),{invertAxis:t}))}function Sr({children:t,invertAxis:r,invertSecondaryAxis:a,mainAxis:o="y",spacing:i=8}){const l=e.useRef(void 0),s=e.useRef(void 0),c=e.useRef(void 0),d=e.useRef(void 0),u=e.useRef(void 0),p=e.useCallback(()=>{if(!u.current||!l.current||!s.current)return;const e=s.current.clientWidth,n=s.current.clientHeight;if(c.current===e&&d.current===n)return;c.current=e,d.current=n;const t=l.current.parentElement;if(!t)return;const p=window.getComputedStyle(s.current),{position:f}=p;"absolute"!==f&&(s.current.style.position="absolute");const m=window.getComputedStyle(t),{position:h}=m;"relative"!==h&&"absolute"!==h&&(t.style.position="relative"),_r({axis:o,container:l.current,element:s.current,invertAxis:r,invertSecondaryAxis:a,scrollContainer:u.current,spacing:i})},[r,a,o,i]),f=e.Children.only(t);function m(e){e&&e instanceof HTMLElement&&(s.current=e,u.current=function(e){let n=e.parentElement;for(;n;){const{overflow:e}=window.getComputedStyle(n);if(e.split(" ").every(e=>"auto"===e||"scroll"===e))return n;n=n.parentElement}return document.documentElement}(e))}return e.useEffect(()=>{if(p(),jr&&s.current){new MutationObserver(function(){p()}).observe(s.current,{attributes:!0,attributeFilter:["class","style"]})}},[p]),n.jsx("span",{ref:e=>{if(!e)return;l.current=e;m(null==e?void 0:e.firstElementChild)},style:{display:"contents"},children:f})}var Or,Dr=["normal","small-caps"];function Tr(e){if(!e)return"";var n=window.getComputedStyle(e);if(n.font)return n.font;if(!(""!==n.fontFamily))return"";var t=Dr.includes(n.fontVariant)?n.fontVariant:"normal";return"".concat(n.fontStyle," ").concat(t," ").concat(n.fontWeight," ").concat(n.fontSize," / ").concat(n.lineHeight," ").concat(n.fontFamily)}function Er(e){if("undefined"==typeof document||!e)return null;var n=Tr(e),t=function(e,n){var t=(Or||(Or=document.createElement("canvas"))).getContext("2d");if(!t)return null;t.font=n;var r=t.measureText(e).width;return Math.ceil(r)}(e.value||e.placeholder,n);return null===t?null:(e.style.width="".concat(t,"px"),t)}const Lr="undefined"!=typeof window,Mr=Lr?e.useLayoutEffect:e.useEffect,Ar=Lr&&/(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent),Pr=Lr&&/Firefox/.test(navigator.userAgent);function $r(e){const{target:n}=e;Ar?requestAnimationFrame(()=>n.select()):n.select()}function Vr(e){if(null!==e)return function(n){if(Pr)return;const{key:t,target:r}=n,{value:a}=r,o=1===t.length&&/\d/.test(t),i=function(e){if(e&&"selectionStart"in e&&null!==e.selectionStart&&"selectionEnd"in e&&null!==e.selectionEnd)return e.value.slice(e.selectionStart,e.selectionEnd);if("getSelection"in window){const e=window.getSelection();return null==e?void 0:e.toString()}return null}(r);o&&(i||a.length<e)||n.preventDefault()}}function Ir({ariaLabel:e,autoFocus:t,className:r,disabled:a,inputRef:o,max:i,min:l,name:s,nameForClass:c,onChange:d,onKeyDown:u,onKeyUp:p,placeholder:f="--",required:m,showLeadingZeros:h,step:v,value:g}){Mr(()=>{var e;o&&o.current&&(Er(o.current),e=o.current,"complete"!==document.readyState&&window.addEventListener("load",function(){Er(e)}),function(e){if(!document.fonts)return;const n=Tr(e);if(!n)return;document.fonts.check(n)||document.fonts.addEventListener("loadingdone",function(){Er(e)})}(o.current))},[o,g]);const b=h&&g&&Number(g)<10&&("0"===g||!g.toString().startsWith("0")),y=i?i.toString().length:null;return n.jsxs(n.Fragment,{children:[b?n.jsx("span",{className:`${r}__leadingZero`,children:"0"}):null,n.jsx("input",{"aria-label":e,autoComplete:"off",autoFocus:t,className:H(`${r}__input`,`${r}__${c||s}`,b&&`${r}__input--hasLeadingZero`),"data-input":"true",disabled:a,inputMode:"numeric",max:i,min:l,name:s,onChange:d,onFocus:$r,onKeyDown:u,onKeyPress:Vr(y),onKeyUp:e=>{Er(e.target),p&&p(e)},placeholder:f,ref:o,required:m,step:v,type:"number",value:null!==g?g:""})]})}function Fr(e){return null!==e&&!1!==e&&!Number.isNaN(Number(e))}function Rr(...e){return Math.min(...e.filter(Fr))}function zr(...e){return Math.max(...e.filter(Fr))}function Hr({maxDate:e,minDate:t,month:r,year:a,...o}){function i(e){return a===$e(e).toString()&&r===Ie(e).toString()}const l=Rr(r?gn(new Date(Number(a),Number(r)-1,1)):31,e&&i(e)&&Fe(e)),s=zr(1,t&&i(t)&&Fe(t));return n.jsx(Ir,{max:l,min:s,name:"day",...o})}function Kr({maxDate:e,minDate:t,year:r,...a}){function o(e){return e&&r===$e(e).toString()}const i=Rr(12,e&&o(e)&&Ie(e)),l=zr(1,t&&o(t)&&Ie(t));return n.jsx(Ir,{max:i,min:l,name:"month",...a})}const qr=new Map;function Br(e){return function(n,t){const r=n||Le();qr.has(r)||qr.set(r,new Map);const a=qr.get(r);return a.has(e)||a.set(e,new Intl.DateTimeFormat(r||void 0,e).format),a.get(e)(t)}}function Wr(e){return(n,t)=>Br(e)(n,function(e){const n=new Date(e);return new Date(n.setHours(12))}(t))}const Yr=Wr({month:"long"}),Zr=Wr({month:"short"});function Ur({ariaLabel:e,autoFocus:t,className:r,disabled:a,inputRef:o,locale:i,maxDate:l,minDate:s,onChange:c,onKeyDown:d,placeholder:u="--",required:p,short:f,value:m,year:h}){function v(e){return e&&h===$e(e).toString()}const g=Rr(12,l&&v(l)&&Ie(l)),b=zr(1,s&&v(s)&&Ie(s)),y=[...Array(12)].map((e,n)=>new Date(2019,n,1)),x="month",w=f?Zr:Yr;return n.jsxs("select",{"aria-label":e,autoFocus:t,className:H(`${r}__input`,`${r}__${x}`),"data-input":"true","data-select":"true",disabled:a,name:x,onChange:c,onKeyDown:d,ref:o,required:p,value:null!==m?m:"",children:[!m&&n.jsx("option",{value:"",children:u}),y.map(e=>{const t=Ie(e),r=t<b||t>g;return n.jsx("option",{disabled:r,value:t,children:w(i,e)},t)})]})}function Gr({ariaLabel:e,disabled:t,maxDate:r,minDate:a,name:o,onChange:i,required:l,value:s,valueType:c}){const d=(()=>{switch(c){case"decade":case"year":return"number";case"month":return"month";case"day":return"date";default:throw new Error("Invalid valueType")}})(),u=(()=>{switch(c){case"decade":case"year":return $e;case"month":return yn;case"day":return xn;default:throw new Error("Invalid valueType")}})();return n.jsx("input",{"aria-label":e,disabled:t,hidden:!0,max:r?u(r):void 0,min:a?u(a):void 0,name:o,onChange:i,onFocus:function(e){e.stopPropagation()},required:l,style:{visibility:"hidden",position:"absolute",zIndex:"-999"},type:d,value:s?u(s):""})}function Jr({maxDate:e,minDate:t,placeholder:r="----",valueType:a,...o}){const i=Rr(275760,e&&$e(e)),l=zr(1,t&&$e(t)),s="century"===a?10:1;return n.jsx(Ir,{max:i,min:l,name:"year",placeholder:r,step:s,...o})}function Xr({children:e}){return n.jsx("span",{className:"react-date-picker__inputGroup__divider",children:e})}const Qr={},ea=new Date;ea.setFullYear(1,0,1),ea.setHours(0,0,0,0);const na=new Date(864e13),ta=["century","decade","year","month"],ra=[...ta.slice(1),"day"];function aa(e){const n=ta.indexOf(e);return ra[n]}function oa(e,n){const t=Array.isArray(e)?e[n]:e;if(!t)return null;const r=function(e){return e instanceof Date?e:new Date(e)}(t);if(Number.isNaN(r.getTime()))throw new Error(`Invalid date: ${e}`);return r}function ia({value:e,minDate:n,maxDate:t,maxDetail:r},a){const o=oa(e,a);if(!o)return null;const i=aa(r);return function(e,n,t){return n&&n>e?n:t&&t<e?t:e}((()=>{switch(a){case 0:return function(e,n){switch(e){case"decade":return We(n);case"year":return Xe(n);case"month":return on(n);case"day":return pn(n);default:throw new Error(`Invalid rangeType: ${e}`)}}(i,o);case 1:return function(e,n){switch(e){case"decade":return Ue(n);case"year":return nn(n);case"month":return cn(n);case"day":return hn(n);default:throw new Error(`Invalid rangeType: ${e}`)}}(i,o);default:throw new Error(`Invalid index value: ${a}`)}})(),n,t)}const la=e=>ia(e,0),sa=e=>ia(e,1),ca=e=>[la,sa].map(n=>n(e));function da(e){return"true"===e.dataset.input}function ua(e,n){let t=e;do{t=t[n]}while(t&&!da(t));return t}function pa(e){e&&e.focus()}function fa({autoFocus:t,className:r,dayAriaLabel:a,dayPlaceholder:o,disabled:i,format:l,isCalendarOpen:s=null,locale:c,maxDate:d,maxDetail:u="month",minDate:p,monthAriaLabel:f,monthPlaceholder:m,name:h="date",nativeInputAriaLabel:v,onChange:g,onInvalidChange:b,required:y,returnValue:x="start",showLeadingZeros:w,value:C,yearAriaLabel:j,yearPlaceholder:k}){const[N,_]=e.useState(null),[S,O]=e.useState(null),[D,T]=e.useState(null),[E,L]=e.useState(null),M=e.useRef(null),A=e.useRef(null),P=e.useRef(null),$=e.useRef(null),[V,I]=e.useState(s),F=e.useRef(void 0);e.useEffect(()=>{I(s)},[s]),e.useEffect(()=>{const e=la({value:C,minDate:p,maxDate:d,maxDetail:u});e?(_($e(e).toString()),O(Ie(e).toString()),T(Fe(e).toString()),L(e)):(_(null),O(null),T(null),L(null))},[C,p,d,u,V]);const R=aa(u),z=(()=>{const e=ta.indexOf(u);return Br(Qr[e]||(()=>{const n={year:"numeric"};return e>=2&&(n.month="numeric"),e>=3&&(n.day="numeric"),Qr[e]=n,n})())})();const H=l||(()=>{const e=new Date(2017,11,11),n=z(c,e),t=["y","M","d"];let r=n;return["year","month","day"].forEach((n,a)=>{const o=function(e,n){return Br(Qr[e]||(()=>{const n={[e]:"numeric"};return Qr[e]=n,n})())(c,n).match(/\d{1,}/)}(n,e);if(o){const e=o[0],n=t[a];r=r.replace(e,n)}}),r=r.replace("17","y"),r})(),K=(()=>{const e=H.match(/[^0-9a-z]/i);return e?e[0]:null})();function q(){if(!g)return;const e=[$.current,A.current,P.current,M.current].filter(function(e){return Boolean(e)}),n={};for(const t of e)n[t.name]="valueAsNumber"in t?t.valueAsNumber:Number(t.value);if(e.every(e=>!e.value))return void g(null,!1);const t=e.every(e=>e.value),r=e.every(e=>e.validity.valid);if(t&&r){const e=Number(n.year||(new Date).getFullYear()),t=Number(n.month||1)-1,r=Number(n.day||1),a=new Date;a.setFullYear(e,t,r),a.setHours(0,0,0,0);const o=function(e){return(()=>{switch(x){case"start":return la;case"end":return sa;case"range":return ca;default:throw new Error("Invalid returnValue.")}})()({value:e,minDate:p,maxDate:d,maxDetail:u})}(a);return void g(o,!1)}b&&b()}function B(e){const{value:n}=e.target;if(!g)return;const t=(()=>{if(!n)return null;const[e,t,r]=n.split("-"),a=Number(e),o=Number(t)-1||0,i=Number(r)||1,l=new Date;return l.setFullYear(a,o,i),l.setHours(0,0,0,0),l})();g(t,!1)}const W={className:r,disabled:i,maxDate:d||na,minDate:p||ea,onChange:function(e){const{name:n,value:t}=e.target;switch(n){case"year":_(t);break;case"month":O(t);break;case"day":T(t)}q()},onKeyDown:function(e){switch(F.current=e.key,e.key){case"ArrowLeft":case"ArrowRight":case K:{e.preventDefault();const{target:n}=e;pa(ua(n,"ArrowLeft"===e.key?"previousElementSibling":"nextElementSibling"));break}}},onKeyUp:function(e){const{key:n,target:t}=e;if(!(F.current===n))return;if(!!Number.isNaN(Number(n)))return;const r=t.getAttribute("max");if(!r)return;const{value:a}=t;if(10*Number(a)>Number(r)||a.length>=r.length){pa(ua(t,"nextElementSibling"))}},required:Boolean(y||V)};function Y(e,r){if(e&&e.length>2)throw new Error(`Unsupported token: ${e}`);const i=e&&2===e.length;return n.jsx(Hr,{...W,ariaLabel:a,autoFocus:0===r&&t,inputRef:$,month:S,placeholder:o,showLeadingZeros:i||w,value:D,year:N},"day")}function Z(e,r){if(e&&e.length>4)throw new Error(`Unsupported token: ${e}`);if(e.length>2)return n.jsx(Ur,{...W,ariaLabel:f,autoFocus:0===r&&t,inputRef:P,locale:c,placeholder:m,short:3===e.length,value:S,year:N},"month");const a=e&&2===e.length;return n.jsx(Kr,{...W,ariaLabel:f,autoFocus:0===r&&t,inputRef:A,placeholder:m,showLeadingZeros:a||w,value:S,year:N},"month")}function U(e,r){return n.jsx(Jr,{...W,ariaLabel:j,autoFocus:0===r&&t,inputRef:M,placeholder:k,value:N,valueType:R},"year")}return n.jsxs("div",{className:r,onClick:function(e){if(e.target===e.currentTarget){pa(e.target.children[1])}},children:[n.jsx(Gr,{ariaLabel:v,disabled:i,maxDate:d||na,minDate:p||ea,name:h,onChange:B,required:y,value:E,valueType:R},"date"),function(e,t,r){const a=[],o=new RegExp(Object.keys(t).map(e=>`${e}+`).join("|"),"g"),i=e.match(o);return e.split(o).reduce((e,o,l)=>{const s=o&&n.jsx(Xr,{children:o},`separator_${l}`);e.push(s);const c=null==i?void 0:i[l];if(c){const n=t[c]||t[Object.keys(t).find(e=>c.match(e))];if(!n)return e;!r&&a.includes(n)?e.push(c):(e.push(n(c,l)),a.push(n))}return e},[])}(H,{d:Y,M:Z,y:U},void 0!==l)]})}const ma="react-date-picker",ha=["mousedown","focusin","touchstart"],va={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},ga=n.jsxs("svg",{...va,"aria-hidden":"true",className:`${ma}__calendar-button__icon ${ma}__button__icon`,children:[n.jsx("rect",{fill:"none",height:"15",width:"15",x:"2",y:"2"}),n.jsx("line",{x1:"6",x2:"6",y1:"0",y2:"4"}),n.jsx("line",{x1:"13",x2:"13",y1:"0",y2:"4"})]}),ba=n.jsxs("svg",{...va,"aria-hidden":"true",className:`${ma}__clear-button__icon ${ma}__button__icon`,children:[n.jsx("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),n.jsx("line",{x1:"15",x2:"4",y1:"4",y2:"15"})]});function ya(r){const{autoFocus:a,calendarAriaLabel:o,calendarIcon:i=ga,className:l,clearAriaLabel:s,clearIcon:c=ba,closeCalendar:d=!0,"data-testid":u,dayAriaLabel:p,dayPlaceholder:f,disableCalendar:m,disabled:h,format:v,id:g,isOpen:b=null,locale:y,maxDate:x,maxDetail:w="month",minDate:C,monthAriaLabel:j,monthPlaceholder:k,name:N="date",nativeInputAriaLabel:_,onCalendarClose:S,onCalendarOpen:O,onChange:D,onFocus:T,onInvalidChange:E,openCalendarOnFocus:L=!0,required:M,returnValue:A="start",shouldCloseCalendar:P,shouldOpenCalendar:$,showLeadingZeros:V,value:I,yearAriaLabel:F,yearPlaceholder:R,...z}=r,[K,q]=e.useState(b),B=e.useRef(null),W=e.useRef(null);function Y({reason:e}){$&&!$({reason:e})||(q(!0),O&&O())}e.useEffect(()=>{q(b)},[b]);const Z=e.useCallback(({reason:e})=>{P&&!P({reason:e})||(q(!1),S&&S())},[S,P]);function U(){K?Z({reason:"buttonClick"}):Y({reason:"buttonClick"})}function G(e,n=d){n&&Z({reason:"select"}),D&&D(e)}const J=e.useCallback(e=>{"Escape"===e.key&&Z({reason:"escape"})},[Z]);function X(){G(null)}function Q(e){e.stopPropagation()}const ee=e.useCallback(e=>{const{current:n}=B,{current:t}=W,r="composedPath"in e?e.composedPath()[0]:e.target;!r||!n||n.contains(r)||t&&t.contains(r)||Z({reason:"outsideAction"})},[Z]),ne=e.useCallback((e=K)=>{for(const n of ha)e?document.addEventListener(n,ee):document.removeEventListener(n,ee);e?document.addEventListener("keydown",J):document.removeEventListener("keydown",J)},[K,ee,J]);e.useEffect(()=>(ne(),()=>{ne(!1)}),[ne]);const te=e.useMemo(()=>function(e){const n={};for(const t of he){const r=e[t];r&&(n[t]=r)}return n}(z),[z]);return n.jsxs("div",{className:H(ma,`${ma}--${K?"open":"closed"}`,`${ma}--${h?"disabled":"enabled"}`,l),"data-testid":u,id:g,...te,onFocus:function(e){T&&T(e),h||K||!L||"true"===e.target.dataset.select||Y({reason:"focus"})},ref:B,children:[function(){const[t]=Array.isArray(I)?I:[I],r={dayAriaLabel:p,monthAriaLabel:j,nativeInputAriaLabel:_,yearAriaLabel:F},l={dayPlaceholder:f,monthPlaceholder:k,yearPlaceholder:R};return n.jsxs("div",{className:`${ma}__wrapper`,children:[n.jsx(fa,{...r,...l,autoFocus:a,className:`${ma}__inputGroup`,disabled:h,format:v,isCalendarOpen:K,locale:y,maxDate:x,maxDetail:w,minDate:C,name:N,onChange:G,onInvalidChange:E,required:M,returnValue:A,showLeadingZeros:V,value:t}),null!==c&&n.jsx("button",{"aria-label":s,className:`${ma}__clear-button ${ma}__button`,disabled:h,onClick:X,onFocus:Q,type:"button",children:"function"==typeof c?e.createElement(c):c}),null!==i&&!m&&n.jsx("button",{"aria-expanded":K||!1,"aria-label":o,className:`${ma}__calendar-button ${ma}__button`,disabled:h,onClick:U,onFocus:Q,type:"button",children:"function"==typeof i?e.createElement(i):i})]})}(),function(){if(null===K||m)return null;const{calendarProps:e,portalContainer:a,value:o}=r,i=`${ma}__calendar`,l=H(i,`${i}--${K?"open":"closed"}`),s=n.jsx(gr,{locale:y,maxDate:x,maxDetail:w,minDate:C,onChange:e=>G(e),value:o,...e});return a?t.createPortal(n.jsx("div",{ref:W,className:l,children:s}),a):n.jsx(Sr,{children:n.jsx("div",{ref:e=>{e&&!K&&e.removeAttribute("style")},className:l,children:s})})}()]})}V(".react-date-picker {\n display: inline-flex;\n position: relative;\n}\n\n.react-date-picker,\n.react-date-picker *,\n.react-date-picker *:before,\n.react-date-picker *:after {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.react-date-picker--disabled {\n background-color: #f0f0f0;\n color: #6d6d6d;\n}\n\n.react-date-picker__wrapper {\n display: flex;\n flex-grow: 1;\n flex-shrink: 0;\n border: thin solid gray;\n}\n\n.react-date-picker__inputGroup {\n min-width: calc((4px * 3) + 0.54em * 8 + 0.217em * 2);\n flex-grow: 1;\n padding: 0 2px;\n box-sizing: content-box;\n}\n\n.react-date-picker__inputGroup__divider {\n padding: 1px 0;\n white-space: pre;\n}\n\n.react-date-picker__inputGroup__divider,\n.react-date-picker__inputGroup__leadingZero {\n display: inline-block;\n font: inherit;\n}\n\n.react-date-picker__inputGroup__input {\n min-width: 0.54em;\n height: 100%;\n position: relative;\n padding: 0 1px;\n border: 0;\n background: none;\n color: currentColor;\n font: inherit;\n box-sizing: content-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n\n.react-date-picker__inputGroup__input::-webkit-outer-spin-button,\n.react-date-picker__inputGroup__input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n margin: 0;\n}\n\n.react-date-picker__inputGroup__input:invalid {\n background: rgba(255, 0, 0, 0.1);\n}\n\n.react-date-picker__inputGroup__input--hasLeadingZero {\n margin-left: -0.54em;\n padding-left: calc(1px + 0.54em);\n}\n\n.react-date-picker__button {\n border: 0;\n background: transparent;\n padding: 4px 6px;\n}\n\n.react-date-picker__button:enabled {\n cursor: pointer;\n}\n\n.react-date-picker__button:enabled:hover .react-date-picker__button__icon,\n.react-date-picker__button:enabled:focus .react-date-picker__button__icon {\n stroke: #0078d7;\n}\n\n.react-date-picker__button:disabled .react-date-picker__button__icon {\n stroke: #6d6d6d;\n}\n\n.react-date-picker__button svg {\n display: inherit;\n}\n\n.react-date-picker__calendar {\n width: 350px;\n max-width: 100vw;\n z-index: 1;\n}\n\n.react-date-picker__calendar--closed {\n display: none;\n}\n\n.react-date-picker__calendar .react-calendar {\n border-width: thin;\n}\n");V(".react-calendar {\n width: 350px;\n max-width: 100%;\n background: white;\n border: 1px solid #a0a096;\n font-family: 'Arial', 'Helvetica', sans-serif;\n line-height: 1.125em;\n}\n\n.react-calendar--doubleView {\n width: 700px;\n}\n\n.react-calendar--doubleView .react-calendar__viewContainer {\n display: flex;\n margin: -0.5em;\n}\n\n.react-calendar--doubleView .react-calendar__viewContainer > * {\n width: 50%;\n margin: 0.5em;\n}\n\n.react-calendar,\n.react-calendar *,\n.react-calendar *:before,\n.react-calendar *:after {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.react-calendar button {\n margin: 0;\n border: 0;\n outline: none;\n}\n\n.react-calendar button:enabled:hover {\n cursor: pointer;\n}\n\n.react-calendar__navigation {\n display: flex;\n height: 44px;\n margin-bottom: 1em;\n}\n\n.react-calendar__navigation button {\n min-width: 44px;\n background: none;\n}\n\n.react-calendar__navigation button:disabled {\n background-color: #f0f0f0;\n}\n\n.react-calendar__navigation button:enabled:hover,\n.react-calendar__navigation button:enabled:focus {\n background-color: #e6e6e6;\n}\n\n.react-calendar__month-view__weekdays {\n text-align: center;\n text-transform: uppercase;\n font: inherit;\n font-size: 0.75em;\n font-weight: bold;\n}\n\n.react-calendar__month-view__weekdays__weekday {\n padding: 0.5em;\n}\n\n.react-calendar__month-view__weekNumbers .react-calendar__tile {\n display: flex;\n align-items: center;\n justify-content: center;\n font: inherit;\n font-size: 0.75em;\n font-weight: bold;\n}\n\n.react-calendar__month-view__days__day--weekend {\n color: #d10000;\n}\n\n.react-calendar__month-view__days__day--neighboringMonth,\n.react-calendar__decade-view__years__year--neighboringDecade,\n.react-calendar__century-view__decades__decade--neighboringCentury {\n color: #757575;\n}\n\n.react-calendar__year-view .react-calendar__tile,\n.react-calendar__decade-view .react-calendar__tile,\n.react-calendar__century-view .react-calendar__tile {\n padding: 2em 0.5em;\n}\n\n.react-calendar__tile {\n max-width: 100%;\n padding: 10px 6.6667px;\n background: none;\n text-align: center;\n font: inherit;\n font-size: 0.833em;\n}\n\n.react-calendar__tile:disabled {\n background-color: #f0f0f0;\n color: #ababab;\n}\n\n.react-calendar__month-view__days__day--neighboringMonth:disabled,\n.react-calendar__decade-view__years__year--neighboringDecade:disabled,\n.react-calendar__century-view__decades__decade--neighboringCentury:disabled {\n color: #cdcdcd;\n}\n\n.react-calendar__tile:enabled:hover,\n.react-calendar__tile:enabled:focus {\n background-color: #e6e6e6;\n}\n\n.react-calendar__tile--now {\n background: #ffff76;\n}\n\n.react-calendar__tile--now:enabled:hover,\n.react-calendar__tile--now:enabled:focus {\n background: #ffffa9;\n}\n\n.react-calendar__tile--hasActive {\n background: #76baff;\n}\n\n.react-calendar__tile--hasActive:enabled:hover,\n.react-calendar__tile--hasActive:enabled:focus {\n background: #a9d4ff;\n}\n\n.react-calendar__tile--active {\n background: #006edc;\n color: white;\n}\n\n.react-calendar__tile--active:enabled:hover,\n.react-calendar__tile--active:enabled:focus {\n background: #1087ff;\n}\n\n.react-calendar--selectRange .react-calendar__tile--hover {\n background-color: #e6e6e6;\n}\n");const xa=e=>null==e?"":Number(e).toLocaleString(),wa=e=>e?Number(e.replace(/,/g,"")):null;function Ca({value:t={min:null,max:null},onChange:r,currencySymbol:a=null,minPlaceholder:o="Min",maxPlaceholder:i="Max"}){const[l,s]=e.useState(t.min??null),[c,d]=e.useState(t.max??null),[u,p]=e.useState(""),f=e.useRef(!0);e.useEffect(()=>{t&&(t.min!==l&&s(t.min??null),t.max!==c&&d(t.max??null))},[t?.min,t?.max]),e.useEffect(()=>{f.current?f.current=!1:(p(null!==l&&null!==c&&c<l?"From value cannot be greater than To value.":""),t?.min===l&&t?.max===c||r?.({min:l,max:c}))},[l,c]);const m=e=>{/[0-9]/.test(e.key)||["Backspace","Delete","ArrowLeft","ArrowRight","Tab"].includes(e.key)||e.preventDefault()};return n.jsxs("div",{className:"d-flex flex-column gap-1",children:[n.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[n.jsxs("div",{className:"input_group",children:[a&&n.jsx("span",{className:"input-group-text",children:a}),n.jsx("input",{type:"text",className:"form-control form-control-sm",placeholder:o,value:xa(l),onChange:e=>{const n=wa(e.target.value);s(n)},onKeyDown:m})]}),n.jsx("span",{className:"text-muted",children:"—"}),n.jsxs("div",{className:"input_group",children:[a&&n.jsx("span",{className:"input-group-text",children:a}),n.jsx("input",{type:"text",className:"form-control form-control-sm",placeholder:i,value:xa(c),onChange:e=>{const n=wa(e.target.value);d(n)},onKeyDown:m})]})]}),u&&n.jsx("span",{className:"text-danger value-err",children:u}),n.jsx("style",{jsx:!0,children:"\n .value-err {\n font-size: 0.875rem;\n width: 74%;\n display: block;\n white-space: nowrap;\n padding-left: 5px;\n }\n .input-group-text {\n padding: .375rem .5rem;\n font-size: .925rem;\n border-radius: 4px 0 0 4px;\n margin-right: -1px;\n }\n .input_group {\n display: flex;\n }\n .input_group .form-control-sm{\n border-radius: 0 4px 4px 0;\n }\n \n "})]})}Ca.propTypes={value:L.shape({min:L.number,max:L.number}),onChange:L.func.isRequired,currencySymbol:L.string,minPlaceholder:L.string,maxPlaceholder:L.string};const ja=()=>null;ja.propTypes={header:L.oneOfType([L.string,L.node]).isRequired,accessor:L.string,colKey:L.string,filterKey:L.string,sortKey:L.string,filterType:L.string,filterOptions:L.any,currencySymbol:L.string,sortable:L.bool,headerClassName:L.string,render:L.func,filterAlignment:L.string,children:L.oneOfType([L.func,L.node])},ja.defaultProps={filterAlignment:"left-0"};const ka=e=>{if(null==e||""===e)return"";const n=Number(e);return Number.isNaN(n)?"":n.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})},Na=({title:t,data:r=[],children:a,tableClassName:o="",pageSize:i,currentPage:l,totalPages:s=0,onPageChange:c,onPageSizeChange:d,totalRecords:u,pageSizeOptions:p=[10,20,50,100],onSortChange:f,onFilterChange:m,onFilterReset:h,isLoading:v=!1,handleRowClick:g,filterSummery:b,currencySymbol:y="A$",loadingClassName:x,loadingSize:w,loadingType:C,loadingPlaceholderRows:j,loadingColSpan:k,enableFullScreen:N=!1})=>{const[_,S]=e.useState([]),[O,D]=e.useState({}),[T,E]=e.useState({}),[L,M]=e.useState(null),[P,$]=e.useState({}),V=e.useRef(null),[I,F]=e.useState(!1);e.useEffect(()=>{const e=e=>{V.current&&V.current.contains(e.target)||e.target.closest(".daterangepicker")||e.target.closest(".react-calendar")||e.target.closest(".react-date-picker__calendar")||M(null)};return null!==L&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[L]);const z=e.Children.toArray(a).filter(n=>e.isValidElement(n)).map(e=>{const{header:n,headerClassName:t,accessor:r,filterAlignment:a="left-0",colKey:o,filterKey:i,sortKey:l,sortable:s,filterType:c,filterOptions:d,render:u}=e.props,p="function"==typeof e.props.children?e.props.children:null;return{header:n,headerClassName:t,accessor:r,colKey:o,filterKey:i||o,sortKey:l||o,sortable:s,filterAlignment:a,filterType:c,filterOptions:d,render:u||p,rawChild:e.props.children}}),H=(e,n)=>{if("object"==typeof e&&null!==e)D(n=>{const t={...n,...e};return m?.(t),t});else{const t={...O,[e]:n};m?.(t),D(t)}},K=e=>{if(M(n=>n===e?null:e),L!==e){const n=z[e],t=n?.filterKey;if(E(e=>({...e,[t]:O[t]||""})),"DATERANGE"===n?.filterType&&t){const e=O[t];e&&"object"==typeof e&&$(n=>({...n,[t]:{startDate:e.from||"",endDate:e.to||""}}))}}},q=1===l?1:i*l-(i-1),B=l+1<s?i*l:u,W=(()=>{if(s<=5)return Array.from({length:s},(e,n)=>n+1);let e=l-Math.floor(2.5),n=e+5-1;return e<1&&(e=1,n=5),n>s&&(n=s,e=n-4),Array.from({length:n-e+1},(n,t)=>e+t)})();function Y(e){if(!e)return{};const n={};return e.split(/\s+/).forEach(e=>{if(e.startsWith("left-")){const t=e.replace("left-","");n.left=t.endsWith("px")?t:`${t}`}else if(e.startsWith("right-")){const t=e.replace("right-","");n.right=t.endsWith("px")?t:`${t}`}}),n}return n.jsxs("div",{className:`filtered-table position-relative ${o} ${I?"fullScreenView":""}`,children:[t&&n.jsx("h4",{className:"mb-3",children:t}),N&&n.jsx("span",{className:"max-view-btn position-absolute",onClick:()=>{F(e=>!e)},title:I?"Minimize":"Maximize",children:n.jsx(R,{width:16,height:16,name:I?"Minimize":"Maximize"})}),n.jsxs("div",{className:"table-responsive min-h-475px",children:[Object.keys(O).some(e=>O[e])&&n.jsxs("div",{className:"d-flex justify-content-between align-items-center mb-3 p-2 border bg-light rounded",children:[b&&n.jsx("div",{className:"d-flex flex-wrap align-items-center",children:b.filter(e=>""!==e.value&&null!=e.value).map(e=>{let t=e.value;if("object"==typeof e.value&&(e.value.from||e.value.to)){const n=e=>{if(!e)return null;const n=new Date(e);return`${String(n.getDate()).padStart(2,"0")}-${String(n.getMonth()+1).padStart(2,"0")}-${n.getFullYear()}`};t=[e.value.from&&`From ${n(e.value.from)}`,e.value.to&&`To ${n(e.value.to)}`].filter(Boolean).join(" ")}else t="object"==typeof e.value&&(e.value.min||e.value.max)?`${y}${ka(e.value.min)} - ${y}${ka(e.value.max)}`:String(e.value);return n.jsxs("span",{className:"badge bg-primary text-white me-2 my-1",children:[n.jsx("span",{className:"fw-bolder",children:e.label||e.key}),":"," ",t]},e.key)})}),!b&&O&&n.jsx("div",{className:"d-flex flex-wrap align-items-center",children:Object.entries(O).map(([e,t])=>{if(!t)return null;const r=z.find(n=>n.filterKey===e),a=r?.header||e;if("object"==typeof t&&(t.from||t.to)){const r=e=>{if(!e)return null;const n=new Date(e);return`${String(n.getDate()).padStart(2,"0")}-${String(n.getMonth()+1).padStart(2,"0")}-${n.getFullYear()}`},o=[t.from&&`From ${r(t.from)}`,t.to&&`To ${r(t.to)}`].filter(Boolean).join(" ");return n.jsxs("span",{className:"badge bg-primary text-white me-2 mb-2",children:[n.jsx("span",{className:"fw-bolder",children:a}),":"," ",o]},e)}return n.jsxs("span",{className:"badge bg-primary text-white me-2 mb-1",children:[n.jsx("span",{className:"fw-bolder",children:a}),":"," ",String(t)]},e)})}),n.jsx("div",{children:n.jsx("span",{className:"btn btn-sm btn-primary",onClick:()=>{const e={};Object.keys(O).forEach(n=>e[n]=""),D(e),Object.keys(e).forEach(e=>H(e,"")),h(),$({}),D({}),S([])},children:"Reset Filter"})})]}),n.jsxs("table",{className:"table align-middle position-relative table-row-dashed fs-6 gy-3 mb-0 table-hover filtered_table",children:[n.jsx("thead",{children:n.jsx("tr",{className:"fw-bold fs-6 fs-md-5 text-gray-900",children:z.map((e,t)=>{const r=e.sortKey,a=e.filterKey,o=_.find(e=>e.field===r);let i=!1;if("DATERANGE"===e.filterType&&a){const e=O[a];i=e&&(e.from||e.to)}else a&&(i=O[a]);return n.jsx("th",{scope:"col",className:`text-nowrap min-w-100px min-w-md-auto ${e.headerClassName||""}`,children:n.jsxs("div",{className:"d-flex align-items-end position-relative",children:["string"==typeof e.header?n.jsx("span",{children:e.header}):e.header,n.jsxs("div",{className:"ms-2 sort-filter-wrp d-flex align-items-end",children:[e.sortable&&r&&n.jsxs("div",{className:"ms-1",onClick:()=>r?(e=>{const n=e.sortKey;n&&(M(null),S(e=>{const t=e[0];let r=[];return t&&t.field===n?"asc"===t.order?r=[{field:n,order:"desc"}]:"desc"===t.order&&(r=[]):r=[{field:n,order:"asc"}],f?.(r),r}))})(e):null,style:{cursor:r?"pointer":"default",marginBottom:"1px"},children:["asc"===o?.order&&n.jsx("span",{style:{color:"#d8128c"},children:n.jsx(se,{})}),"desc"===o?.order&&n.jsx("span",{style:{color:"#d8128c"},children:n.jsx(ce,{})}),!o&&n.jsx(le,{})]}),e.filterType&&n.jsx("div",{className:"flt-btn w-25px h-25px pt-1 pe-3 "+(e.sortable?"ms-2":""),style:{color:i?"#d8128c":""},onClick:()=>K(t),children:n.jsx(de,{})})]}),L===t&&n.jsxs("div",{ref:V,children:["TEXT"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Y(e.filterAlignment),children:[n.jsx("input",{type:"text",className:"form-control form-control-sm",value:T[e.filterKey]||"",placeholder:"Filter By",onChange:n=>E(t=>({...t,[e.filterKey]:n.target.value}))}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{E(n=>({...n,[e.filterKey]:""})),H(e.filterKey,""),K(t)},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!T[e.filterKey]?.trim(),onClick:()=>{H(e.filterKey,T[e.filterKey]||""),K(t)},children:"Apply"})]})]}),"DATE"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Y(e.filterAlignment),children:[n.jsx(ya,{onChange:n=>{const t=(e=>e?`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}T00:00:00.000+00:00`:"")(n);E(n=>({...n,[e.filterKey]:t}))},value:T[e.filterKey]?new Date(T[e.filterKey].substring(0,10)):null,className:"form-control form-control-solid border h-40px pt-3",clearIcon:null}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{E(n=>({...n,[e.filterKey]:""})),H(e.filterKey,""),K(t)},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!T[e.filterKey],onClick:()=>{H(e.filterKey,T[e.filterKey]),K(t)},children:"Apply"})]})]}),"DATERANGE"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Y(e.filterAlignment),children:[n.jsx(me,{datePickerDates:P[e.filterKey]||null,setDatePickerDates:n=>$(t=>({...t,[e.filterKey]:n}))}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{e.filterKey&&(E(n=>({...n,[e.filterKey]:null})),H(e.filterKey,null),$(n=>{const t={...n};return delete t[e.filterKey],t}),K(t))},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!P[e.filterKey]?.startDate&&!P[e.filterKey]?.endDate,onClick:()=>{const n=P[e.filterKey],r={from:n?.startDate||"",to:n?.endDate||""};H(e.filterKey,r),K(t)},children:"Apply"})]})]}),"DROPDOWN"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Y(e.filterAlignment),children:[n.jsxs("select",{className:"form-select form-select-sm form-select-solid mb-3",value:T[e.filterKey]||"",onChange:n=>E(t=>({...t,[e.filterKey]:n.target.value})),children:[n.jsx("option",{value:"",children:"Any"}),e.filterOptions.map((e,t)=>n.jsx("option",{value:e.value,children:e.label},t))]}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{E(n=>({...n,[e.filterKey]:""})),H(e.filterKey,""),K(t)},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!T[e.filterKey],onClick:()=>{H(e.filterKey,T[e.filterKey]||""),K(t)},children:"Apply"})]})]}),"SEARCHDROPDOWN"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Y(e.filterAlignment),children:[n.jsx(A,{enableSearch:!0,selected:T[e.filterKey]??null,onChange:(n,t)=>{E(n=>({...n,[e.filterKey]:t}))},options:[{label:"Any",value:""},...e.filterOptions]}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{E(n=>({...n,[e.filterKey]:null})),H(e.filterKey,null),K(t)},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!T[e.filterKey],onClick:()=>{H(e.filterKey,T[e.filterKey]),K(t)},children:"Apply"})]})]}),"VALUERANGE"===e.filterType&&n.jsxs("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Y(e.filterAlignment),children:[n.jsx(Ca,{currencySymbol:"A$",min:T[e.filterKey]?.min||"",max:T[e.filterKey]?.max||"",value:{min:T[e.filterKey]?.min,max:T[e.filterKey]?.max},onChange:n=>{E(t=>({...t,[e.filterKey]:n}))}}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[n.jsx("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{E(n=>({...n,[e.filterKey]:null})),H(e.filterKey,null),K(t)},children:"Clear"}),n.jsx("button",{className:"btn btn-sm btn-primary",disabled:!(T[e.filterKey]?.min<=T[e.filterKey]?.max)||null===T[e.filterKey]?.min||null===T[e.filterKey]?.max,onClick:()=>{H(e.filterKey,T[e.filterKey]),K(t)},children:"Apply"})]})]})]})]})},t)})})}),n.jsx("tbody",{children:v?n.jsx("tr",{children:n.jsx("td",{colSpan:k||9,children:n.jsx(ie,{className:x||"w-100",size:w||"md",loadingType:C||"table",placeholderRows:j||9})})}):n.jsxs(n.Fragment,{children:[r&&r.length>0?r.map((e,t)=>n.jsx("tr",{onClick:()=>g(e),style:{cursor:"pointer"},children:z.map((r,a)=>{let o=null;if("function"==typeof r.render)o=r.render(e,t);else if(r.accessor){const n=function(e,n){if(n)return n.split(".").reduce((e,n)=>null==e?void 0:e[n],e)}(e,r.accessor);o=null==n?"":n}else o=r.rawChild??"";return n.jsx("td",{children:o},a)})},e.uuid??e.id??t)):n.jsx("tr",{children:n.jsx("td",{colSpan:z.length,className:"text-center py-4",children:n.jsx("div",{className:"my-10 py-10 mh-400px",children:"No data"})})}),r&&r.length<5&&n.jsx("tr",{children:n.jsx("td",{colSpan:z.length,className:"text-center",children:n.jsx("div",{style:{minHeight:"50px"}})})})]})})]})]}),n.jsxs("div",{className:"d-flex align-items-center justify-content-between mt-3",children:[n.jsxs("div",{className:"col-sm-12 col-md-6 d-flex align-items-center",children:[n.jsx("div",{className:"dataTables_length",children:n.jsx("label",{children:n.jsx("select",{className:"form-select form-select-sm form-select-solid",value:i,onChange:e=>d(Number(e.target.value)),children:p.map(e=>n.jsx("option",{value:e,children:e},e))})})}),n.jsxs("div",{className:"dataTables_info text-start ms-3",role:"status","aria-live":"polite",children:["Showing ",q," to ",B," of ",u," records"]})]}),n.jsx("div",{className:"col-lg-6 col-md-12 d-flex justify-content-end",children:n.jsxs("ul",{className:"pagination pagination-md",children:[l>1&&n.jsx("li",{className:"paginate_button page-item",children:n.jsx("span",{className:"page-link svg-icon svg-icon-2",onClick:()=>c(l-1),children:n.jsx(pe,{})})}),s>1&&W.map(e=>n.jsx("li",{className:"paginate_button page-item "+(l===e?"active":""),children:n.jsx("span",{onClick:()=>c(e),className:"page-link",children:e})},e)),l<s&&n.jsx("li",{className:"paginate_button page-item",children:n.jsx("span",{className:"page-link svg-icon svg-icon-2",onClick:()=>c(l+1),children:n.jsx(ue,{})})})]})}),n.jsx("style",{jsx:!0,global:!0,children:"\n th.txt-right div {\n justify-content: end;\n }\n .txt-right {\n text-align: right;\n }\n th.txt-left div {\n justify-content: start;\n }\n .txt-left {\n text-align: left;\n }\n th.txt-center div {\n justify-content: center;\n }\n .txt-center {\n text-align: center;\n }\n .filtered-table.fullScreenView{\n position: fixed !important;\n background-color: var(--kt-card-bg);\n top: 0;\n left: 0;\n z-index: 1000;\n padding: 30px 10px 10px;\n width: 100%;\n height: 100vh;\n }\n .filtered-table.fullScreenView .table-responsive{\n max-height: calc(100vh - 85px);\n overflow: auto;\n }\n .filtered-table.fullScreenView .max-view-btn{\n top: 5px;\n right: 5px;\n }\n .filtered-table .max-view-btn{\n top: -17px;\n right: -17px;\n color: var(--kt-text-muted) !important\n }\n .filtered-table.fullScreenView th {\n position: sticky;\n top: 0;\n background-color: var(--kt-card-bg);\n }\n \n /* FROZEN FIRST COLUMN — BODY CELLS */\n .filtered-table.fullScreenView table tbody td:nth-child(1) {\n position: sticky;\n left: 0;\n z-index: 20; /* Below header, above row cells */\n background: var(--kt-card-bg);\n }\n\n /* FROZEN FIRST COLUMN — HEADER CELL */\n .filtered-table.fullScreenView table thead th:nth-child(1) {\n position: sticky;\n left: 0;\n top: 0;\n z-index: 40 !important; /* Highest: must be above all */\n background: var(--kt-card-bg);\n }\n\n /* ALL HEADER CELLS */\n .filtered-table.fullScreenView table thead th {\n position: sticky;\n top: 0;\n z-index: 30; /* header layer */\n background: var(--kt-card-bg);\n }\n\n "})]})]})};Na.propTypes={title:L.string,data:L.array,children:L.node.isRequired,tableClassName:L.string,pageSize:L.number.isRequired,currentPage:L.number.isRequired,totalPages:L.number.isRequired,onPageChange:L.func.isRequired,onPageSizeChange:L.func.isRequired,pageSizeOptions:L.array,onSortChange:L.func,onFilterChange:L.func,onFilterReset:L.func,isLoading:L.bool,enableFullScreen:L.bool},Na.Col=ja;const _a=({children:t,items:r,className:a="",ariaLabel:o="Breadcrumb",autoSeparators:i=!1,separatorClass:l="bullet bg-gray-200 w-5px h-2px",separatorContent:s=" - ",direction:c="ltr"})=>{let d=t;if(!d&&Array.isArray(r)){d=r.map((e,t)=>{const a=e.title||e.label||e.lable||"",o=t===r.length-1,i=null!=e.isCurrent?e.isCurrent:o,l=e.linkClass||(i?"pc-breadcrumb-active text-dark fw-semibold":"pc-breadcrumb-link text-muted text-hover-primary"),s=e.icon;return n.jsx(Sa,{href:e.href,title:a,linkClass:l,isCurrent:i,icon:s},t)})}let u=d;if(i){const t=e.Children.toArray(d).filter(Boolean);u=t.reduce((e,r,a)=>(e.push(r),a<t.length-1&&e.push(n.jsx(Oa,{className:l,content:s,index:a,direction:c},`sep-${a}`)),e),[])}return n.jsx("nav",{"aria-label":o,className:`pc-breadcrumb-nav ${a}`.trim(),dir:c,children:n.jsx("ol",{className:"pc-breadcrumb list-unstyled d-flex align-items-center m-0 p-0 flex-wrap",children:e.Children.map(u,t=>{if(!e.isValidElement(t))return null;return t.type===Sa||t.type===Oa?t:n.jsx("li",{className:"pc-breadcrumb-item-wrapper",children:t})})})})};_a.propTypes={children:L.node,items:L.arrayOf(L.shape({title:L.oneOfType([L.string,L.node]),label:L.oneOfType([L.string,L.node]),lable:L.oneOfType([L.string,L.node]),href:L.string,linkClass:L.string,isCurrent:L.bool,icon:L.node})),className:L.string,ariaLabel:L.string,autoSeparators:L.bool,separatorClass:L.string,separatorContent:L.oneOfType([L.string,L.node,L.func]),direction:L.oneOf(["ltr","rtl"])};const Sa=({href:e,title:t,linkClass:r="text-muted text-hover-primary",isCurrent:a=!1,children:o,icon:i})=>{const l=o||t,s=e,c={className:r,"aria-current":a?"page":void 0},d=s&&"#"!==s,u=n.jsxs(n.Fragment,{children:[i&&n.jsx("span",{className:"pc-breadcrumb-icon d-inline-flex align-items-center justify-content-center","aria-hidden":"true",children:i}),l]});return n.jsx("li",{className:"pc-breadcrumb-item d-flex align-items-center",children:a||!d?n.jsx("span",{...c,children:u}):n.jsx("a",{href:s,...c,children:u})})};Sa.propTypes={href:L.string,title:L.oneOfType([L.string,L.node]),linkClass:L.string,isCurrent:L.bool,children:L.node,icon:L.node};const Oa=({className:t="bullet bg-gray-200 w-5px h-2px",content:r,index:a,direction:o="ltr"})=>{let i;if(null==r)i=null;else if("function"==typeof r)i=r(a,o);else if(e.isValidElement(r))i=r;else{let e=r;if("rtl"===o&&"string"==typeof e){const n={">":"<","<":">","»":"«","«":"»","›":"‹","‹":"›"};e=e.split("").map(e=>n[e]||e).join("")}i=e}return n.jsx("li",{className:"pc-breadcrumb-separator d-flex align-items-center","aria-hidden":"true",style:{lineHeight:1},children:n.jsx("span",{className:`pc-breadcrumb-separator-inner ${t}`.trim(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",margin:"0 4px"},children:null==i?"-":i})})};Oa.propTypes={className:L.string,content:L.oneOfType([L.string,L.node,L.func]),index:L.number,direction:L.oneOf(["ltr","rtl"])};const Da=e=>null===e?"":e.toLocaleString();function Ta({min:t,max:r,currencySymbol:a="",onChange:o}){const[i,l]=e.useState(0),[s,c]=e.useState(0),[d,u]=e.useState(null),[p,f]=e.useState(null),m=e.useRef(null),h=e.useRef(null),v=e.useRef(null);e.useEffect(()=>{m.current&&(l(m.current.offsetWidth),c(m.current.getBoundingClientRect().left))},[]);const g=(e,n)=>{null!==e&&null!==n&&o?.({min:e,max:n})},b=e=>e.clientX||e.touches&&e.touches[0].clientX,y=e=>{const n=100*(b(e)-s)/i,a=p??r,o=Math.max(t,Math.min(Math.floor(r*n/100),a-0));u(o),h.current.style.width=100*o/r+"%",g(o,p??r)},x=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x)},w=()=>{null===p&&f(r),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),document.addEventListener("touchmove",y),document.addEventListener("touchend",x)},C=e=>{const n=100*(b(e)-s)/i,a=d??t,o=Math.min(r,Math.max(Math.floor(r*n/100),a+0));f(o),v.current.style.width=100*o/r+"%",g(d??t,o)},j=()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",j),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",j)},k=()=>{null===d&&u(t),document.addEventListener("mousemove",C),document.addEventListener("mouseup",j),document.addEventListener("touchmove",C),document.addEventListener("touchend",j)};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"current-value",children:[n.jsxs("div",{children:[a,Da(d)]}),n.jsxs("div",{children:[a,Da(p)]})]}),n.jsx("div",{className:"slider-container",children:n.jsxs("div",{ref:m,id:"range-slider",children:[n.jsx("div",{ref:h,id:"min",style:{zIndex:0<p?5:1},children:n.jsx("div",{id:"min-drag",onMouseDown:w,onTouchStart:w})}),n.jsx("div",{ref:v,id:"max",style:{zIndex:0>p?5:1},children:n.jsx("div",{id:"max-drag",onMouseDown:k,onTouchStart:k})})]})}),n.jsxs("div",{className:"range-values",children:[n.jsxs("div",{children:[a,Da(t)]}),n.jsxs("div",{children:[a,Da(r)]})]}),n.jsx("style",{children:"\n.slider-container {\n padding: 0;\n}\n\n.current-value {\n display: flex;\n justify-content: space-between;\n margin: 10px 0;\n font-weight: 600;\n}\n\n.range-values {\n display: flex;\n justify-content: space-between;\n font-size: 12px;\n font-weight: 500;\n margin-top: 6px;\n}\n\n#range-slider {\n position: relative;\n height: 5px;\n background: #709fdc;\n border-radius: 5px;\n}\n\n#min,\n#max {\n position: absolute;\n height: 5px;\n border-radius: 5px;\n}\n\n#min {\n background: #709fdc;\n z-index: 2;\n}\n\n#max {\n background: #274684;\n z-index: 1;\n}\n\n#min-drag,\n#max-drag {\n position: absolute;\n right: -7.5px;\n top: -5px;\n width: 15px;\n height: 15px;\n border-radius: 50%;\n background: #071739;\n cursor: pointer;\n}\n "})]})}function Ea({tableKey:t,defaultColumns:r=[],onChange:a,btnLabel:o="Columns",enabledIcon:i=!0,enabledBtn:l=!0,title:s="Manage Columns",tenantId:c,userId:d,fetchTableSettingsOn:u,SaveTableSettingsOn:p}){const[f,m]=e.useState([]),[h,v]=e.useState([]),[g,b]=e.useState(!1),[y,x]=e.useState(!1),w=async()=>{try{let n=null,o=[];if(u&&(n=await u(c,t,d),e=n||[],o=Array.isArray(e)?e.map(e=>{const[n,t,r]=e.split("≈");return{key:n,label:t,visible:"true"===r}}):[]),o){const e=o||[],n=e.map(e=>{const n=r.find(n=>n.key===e.key);return n?{...n,...e}:e}),t=r.filter(n=>!e.some(e=>e.key===n.key)),i=[...n,...t];return m(i),v(i),void a?.(i)}m(r),v(r),a?.(r)}catch(e){console.error("Column load failed",e),m(r),v(r),a?.(r)}var e};e.useEffect(()=>{t&&w()},[t,d]);const C=e=>{e.currentTarget.classList.remove("dragging")},j=f.every(e=>e.visible),k=f.every(e=>!e.visible);return n.jsxs(n.Fragment,{children:[l&&n.jsx(M,{onClick:()=>b(!0),className:"btn btn-primary btn-sm",label:o,icon:i?n.jsx(R,{width:16,height:16,name:"Settings"}):null,variant:"primary"}),g&&n.jsxs(W,{onClose:()=>b(!1),title:s,maxWidth:"650px",width:"100%",maxHeight:"80vh",titleOnTop:!0,children:[n.jsxs("div",{children:[n.jsx("div",{className:"columns-container mt-3 mb-5 gap-2",children:f.map((e,t)=>n.jsxs("div",{className:"column-itm d-flex align-items-center justify-content-between draggable-item py-2 px-3",draggable:!0,onDragStart:e=>((e,n)=>{e.dataTransfer.setData("text/plain",String(n)),e.currentTarget.classList.add("dragging")})(e,t),onDragEnd:C,onDragOver:e=>e.preventDefault(),onDrop:e=>((e,n)=>{e.preventDefault();const t=Number(e.dataTransfer.getData("text/plain"));if(isNaN(t)||t===n)return;const r=e.currentTarget;m(e=>{const r=[...e],[a]=r.splice(t,1);return r.splice(n,0,a),r}),r.classList.add("drop-anim"),setTimeout(()=>r.classList.remove("drop-anim"),300)})(e,t),children:[n.jsxs("div",{className:"d-flex align-items-center gap-2",children:[n.jsx("span",{className:"me-2 handle",children:"⋮⋮"}),n.jsxs("div",{className:"form-check d-flex align-items-center mb-0",children:[n.jsx("input",{type:"checkbox",checked:e.visible,onChange:()=>{m(n=>n.map(n=>n.key===e.key?{...n,visible:!n.visible}:n))},className:"form-check-input me-2"}),n.jsx("label",{className:"mb-0 ps-2",children:e.label})]})]}),n.jsx("small",{className:e.visible?"text-success":"text-muted",children:e.visible?"Shown":"Hidden"})]},e.key))}),n.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[n.jsx(M,{onClick:()=>{const e=f.every(e=>e.visible),n=f.map(n=>({...n,visible:!e}));m(n)},label:j?"Deselect All":"Select All",variant:"outline-secondary",className:"btn btn-outline-secondary btn-sm border"}),n.jsxs("div",{className:"d-flex gap-2",children:[n.jsx(M,{onClick:()=>{m(h)},label:"Reset to Default",variant:"secondary",className:"btn btn-secondary btn-sm"}),n.jsx(M,{onClick:async()=>{x(!0);try{p&&await p(c,{authId:d,screen:t,columns:(e=f,Array.isArray(e)?e.map(e=>`${e.key}≈${e.label}≈${e.visible}`):[])}),a?.(f)}catch(e){console.error("Column save failed:",e)}var e;setTimeout(()=>{w(),x(!1),b(!1)},300)},disabled:k||y,label:y?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"spinner-border spinner-border-sm me-2",role:"status"}),"Saving..."]}):"Save Changes",className:"btn btn-primary btn-sm"})]})]})]}),n.jsx("style",{children:"\n .columns-container {\n display: flex;\n flex-direction: column;\n max-height: 60vh;\n overflow-y: auto;\n }\n .column-itm {\n background-color: var(--kt-form-select-bg);\n border: 1px solid var(--kt-form-select-border-color);\n border-radius: 4px;\n color: var(--kt-form-select-color);\n transition: 0.15s ease;\n }\n .handle {\n font-size: 16px;\n opacity: 0.6;\n cursor: grab;\n }\n .draggable-item.dragging {\n opacity: 0.5;\n background-color: #eaeaea;\n }\n .drop-anim {\n animation: dropFlash 300ms ease-out;\n }\n @keyframes dropFlash {\n 0% { background-color: #e7f1ff; }\n 100% { background-color: transparent; }\n }\n "})]})]})}Ta.propTypes={min:L.number.isRequired,max:L.number.isRequired,currencySymbol:L.string,onChange:L.func},Ea.propTypes={tableKey:L.string.isRequired,defaultColumns:L.array.isRequired,onChange:L.func.isRequired,btnLabel:L.string,enabledIcon:L.bool,enabledBtn:L.bool,title:L.string,tenantId:L.string.isRequired,fetchTableSettingsOn:L.func,SaveTableSettingsOn:L.func};const La=e=>{const{checkBoxLabel:t,className:r="",checked:a=!1,onChange:o,inputClass:i="",...l}=e;return n.jsxs("label",{className:`form-check form-check-custom form-check-solid ${r}`,children:[n.jsx("input",{type:"checkbox",className:`form-check-input widget-9-check ${i}`,checked:a,onChange:o,...l}),t&&n.jsx("span",{className:"form-check-label fw-semibold ms-2",children:t})]})};La.propTypes={checkBoxLabel:L.oneOfType([L.string,L.node]),className:L.string,inputClass:L.string,checked:L.bool,onChange:L.func.isRequired},exports.AccordionItem=({title:e,children:t,isOpen:r,onToggle:a,index:o,id:i,className:l="",OpenByDefault:s=!1,"data-testid":c})=>{const d=i||`collapse-${o}`,u=`heading-${o}`;return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:`accordion-item pc-accordion-item pb-0 mb-2 ${l}`.trim(),"data-testid":c,children:[n.jsx("h2",{className:"accordion-header",id:u,children:n.jsx("button",{className:"accordion-button "+(r?"":"collapsed"),type:"button",onClick:a,"aria-expanded":r,"aria-controls":d,children:"string"==typeof e?n.jsx("span",{dangerouslySetInnerHTML:{__html:e}}):e})}),n.jsx("div",{id:d,className:"accordion-collapse collapse "+(r?"show":""),"aria-labelledby":u,children:n.jsx("div",{className:"accordion-body",children:t})})]}),n.jsx("style",{jsx:!0,children:"\n .pc-accordion-item,\n .pc-accordion-item:first-of-type,\n .pc-accordion-item:last-of-type {\n border-radius: 10px;\n border: 1px solid var(--kt-input-border-color);\n overflow: hidden;\n background-color: var(--kt-card-bg);\n }\n \n "})]})},exports.PCAccordionWrapper=({children:t,singleOpen:r=!0,id:a,className:o="","data-testid":i})=>{const[l,s]=e.useState(()=>{const n=[];return e.Children.forEach(t,(t,r)=>{e.isValidElement(t)&&t.props.OpenByDefault&&n.push(r)}),r&&n.length>1?[n[0]]:n}),c=e.Children.map(t,(n,t)=>{if(e.isValidElement(n)){const a=l.includes(t);return e.cloneElement(n,{index:t,isOpen:a,onToggle:()=>((e,n,t)=>{s(a=>{const o=a.includes(e);let i;return i=r?o?[]:[e]:o?a.filter(n=>n!==e):[...a,e],!o&&n&&n(),o&&t&&t(),i})})(t,n.props.onOpen,n.props.onClose)})}return n});return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`pc-accordion accordion ${o}`.trim(),id:a||"pcaccordionWrapper","data-testid":i,children:c}),n.jsx("style",{jsx:!0,children:"\n .pc-accordion{;\n }\n "})]})},exports.PCBreadcrumb=_a,exports.PCBreadcrumbItem=Sa,exports.PCBreadcrumbSeparator=Oa,exports.PCButton=M,exports.PCCheckBox=La,exports.PCCol=B,exports.PCColumnsManager=Ea,exports.PCContainer=K,exports.PCCurrencyRange=Ca,exports.PCDatePicker=({selectedDate:e,setSelectedDate:t,placeholder:r="Select date",minDate:a=null,maxDate:o=null,disableWeekends:i=!1,inputFormat:l="dd/MM/yyyy"})=>n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"form-control form-control-solid border d-flex align-items-center p-2 justify-content-between",children:[n.jsx(ya,{value:e?new Date(e):null,onChange:t,calendarIcon:null,clearIcon:null,minDate:a?new Date(a):void 0,maxDate:o?new Date(o):void 0,tileDisabled:({date:e})=>{if(!i)return!1;const n=e.getDay();return 0===n||6===n},placeholderText:r,format:l}),n.jsx("span",{className:"svg-icon svg-icon-1 ms-2 me-0",children:n.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("path",{opacity:"0.3",d:"M21 22H3C2.4 22 2 21.6 2 21V5C2 4.4 2.4 4 3 4H21C21.6 4 22 4.4 22 5V21C22 21.6 21.6 22 21 22Z",fill:"currentColor"}),n.jsx("path",{d:"M6 6C5.4 6 5 5.6 5 5V3C5 2.4 5.4 2 6 2C6.6 2 7 2.4 7 3V5C7 5.6 6.6 6 6 6ZM11 5V3C11 2.4 10.6 2 10 2C9.4 2 9 2.4 9 3V5C9 5.6 9.4 6 10 6C10.6 6 11 5.6 11 5ZM15 5V3C15 2.4 14.6 2 14 2C13.4 2 13 2.4 13 3V5C13 5.6 13.4 6 14 6C14.6 6 15 5.6 15 5ZM19 5V3C19 2.4 18.6 2 18 2C17.4 2 17 2.4 17 3V5C17 5.6 17.4 6 18 6C18.6 6 19 5.6 19 5Z",fill:"currentColor"}),n.jsx("path",{d:"M8.8 13.1C9.2 13.1 9.5 13 9.7 12.8C9.9 12.6 10.1 12.3 10.1 11.9C10.1 11.6 10 11.3 9.8 11.1C9.6 10.9 9.3 10.8 9 10.8C8.8 10.8 8.59999 10.8 8.39999 10.9C8.19999 11 8.1 11.1 8 11.2C7.9 11.3 7.8 11.4 7.7 11.6C7.6 11.8 7.5 11.9 7.5 12.1C7.5 12.2 7.4 12.2 7.3 12.3C7.2 12.4 7.09999 12.4 6.89999 12.4C6.69999 12.4 6.6 12.3 6.5 12.2C6.4 12.1 6.3 11.9 6.3 11.7C6.3 11.5 6.4 11.3 6.5 11.1C6.6 10.9 6.8 10.7 7 10.5C7.2 10.3 7.49999 10.1 7.89999 10C8.29999 9.90003 8.60001 9.80003 9.10001 9.80003C9.50001 9.80003 9.80001 9.90003 10.1 10C10.4 10.1 10.7 10.3 10.9 10.4C11.1 10.5 11.3 10.8 11.4 11.1C11.5 11.4 11.6 11.6 11.6 11.9C11.6 12.3 11.5 12.6 11.3 12.9C11.1 13.2 10.9 13.5 10.6 13.7C10.9 13.9 11.2 14.1 11.4 14.3C11.6 14.5 11.8 14.7 11.9 15C12 15.3 12.1 15.5 12.1 15.8C12.1 16.2 12 16.5 11.9 16.8C11.8 17.1 11.5 17.4 11.3 17.7C11.1 18 10.7 18.2 10.3 18.3C9.9 18.4 9.5 18.5 9 18.5C8.5 18.5 8.1 18.4 7.7 18.2C7.3 18 7 17.8 6.8 17.6C6.6 17.4 6.4 17.1 6.3 16.8C6.2 16.5 6.10001 16.3 6.10001 16.1C6.10001 15.9 6.2 15.7 6.3 15.6C6.4 15.5 6.6 15.4 6.8 15.4C6.9 15.4 7.00001 15.4 7.10001 15.5C7.20001 15.6 7.3 15.6 7.3 15.7C7.5 16.2 7.7 16.6 8 16.9C8.3 17.2 8.6 17.3 9 17.3C9.2 17.3 9.5 17.2 9.7 17.1C9.9 17 10.1 16.8 10.3 16.6C10.5 16.4 10.5 16.1 10.5 15.8C10.5 15.3 10.4 15 10.1 14.7C9.80001 14.4 9.50001 14.3 9.10001 14.3C9.00001 14.3 8.9 14.3 8.7 14.3C8.5 14.3 8.39999 14.3 8.39999 14.3C8.19999 14.3 7.99999 14.2 7.89999 14.1C7.79999 14 7.7 13.8 7.7 13.7C7.7 13.5 7.79999 13.4 7.89999 13.2C7.99999 13 8.2 13 8.5 13H8.8V13.1ZM15.3 17.5V12.2C14.3 13 13.6 13.3 13.3 13.3C13.1 13.3 13 13.2 12.9 13.1C12.8 13 12.7 12.8 12.7 12.6C12.7 12.4 12.8 12.3 12.9 12.2C13 12.1 13.2 12 13.6 11.8C14.1 11.6 14.5 11.3 14.7 11.1C14.9 10.9 15.2 10.6 15.5 10.3C15.8 10 15.9 9.80003 15.9 9.70003C15.9 9.60003 16.1 9.60004 16.3 9.60004C16.5 9.60004 16.7 9.70003 16.8 9.80003C16.9 9.90003 17 10.2 17 10.5V17.2C17 18 16.7 18.4 16.2 18.4C16 18.4 15.8 18.3 15.6 18.2C15.4 18.1 15.3 17.8 15.3 17.5Z",fill:"currentColor"})]})})]}),n.jsx("style",{jsx:!0,children:"\n/* DatePicker */\n.react-date-picker__wrapper {\n border: none !important;\n display: block !important;\n}\n\n.react-date-picker__inputGroup {\n min-width: none !important;\n flex-grow: initial !important;\n float: left;\n}\n\n.react-date-picker {\n padding: 6px 10px;\n}\n\n.react-date-picker__calendar {\n width: 300px !important;\n z-index: 999 !important;\n}\n\n.react-date-picker__calendar-button {\n float: right;\n}\n\n.react-date-picker__button svg {\n fill: #fff !important;\n stroke: var(--kt-light-inverse) !important;\n}\n\n.react-date-picker__calendar-button svg {\n display: none !important;\n}\n\n.react-date-picker__button {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n}\n\n.react-date-picker__calendar-button:after {\n content: \"\";\n background: url(\"data:image/svg+xml;utf8,<svg width='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path opacity='0.3' d='M21 22H3C2.4 22 2 21.6 2 21V5C2 4.4 2.4 4 3 4H21C21.6 4 22 4.4 22 5V21C22 21.6 21.6 22 21 22Z' fill='rgba(109, 109, 128, 1)'></path><path d='M6 6C5.4 6 5 5.6 5 5V3C5 2.4 5.4 2 6 2C6.6 2 7 2.4 7 3V5C7 5.6 6.6 6 6 6ZM11 5V3C11 2.4 10.6 2 10 2C9.4 2 9 2.4 9 3V5C9 5.6 9.4 6 10 6C10.6 6 11 5.6 11 5ZM15 5V3C15 2.4 14.6 2 14 2C13.4 2 13 2.4 13 3V5C13 5.6 13.4 6 14 6C14.6 6 15 5.6 15 5ZM19 5V3C19 2.4 18.6 2 18 2C17.4 2 17 2.4 17 3V5C17 5.6 17.4 6 18 6C18.6 6 19 5.6 19 5Z' fill='rgba(109, 109, 128, 1)'></path><path d='M8.8 13.1C9.2 13.1 9.5 13 9.7 12.8C9.9 12.6 10.1 12.3 10.1 11.9C10.1 11.6 10 11.3 9.8 11.1C9.6 10.9 9.3 10.8 9 10.8C8.8 10.8 8.59999 10.8 8.39999 10.9C8.19999 11 8.1 11.1 8 11.2C7.9 11.3 7.8 11.4 7.7 11.6C7.6 11.8 7.5 11.9 7.5 12.1C7.5 12.2 7.4 12.2 7.3 12.3C7.2 12.4 7.09999 12.4 6.89999 12.4C6.69999 12.4 6.6 12.3 6.5 12.2C6.4 12.1 6.3 11.9 6.3 11.7C6.3 11.5 6.4 11.3 6.5 11.1C6.6 10.9 6.8 10.7 7 10.5C7.2 10.3 7.49999 10.1 7.89999 10C8.29999 9.90003 8.60001 9.80003 9.10001 9.80003C9.50001 9.80003 9.80001 9.90003 10.1 10C10.4 10.1 10.7 10.3 10.9 10.4C11.1 10.5 11.3 10.8 11.4 11.1C11.5 11.4 11.6 11.6 11.6 11.9C11.6 12.3 11.5 12.6 11.3 12.9C11.1 13.2 10.9 13.5 10.6 13.7C10.9 13.9 11.2 14.1 11.4 14.3C11.6 14.5 11.8 14.7 11.9 15C12 15.3 12.1 15.5 12.1 15.8C12.1 16.2 12 16.5 11.9 16.8C11.8 17.1 11.5 17.4 11.3 17.7C11.1 18 10.7 18.2 10.3 18.3C9.9 18.4 9.5 18.5 9 18.5C8.5 18.5 8.1 18.4 7.7 18.2C7.3 18 7 17.8 6.8 17.6C6.6 17.4 6.4 17.1 6.3 16.8C6.2 16.5 6.10001 16.3 6.10001 16.1C6.10001 15.9 6.2 15.7 6.3 15.6C6.4 15.5 6.6 15.4 6.8 15.4C6.9 15.4 7.00001 15.4 7.10001 15.5C7.20001 15.6 7.3 15.6 7.3 15.7C7.5 16.2 7.7 16.6 8 16.9C8.3 17.2 8.6 17.3 9 17.3C9.2 17.3 9.5 17.2 9.7 17.1C9.9 17 10.1 16.8 10.3 16.6C10.5 16.4 10.5 16.1 10.5 15.8C10.5 15.3 10.4 15 10.1 14.7C9.80001 14.4 9.50001 14.3 9.10001 14.3C9.00001 14.3 8.9 14.3 8.7 14.3C8.5 14.3 8.39999 14.3 8.39999 14.3C8.19999 14.3 7.99999 14.2 7.89999 14.1C7.79999 14 7.7 13.8 7.7 13.7C7.7 13.5 7.79999 13.4 7.89999 13.2C7.99999 13 8.2 13 8.5 13H8.8V13.1ZM15.3 17.5V12.2C14.3 13 13.6 13.3 13.3 13.3C13.1 13.3 13 13.2 12.9 13.1C12.8 13 12.7 12.8 12.7 12.6C12.7 12.4 12.8 12.3 12.9 12.2C13 12.1 13.2 12 13.6 11.8C14.1 11.6 14.5 11.3 14.7 11.1C14.9 10.9 15.2 10.6 15.5 10.3C15.8 10 15.9 9.80003 15.9 9.70003C15.9 9.60003 16.1 9.60004 16.3 9.60004C16.5 9.60004 16.7 9.70003 16.8 9.80003C16.9 9.90003 17 10.2 17 10.5V17.2C17 18 16.7 18.4 16.2 18.4C16 18.4 15.8 18.3 15.6 18.2C15.4 18.1 15.3 17.8 15.3 17.5Z' fill='rgba(109, 109, 128, 1)'></path></svg>\") no-repeat;\n position: relative;\n right: 0;\n top: 0;\n display: block;\n width: 20px;\n height: 20px;\n}\n\n.react-date-picker__clear-button svg {\n width: 14px;\n}\n\n.react-date-picker__calendar .react-calendar {\n box-shadow: var(--kt-dropdown-box-shadow) !important;\n background-color: var(--kt-body-bg) !important;\n border: none;\n border-radius: .475rem;\n font-family: Inter, Helvetica, sans-serif;\n padding: 10px;\n}\n\n.react-date-picker__calendar .react-calendar .react-calendar__navigation__label__labelText {\n font-size: 1rem;\n font-weight: 500;\n color: var(--kt-gray-800);\n}\n\n.react-date-picker__calendar .react-calendar__month-view__weekdays__weekday {\n font-weight: 500;\n color: var(--kt-gray-800);\n font-size: 1rem;\n text-transform: none;\n}\n\n.react-date-picker__calendar .react-calendar__month-view__weekdays__weekday abbr[title] {\n text-decoration: none;\n}\n\n.react-date-picker__calendar .react-calendar .react-calendar__tile {\n font-size: 1rem;\n font-weight: 400;\n line-height: 24px;\n padding: 5px 0;\n color: var(--kt-gray-700);\n}\n\n\n\n.react-calendar__month-view__days__day--neighboringMonth {\n color: var(--kt-gray-400) !important;\n}\n\n.react-calendar__tile--active {\n border-radius: .475rem;\n background-color: var(--kt-component-active-bg) !important;\n color: var(--kt-component-active-color) !important;\n}\n\n.react-calendar__tile:enabled:hover,\n.react-calendar__tile:enabled:focus,\n.react-calendar__tile--hasActive,\n.react-calendar__tile--now {\n border-radius: .475rem;\n background-color: var(--kt-component-hover-bg) !important;\n color: var(--kt-component-hover-color) !important;\n}\n\n.react-calendar__navigation button {\n font-size: 16px;\n font-weight: 500;\n color: var(--kt-gray-600);\n}\n\n.react-calendar__navigation button:hover,\n.react-calendar__navigation button:focus {\n border-radius: .475rem;\n background-color: var(--kt-component-hover-bg) !important;\n color: var(--kt-component-hover-color);\n}\n\n.react-date-picker__inputGroup__input:focus {\n outline: none;\n}\n\n.react-date-picker__inputGroup__input:invalid {\n background-color: transparent !important;\n}\n\n.react-calendar__navigation button:disabled,\n.react-calendar__tile:disabled {\n opacity: .5;\n background-color: transparent !important;\n}\n\n "})]}),exports.PCExportToCSV=({btnLabel:t,totalRecords:r=0,startPageNumber:a=0,enabledIcon:o=!0,columns:i={},title:l="Export Data",fileName:s="export_data",onFetchData:c=async e=>[]})=>{const[d,u]=e.useState(!1),[p,f]=e.useState([]),[m,h]=e.useState(!1),[v,g]=e.useState(a),b=e.useMemo(()=>Object.keys(i),[i]);e.useEffect(()=>{d&&(f([...b]),g(a))},[d,a,b]);const y=1e3,x=Math.ceil(r/y),w=Array.from({length:x},(e,n)=>{const t=n*y+1,o=Math.min((n+1)*y,r);return{label:`${t} to ${o}`,value:n+a,start:t,end:o}});return n.jsxs(n.Fragment,{children:[n.jsx(M,{onClick:()=>u(!0),className:"btn btn-primary btn-sm",label:t||"Export",icon:o?n.jsx(R,{width:16,height:16,name:"ExportCSV"}):null,variant:"primary"}),d&&n.jsx(W,{onClose:()=>u(!1),outsideClickHandle:!1,title:l,customStyles:"w-100",maxWidth:"650px",width:"100%",maxHeight:"80vh",titleOnTop:!0,children:n.jsxs("div",{children:[n.jsxs("div",{className:"form-check mt-3 mb-1 d-flex align-items-center gap-2 justify-content-end",children:[n.jsx("input",{className:"form-check-input",type:"checkbox",id:"selectAll",checked:p.length===b.length,onChange:()=>{p.length===b.length?f([]):f([...b])}}),n.jsx("label",{className:"form-check-label",htmlFor:"selectAll",children:"Select All"})]}),n.jsx("div",{className:"separator separator-dashed mt-3 mb-4"}),n.jsx("div",{className:"d-flex flex-wrap mb-0 pt-2",children:b.map(e=>n.jsxs("div",{className:"col-4 form-check mb-3",children:[n.jsx("input",{className:"form-check-input",type:"checkbox",id:e,checked:p.includes(e),onChange:()=>{return n=e,void f(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n]);var n}}),n.jsx("label",{className:"form-check-label",htmlFor:e,children:i[e]})]},e))}),x>1&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"separator separator-dashed mt-3 mb-3"}),n.jsxs("div",{className:"mb-3",children:[n.jsx("label",{htmlFor:"pageSelect",className:"form-label",children:"Select a range"}),n.jsx("select",{id:"pageSelect",className:"form-select",value:v,onChange:e=>g(Number(e.target.value)),children:w.map((e,t)=>n.jsx("option",{value:e.value,children:e.label},t))})]})]}),n.jsx("div",{className:"separator separator-dashed mb-6 "+(x>1?"mt-6":"mt-3")}),n.jsx("div",{className:"d-flex justify-content-end gap-2",children:n.jsx(M,{onClick:async()=>{if(!p.length)return;h(!0);const e=e=>{if(null==e)return"";let n=String(e);return n.includes('"')&&(n=n.replace(/"/g,'""')),(n.includes(",")||n.includes('"')||n.includes("\n"))&&(n=`"${n}"`),n};try{const n=await c(v);if(!n||!n.length)return void h(!1);const t=p.map(n=>e(i[n]||n)),r=[t,...n.map(n=>p.map(t=>{const r=n[t];return e("object"==typeof r&&null!==r?JSON.stringify(r):r)}))].map(e=>e.join(",")).join("\n"),a=new Blob([r],{type:"text/csv;charset=utf-8;"}),o=URL.createObjectURL(a),l=document.createElement("a");l.href=o,l.setAttribute("download",`${s}_${w[v]?.label||"page"}.csv`),l.click()}catch(e){console.error("Error fetching data for CSV:",e)}finally{h(!1)}},className:"btn btn-primary btn-sm d-flex align-items-center",label:m?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"spinner-border spinner-border-sm me-2",role:"status","aria-hidden":"true"}),"Loading..."]}):`Download ${w[v]?.label} Records`,variant:"primary",disabled:!p.length||m})})]})})]})},exports.PCFilteredTable=Na,exports.PCIcon=R,exports.PCInput=Z,exports.PCInputCurrency=({label:t="Enter Lable",value:r="",onChange:a,required:o=!1,errorMessage:i="",name:l,disabled:s=!1})=>{const[c,d]=e.useState(U(r));e.useEffect(()=>{d(U(r))},[r]);return n.jsxs("div",{className:"form-group",children:[n.jsx("label",{className:`form-label ${o&&"required"}`,children:t}),n.jsx("div",{className:"input-group",style:{fontFamily:"inherit"},children:n.jsx("input",{name:l,disabled:s,required:o,type:"text",value:c,onChange:e=>{const n=e.target.value.replace(/[^\d.]/g,""),t=U(n);d(t),a&&a(l,n)},placeholder:"$0.00","aria-label":"Currency input",className:"form-control form-control-solid border"+(i?" is-invalid border-danger":"")})}),i&&n.jsx("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"},children:i})]})},exports.PCLoading=ie,exports.PCModal=W,exports.PCMultiSelectDropdown=({options:t=[],placeholder:r="Select...",onChange:a,enableSearch:o=!0,enableSelectAll:i=!0,showCountAfter:l=null,value:s=[],name:c,required:d=!1,labelKey:u="name",valueKey:p="value",isInvalid:f=!1,errMsg:m=""})=>{const[h,v]=e.useState([]),[g,b]=e.useState(!1),[y,x]=e.useState(""),w=e.useRef(null),C=e.useRef(null),[j,k]=e.useState("100%"),N=e.useMemo(()=>((e,n,t)=>Array.isArray(e)?e.map(e=>({name:e?.[n]??"",value:e?.[t]??"",original:e})):[])(t,u,p),[t,u,p]);e.useEffect(()=>{const e=e=>{w.current&&!w.current.contains(e.target)&&b(!1)},n=()=>{C.current&&k(`${C.current.offsetWidth}px`)};return document.addEventListener("mousedown",e),window.addEventListener("resize",n),n(),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",n)}},[]),e.useEffect(()=>{if(!Array.isArray(s))return;if(!(s.length===h.length&&s.every(e=>h.some(n=>n.original?.[p]===e?.[p])))){const e=N.filter(e=>s.some(n=>n?.[p]===e.original?.[p]));v(e)}},[s,N]);const _=e=>h.some(n=>n.value===e.value),S=N.filter(e=>e.name.toLowerCase().includes(y.toLowerCase()));return n.jsxs("div",{className:"position-relative pc-multi-select",ref:w,children:[n.jsx("div",{ref:C,className:"form-select form-select-solid pc-ele-border d-flex justify-content-between align-items-center "+(f?"invalid":""),onClick:()=>b(!g),style:{cursor:"pointer"},children:n.jsx("span",{className:"text-truncate",style:{maxWidth:"85%"},children:(()=>{if(0===h.length)return r;if(null!=l&&h.length>l){return`${h.slice(0,l).map(e=>e.name).join(", ")} +${h.length-l} more`}return h.map(e=>e.name).join(", ")})()})}),f&&m&&n.jsx("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%",zIndex:9999},children:m}),g&&n.jsx("div",{className:"multi-slc-dropdown-options-wrp show position-absolute top-100 start-0",style:{maxHeight:300,width:j,zIndex:9999},children:n.jsxs("div",{className:"dropdown-menu relative show py-3 shadow-none border position-relative",style:{maxHeight:300,overflowY:"auto",width:j,zIndex:9999},children:[(o||i)&&n.jsxs("div",{className:"d-flex align-items-center gap-2 pb-3 mb-3 border-bottom",children:[i&&n.jsxs("div",{className:"form-check pl-3 ms-4",children:[n.jsx("input",{type:"checkbox",className:"form-check-input",id:"selectAll",checked:h.length===N.length,onChange:()=>{const e=h.length===N.length?[]:[...N];v(e),a?.(c,e.map(e=>e.original))},name:c,required:d}),n.jsx("label",{className:"form-check-label",htmlFor:"selectAll",children:"All"})]}),o&&n.jsxs("div",{className:"input-group me-3 "+(i?"":"ms-3"),children:[n.jsx("input",{type:"text",className:"form-control border-end-0",placeholder:"Search...",value:y,onChange:e=>x(e.target.value)}),n.jsx("span",{className:"input-group-text border-start-0 bg-transparent",children:n.jsx("i",{className:"bi bi-search"})})]})]}),S.length>0?S.map((e,t)=>n.jsxs("div",{className:"form-check py-3 pl-5 mr-3 pc-multi-select-opt",style:{cursor:"pointer"},children:[n.jsx("input",{className:"form-check-input pc-multi-select-opt-input",type:"checkbox",id:`option-${t}`,checked:_(e),onChange:()=>(e=>{let n=h.some(n=>n.value===e.value)?h.filter(n=>n.value!==e.value):[...h,e];n=N.filter(e=>n.some(n=>n.value===e.value)),v(n),a?.(c,n.map(e=>e.original))})(e),name:c,required:d}),n.jsx("label",{className:"form-check-label ms-2",htmlFor:`option-${t}`,children:e.name})]},t)):n.jsx("div",{className:"text-center text-muted py-2",children:"No records found"})]})}),n.jsx("style",{jsx:!0,children:"\n .multi-slc-dropdown-options-wrp {\n border-radius: 0.375rem;\n background-color: var(--kt-page-bg);\n }\n .pc-multi-select-opt {\n padding: 0 15px 0 38px;\n }\n .pc-multi-select-opt:hover {\n background-color: var(--kt-input-solid-bg);\n }\n .pc-multi-select-opt-input {\n margin-top: 3px;\n }\n .pc-multi-select-opt label {\n color: var(--kt-form-check-label-color-checked);\n }\n .pc-ele-border {\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n }\n .pc-ele-border.invalid{\n border-color: var(--kt-danger);\n }\n .pc-err-txt {\n color: var(--kt-danger);\n }\n "})]})},exports.PCRadio=({label:e,checked:t=!1,onChange:r,name:a,value:o,disabled:i=!1,id:l,className:s="",dataTestId:c})=>n.jsxs("div",{className:`form-check ${s}`,"data-testid":c,children:[n.jsx("input",{className:"form-check-input",type:"radio",name:a,id:l,value:o,checked:t,onChange:r,disabled:i}),e&&n.jsx("label",{className:"form-check-label",htmlFor:l,children:e})]}),exports.PCRow=q,exports.PCSelectDropdown=A,exports.PCTable=({value:t=[],columns:r=[],style:a={},caption:o,header:i,footer:l,children:s,paginator:c=!1,rowsPerPageOptions:d=[10,25,50],currentPageReportTemplate:u="Showing {first} to {last} of {totalRecords} records",onPageChange:p=()=>{},paginationConfig:f=null})=>{const m=!!f,[h,v]=e.useState(1),[g,b]=e.useState(d[0]),y=m?f.current_page:h,x=m?f.page_size:g,w=m?f.total_records:t.length,C=m?f.total_pages:Math.ceil(w/x),j=e.useMemo(()=>{if(m)return t;const e=(y-1)*x,n=e+x;return t.slice(e,n)},[t,y,x,m]),k=e=>{e<1||e>C||(m||v(e),p({page:e,rows:x}))},N=r?.length>0,_=e.Children.toArray(s).some(n=>e.isValidElement(n)&&"tbody"===n.type),S=!N&&e.Children.count(s)>0;return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"table-responsive",children:[o&&n.jsx("div",{className:"mb-2",children:o}),n.jsxs("table",{className:"table pc-table align-middle table-row-dashed fs-6 gy-3 mb-0 dataTable no-footer table-hover gs-4",style:a,children:[N?n.jsx("thead",{children:n.jsx("tr",{children:r.map((e,t)=>n.jsx("th",{children:e.header},t))})}):i&&n.jsx("thead",{children:i}),N?n.jsx("tbody",{children:j.map((e,t)=>n.jsx("tr",{children:r.map((t,r)=>n.jsx("td",{children:n.jsx("div",{className:"py-2",children:e[t.field]})},r))},t))}):S&&(_?s:n.jsx("tbody",{children:s})),l&&n.jsx("tfoot",{children:l})]})]}),c&&n.jsxs("div",{className:"d-flex justify-content-between align-items-center mt-5 pc-pagination-wrp",children:[n.jsxs("div",{className:"dataTables_length d-flex align-items-center",children:[n.jsx("select",{className:"form-select form-select-sm form-select-solid w-auto me-3",value:x,onChange:e=>{const n=parseInt(e.target.value,10);m||(b(n),v(1)),p({page:1,rows:n})},children:d.map(e=>n.jsx("option",{value:e,children:e},e))})," ",n.jsx("div",{children:(()=>{const e=(y-1)*x+1,n=Math.min(e+x-1,w);return u.replace("{first}",e).replace("{last}",n).replace("{totalRecords}",w)})()})]}),n.jsx("div",{className:"d-flex align-items-center gap-2",children:n.jsx("nav",{children:n.jsxs("ul",{className:"pagination mb-0",children:[n.jsx("li",{className:"page-item "+(1===y?"disabled":""),children:n.jsxs("button",{className:"page-link",onClick:()=>k(1),children:[n.jsx("i",{class:"previous"}),n.jsx("i",{style:{marginLeft:"-5px"},class:"previous"})]})}),n.jsx("li",{className:"page-item "+(1===y?"disabled":""),children:n.jsx("button",{className:"page-link",onClick:()=>k(y-1),children:n.jsx("i",{class:"previous"})})}),Array.from({length:Math.min(C,5)},(e,t)=>{const r=y<=3?t+1:y-2+t;return r>C?null:n.jsx("li",{className:"page-item "+(y===r?"active":""),children:n.jsx("button",{className:"page-link",onClick:()=>k(r),children:r})},r)}),n.jsx("li",{className:"page-item "+(y===C?"disabled":""),children:n.jsx("button",{className:"page-link",onClick:()=>k(y+1),children:n.jsx("i",{class:"next"})})}),n.jsx("li",{className:"page-item "+(y===C?"disabled":""),children:n.jsxs("button",{className:"page-link",onClick:()=>k(C),children:[n.jsx("i",{class:"next fs-1"}),n.jsx("i",{style:{marginLeft:"-5px"},class:"next"})]})})]})})})]})]})},exports.PCTextarea=I,exports.PCTooltip=P,exports.ValueRangeSlider=Ta;
|