peercore-ui-library 1.0.31 → 1.0.32

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 CHANGED
@@ -1,4 +1,4 @@
1
- import e,{useState as n,useRef as t,useEffect as r,useMemo as l,useId as o}from"react";import{jsxs as a,jsx as i,Fragment as s}from"react/jsx-runtime";function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d,p={exports:{}},u={exports:{}},h={};var m,f,g,y,v,b,w,x,C,N,k,S,O,T,M,L={};
1
+ import e,{useState as n,useRef as t,useEffect as r,useMemo as a,useId as o,Children as i,cloneElement as l,forwardRef as c,useCallback as s,useImperativeHandle as d,useLayoutEffect as u,createElement as p}from"react";import{jsxs as f,jsx as h,Fragment as m}from"react/jsx-runtime";import{createPortal as v}from"react-dom";function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g,b={exports:{}},w={exports:{}},C={};var x,_,k,N,O,D,S,T,E,M,L,A,j,P,I,V={};
2
2
  /** @license React v16.13.1
3
3
  * react-is.development.js
4
4
  *
@@ -6,9 +6,9 @@ import e,{useState as n,useRef as t,useEffect as r,useMemo as l,useId as o}from"
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 j(){return f||(f=1,"production"===process.env.NODE_ENV?u.exports=function(){if(d)return h;d=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,l=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var d=e.$$typeof;switch(d){case n:switch(e=e.type){case s:case c:case r:case o:case l:case u:return e;default:switch(e=e&&e.$$typeof){case i:case p:case g:case f:case a:return e;default:return d}}case t:return d}}}function C(e){return x(e)===c}return h.AsyncMode=s,h.ConcurrentMode=c,h.ContextConsumer=i,h.ContextProvider=a,h.Element=n,h.ForwardRef=p,h.Fragment=r,h.Lazy=g,h.Memo=f,h.Portal=t,h.Profiler=o,h.StrictMode=l,h.Suspense=u,h.isAsyncMode=function(e){return C(e)||x(e)===s},h.isConcurrentMode=C,h.isContextConsumer=function(e){return x(e)===i},h.isContextProvider=function(e){return x(e)===a},h.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},h.isForwardRef=function(e){return x(e)===p},h.isFragment=function(e){return x(e)===r},h.isLazy=function(e){return x(e)===g},h.isMemo=function(e){return x(e)===f},h.isPortal=function(e){return x(e)===t},h.isProfiler=function(e){return x(e)===o},h.isStrictMode=function(e){return x(e)===l},h.isSuspense=function(e){return x(e)===u},h.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===l||e===u||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===a||e.$$typeof===i||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},h.typeOf=x,h}():u.exports=(m||(m=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,l=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,i=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,p=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case n:var f=e.type;switch(f){case s:case c:case r:case o:case l:case p:return f;default:var g=f&&f.$$typeof;switch(g){case i:case d:case m:case h:case a:return g;default:return u}}case t:return u}}}var w=s,x=c,C=i,N=a,k=n,S=d,O=r,T=m,M=h,$=t,j=o,E=l,z=p,V=!1;function A(e){return b(e)===c}L.AsyncMode=w,L.ConcurrentMode=x,L.ContextConsumer=C,L.ContextProvider=N,L.Element=k,L.ForwardRef=S,L.Fragment=O,L.Lazy=T,L.Memo=M,L.Portal=$,L.Profiler=j,L.StrictMode=E,L.Suspense=z,L.isAsyncMode=function(e){return V||(V=!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.")),A(e)||b(e)===s},L.isConcurrentMode=A,L.isContextConsumer=function(e){return b(e)===i},L.isContextProvider=function(e){return b(e)===a},L.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},L.isForwardRef=function(e){return b(e)===d},L.isFragment=function(e){return b(e)===r},L.isLazy=function(e){return b(e)===m},L.isMemo=function(e){return b(e)===h},L.isPortal=function(e){return b(e)===t},L.isProfiler=function(e){return b(e)===o},L.isStrictMode=function(e){return b(e)===l},L.isSuspense=function(e){return b(e)===p},L.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===l||e===p||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===i||e.$$typeof===d||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===f)},L.typeOf=b}()),L)),u.exports}
9
+ */function z(){return _||(_=1,"production"===process.env.NODE_ENV?w.exports=function(){if(g)return C;g=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,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,c=e?Symbol.for("react.async_mode"):60111,s=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,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case n:switch(e=e.type){case c:case s:case r:case o:case a:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case h:case f:case i:return e;default:return p}}case t:return p}}}function x(e){return w(e)===s}return C.AsyncMode=c,C.ConcurrentMode=s,C.ContextConsumer=l,C.ContextProvider=i,C.Element=n,C.ForwardRef=d,C.Fragment=r,C.Lazy=h,C.Memo=f,C.Portal=t,C.Profiler=o,C.StrictMode=a,C.Suspense=u,C.isAsyncMode=function(e){return x(e)||w(e)===c},C.isConcurrentMode=x,C.isContextConsumer=function(e){return w(e)===l},C.isContextProvider=function(e){return w(e)===i},C.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},C.isForwardRef=function(e){return w(e)===d},C.isFragment=function(e){return w(e)===r},C.isLazy=function(e){return w(e)===h},C.isMemo=function(e){return w(e)===f},C.isPortal=function(e){return w(e)===t},C.isProfiler=function(e){return w(e)===o},C.isStrictMode=function(e){return w(e)===a},C.isSuspense=function(e){return w(e)===u},C.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===s||e===o||e===a||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===i||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},C.typeOf=w,C}():w.exports=(x||(x=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,c=e?Symbol.for("react.async_mode"):60111,s=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,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case n:var m=e.type;switch(m){case c:case s:case r:case o:case a:case u:return m;default:var v=m&&m.$$typeof;switch(v){case l:case d:case h:case f:case i:return v;default:return p}}case t:return p}}}var w=c,C=s,x=l,_=i,k=n,N=d,O=r,D=h,S=f,T=t,E=o,M=a,L=u,A=!1;function j(e){return b(e)===s}V.AsyncMode=w,V.ConcurrentMode=C,V.ContextConsumer=x,V.ContextProvider=_,V.Element=k,V.ForwardRef=N,V.Fragment=O,V.Lazy=D,V.Memo=S,V.Portal=T,V.Profiler=E,V.StrictMode=M,V.Suspense=L,V.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.")),j(e)||b(e)===c},V.isConcurrentMode=j,V.isContextConsumer=function(e){return b(e)===l},V.isContextProvider=function(e){return b(e)===i},V.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},V.isForwardRef=function(e){return b(e)===d},V.isFragment=function(e){return b(e)===r},V.isLazy=function(e){return b(e)===h},V.isMemo=function(e){return b(e)===f},V.isPortal=function(e){return b(e)===t},V.isProfiler=function(e){return b(e)===o},V.isStrictMode=function(e){return b(e)===a},V.isSuspense=function(e){return b(e)===u},V.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===s||e===o||e===a||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===i||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g||e.$$typeof===m)},V.typeOf=b}()),V)),w.exports}
10
10
  /*
11
11
  object-assign
12
12
  (c) Sindre Sorhus
13
13
  @license MIT
14
- */function E(){if(y)return g;y=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;return g=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,l){for(var o,a,i=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)&&(i[c]=o[c]);if(e){a=e(o);for(var d=0;d<a.length;d++)t.call(o,a[d])&&(i[a[d]]=o[a[d]])}}return i},g}function z(){if(b)return v;b=1;return v="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function V(){return x?w:(x=1,w=Function.call.bind(Object.prototype.hasOwnProperty))}function A(){if(N)return C;N=1;var e=function(){};if("production"!==process.env.NODE_ENV){var n=z(),t={},r=V();e=function(e){var n="Warning: "+e;"undefined"!=typeof console&&console.error(n);try{throw new Error(n)}catch(e){}}}function l(l,o,a,i,s){if("production"!==process.env.NODE_ENV)for(var c in l)if(r(l,c)){var d;try{if("function"!=typeof l[c]){var p=Error((i||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}d=l[c](o,c,i,a,null,n)}catch(e){d=e}if(!d||d instanceof Error||e((i||"React class")+": type specification of "+a+" `"+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 u=s?s():"";e("Failed "+a+" type: "+d.message+(null!=u?u:""))}}}return l.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(t={})},C=l}function D(){if(S)return k;S=1;var e=j(),n=E(),t=z(),r=V(),l=A(),o=function(){};function a(){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){}}),k=function(i,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",p={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:m(a),arrayOf:function(e){return m(function(n,r,l,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+l+"` has invalid PropType notation inside arrayOf.");var i=n[r];if(!Array.isArray(i))return new h("Invalid "+o+" `"+a+"` of type `"+v(i)+"` supplied to `"+l+"`, expected an array.");for(var s=0;s<i.length;s++){var c=e(i,s,l,o,a+"["+s+"]",t);if(c instanceof Error)return c}return null})},element:m(function(e,n,t,r,l){var o=e[n];return i(o)?null:new h("Invalid "+r+" `"+l+"` of type `"+v(o)+"` supplied to `"+t+"`, expected a single ReactElement.")}),elementType:m(function(n,t,r,l,o){var a=n[t];return e.isValidElementType(a)?null:new h("Invalid "+l+" `"+o+"` of type `"+v(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return m(function(n,t,r,l,o){if(!(n[t]instanceof e)){var a=e.name||d;return new h("Invalid "+l+" `"+o+"` of type `"+(((i=n[t]).constructor&&i.constructor.name?i.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var i;return null})},node:m(function(e,n,t,r,l){return y(e[n])?null:new h("Invalid "+r+" `"+l+"` supplied to `"+t+"`, expected a ReactNode.")}),objectOf:function(e){return m(function(n,l,o,a,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=n[l],c=v(s);if("object"!==c)return new h("Invalid "+a+" `"+i+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var p=e(s,d,o,a,i+"."+d,t);if(p instanceof Error)return p}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."),a;return m(function(n,t,r,l,o){for(var a=n[t],i=0;i<e.length;i++)if(u(a,e[i]))return null;var s=JSON.stringify(e,function(e,n){return"symbol"===b(n)?String(n):n});return new h("Invalid "+l+" `"+o+"` of value `"+String(a)+"` 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."),a;for(var n=0;n<e.length;n++){var l=e[n];if("function"!=typeof l)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(l)+" at index "+n+"."),a}return m(function(n,l,o,a,i){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(n,l,o,a,i,t);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new h("Invalid "+a+" `"+i+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")})},shape:function(e){return m(function(n,r,l,o,a){var i=n[r],s=v(i);if("object"!==s)return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+l+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(l,o,a,c,b(d));var p=d(i,c,l,o,a+"."+c,t);if(p)return p}return null})},exact:function(e){return m(function(l,o,a,i,s){var c=l[o],d=v(c);if("object"!==d)return new h("Invalid "+i+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var p=n({},l[o],e);for(var u in p){var m=e[u];if(r(e,u)&&"function"!=typeof m)return g(a,i,s,u,b(m));if(!m)return new h("Invalid "+i+" `"+s+"` key `"+u+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(l[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var f=m(c,u,a,i,s+"."+u,t);if(f)return f}return null})}};function u(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}function h(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 l(l,a,i,c,p,u,m){if(c=c||d,u=u||i,m!==t){if(s){var f=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 f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+i;!n[g]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+u+"` 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[g]=!0,r++)}}return null==a[i]?l?null===a[i]?new h("The "+p+" `"+u+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+p+" `"+u+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,i,c,p,u)}var a=l.bind(null,!1);return a.isRequired=l.bind(null,!0),a}function f(e){return m(function(n,t,r,l,o,a){var i=n[t];return v(i)!==e?new h("Invalid "+l+" `"+o+"` of type `"+b(i)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function g(e,n,t,r,l){return new h((e||"React class")+": "+n+" type `"+t+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+l+"`.")}function y(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(y);if(null===e||i(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(!y(t.value))return!1}else for(;!(t=r.next()).done;){var l=t.value;if(l&&!y(l[1]))return!1}return!0;default:return!1}}function v(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 b(e){if(null==e)return""+e;var n=v(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function w(e){var n=b(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}return h.prototype=Error.prototype,p.checkPropTypes=l,p.resetWarningCache=l.resetWarningCache,p.PropTypes=p,p},k}function H(){if(T)return O;T=1;var e=z();function n(){}function t(){}return t.resetWarningCache=n,O=function(){function r(n,t,r,l,o,a){if(a!==e){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function l(){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:l,element:r,elementType:r,instanceOf:l,node:r,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:t,resetWarningCache:n};return o.PropTypes=o,o}}function q(){if(M)return p.exports;if(M=1,"production"!==process.env.NODE_ENV){var e=j();p.exports=D()(e.isElement,true)}else p.exports=H()();return p.exports}var P=c(q());function R({label:e,icon:n,loading:t=!1,disabled:r=!1,variant:l="primary",type:o="button",className:s="",...c}){const d=!!e;return a("button",{type:o,className:`btn btn-${l} ${s} d-flex align-items-center justify-center gap-2 ${!e&&n?"p-2":""}`,disabled:r||t,...c,children:[t&&i("span",{className:"custom-spinner"}),n&&i("span",{className:"px-2",children:n}),d&&i("span",{children:e}),i("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 "})]})}R.propTypes={label:P.oneOfType([P.string,P.node]),icon:P.node,loading:P.bool,disabled:P.bool,variant:P.oneOf(["primary","secondary","outline-primary","outline-secondary","success","danger","warning","info","light","dark"]),type:P.oneOf(["button","submit","reset"])};const I=({title:e,children:n,isOpen:t,onToggle:r,index:l,id:o,className:c="",OpenByDefault:d=!1,"data-testid":p})=>{const u=o||`collapse-${l}`,h=`heading-${l}`;return a(s,{children:[a("div",{className:`accordion-item pc-accordion-item pb-0 mb-2 ${c}`.trim(),"data-testid":p,children:[i("h2",{className:"accordion-header",id:h,children:i("button",{className:"accordion-button "+(t?"":"collapsed"),type:"button",onClick:r,"aria-expanded":t,"aria-controls":u,children:"string"==typeof e?i("span",{dangerouslySetInnerHTML:{__html:e}}):e})}),i("div",{id:u,className:"accordion-collapse collapse "+(t?"show":""),"aria-labelledby":h,children:i("div",{className:"accordion-body",children:n})})]}),i("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 "})]})},B=({children:t,singleOpen:r=!0,id:l,className:o="","data-testid":c})=>{const[d,p]=n(()=>{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}),u=e.Children.map(t,(n,t)=>{if(e.isValidElement(n)){const l=d.includes(t);return e.cloneElement(n,{index:t,isOpen:l,onToggle:()=>((e,n,t)=>{p(l=>{const o=l.includes(e);let a;return a=r?o?[]:[e]:o?l.filter(n=>n!==e):[...l,e],!o&&n&&n(),o&&t&&t(),a})})(t,n.props.onOpen,n.props.onClose)})}return n});return a(s,{children:[i("div",{className:`pc-accordion accordion ${o}`.trim(),id:l||"pcaccordionWrapper","data-testid":c,children:u}),i("style",{jsx:!0,children:"\n .pc-accordion{;\n }\n "})]})},_=({options:e=[],placeholder:l="Select...",onChange:o,isInvalid:s=!1,errMsg:c="",id:d,name:p,dataTestId:u,enableSearch:h=!1,selected:m=null})=>{const[f,g]=n(!1),[y,v]=n(""),b=t(null),w=t(null),[x,C]=n(null),N=null!==m?m:x;r(()=>{null!==m&&C(m)},[m]),r(()=>{const e=e=>{b.current&&!b.current.contains(e.target)&&g(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const k=e.filter(e=>e.label.toLowerCase().includes(y.toLowerCase()));return a("div",{className:"position-relative w-100",ref:b,children:[a("div",{className:"dropdown",children:[i("button",{type:"button",ref:w,className:"form-select pc-ele-border text-start "+(s?"invalid":""),onClick:()=>g(e=>!e),id:d,name:p,"data-testid":u,children:N?.label||l}),f&&a("div",{className:"slc-dropdown-options-wrp show w-100 pc-ele-border position-absolute top-100 start-0 z-index-2",style:{maxHeight:300},children:[h&&i("div",{className:"mb-2 px-3 py-2 border-bottom",children:i("input",{type:"text",className:"form-control pc-select-opt-input",placeholder:"Search...",value:y,onChange:e=>v(e.target.value)})}),k.length>0?k.map((e,n)=>i("span",{className:"pc-select-opt d-block w-100 py-3 px-4",type:"button",onClick:()=>(e=>{null===m&&C(e),g(!1),o?.(p,e)})(e),children:e.label},n)):i("div",{className:"text-muted px-2",children:"No results found"})]})]}),s&&c&&i("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"},children:c}),i("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 "})]})};_.propTypes={options:P.arrayOf(P.shape({label:P.string,value:P.any})).isRequired,placeholder:P.string,onChange:P.func,isInvalid:P.bool,errMsg:P.string,id:P.string,name:P.string,dataTestId:P.string,enableSearch:P.bool};const K=({placement:e="top",caption:n,children:t,customStyles:r,visibility:l=!0})=>a(s,{children:[a("div",{className:` tooltip-wrapper tooltip-${e}`,tabIndex:"0",children:[t,l&&i("div",{className:`tooltip-content shadow-sm ${r}`,role:"tooltip",children:n})]}),i("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: ${r?"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 `})]});K.propTypes={placement:P.oneOf(["top","bottom","left","right"]),caption:P.string.isRequired,children:P.node.isRequired};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===t&&r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}(".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 F=({value:t=[],columns:r=[],style:o={},caption:c,header:d,footer:p,children:u,paginator:h=!1,rowsPerPageOptions:m=[10,25,50],currentPageReportTemplate:f="Showing {first} to {last} of {totalRecords} records",onPageChange:g=()=>{},paginationConfig:y=null})=>{const v=!!y,[b,w]=n(1),[x,C]=n(m[0]),N=v?y.current_page:b,k=v?y.page_size:x,S=v?y.total_records:t.length,O=v?y.total_pages:Math.ceil(S/k),T=l(()=>{if(v)return t;const e=(N-1)*k,n=e+k;return t.slice(e,n)},[t,N,k,v]),M=e=>{e<1||e>O||(v||w(e),g({page:e,rows:k}))},$=r?.length>0,L=e.Children.toArray(u).some(n=>e.isValidElement(n)&&"tbody"===n.type),j=!$&&e.Children.count(u)>0;return a(s,{children:[a("div",{className:"table-responsive",children:[c&&i("div",{className:"mb-2",children:c}),a("table",{className:"table pc-table align-middle table-row-dashed fs-6 gy-3 mb-0 dataTable no-footer table-hover gs-4",style:o,children:[$?i("thead",{children:i("tr",{children:r.map((e,n)=>i("th",{children:e.header},n))})}):d&&i("thead",{children:d}),$?i("tbody",{children:T.map((e,n)=>i("tr",{children:r.map((n,t)=>i("td",{children:i("div",{className:"py-2",children:e[n.field]})},t))},n))}):j&&(L?u:i("tbody",{children:u})),p&&i("tfoot",{children:p})]})]}),h&&a("div",{className:"d-flex justify-content-between align-items-center mt-5 pc-pagination-wrp",children:[a("div",{className:"dataTables_length d-flex align-items-center",children:[i("select",{className:"form-select form-select-sm form-select-solid w-auto me-3",value:k,onChange:e=>{const n=parseInt(e.target.value,10);v||(C(n),w(1)),g({page:1,rows:n})},children:m.map(e=>i("option",{value:e,children:e},e))})," ",i("div",{children:(()=>{const e=(N-1)*k+1,n=Math.min(e+k-1,S);return f.replace("{first}",e).replace("{last}",n).replace("{totalRecords}",S)})()})]}),i("div",{className:"d-flex align-items-center gap-2",children:i("nav",{children:a("ul",{className:"pagination mb-0",children:[i("li",{className:"page-item "+(1===N?"disabled":""),children:a("button",{className:"page-link",onClick:()=>M(1),children:[i("i",{class:"previous"}),i("i",{style:{marginLeft:"-5px"},class:"previous"})]})}),i("li",{className:"page-item "+(1===N?"disabled":""),children:i("button",{className:"page-link",onClick:()=>M(N-1),children:i("i",{class:"previous"})})}),Array.from({length:Math.min(O,5)},(e,n)=>{const t=N<=3?n+1:N-2+n;return t>O?null:i("li",{className:"page-item "+(N===t?"active":""),children:i("button",{className:"page-link",onClick:()=>M(t),children:t})},t)}),i("li",{className:"page-item "+(N===O?"disabled":""),children:i("button",{className:"page-link",onClick:()=>M(N+1),children:i("i",{class:"next"})})}),i("li",{className:"page-item "+(N===O?"disabled":""),children:a("button",{className:"page-link",onClick:()=>M(O),children:[i("i",{class:"next fs-1"}),i("i",{style:{marginLeft:"-5px"},class:"next"})]})})]})})})]})]})},Z=({value:e,onChange:n,isDisabled:t=!1,isInvalid:r=!1,maxChar:l=null,showCharCount:o=!1,cols:s=30,rows:c=4,id:d,name:p,dataTestId:u,errMsg:h="",placeholder:m=""})=>a("div",{className:"position-relative w-100",children:[l&&o&&a("div",{className:"form-text text-end",children:[e.length,"/",l," characters"]}),i("textarea",{id:d,name:p,"data-testid":u,className:"form-control pc-ele-border "+(r?"invalid":""),cols:s,rows:c,value:e,onChange:e=>{const{value:t}=e.target;(!l||t.length<=l)&&n?.(p,t)},placeholder:m,disabled:t}),r&&h&&i("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"},children:h}),i("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 "})]});Z.propTypes={value:P.string.isRequired,onChange:P.func,isDisabled:P.bool,isInvalid:P.bool,maxChar:P.number,showCharCount:P.bool,cols:P.number,rows:P.number,id:P.string,name:P.string,dataTestId:P.string,errMsg:P.string,placeholder:P.string};const W=({options:e=[],placeholder:o="Select...",onChange:s,enableSearch:c=!0,enableSelectAll:d=!0,showCountAfter:p=null,value:u=[],name:h,required:m=!1,labelKey:f="name",valueKey:g="value",isInvalid:y=!1,errMsg:v=""})=>{const[b,w]=n([]),[x,C]=n(!1),[N,k]=n(""),S=t(null),O=t(null),[T,M]=n("100%"),$=l(()=>((e,n,t)=>Array.isArray(e)?e.map(e=>({name:e?.[n]??"",value:e?.[t]??"",original:e})):[])(e,f,g),[e,f,g]);r(()=>{const e=e=>{S.current&&!S.current.contains(e.target)&&C(!1)},n=()=>{O.current&&M(`${O.current.offsetWidth}px`)};return document.addEventListener("mousedown",e),window.addEventListener("resize",n),n(),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",n)}},[]),r(()=>{if(!Array.isArray(u))return;if(!(u.length===b.length&&u.every(e=>b.some(n=>n.original?.[g]===e?.[g])))){const e=$.filter(e=>u.some(n=>n?.[g]===e.original?.[g]));w(e)}},[u,$]);const L=e=>b.some(n=>n.value===e.value),j=$.filter(e=>e.name.toLowerCase().includes(N.toLowerCase()));return a("div",{className:"position-relative pc-multi-select",ref:S,children:[i("div",{ref:O,className:"form-select form-select-solid pc-ele-border d-flex justify-content-between align-items-center "+(y?"invalid":""),onClick:()=>C(!x),style:{cursor:"pointer"},children:i("span",{className:"text-truncate",style:{maxWidth:"85%"},children:(()=>{if(0===b.length)return o;if(null!=p&&b.length>p){return`${b.slice(0,p).map(e=>e.name).join(", ")} +${b.length-p} more`}return b.map(e=>e.name).join(", ")})()})}),y&&v&&i("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%",zIndex:9999},children:v}),x&&i("div",{className:"multi-slc-dropdown-options-wrp show position-absolute top-100 start-0",style:{maxHeight:300,width:T,zIndex:9999},children:a("div",{className:"dropdown-menu relative show py-3 shadow-none border position-relative",style:{maxHeight:300,overflowY:"auto",width:T,zIndex:9999},children:[(c||d)&&a("div",{className:"d-flex align-items-center gap-2 pb-3 mb-3 border-bottom",children:[d&&a("div",{className:"form-check pl-3 ms-4",children:[i("input",{type:"checkbox",className:"form-check-input",id:"selectAll",checked:b.length===$.length,onChange:()=>{const e=b.length===$.length?[]:[...$];w(e),s?.(h,e.map(e=>e.original))},name:h,required:m}),i("label",{className:"form-check-label",htmlFor:"selectAll",children:"All"})]}),c&&a("div",{className:"input-group me-3 "+(d?"":"ms-3"),children:[i("input",{type:"text",className:"form-control border-end-0",placeholder:"Search...",value:N,onChange:e=>k(e.target.value)}),i("span",{className:"input-group-text border-start-0 bg-transparent",children:i("i",{className:"bi bi-search"})})]})]}),j.length>0?j.map((e,n)=>a("div",{className:"form-check py-3 pl-5 mr-3 pc-multi-select-opt",style:{cursor:"pointer"},children:[i("input",{className:"form-check-input pc-multi-select-opt-input",type:"checkbox",id:`option-${n}`,checked:L(e),onChange:()=>(e=>{let n=b.some(n=>n.value===e.value)?b.filter(n=>n.value!==e.value):[...b,e];n=$.filter(e=>n.some(n=>n.value===e.value)),w(n),s?.(h,n.map(e=>e.original))})(e),name:h,required:m}),i("label",{className:"form-check-label ms-2",htmlFor:`option-${n}`,children:e.name})]},n)):i("div",{className:"text-center text-muted py-2",children:"No records found"})]})}),i("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 "})]})},Y={ArrowRightBold:e=>i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",...e,children:i("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 14l4-4l4 4",...e})}),Down:e=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",...e,children:i("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 10l4 4l4-4"})}),NewRow:e=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"128",height:"128",viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:a("g",{fill:"none",children:[i("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"}),i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:640,height:512,viewBox:"0 0 640 512",...e,children:i("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:n})=>a("div",{className:"position-relative email-icon-wrapper",children:[i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...n,children:i("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&&i("span",{className:"counter-badge",children:e>9?"9+":e}),i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 56 56",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:9,fill:"none",viewBox:"0 0 10 9",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:7,height:8,viewBox:"0 0 7 10",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:20,viewBox:"0 0 9 11",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:23,height:23,viewBox:"0 0 23 23",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:[i("path",{fill:"currentColor",d:"M11.001 10h2v5h-2zM11 16h2v2h-2z"}),i("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=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:i("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"})})};function U({name:e,width:t="1em",height:r="1em",className:l="",color:o="currentColor",activeColor:a,hoverColor:s,...c}){const[d,p]=n(!1),[u,h]=n(!1),m=Y[e];return m?i(m,{width:t,height:r,className:l,style:{color:u?a||o:d&&s||o,cursor:c.onClick?"pointer":void 0},onMouseEnter:()=>p(!0),onMouseLeave:()=>{p(!1),h(!1)},onMouseDown:()=>h(!0),onMouseUp:()=>h(!1),...c}):(console.warn(`Icon "${e}" not found`),null)}function G(e){var n,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(t=G(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function J(){for(var e,n,t=0,r="",l=arguments.length;t<l;t++)(e=arguments[t])&&(n=G(e))&&(r&&(r+=" "),r+=n);return r}const X=({fluid:e=!1,className:n="",children:t,...r})=>{const l=J(e?"container-fluid":"container",n);return i("div",{className:l,...r,children:t})};X.propTypes={fluid:P.bool,className:P.string,children:P.node};const Q=({justify:e="",align:n="",className:t="",children:r,...l})=>{const o=J("row",e&&`justify-content-${e}`,n&&`align-items-${n}`,t);return i("div",{className:o,...l,children:r})};Q.propTypes={justify:P.oneOf(["start","center","end","around","between","evenly"]),align:P.oneOf(["start","center","end","stretch","baseline"]),className:P.string,children:P.node};const ee=({xs:e,sm:n,md:t,lg:r,xl:l,offset:o,order:a,className:s="",children:c,...d})=>{const p=J(void 0!==e&&`col-${e}`,void 0!==n&&`col-sm-${n}`,void 0!==t&&`col-md-${t}`,void 0!==r&&`col-lg-${r}`,void 0!==l&&`col-xl-${l}`,void 0!==o&&`offset-${o}`,void 0!==a&&`order-${a}`,s);return i("div",{className:p,...d,children:c})};ee.propTypes={xs:P.oneOfType([P.string,P.number]),sm:P.oneOfType([P.string,P.number]),md:P.oneOfType([P.string,P.number]),lg:P.oneOfType([P.string,P.number]),xl:P.oneOfType([P.string,P.number]),offset:P.oneOfType([P.string,P.number]),order:P.oneOfType([P.string,P.number]),className:P.string,children:P.node};const ne=({title:e,children:n,footer:l,onClose:o,customStyles:c="",maxWidth:d="600px",width:p="100%",maxHeight:u="80vh",outsideClickHandle:h=!1})=>{const m=t();return r(()=>{if(!h)return;const e=e=>{m.current&&!m.current.contains(e.target)&&o?.()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[o]),a(s,{children:[i("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:a("div",{className:`card position-relative shadow p-4 ${c}`,ref:m,style:{width:p,maxWidth:d,maxHeight:u,overflowY:"auto"},children:[i("div",{className:"w-full d-flex justify-content-end svg-icon svg-icon-1",children:i("div",{className:"cursor-pointer w-24px h-24px",onClick:o,children:i(te,{})})}),e&&i("h5",{className:"mb-3",children:e}),n&&i("div",{className:"mb-3",children:n}),l&&i("div",{className:"text-end",children:l})]})}),i("style",{jsx:!0,children:"\n .conditions-overlay {\n z-index: 50;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n "})]})},te=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",children:i("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:i("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"12;0"})})}),re=({label:e="Enter Label",required:n=!1,type:t="",placeholder:r="",errorMessage:l="",value:s,onChange:c,disabled:d=!1,className:p="",maxLength:u,minLength:h,inputSymbol:m,...f})=>{const g=o(),y=f.id||`input-${g}`;return a("div",{className:"form-group-lg",children:[i("label",{htmlFor:y,className:"form-label "+(n?"required":""),children:e}),a("div",{className:"input-group",style:{fontFamily:"inherit"},children:[m&&i("span",{className:"input-group-text border",children:m}),i("input",{id:y,type:t,placeholder:"date"===t?void 0:r,value:s,required:n,onChange:c,disabled:d,maxLength:u,minLength:h,className:`form-control form-control-solid border${l?" is-invalid border-danger":""}${p?` ${p}`:""}`,...f})]}),l&&i("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"},children:l})]})};re.propTypes={label:P.string,required:P.bool,type:P.string,placeholder:P.string,errorMessage:P.string,value:P.oneOfType([P.string,P.number]),onChange:P.func,disabled:P.bool,className:P.string,maxLength:P.oneOfType([P.string,P.number]),minLength:P.oneOfType([P.string,P.number]),inputSymbol:P.node,id:P.string};const le=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})},oe=({label:e="Enter Lable",value:t="",onChange:l,required:o=!1,errorMessage:s="",name:c,disabled:d=!1})=>{const[p,u]=n(le(t));r(()=>{u(le(t))},[t]);return a("div",{className:"form-group",children:[i("label",{className:`form-label ${o&&"required"}`,children:e}),i("div",{className:"input-group",style:{fontFamily:"inherit"},children:i("input",{name:c,disabled:d,required:o,type:"text",value:p,onChange:e=>{const n=e.target.value.replace(/[^\d.]/g,""),t=le(n);u(t),l&&l(c,n)},placeholder:"$0.00","aria-label":"Currency input",className:"form-control form-control-solid border"+(s?" is-invalid border-danger":"")})}),s&&i("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"},children:s})]})},ae=({label:e,checked:n=!1,onChange:t,name:r,value:l,disabled:o=!1,id:s,className:c="",dataTestId:d})=>a("div",{className:`form-check ${c}`,"data-testid":d,children:[i("input",{className:"form-check-input",type:"radio",name:r,id:s,value:l,checked:n,onChange:t,disabled:o}),e&&i("label",{className:"form-check-label",htmlFor:s,children:e})]}),ie={small:"spinner-border-sm",medium:"",large:"spinner-border-lg"},se={primary:"text-primary",secondary:"text-secondary",success:"text-success",danger:"text-danger",warning:"text-warning",info:"text-info",light:"text-light",dark:"text-dark"},ce={primary:"#007bff",secondary:"#6c757d",success:"#28a745",danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:"#f8f9fa",dark:"#343a40"},de="table",pe="dots",ue="bar",he="circular",me="pulse",fe="text",ge="wave",ye=({size:e="medium",color:n="primary",ariaLabel:t="Loading...",loadingType:r="spinner",className:l="",placeholderRows:o=4})=>{const s="large"===e?"":ie[e]||"",c=se[n]||se.primary,d="large"===e?{width:"3rem",height:"3rem",borderWidth:"0.3em"}:{};if(r===de){const e=ce[n]||ce.primary;return i("div",{className:"w-100",children:i("div",{className:"placeholder-glow",children:Array.from({length:o}).map((n,t)=>i("span",{className:`placeholder col-12 rounded bg-secondary${0===t?" mb-2":""}${t===o-1?" mt-2":" mb-2"}`,style:{height:44,display:"block",background:e}},t))})})}if(r===pe){const e=ce[n]||ce.primary;return a("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":t,children:[a("span",{className:"dots-loader",children:[i("span",{style:{background:e}}),i("span",{style:{background:e}}),i("span",{style:{background:e}})]}),i("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(r===ue){return a("div",{style:{width:"100%",padding:"8px 0"},"aria-label":t,children:[i("div",{className:"bar-loader",children:i("div",{style:{background:ce[n]||ce.primary}})}),i("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(r===me){return a("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":t,children:[i("span",{className:"pulse-loader",style:{background:ce[n]||ce.primary}}),i("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(r===fe){const e=ce[n]||ce.primary;return a("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":t,children:[i("span",{style:{color:e},children:"Loading"}),i("span",{className:"ellipsis-loader",style:{color:e}}),i("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(r===ge){const e=ce[n]||ce.primary;return a("div",{style:{display:"inline-flex",alignItems:"center",gap:2},"aria-label":t,children:[a("span",{className:"wave-loader",children:[i("span",{style:{background:e}}),i("span",{style:{background:e}}),i("span",{style:{background:e}}),i("span",{style:{background:e}}),i("span",{style:{background:e}})]}),i("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(r===he){const e=ce[n]||ce.primary;return a("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":t,children:[a("svg",{className:"circular-loader",width:"40",height:"40",viewBox:"0 0 40 40",children:[i("circle",{cx:"20",cy:"20",r:"18",stroke:e,strokeWidth:"4",fill:"none",opacity:"0.2"}),i("circle",{cx:"20",cy:"20",r:"18",stroke:e,strokeWidth:"4",fill:"none",strokeDasharray:"113",strokeDashoffset:"80",style:{animation:"circular-spin 1s linear infinite"}})]}),i("style",{children:"\n @keyframes circular-spin {\n 100% { stroke-dashoffset: 0; }\n }\n "})]})}return a("div",{role:"status","aria-label":t,style:{display:"inline-flex",alignItems:"center"},children:[i("span",{className:`spinner-border ${s} ${c} ${l}`.trim(),style:d,"aria-hidden":"true"}),i("span",{className:"visually-hidden",children:t})]})},ve=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:i("path",{fill:"currentColor",d:"M7 20h2V8h3L8 4L4 8h3zm13-4h-3V4h-2v12h-3l4 4z"})}),be=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",children:i("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"})}),we=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:i("path",{fill:"currentColor",d:"m6 20l4-4H7V4H5v12H2zm5-12h9v2h-9zm0 4h7v2h-7zm0-8h11v2H11zm0 12h5v2h-5z"})}),xe=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:i("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"})}),Ce=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",version:"1.1",children:a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:[i("polygon",{points:"0 0 24 0 24 24 0 24"}),i("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) "})]})}),Ne=()=>i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",version:"1.1",children:a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:[i("polygon",{points:"0 0 24 0 24 24 0 24"}),i("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 ke(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 Se=({datePickerDates:e,setDatePickerDates:n})=>{const l=t();return r(()=>{$(l.current).daterangepicker({dateFormat:"dd-mm-yyyy",autoApply:!0,autoUpdateInput:!0},function(e,t){n({startDate:e.format("YYYY-MM-DD"),endDate:t.format("YYYY-MM-DD")})})},[e,n,l]),a("div",{className:"form-control form-control-solid border d-flex align-items-center p-3 justify-content-between",ref:l,children:[i("div",{className:"fs-6",children:e?a(s,{children:[i("input",{hidden:!0,type:"date",defaultValue:e?.startDate,name:"startDate"}),i("input",{hidden:!0,type:"date",defaultValue:e?.endDate,name:"endDate"}),`${ke(e?.startDate)} - ${ke(e?.endDate)}`]}):"Pick a date range"}),i("span",{className:"svg-icon svg-icon-1 ms-2 me-0",children:a("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i("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"}),i("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"}),i("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"})]})})]})},Oe=()=>null;Oe.propTypes={header:P.oneOfType([P.string,P.node]).isRequired,accessor:P.string,colKey:P.string,filterKey:P.string,sortKey:P.string,filterType:P.string,filterOptions:P.any,sortable:P.bool,headerClassName:P.string,render:P.func,filterAlignment:P.string,children:P.oneOfType([P.func,P.node])},Oe.defaultProps={filterAlignment:"left-0"};const Te=({title:l,data:o=[],children:c,tableClassName:d="",pageSize:p,currentPage:u,totalPages:h=0,onPageChange:m,onPageSizeChange:f,totalRecords:g,pageSizeOptions:y=[10,20,50,100],onSortChange:v,onFilterChange:b,onFilterReset:w,isLoading:x=!1,handleRowClick:C,filterSummery:N,loadingClassName:k,loadingSize:S,loadingType:O,loadingPlaceholderRows:T,loadingColSpan:M})=>{const[$,L]=n([]),[j,E]=n({}),[z,V]=n({}),[A,D]=n(null),[H,q]=n({}),P=t(null);r(()=>{const e=e=>{P.current&&!P.current.contains(e.target)&&D(null)};return null!==A&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[A]);const R=e.Children.toArray(c).filter(n=>e.isValidElement(n)).map(e=>{const{header:n,headerClassName:t,accessor:r,filterAlignment:l="left-0",colKey:o,filterKey:a,sortKey:i,sortable:s,filterType:c,filterOptions:d,render:p}=e.props,u="function"==typeof e.props.children?e.props.children:null;return{header:n,headerClassName:t,accessor:r,colKey:o,filterKey:a||o,sortKey:i||o,sortable:s,filterAlignment:l,filterType:c,filterOptions:d,render:p||u,rawChild:e.props.children}}),I=(e,n)=>{if("object"==typeof e&&null!==e)E(n=>{const t={...n,...e};return b?.(t),t});else{const t={...j,[e]:n};b?.(t),E(t)}},B=e=>{if(D(n=>n===e?null:e),A!==e){const n=R[e],t=n?.filterKey;if(V(e=>({...e,[t]:j[t]||""})),"DATERANGE"===n?.filterType&&t){const e=j[t];e&&"object"==typeof e&&q(n=>({...n,[t]:{startDate:e.from||"",endDate:e.to||""}}))}}},_=1===u?1:p*u-(p-1),K=u+1<h?p*u:g,F=(()=>{if(h<=5)return Array.from({length:h},(e,n)=>n+1);let e=u-Math.floor(2.5),n=e+5-1;return e<1&&(e=1,n=5),n>h&&(n=h,e=n-4),Array.from({length:n-e+1},(n,t)=>e+t)})();function Z(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 a("div",{className:`filtered-table position-relative ${d}`,children:[l&&i("h4",{className:"mb-3",children:l}),a("div",{className:"table-responsive",children:[Object.keys(j).some(e=>j[e])&&a("div",{className:"d-flex justify-content-between align-items-center mb-3 p-2 border bg-light rounded",children:[N&&i("div",{className:"d-flex flex-wrap align-items-center",children:N.filter(e=>""!==e.value&&null!=e.value).map(e=>{let n=e.value;if("object"==typeof e.value&&(e.value.from||e.value.to)){const t=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()}`};n=[e.value.from&&`From ${t(e.value.from)}`,e.value.to&&`To ${t(e.value.to)}`].filter(Boolean).join(" ")}else n=String(e.value);return a("span",{className:"badge bg-primary text-white me-2 mb-1",children:[i("span",{className:"fw-bolder",children:e.label||e.key}),":"," ",n]},e.key)})}),!N&&j&&i("div",{className:"d-flex flex-wrap align-items-center",children:Object.entries(j).map(([e,n])=>{if(!n)return null;const t=R.find(n=>n.filterKey===e),r=t?.header||e;if("object"==typeof n&&(n.from||n.to)){const t=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()}`},l=[n.from&&`From ${t(n.from)}`,n.to&&`To ${t(n.to)}`].filter(Boolean).join(" ");return a("span",{className:"badge bg-primary text-white me-2 mb-1",children:[i("span",{className:"fw-bolder",children:r}),":"," ",l]},e)}return a("span",{className:"badge bg-primary text-white me-2 mb-1",children:[i("span",{className:"fw-bolder",children:r}),":"," ",String(n)]},e)})}),i("div",{children:i("span",{className:"btn btn-sm btn-primary",onClick:()=>{const e={};Object.keys(j).forEach(n=>e[n]=""),E(e),Object.keys(e).forEach(e=>I(e,"")),w(),q({}),E({}),L([])},children:"Reset Filter"})})]}),a("table",{className:"table align-middle position-relative table-row-dashed fs-6 gy-3 mb-0 table-hover filtered_table",children:[i("thead",{children:i("tr",{className:"fw-bold fs-6 fs-md-5 text-gray-900",children:R.map((e,n)=>{const t=e.sortKey,r=e.filterKey,l=$.find(e=>e.field===t);let o=!1;if("DATERANGE"===e.filterType&&r){const e=j[r];o=e&&(e.from||e.to)}else r&&(o=j[r]);return i("th",{scope:"col",className:`text-nowrap min-w-100px min-w-md-auto ${e.headerClassName||""}`,children:a("div",{className:"d-flex align-items-end position-relative",children:[i("span",{dangerouslySetInnerHTML:{__html:e.header}}),a("div",{className:"ms-2 sort-filter-wrp d-flex align-items-end",children:[e.sortable&&t&&a("div",{className:"ms-1",onClick:()=>t?(e=>{const n=e.sortKey;n&&(D(null),L(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"}],v?.(r),r}))})(e):null,style:{cursor:t?"pointer":"default",marginBottom:"1px"},children:["asc"===l?.order&&i("span",{style:{color:"#d8128c"},children:i(be,{})}),"desc"===l?.order&&i("span",{style:{color:"#d8128c"},children:i(we,{})}),!l&&i(ve,{})]}),e.filterType&&i("div",{className:"flt-btn w-25px h-25px pt-1 pe-3 "+(e.sortable?"ms-2":""),style:{color:o?"#d8128c":""},onClick:()=>B(n),children:i(xe,{})})]}),A===n&&a("div",{ref:P,children:["TEXT"===e.filterType&&a("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Z(e.filterAlignment),children:[i("input",{type:"text",className:"form-control form-control-sm",value:z[e.filterKey]||"",placeholder:`Filter ${e.header}`,onChange:n=>V(t=>({...t,[e.filterKey]:n.target.value}))}),a("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[i("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{V(n=>({...n,[e.filterKey]:""})),I(e.filterKey,""),B(n)},children:"Clear"}),i("button",{className:"btn btn-sm btn-primary",onClick:()=>{I(e.filterKey,z[e.filterKey]||""),B(n)},children:"Apply"})]})]}),"DATERANGE"===e.filterType&&a("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Z(e.filterAlignment),children:[i(Se,{datePickerDates:H[e.filterKey]||null,setDatePickerDates:n=>q(t=>({...t,[e.filterKey]:n}))}),a("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[i("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{e.filterKey&&(V(n=>({...n,[e.filterKey]:null})),I(e.filterKey,null),q(n=>{const t={...n};return delete t[e.filterKey],t}),B(n))},children:"Clear"}),i("button",{className:"btn btn-sm btn-primary",onClick:()=>{if(!e.filterKey)return;const t=H[e.filterKey],r={from:t?.startDate||"",to:t?.endDate||""};I(e.filterKey,r),B(n)},children:"Apply"})]})]}),"DROPDOWN"===e.filterType&&a("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Z(e.filterAlignment),children:[a("select",{className:"form-select form-select-sm form-select-solid text-capitalize mb-3",value:z[e.filterKey]||"",onChange:n=>V(t=>({...t,[e.filterKey]:n.target.value})),children:[i("option",{value:"",children:"Any"}),e.filterOptions.map((e,n)=>i("option",{value:e.value,className:"text-capitalize",children:e.label},n))]}),a("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[i("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{V(n=>({...n,[e.filterKey]:""})),I(e.filterKey,""),B(n)},children:"Clear"}),i("button",{className:"btn btn-sm btn-primary",onClick:()=>{I(e.filterKey,z[e.filterKey]||""),B(n)},children:"Apply"})]})]})]})]})},n)})})}),i("tbody",{children:x?i("tr",{children:i("td",{colSpan:M||9,children:i(ye,{className:k||"w-100",size:S||"md",loadingType:O||"table",placeholderRows:T||9})})}):a(s,{children:[o&&o.length>0?o.map((e,n)=>i("tr",{onClick:()=>C(e),style:{cursor:"pointer"},children:R.map((t,r)=>{let l=null;if("function"==typeof t.render)l=t.render(e,n);else if(t.accessor){const n=function(e,n){if(n)return n.split(".").reduce((e,n)=>null==e?void 0:e[n],e)}(e,t.accessor);l=null==n?"":n}else l=t.rawChild??"";return i("td",{children:l},r)})},e.uuid??e.id??n)):i("tr",{children:i("td",{colSpan:R.length,className:"text-center py-4",children:i("div",{className:"my-10 py-10",children:"No data"})})}),o&&o.length<5&&i("tr",{children:i("td",{colSpan:R.length,className:"text-center",children:i("div",{style:{minHeight:"50px"}})})})]})})]})]}),a("div",{className:"d-flex align-items-center justify-content-between mt-6",children:[a("div",{className:"col-sm-12 col-md-6 d-flex align-items-center",children:[i("div",{className:"dataTables_length",children:i("label",{children:i("select",{className:"form-select form-select-sm form-select-solid",value:p,onChange:e=>f(Number(e.target.value)),children:y.map(e=>i("option",{value:e,children:e},e))})})}),a("div",{className:"dataTables_info text-start ms-3",role:"status","aria-live":"polite",children:["Showing ",_," to ",K," of ",g," records"]})]}),i("div",{className:"col-lg-6 col-md-12 d-flex justify-content-end",children:a("ul",{className:"pagination pagination-md",children:[u>1&&i("li",{className:"paginate_button page-item",children:i("span",{className:"page-link svg-icon svg-icon-2",onClick:()=>m(u-1),children:i(Ne,{})})}),h>1&&F.map(e=>i("li",{className:"paginate_button page-item "+(u===e?"active":""),children:i("span",{onClick:()=>m(e),className:"page-link",children:e})},e)),u<h&&i("li",{className:"paginate_button page-item",children:i("span",{className:"page-link svg-icon svg-icon-2",onClick:()=>m(u+1),children:i(Ce,{})})})]})}),i("style",{jsx:!0,global:!0,children:""})]})]})};Te.propTypes={title:P.string,data:P.array,children:P.node.isRequired,tableClassName:P.string,pageSize:P.number.isRequired,currentPage:P.number.isRequired,totalPages:P.number.isRequired,onPageChange:P.func.isRequired,onPageSizeChange:P.func.isRequired,pageSizeOptions:P.array,onSortChange:P.func,onFilterChange:P.func,onFilterReset:P.func,isLoading:P.bool},Te.Col=Oe;const Me=({children:n,items:t,className:r="",ariaLabel:l="Breadcrumb",autoSeparators:o=!1,separatorClass:a="bullet bg-gray-200 w-5px h-2px",separatorContent:s=" - ",direction:c="ltr"})=>{let d=n;if(!d&&Array.isArray(t)){d=t.map((e,n)=>{const r=e.title||e.label||e.lable||"",l=n===t.length-1,o=null!=e.isCurrent?e.isCurrent:l,a=e.linkClass||(o?"pc-breadcrumb-active text-dark fw-semibold":"pc-breadcrumb-link text-muted text-hover-primary"),s=e.icon;return i($e,{href:e.href,title:r,linkClass:a,isCurrent:o,icon:s},n)})}let p=d;if(o){const n=e.Children.toArray(d).filter(Boolean);p=n.reduce((e,t,r)=>(e.push(t),r<n.length-1&&e.push(i(Le,{className:a,content:s,index:r,direction:c},`sep-${r}`)),e),[])}return i("nav",{"aria-label":l,className:`pc-breadcrumb-nav ${r}`.trim(),dir:c,children:i("ol",{className:"pc-breadcrumb list-unstyled d-flex align-items-center m-0 p-0 flex-wrap",children:e.Children.map(p,n=>{if(!e.isValidElement(n))return null;return n.type===$e||n.type===Le?n:i("li",{className:"pc-breadcrumb-item-wrapper",children:n})})})})};Me.propTypes={children:P.node,items:P.arrayOf(P.shape({title:P.oneOfType([P.string,P.node]),label:P.oneOfType([P.string,P.node]),lable:P.oneOfType([P.string,P.node]),href:P.string,linkClass:P.string,isCurrent:P.bool,icon:P.node})),className:P.string,ariaLabel:P.string,autoSeparators:P.bool,separatorClass:P.string,separatorContent:P.oneOfType([P.string,P.node,P.func]),direction:P.oneOf(["ltr","rtl"])};const $e=({href:e,title:n,linkClass:t="text-muted text-hover-primary",isCurrent:r=!1,children:l,icon:o})=>{const c=l||n,d=e,p={className:t,"aria-current":r?"page":void 0},u=d&&"#"!==d,h=a(s,{children:[o&&i("span",{className:"pc-breadcrumb-icon d-inline-flex align-items-center justify-content-center","aria-hidden":"true",children:o}),c]});return i("li",{className:"pc-breadcrumb-item d-flex align-items-center",children:r||!u?i("span",{...p,children:h}):i("a",{href:d,...p,children:h})})};$e.propTypes={href:P.string,title:P.oneOfType([P.string,P.node]),linkClass:P.string,isCurrent:P.bool,children:P.node,icon:P.node};const Le=({className:n="bullet bg-gray-200 w-5px h-2px",content:t,index:r,direction:l="ltr"})=>{let o;if(null==t)o=null;else if("function"==typeof t)o=t(r,l);else if(e.isValidElement(t))o=t;else{let e=t;if("rtl"===l&&"string"==typeof e){const n={">":"<","<":">","»":"«","«":"»","›":"‹","‹":"›"};e=e.split("").map(e=>n[e]||e).join("")}o=e}return i("li",{className:"pc-breadcrumb-separator d-flex align-items-center","aria-hidden":"true",style:{lineHeight:1},children:i("span",{className:`pc-breadcrumb-separator-inner ${n}`.trim(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",margin:"0 4px"},children:null==o?"-":o})})};Le.propTypes={className:P.string,content:P.oneOfType([P.string,P.node,P.func]),index:P.number,direction:P.oneOf(["ltr","rtl"])};export{I as AccordionItem,B as PCAccordionWrapper,Me as PCBreadcrumb,$e as PCBreadcrumbItem,Le as PCBreadcrumbSeparator,R as PCButton,ee as PCCol,X as PCContainer,Te as PCFilteredTable,U as PCIcon,re as PCInput,oe as PCInputCurrency,ye as PCLoading,ne as PCModal,W as PCMultiSelectDropdown,ae as PCRadio,Q as PCRow,_ as PCSelectDropdown,F as PCTable,Z as PCTextarea,K as PCTooltip};
14
+ */function F(){if(N)return k;N=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;return k=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),c=1;c<arguments.length;c++){for(var s in o=Object(arguments[c]))n.call(o,s)&&(l[s]=o[s]);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},k}function H(){if(D)return O;D=1;return O="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function R(){return T?S:(T=1,S=Function.call.bind(Object.prototype.hasOwnProperty))}function q(){if(M)return E;M=1;var e=function(){};if("production"!==process.env.NODE_ENV){var n=H(),t={},r=R();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,c){if("production"!==process.env.NODE_ENV)for(var s in a)if(r(a,s)){var d;try{if("function"!=typeof a[s]){var u=Error((l||"React class")+": "+i+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=a[s](o,s,l,i,null,n)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+i+" `"+s+"` 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=c?c():"";e("Failed "+i+" type: "+d.message+(null!=p?p:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(t={})},E=a}function W(){if(A)return L;A=1;var e=z(),n=F(),t=H(),r=R(),a=q(),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){}}),L=function(l,c){var s="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(i),arrayOf:function(e){return h(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 `"+g(l)+"` supplied to `"+a+"`, expected an array.");for(var c=0;c<l.length;c++){var s=e(l,c,a,o,i+"["+c+"]",t);if(s instanceof Error)return s}return null})},element:h(function(e,n,t,r,a){var o=e[n];return l(o)?null:new f("Invalid "+r+" `"+a+"` of type `"+g(o)+"` supplied to `"+t+"`, expected a single ReactElement.")}),elementType:h(function(n,t,r,a,o){var i=n[t];return e.isValidElementType(i)?null:new f("Invalid "+a+" `"+o+"` of type `"+g(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return h(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:h(function(e,n,t,r,a){return y(e[n])?null:new f("Invalid "+r+" `"+a+"` supplied to `"+t+"`, expected a ReactNode.")}),objectOf:function(e){return h(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 c=n[a],s=g(c);if("object"!==s)return new f("Invalid "+i+" `"+l+"` of type `"+s+"` supplied to `"+o+"`, expected an object.");for(var d in c)if(r(c,d)){var u=e(c,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 h(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 c=JSON.stringify(e,function(e,n){return"symbol"===b(n)?String(n):n});return new f("Invalid "+a+" `"+o+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+c+".")})},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 "+w(a)+" at index "+n+"."),i}return h(function(n,a,o,i,l){for(var c=[],s=0;s<e.length;s++){var d=(0,e[s])(n,a,o,i,l,t);if(null==d)return null;d.data&&r(d.data,"expectedType")&&c.push(d.data.expectedType)}return new f("Invalid "+i+" `"+l+"` supplied to `"+o+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")})},shape:function(e){return h(function(n,r,a,o,i){var l=n[r],c=g(l);if("object"!==c)return new f("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");for(var s in e){var d=e[s];if("function"!=typeof d)return v(a,o,i,s,b(d));var u=d(l,s,a,o,i+"."+s,t);if(u)return u}return null})},exact:function(e){return h(function(a,o,i,l,c){var s=a[o],d=g(s);if("object"!==d)return new f("Invalid "+l+" `"+c+"` of type `"+d+"` supplied to `"+i+"`, expected `object`.");var u=n({},a[o],e);for(var p in u){var h=e[p];if(r(e,p)&&"function"!=typeof h)return v(i,l,c,p,b(h));if(!h)return new f("Invalid "+l+" `"+c+"` key `"+p+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(a[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(s,p,i,l,c+"."+p,t);if(m)return m}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 h(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function a(a,i,l,s,u,p,h){if(s=s||d,p=p||l,h!==t){if(c){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=s+":"+l;!n[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+s+"`. 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 `"+s+"`, but its value is `null`."):new f("The "+u+" `"+p+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(i,l,s,u,p)}var i=a.bind(null,!1);return i.isRequired=a.bind(null,!0),i}function m(e){return h(function(n,t,r,a,o,i){var l=n[t];return g(l)!==e?new f("Invalid "+a+" `"+o+"` of type `"+b(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 y(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(y);if(null===e||l(e))return!0;var n=function(e){var n=e&&(s&&e[s]||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(!y(t.value))return!1}else for(;!(t=r.next()).done;){var a=t.value;if(a&&!y(a[1]))return!1}return!0;default:return!1}}function g(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 b(e){if(null==e)return""+e;var n=g(e);if("object"===n){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function w(e){var n=b(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},L}function B(){if(P)return j;P=1;var e=H();function n(){}function t(){}return t.resetWarningCache=n,j=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 Y(){if(I)return b.exports;if(I=1,"production"!==process.env.NODE_ENV){var e=z();b.exports=W()(e.isElement,true)}else b.exports=B()();return b.exports}var K=y(Y());function Z({label:e,icon:n,loading:t=!1,disabled:r=!1,variant:a="primary",type:o="button",className:i="",...l}){const c=!!e;return f("button",{type:o,className:`btn btn-${a} ${i} d-flex align-items-center justify-center gap-2 ${!e&&n?"p-2":""}`,disabled:r||t,...l,children:[t&&h("span",{className:"custom-spinner"}),n&&h("span",{className:"px-2",children:n}),c&&h("span",{children:e}),h("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 "})]})}Z.propTypes={label:K.oneOfType([K.string,K.node]),icon:K.node,loading:K.bool,disabled:K.bool,variant:K.oneOf(["primary","secondary","outline-primary","outline-secondary","success","danger","warning","info","light","dark"]),type:K.oneOf(["button","submit","reset"])};const U=({title:e,children:n,isOpen:t,onToggle:r,index:a,id:o,className:i="",OpenByDefault:l=!1,"data-testid":c})=>{const s=o||`collapse-${a}`,d=`heading-${a}`;return f(m,{children:[f("div",{className:`accordion-item pc-accordion-item pb-0 mb-2 ${i}`.trim(),"data-testid":c,children:[h("h2",{className:"accordion-header",id:d,children:h("button",{className:"accordion-button "+(t?"":"collapsed"),type:"button",onClick:r,"aria-expanded":t,"aria-controls":s,children:"string"==typeof e?h("span",{dangerouslySetInnerHTML:{__html:e}}):e})}),h("div",{id:s,className:"accordion-collapse collapse "+(t?"show":""),"aria-labelledby":d,children:h("div",{className:"accordion-body",children:n})})]}),h("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 "})]})},G=({children:t,singleOpen:r=!0,id:a,className:o="","data-testid":i})=>{const[l,c]=n(()=>{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}),s=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)=>{c(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 f(m,{children:[h("div",{className:`pc-accordion accordion ${o}`.trim(),id:a||"pcaccordionWrapper","data-testid":i,children:s}),h("style",{jsx:!0,children:"\n .pc-accordion{;\n }\n "})]})},J=({options:e=[],placeholder:a="Select...",onChange:o,isInvalid:i=!1,errMsg:l="",id:c,name:s,dataTestId:d,enableSearch:u=!1,selected:p=null})=>{const[m,v]=n(!1),[y,g]=n(""),b=t(null),w=t(null),[C,x]=n(null),_=null!==p?p:C;r(()=>{null!==p&&x(p)},[p]),r(()=>{const e=e=>{b.current&&!b.current.contains(e.target)&&v(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const k=e.filter(e=>e.label.toLowerCase().includes(y.toLowerCase()));return f("div",{className:"position-relative w-100",ref:b,children:[f("div",{className:"dropdown",children:[h("button",{type:"button",ref:w,className:"form-select pc-ele-border text-start "+(i?"invalid":""),onClick:()=>v(e=>!e),id:c,name:s,"data-testid":d,children:_?.label||a}),m&&f("div",{className:"slc-dropdown-options-wrp show w-100 pc-ele-border position-absolute top-100 start-0 z-index-2",style:{maxHeight:300},children:[u&&h("div",{className:"mb-2 px-3 py-2 border-bottom",children:h("input",{type:"text",className:"form-control pc-select-opt-input",placeholder:"Search...",value:y,onChange:e=>g(e.target.value)})}),k.length>0?k.map((e,n)=>h("span",{className:"pc-select-opt d-block w-100 py-3 px-4",type:"button",onClick:()=>(e=>{null===p&&x(e),v(!1),o?.(s,e)})(e),children:e.label},n)):h("div",{className:"text-muted px-2",children:"No results found"})]})]}),i&&l&&h("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"},children:l}),h("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 "})]})};J.propTypes={options:K.arrayOf(K.shape({label:K.string,value:K.any})).isRequired,placeholder:K.string,onChange:K.func,isInvalid:K.bool,errMsg:K.string,id:K.string,name:K.string,dataTestId:K.string,enableSearch:K.bool};const X=({placement:e="top",caption:n,children:t,customStyles:r,visibility:a=!0})=>f(m,{children:[f("div",{className:` tooltip-wrapper tooltip-${e}`,tabIndex:"0",children:[t,a&&h("div",{className:`tooltip-content shadow-sm ${r}`,role:"tooltip",children:n})]}),h("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: ${r?"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 Q(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))}}X.propTypes={placement:K.oneOf(["top","bottom","left","right"]),caption:K.string.isRequired,children:K.node.isRequired};Q(".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 ee=({value:t=[],columns:r=[],style:o={},caption:i,header:l,footer:c,children:s,paginator:d=!1,rowsPerPageOptions:u=[10,25,50],currentPageReportTemplate:p="Showing {first} to {last} of {totalRecords} records",onPageChange:v=()=>{},paginationConfig:y=null})=>{const g=!!y,[b,w]=n(1),[C,x]=n(u[0]),_=g?y.current_page:b,k=g?y.page_size:C,N=g?y.total_records:t.length,O=g?y.total_pages:Math.ceil(N/k),D=a(()=>{if(g)return t;const e=(_-1)*k,n=e+k;return t.slice(e,n)},[t,_,k,g]),S=e=>{e<1||e>O||(g||w(e),v({page:e,rows:k}))},T=r?.length>0,E=e.Children.toArray(s).some(n=>e.isValidElement(n)&&"tbody"===n.type),M=!T&&e.Children.count(s)>0;return f(m,{children:[f("div",{className:"table-responsive",children:[i&&h("div",{className:"mb-2",children:i}),f("table",{className:"table pc-table align-middle table-row-dashed fs-6 gy-3 mb-0 dataTable no-footer table-hover gs-4",style:o,children:[T?h("thead",{children:h("tr",{children:r.map((e,n)=>h("th",{children:e.header},n))})}):l&&h("thead",{children:l}),T?h("tbody",{children:D.map((e,n)=>h("tr",{children:r.map((n,t)=>h("td",{children:h("div",{className:"py-2",children:e[n.field]})},t))},n))}):M&&(E?s:h("tbody",{children:s})),c&&h("tfoot",{children:c})]})]}),d&&f("div",{className:"d-flex justify-content-between align-items-center mt-5 pc-pagination-wrp",children:[f("div",{className:"dataTables_length d-flex align-items-center",children:[h("select",{className:"form-select form-select-sm form-select-solid w-auto me-3",value:k,onChange:e=>{const n=parseInt(e.target.value,10);g||(x(n),w(1)),v({page:1,rows:n})},children:u.map(e=>h("option",{value:e,children:e},e))})," ",h("div",{children:(()=>{const e=(_-1)*k+1,n=Math.min(e+k-1,N);return p.replace("{first}",e).replace("{last}",n).replace("{totalRecords}",N)})()})]}),h("div",{className:"d-flex align-items-center gap-2",children:h("nav",{children:f("ul",{className:"pagination mb-0",children:[h("li",{className:"page-item "+(1===_?"disabled":""),children:f("button",{className:"page-link",onClick:()=>S(1),children:[h("i",{class:"previous"}),h("i",{style:{marginLeft:"-5px"},class:"previous"})]})}),h("li",{className:"page-item "+(1===_?"disabled":""),children:h("button",{className:"page-link",onClick:()=>S(_-1),children:h("i",{class:"previous"})})}),Array.from({length:Math.min(O,5)},(e,n)=>{const t=_<=3?n+1:_-2+n;return t>O?null:h("li",{className:"page-item "+(_===t?"active":""),children:h("button",{className:"page-link",onClick:()=>S(t),children:t})},t)}),h("li",{className:"page-item "+(_===O?"disabled":""),children:h("button",{className:"page-link",onClick:()=>S(_+1),children:h("i",{class:"next"})})}),h("li",{className:"page-item "+(_===O?"disabled":""),children:f("button",{className:"page-link",onClick:()=>S(O),children:[h("i",{class:"next fs-1"}),h("i",{style:{marginLeft:"-5px"},class:"next"})]})})]})})})]})]})},ne=({value:e,onChange:n,isDisabled:t=!1,isInvalid:r=!1,maxChar:a=null,showCharCount:o=!1,cols:i=30,rows:l=4,id:c,name:s,dataTestId:d,errMsg:u="",placeholder:p=""})=>f("div",{className:"position-relative w-100",children:[a&&o&&f("div",{className:"form-text text-end",children:[e.length,"/",a," characters"]}),h("textarea",{id:c,name:s,"data-testid":d,className:"form-control pc-ele-border "+(r?"invalid":""),cols:i,rows:l,value:e,onChange:e=>{const{value:t}=e.target;(!a||t.length<=a)&&n?.(s,t)},placeholder:p,disabled:t}),r&&u&&h("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"},children:u}),h("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 "})]});ne.propTypes={value:K.string.isRequired,onChange:K.func,isDisabled:K.bool,isInvalid:K.bool,maxChar:K.number,showCharCount:K.bool,cols:K.number,rows:K.number,id:K.string,name:K.string,dataTestId:K.string,errMsg:K.string,placeholder:K.string};const te=({options:e=[],placeholder:o="Select...",onChange:i,enableSearch:l=!0,enableSelectAll:c=!0,showCountAfter:s=null,value:d=[],name:u,required:p=!1,labelKey:m="name",valueKey:v="value",isInvalid:y=!1,errMsg:g=""})=>{const[b,w]=n([]),[C,x]=n(!1),[_,k]=n(""),N=t(null),O=t(null),[D,S]=n("100%"),T=a(()=>((e,n,t)=>Array.isArray(e)?e.map(e=>({name:e?.[n]??"",value:e?.[t]??"",original:e})):[])(e,m,v),[e,m,v]);r(()=>{const e=e=>{N.current&&!N.current.contains(e.target)&&x(!1)},n=()=>{O.current&&S(`${O.current.offsetWidth}px`)};return document.addEventListener("mousedown",e),window.addEventListener("resize",n),n(),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",n)}},[]),r(()=>{if(!Array.isArray(d))return;if(!(d.length===b.length&&d.every(e=>b.some(n=>n.original?.[v]===e?.[v])))){const e=T.filter(e=>d.some(n=>n?.[v]===e.original?.[v]));w(e)}},[d,T]);const E=e=>b.some(n=>n.value===e.value),M=T.filter(e=>e.name.toLowerCase().includes(_.toLowerCase()));return f("div",{className:"position-relative pc-multi-select",ref:N,children:[h("div",{ref:O,className:"form-select form-select-solid pc-ele-border d-flex justify-content-between align-items-center "+(y?"invalid":""),onClick:()=>x(!C),style:{cursor:"pointer"},children:h("span",{className:"text-truncate",style:{maxWidth:"85%"},children:(()=>{if(0===b.length)return o;if(null!=s&&b.length>s){return`${b.slice(0,s).map(e=>e.name).join(", ")} +${b.length-s} more`}return b.map(e=>e.name).join(", ")})()})}),y&&g&&h("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%",zIndex:9999},children:g}),C&&h("div",{className:"multi-slc-dropdown-options-wrp show position-absolute top-100 start-0",style:{maxHeight:300,width:D,zIndex:9999},children:f("div",{className:"dropdown-menu relative show py-3 shadow-none border position-relative",style:{maxHeight:300,overflowY:"auto",width:D,zIndex:9999},children:[(l||c)&&f("div",{className:"d-flex align-items-center gap-2 pb-3 mb-3 border-bottom",children:[c&&f("div",{className:"form-check pl-3 ms-4",children:[h("input",{type:"checkbox",className:"form-check-input",id:"selectAll",checked:b.length===T.length,onChange:()=>{const e=b.length===T.length?[]:[...T];w(e),i?.(u,e.map(e=>e.original))},name:u,required:p}),h("label",{className:"form-check-label",htmlFor:"selectAll",children:"All"})]}),l&&f("div",{className:"input-group me-3 "+(c?"":"ms-3"),children:[h("input",{type:"text",className:"form-control border-end-0",placeholder:"Search...",value:_,onChange:e=>k(e.target.value)}),h("span",{className:"input-group-text border-start-0 bg-transparent",children:h("i",{className:"bi bi-search"})})]})]}),M.length>0?M.map((e,n)=>f("div",{className:"form-check py-3 pl-5 mr-3 pc-multi-select-opt",style:{cursor:"pointer"},children:[h("input",{className:"form-check-input pc-multi-select-opt-input",type:"checkbox",id:`option-${n}`,checked:E(e),onChange:()=>(e=>{let n=b.some(n=>n.value===e.value)?b.filter(n=>n.value!==e.value):[...b,e];n=T.filter(e=>n.some(n=>n.value===e.value)),w(n),i?.(u,n.map(e=>e.original))})(e),name:u,required:p}),h("label",{className:"form-check-label ms-2",htmlFor:`option-${n}`,children:e.name})]},n)):h("div",{className:"text-center text-muted py-2",children:"No records found"})]})}),h("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 "})]})},re={ArrowRightBold:e=>h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",...e,children:h("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 14l4-4l4 4",...e})}),Down:e=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24",...e,children:h("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 10l4 4l4-4"})}),NewRow:e=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"128",height:"128",viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:f("g",{fill:"none",children:[h("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"}),h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:640,height:512,viewBox:"0 0 640 512",...e,children:h("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:n})=>f("div",{className:"position-relative email-icon-wrapper",children:[h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...n,children:h("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&&h("span",{className:"counter-badge",children:e>9?"9+":e}),h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 56 56",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:9,fill:"none",viewBox:"0 0 10 9",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:7,height:8,viewBox:"0 0 7 10",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:20,viewBox:"0 0 9 11",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:23,height:23,viewBox:"0 0 23 23",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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=>f("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:[h("path",{fill:"currentColor",d:"M11.001 10h2v5h-2zM11 16h2v2h-2z"}),h("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=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:h("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"})})};function ae({name:e,width:t="1em",height:r="1em",className:a="",color:o="currentColor",activeColor:i,hoverColor:l,...c}){const[s,d]=n(!1),[u,p]=n(!1),f=re[e];return f?h(f,{width:t,height:r,className:a,style:{color:u?i||o:s&&l||o,cursor:c.onClick?"pointer":void 0},onMouseEnter:()=>d(!0),onMouseLeave:()=>{d(!1),p(!1)},onMouseDown:()=>p(!0),onMouseUp:()=>p(!1),...c}):(console.warn(`Icon "${e}" not found`),null)}function oe(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=oe(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ie(){for(var e,n,t=0,r="",a=arguments.length;t<a;t++)(e=arguments[t])&&(n=oe(e))&&(r&&(r+=" "),r+=n);return r}const le=({fluid:e=!1,className:n="",children:t,...r})=>{const a=ie(e?"container-fluid":"container",n);return h("div",{className:a,...r,children:t})};le.propTypes={fluid:K.bool,className:K.string,children:K.node};const ce=({justify:e="",align:n="",className:t="",children:r,...a})=>{const o=ie("row",e&&`justify-content-${e}`,n&&`align-items-${n}`,t);return h("div",{className:o,...a,children:r})};ce.propTypes={justify:K.oneOf(["start","center","end","around","between","evenly"]),align:K.oneOf(["start","center","end","stretch","baseline"]),className:K.string,children:K.node};const se=({xs:e,sm:n,md:t,lg:r,xl:a,offset:o,order:i,className:l="",children:c,...s})=>{const d=ie(void 0!==e&&`col-${e}`,void 0!==n&&`col-sm-${n}`,void 0!==t&&`col-md-${t}`,void 0!==r&&`col-lg-${r}`,void 0!==a&&`col-xl-${a}`,void 0!==o&&`offset-${o}`,void 0!==i&&`order-${i}`,l);return h("div",{className:d,...s,children:c})};se.propTypes={xs:K.oneOfType([K.string,K.number]),sm:K.oneOfType([K.string,K.number]),md:K.oneOfType([K.string,K.number]),lg:K.oneOfType([K.string,K.number]),xl:K.oneOfType([K.string,K.number]),offset:K.oneOfType([K.string,K.number]),order:K.oneOfType([K.string,K.number]),className:K.string,children:K.node};const de=({title:e,children:n,footer:a,onClose:o,customStyles:i="",maxWidth:l="600px",width:c="100%",maxHeight:s="80vh",outsideClickHandle:d=!1})=>{const u=t();return r(()=>{if(!d)return;const e=e=>{u.current&&!u.current.contains(e.target)&&o?.()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[o]),f(m,{children:[h("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:f("div",{className:`card position-relative shadow p-4 ${i}`,ref:u,style:{width:c,maxWidth:l,maxHeight:s,overflowY:"auto"},children:[h("div",{className:"w-full d-flex justify-content-end svg-icon svg-icon-1",children:h("div",{className:"cursor-pointer w-24px h-24px",onClick:o,children:h(ue,{})})}),e&&h("h5",{className:"mb-3",children:e}),n&&h("div",{className:"mb-3",children:n}),a&&h("div",{className:"text-end",children:a})]})}),h("style",{jsx:!0,children:"\n .conditions-overlay {\n z-index: 50;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n "})]})},ue=()=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",children:h("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:h("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"12;0"})})}),pe=({label:e="Enter Label",required:n=!1,type:t="",placeholder:r="",errorMessage:a="",value:i,onChange:l,disabled:c=!1,className:s="",maxLength:d,minLength:u,inputSymbol:p,...m})=>{const v=o(),y=m.id||`input-${v}`;return f("div",{className:"form-group-lg",children:[h("label",{htmlFor:y,className:"form-label "+(n?"required":""),children:e}),f("div",{className:"input-group",style:{fontFamily:"inherit"},children:[p&&h("span",{className:"input-group-text border",children:p}),h("input",{id:y,type:t,placeholder:"date"===t?void 0:r,value:i,required:n,onChange:l,disabled:c,maxLength:d,minLength:u,className:`form-control form-control-solid border${a?" is-invalid border-danger":""}${s?` ${s}`:""}`,...m})]}),a&&h("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"},children:a})]})};pe.propTypes={label:K.string,required:K.bool,type:K.string,placeholder:K.string,errorMessage:K.string,value:K.oneOfType([K.string,K.number]),onChange:K.func,disabled:K.bool,className:K.string,maxLength:K.oneOfType([K.string,K.number]),minLength:K.oneOfType([K.string,K.number]),inputSymbol:K.node,id:K.string};const fe=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})},he=({label:e="Enter Lable",value:t="",onChange:a,required:o=!1,errorMessage:i="",name:l,disabled:c=!1})=>{const[s,d]=n(fe(t));r(()=>{d(fe(t))},[t]);return f("div",{className:"form-group",children:[h("label",{className:`form-label ${o&&"required"}`,children:e}),h("div",{className:"input-group",style:{fontFamily:"inherit"},children:h("input",{name:l,disabled:c,required:o,type:"text",value:s,onChange:e=>{const n=e.target.value.replace(/[^\d.]/g,""),t=fe(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&&h("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"},children:i})]})},me=({label:e,checked:n=!1,onChange:t,name:r,value:a,disabled:o=!1,id:i,className:l="",dataTestId:c})=>f("div",{className:`form-check ${l}`,"data-testid":c,children:[h("input",{className:"form-check-input",type:"radio",name:r,id:i,value:a,checked:n,onChange:t,disabled:o}),e&&h("label",{className:"form-check-label",htmlFor:i,children:e})]}),ve={small:"spinner-border-sm",medium:"",large:"spinner-border-lg"},ye={primary:"text-primary",secondary:"text-secondary",success:"text-success",danger:"text-danger",warning:"text-warning",info:"text-info",light:"text-light",dark:"text-dark"},ge={primary:"#007bff",secondary:"#6c757d",success:"#28a745",danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:"#f8f9fa",dark:"#343a40"},be="table",we="dots",Ce="bar",xe="circular",_e="pulse",ke="text",Ne="wave",Oe=({size:e="medium",color:n="primary",ariaLabel:t="Loading...",loadingType:r="spinner",className:a="",placeholderRows:o=4})=>{const i="large"===e?"":ve[e]||"",l=ye[n]||ye.primary,c="large"===e?{width:"3rem",height:"3rem",borderWidth:"0.3em"}:{};if(r===be){const e=ge[n]||ge.primary;return h("div",{className:"w-100",children:h("div",{className:"placeholder-glow",children:Array.from({length:o}).map((n,t)=>h("span",{className:`placeholder col-12 rounded bg-secondary${0===t?" mb-2":""}${t===o-1?" mt-2":" mb-2"}`,style:{height:44,display:"block",background:e}},t))})})}if(r===we){const e=ge[n]||ge.primary;return f("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":t,children:[f("span",{className:"dots-loader",children:[h("span",{style:{background:e}}),h("span",{style:{background:e}}),h("span",{style:{background:e}})]}),h("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(r===Ce){return f("div",{style:{width:"100%",padding:"8px 0"},"aria-label":t,children:[h("div",{className:"bar-loader",children:h("div",{style:{background:ge[n]||ge.primary}})}),h("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(r===_e){return f("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":t,children:[h("span",{className:"pulse-loader",style:{background:ge[n]||ge.primary}}),h("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(r===ke){const e=ge[n]||ge.primary;return f("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":t,children:[h("span",{style:{color:e},children:"Loading"}),h("span",{className:"ellipsis-loader",style:{color:e}}),h("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(r===Ne){const e=ge[n]||ge.primary;return f("div",{style:{display:"inline-flex",alignItems:"center",gap:2},"aria-label":t,children:[f("span",{className:"wave-loader",children:[h("span",{style:{background:e}}),h("span",{style:{background:e}}),h("span",{style:{background:e}}),h("span",{style:{background:e}}),h("span",{style:{background:e}})]}),h("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(r===xe){const e=ge[n]||ge.primary;return f("div",{style:{display:"inline-flex",alignItems:"center"},"aria-label":t,children:[f("svg",{className:"circular-loader",width:"40",height:"40",viewBox:"0 0 40 40",children:[h("circle",{cx:"20",cy:"20",r:"18",stroke:e,strokeWidth:"4",fill:"none",opacity:"0.2"}),h("circle",{cx:"20",cy:"20",r:"18",stroke:e,strokeWidth:"4",fill:"none",strokeDasharray:"113",strokeDashoffset:"80",style:{animation:"circular-spin 1s linear infinite"}})]}),h("style",{children:"\n @keyframes circular-spin {\n 100% { stroke-dashoffset: 0; }\n }\n "})]})}return f("div",{role:"status","aria-label":t,style:{display:"inline-flex",alignItems:"center"},children:[h("span",{className:`spinner-border ${i} ${l} ${a}`.trim(),style:c,"aria-hidden":"true"}),h("span",{className:"visually-hidden",children:t})]})},De=()=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:h("path",{fill:"currentColor",d:"M7 20h2V8h3L8 4L4 8h3zm13-4h-3V4h-2v12h-3l4 4z"})}),Se=()=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",children:h("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"})}),Te=()=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:h("path",{fill:"currentColor",d:"m6 20l4-4H7V4H5v12H2zm5-12h9v2h-9zm0 4h7v2h-7zm0-8h11v2H11zm0 12h5v2h-5z"})}),Ee=()=>h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 20 20",children:h("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"})}),Me=()=>h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",version:"1.1",children:f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:[h("polygon",{points:"0 0 24 0 24 24 0 24"}),h("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) "})]})}),Le=()=>h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",version:"1.1",children:f("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd",children:[h("polygon",{points:"0 0 24 0 24 24 0 24"}),h("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 Ae(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 je=({datePickerDates:e,setDatePickerDates:n})=>{const a=t();return r(()=>{$(a.current).daterangepicker({dateFormat:"dd-mm-yyyy",autoApply:!0,autoUpdateInput:!0},function(e,t){n({startDate:e.format("YYYY-MM-DD"),endDate:t.format("YYYY-MM-DD")})})},[e,n,a]),f("div",{className:"form-control form-control-solid border d-flex align-items-center p-3 justify-content-between",ref:a,children:[h("div",{className:"fs-6",children:e?f(m,{children:[h("input",{hidden:!0,type:"date",defaultValue:e?.startDate,name:"startDate"}),h("input",{hidden:!0,type:"date",defaultValue:e?.endDate,name:"endDate"}),`${Ae(e?.startDate)} - ${Ae(e?.endDate)}`]}):"Pick a date range"}),h("span",{className:"svg-icon svg-icon-1 ms-2 me-0",children:f("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h("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"}),h("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"}),h("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"})]})})]})},$e=["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 Pe=(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);!Ie(a,o)&&r||Object.defineProperty(e,t,o)},Ie=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)},Ve=(e,n)=>`/* Wrapped ${e}*/\n${n}`,ze=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Fe=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");function He(e,n,{ignoreNonConfigurable:t=!1}={}){const{name:r}=e;for(const r of Reflect.ownKeys(n))Pe(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=Ve.bind(null,r,n.toString());Object.defineProperty(a,"name",Fe);const{writable:o,enumerable:i,configurable:l}=ze;Object.defineProperty(e,"toString",{value:a,writable:o,enumerable:i,configurable:l})})(e,n,r),e}const Re=2147483647,qe=new WeakMap,We=new WeakMap,Be=new WeakMap;function Ye(e,{cacheKey:n,cache:t=new Map,maxAge:r}={}){if(0===r)return e;if("number"==typeof r&&Number.isFinite(r)){if(r>Re)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 c=e.apply(this,o),s="function"==typeof r?r(...o):r;if(void 0!==s&&s!==Number.POSITIVE_INFINITY){if(!Number.isFinite(s))throw new TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(s<=0)return c;if(s>Re)throw new TypeError("The `maxAge` function result cannot exceed 2147483647.")}if(t.set(i,{data:c,maxAge:void 0===s||s===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Date.now()+s}),void 0!==s&&s!==Number.POSITIVE_INFINITY){const e=setTimeout(()=>{t.delete(i),We.get(a)?.delete(e)},s);e.unref?.();const n=We.get(a)??new Set;n.add(e),We.set(a,n)}return c};return He(a,e,{ignoreNonConfigurable:!0}),qe.set(a,t),Be.set(a,n??(e=>e[0])),a}function Ke(e){return"string"==typeof e}function Ze(e,n,t){return t.indexOf(e)===n}function Ue(e){return-1===e.indexOf(",")?e:e.split(",")}function Ge(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 Ge(void 0===n?"":n)}if(-1!==e.indexOf("@")){var t=e.split("@")[0];return Ge(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 Je=Ye(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=[],c=0,s=navigator.languages||[];c<s.length;c++){var d=s[c];l=l.concat(Ue(d))}var u=navigator.language,p=u?Ue(u):u;i=i.concat(l,p)}return r&&i.push(o),i.filter(Ke).map(Ge).filter(Ze)},{cacheKey:JSON.stringify});var Xe=Ye(function(e){return Je(e)[0]||null},{cacheKey:JSON.stringify});function Qe(e,n,t){return function(r,a=t){const o=e(r)+a;return n(o)}}function en(e){return function(n){return new Date(e(n).getTime()-1)}}function nn(e,n){return function(t){return[e(t),n(t)]}}function tn(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 rn(e){if(e instanceof Date)return e.getMonth();throw new Error(`Failed to get month from date: ${e}.`)}function an(e){if(e instanceof Date)return e.getMonth()+1;throw new Error(`Failed to get human-readable month from date: ${e}.`)}function on(e){if(e instanceof Date)return e.getDate();throw new Error(`Failed to get year from date: ${e}.`)}function ln(e){const n=tn(e),t=n+(1-n)%100,r=new Date;return r.setFullYear(t,0,1),r.setHours(0,0,0,0),r}const cn=Qe(tn,ln,-100),sn=Qe(tn,ln,100),dn=en(sn),un=Qe(tn,dn,-100),pn=nn(ln,dn);function fn(e){const n=tn(e),t=n+(1-n)%10,r=new Date;return r.setFullYear(t,0,1),r.setHours(0,0,0,0),r}const hn=Qe(tn,fn,-10),mn=Qe(tn,fn,10),vn=en(mn),yn=Qe(tn,vn,-10),gn=nn(fn,vn);function bn(e){const n=tn(e),t=new Date;return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}const wn=Qe(tn,bn,-1),Cn=Qe(tn,bn,1),xn=en(Cn),_n=Qe(tn,xn,-1),kn=nn(bn,xn);function Nn(e,n){return function(t,r=n){const a=tn(t),o=rn(t)+r,i=new Date;return i.setFullYear(a,o,1),i.setHours(0,0,0,0),e(i)}}function On(e){const n=tn(e),t=rn(e),r=new Date;return r.setFullYear(n,t,1),r.setHours(0,0,0,0),r}const Dn=Nn(On,-1),Sn=Nn(On,1),Tn=en(Sn),En=Nn(Tn,-1),Mn=nn(On,Tn);function Ln(e){const n=tn(e),t=rn(e),r=on(e),a=new Date;return a.setFullYear(n,t,r),a.setHours(0,0,0,0),a}var An,jn;const $n=en((An=Ln,jn=1,function(e,n=jn){const t=tn(e),r=rn(e),a=on(e)+n,o=new Date;return o.setFullYear(t,r,a),o.setHours(0,0,0,0),An(o)})),Pn=nn(Ln,$n);function In(e){return on(Tn(e))}function Vn(e,n=2){const t=`${e}`;return t.length>=n?e:`0000${t}`.slice(-n)}function zn(e){return`${Vn(tn(e),4)}-${Vn(an(e))}`}function Fn(e){return`${Vn(tn(e),4)}-${Vn(an(e))}-${Vn(on(e))}`}var Hn="gregory",Rn="hebrew",qn="islamic",Wn="iso8601",Bn={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"]},Yn=[0,1,2,3,4,5,6],Kn=new Map;function Zn(e){return function(n,t){return function(e){return function(n,t){var r=n||Xe();Kn.has(r)||Kn.set(r,new Map);var a=Kn.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 Un=Zn({day:"numeric"}),Gn=Zn({day:"numeric",month:"long",year:"numeric"}),Jn=Zn({month:"long"}),Xn=Zn({month:"long",year:"numeric"}),Qn=Zn({weekday:"short"}),et=Zn({weekday:"long"}),nt=Zn({year:"numeric"}),tt=Yn[0],rt=Yn[5],at=Yn[6];function ot(e,n){void 0===n&&(n=Wn);var t=e.getDay();switch(n){case Wn:return(t+6)%7;case qn:return(t+1)%7;case Rn:case Hn:return t;default:throw new Error("Unsupported calendar type.")}}function it(e,n){void 0===n&&(n=Wn);var t=tn(e),r=rn(e),a=e.getDate()-ot(e,n);return new Date(t,r,a)}function lt(e,n){switch(e){case"century":return ln(n);case"decade":return fn(n);case"year":return bn(n);case"month":return On(n);case"day":return Ln(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function ct(e,n){switch(e){case"century":return sn(n);case"decade":return mn(n);case"year":return Cn(n);case"month":return Sn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function st(e,n){switch(e){case"century":return dn(n);case"decade":return vn(n);case"year":return xn(n);case"month":return Tn(n);case"day":return $n(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function dt(e,n){switch(e){case"century":return pn(n);case"decade":return gn(n);case"year":return kn(n);case"month":return Mn(n);case"day":return Pn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}function ut(e,n,t){return t.map(function(t){return(n||nt)(e,t)}).join(" – ")}function pt(e,n,t){return ut(e,n,gn(t))}function ft(e){return e.getDay()===(new Date).getDay()}function ht(e,n){void 0===n&&(n=Wn);var t=e.getDay();switch(n){case qn:case Rn:return t===rt||t===at;case Wn:case Hn:return t===at||t===tt;default:throw new Error("Unsupported calendar type.")}}var mt="react-calendar__navigation";function vt(e){var n,t=e.activeStartDate,r=e.drillUp,a=e.formatMonthYear,o=void 0===a?Xn:a,i=e.formatYear,l=void 0===i?nt:i,c=e.locale,s=e.maxDate,d=e.minDate,u=e.navigationAriaLabel,p=void 0===u?"":u,v=e.navigationAriaLive,y=e.navigationLabel,g=e.next2AriaLabel,b=void 0===g?"":g,w=e.next2Label,C=void 0===w?"»":w,x=e.nextAriaLabel,_=void 0===x?"":x,k=e.nextLabel,N=void 0===k?"›":k,O=e.prev2AriaLabel,D=void 0===O?"":O,S=e.prev2Label,T=void 0===S?"«":S,E=e.prevAriaLabel,M=void 0===E?"":E,L=e.prevLabel,A=void 0===L?"‹":L,j=e.setActiveStartDate,$=e.showDoubleView,P=e.view,I=e.views.indexOf(P)>0,V="century"!==P,z=function(e,n){switch(e){case"century":return cn(n);case"decade":return hn(n);case"year":return wn(n);case"month":return Dn(n);default:throw new Error("Invalid rangeType: ".concat(e))}}(P,t),F=V?function(e,n){switch(e){case"decade":return hn(n,-100);case"year":return wn(n,-10);case"month":return Dn(n,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}(P,t):void 0,H=ct(P,t),R=V?function(e,n){switch(e){case"decade":return mn(n,100);case"year":return Cn(n,10);case"month":return Sn(n,12);default:throw new Error("Invalid rangeType: ".concat(e))}}(P,t):void 0,q=function(){if(z.getFullYear()<0)return!0;var e=function(e,n){switch(e){case"century":return un(n);case"decade":return yn(n);case"year":return _n(n);case"month":return En(n);default:throw new Error("Invalid rangeType: ".concat(e))}}(P,t);return d&&d>=e}(),W=V&&function(){if(F.getFullYear()<0)return!0;var e=function(e,n){switch(e){case"decade":return yn(n,-100);case"year":return _n(n,-10);case"month":return En(n,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}(P,t);return d&&d>=e}(),B=s&&s<H,Y=V&&s&&s<R;function K(e){var n=function(){switch(P){case"century":return function(e,n,t){return ut(e,n,pn(t))}(c,l,e);case"decade":return pt(c,l,e);case"year":return l(c,e);case"month":return o(c,e);default:throw new Error("Invalid view: ".concat(P,"."))}}();return y?y({date:e,label:n,locale:c||Xe()||void 0,view:P}):n}return f("div",{className:mt,children:[null!==T&&V?h("button",{"aria-label":D,className:"".concat(mt,"__arrow ").concat(mt,"__prev2-button"),disabled:W,onClick:function(){j(F,"prev2")},type:"button",children:T}):null,null!==A&&h("button",{"aria-label":M,className:"".concat(mt,"__arrow ").concat(mt,"__prev-button"),disabled:q,onClick:function(){j(z,"prev")},type:"button",children:A}),(n="".concat(mt,"__label"),f("button",{"aria-label":p,"aria-live":v,className:n,disabled:!I,onClick:r,style:{flexGrow:1},type:"button",children:[h("span",{className:"".concat(n,"__labelText ").concat(n,"__labelText--from"),children:K(t)}),$?f(m,{children:[h("span",{className:"".concat(n,"__divider"),children:" – "}),h("span",{className:"".concat(n,"__labelText ").concat(n,"__labelText--to"),children:K(H)})]}):null]})),null!==N&&h("button",{"aria-label":_,className:"".concat(mt,"__arrow ").concat(mt,"__next-button"),disabled:B,onClick:function(){j(H,"next")},type:"button",children:N}),null!==C&&V?h("button",{"aria-label":b,className:"".concat(mt,"__arrow ").concat(mt,"__next2-button"),disabled:Y,onClick:function(){j(R,"next2")},type:"button",children:C}):null]})}var yt=function(){return yt=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},yt.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 bt(e){return"".concat(e,"%")}function wt(e){var n=e.children,t=e.className,r=e.count,a=e.direction,o=e.offset,c=e.style,s=e.wrap,d=gt(e,["children","className","count","direction","offset","style","wrap"]);return h("div",yt({className:t,style:yt({display:"flex",flexDirection:a,flexWrap:s?"wrap":"nowrap"},c)},d,{children:i.map(n,function(e,n){var t=o&&0===n?bt(100*o/r):null;return l(e,yt(yt({},e.props),{style:{flexBasis:bt(100/r),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:t,marginInlineStart:t,marginInlineEnd:0}}))})}))}function Ct(e,n){return n[0]<=e&&n[1]>=e}function xt(e,n){return Ct(e[0],n)||Ct(e[1],n)}function _t(e,n,t){var r=[];if(xt(n,e)){r.push(t);var a=Ct(e[0],n),o=Ct(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 kt(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 dt(n,t)}();if(Ct(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 c,s,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 dt(t,n)}();s=l,(c=d)[0]<=s[0]&&c[1]>=s[1]?o.push("".concat(a,"--active")):xt(d,l)&&o.push("".concat(a,"--hasActive"));var u=_t(d,l,"".concat(a,"--range"));o.push.apply(o,u);var p=Array.isArray(n)?n:[n];if(r&&1===p.length){var f=_t(r>d[0]?[d[0],r]:[r,d[0]],l,"".concat(a,"--hover"));o.push.apply(o,f)}return o}function Nt(e){for(var n=e.className,t=e.count,r=void 0===t?3:t,a=e.dateTransform,o=e.dateType,i=e.end,l=e.hover,c=e.offset,s=e.renderTile,d=e.start,u=e.step,p=void 0===u?1:u,f=e.value,m=e.valueType,v=[],y=d;y<=i;y+=p){var g=a(y);v.push(s({classes:kt({date:g,dateType:o,hover:l,value:f,valueType:m}),date:g}))}return h(wt,{className:n,count:r,offset:c,wrap:!0,children:v})}function Ot(e){var n=e.activeStartDate,t=e.children,r=e.classes,o=e.date,i=e.formatAbbr,l=e.locale,c=e.maxDate,s=e.maxDateTransform,d=e.minDate,u=e.minDateTransform,p=e.onClick,m=e.onMouseOver,v=e.style,y=e.tileClassName,g=e.tileContent,b=e.tileDisabled,w=e.view,C=a(function(){return"function"==typeof y?y({activeStartDate:n,date:o,view:w}):y},[n,o,y,w]),x=a(function(){return"function"==typeof g?g({activeStartDate:n,date:o,view:w}):g},[n,o,g,w]);return f("button",{className:ie(r,C),disabled:d&&u(d)>o||c&&s(c)<o||(null==b?void 0:b({activeStartDate:n,date:o,view:w})),onClick:p?function(e){return p(o,e)}:void 0,onFocus:m?function(){return m(o)}:void 0,onMouseOver:m?function(){return m(o)}:void 0,style:v,type:"button",children:[i?h("abbr",{"aria-label":i(l,o),children:t}):t,x]})}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)},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},Tt="react-calendar__century-view__decades__decade";function Et(e){var n=e.classes,t=void 0===n?[]:n,r=e.currentCentury,a=e.formatYear,o=void 0===a?nt:a,i=St(e,["classes","currentCentury","formatYear"]),l=i.date,c=i.locale,s=[];return t&&s.push.apply(s,t),s.push(Tt),ln(l).getFullYear()!==r&&s.push("".concat(Tt,"--neighboringCentury")),h(Ot,Dt({},i,{classes:s,maxDateTransform:vn,minDateTransform:fn,view:"century",children:pt(c,o,l)}))}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)},Lt=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 At(e){var n=e.activeStartDate,t=e.hover,r=e.showNeighboringCentury,a=e.value,o=e.valueType,i=Lt(e,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),l=tn(ln(n));return h(Nt,{className:"react-calendar__century-view__decades",dateTransform:fn,dateType:"decade",end:l+(r?119:99),hover:t,renderTile:function(e){var t=e.date,r=Lt(e,["date"]);return h(Et,Mt({},i,r,{activeStartDate:n,currentCentury:l,date:t}),t.getTime())},start:l,step:10,value:a,valueType:o})}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 $t(e){return h("div",{className:"react-calendar__century-view",children:h(At,jt({},e))})}var Pt=function(){return Pt=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},Pt.apply(this,arguments)},It=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},Vt="react-calendar__decade-view__years__year";function zt(e){var n=e.classes,t=void 0===n?[]:n,r=e.currentDecade,a=e.formatYear,o=void 0===a?nt:a,i=It(e,["classes","currentDecade","formatYear"]),l=i.date,c=i.locale,s=[];return t&&s.push.apply(s,t),s.push(Vt),fn(l).getFullYear()!==r&&s.push("".concat(Vt,"--neighboringDecade")),h(Ot,Pt({},i,{classes:s,maxDateTransform:xn,minDateTransform:bn,view:"decade",children:o(c,l)}))}var Ft=function(){return Ft=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},Ft.apply(this,arguments)},Ht=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 n=e.activeStartDate,t=e.hover,r=e.showNeighboringDecade,a=e.value,o=e.valueType,i=Ht(e,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),l=tn(fn(n));return h(Nt,{className:"react-calendar__decade-view__years",dateTransform:bn,dateType:"year",end:l+(r?11:9),hover:t,renderTile:function(e){var t=e.date,r=Ht(e,["date"]);return h(zt,Ft({},i,r,{activeStartDate:n,currentDecade:l,date:t}),t.getTime())},start:l,value:a,valueType:o})}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)};function Wt(e){return h("div",{className:"react-calendar__decade-view",children:h(Rt,qt({},e))})}var Bt=function(){return Bt=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},Bt.apply(this,arguments)},Yt=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},Kt=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 Zt(e){var n=e.classes,t=void 0===n?[]:n,r=e.formatMonth,a=void 0===r?Jn:r,o=e.formatMonthYear,i=void 0===o?Xn:o,l=Yt(e,["classes","formatMonth","formatMonthYear"]),c=l.date,s=l.locale;return h(Ot,Bt({},l,{classes:Kt(Kt([],t,!0),["react-calendar__year-view__months__month"],!1),formatAbbr:i,maxDateTransform:Tn,minDateTransform:On,view:"year",children:a(s,c)}))}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 n=e.activeStartDate,t=e.hover,r=e.value,a=e.valueType,o=Gt(e,["activeStartDate","hover","value","valueType"]),i=tn(n);return h(Nt,{className:"react-calendar__year-view__months",dateTransform:function(e){var n=new Date;return n.setFullYear(i,e,1),On(n)},dateType:"month",end:11,hover:t,renderTile:function(e){var t=e.date,r=Gt(e,["date"]);return h(Zt,Ut({},o,r,{activeStartDate:n,date:t}),t.getTime())},start:0,value:r,valueType:a})}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)};function Qt(e){return h("div",{className:"react-calendar__year-view",children:h(Jt,Xt({},e))})}var er=function(){return er=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},er.apply(this,arguments)},nr=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},tr="react-calendar__month-view__days__day";function rr(e){var n=e.calendarType,t=e.classes,r=void 0===t?[]:t,a=e.currentMonthIndex,o=e.formatDay,i=void 0===o?Un:o,l=e.formatLongDate,c=void 0===l?Gn:l,s=nr(e,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),d=s.date,u=s.locale,p=[];return r&&p.push.apply(p,r),p.push(tr),ht(d,n)&&p.push("".concat(tr,"--weekend")),d.getMonth()!==a&&p.push("".concat(tr,"--neighboringMonth")),h(Ot,er({},s,{classes:p,formatAbbr:c,maxDateTransform:$n,minDateTransform:Ln,view:"month",children:i(u,d)}))}var ar=function(){return ar=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},ar.apply(this,arguments)},or=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 ir(e){var n=e.activeStartDate,t=e.calendarType,r=e.hover,a=e.showFixedNumberOfWeeks,o=e.showNeighboringMonth,i=e.value,l=e.valueType,c=or(e,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),s=tn(n),d=rn(n),u=a||o,p=ot(n,t),f=u?0:p,m=1+(u?-p:0),v=function(){if(a)return m+42-1;var e=In(n);if(o){var r=new Date;return r.setFullYear(s,d,e),r.setHours(0,0,0,0),e+(7-ot(r,t)-1)}return e}();return h(Nt,{className:"react-calendar__month-view__days",count:7,dateTransform:function(e){var n=new Date;return n.setFullYear(s,d,e),Ln(n)},dateType:"day",hover:r,end:v,renderTile:function(e){var r=e.date,a=or(e,["date"]);return h(rr,ar({},c,a,{activeStartDate:n,calendarType:t,currentMonthIndex:d,date:r}),r.getTime())},offset:f,start:m,value:i,valueType:l})}var lr="react-calendar__month-view__weekdays",cr="".concat(lr,"__weekday");function sr(e){for(var n=e.calendarType,t=e.formatShortWeekday,r=void 0===t?Qn:t,a=e.formatWeekday,o=void 0===a?et:a,i=e.locale,l=e.onMouseLeave,c=On(new Date),s=tn(c),d=rn(c),u=[],p=1;p<=7;p+=1){var f=new Date(s,d,p-ot(c,n)),m=o(i,f);u.push(h("div",{className:ie(cr,ft(f)&&"".concat(cr,"--current"),ht(f,n)&&"".concat(cr,"--weekend")),children:h("abbr",{"aria-label":m,title:m,children:r(i,f).replace(".","")})},p))}return h(wt,{className:lr,count:7,onFocus:l,onMouseOver:l,children:u})}var dr=function(){return dr=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},dr.apply(this,arguments)},ur=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},pr="react-calendar__tile";function fr(e){var n=e.onClickWeekNumber,t=e.weekNumber,r=h("span",{children:t});if(n){var a=e.date,o=e.onClickWeekNumber,i=e.weekNumber,l=ur(e,["date","onClickWeekNumber","weekNumber"]);return h("button",dr({},l,{className:pr,onClick:function(e){return o(i,a,e)},type:"button",children:r}))}e.date,e.onClickWeekNumber,e.weekNumber;l=ur(e,["date","onClickWeekNumber","weekNumber"]);return h("div",dr({},l,{className:pr,children:r}))}function hr(e){var n=e.activeStartDate,t=e.calendarType,r=e.onClickWeekNumber,a=e.onMouseLeave,o=e.showFixedNumberOfWeeks,i=function(){if(o)return 6;var e=In(n)-(7-ot(n,t));return 1+Math.ceil(e/7)}(),l=function(){for(var e=tn(n),r=rn(n),a=on(n),o=[],l=0;l<i;l+=1)o.push(it(new Date(e,r,a+7*l),t));return o}(),c=l.map(function(e){return function(e,n){void 0===n&&(n=Wn);var t,r=n===Hn?Hn:Wn,a=it(e,n),o=tn(e)+1;do{t=it(new Date(o,0,r===Wn?4:1),n),o-=1}while(e<t);return Math.round((a.getTime()-t.getTime())/6048e5)+1}(e,t)});return h(wt,{className:"react-calendar__month-view__weekNumbers",count:i,direction:"column",onFocus:a,onMouseOver:a,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0},children:c.map(function(e,n){var t=l[n];if(!t)throw new Error("date is not defined");return h(fr,{date:t,onClickWeekNumber:r,weekNumber:e},e)})})}var mr=function(){return mr=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},mr.apply(this,arguments)},vr=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 yr(e){var n=e.activeStartDate,t=e.locale,r=e.onMouseLeave,a=e.showFixedNumberOfWeeks,o=e.calendarType,i=void 0===o?function(e){if(e)for(var n=0,t=Object.entries(Bn);n<t.length;n++){var r=t[n],a=r[0];if(r[1].includes(e))return a}return Wn}(t):o,l=e.formatShortWeekday,c=e.formatWeekday,s=e.onClickWeekNumber,d=e.showWeekNumbers,u=vr(e,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);var p="react-calendar__month-view";return h("div",{className:ie(p,d?"".concat(p,"--weekNumbers"):""),children:f("div",{style:{display:"flex",alignItems:"flex-end"},children:[d?h(hr,{activeStartDate:n,calendarType:i,onClickWeekNumber:s,onMouseLeave:r,showFixedNumberOfWeeks:a}):null,f("div",{style:{flexGrow:1,width:"100%"},children:[h(sr,{calendarType:i,formatShortWeekday:l,formatWeekday:c,locale:t,onMouseLeave:r}),h(ir,mr({calendarType:i},u))]})]})})}var gr=function(){return gr=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},gr.apply(this,arguments)},br="react-calendar",wr=["century","decade","year","month"],Cr=["decade","year","month","day"],xr=new Date;xr.setFullYear(1,0,1),xr.setHours(0,0,0,0);var _r=new Date(864e13);function kr(e){return e instanceof Date?e:new Date(e)}function Nr(e,n){return wr.slice(wr.indexOf(e),wr.indexOf(n)+1)}function Or(e,n,t){return e&&function(e,n,t){return-1!==Nr(n,t).indexOf(e)}(e,n,t)?e:t}function Dr(e){var n=wr.indexOf(e);return Cr[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=kr(t);if(Number.isNaN(r.getTime()))throw new Error("Invalid date: ".concat(e));return r}(t,n);if(!i)return null;var l=Dr(o);return function(e,n,t){return n&&n>e?n:t&&t<e?t:e}(function(){switch(n){case 0:return lt(l,i);case 1:return st(l,i);default:throw new Error("Invalid index value: ".concat(n))}}(),r,a)}var Tr=function(e){return Sr(e,0)},Er=function(e){return Sr(e,1)},Mr=function(e){return[Tr,Er].map(function(n){return n(e)})};function Lr(e){var n=e.maxDate,t=e.maxDetail,r=e.minDate,a=e.minDetail,o=e.value;return lt(Or(e.view,a,t),Tr({value:o,minDate:r,maxDate:n,maxDetail:t})||new Date)}function Ar(e){return e&&(!Array.isArray(e)||1===e.length)}function jr(e,n){return e instanceof Date&&n instanceof Date&&e.getTime()===n.getTime()}var $r,Pr,Ir=c(function(e,t){var r,a=e.activeStartDate,o=e.allowPartialRange,i=e.calendarType,l=e.className,c=e.defaultActiveStartDate,u=e.defaultValue,p=e.defaultView,m=e.formatDay,v=e.formatLongDate,y=e.formatMonth,g=e.formatMonthYear,b=e.formatShortWeekday,w=e.formatWeekday,C=e.formatYear,x=e.goToRangeStartOnSelect,_=void 0===x||x,k=e.inputRef,N=e.locale,O=e.maxDate,D=void 0===O?_r:O,S=e.maxDetail,T=void 0===S?"month":S,E=e.minDate,M=void 0===E?xr:E,L=e.minDetail,A=void 0===L?"century":L,j=e.navigationAriaLabel,$=e.navigationAriaLive,P=e.navigationLabel,I=e.next2AriaLabel,V=e.next2Label,z=e.nextAriaLabel,F=e.nextLabel,H=e.onActiveStartDateChange,R=e.onChange,q=e.onClickDay,W=e.onClickDecade,B=e.onClickMonth,Y=e.onClickWeekNumber,K=e.onClickYear,Z=e.onDrillDown,U=e.onDrillUp,G=e.onViewChange,J=e.prev2AriaLabel,X=e.prev2Label,Q=e.prevAriaLabel,ee=e.prevLabel,ne=e.returnValue,te=void 0===ne?"start":ne,re=e.selectRange,ae=e.showDoubleView,oe=e.showFixedNumberOfWeeks,le=e.showNavigation,ce=void 0===le||le,se=e.showNeighboringCentury,de=e.showNeighboringDecade,ue=e.showNeighboringMonth,pe=void 0===ue||ue,fe=e.showWeekNumbers,he=e.tileClassName,me=e.tileContent,ve=e.tileDisabled,ye=e.value,ge=e.view,be=n(c),we=be[0],Ce=be[1],xe=n(null),_e=xe[0],ke=xe[1],Ne=n(Array.isArray(u)?u.map(function(e){return null!==e?kr(e):null}):null!=u?kr(u):null),Oe=Ne[0],De=Ne[1],Se=n(p),Te=Se[0],Ee=Se[1],Me=a||we||function(e){var n=e.activeStartDate,t=e.defaultActiveStartDate,r=e.defaultValue,a=e.defaultView,o=e.maxDate,i=e.maxDetail,l=e.minDate,c=e.minDetail,s=e.value,d=e.view,u=Or(d,c,i),p=n||t;return p?lt(u,p):Lr({maxDate:o,maxDetail:i,minDate:l,minDetail:c,value:s||r,view:d||a})}({activeStartDate:a,defaultActiveStartDate:c,defaultValue:u,defaultView:p,maxDate:D,maxDetail:T,minDate:M,minDetail:A,value:ye,view:ge}),Le=(r=re&&Ar(Oe)?Oe:void 0!==ye?ye:Oe)?Array.isArray(r)?r.map(function(e){return null!==e?kr(e):null}):null!==r?kr(r):null:null,Ae=Dr(T),je=Or(ge||Te,A,T),$e=Nr(A,T),Pe=re?_e:null,Ie=$e.indexOf(je)<$e.length-1,Ve=$e.indexOf(je)>0,ze=s(function(e){return function(){switch(te){case"start":return Tr;case"end":return Er;case"range":return Mr;default:throw new Error("Invalid returnValue.")}}()({maxDate:D,maxDetail:T,minDate:M,value:e})},[D,T,M,te]),Fe=s(function(e,n){Ce(e);var t={action:n,activeStartDate:e,value:Le,view:je};H&&!jr(Me,e)&&H(t)},[Me,H,Le,je]),He=s(function(e,n){var t=function(){switch(je){case"century":return W;case"decade":return K;case"year":return B;case"month":return q;default:throw new Error("Invalid view: ".concat(je,"."))}}();t&&t(e,n)},[q,W,B,K,je]),Re=s(function(e,n){if(Ie){He(e,n);var t=$e[$e.indexOf(je)+1];if(!t)throw new Error("Attempted to drill down from the lowest view.");Ce(e),Ee(t);var r={action:"drillDown",activeStartDate:e,value:Le,view:t};H&&!jr(Me,e)&&H(r),G&&je!==t&&G(r),Z&&Z(r)}},[Me,Ie,H,He,Z,G,Le,je,$e]),qe=s(function(){if(Ve){var e=$e[$e.indexOf(je)-1];if(!e)throw new Error("Attempted to drill up from the highest view.");var n=lt(e,Me);Ce(n),Ee(e);var t={action:"drillUp",activeStartDate:n,value:Le,view:e};H&&!jr(Me,n)&&H(t),G&&je!==e&&G(t),U&&U(t)}},[Me,Ve,H,U,G,Le,je,$e]),We=s(function(e,n){var t=Le;He(e,n);var r,a=re&&!Ar(t);if(re)if(a)r=lt(Ae,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[lt(e,r[0]),st(e,r[1])]}(Ae,t,e)}else r=ze(e);var i=!re||a||_?Lr({maxDate:D,maxDetail:T,minDate:M,minDetail:A,value:r,view:je}):null;n.persist(),Ce(i),De(r);var l={action:"onChange",activeStartDate:i,value:r,view:je};if(H&&!jr(Me,i)&&H(l),R)if(re)if(Ar(r)){if(o){if(Array.isArray(r))throw new Error("value must not be an array");R([r||null,null],n)}}else R(r||null,n);else R(r||null,n)},[Me,o,ze,_,D,T,M,A,H,R,He,re,Le,Ae,je]);function Be(e){ke(e)}function Ye(){ke(null)}function Ke(e){var n={activeStartDate:e?ct(je,Me):lt(je,Me),hover:Pe,locale:N,maxDate:D,minDate:M,onClick:Ie?Re:We,onMouseOver:re?Be:void 0,tileClassName:he,tileContent:me,tileDisabled:ve,value:Le,valueType:Ae};switch(je){case"century":return h($t,gr({formatYear:C,showNeighboringCentury:se},n));case"decade":return h(Wt,gr({formatYear:C,showNeighboringDecade:de},n));case"year":return h(Qt,gr({formatMonth:y,formatMonthYear:g},n));case"month":return h(yr,gr({calendarType:i,formatDay:m,formatLongDate:v,formatShortWeekday:b,formatWeekday:w,onClickWeekNumber:Y,onMouseLeave:re?Ye:void 0,showFixedNumberOfWeeks:void 0!==oe?oe:ae,showNeighboringMonth:pe,showWeekNumbers:fe},n));default:throw new Error("Invalid view: ".concat(je,"."))}}d(t,function(){return{activeStartDate:Me,drillDown:Re,drillUp:qe,onChange:We,setActiveStartDate:Fe,value:Le,view:je}},[Me,Re,qe,We,Fe,Le,je]);var Ze=Array.isArray(Le)?Le:[Le];return f("div",{className:ie(br,re&&1===Ze.length&&"".concat(br,"--selectRange"),ae&&"".concat(br,"--doubleView"),l),ref:k,children:[ce?h(vt,{activeStartDate:Me,drillUp:qe,formatMonthYear:g,formatYear:C,locale:N,maxDate:D,minDate:M,navigationAriaLabel:j,navigationAriaLive:$,navigationLabel:P,next2AriaLabel:I,next2Label:V,nextAriaLabel:z,nextLabel:F,prev2AriaLabel:J,prev2Label:X,prevAriaLabel:Q,prevLabel:ee,setActiveStartDate:Fe,showDoubleView:ae,view:je,views:$e}):null,f("div",{className:"".concat(br,"__viewContainer"),onBlur:re?Ye:void 0,onMouseLeave:re?Ye:void 0,children:[Ke(),ae?Ke(!0):null]})]})});function Vr(e){return e.getBoundingClientRect()}function zr(e,n){return{get collidedTop(){return Vr(e).top<Vr(n).top},get collidedBottom(){return Vr(e).bottom>Vr(n).bottom},get collidedLeft(){return Vr(e).left<Vr(n).left},get collidedRight(){return Vr(e).right>Vr(n).right},get overflowTop(){return Vr(n).top-Vr(e).top},get overflowBottom(){return Vr(e).bottom-Vr(n).bottom},get overflowLeft(){return Vr(n).left-Vr(e).left},get overflowRight(){return Vr(e).right-Vr(n).right}}}var Fr=function(){if(Pr)return $r;Pr=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 $r=e}(),Hr=y(Fr),Rr=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 qr="undefined"!=typeof window&&"MutationObserver"in window;function Wr(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Br({axis:e,container:n,element:t,invertAxis:r,scrollContainer:a,secondary:o,spacing:i}){const l=window.getComputedStyle(t),c=n.parentElement;if(!c)return;const s=zr(c,a),d=zr(c,document.documentElement),u="x"===e,p=u?"left":"top",f=u?"right":"bottom",h=u?"width":"height",m=`overflow${Wr(p)}`,v=`overflow${Wr(f)}`,y=`scroll${Wr(p)}`,g=Wr(h),b=`offset${g}`,w=`client${g}`,C=`min-${h}`,x=a[b]-a[w],_="object"==typeof i?i[p]:i;let k=-Math.max(s[m],d[m]+document.documentElement[y])-_;const N="object"==typeof i?i[f]:i;let O=-Math.max(s[v],d[v]-document.documentElement[y])-N-x;o&&(k+=c[w],O+=c[w]);const D=t[b];function S(){t.style[p]="auto",t.style[f]=o?"0":"100%"}function T(){t.style[p]=o?"0":"100%",t.style[f]="auto"}function E(e,n){const t=D<=e;return t&&n(),t}function M(){return E(k,S)}function L(){return E(O,T)}let A;A=r?M()||L():L()||M(),A||function(){const e=k>O,n=l.getPropertyValue(C),r=n?Number.parseInt(n,10):null;function a(e){Hr(!r||e>=r,`<Fit />'s child will not fit anywhere with its current ${C} of ${r}px.`);const n=Math.max(e,r||0);Hr(!1,`<Fit />'s child needed to have its ${h} decreased to ${n}px.`),t.style[h]=`${n}px`}e?(a(k),S()):(a(O),T())}()}function Yr(e){const{invertAxis:n,invertSecondaryAxis:t}=e,r=Rr(e,["invertAxis","invertSecondaryAxis"]);!function(e){Br(e)}(Object.assign(Object.assign({},r),{invertAxis:n})),function(e){Br(Object.assign(Object.assign({},e),{axis:"x"===e.axis?"y":"x",secondary:!0}))}(Object.assign(Object.assign({},r),{invertAxis:t}))}function Kr({children:e,invertAxis:n,invertSecondaryAxis:a,mainAxis:o="y",spacing:l=8}){const c=t(void 0),d=t(void 0),u=t(void 0),p=t(void 0),f=t(void 0),m=s(()=>{if(!f.current||!c.current||!d.current)return;const e=d.current.clientWidth,t=d.current.clientHeight;if(u.current===e&&p.current===t)return;u.current=e,p.current=t;const r=c.current.parentElement;if(!r)return;const i=window.getComputedStyle(d.current),{position:s}=i;"absolute"!==s&&(d.current.style.position="absolute");const h=window.getComputedStyle(r),{position:m}=h;"relative"!==m&&"absolute"!==m&&(r.style.position="relative"),Yr({axis:o,container:c.current,element:d.current,invertAxis:n,invertSecondaryAxis:a,scrollContainer:f.current,spacing:l})},[n,a,o,l]),v=i.only(e);function y(e){e&&e instanceof HTMLElement&&(d.current=e,f.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 r(()=>{if(m(),qr&&d.current){new MutationObserver(function(){m()}).observe(d.current,{attributes:!0,attributeFilter:["class","style"]})}},[m]),h("span",{ref:e=>{if(!e)return;c.current=e;y(null==e?void 0:e.firstElementChild)},style:{display:"contents"},children:v})}var Zr,Ur=["normal","small-caps"];function Gr(e){if(!e)return"";var n=window.getComputedStyle(e);if(n.font)return n.font;if(!(""!==n.fontFamily))return"";var t=Ur.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 Jr(e){if("undefined"==typeof document||!e)return null;var n=Gr(e),t=function(e,n){var t=(Zr||(Zr=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 Xr="undefined"!=typeof window,Qr=Xr?u:r,ea=Xr&&/(MSIE|Trident\/|Edge\/)/.test(navigator.userAgent),na=Xr&&/Firefox/.test(navigator.userAgent);function ta(e){const{target:n}=e;ea?requestAnimationFrame(()=>n.select()):n.select()}function ra(e){if(null!==e)return function(n){if(na)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 aa({ariaLabel:e,autoFocus:n,className:t,disabled:r,inputRef:a,max:o,min:i,name:l,nameForClass:c,onChange:s,onKeyDown:d,onKeyUp:u,placeholder:p="--",required:v,showLeadingZeros:y,step:g,value:b}){Qr(()=>{var e;a&&a.current&&(Jr(a.current),e=a.current,"complete"!==document.readyState&&window.addEventListener("load",function(){Jr(e)}),function(e){if(!document.fonts)return;const n=Gr(e);if(!n)return;document.fonts.check(n)||document.fonts.addEventListener("loadingdone",function(){Jr(e)})}(a.current))},[a,b]);const w=y&&b&&Number(b)<10&&("0"===b||!b.toString().startsWith("0")),C=o?o.toString().length:null;return f(m,{children:[w?h("span",{className:`${t}__leadingZero`,children:"0"}):null,h("input",{"aria-label":e,autoComplete:"off",autoFocus:n,className:ie(`${t}__input`,`${t}__${c||l}`,w&&`${t}__input--hasLeadingZero`),"data-input":"true",disabled:r,inputMode:"numeric",max:o,min:i,name:l,onChange:s,onFocus:ta,onKeyDown:d,onKeyPress:ra(C),onKeyUp:e=>{Jr(e.target),u&&u(e)},placeholder:p,ref:a,required:v,step:g,type:"number",value:null!==b?b:""})]})}function oa(e){return null!==e&&!1!==e&&!Number.isNaN(Number(e))}function ia(...e){return Math.min(...e.filter(oa))}function la(...e){return Math.max(...e.filter(oa))}function ca({maxDate:e,minDate:n,month:t,year:r,...a}){function o(e){return r===tn(e).toString()&&t===an(e).toString()}const i=ia(t?In(new Date(Number(r),Number(t)-1,1)):31,e&&o(e)&&on(e)),l=la(1,n&&o(n)&&on(n));return h(aa,{max:i,min:l,name:"day",...a})}function sa({maxDate:e,minDate:n,year:t,...r}){function a(e){return e&&t===tn(e).toString()}const o=ia(12,e&&a(e)&&an(e)),i=la(1,n&&a(n)&&an(n));return h(aa,{max:o,min:i,name:"month",...r})}const da=new Map;function ua(e){return function(n,t){const r=n||Xe();da.has(r)||da.set(r,new Map);const a=da.get(r);return a.has(e)||a.set(e,new Intl.DateTimeFormat(r||void 0,e).format),a.get(e)(t)}}function pa(e){return(n,t)=>ua(e)(n,function(e){const n=new Date(e);return new Date(n.setHours(12))}(t))}const fa=pa({month:"long"}),ha=pa({month:"short"});function ma({ariaLabel:e,autoFocus:n,className:t,disabled:r,inputRef:a,locale:o,maxDate:i,minDate:l,onChange:c,onKeyDown:s,placeholder:d="--",required:u,short:p,value:m,year:v}){function y(e){return e&&v===tn(e).toString()}const g=ia(12,i&&y(i)&&an(i)),b=la(1,l&&y(l)&&an(l)),w=[...Array(12)].map((e,n)=>new Date(2019,n,1)),C="month",x=p?ha:fa;return f("select",{"aria-label":e,autoFocus:n,className:ie(`${t}__input`,`${t}__${C}`),"data-input":"true","data-select":"true",disabled:r,name:C,onChange:c,onKeyDown:s,ref:a,required:u,value:null!==m?m:"",children:[!m&&h("option",{value:"",children:d}),w.map(e=>{const n=an(e);return h("option",{disabled:n<b||n>g,value:n,children:x(o,e)},n)})]})}function va({ariaLabel:e,disabled:n,maxDate:t,minDate:r,name:a,onChange:o,required:i,value:l,valueType:c}){const s=(()=>{switch(c){case"decade":case"year":return"number";case"month":return"month";case"day":return"date";default:throw new Error("Invalid valueType")}})(),d=(()=>{switch(c){case"decade":case"year":return tn;case"month":return zn;case"day":return Fn;default:throw new Error("Invalid valueType")}})();return h("input",{"aria-label":e,disabled:n,hidden:!0,max:t?d(t):void 0,min:r?d(r):void 0,name:a,onChange:o,onFocus:function(e){e.stopPropagation()},required:i,style:{visibility:"hidden",position:"absolute",zIndex:"-999"},type:s,value:l?d(l):""})}function ya({maxDate:e,minDate:n,placeholder:t="----",valueType:r,...a}){const o=ia(275760,e&&tn(e)),i=la(1,n&&tn(n));return h(aa,{max:o,min:i,name:"year",placeholder:t,step:"century"===r?10:1,...a})}function ga({children:e}){return h("span",{className:"react-date-picker__inputGroup__divider",children:e})}const ba={},wa=new Date;wa.setFullYear(1,0,1),wa.setHours(0,0,0,0);const Ca=new Date(864e13),xa=["century","decade","year","month"],_a=[...xa.slice(1),"day"];function ka(e){const n=xa.indexOf(e);return _a[n]}function Na(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 Oa({value:e,minDate:n,maxDate:t,maxDetail:r},a){const o=Na(e,a);if(!o)return null;const i=ka(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 fn(n);case"year":return bn(n);case"month":return On(n);case"day":return Ln(n);default:throw new Error(`Invalid rangeType: ${e}`)}}(i,o);case 1:return function(e,n){switch(e){case"decade":return vn(n);case"year":return xn(n);case"month":return Tn(n);case"day":return $n(n);default:throw new Error(`Invalid rangeType: ${e}`)}}(i,o);default:throw new Error(`Invalid index value: ${a}`)}})(),n,t)}const Da=e=>Oa(e,0),Sa=e=>Oa(e,1),Ta=e=>[Da,Sa].map(n=>n(e));function Ea(e){return"true"===e.dataset.input}function Ma(e,n){let t=e;do{t=t[n]}while(t&&!Ea(t));return t}function La(e){e&&e.focus()}function Aa({autoFocus:e,className:a,dayAriaLabel:o,dayPlaceholder:i,disabled:l,format:c,isCalendarOpen:s=null,locale:d,maxDate:u,maxDetail:p="month",minDate:m,monthAriaLabel:v,monthPlaceholder:y,name:g="date",nativeInputAriaLabel:b,onChange:w,onInvalidChange:C,required:x,returnValue:_="start",showLeadingZeros:k,value:N,yearAriaLabel:O,yearPlaceholder:D}){const[S,T]=n(null),[E,M]=n(null),[L,A]=n(null),[j,$]=n(null),P=t(null),I=t(null),V=t(null),z=t(null),[F,H]=n(s),R=t(void 0);r(()=>{H(s)},[s]),r(()=>{const e=Da({value:N,minDate:m,maxDate:u,maxDetail:p});e?(T(tn(e).toString()),M(an(e).toString()),A(on(e).toString()),$(e)):(T(null),M(null),A(null),$(null))},[N,m,u,p,F]);const q=ka(p),W=(()=>{const e=xa.indexOf(p);return ua(ba[e]||(()=>{const n={year:"numeric"};return e>=2&&(n.month="numeric"),e>=3&&(n.day="numeric"),ba[e]=n,n})())})();const B=c||(()=>{const e=new Date(2017,11,11),n=W(d,e),t=["y","M","d"];let r=n;return["year","month","day"].forEach((n,a)=>{const o=function(e,n){return ua(ba[e]||(()=>{const n={[e]:"numeric"};return ba[e]=n,n})())(d,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})(),Y=(()=>{const e=B.match(/[^0-9a-z]/i);return e?e[0]:null})();function K(){if(!w)return;const e=[z.current,I.current,V.current,P.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 w(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(_){case"start":return Da;case"end":return Sa;case"range":return Ta;default:throw new Error("Invalid returnValue.")}})()({value:e,minDate:m,maxDate:u,maxDetail:p})}(a);return void w(o,!1)}C&&C()}function Z(e){const{value:n}=e.target;if(!w)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})();w(t,!1)}const U={className:a,disabled:l,maxDate:u||Ca,minDate:m||wa,onChange:function(e){const{name:n,value:t}=e.target;switch(n){case"year":T(t);break;case"month":M(t);break;case"day":A(t)}K()},onKeyDown:function(e){switch(R.current=e.key,e.key){case"ArrowLeft":case"ArrowRight":case Y:{e.preventDefault();const{target:n}=e;La(Ma(n,"ArrowLeft"===e.key?"previousElementSibling":"nextElementSibling"));break}}},onKeyUp:function(e){const{key:n,target:t}=e;if(!(R.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){La(Ma(t,"nextElementSibling"))}},required:Boolean(x||F)};function G(n,t){if(n&&n.length>2)throw new Error(`Unsupported token: ${n}`);const r=n&&2===n.length;return h(ca,{...U,ariaLabel:o,autoFocus:0===t&&e,inputRef:z,month:E,placeholder:i,showLeadingZeros:r||k,value:L,year:S},"day")}function J(n,t){if(n&&n.length>4)throw new Error(`Unsupported token: ${n}`);if(n.length>2)return h(ma,{...U,ariaLabel:v,autoFocus:0===t&&e,inputRef:V,locale:d,placeholder:y,short:3===n.length,value:E,year:S},"month");const r=n&&2===n.length;return h(sa,{...U,ariaLabel:v,autoFocus:0===t&&e,inputRef:I,placeholder:y,showLeadingZeros:r||k,value:E,year:S},"month")}function X(n,t){return h(ya,{...U,ariaLabel:O,autoFocus:0===t&&e,inputRef:P,placeholder:D,value:S,valueType:q},"year")}return f("div",{className:a,onClick:function(e){if(e.target===e.currentTarget){La(e.target.children[1])}},children:[h(va,{ariaLabel:b,disabled:l,maxDate:u||Ca,minDate:m||wa,name:g,onChange:Z,required:x,value:j,valueType:q},"date"),function(e,n,t){const r=[],a=new RegExp(Object.keys(n).map(e=>`${e}+`).join("|"),"g"),o=e.match(a);return e.split(a).reduce((e,a,i)=>{const l=a&&h(ga,{children:a},`separator_${i}`);e.push(l);const c=null==o?void 0:o[i];if(c){const a=n[c]||n[Object.keys(n).find(e=>c.match(e))];if(!a)return e;!t&&r.includes(a)?e.push(c):(e.push(a(c,i)),r.push(a))}return e},[])}(B,{d:G,M:J,y:X},void 0!==c)]})}const ja="react-date-picker",$a=["mousedown","focusin","touchstart"],Pa={xmlns:"http://www.w3.org/2000/svg",width:19,height:19,viewBox:"0 0 19 19",stroke:"black",strokeWidth:2},Ia=f("svg",{...Pa,"aria-hidden":"true",className:`${ja}__calendar-button__icon ${ja}__button__icon`,children:[h("rect",{fill:"none",height:"15",width:"15",x:"2",y:"2"}),h("line",{x1:"6",x2:"6",y1:"0",y2:"4"}),h("line",{x1:"13",x2:"13",y1:"0",y2:"4"})]}),Va=f("svg",{...Pa,"aria-hidden":"true",className:`${ja}__clear-button__icon ${ja}__button__icon`,children:[h("line",{x1:"4",x2:"15",y1:"4",y2:"15"}),h("line",{x1:"15",x2:"4",y1:"4",y2:"15"})]});function za(e){const{autoFocus:o,calendarAriaLabel:i,calendarIcon:l=Ia,className:c,clearAriaLabel:d,clearIcon:u=Va,closeCalendar:m=!0,"data-testid":y,dayAriaLabel:g,dayPlaceholder:b,disableCalendar:w,disabled:C,format:x,id:_,isOpen:k=null,locale:N,maxDate:O,maxDetail:D="month",minDate:S,monthAriaLabel:T,monthPlaceholder:E,name:M="date",nativeInputAriaLabel:L,onCalendarClose:A,onCalendarOpen:j,onChange:$,onFocus:P,onInvalidChange:I,openCalendarOnFocus:V=!0,required:z,returnValue:F="start",shouldCloseCalendar:H,shouldOpenCalendar:R,showLeadingZeros:q,value:W,yearAriaLabel:B,yearPlaceholder:Y,...K}=e,[Z,U]=n(k),G=t(null),J=t(null);function X({reason:e}){R&&!R({reason:e})||(U(!0),j&&j())}r(()=>{U(k)},[k]);const Q=s(({reason:e})=>{H&&!H({reason:e})||(U(!1),A&&A())},[A,H]);function ee(){Z?Q({reason:"buttonClick"}):X({reason:"buttonClick"})}function ne(e,n=m){n&&Q({reason:"select"}),$&&$(e)}const te=s(e=>{"Escape"===e.key&&Q({reason:"escape"})},[Q]);function re(){ne(null)}function ae(e){e.stopPropagation()}const oe=s(e=>{const{current:n}=G,{current:t}=J,r="composedPath"in e?e.composedPath()[0]:e.target;!r||!n||n.contains(r)||t&&t.contains(r)||Q({reason:"outsideAction"})},[Q]),le=s((e=Z)=>{for(const n of $a)e?document.addEventListener(n,oe):document.removeEventListener(n,oe);e?document.addEventListener("keydown",te):document.removeEventListener("keydown",te)},[Z,oe,te]);r(()=>(le(),()=>{le(!1)}),[le]);const ce=a(()=>function(e){const n={};for(const t of $e){const r=e[t];r&&(n[t]=r)}return n}(K),[K]);return f("div",{className:ie(ja,`${ja}--${Z?"open":"closed"}`,`${ja}--${C?"disabled":"enabled"}`,c),"data-testid":y,id:_,...ce,onFocus:function(e){P&&P(e),C||Z||!V||"true"===e.target.dataset.select||X({reason:"focus"})},ref:G,children:[function(){const[e]=Array.isArray(W)?W:[W];return f("div",{className:`${ja}__wrapper`,children:[h(Aa,{...{dayAriaLabel:g,monthAriaLabel:T,nativeInputAriaLabel:L,yearAriaLabel:B},...{dayPlaceholder:b,monthPlaceholder:E,yearPlaceholder:Y},autoFocus:o,className:`${ja}__inputGroup`,disabled:C,format:x,isCalendarOpen:Z,locale:N,maxDate:O,maxDetail:D,minDate:S,name:M,onChange:ne,onInvalidChange:I,required:z,returnValue:F,showLeadingZeros:q,value:e}),null!==u&&h("button",{"aria-label":d,className:`${ja}__clear-button ${ja}__button`,disabled:C,onClick:re,onFocus:ae,type:"button",children:"function"==typeof u?p(u):u}),null!==l&&!w&&h("button",{"aria-expanded":Z||!1,"aria-label":i,className:`${ja}__calendar-button ${ja}__button`,disabled:C,onClick:ee,onFocus:ae,type:"button",children:"function"==typeof l?p(l):l})]})}(),function(){if(null===Z||w)return null;const{calendarProps:n,portalContainer:t,value:r}=e,a=`${ja}__calendar`,o=ie(a,`${a}--${Z?"open":"closed"}`),i=h(Ir,{locale:N,maxDate:O,maxDetail:D,minDate:S,onChange:e=>ne(e),value:r,...n});return t?v(h("div",{ref:J,className:o,children:i}),t):h(Kr,{children:h("div",{ref:e=>{e&&!Z&&e.removeAttribute("style")},className:o,children:i})})}()]})}Q(".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");Q(".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 Fa=({selectedDate:e,setSelectedDate:n,placeholder:t="Select date",minDate:r=null,maxDate:a=null,disableWeekends:o=!1,inputFormat:i="dd/MM/yyyy"})=>f(m,{children:[f("div",{className:"form-control form-control-solid border d-flex align-items-center p-2 justify-content-between",children:[h(za,{value:e?new Date(e):null,onChange:n,calendarIcon:null,clearIcon:null,minDate:r?new Date(r):void 0,maxDate:a?new Date(a):void 0,tileDisabled:({date:e})=>{if(!o)return!1;const n=e.getDay();return 0===n||6===n},placeholderText:t,format:i}),h("span",{className:"svg-icon svg-icon-1 ms-2 me-0",children:f("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h("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"}),h("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"}),h("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"})]})})]}),h("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 "})]}),Ha=()=>null;Ha.propTypes={header:K.oneOfType([K.string,K.node]).isRequired,accessor:K.string,colKey:K.string,filterKey:K.string,sortKey:K.string,filterType:K.string,filterOptions:K.any,sortable:K.bool,headerClassName:K.string,render:K.func,filterAlignment:K.string,children:K.oneOfType([K.func,K.node])},Ha.defaultProps={filterAlignment:"left-0"};const Ra=({title:a,data:o=[],children:i,tableClassName:l="",pageSize:c,currentPage:s,totalPages:d=0,onPageChange:u,onPageSizeChange:p,totalRecords:v,pageSizeOptions:y=[10,20,50,100],onSortChange:g,onFilterChange:b,onFilterReset:w,isLoading:C=!1,handleRowClick:x,filterSummery:_,loadingClassName:k,loadingSize:N,loadingType:O,loadingPlaceholderRows:D,loadingColSpan:S})=>{const[T,E]=n([]),[M,L]=n({}),[A,j]=n({}),[$,P]=n(null),[I,V]=n({}),[z,F]=n({}),H=t(null);r(()=>{const e=e=>{H.current&&!H.current.contains(e.target)&&P(null)};return null!==$&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[$]);const R=e.Children.toArray(i).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:c,filterType:s,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:c,filterAlignment:a,filterType:s,filterOptions:d,render:u||p,rawChild:e.props.children}}),q=(e,n)=>{if("object"==typeof e&&null!==e)L(n=>{const t={...n,...e};return b?.(t),t});else{const t={...M,[e]:n};b?.(t),L(t)}},W=e=>{if(P(n=>n===e?null:e),$!==e){const n=R[e],t=n?.filterKey;if(j(e=>({...e,[t]:M[t]||""})),"DATERANGE"===n?.filterType&&t){const e=M[t];e&&"object"==typeof e&&V(n=>({...n,[t]:{startDate:e.from||"",endDate:e.to||""}}))}}},B=1===s?1:c*s-(c-1),Y=s+1<d?c*s:v,K=(()=>{if(d<=5)return Array.from({length:d},(e,n)=>n+1);let e=s-Math.floor(2.5),n=e+5-1;return e<1&&(e=1,n=5),n>d&&(n=d,e=n-4),Array.from({length:n-e+1},(n,t)=>e+t)})();function Z(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 f("div",{className:`filtered-table position-relative ${l}`,children:[a&&h("h4",{className:"mb-3",children:a}),f("div",{className:"table-responsive",children:[Object.keys(M).some(e=>M[e])&&f("div",{className:"d-flex justify-content-between align-items-center mb-3 p-2 border bg-light rounded",children:[_&&h("div",{className:"d-flex flex-wrap align-items-center",children:_.filter(e=>""!==e.value&&null!=e.value).map(e=>{let n=e.value;if("object"==typeof e.value&&(e.value.from||e.value.to)){const t=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()}`};n=[e.value.from&&`From ${t(e.value.from)}`,e.value.to&&`To ${t(e.value.to)}`].filter(Boolean).join(" ")}else n=String(e.value);return f("span",{className:"badge bg-primary text-white me-2 mb-1",children:[h("span",{className:"fw-bolder",children:e.label||e.key}),":"," ",n]},e.key)})}),!_&&M&&h("div",{className:"d-flex flex-wrap align-items-center",children:Object.entries(M).map(([e,n])=>{if(!n)return null;const t=R.find(n=>n.filterKey===e),r=t?.header||e;if("object"==typeof n&&(n.from||n.to)){const t=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()}`},a=[n.from&&`From ${t(n.from)}`,n.to&&`To ${t(n.to)}`].filter(Boolean).join(" ");return f("span",{className:"badge bg-primary text-white me-2 mb-1",children:[h("span",{className:"fw-bolder",children:r}),":"," ",a]},e)}return f("span",{className:"badge bg-primary text-white me-2 mb-1",children:[h("span",{className:"fw-bolder",children:r}),":"," ",String(n)]},e)})}),h("div",{children:h("span",{className:"btn btn-sm btn-primary",onClick:()=>{const e={};Object.keys(M).forEach(n=>e[n]=""),L(e),Object.keys(e).forEach(e=>q(e,"")),w(),V({}),L({}),E([])},children:"Reset Filter"})})]}),f("table",{className:"table align-middle position-relative table-row-dashed fs-6 gy-3 mb-0 table-hover filtered_table",children:[h("thead",{children:h("tr",{className:"fw-bold fs-6 fs-md-5 text-gray-900",children:R.map((e,n)=>{const t=e.sortKey,r=e.filterKey,a=T.find(e=>e.field===t);let o=!1;if("DATERANGE"===e.filterType&&r){const e=M[r];o=e&&(e.from||e.to)}else r&&(o=M[r]);return h("th",{scope:"col",className:`text-nowrap min-w-100px min-w-md-auto ${e.headerClassName||""}`,children:f("div",{className:"d-flex align-items-end position-relative",children:[h("span",{dangerouslySetInnerHTML:{__html:e.header}}),f("div",{className:"ms-2 sort-filter-wrp d-flex align-items-end",children:[e.sortable&&t&&f("div",{className:"ms-1",onClick:()=>t?(e=>{const n=e.sortKey;n&&(P(null),E(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"}],g?.(r),r}))})(e):null,style:{cursor:t?"pointer":"default",marginBottom:"1px"},children:["asc"===a?.order&&h("span",{style:{color:"#d8128c"},children:h(Se,{})}),"desc"===a?.order&&h("span",{style:{color:"#d8128c"},children:h(Te,{})}),!a&&h(De,{})]}),e.filterType&&h("div",{className:"flt-btn w-25px h-25px pt-1 pe-3 "+(e.sortable?"ms-2":""),style:{color:o?"#d8128c":""},onClick:()=>W(n),children:h(Ee,{})})]}),$===n&&f("div",{ref:H,children:["TEXT"===e.filterType&&f("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Z(e.filterAlignment),children:[h("input",{type:"text",className:"form-control form-control-sm",value:A[e.filterKey]||"",placeholder:`Filter ${e.header}`,onChange:n=>j(t=>({...t,[e.filterKey]:n.target.value}))}),f("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[h("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{j(n=>({...n,[e.filterKey]:""})),q(e.filterKey,""),W(n)},children:"Clear"}),h("button",{className:"btn btn-sm btn-primary",onClick:()=>{q(e.filterKey,A[e.filterKey]||""),W(n)},children:"Apply"})]})]}),"DATE"===e.filterType&&f("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Z(e.filterAlignment),children:[h(Fa,{selectedDate:z[e.filterKey]||null,placeholder:"Select a date",setSelectedDate:n=>F(t=>({...t,[e.filterKey]:n}))}),f("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[h("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{j(n=>({...n,[e.filterKey]:""})),F(n=>{const t={...n};return delete t[e.filterKey],t}),q(e.filterKey,""),W(n)},children:"Clear"}),h("button",{className:"btn btn-sm btn-primary",onClick:()=>{q(e.filterKey,A[e.filterKey]||""),W(n)},children:"Apply"})]})]}),"DATERANGE"===e.filterType&&f("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Z(e.filterAlignment),children:[h(je,{datePickerDates:I[e.filterKey]||null,setDatePickerDates:n=>V(t=>({...t,[e.filterKey]:n}))}),f("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[h("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{e.filterKey&&(j(n=>({...n,[e.filterKey]:null})),q(e.filterKey,null),V(n=>{const t={...n};return delete t[e.filterKey],t}),W(n))},children:"Clear"}),h("button",{className:"btn btn-sm btn-primary",onClick:()=>{if(!e.filterKey)return;const t=I[e.filterKey],r={from:t?.startDate||"",to:t?.endDate||""};q(e.filterKey,r),W(n)},children:"Apply"})]})]}),"DROPDOWN"===e.filterType&&f("div",{className:"filter-dropdown-wrp z-index-1 bg-white",style:Z(e.filterAlignment),children:[f("select",{className:"form-select form-select-sm form-select-solid text-capitalize mb-3",value:A[e.filterKey]||"",onChange:n=>j(t=>({...t,[e.filterKey]:n.target.value})),children:[h("option",{value:"",children:"Any"}),e.filterOptions.map((e,n)=>h("option",{value:e.value,className:"text-capitalize",children:e.label},n))]}),f("div",{className:"d-flex align-items-center justify-content-between mt-5",children:[h("button",{className:"btn btn-sm btn-secondary me-5",onClick:()=>{j(n=>({...n,[e.filterKey]:""})),q(e.filterKey,""),W(n)},children:"Clear"}),h("button",{className:"btn btn-sm btn-primary",onClick:()=>{q(e.filterKey,A[e.filterKey]||""),W(n)},children:"Apply"})]})]})]})]})},n)})})}),h("tbody",{children:C?h("tr",{children:h("td",{colSpan:S||9,children:h(Oe,{className:k||"w-100",size:N||"md",loadingType:O||"table",placeholderRows:D||9})})}):f(m,{children:[o&&o.length>0?o.map((e,n)=>h("tr",{onClick:()=>x(e),style:{cursor:"pointer"},children:R.map((t,r)=>{let a=null;if("function"==typeof t.render)a=t.render(e,n);else if(t.accessor){const n=function(e,n){if(n)return n.split(".").reduce((e,n)=>null==e?void 0:e[n],e)}(e,t.accessor);a=null==n?"":n}else a=t.rawChild??"";return h("td",{children:a},r)})},e.uuid??e.id??n)):h("tr",{children:h("td",{colSpan:R.length,className:"text-center py-4",children:h("div",{className:"my-10 py-10",children:"No data"})})}),o&&o.length<5&&h("tr",{children:h("td",{colSpan:R.length,className:"text-center",children:h("div",{style:{minHeight:"50px"}})})})]})})]})]}),f("div",{className:"d-flex align-items-center justify-content-between mt-6",children:[f("div",{className:"col-sm-12 col-md-6 d-flex align-items-center",children:[h("div",{className:"dataTables_length",children:h("label",{children:h("select",{className:"form-select form-select-sm form-select-solid",value:c,onChange:e=>p(Number(e.target.value)),children:y.map(e=>h("option",{value:e,children:e},e))})})}),f("div",{className:"dataTables_info text-start ms-3",role:"status","aria-live":"polite",children:["Showing ",B," to ",Y," of ",v," records"]})]}),h("div",{className:"col-lg-6 col-md-12 d-flex justify-content-end",children:f("ul",{className:"pagination pagination-md",children:[s>1&&h("li",{className:"paginate_button page-item",children:h("span",{className:"page-link svg-icon svg-icon-2",onClick:()=>u(s-1),children:h(Le,{})})}),d>1&&K.map(e=>h("li",{className:"paginate_button page-item "+(s===e?"active":""),children:h("span",{onClick:()=>u(e),className:"page-link",children:e})},e)),s<d&&h("li",{className:"paginate_button page-item",children:h("span",{className:"page-link svg-icon svg-icon-2",onClick:()=>u(s+1),children:h(Me,{})})})]})}),h("style",{jsx:!0,global:!0,children:""})]})]})};Ra.propTypes={title:K.string,data:K.array,children:K.node.isRequired,tableClassName:K.string,pageSize:K.number.isRequired,currentPage:K.number.isRequired,totalPages:K.number.isRequired,onPageChange:K.func.isRequired,onPageSizeChange:K.func.isRequired,pageSizeOptions:K.array,onSortChange:K.func,onFilterChange:K.func,onFilterReset:K.func,isLoading:K.bool},Ra.Col=Ha;const qa=({children:n,items:t,className:r="",ariaLabel:a="Breadcrumb",autoSeparators:o=!1,separatorClass:i="bullet bg-gray-200 w-5px h-2px",separatorContent:l=" - ",direction:c="ltr"})=>{let s=n;if(!s&&Array.isArray(t)){s=t.map((e,n)=>{const r=e.title||e.label||e.lable||"",a=n===t.length-1,o=null!=e.isCurrent?e.isCurrent:a,i=e.linkClass||(o?"pc-breadcrumb-active text-dark fw-semibold":"pc-breadcrumb-link text-muted text-hover-primary"),l=e.icon;return h(Wa,{href:e.href,title:r,linkClass:i,isCurrent:o,icon:l},n)})}let d=s;if(o){const n=e.Children.toArray(s).filter(Boolean);d=n.reduce((e,t,r)=>(e.push(t),r<n.length-1&&e.push(h(Ba,{className:i,content:l,index:r,direction:c},`sep-${r}`)),e),[])}return h("nav",{"aria-label":a,className:`pc-breadcrumb-nav ${r}`.trim(),dir:c,children:h("ol",{className:"pc-breadcrumb list-unstyled d-flex align-items-center m-0 p-0 flex-wrap",children:e.Children.map(d,n=>{if(!e.isValidElement(n))return null;return n.type===Wa||n.type===Ba?n:h("li",{className:"pc-breadcrumb-item-wrapper",children:n})})})})};qa.propTypes={children:K.node,items:K.arrayOf(K.shape({title:K.oneOfType([K.string,K.node]),label:K.oneOfType([K.string,K.node]),lable:K.oneOfType([K.string,K.node]),href:K.string,linkClass:K.string,isCurrent:K.bool,icon:K.node})),className:K.string,ariaLabel:K.string,autoSeparators:K.bool,separatorClass:K.string,separatorContent:K.oneOfType([K.string,K.node,K.func]),direction:K.oneOf(["ltr","rtl"])};const Wa=({href:e,title:n,linkClass:t="text-muted text-hover-primary",isCurrent:r=!1,children:a,icon:o})=>{const i=a||n,l=e,c={className:t,"aria-current":r?"page":void 0},s=l&&"#"!==l,d=f(m,{children:[o&&h("span",{className:"pc-breadcrumb-icon d-inline-flex align-items-center justify-content-center","aria-hidden":"true",children:o}),i]});return h("li",{className:"pc-breadcrumb-item d-flex align-items-center",children:r||!s?h("span",{...c,children:d}):h("a",{href:l,...c,children:d})})};Wa.propTypes={href:K.string,title:K.oneOfType([K.string,K.node]),linkClass:K.string,isCurrent:K.bool,children:K.node,icon:K.node};const Ba=({className:n="bullet bg-gray-200 w-5px h-2px",content:t,index:r,direction:a="ltr"})=>{let o;if(null==t)o=null;else if("function"==typeof t)o=t(r,a);else if(e.isValidElement(t))o=t;else{let e=t;if("rtl"===a&&"string"==typeof e){const n={">":"<","<":">","»":"«","«":"»","›":"‹","‹":"›"};e=e.split("").map(e=>n[e]||e).join("")}o=e}return h("li",{className:"pc-breadcrumb-separator d-flex align-items-center","aria-hidden":"true",style:{lineHeight:1},children:h("span",{className:`pc-breadcrumb-separator-inner ${n}`.trim(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",margin:"0 4px"},children:null==o?"-":o})})};Ba.propTypes={className:K.string,content:K.oneOfType([K.string,K.node,K.func]),index:K.number,direction:K.oneOf(["ltr","rtl"])};export{U as AccordionItem,G as PCAccordionWrapper,qa as PCBreadcrumb,Wa as PCBreadcrumbItem,Ba as PCBreadcrumbSeparator,Z as PCButton,se as PCCol,le as PCContainer,Fa as PCDatePicker,Ra as PCFilteredTable,ae as PCIcon,pe as PCInput,he as PCInputCurrency,Oe as PCLoading,de as PCModal,te as PCMultiSelectDropdown,me as PCRadio,ce as PCRow,J as PCSelectDropdown,ee as PCTable,ne as PCTextarea,X as PCTooltip};