peercore-ui-library 1.0.13 → 1.0.15

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 t,useRef as n,useEffect as r,useMemo as o}from"react";function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c,i={exports:{}},s={exports:{}},p={};var d,m,u,f,h,v,g,y,b,w,E,x,C,k,N,S={};
1
+ import e,{useState as t,useRef as n,useEffect as r,useMemo as o}from"react";function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var c,i={exports:{}},s={exports:{}},p={};var d,m,u,f,h,v,g,y,b,w,E,x,k,C,N,S={};
2
2
  /** @license React v16.13.1
3
3
  * react-is.development.js
4
4
  *
@@ -6,9 +6,9 @@ import e,{useState as t,useRef as n,useEffect as r,useMemo as o}from"react";func
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 O(){return m||(m=1,"production"===process.env.NODE_ENV?s.exports=function(){if(c)return p;c=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var c=e.$$typeof;switch(c){case t:switch(e=e.type){case s:case d:case r:case a:case o:case u:return e;default:switch(e=e&&e.$$typeof){case i:case m:case v:case h:case l:return e;default:return c}}case n:return c}}}function x(e){return E(e)===d}return p.AsyncMode=s,p.ConcurrentMode=d,p.ContextConsumer=i,p.ContextProvider=l,p.Element=t,p.ForwardRef=m,p.Fragment=r,p.Lazy=v,p.Memo=h,p.Portal=n,p.Profiler=a,p.StrictMode=o,p.Suspense=u,p.isAsyncMode=function(e){return x(e)||E(e)===s},p.isConcurrentMode=x,p.isContextConsumer=function(e){return E(e)===i},p.isContextProvider=function(e){return E(e)===l},p.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},p.isForwardRef=function(e){return E(e)===m},p.isFragment=function(e){return E(e)===r},p.isLazy=function(e){return E(e)===v},p.isMemo=function(e){return E(e)===h},p.isPortal=function(e){return E(e)===n},p.isProfiler=function(e){return E(e)===a},p.isStrictMode=function(e){return E(e)===o},p.isSuspense=function(e){return E(e)===u},p.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===d||e===a||e===o||e===u||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===i||e.$$typeof===m||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},p.typeOf=E,p}():s.exports=(d||(d=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case i:case s:case r:case a:case o:case d:return h;default:var v=h&&h.$$typeof;switch(v){case c:case p:case f:case u:case l:return v;default:return m}}case n:return m}}}var w=i,E=s,x=c,C=l,k=t,N=p,O=r,M=f,T=u,$=n,j=a,L=o,z=d,P=!1;function q(e){return b(e)===s}S.AsyncMode=w,S.ConcurrentMode=E,S.ContextConsumer=x,S.ContextProvider=C,S.Element=k,S.ForwardRef=N,S.Fragment=O,S.Lazy=M,S.Memo=T,S.Portal=$,S.Profiler=j,S.StrictMode=L,S.Suspense=z,S.isAsyncMode=function(e){return P||(P=!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.")),q(e)||b(e)===i},S.isConcurrentMode=q,S.isContextConsumer=function(e){return b(e)===c},S.isContextProvider=function(e){return b(e)===l},S.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},S.isForwardRef=function(e){return b(e)===p},S.isFragment=function(e){return b(e)===r},S.isLazy=function(e){return b(e)===f},S.isMemo=function(e){return b(e)===u},S.isPortal=function(e){return b(e)===n},S.isProfiler=function(e){return b(e)===a},S.isStrictMode=function(e){return b(e)===o},S.isSuspense=function(e){return b(e)===d},S.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===s||e===a||e===o||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===u||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===g||e.$$typeof===y||e.$$typeof===h)},S.typeOf=b}()),S)),s.exports}
9
+ */function O(){return m||(m=1,"production"===process.env.NODE_ENV?s.exports=function(){if(c)return p;c=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var c=e.$$typeof;switch(c){case t:switch(e=e.type){case s:case d:case r:case a:case o:case u:return e;default:switch(e=e&&e.$$typeof){case i:case m:case v:case h:case l:return e;default:return c}}case n:return c}}}function x(e){return E(e)===d}return p.AsyncMode=s,p.ConcurrentMode=d,p.ContextConsumer=i,p.ContextProvider=l,p.Element=t,p.ForwardRef=m,p.Fragment=r,p.Lazy=v,p.Memo=h,p.Portal=n,p.Profiler=a,p.StrictMode=o,p.Suspense=u,p.isAsyncMode=function(e){return x(e)||E(e)===s},p.isConcurrentMode=x,p.isContextConsumer=function(e){return E(e)===i},p.isContextProvider=function(e){return E(e)===l},p.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},p.isForwardRef=function(e){return E(e)===m},p.isFragment=function(e){return E(e)===r},p.isLazy=function(e){return E(e)===v},p.isMemo=function(e){return E(e)===h},p.isPortal=function(e){return E(e)===n},p.isProfiler=function(e){return E(e)===a},p.isStrictMode=function(e){return E(e)===o},p.isSuspense=function(e){return E(e)===u},p.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===d||e===a||e===o||e===u||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===l||e.$$typeof===i||e.$$typeof===m||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},p.typeOf=E,p}():s.exports=(d||(d=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,u=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case i:case s:case r:case a:case o:case d:return h;default:var v=h&&h.$$typeof;switch(v){case c:case p:case f:case u:case l:return v;default:return m}}case n:return m}}}var w=i,E=s,x=c,k=l,C=t,N=p,O=r,M=f,$=u,T=n,j=a,L=o,z=d,q=!1;function A(e){return b(e)===s}S.AsyncMode=w,S.ConcurrentMode=E,S.ContextConsumer=x,S.ContextProvider=k,S.Element=C,S.ForwardRef=N,S.Fragment=O,S.Lazy=M,S.Memo=$,S.Portal=T,S.Profiler=j,S.StrictMode=L,S.Suspense=z,S.isAsyncMode=function(e){return q||(q=!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)===i},S.isConcurrentMode=A,S.isContextConsumer=function(e){return b(e)===c},S.isContextProvider=function(e){return b(e)===l},S.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},S.isForwardRef=function(e){return b(e)===p},S.isFragment=function(e){return b(e)===r},S.isLazy=function(e){return b(e)===f},S.isMemo=function(e){return b(e)===u},S.isPortal=function(e){return b(e)===n},S.isProfiler=function(e){return b(e)===a},S.isStrictMode=function(e){return b(e)===o},S.isSuspense=function(e){return b(e)===d},S.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===s||e===a||e===o||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===u||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===g||e.$$typeof===y||e.$$typeof===h)},S.typeOf=b}()),S)),s.exports}
10
10
  /*
11
11
  object-assign
12
12
  (c) Sindre Sorhus
13
13
  @license MIT
14
- */function M(){if(f)return u;f=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return u=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 t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[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,o){for(var a,l,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),i=1;i<arguments.length;i++){for(var s in a=Object(arguments[i]))t.call(a,s)&&(c[s]=a[s]);if(e){l=e(a);for(var p=0;p<l.length;p++)n.call(a,l[p])&&(c[l[p]]=a[l[p]])}}return c},u}function T(){if(v)return h;v=1;return h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function $(){return y?g:(y=1,g=Function.call.bind(Object.prototype.hasOwnProperty))}function j(){if(w)return b;w=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=T(),n={},r=$();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,a,l,c,i){if("production"!==process.env.NODE_ENV)for(var s in o)if(r(o,s)){var p;try{if("function"!=typeof o[s]){var d=Error((c||"React class")+": "+l+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}p=o[s](a,s,c,l,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((c||"React class")+": type specification of "+l+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var m=i?i():"";e("Failed "+l+" type: "+p.message+(null!=m?m:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},b=o}function L(){if(x)return E;x=1;var e=O(),t=M(),n=T(),r=$(),o=j(),a=function(){};function l(){return null}return"production"!==process.env.NODE_ENV&&(a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),E=function(c,i){var s="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",d={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(l),arrayOf:function(e){return f(function(t,r,o,a,l){if("function"!=typeof e)return new u("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=t[r];if(!Array.isArray(c))return new u("Invalid "+a+" `"+l+"` of type `"+y(c)+"` supplied to `"+o+"`, expected an array.");for(var i=0;i<c.length;i++){var s=e(c,i,o,a,l+"["+i+"]",n);if(s instanceof Error)return s}return null})},element:f(function(e,t,n,r,o){var a=e[t];return c(a)?null:new u("Invalid "+r+" `"+o+"` of type `"+y(a)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:f(function(t,n,r,o,a){var l=t[n];return e.isValidElementType(l)?null:new u("Invalid "+o+" `"+a+"` of type `"+y(l)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return f(function(t,n,r,o,a){if(!(t[n]instanceof e)){var l=e.name||p;return new u("Invalid "+o+" `"+a+"` of type `"+(((c=t[n]).constructor&&c.constructor.name?c.constructor.name:p)+"` supplied to `")+r+"`, expected instance of `"+l+"`.")}var c;return null})},node:f(function(e,t,n,r,o){return g(e[t])?null:new u("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return f(function(t,o,a,l,c){if("function"!=typeof e)return new u("Property `"+c+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var i=t[o],s=y(i);if("object"!==s)return new u("Invalid "+l+" `"+c+"` of type `"+s+"` supplied to `"+a+"`, expected an object.");for(var p in i)if(r(i,p)){var d=e(i,p,a,l,c+"."+p,n);if(d instanceof Error)return d}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a(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."),l;return f(function(t,n,r,o,a){for(var l=t[n],c=0;c<e.length;c++)if(m(l,e[c]))return null;var i=JSON.stringify(e,function(e,t){return"symbol"===b(t)?String(t):t});return new u("Invalid "+o+" `"+a+"` of value `"+String(l)+"` supplied to `"+r+"`, expected one of "+i+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),l}return f(function(t,o,a,l,c){for(var i=[],s=0;s<e.length;s++){var p=(0,e[s])(t,o,a,l,c,n);if(null==p)return null;p.data&&r(p.data,"expectedType")&&i.push(p.data.expectedType)}return new u("Invalid "+l+" `"+c+"` supplied to `"+a+"`"+(i.length>0?", expected one of type ["+i.join(", ")+"]":"")+".")})},shape:function(e){return f(function(t,r,o,a,l){var c=t[r],i=y(c);if("object"!==i)return new u("Invalid "+a+" `"+l+"` of type `"+i+"` supplied to `"+o+"`, expected `object`.");for(var s in e){var p=e[s];if("function"!=typeof p)return v(o,a,l,s,b(p));var d=p(c,s,o,a,l+"."+s,n);if(d)return d}return null})},exact:function(e){return f(function(o,a,l,c,i){var s=o[a],p=y(s);if("object"!==p)return new u("Invalid "+c+" `"+i+"` of type `"+p+"` supplied to `"+l+"`, expected `object`.");var d=t({},o[a],e);for(var m in d){var f=e[m];if(r(e,m)&&"function"!=typeof f)return v(l,c,i,m,b(f));if(!f)return new u("Invalid "+c+" `"+i+"` key `"+m+"` supplied to `"+l+"`.\nBad object: "+JSON.stringify(o[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(s,m,l,c,i+"."+m,n);if(h)return h}return null})}};function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function u(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,l,c,s,d,m,f){if(s=s||p,m=m||c,f!==n){if(i){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=s+":"+c;!t[v]&&r<3&&(a("You are manually calling a React.PropTypes validation function for the `"+m+"` 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."),t[v]=!0,r++)}}return null==l[c]?o?null===l[c]?new u("The "+d+" `"+m+"` is marked as required in `"+s+"`, but its value is `null`."):new u("The "+d+" `"+m+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(l,c,s,d,m)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function h(e){return f(function(t,n,r,o,a,l){var c=t[n];return y(c)!==e?new u("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function v(e,t,n,r,o){return new u((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||c(e))return!0;var t=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return u.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},E}function z(){if(k)return C;k=1;var e=T();function t(){}function n(){}return n.resetWarningCache=t,C=function(){function r(t,n,r,o,a,l){if(l!==e){var c=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 c.name="Invariant Violation",c}}function o(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}}function P(){if(N)return i.exports;if(N=1,"production"!==process.env.NODE_ENV){var e=O();i.exports=L()(e.isElement,true)}else i.exports=z()();return i.exports}var q=l(P());function A({label:t,icon:n,loading:r=!1,disabled:o=!1,variant:l="primary",type:c="button",className:i="",...s}){const p=!!t,d=!t&&n;return e.createElement("button",a({type:c,className:`btn btn-${l} ${i} d-flex align-items-center justify-center gap-2 ${d?"p-2":""}`,disabled:o||r},s),r&&e.createElement("span",{className:"custom-spinner"}),n&&e.createElement("span",{className:"px-2"},n),p&&e.createElement("span",null,t),e.createElement("style",{jsx:!0},"\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 "))}A.propTypes={label:q.oneOfType([q.string,q.node]),icon:q.node,loading:q.bool,disabled:q.bool,variant:q.oneOf(["primary","secondary","outline-primary","outline-secondary","success","danger","warning","info","light","dark"]),type:q.oneOf(["button","submit","reset"])};const I=({title:t,children:n,isOpen:r,onToggle:o,index:a,id:l,className:c="","data-testid":i})=>{const s=l||`collapse-${a}`,p=`heading-${a}`;return e.createElement(e.Fragment,null,e.createElement("div",{className:`accordion-item pc-accordion-item pb-0 mb-2 ${c}`.trim(),"data-testid":i},e.createElement("h2",{className:"accordion-header",id:p},e.createElement("button",{className:"accordion-button "+(r?"":"collapsed"),type:"button",onClick:o,"aria-expanded":r,"aria-controls":s},"string"==typeof t?e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}):t)),e.createElement("div",{id:s,className:"accordion-collapse collapse "+(r?"show":""),"aria-labelledby":p},e.createElement("div",{className:"accordion-body"},n))),e.createElement("style",{jsx:!0},"\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 "))},V=({children:n,singleOpen:r=!0,id:o,className:a="","data-testid":l})=>{const[c,i]=t([]),s=e.Children.map(n,(t,n)=>{if(e.isValidElement(t)){const o=c.includes(n)||!c.length&&t.props.OpenByDefault;return e.cloneElement(t,{index:n,isOpen:o,onToggle:()=>((e,t,n)=>{i(o=>{const a=o.includes(e);let l;return l=r?a?[]:[e]:a?o.filter(t=>t!==e):[...o,e],!a&&t&&t(),a&&n&&n(),l})})(n,t.props.onOpen,t.props.onClose)})}return t});return e.createElement(e.Fragment,null,e.createElement("div",{className:`pc-accordion accordion ${a}`.trim(),id:o||"pcaccordionWrapper","data-testid":l},s),e.createElement("style",{jsx:!0},"\n .pc-accordion{;\n }\n "))},_=({options:o=[],placeholder:a="Select...",onChange:l,isInvalid:c=!1,errMsg:i="",id:s,name:p,dataTestId:d,enableSearch:m=!1,selected:u=null})=>{const[f,h]=t(!1),[v,g]=t(""),y=n(null),b=n(null),[w,E]=t(null),x=null!==u?u:w;r(()=>{null!==u&&E(u)},[u]),r(()=>{const e=e=>{y.current&&!y.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const C=o.filter(e=>e.label.toLowerCase().includes(v.toLowerCase()));return e.createElement("div",{className:"position-relative w-100",ref:y},e.createElement("div",{className:"dropdown"},e.createElement("button",{type:"button",ref:b,className:"form-select pc-ele-border text-start "+(c?"invalid":""),onClick:()=>h(e=>!e),id:s,name:p,"data-testid":d},x?.label||a),f&&e.createElement("div",{className:"slc-dropdown-options-wrp show w-100 pc-ele-border position-absolute top-100 start-0 z-index-2",style:{maxHeight:300}},m&&e.createElement("div",{className:"mb-2 px-3 py-2 border-bottom"},e.createElement("input",{type:"text",className:"form-control pc-select-opt-input",placeholder:"Search...",value:v,onChange:e=>g(e.target.value)})),C.length>0?C.map((t,n)=>e.createElement("span",{key:n,className:"pc-select-opt d-block w-100 py-3 px-4",type:"button",onClick:()=>(e=>{null===u&&E(e),h(!1),l?.(p,e)})(t)},t.label)):e.createElement("div",{className:"text-muted px-2"},"No results found"))),c&&i&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"}},i),e.createElement("style",{jsx:!0},"\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:q.arrayOf(q.shape({label:q.string,value:q.any})).isRequired,placeholder:q.string,onChange:q.func,isInvalid:q.bool,errMsg:q.string,id:q.string,name:q.string,dataTestId:q.string,enableSearch:q.bool};const H=({placement:t="top",caption:n,children:r,customStyles:o,visibility:a=!0})=>e.createElement(e.Fragment,null,e.createElement("div",{className:` tooltip-wrapper tooltip-${t}`,tabIndex:"0"},r,a&&e.createElement("div",{className:`tooltip-content shadow-sm ${o}`,role:"tooltip"},n)),e.createElement("style",{jsx:!0},`\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: ${o?"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 `));H.propTypes={placement:q.oneOf(["top","bottom","left","right"]),caption:q.string.isRequired,children:q.node.isRequired};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.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 R=({value:n=[],columns:r=[],style:a={},caption:l,header:c,footer:i,children:s,paginator:p=!1,rowsPerPageOptions:d=[10,25,50],currentPageReportTemplate:m="Showing {first} to {last} of {totalRecords} records",onPageChange:u=()=>{},paginationConfig:f=null})=>{const h=!!f,[v,g]=t(1),[y,b]=t(d[0]),w=h?f.current_page:v,E=h?f.page_size:y,x=h?f.total_records:n.length,C=h?f.total_pages:Math.ceil(x/E),k=o(()=>{if(h)return n;const e=(w-1)*E,t=e+E;return n.slice(e,t)},[n,w,E,h]),N=e=>{e<1||e>C||(h||g(e),u({page:e,rows:E}))},S=r?.length>0,O=e.Children.toArray(s).some(t=>e.isValidElement(t)&&"tbody"===t.type),M=!S&&e.Children.count(s)>0;return e.createElement(e.Fragment,null,e.createElement("div",{className:"table-responsive"},l&&e.createElement("div",{className:"mb-2"},l),e.createElement("table",{className:"table pc-table align-middle table-row-dashed fs-6 gy-3 mb-0 dataTable no-footer table-hover gs-4",style:a},S?e.createElement("thead",null,e.createElement("tr",null,r.map((t,n)=>e.createElement("th",{key:n},t.header)))):c&&e.createElement("thead",null,c),S?e.createElement("tbody",null,k.map((t,n)=>e.createElement("tr",{key:n},r.map((n,r)=>e.createElement("td",{key:r},e.createElement("div",{className:"py-2"},t[n.field])))))):M&&(O?s:e.createElement("tbody",null,s)),i&&e.createElement("tfoot",null,i))),p&&e.createElement("div",{className:"d-flex justify-content-between align-items-center mt-5 pc-pagination-wrp"},e.createElement("div",{className:"dataTables_length d-flex align-items-center"},e.createElement("select",{className:"form-select form-select-sm form-select-solid w-auto me-3",value:E,onChange:e=>{const t=parseInt(e.target.value,10);h||(b(t),g(1)),u({page:1,rows:t})}},d.map(t=>e.createElement("option",{key:t,value:t},t)))," ",e.createElement("div",null,(()=>{const e=(w-1)*E+1,t=Math.min(e+E-1,x);return m.replace("{first}",e).replace("{last}",t).replace("{totalRecords}",x)})())),e.createElement("div",{className:"d-flex align-items-center gap-2"},e.createElement("nav",null,e.createElement("ul",{className:"pagination mb-0"},e.createElement("li",{className:"page-item "+(1===w?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>N(1)},e.createElement("i",{class:"previous"}),e.createElement("i",{style:{marginLeft:"-5px"},class:"previous"}))),e.createElement("li",{className:"page-item "+(1===w?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>N(w-1)},e.createElement("i",{class:"previous"}))),Array.from({length:Math.min(C,5)},(t,n)=>{const r=w<=3?n+1:w-2+n;return r>C?null:e.createElement("li",{key:r,className:"page-item "+(w===r?"active":"")},e.createElement("button",{className:"page-link",onClick:()=>N(r)},r))}),e.createElement("li",{className:"page-item "+(w===C?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>N(w+1)},e.createElement("i",{class:"next"}))),e.createElement("li",{className:"page-item "+(w===C?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>N(C)},e.createElement("i",{class:"next fs-1"}),e.createElement("i",{style:{marginLeft:"-5px"},class:"next"}))))))))},B=({value:t,onChange:n,isDisabled:r=!1,isInvalid:o=!1,maxChar:a=null,showCharCount:l=!1,cols:c=30,rows:i=4,id:s,name:p,dataTestId:d,errMsg:m="",placeholder:u=""})=>e.createElement("div",{className:"position-relative w-100"},a&&l&&e.createElement("div",{className:"form-text text-end"},t.length,"/",a," characters"),e.createElement("textarea",{id:s,name:p,"data-testid":d,className:"form-control pc-ele-border "+(o?"invalid":""),cols:c,rows:i,value:t,onChange:e=>{const{value:t}=e.target;(!a||t.length<=a)&&n?.(p,t)},placeholder:u,disabled:r}),o&&m&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"}},m),e.createElement("style",{jsx:!0},"\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 "));B.propTypes={value:q.string.isRequired,onChange:q.func,isDisabled:q.bool,isInvalid:q.bool,maxChar:q.number,showCharCount:q.bool,cols:q.number,rows:q.number,id:q.string,name:q.string,dataTestId:q.string,errMsg:q.string,placeholder:q.string};const D=({options:a=[],placeholder:l="Select...",onChange:c,enableSearch:i=!0,enableSelectAll:s=!0,showCountAfter:p=null,value:d=[],name:m,required:u=!1,labelKey:f="name",valueKey:h="value",isInvalid:v=!1,errMsg:g=""})=>{const[y,b]=t([]),[w,E]=t(!1),[x,C]=t(""),k=n(null),N=n(null),[S,O]=t("100%"),M=o(()=>((e,t,n)=>Array.isArray(e)?e.map(e=>({name:e?.[t]??"",value:e?.[n]??"",original:e})):[])(a,f,h),[a,f,h]);r(()=>{const e=e=>{k.current&&!k.current.contains(e.target)&&E(!1)},t=()=>{N.current&&O(`${N.current.offsetWidth}px`)};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),t(),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t)}},[]),r(()=>{if(!Array.isArray(d))return;if(!(d.length===y.length&&d.every(e=>y.some(t=>t.original?.[h]===e?.[h])))){const e=M.filter(e=>d.some(t=>t?.[h]===e.original?.[h]));b(e)}},[d,M]);const T=e=>y.some(t=>t.value===e.value),$=M.filter(e=>e.name.toLowerCase().includes(x.toLowerCase()));return e.createElement("div",{className:"position-relative pc-multi-select",ref:k},e.createElement("div",{ref:N,className:"form-select form-select-solid pc-ele-border d-flex justify-content-between align-items-center "+(v?"invalid":""),onClick:()=>E(!w),style:{cursor:"pointer"}},e.createElement("span",{className:"text-truncate",style:{maxWidth:"85%"}},(()=>{if(0===y.length)return l;if(null!=p&&y.length>p){return`${y.slice(0,p).map(e=>e.name).join(", ")} +${y.length-p} more`}return y.map(e=>e.name).join(", ")})())),v&&g&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%",zIndex:9999}},g),w&&e.createElement("div",{className:"multi-slc-dropdown-options-wrp show position-absolute top-100 start-0",style:{maxHeight:300,width:S,zIndex:9999}},e.createElement("div",{className:"dropdown-menu relative show py-3 shadow-none border position-relative",style:{maxHeight:300,overflowY:"auto",width:S,zIndex:9999}},(i||s)&&e.createElement("div",{className:"d-flex align-items-center gap-2 pb-3 mb-3 border-bottom"},s&&e.createElement("div",{className:"form-check pl-3 ms-4"},e.createElement("input",{type:"checkbox",className:"form-check-input",id:"selectAll",checked:y.length===M.length,onChange:()=>{const e=y.length===M.length?[]:[...M];b(e),c?.(m,e.map(e=>e.original))},name:m,required:u}),e.createElement("label",{className:"form-check-label",htmlFor:"selectAll"},"All")),i&&e.createElement("div",{className:"input-group me-3 "+(s?"":"ms-3")},e.createElement("input",{type:"text",className:"form-control border-end-0",placeholder:"Search...",value:x,onChange:e=>C(e.target.value)}),e.createElement("span",{className:"input-group-text border-start-0 bg-transparent"},e.createElement("i",{className:"bi bi-search"})))),$.length>0?$.map((t,n)=>e.createElement("div",{className:"form-check py-3 pl-5 mr-3 pc-multi-select-opt",key:n,style:{cursor:"pointer"}},e.createElement("input",{className:"form-check-input pc-multi-select-opt-input",type:"checkbox",id:`option-${n}`,checked:T(t),onChange:()=>(e=>{let t=y.some(t=>t.value===e.value)?y.filter(t=>t.value!==e.value):[...y,e];t=M.filter(e=>t.some(t=>t.value===e.value)),b(t),c?.(m,t.map(e=>e.original))})(t),name:m,required:u}),e.createElement("label",{className:"form-check-label ms-2",htmlFor:`option-${n}`},t.name))):e.createElement("div",{className:"text-center text-muted py-2"},"No records found"))),e.createElement("style",{jsx:!0},"\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 "))},F={ArrowRightBold:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24"},t),e.createElement("path",a({fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 14l4-4l4 4"},t))),Down:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24"},t),e.createElement("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 10l4 4l4-4"})),NewRow:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:"128",height:"128",viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("g",{fill:"none"},e.createElement("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"}),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:640,height:512,viewBox:"0 0 640 512"},t),e.createElement("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:t=0,props:n})=>e.createElement("div",{className:"position-relative email-icon-wrapper"},e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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"})),t>0&&e.createElement("span",{className:"counter-badge"},t>9?"9+":t),e.createElement("style",{jsx:!0},"\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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 56 56"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:10,height:9,fill:"none",viewBox:"0 0 10 9"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:7,height:8,viewBox:"0 0 7 10"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:15,height:20,viewBox:"0 0 9 11"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:23,height:23,viewBox:"0 0 23 23"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("path",{fill:"currentColor",d:"M11.001 10h2v5h-2zM11 16h2v2h-2z"}),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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 W({name:n,width:r="1em",height:o="1em",className:l="",color:c="currentColor",activeColor:i,hoverColor:s,...p}){const[d,m]=t(!1),[u,f]=t(!1),h=u?i||c:d&&s||c,v=F[n];return v?e.createElement(v,a({width:r,height:o,className:l,style:{color:h,cursor:p.onClick?"pointer":void 0},onMouseEnter:()=>m(!0),onMouseLeave:()=>{m(!1),f(!1)},onMouseDown:()=>f(!0),onMouseUp:()=>f(!1)},p)):(console.warn(`Icon "${n}" not found`),null)}function Z(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Z(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function U(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Z(e))&&(r&&(r+=" "),r+=t);return r}const Y=({fluid:t=!1,className:n="",children:r,...o})=>{const l=U(t?"container-fluid":"container",n);return e.createElement("div",a({className:l},o),r)};Y.propTypes={fluid:q.bool,className:q.string,children:q.node};const J=({justify:t="",align:n="",className:r="",children:o,...l})=>{const c=U("row",t&&`justify-content-${t}`,n&&`align-items-${n}`,r);return e.createElement("div",a({className:c},l),o)};J.propTypes={justify:q.oneOf(["start","center","end","around","between","evenly"]),align:q.oneOf(["start","center","end","stretch","baseline"]),className:q.string,children:q.node};const K=({xs:t,sm:n,md:r,lg:o,xl:l,offset:c,order:i,className:s="",children:p,...d})=>{const m=U(void 0!==t&&`col-${t}`,void 0!==n&&`col-sm-${n}`,void 0!==r&&`col-md-${r}`,void 0!==o&&`col-lg-${o}`,void 0!==l&&`col-xl-${l}`,void 0!==c&&`offset-${c}`,void 0!==i&&`order-${i}`,s);return e.createElement("div",a({className:m},d),p)};K.propTypes={xs:q.oneOfType([q.string,q.number]),sm:q.oneOfType([q.string,q.number]),md:q.oneOfType([q.string,q.number]),lg:q.oneOfType([q.string,q.number]),xl:q.oneOfType([q.string,q.number]),offset:q.oneOfType([q.string,q.number]),order:q.oneOfType([q.string,q.number]),className:q.string,children:q.node};const X=({title:t,children:o,footer:a,onClose:l,customStyles:c="",maxWidth:i="600px",width:s="100%",maxHeight:p="80vh",outsideClickHandle:d=!1})=>{const m=n();return r(()=>{if(!d)return;const e=e=>{m.current&&!m.current.contains(e.target)&&l?.()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[l]),e.createElement(e.Fragment,null,e.createElement("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"},e.createElement("div",{className:`card position-relative shadow p-4 ${c}`,ref:m,style:{width:s,maxWidth:i,maxHeight:p,overflowY:"auto"}},e.createElement("div",{className:"w-full d-flex justify-content-end svg-icon svg-icon-1"},e.createElement("div",{className:"cursor-pointer w-24px h-24px",onClick:l},e.createElement(Q,null))),t&&e.createElement("h5",{className:"mb-3"},t),o&&e.createElement("div",{className:"mb-3"},o),a&&e.createElement("div",{className:"text-end"},a))),e.createElement("style",{jsx:!0},"\n .conditions-overlay {\n z-index: 50;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n "))},Q=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e.createElement("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"},e.createElement("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"12;0"}))),G=e=>{if(""===e||null===e)return"";const t=Number(e.toString().replace(/[^\d.-]/g,""));return isNaN(t)?"":t.toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0})},ee=({label:n="Enter Lable",value:o="",onChange:a,required:l=!1,errorMessage:c="",name:i,disabled:s=!1})=>{const[p,d]=t(G(o));r(()=>{d(G(o))},[o]);return e.createElement("div",{className:"form-group"},e.createElement("label",{className:`form-label ${l&&"required"}`},n),e.createElement("div",{className:"input-group",style:{fontFamily:"inherit"}},e.createElement("input",{name:i,disabled:s,type:"text",value:p,onChange:e=>{const t=e.target.value.replace(/[^\d.]/g,""),n=G(t);d(n),a&&a(i,t)},placeholder:"$0.00","aria-label":"Currency input",className:"form-control form-control-solid border"+(c?" is-invalid border-danger":"")})),c&&e.createElement("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"}},c))};ee.propTypes={label:PropTypes.string,value:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),onChange:PropTypes.func,required:PropTypes.bool,errorMessage:PropTypes.string,name:PropTypes.string.isRequired,disabled:PropTypes.bool};const te=({label:t,checked:n=!1,onChange:r,name:o,value:a,disabled:l=!1,id:c,className:i="",dataTestId:s})=>e.createElement("div",{className:`form-check ${i}`,"data-testid":s},e.createElement("input",{className:"form-check-input",type:"radio",name:o,id:c,value:a,checked:n,onChange:r,disabled:l}),t&&e.createElement("label",{className:"form-check-label",htmlFor:c},t));export{I as AccordionItem,V as PCAccordionWrapper,A as PCButton,K as PCCol,Y as PCContainer,W as PCIcon,ee as PCInputCurrency,X as PCModal,D as PCMultiSelectDropdown,te as PCRadio,J as PCRow,_ as PCSelectDropdown,R as PCTable,B as PCTextarea,H as PCTooltip};
14
+ */function M(){if(f)return u;f=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return u=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 t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[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,o){for(var a,l,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),i=1;i<arguments.length;i++){for(var s in a=Object(arguments[i]))t.call(a,s)&&(c[s]=a[s]);if(e){l=e(a);for(var p=0;p<l.length;p++)n.call(a,l[p])&&(c[l[p]]=a[l[p]])}}return c},u}function $(){if(v)return h;v=1;return h="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function T(){return y?g:(y=1,g=Function.call.bind(Object.prototype.hasOwnProperty))}function j(){if(w)return b;w=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=$(),n={},r=T();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,a,l,c,i){if("production"!==process.env.NODE_ENV)for(var s in o)if(r(o,s)){var p;try{if("function"!=typeof o[s]){var d=Error((c||"React class")+": "+l+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}p=o[s](a,s,c,l,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((c||"React class")+": type specification of "+l+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var m=i?i():"";e("Failed "+l+" type: "+p.message+(null!=m?m:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},b=o}function L(){if(x)return E;x=1;var e=O(),t=M(),n=$(),r=T(),o=j(),a=function(){};function l(){return null}return"production"!==process.env.NODE_ENV&&(a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),E=function(c,i){var s="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",d={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(l),arrayOf:function(e){return f(function(t,r,o,a,l){if("function"!=typeof e)return new u("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=t[r];if(!Array.isArray(c))return new u("Invalid "+a+" `"+l+"` of type `"+y(c)+"` supplied to `"+o+"`, expected an array.");for(var i=0;i<c.length;i++){var s=e(c,i,o,a,l+"["+i+"]",n);if(s instanceof Error)return s}return null})},element:f(function(e,t,n,r,o){var a=e[t];return c(a)?null:new u("Invalid "+r+" `"+o+"` of type `"+y(a)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:f(function(t,n,r,o,a){var l=t[n];return e.isValidElementType(l)?null:new u("Invalid "+o+" `"+a+"` of type `"+y(l)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return f(function(t,n,r,o,a){if(!(t[n]instanceof e)){var l=e.name||p;return new u("Invalid "+o+" `"+a+"` of type `"+(((c=t[n]).constructor&&c.constructor.name?c.constructor.name:p)+"` supplied to `")+r+"`, expected instance of `"+l+"`.")}var c;return null})},node:f(function(e,t,n,r,o){return g(e[t])?null:new u("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return f(function(t,o,a,l,c){if("function"!=typeof e)return new u("Property `"+c+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var i=t[o],s=y(i);if("object"!==s)return new u("Invalid "+l+" `"+c+"` of type `"+s+"` supplied to `"+a+"`, expected an object.");for(var p in i)if(r(i,p)){var d=e(i,p,a,l,c+"."+p,n);if(d instanceof Error)return d}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a(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."),l;return f(function(t,n,r,o,a){for(var l=t[n],c=0;c<e.length;c++)if(m(l,e[c]))return null;var i=JSON.stringify(e,function(e,t){return"symbol"===b(t)?String(t):t});return new u("Invalid "+o+" `"+a+"` of value `"+String(l)+"` supplied to `"+r+"`, expected one of "+i+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),l}return f(function(t,o,a,l,c){for(var i=[],s=0;s<e.length;s++){var p=(0,e[s])(t,o,a,l,c,n);if(null==p)return null;p.data&&r(p.data,"expectedType")&&i.push(p.data.expectedType)}return new u("Invalid "+l+" `"+c+"` supplied to `"+a+"`"+(i.length>0?", expected one of type ["+i.join(", ")+"]":"")+".")})},shape:function(e){return f(function(t,r,o,a,l){var c=t[r],i=y(c);if("object"!==i)return new u("Invalid "+a+" `"+l+"` of type `"+i+"` supplied to `"+o+"`, expected `object`.");for(var s in e){var p=e[s];if("function"!=typeof p)return v(o,a,l,s,b(p));var d=p(c,s,o,a,l+"."+s,n);if(d)return d}return null})},exact:function(e){return f(function(o,a,l,c,i){var s=o[a],p=y(s);if("object"!==p)return new u("Invalid "+c+" `"+i+"` of type `"+p+"` supplied to `"+l+"`, expected `object`.");var d=t({},o[a],e);for(var m in d){var f=e[m];if(r(e,m)&&"function"!=typeof f)return v(l,c,i,m,b(f));if(!f)return new u("Invalid "+c+" `"+i+"` key `"+m+"` supplied to `"+l+"`.\nBad object: "+JSON.stringify(o[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(s,m,l,c,i+"."+m,n);if(h)return h}return null})}};function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function u(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,l,c,s,d,m,f){if(s=s||p,m=m||c,f!==n){if(i){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=s+":"+c;!t[v]&&r<3&&(a("You are manually calling a React.PropTypes validation function for the `"+m+"` 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."),t[v]=!0,r++)}}return null==l[c]?o?null===l[c]?new u("The "+d+" `"+m+"` is marked as required in `"+s+"`, but its value is `null`."):new u("The "+d+" `"+m+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(l,c,s,d,m)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function h(e){return f(function(t,n,r,o,a,l){var c=t[n];return y(c)!==e?new u("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function v(e,t,n,r,o){return new u((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||c(e))return!0;var t=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return u.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},E}function z(){if(C)return k;C=1;var e=$();function t(){}function n(){}return n.resetWarningCache=t,k=function(){function r(t,n,r,o,a,l){if(l!==e){var c=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 c.name="Invariant Violation",c}}function o(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}}function q(){if(N)return i.exports;if(N=1,"production"!==process.env.NODE_ENV){var e=O();i.exports=L()(e.isElement,true)}else i.exports=z()();return i.exports}var A=l(q());function I({label:t,icon:n,loading:r=!1,disabled:o=!1,variant:l="primary",type:c="button",className:i="",...s}){const p=!!t,d=!t&&n;return e.createElement("button",a({type:c,className:`btn btn-${l} ${i} d-flex align-items-center justify-center gap-2 ${d?"p-2":""}`,disabled:o||r},s),r&&e.createElement("span",{className:"custom-spinner"}),n&&e.createElement("span",{className:"px-2"},n),p&&e.createElement("span",null,t),e.createElement("style",{jsx:!0},"\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 "))}I.propTypes={label:A.oneOfType([A.string,A.node]),icon:A.node,loading:A.bool,disabled:A.bool,variant:A.oneOf(["primary","secondary","outline-primary","outline-secondary","success","danger","warning","info","light","dark"]),type:A.oneOf(["button","submit","reset"])};const P=({title:t,children:n,isOpen:r,onToggle:o,index:a,id:l,className:c="","data-testid":i})=>{const s=l||`collapse-${a}`,p=`heading-${a}`;return e.createElement(e.Fragment,null,e.createElement("div",{className:`accordion-item pc-accordion-item pb-0 mb-2 ${c}`.trim(),"data-testid":i},e.createElement("h2",{className:"accordion-header",id:p},e.createElement("button",{className:"accordion-button "+(r?"":"collapsed"),type:"button",onClick:o,"aria-expanded":r,"aria-controls":s},"string"==typeof t?e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}):t)),e.createElement("div",{id:s,className:"accordion-collapse collapse "+(r?"show":""),"aria-labelledby":p},e.createElement("div",{className:"accordion-body"},n))),e.createElement("style",{jsx:!0},"\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 "))},V=({children:n,singleOpen:r=!0,id:o,className:a="","data-testid":l})=>{const[c,i]=t([]),s=e.Children.map(n,(t,n)=>{if(e.isValidElement(t)){const o=c.includes(n)||!c.length&&t.props.OpenByDefault;return e.cloneElement(t,{index:n,isOpen:o,onToggle:()=>((e,t,n)=>{i(o=>{const a=o.includes(e);let l;return l=r?a?[]:[e]:a?o.filter(t=>t!==e):[...o,e],!a&&t&&t(),a&&n&&n(),l})})(n,t.props.onOpen,t.props.onClose)})}return t});return e.createElement(e.Fragment,null,e.createElement("div",{className:`pc-accordion accordion ${a}`.trim(),id:o||"pcaccordionWrapper","data-testid":l},s),e.createElement("style",{jsx:!0},"\n .pc-accordion{;\n }\n "))},_=({options:o=[],placeholder:a="Select...",onChange:l,isInvalid:c=!1,errMsg:i="",id:s,name:p,dataTestId:d,enableSearch:m=!1,selected:u=null})=>{const[f,h]=t(!1),[v,g]=t(""),y=n(null),b=n(null),[w,E]=t(null),x=null!==u?u:w;r(()=>{null!==u&&E(u)},[u]),r(()=>{const e=e=>{y.current&&!y.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const k=o.filter(e=>e.label.toLowerCase().includes(v.toLowerCase()));return e.createElement("div",{className:"position-relative w-100",ref:y},e.createElement("div",{className:"dropdown"},e.createElement("button",{type:"button",ref:b,className:"form-select pc-ele-border text-start "+(c?"invalid":""),onClick:()=>h(e=>!e),id:s,name:p,"data-testid":d},x?.label||a),f&&e.createElement("div",{className:"slc-dropdown-options-wrp show w-100 pc-ele-border position-absolute top-100 start-0 z-index-2",style:{maxHeight:300}},m&&e.createElement("div",{className:"mb-2 px-3 py-2 border-bottom"},e.createElement("input",{type:"text",className:"form-control pc-select-opt-input",placeholder:"Search...",value:v,onChange:e=>g(e.target.value)})),k.length>0?k.map((t,n)=>e.createElement("span",{key:n,className:"pc-select-opt d-block w-100 py-3 px-4",type:"button",onClick:()=>(e=>{null===u&&E(e),h(!1),l?.(p,e)})(t)},t.label)):e.createElement("div",{className:"text-muted px-2"},"No results found"))),c&&i&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"}},i),e.createElement("style",{jsx:!0},"\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:A.arrayOf(A.shape({label:A.string,value:A.any})).isRequired,placeholder:A.string,onChange:A.func,isInvalid:A.bool,errMsg:A.string,id:A.string,name:A.string,dataTestId:A.string,enableSearch:A.bool};const H=({placement:t="top",caption:n,children:r,customStyles:o,visibility:a=!0})=>e.createElement(e.Fragment,null,e.createElement("div",{className:` tooltip-wrapper tooltip-${t}`,tabIndex:"0"},r,a&&e.createElement("div",{className:`tooltip-content shadow-sm ${o}`,role:"tooltip"},n)),e.createElement("style",{jsx:!0},`\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: ${o?"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 `));H.propTypes={placement:A.oneOf(["top","bottom","left","right"]),caption:A.string.isRequired,children:A.node.isRequired};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.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 R=({value:n=[],columns:r=[],style:a={},caption:l,header:c,footer:i,children:s,paginator:p=!1,rowsPerPageOptions:d=[10,25,50],currentPageReportTemplate:m="Showing {first} to {last} of {totalRecords} records",onPageChange:u=()=>{},paginationConfig:f=null})=>{const h=!!f,[v,g]=t(1),[y,b]=t(d[0]),w=h?f.current_page:v,E=h?f.page_size:y,x=h?f.total_records:n.length,k=h?f.total_pages:Math.ceil(x/E),C=o(()=>{if(h)return n;const e=(w-1)*E,t=e+E;return n.slice(e,t)},[n,w,E,h]),N=e=>{e<1||e>k||(h||g(e),u({page:e,rows:E}))},S=r?.length>0,O=e.Children.toArray(s).some(t=>e.isValidElement(t)&&"tbody"===t.type),M=!S&&e.Children.count(s)>0;return e.createElement(e.Fragment,null,e.createElement("div",{className:"table-responsive"},l&&e.createElement("div",{className:"mb-2"},l),e.createElement("table",{className:"table pc-table align-middle table-row-dashed fs-6 gy-3 mb-0 dataTable no-footer table-hover gs-4",style:a},S?e.createElement("thead",null,e.createElement("tr",null,r.map((t,n)=>e.createElement("th",{key:n},t.header)))):c&&e.createElement("thead",null,c),S?e.createElement("tbody",null,C.map((t,n)=>e.createElement("tr",{key:n},r.map((n,r)=>e.createElement("td",{key:r},e.createElement("div",{className:"py-2"},t[n.field])))))):M&&(O?s:e.createElement("tbody",null,s)),i&&e.createElement("tfoot",null,i))),p&&e.createElement("div",{className:"d-flex justify-content-between align-items-center mt-5 pc-pagination-wrp"},e.createElement("div",{className:"dataTables_length d-flex align-items-center"},e.createElement("select",{className:"form-select form-select-sm form-select-solid w-auto me-3",value:E,onChange:e=>{const t=parseInt(e.target.value,10);h||(b(t),g(1)),u({page:1,rows:t})}},d.map(t=>e.createElement("option",{key:t,value:t},t)))," ",e.createElement("div",null,(()=>{const e=(w-1)*E+1,t=Math.min(e+E-1,x);return m.replace("{first}",e).replace("{last}",t).replace("{totalRecords}",x)})())),e.createElement("div",{className:"d-flex align-items-center gap-2"},e.createElement("nav",null,e.createElement("ul",{className:"pagination mb-0"},e.createElement("li",{className:"page-item "+(1===w?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>N(1)},e.createElement("i",{class:"previous"}),e.createElement("i",{style:{marginLeft:"-5px"},class:"previous"}))),e.createElement("li",{className:"page-item "+(1===w?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>N(w-1)},e.createElement("i",{class:"previous"}))),Array.from({length:Math.min(k,5)},(t,n)=>{const r=w<=3?n+1:w-2+n;return r>k?null:e.createElement("li",{key:r,className:"page-item "+(w===r?"active":"")},e.createElement("button",{className:"page-link",onClick:()=>N(r)},r))}),e.createElement("li",{className:"page-item "+(w===k?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>N(w+1)},e.createElement("i",{class:"next"}))),e.createElement("li",{className:"page-item "+(w===k?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>N(k)},e.createElement("i",{class:"next fs-1"}),e.createElement("i",{style:{marginLeft:"-5px"},class:"next"}))))))))},B=({value:t,onChange:n,isDisabled:r=!1,isInvalid:o=!1,maxChar:a=null,showCharCount:l=!1,cols:c=30,rows:i=4,id:s,name:p,dataTestId:d,errMsg:m="",placeholder:u=""})=>e.createElement("div",{className:"position-relative w-100"},a&&l&&e.createElement("div",{className:"form-text text-end"},t.length,"/",a," characters"),e.createElement("textarea",{id:s,name:p,"data-testid":d,className:"form-control pc-ele-border "+(o?"invalid":""),cols:c,rows:i,value:t,onChange:e=>{const{value:t}=e.target;(!a||t.length<=a)&&n?.(p,t)},placeholder:u,disabled:r}),o&&m&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"}},m),e.createElement("style",{jsx:!0},"\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 "));B.propTypes={value:A.string.isRequired,onChange:A.func,isDisabled:A.bool,isInvalid:A.bool,maxChar:A.number,showCharCount:A.bool,cols:A.number,rows:A.number,id:A.string,name:A.string,dataTestId:A.string,errMsg:A.string,placeholder:A.string};const D=({options:a=[],placeholder:l="Select...",onChange:c,enableSearch:i=!0,enableSelectAll:s=!0,showCountAfter:p=null,value:d=[],name:m,required:u=!1,labelKey:f="name",valueKey:h="value",isInvalid:v=!1,errMsg:g=""})=>{const[y,b]=t([]),[w,E]=t(!1),[x,k]=t(""),C=n(null),N=n(null),[S,O]=t("100%"),M=o(()=>((e,t,n)=>Array.isArray(e)?e.map(e=>({name:e?.[t]??"",value:e?.[n]??"",original:e})):[])(a,f,h),[a,f,h]);r(()=>{const e=e=>{C.current&&!C.current.contains(e.target)&&E(!1)},t=()=>{N.current&&O(`${N.current.offsetWidth}px`)};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),t(),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t)}},[]),r(()=>{if(!Array.isArray(d))return;if(!(d.length===y.length&&d.every(e=>y.some(t=>t.original?.[h]===e?.[h])))){const e=M.filter(e=>d.some(t=>t?.[h]===e.original?.[h]));b(e)}},[d,M]);const $=e=>y.some(t=>t.value===e.value),T=M.filter(e=>e.name.toLowerCase().includes(x.toLowerCase()));return e.createElement("div",{className:"position-relative pc-multi-select",ref:C},e.createElement("div",{ref:N,className:"form-select form-select-solid pc-ele-border d-flex justify-content-between align-items-center "+(v?"invalid":""),onClick:()=>E(!w),style:{cursor:"pointer"}},e.createElement("span",{className:"text-truncate",style:{maxWidth:"85%"}},(()=>{if(0===y.length)return l;if(null!=p&&y.length>p){return`${y.slice(0,p).map(e=>e.name).join(", ")} +${y.length-p} more`}return y.map(e=>e.name).join(", ")})())),v&&g&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%",zIndex:9999}},g),w&&e.createElement("div",{className:"multi-slc-dropdown-options-wrp show position-absolute top-100 start-0",style:{maxHeight:300,width:S,zIndex:9999}},e.createElement("div",{className:"dropdown-menu relative show py-3 shadow-none border position-relative",style:{maxHeight:300,overflowY:"auto",width:S,zIndex:9999}},(i||s)&&e.createElement("div",{className:"d-flex align-items-center gap-2 pb-3 mb-3 border-bottom"},s&&e.createElement("div",{className:"form-check pl-3 ms-4"},e.createElement("input",{type:"checkbox",className:"form-check-input",id:"selectAll",checked:y.length===M.length,onChange:()=>{const e=y.length===M.length?[]:[...M];b(e),c?.(m,e.map(e=>e.original))},name:m,required:u}),e.createElement("label",{className:"form-check-label",htmlFor:"selectAll"},"All")),i&&e.createElement("div",{className:"input-group me-3 "+(s?"":"ms-3")},e.createElement("input",{type:"text",className:"form-control border-end-0",placeholder:"Search...",value:x,onChange:e=>k(e.target.value)}),e.createElement("span",{className:"input-group-text border-start-0 bg-transparent"},e.createElement("i",{className:"bi bi-search"})))),T.length>0?T.map((t,n)=>e.createElement("div",{className:"form-check py-3 pl-5 mr-3 pc-multi-select-opt",key:n,style:{cursor:"pointer"}},e.createElement("input",{className:"form-check-input pc-multi-select-opt-input",type:"checkbox",id:`option-${n}`,checked:$(t),onChange:()=>(e=>{let t=y.some(t=>t.value===e.value)?y.filter(t=>t.value!==e.value):[...y,e];t=M.filter(e=>t.some(t=>t.value===e.value)),b(t),c?.(m,t.map(e=>e.original))})(t),name:m,required:u}),e.createElement("label",{className:"form-check-label ms-2",htmlFor:`option-${n}`},t.name))):e.createElement("div",{className:"text-center text-muted py-2"},"No records found"))),e.createElement("style",{jsx:!0},"\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 "))},F={ArrowRightBold:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24"},t),e.createElement("path",a({fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 14l4-4l4 4"},t))),Down:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24"},t),e.createElement("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 10l4 4l4-4"})),NewRow:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:"128",height:"128",viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("g",{fill:"none"},e.createElement("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"}),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:640,height:512,viewBox:"0 0 640 512"},t),e.createElement("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:t=0,props:n})=>e.createElement("div",{className:"position-relative email-icon-wrapper"},e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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"})),t>0&&e.createElement("span",{className:"counter-badge"},t>9?"9+":t),e.createElement("style",{jsx:!0},"\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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 56 56"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:10,height:9,fill:"none",viewBox:"0 0 10 9"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:7,height:8,viewBox:"0 0 7 10"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:15,height:20,viewBox:"0 0 9 11"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:23,height:23,viewBox:"0 0 23 23"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("path",{fill:"currentColor",d:"M11.001 10h2v5h-2zM11 16h2v2h-2z"}),e.createElement("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:t=>e.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},t),e.createElement("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 W({name:n,width:r="1em",height:o="1em",className:l="",color:c="currentColor",activeColor:i,hoverColor:s,...p}){const[d,m]=t(!1),[u,f]=t(!1),h=u?i||c:d&&s||c,v=F[n];return v?e.createElement(v,a({width:r,height:o,className:l,style:{color:h,cursor:p.onClick?"pointer":void 0},onMouseEnter:()=>m(!0),onMouseLeave:()=>{m(!1),f(!1)},onMouseDown:()=>f(!0),onMouseUp:()=>f(!1)},p)):(console.warn(`Icon "${n}" not found`),null)}function Z(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Z(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function U(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Z(e))&&(r&&(r+=" "),r+=t);return r}const Y=({fluid:t=!1,className:n="",children:r,...o})=>{const l=U(t?"container-fluid":"container",n);return e.createElement("div",a({className:l},o),r)};Y.propTypes={fluid:A.bool,className:A.string,children:A.node};const J=({justify:t="",align:n="",className:r="",children:o,...l})=>{const c=U("row",t&&`justify-content-${t}`,n&&`align-items-${n}`,r);return e.createElement("div",a({className:c},l),o)};J.propTypes={justify:A.oneOf(["start","center","end","around","between","evenly"]),align:A.oneOf(["start","center","end","stretch","baseline"]),className:A.string,children:A.node};const K=({xs:t,sm:n,md:r,lg:o,xl:l,offset:c,order:i,className:s="",children:p,...d})=>{const m=U(void 0!==t&&`col-${t}`,void 0!==n&&`col-sm-${n}`,void 0!==r&&`col-md-${r}`,void 0!==o&&`col-lg-${o}`,void 0!==l&&`col-xl-${l}`,void 0!==c&&`offset-${c}`,void 0!==i&&`order-${i}`,s);return e.createElement("div",a({className:m},d),p)};K.propTypes={xs:A.oneOfType([A.string,A.number]),sm:A.oneOfType([A.string,A.number]),md:A.oneOfType([A.string,A.number]),lg:A.oneOfType([A.string,A.number]),xl:A.oneOfType([A.string,A.number]),offset:A.oneOfType([A.string,A.number]),order:A.oneOfType([A.string,A.number]),className:A.string,children:A.node};const X=({title:t,children:o,footer:a,onClose:l,customStyles:c="",maxWidth:i="600px",width:s="100%",maxHeight:p="80vh",outsideClickHandle:d=!1})=>{const m=n();return r(()=>{if(!d)return;const e=e=>{m.current&&!m.current.contains(e.target)&&l?.()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[l]),e.createElement(e.Fragment,null,e.createElement("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"},e.createElement("div",{className:`card position-relative shadow p-4 ${c}`,ref:m,style:{width:s,maxWidth:i,maxHeight:p,overflowY:"auto"}},e.createElement("div",{className:"w-full d-flex justify-content-end svg-icon svg-icon-1"},e.createElement("div",{className:"cursor-pointer w-24px h-24px",onClick:l},e.createElement(Q,null))),t&&e.createElement("h5",{className:"mb-3"},t),o&&e.createElement("div",{className:"mb-3"},o),a&&e.createElement("div",{className:"text-end"},a))),e.createElement("style",{jsx:!0},"\n .conditions-overlay {\n z-index: 50;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n "))},Q=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e.createElement("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"},e.createElement("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"12;0"}))),G=e=>{if(""===e||null===e)return"";const t=Number(e.toString().replace(/[^\d.-]/g,""));return isNaN(t)?"":t.toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0})},ee=({label:n="Enter Lable",value:o="",onChange:a,required:l=!1,errorMessage:c="",name:i,disabled:s=!1})=>{const[p,d]=t(G(o));r(()=>{d(G(o))},[o]);return e.createElement("div",{className:"form-group"},e.createElement("label",{className:`form-label ${l&&"required"}`},n),e.createElement("div",{className:"input-group",style:{fontFamily:"inherit"}},e.createElement("input",{name:i,disabled:s,required:l,type:"text",value:p,onChange:e=>{const t=e.target.value.replace(/[^\d.]/g,""),n=G(t);d(n),a&&a(i,t)},placeholder:"$0.00","aria-label":"Currency input",className:"form-control form-control-solid border"+(c?" is-invalid border-danger":"")})),c&&e.createElement("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"}},c))},te=({label:t,checked:n=!1,onChange:r,name:o,value:a,disabled:l=!1,id:c,className:i="",dataTestId:s})=>e.createElement("div",{className:`form-check ${i}`,"data-testid":s},e.createElement("input",{className:"form-check-input",type:"radio",name:o,id:c,value:a,checked:n,onChange:r,disabled:l}),t&&e.createElement("label",{className:"form-check-label",htmlFor:c},t));export{P as AccordionItem,V as PCAccordionWrapper,I as PCButton,K as PCCol,Y as PCContainer,W as PCIcon,ee as PCInputCurrency,X as PCModal,D as PCMultiSelectDropdown,te as PCRadio,J as PCRow,_ as PCSelectDropdown,R as PCTable,B as PCTextarea,H as PCTooltip};
package/dist/index.js CHANGED
@@ -6,9 +6,9 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */function C(){return i||(i=1,"production"===process.env.NODE_ENV?a.exports=function(){if(r)return l;r=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case t:switch(e=e.type){case p:case d:case o:case c:case a:case m:return e;default:switch(e=e&&e.$$typeof){case s:case u:case v:case h:case i:return e;default:return r}}case n:return r}}}function x(e){return E(e)===d}return l.AsyncMode=p,l.ConcurrentMode=d,l.ContextConsumer=s,l.ContextProvider=i,l.Element=t,l.ForwardRef=u,l.Fragment=o,l.Lazy=v,l.Memo=h,l.Portal=n,l.Profiler=c,l.StrictMode=a,l.Suspense=m,l.isAsyncMode=function(e){return x(e)||E(e)===p},l.isConcurrentMode=x,l.isContextConsumer=function(e){return E(e)===s},l.isContextProvider=function(e){return E(e)===i},l.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},l.isForwardRef=function(e){return E(e)===u},l.isFragment=function(e){return E(e)===o},l.isLazy=function(e){return E(e)===v},l.isMemo=function(e){return E(e)===h},l.isPortal=function(e){return E(e)===n},l.isProfiler=function(e){return E(e)===c},l.isStrictMode=function(e){return E(e)===a},l.isSuspense=function(e){return E(e)===m},l.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===a||e===m||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===i||e.$$typeof===s||e.$$typeof===u||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},l.typeOf=E,l}():a.exports=(c||(c=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:var h=e.type;switch(h){case i:case s:case r:case a:case o:case d:return h;default:var v=h&&h.$$typeof;switch(v){case c:case p:case f:case m:case l:return v;default:return u}}case n:return u}}}var w=i,E=s,C=c,k=l,N=t,S=p,O=r,M=f,T=m,$=n,j=a,L=o,P=d,z=!1;function q(e){return b(e)===s}x.AsyncMode=w,x.ConcurrentMode=E,x.ContextConsumer=C,x.ContextProvider=k,x.Element=N,x.ForwardRef=S,x.Fragment=O,x.Lazy=M,x.Memo=T,x.Portal=$,x.Profiler=j,x.StrictMode=L,x.Suspense=P,x.isAsyncMode=function(e){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),q(e)||b(e)===i},x.isConcurrentMode=q,x.isContextConsumer=function(e){return b(e)===c},x.isContextProvider=function(e){return b(e)===l},x.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},x.isForwardRef=function(e){return b(e)===p},x.isFragment=function(e){return b(e)===r},x.isLazy=function(e){return b(e)===f},x.isMemo=function(e){return b(e)===m},x.isPortal=function(e){return b(e)===n},x.isProfiler=function(e){return b(e)===a},x.isStrictMode=function(e){return b(e)===o},x.isSuspense=function(e){return b(e)===d},x.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===s||e===a||e===o||e===d||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===g||e.$$typeof===y||e.$$typeof===h)},x.typeOf=b}()),x)),a.exports}
9
+ */function C(){return i||(i=1,"production"===process.env.NODE_ENV?a.exports=function(){if(r)return l;r=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case t:switch(e=e.type){case p:case d:case o:case c:case a:case m:return e;default:switch(e=e&&e.$$typeof){case s:case u:case v:case h:case i:return e;default:return r}}case n:return r}}}function x(e){return E(e)===d}return l.AsyncMode=p,l.ConcurrentMode=d,l.ContextConsumer=s,l.ContextProvider=i,l.Element=t,l.ForwardRef=u,l.Fragment=o,l.Lazy=v,l.Memo=h,l.Portal=n,l.Profiler=c,l.StrictMode=a,l.Suspense=m,l.isAsyncMode=function(e){return x(e)||E(e)===p},l.isConcurrentMode=x,l.isContextConsumer=function(e){return E(e)===s},l.isContextProvider=function(e){return E(e)===i},l.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},l.isForwardRef=function(e){return E(e)===u},l.isFragment=function(e){return E(e)===o},l.isLazy=function(e){return E(e)===v},l.isMemo=function(e){return E(e)===h},l.isPortal=function(e){return E(e)===n},l.isProfiler=function(e){return E(e)===c},l.isStrictMode=function(e){return E(e)===a},l.isSuspense=function(e){return E(e)===m},l.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===a||e===m||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===i||e.$$typeof===s||e.$$typeof===u||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},l.typeOf=E,l}():a.exports=(c||(c=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:var h=e.type;switch(h){case i:case s:case r:case a:case o:case d:return h;default:var v=h&&h.$$typeof;switch(v){case c:case p:case f:case m:case l:return v;default:return u}}case n:return u}}}var w=i,E=s,C=c,k=l,N=t,S=p,O=r,M=f,T=m,$=n,j=a,L=o,z=d,P=!1;function q(e){return b(e)===s}x.AsyncMode=w,x.ConcurrentMode=E,x.ContextConsumer=C,x.ContextProvider=k,x.Element=N,x.ForwardRef=S,x.Fragment=O,x.Lazy=M,x.Memo=T,x.Portal=$,x.Profiler=j,x.StrictMode=L,x.Suspense=z,x.isAsyncMode=function(e){return P||(P=!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.")),q(e)||b(e)===i},x.isConcurrentMode=q,x.isContextConsumer=function(e){return b(e)===c},x.isContextProvider=function(e){return b(e)===l},x.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},x.isForwardRef=function(e){return b(e)===p},x.isFragment=function(e){return b(e)===r},x.isLazy=function(e){return b(e)===f},x.isMemo=function(e){return b(e)===m},x.isPortal=function(e){return b(e)===n},x.isProfiler=function(e){return b(e)===a},x.isStrictMode=function(e){return b(e)===o},x.isSuspense=function(e){return b(e)===d},x.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===s||e===a||e===o||e===d||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===g||e.$$typeof===y||e.$$typeof===h)},x.typeOf=b}()),x)),a.exports}
10
10
  /*
11
11
  object-assign
12
12
  (c) Sindre Sorhus
13
13
  @license MIT
14
- */function k(){if(p)return s;p=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return s=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 t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[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,o){for(var a,l,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),i=1;i<arguments.length;i++){for(var s in a=Object(arguments[i]))t.call(a,s)&&(c[s]=a[s]);if(e){l=e(a);for(var p=0;p<l.length;p++)n.call(a,l[p])&&(c[l[p]]=a[l[p]])}}return c},s}function N(){if(u)return d;u=1;return d="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function S(){return f?m:(f=1,m=Function.call.bind(Object.prototype.hasOwnProperty))}function O(){if(v)return h;v=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=N(),n={},r=S();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,a,l,c,i){if("production"!==process.env.NODE_ENV)for(var s in o)if(r(o,s)){var p;try{if("function"!=typeof o[s]){var d=Error((c||"React class")+": "+l+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}p=o[s](a,s,c,l,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((c||"React class")+": type specification of "+l+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var u=i?i():"";e("Failed "+l+" type: "+p.message+(null!=u?u:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},h=o}function M(){if(y)return g;y=1;var e=C(),t=k(),n=N(),r=S(),o=O(),a=function(){};function l(){return null}return"production"!==process.env.NODE_ENV&&(a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),g=function(c,i){var s="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",d={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(l),arrayOf:function(e){return f(function(t,r,o,a,l){if("function"!=typeof e)return new m("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=t[r];if(!Array.isArray(c))return new m("Invalid "+a+" `"+l+"` of type `"+y(c)+"` supplied to `"+o+"`, expected an array.");for(var i=0;i<c.length;i++){var s=e(c,i,o,a,l+"["+i+"]",n);if(s instanceof Error)return s}return null})},element:f(function(e,t,n,r,o){var a=e[t];return c(a)?null:new m("Invalid "+r+" `"+o+"` of type `"+y(a)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:f(function(t,n,r,o,a){var l=t[n];return e.isValidElementType(l)?null:new m("Invalid "+o+" `"+a+"` of type `"+y(l)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return f(function(t,n,r,o,a){if(!(t[n]instanceof e)){var l=e.name||p;return new m("Invalid "+o+" `"+a+"` of type `"+(((c=t[n]).constructor&&c.constructor.name?c.constructor.name:p)+"` supplied to `")+r+"`, expected instance of `"+l+"`.")}var c;return null})},node:f(function(e,t,n,r,o){return g(e[t])?null:new m("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return f(function(t,o,a,l,c){if("function"!=typeof e)return new m("Property `"+c+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var i=t[o],s=y(i);if("object"!==s)return new m("Invalid "+l+" `"+c+"` of type `"+s+"` supplied to `"+a+"`, expected an object.");for(var p in i)if(r(i,p)){var d=e(i,p,a,l,c+"."+p,n);if(d instanceof Error)return d}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a(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."),l;return f(function(t,n,r,o,a){for(var l=t[n],c=0;c<e.length;c++)if(u(l,e[c]))return null;var i=JSON.stringify(e,function(e,t){return"symbol"===b(t)?String(t):t});return new m("Invalid "+o+" `"+a+"` of value `"+String(l)+"` supplied to `"+r+"`, expected one of "+i+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),l}return f(function(t,o,a,l,c){for(var i=[],s=0;s<e.length;s++){var p=(0,e[s])(t,o,a,l,c,n);if(null==p)return null;p.data&&r(p.data,"expectedType")&&i.push(p.data.expectedType)}return new m("Invalid "+l+" `"+c+"` supplied to `"+a+"`"+(i.length>0?", expected one of type ["+i.join(", ")+"]":"")+".")})},shape:function(e){return f(function(t,r,o,a,l){var c=t[r],i=y(c);if("object"!==i)return new m("Invalid "+a+" `"+l+"` of type `"+i+"` supplied to `"+o+"`, expected `object`.");for(var s in e){var p=e[s];if("function"!=typeof p)return v(o,a,l,s,b(p));var d=p(c,s,o,a,l+"."+s,n);if(d)return d}return null})},exact:function(e){return f(function(o,a,l,c,i){var s=o[a],p=y(s);if("object"!==p)return new m("Invalid "+c+" `"+i+"` of type `"+p+"` supplied to `"+l+"`, expected `object`.");var d=t({},o[a],e);for(var u in d){var f=e[u];if(r(e,u)&&"function"!=typeof f)return v(l,c,i,u,b(f));if(!f)return new m("Invalid "+c+" `"+i+"` key `"+u+"` supplied to `"+l+"`.\nBad object: "+JSON.stringify(o[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(s,u,l,c,i+"."+u,n);if(h)return h}return null})}};function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,l,c,s,d,u,f){if(s=s||p,u=u||c,f!==n){if(i){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=s+":"+c;!t[v]&&r<3&&(a("You are manually calling a React.PropTypes validation function for the `"+u+"` 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."),t[v]=!0,r++)}}return null==l[c]?o?null===l[c]?new m("The "+d+" `"+u+"` is marked as required in `"+s+"`, but its value is `null`."):new m("The "+d+" `"+u+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(l,c,s,d,u)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function h(e){return f(function(t,n,r,o,a,l){var c=t[n];return y(c)!==e?new m("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function v(e,t,n,r,o){return new m((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||c(e))return!0;var t=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},g}function T(){if(w)return b;w=1;var e=N();function t(){}function n(){}return n.resetWarningCache=t,b=function(){function r(t,n,r,o,a,l){if(l!==e){var c=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 c.name="Invariant Violation",c}}function o(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}}function $(){if(E)return o.exports;if(E=1,"production"!==process.env.NODE_ENV){var e=C();o.exports=M()(e.isElement,true)}else o.exports=T()();return o.exports}var j=n($());function L({label:n,icon:r,loading:o=!1,disabled:a=!1,variant:l="primary",type:c="button",className:i="",...s}){const p=!!n,d=!n&&r;return e.createElement("button",t({type:c,className:`btn btn-${l} ${i} d-flex align-items-center justify-center gap-2 ${d?"p-2":""}`,disabled:a||o},s),o&&e.createElement("span",{className:"custom-spinner"}),r&&e.createElement("span",{className:"px-2"},r),p&&e.createElement("span",null,n),e.createElement("style",{jsx:!0},"\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 "))}L.propTypes={label:j.oneOfType([j.string,j.node]),icon:j.node,loading:j.bool,disabled:j.bool,variant:j.oneOf(["primary","secondary","outline-primary","outline-secondary","success","danger","warning","info","light","dark"]),type:j.oneOf(["button","submit","reset"])};const P=({options:t=[],placeholder:n="Select...",onChange:r,isInvalid:o=!1,errMsg:a="",id:l,name:c,dataTestId:i,enableSearch:s=!1,selected:p=null})=>{const[d,u]=e.useState(!1),[m,f]=e.useState(""),h=e.useRef(null),v=e.useRef(null),[g,y]=e.useState(null),b=null!==p?p:g;e.useEffect(()=>{null!==p&&y(p)},[p]),e.useEffect(()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&u(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const w=t.filter(e=>e.label.toLowerCase().includes(m.toLowerCase()));return e.createElement("div",{className:"position-relative w-100",ref:h},e.createElement("div",{className:"dropdown"},e.createElement("button",{type:"button",ref:v,className:"form-select pc-ele-border text-start "+(o?"invalid":""),onClick:()=>u(e=>!e),id:l,name:c,"data-testid":i},b?.label||n),d&&e.createElement("div",{className:"slc-dropdown-options-wrp show w-100 pc-ele-border position-absolute top-100 start-0 z-index-2",style:{maxHeight:300}},s&&e.createElement("div",{className:"mb-2 px-3 py-2 border-bottom"},e.createElement("input",{type:"text",className:"form-control pc-select-opt-input",placeholder:"Search...",value:m,onChange:e=>f(e.target.value)})),w.length>0?w.map((t,n)=>e.createElement("span",{key:n,className:"pc-select-opt d-block w-100 py-3 px-4",type:"button",onClick:()=>(e=>{null===p&&y(e),u(!1),r?.(c,e)})(t)},t.label)):e.createElement("div",{className:"text-muted px-2"},"No results found"))),o&&a&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"}},a),e.createElement("style",{jsx:!0},"\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 "))};P.propTypes={options:j.arrayOf(j.shape({label:j.string,value:j.any})).isRequired,placeholder:j.string,onChange:j.func,isInvalid:j.bool,errMsg:j.string,id:j.string,name:j.string,dataTestId:j.string,enableSearch:j.bool};const z=({placement:t="top",caption:n,children:r,customStyles:o,visibility:a=!0})=>e.createElement(e.Fragment,null,e.createElement("div",{className:` tooltip-wrapper tooltip-${t}`,tabIndex:"0"},r,a&&e.createElement("div",{className:`tooltip-content shadow-sm ${o}`,role:"tooltip"},n)),e.createElement("style",{jsx:!0},`\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: ${o?"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 `));z.propTypes={placement:j.oneOf(["top","bottom","left","right"]),caption:j.string.isRequired,children:j.node.isRequired};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.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 q=({value:t,onChange:n,isDisabled:r=!1,isInvalid:o=!1,maxChar:a=null,showCharCount:l=!1,cols:c=30,rows:i=4,id:s,name:p,dataTestId:d,errMsg:u="",placeholder:m=""})=>e.createElement("div",{className:"position-relative w-100"},a&&l&&e.createElement("div",{className:"form-text text-end"},t.length,"/",a," characters"),e.createElement("textarea",{id:s,name:p,"data-testid":d,className:"form-control pc-ele-border "+(o?"invalid":""),cols:c,rows:i,value:t,onChange:e=>{const{value:t}=e.target;(!a||t.length<=a)&&n?.(p,t)},placeholder:m,disabled:r}),o&&u&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"}},u),e.createElement("style",{jsx:!0},"\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 "));q.propTypes={value:j.string.isRequired,onChange:j.func,isDisabled:j.bool,isInvalid:j.bool,maxChar:j.number,showCharCount:j.bool,cols:j.number,rows:j.number,id:j.string,name:j.string,dataTestId:j.string,errMsg:j.string,placeholder:j.string};const A={ArrowRightBold:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24"},n),e.createElement("path",t({fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 14l4-4l4 4"},n))),Down:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24"},n),e.createElement("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 10l4 4l4-4"})),NewRow:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:"128",height:"128",viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("g",{fill:"none"},e.createElement("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"}),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:640,height:512,viewBox:"0 0 640 512"},n),e.createElement("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:n=0,props:r})=>e.createElement("div",{className:"position-relative email-icon-wrapper"},e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},r),e.createElement("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"})),n>0&&e.createElement("span",{className:"counter-badge"},n>9?"9+":n),e.createElement("style",{jsx:!0},"\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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 56 56"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:10,height:9,fill:"none",viewBox:"0 0 10 9"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:7,height:8,viewBox:"0 0 7 10"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:15,height:20,viewBox:"0 0 9 11"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:23,height:23,viewBox:"0 0 23 23"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("path",{fill:"currentColor",d:"M11.001 10h2v5h-2zM11 16h2v2h-2z"}),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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 I(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=I(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function R(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=I(e))&&(r&&(r+=" "),r+=t);return r}const V=({fluid:n=!1,className:r="",children:o,...a})=>{const l=R(n?"container-fluid":"container",r);return e.createElement("div",t({className:l},a),o)};V.propTypes={fluid:j.bool,className:j.string,children:j.node};const _=({justify:n="",align:r="",className:o="",children:a,...l})=>{const c=R("row",n&&`justify-content-${n}`,r&&`align-items-${r}`,o);return e.createElement("div",t({className:c},l),a)};_.propTypes={justify:j.oneOf(["start","center","end","around","between","evenly"]),align:j.oneOf(["start","center","end","stretch","baseline"]),className:j.string,children:j.node};const H=({xs:n,sm:r,md:o,lg:a,xl:l,offset:c,order:i,className:s="",children:p,...d})=>{const u=R(void 0!==n&&`col-${n}`,void 0!==r&&`col-sm-${r}`,void 0!==o&&`col-md-${o}`,void 0!==a&&`col-lg-${a}`,void 0!==l&&`col-xl-${l}`,void 0!==c&&`offset-${c}`,void 0!==i&&`order-${i}`,s);return e.createElement("div",t({className:u},d),p)};H.propTypes={xs:j.oneOfType([j.string,j.number]),sm:j.oneOfType([j.string,j.number]),md:j.oneOfType([j.string,j.number]),lg:j.oneOfType([j.string,j.number]),xl:j.oneOfType([j.string,j.number]),offset:j.oneOfType([j.string,j.number]),order:j.oneOfType([j.string,j.number]),className:j.string,children:j.node};const B=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e.createElement("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"},e.createElement("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"12;0"}))),D=e=>{if(""===e||null===e)return"";const t=Number(e.toString().replace(/[^\d.-]/g,""));return isNaN(t)?"":t.toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0})},F=({label:t="Enter Lable",value:n="",onChange:r,required:o=!1,errorMessage:a="",name:l,disabled:c=!1})=>{const[i,s]=e.useState(D(n));e.useEffect(()=>{s(D(n))},[n]);return e.createElement("div",{className:"form-group"},e.createElement("label",{className:`form-label ${o&&"required"}`},t),e.createElement("div",{className:"input-group",style:{fontFamily:"inherit"}},e.createElement("input",{name:l,disabled:c,type:"text",value:i,onChange:e=>{const t=e.target.value.replace(/[^\d.]/g,""),n=D(t);s(n),r&&r(l,t)},placeholder:"$0.00","aria-label":"Currency input",className:"form-control form-control-solid border"+(a?" is-invalid border-danger":"")})),a&&e.createElement("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"}},a))};F.propTypes={label:PropTypes.string,value:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),onChange:PropTypes.func,required:PropTypes.bool,errorMessage:PropTypes.string,name:PropTypes.string.isRequired,disabled:PropTypes.bool};exports.AccordionItem=({title:t,children:n,isOpen:r,onToggle:o,index:a,id:l,className:c="","data-testid":i})=>{const s=l||`collapse-${a}`,p=`heading-${a}`;return e.createElement(e.Fragment,null,e.createElement("div",{className:`accordion-item pc-accordion-item pb-0 mb-2 ${c}`.trim(),"data-testid":i},e.createElement("h2",{className:"accordion-header",id:p},e.createElement("button",{className:"accordion-button "+(r?"":"collapsed"),type:"button",onClick:o,"aria-expanded":r,"aria-controls":s},"string"==typeof t?e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}):t)),e.createElement("div",{id:s,className:"accordion-collapse collapse "+(r?"show":""),"aria-labelledby":p},e.createElement("div",{className:"accordion-body"},n))),e.createElement("style",{jsx:!0},"\n .pc-accordion-item,\n .pc-accordion-item:first-of-type,\n .pc-accordion-item:last-of-type {\n border-radius: 10px;\n border: 1px solid var(--kt-input-border-color);\n overflow: hidden;\n background-color: var(--kt-card-bg);\n }\n \n "))},exports.PCAccordionWrapper=({children:t,singleOpen:n=!0,id:r,className:o="","data-testid":a})=>{const[l,c]=e.useState([]),i=e.Children.map(t,(t,r)=>{if(e.isValidElement(t)){const o=l.includes(r)||!l.length&&t.props.OpenByDefault;return e.cloneElement(t,{index:r,isOpen:o,onToggle:()=>((e,t,r)=>{c(o=>{const a=o.includes(e);let l;return l=n?a?[]:[e]:a?o.filter(t=>t!==e):[...o,e],!a&&t&&t(),a&&r&&r(),l})})(r,t.props.onOpen,t.props.onClose)})}return t});return e.createElement(e.Fragment,null,e.createElement("div",{className:`pc-accordion accordion ${o}`.trim(),id:r||"pcaccordionWrapper","data-testid":a},i),e.createElement("style",{jsx:!0},"\n .pc-accordion{;\n }\n "))},exports.PCButton=L,exports.PCCol=H,exports.PCContainer=V,exports.PCIcon=function({name:n,width:r="1em",height:o="1em",className:a="",color:l="currentColor",activeColor:c,hoverColor:i,...s}){const[p,d]=e.useState(!1),[u,m]=e.useState(!1),f=u?c||l:p&&i||l,h=A[n];return h?e.createElement(h,t({width:r,height:o,className:a,style:{color:f,cursor:s.onClick?"pointer":void 0},onMouseEnter:()=>d(!0),onMouseLeave:()=>{d(!1),m(!1)},onMouseDown:()=>m(!0),onMouseUp:()=>m(!1)},s)):(console.warn(`Icon "${n}" not found`),null)},exports.PCInputCurrency=F,exports.PCModal=({title:t,children:n,footer:r,onClose:o,customStyles:a="",maxWidth:l="600px",width:c="100%",maxHeight:i="80vh",outsideClickHandle:s=!1})=>{const p=e.useRef();return e.useEffect(()=>{if(!s)return;const e=e=>{p.current&&!p.current.contains(e.target)&&o?.()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[o]),e.createElement(e.Fragment,null,e.createElement("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"},e.createElement("div",{className:`card position-relative shadow p-4 ${a}`,ref:p,style:{width:c,maxWidth:l,maxHeight:i,overflowY:"auto"}},e.createElement("div",{className:"w-full d-flex justify-content-end svg-icon svg-icon-1"},e.createElement("div",{className:"cursor-pointer w-24px h-24px",onClick:o},e.createElement(B,null))),t&&e.createElement("h5",{className:"mb-3"},t),n&&e.createElement("div",{className:"mb-3"},n),r&&e.createElement("div",{className:"text-end"},r))),e.createElement("style",{jsx:!0},"\n .conditions-overlay {\n z-index: 50;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n "))},exports.PCMultiSelectDropdown=({options:t=[],placeholder:n="Select...",onChange:r,enableSearch:o=!0,enableSelectAll:a=!0,showCountAfter:l=null,value:c=[],name:i,required:s=!1,labelKey:p="name",valueKey:d="value",isInvalid:u=!1,errMsg:m=""})=>{const[f,h]=e.useState([]),[v,g]=e.useState(!1),[y,b]=e.useState(""),w=e.useRef(null),E=e.useRef(null),[x,C]=e.useState("100%"),k=e.useMemo(()=>((e,t,n)=>Array.isArray(e)?e.map(e=>({name:e?.[t]??"",value:e?.[n]??"",original:e})):[])(t,p,d),[t,p,d]);e.useEffect(()=>{const e=e=>{w.current&&!w.current.contains(e.target)&&g(!1)},t=()=>{E.current&&C(`${E.current.offsetWidth}px`)};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),t(),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t)}},[]),e.useEffect(()=>{if(!Array.isArray(c))return;if(!(c.length===f.length&&c.every(e=>f.some(t=>t.original?.[d]===e?.[d])))){const e=k.filter(e=>c.some(t=>t?.[d]===e.original?.[d]));h(e)}},[c,k]);const N=e=>f.some(t=>t.value===e.value),S=k.filter(e=>e.name.toLowerCase().includes(y.toLowerCase()));return e.createElement("div",{className:"position-relative pc-multi-select",ref:w},e.createElement("div",{ref:E,className:"form-select form-select-solid pc-ele-border d-flex justify-content-between align-items-center "+(u?"invalid":""),onClick:()=>g(!v),style:{cursor:"pointer"}},e.createElement("span",{className:"text-truncate",style:{maxWidth:"85%"}},(()=>{if(0===f.length)return n;if(null!=l&&f.length>l){return`${f.slice(0,l).map(e=>e.name).join(", ")} +${f.length-l} more`}return f.map(e=>e.name).join(", ")})())),u&&m&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%",zIndex:9999}},m),v&&e.createElement("div",{className:"multi-slc-dropdown-options-wrp show position-absolute top-100 start-0",style:{maxHeight:300,width:x,zIndex:9999}},e.createElement("div",{className:"dropdown-menu relative show py-3 shadow-none border position-relative",style:{maxHeight:300,overflowY:"auto",width:x,zIndex:9999}},(o||a)&&e.createElement("div",{className:"d-flex align-items-center gap-2 pb-3 mb-3 border-bottom"},a&&e.createElement("div",{className:"form-check pl-3 ms-4"},e.createElement("input",{type:"checkbox",className:"form-check-input",id:"selectAll",checked:f.length===k.length,onChange:()=>{const e=f.length===k.length?[]:[...k];h(e),r?.(i,e.map(e=>e.original))},name:i,required:s}),e.createElement("label",{className:"form-check-label",htmlFor:"selectAll"},"All")),o&&e.createElement("div",{className:"input-group me-3 "+(a?"":"ms-3")},e.createElement("input",{type:"text",className:"form-control border-end-0",placeholder:"Search...",value:y,onChange:e=>b(e.target.value)}),e.createElement("span",{className:"input-group-text border-start-0 bg-transparent"},e.createElement("i",{className:"bi bi-search"})))),S.length>0?S.map((t,n)=>e.createElement("div",{className:"form-check py-3 pl-5 mr-3 pc-multi-select-opt",key:n,style:{cursor:"pointer"}},e.createElement("input",{className:"form-check-input pc-multi-select-opt-input",type:"checkbox",id:`option-${n}`,checked:N(t),onChange:()=>(e=>{let t=f.some(t=>t.value===e.value)?f.filter(t=>t.value!==e.value):[...f,e];t=k.filter(e=>t.some(t=>t.value===e.value)),h(t),r?.(i,t.map(e=>e.original))})(t),name:i,required:s}),e.createElement("label",{className:"form-check-label ms-2",htmlFor:`option-${n}`},t.name))):e.createElement("div",{className:"text-center text-muted py-2"},"No records found"))),e.createElement("style",{jsx:!0},"\n .multi-slc-dropdown-options-wrp {\n border-radius: 0.375rem;\n background-color: var(--kt-page-bg);\n }\n .pc-multi-select-opt {\n padding: 0 15px 0 38px;\n }\n .pc-multi-select-opt:hover {\n background-color: var(--kt-input-solid-bg);\n }\n .pc-multi-select-opt-input {\n margin-top: 3px;\n }\n .pc-multi-select-opt label {\n color: var(--kt-form-check-label-color-checked);\n }\n .pc-ele-border {\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n }\n .pc-ele-border.invalid{\n border-color: var(--kt-danger);\n }\n .pc-err-txt {\n color: var(--kt-danger);\n }\n "))},exports.PCRadio=({label:t,checked:n=!1,onChange:r,name:o,value:a,disabled:l=!1,id:c,className:i="",dataTestId:s})=>e.createElement("div",{className:`form-check ${i}`,"data-testid":s},e.createElement("input",{className:"form-check-input",type:"radio",name:o,id:c,value:a,checked:n,onChange:r,disabled:l}),t&&e.createElement("label",{className:"form-check-label",htmlFor:c},t)),exports.PCRow=_,exports.PCSelectDropdown=P,exports.PCTable=({value:t=[],columns:n=[],style:r={},caption:o,header:a,footer:l,children:c,paginator:i=!1,rowsPerPageOptions:s=[10,25,50],currentPageReportTemplate:p="Showing {first} to {last} of {totalRecords} records",onPageChange:d=()=>{},paginationConfig:u=null})=>{const m=!!u,[f,h]=e.useState(1),[v,g]=e.useState(s[0]),y=m?u.current_page:f,b=m?u.page_size:v,w=m?u.total_records:t.length,E=m?u.total_pages:Math.ceil(w/b),x=e.useMemo(()=>{if(m)return t;const e=(y-1)*b,n=e+b;return t.slice(e,n)},[t,y,b,m]),C=e=>{e<1||e>E||(m||h(e),d({page:e,rows:b}))},k=n?.length>0,N=e.Children.toArray(c).some(t=>e.isValidElement(t)&&"tbody"===t.type),S=!k&&e.Children.count(c)>0;return e.createElement(e.Fragment,null,e.createElement("div",{className:"table-responsive"},o&&e.createElement("div",{className:"mb-2"},o),e.createElement("table",{className:"table pc-table align-middle table-row-dashed fs-6 gy-3 mb-0 dataTable no-footer table-hover gs-4",style:r},k?e.createElement("thead",null,e.createElement("tr",null,n.map((t,n)=>e.createElement("th",{key:n},t.header)))):a&&e.createElement("thead",null,a),k?e.createElement("tbody",null,x.map((t,r)=>e.createElement("tr",{key:r},n.map((n,r)=>e.createElement("td",{key:r},e.createElement("div",{className:"py-2"},t[n.field])))))):S&&(N?c:e.createElement("tbody",null,c)),l&&e.createElement("tfoot",null,l))),i&&e.createElement("div",{className:"d-flex justify-content-between align-items-center mt-5 pc-pagination-wrp"},e.createElement("div",{className:"dataTables_length d-flex align-items-center"},e.createElement("select",{className:"form-select form-select-sm form-select-solid w-auto me-3",value:b,onChange:e=>{const t=parseInt(e.target.value,10);m||(g(t),h(1)),d({page:1,rows:t})}},s.map(t=>e.createElement("option",{key:t,value:t},t)))," ",e.createElement("div",null,(()=>{const e=(y-1)*b+1,t=Math.min(e+b-1,w);return p.replace("{first}",e).replace("{last}",t).replace("{totalRecords}",w)})())),e.createElement("div",{className:"d-flex align-items-center gap-2"},e.createElement("nav",null,e.createElement("ul",{className:"pagination mb-0"},e.createElement("li",{className:"page-item "+(1===y?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>C(1)},e.createElement("i",{class:"previous"}),e.createElement("i",{style:{marginLeft:"-5px"},class:"previous"}))),e.createElement("li",{className:"page-item "+(1===y?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>C(y-1)},e.createElement("i",{class:"previous"}))),Array.from({length:Math.min(E,5)},(t,n)=>{const r=y<=3?n+1:y-2+n;return r>E?null:e.createElement("li",{key:r,className:"page-item "+(y===r?"active":"")},e.createElement("button",{className:"page-link",onClick:()=>C(r)},r))}),e.createElement("li",{className:"page-item "+(y===E?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>C(y+1)},e.createElement("i",{class:"next"}))),e.createElement("li",{className:"page-item "+(y===E?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>C(E)},e.createElement("i",{class:"next fs-1"}),e.createElement("i",{style:{marginLeft:"-5px"},class:"next"}))))))))},exports.PCTextarea=q,exports.PCTooltip=z;
14
+ */function k(){if(p)return s;p=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return s=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 t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[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,o){for(var a,l,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),i=1;i<arguments.length;i++){for(var s in a=Object(arguments[i]))t.call(a,s)&&(c[s]=a[s]);if(e){l=e(a);for(var p=0;p<l.length;p++)n.call(a,l[p])&&(c[l[p]]=a[l[p]])}}return c},s}function N(){if(u)return d;u=1;return d="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function S(){return f?m:(f=1,m=Function.call.bind(Object.prototype.hasOwnProperty))}function O(){if(v)return h;v=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=N(),n={},r=S();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,a,l,c,i){if("production"!==process.env.NODE_ENV)for(var s in o)if(r(o,s)){var p;try{if("function"!=typeof o[s]){var d=Error((c||"React class")+": "+l+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}p=o[s](a,s,c,l,null,t)}catch(e){p=e}if(!p||p instanceof Error||e((c||"React class")+": type specification of "+l+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var u=i?i():"";e("Failed "+l+" type: "+p.message+(null!=u?u:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},h=o}function M(){if(y)return g;y=1;var e=C(),t=k(),n=N(),r=S(),o=O(),a=function(){};function l(){return null}return"production"!==process.env.NODE_ENV&&(a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),g=function(c,i){var s="function"==typeof Symbol&&Symbol.iterator;var p="<<anonymous>>",d={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(l),arrayOf:function(e){return f(function(t,r,o,a,l){if("function"!=typeof e)return new m("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=t[r];if(!Array.isArray(c))return new m("Invalid "+a+" `"+l+"` of type `"+y(c)+"` supplied to `"+o+"`, expected an array.");for(var i=0;i<c.length;i++){var s=e(c,i,o,a,l+"["+i+"]",n);if(s instanceof Error)return s}return null})},element:f(function(e,t,n,r,o){var a=e[t];return c(a)?null:new m("Invalid "+r+" `"+o+"` of type `"+y(a)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:f(function(t,n,r,o,a){var l=t[n];return e.isValidElementType(l)?null:new m("Invalid "+o+" `"+a+"` of type `"+y(l)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return f(function(t,n,r,o,a){if(!(t[n]instanceof e)){var l=e.name||p;return new m("Invalid "+o+" `"+a+"` of type `"+(((c=t[n]).constructor&&c.constructor.name?c.constructor.name:p)+"` supplied to `")+r+"`, expected instance of `"+l+"`.")}var c;return null})},node:f(function(e,t,n,r,o){return g(e[t])?null:new m("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return f(function(t,o,a,l,c){if("function"!=typeof e)return new m("Property `"+c+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var i=t[o],s=y(i);if("object"!==s)return new m("Invalid "+l+" `"+c+"` of type `"+s+"` supplied to `"+a+"`, expected an object.");for(var p in i)if(r(i,p)){var d=e(i,p,a,l,c+"."+p,n);if(d instanceof Error)return d}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a(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."),l;return f(function(t,n,r,o,a){for(var l=t[n],c=0;c<e.length;c++)if(u(l,e[c]))return null;var i=JSON.stringify(e,function(e,t){return"symbol"===b(t)?String(t):t});return new m("Invalid "+o+" `"+a+"` of value `"+String(l)+"` supplied to `"+r+"`, expected one of "+i+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),l}return f(function(t,o,a,l,c){for(var i=[],s=0;s<e.length;s++){var p=(0,e[s])(t,o,a,l,c,n);if(null==p)return null;p.data&&r(p.data,"expectedType")&&i.push(p.data.expectedType)}return new m("Invalid "+l+" `"+c+"` supplied to `"+a+"`"+(i.length>0?", expected one of type ["+i.join(", ")+"]":"")+".")})},shape:function(e){return f(function(t,r,o,a,l){var c=t[r],i=y(c);if("object"!==i)return new m("Invalid "+a+" `"+l+"` of type `"+i+"` supplied to `"+o+"`, expected `object`.");for(var s in e){var p=e[s];if("function"!=typeof p)return v(o,a,l,s,b(p));var d=p(c,s,o,a,l+"."+s,n);if(d)return d}return null})},exact:function(e){return f(function(o,a,l,c,i){var s=o[a],p=y(s);if("object"!==p)return new m("Invalid "+c+" `"+i+"` of type `"+p+"` supplied to `"+l+"`, expected `object`.");var d=t({},o[a],e);for(var u in d){var f=e[u];if(r(e,u)&&"function"!=typeof f)return v(l,c,i,u,b(f));if(!f)return new m("Invalid "+c+" `"+i+"` key `"+u+"` supplied to `"+l+"`.\nBad object: "+JSON.stringify(o[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(s,u,l,c,i+"."+u,n);if(h)return h}return null})}};function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,l,c,s,d,u,f){if(s=s||p,u=u||c,f!==n){if(i){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=s+":"+c;!t[v]&&r<3&&(a("You are manually calling a React.PropTypes validation function for the `"+u+"` 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."),t[v]=!0,r++)}}return null==l[c]?o?null===l[c]?new m("The "+d+" `"+u+"` is marked as required in `"+s+"`, but its value is `null`."):new m("The "+d+" `"+u+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(l,c,s,d,u)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function h(e){return f(function(t,n,r,o,a,l){var c=t[n];return y(c)!==e?new m("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function v(e,t,n,r,o){return new m((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||c(e))return!0;var t=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!g(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},g}function T(){if(w)return b;w=1;var e=N();function t(){}function n(){}return n.resetWarningCache=t,b=function(){function r(t,n,r,o,a,l){if(l!==e){var c=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 c.name="Invariant Violation",c}}function o(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}}function $(){if(E)return o.exports;if(E=1,"production"!==process.env.NODE_ENV){var e=C();o.exports=M()(e.isElement,true)}else o.exports=T()();return o.exports}var j=n($());function L({label:n,icon:r,loading:o=!1,disabled:a=!1,variant:l="primary",type:c="button",className:i="",...s}){const p=!!n,d=!n&&r;return e.createElement("button",t({type:c,className:`btn btn-${l} ${i} d-flex align-items-center justify-center gap-2 ${d?"p-2":""}`,disabled:a||o},s),o&&e.createElement("span",{className:"custom-spinner"}),r&&e.createElement("span",{className:"px-2"},r),p&&e.createElement("span",null,n),e.createElement("style",{jsx:!0},"\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 "))}L.propTypes={label:j.oneOfType([j.string,j.node]),icon:j.node,loading:j.bool,disabled:j.bool,variant:j.oneOf(["primary","secondary","outline-primary","outline-secondary","success","danger","warning","info","light","dark"]),type:j.oneOf(["button","submit","reset"])};const z=({options:t=[],placeholder:n="Select...",onChange:r,isInvalid:o=!1,errMsg:a="",id:l,name:c,dataTestId:i,enableSearch:s=!1,selected:p=null})=>{const[d,u]=e.useState(!1),[m,f]=e.useState(""),h=e.useRef(null),v=e.useRef(null),[g,y]=e.useState(null),b=null!==p?p:g;e.useEffect(()=>{null!==p&&y(p)},[p]),e.useEffect(()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&u(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const w=t.filter(e=>e.label.toLowerCase().includes(m.toLowerCase()));return e.createElement("div",{className:"position-relative w-100",ref:h},e.createElement("div",{className:"dropdown"},e.createElement("button",{type:"button",ref:v,className:"form-select pc-ele-border text-start "+(o?"invalid":""),onClick:()=>u(e=>!e),id:l,name:c,"data-testid":i},b?.label||n),d&&e.createElement("div",{className:"slc-dropdown-options-wrp show w-100 pc-ele-border position-absolute top-100 start-0 z-index-2",style:{maxHeight:300}},s&&e.createElement("div",{className:"mb-2 px-3 py-2 border-bottom"},e.createElement("input",{type:"text",className:"form-control pc-select-opt-input",placeholder:"Search...",value:m,onChange:e=>f(e.target.value)})),w.length>0?w.map((t,n)=>e.createElement("span",{key:n,className:"pc-select-opt d-block w-100 py-3 px-4",type:"button",onClick:()=>(e=>{null===p&&y(e),u(!1),r?.(c,e)})(t)},t.label)):e.createElement("div",{className:"text-muted px-2"},"No results found"))),o&&a&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"}},a),e.createElement("style",{jsx:!0},"\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={options:j.arrayOf(j.shape({label:j.string,value:j.any})).isRequired,placeholder:j.string,onChange:j.func,isInvalid:j.bool,errMsg:j.string,id:j.string,name:j.string,dataTestId:j.string,enableSearch:j.bool};const P=({placement:t="top",caption:n,children:r,customStyles:o,visibility:a=!0})=>e.createElement(e.Fragment,null,e.createElement("div",{className:` tooltip-wrapper tooltip-${t}`,tabIndex:"0"},r,a&&e.createElement("div",{className:`tooltip-content shadow-sm ${o}`,role:"tooltip"},n)),e.createElement("style",{jsx:!0},`\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: ${o?"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 `));P.propTypes={placement:j.oneOf(["top","bottom","left","right"]),caption:j.string.isRequired,children:j.node.isRequired};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.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 q=({value:t,onChange:n,isDisabled:r=!1,isInvalid:o=!1,maxChar:a=null,showCharCount:l=!1,cols:c=30,rows:i=4,id:s,name:p,dataTestId:d,errMsg:u="",placeholder:m=""})=>e.createElement("div",{className:"position-relative w-100"},a&&l&&e.createElement("div",{className:"form-text text-end"},t.length,"/",a," characters"),e.createElement("textarea",{id:s,name:p,"data-testid":d,className:"form-control pc-ele-border "+(o?"invalid":""),cols:c,rows:i,value:t,onChange:e=>{const{value:t}=e.target;(!a||t.length<=a)&&n?.(p,t)},placeholder:m,disabled:r}),o&&u&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%"}},u),e.createElement("style",{jsx:!0},"\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 "));q.propTypes={value:j.string.isRequired,onChange:j.func,isDisabled:j.bool,isInvalid:j.bool,maxChar:j.number,showCharCount:j.bool,cols:j.number,rows:j.number,id:j.string,name:j.string,dataTestId:j.string,errMsg:j.string,placeholder:j.string};const A={ArrowRightBold:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24"},n),e.createElement("path",t({fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 14l4-4l4 4"},n))),Down:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 24 24"},n),e.createElement("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m8 10l4 4l4-4"})),NewRow:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:"128",height:"128",viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("g",{fill:"none"},e.createElement("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"}),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:640,height:512,viewBox:"0 0 640 512"},n),e.createElement("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:n=0,props:r})=>e.createElement("div",{className:"position-relative email-icon-wrapper"},e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},r),e.createElement("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"})),n>0&&e.createElement("span",{className:"counter-badge"},n>9?"9+":n),e.createElement("style",{jsx:!0},"\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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 56 56"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:10,height:9,fill:"none",viewBox:"0 0 10 9"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:7,height:8,viewBox:"0 0 7 10"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:15,height:20,viewBox:"0 0 9 11"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:23,height:23,viewBox:"0 0 23 23"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("path",{fill:"currentColor",d:"M11.001 10h2v5h-2zM11 16h2v2h-2z"}),e.createElement("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:n=>e.createElement("svg",t({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},n),e.createElement("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 I(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=I(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function R(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=I(e))&&(r&&(r+=" "),r+=t);return r}const V=({fluid:n=!1,className:r="",children:o,...a})=>{const l=R(n?"container-fluid":"container",r);return e.createElement("div",t({className:l},a),o)};V.propTypes={fluid:j.bool,className:j.string,children:j.node};const _=({justify:n="",align:r="",className:o="",children:a,...l})=>{const c=R("row",n&&`justify-content-${n}`,r&&`align-items-${r}`,o);return e.createElement("div",t({className:c},l),a)};_.propTypes={justify:j.oneOf(["start","center","end","around","between","evenly"]),align:j.oneOf(["start","center","end","stretch","baseline"]),className:j.string,children:j.node};const H=({xs:n,sm:r,md:o,lg:a,xl:l,offset:c,order:i,className:s="",children:p,...d})=>{const u=R(void 0!==n&&`col-${n}`,void 0!==r&&`col-sm-${r}`,void 0!==o&&`col-md-${o}`,void 0!==a&&`col-lg-${a}`,void 0!==l&&`col-xl-${l}`,void 0!==c&&`offset-${c}`,void 0!==i&&`order-${i}`,s);return e.createElement("div",t({className:u},d),p)};H.propTypes={xs:j.oneOfType([j.string,j.number]),sm:j.oneOfType([j.string,j.number]),md:j.oneOfType([j.string,j.number]),lg:j.oneOfType([j.string,j.number]),xl:j.oneOfType([j.string,j.number]),offset:j.oneOfType([j.string,j.number]),order:j.oneOfType([j.string,j.number]),className:j.string,children:j.node};const B=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},e.createElement("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"},e.createElement("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"12;0"}))),D=e=>{if(""===e||null===e)return"";const t=Number(e.toString().replace(/[^\d.-]/g,""));return isNaN(t)?"":t.toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0})};exports.AccordionItem=({title:t,children:n,isOpen:r,onToggle:o,index:a,id:l,className:c="","data-testid":i})=>{const s=l||`collapse-${a}`,p=`heading-${a}`;return e.createElement(e.Fragment,null,e.createElement("div",{className:`accordion-item pc-accordion-item pb-0 mb-2 ${c}`.trim(),"data-testid":i},e.createElement("h2",{className:"accordion-header",id:p},e.createElement("button",{className:"accordion-button "+(r?"":"collapsed"),type:"button",onClick:o,"aria-expanded":r,"aria-controls":s},"string"==typeof t?e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}):t)),e.createElement("div",{id:s,className:"accordion-collapse collapse "+(r?"show":""),"aria-labelledby":p},e.createElement("div",{className:"accordion-body"},n))),e.createElement("style",{jsx:!0},"\n .pc-accordion-item,\n .pc-accordion-item:first-of-type,\n .pc-accordion-item:last-of-type {\n border-radius: 10px;\n border: 1px solid var(--kt-input-border-color);\n overflow: hidden;\n background-color: var(--kt-card-bg);\n }\n \n "))},exports.PCAccordionWrapper=({children:t,singleOpen:n=!0,id:r,className:o="","data-testid":a})=>{const[l,c]=e.useState([]),i=e.Children.map(t,(t,r)=>{if(e.isValidElement(t)){const o=l.includes(r)||!l.length&&t.props.OpenByDefault;return e.cloneElement(t,{index:r,isOpen:o,onToggle:()=>((e,t,r)=>{c(o=>{const a=o.includes(e);let l;return l=n?a?[]:[e]:a?o.filter(t=>t!==e):[...o,e],!a&&t&&t(),a&&r&&r(),l})})(r,t.props.onOpen,t.props.onClose)})}return t});return e.createElement(e.Fragment,null,e.createElement("div",{className:`pc-accordion accordion ${o}`.trim(),id:r||"pcaccordionWrapper","data-testid":a},i),e.createElement("style",{jsx:!0},"\n .pc-accordion{;\n }\n "))},exports.PCButton=L,exports.PCCol=H,exports.PCContainer=V,exports.PCIcon=function({name:n,width:r="1em",height:o="1em",className:a="",color:l="currentColor",activeColor:c,hoverColor:i,...s}){const[p,d]=e.useState(!1),[u,m]=e.useState(!1),f=u?c||l:p&&i||l,h=A[n];return h?e.createElement(h,t({width:r,height:o,className:a,style:{color:f,cursor:s.onClick?"pointer":void 0},onMouseEnter:()=>d(!0),onMouseLeave:()=>{d(!1),m(!1)},onMouseDown:()=>m(!0),onMouseUp:()=>m(!1)},s)):(console.warn(`Icon "${n}" not found`),null)},exports.PCInputCurrency=({label:t="Enter Lable",value:n="",onChange:r,required:o=!1,errorMessage:a="",name:l,disabled:c=!1})=>{const[i,s]=e.useState(D(n));e.useEffect(()=>{s(D(n))},[n]);return e.createElement("div",{className:"form-group"},e.createElement("label",{className:`form-label ${o&&"required"}`},t),e.createElement("div",{className:"input-group",style:{fontFamily:"inherit"}},e.createElement("input",{name:l,disabled:c,required:o,type:"text",value:i,onChange:e=>{const t=e.target.value.replace(/[^\d.]/g,""),n=D(t);s(n),r&&r(l,t)},placeholder:"$0.00","aria-label":"Currency input",className:"form-control form-control-solid border"+(a?" is-invalid border-danger":"")})),a&&e.createElement("span",{className:"input-error text-danger",style:{fontSize:13,marginTop:4,display:"block"}},a))},exports.PCModal=({title:t,children:n,footer:r,onClose:o,customStyles:a="",maxWidth:l="600px",width:c="100%",maxHeight:i="80vh",outsideClickHandle:s=!1})=>{const p=e.useRef();return e.useEffect(()=>{if(!s)return;const e=e=>{p.current&&!p.current.contains(e.target)&&o?.()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[o]),e.createElement(e.Fragment,null,e.createElement("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"},e.createElement("div",{className:`card position-relative shadow p-4 ${a}`,ref:p,style:{width:c,maxWidth:l,maxHeight:i,overflowY:"auto"}},e.createElement("div",{className:"w-full d-flex justify-content-end svg-icon svg-icon-1"},e.createElement("div",{className:"cursor-pointer w-24px h-24px",onClick:o},e.createElement(B,null))),t&&e.createElement("h5",{className:"mb-3"},t),n&&e.createElement("div",{className:"mb-3"},n),r&&e.createElement("div",{className:"text-end"},r))),e.createElement("style",{jsx:!0},"\n .conditions-overlay {\n z-index: 50;\n }\n\n .cursor-pointer {\n cursor: pointer;\n }\n "))},exports.PCMultiSelectDropdown=({options:t=[],placeholder:n="Select...",onChange:r,enableSearch:o=!0,enableSelectAll:a=!0,showCountAfter:l=null,value:c=[],name:i,required:s=!1,labelKey:p="name",valueKey:d="value",isInvalid:u=!1,errMsg:m=""})=>{const[f,h]=e.useState([]),[v,g]=e.useState(!1),[y,b]=e.useState(""),w=e.useRef(null),E=e.useRef(null),[x,C]=e.useState("100%"),k=e.useMemo(()=>((e,t,n)=>Array.isArray(e)?e.map(e=>({name:e?.[t]??"",value:e?.[n]??"",original:e})):[])(t,p,d),[t,p,d]);e.useEffect(()=>{const e=e=>{w.current&&!w.current.contains(e.target)&&g(!1)},t=()=>{E.current&&C(`${E.current.offsetWidth}px`)};return document.addEventListener("mousedown",e),window.addEventListener("resize",t),t(),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t)}},[]),e.useEffect(()=>{if(!Array.isArray(c))return;if(!(c.length===f.length&&c.every(e=>f.some(t=>t.original?.[d]===e?.[d])))){const e=k.filter(e=>c.some(t=>t?.[d]===e.original?.[d]));h(e)}},[c,k]);const N=e=>f.some(t=>t.value===e.value),S=k.filter(e=>e.name.toLowerCase().includes(y.toLowerCase()));return e.createElement("div",{className:"position-relative pc-multi-select",ref:w},e.createElement("div",{ref:E,className:"form-select form-select-solid pc-ele-border d-flex justify-content-between align-items-center "+(u?"invalid":""),onClick:()=>g(!v),style:{cursor:"pointer"}},e.createElement("span",{className:"text-truncate",style:{maxWidth:"85%"}},(()=>{if(0===f.length)return n;if(null!=l&&f.length>l){return`${f.slice(0,l).map(e=>e.name).join(", ")} +${f.length-l} more`}return f.map(e=>e.name).join(", ")})())),u&&m&&e.createElement("div",{className:"d-block position-absolute w-100 mt-1 pc-err-txt",style:{top:"100%",zIndex:9999}},m),v&&e.createElement("div",{className:"multi-slc-dropdown-options-wrp show position-absolute top-100 start-0",style:{maxHeight:300,width:x,zIndex:9999}},e.createElement("div",{className:"dropdown-menu relative show py-3 shadow-none border position-relative",style:{maxHeight:300,overflowY:"auto",width:x,zIndex:9999}},(o||a)&&e.createElement("div",{className:"d-flex align-items-center gap-2 pb-3 mb-3 border-bottom"},a&&e.createElement("div",{className:"form-check pl-3 ms-4"},e.createElement("input",{type:"checkbox",className:"form-check-input",id:"selectAll",checked:f.length===k.length,onChange:()=>{const e=f.length===k.length?[]:[...k];h(e),r?.(i,e.map(e=>e.original))},name:i,required:s}),e.createElement("label",{className:"form-check-label",htmlFor:"selectAll"},"All")),o&&e.createElement("div",{className:"input-group me-3 "+(a?"":"ms-3")},e.createElement("input",{type:"text",className:"form-control border-end-0",placeholder:"Search...",value:y,onChange:e=>b(e.target.value)}),e.createElement("span",{className:"input-group-text border-start-0 bg-transparent"},e.createElement("i",{className:"bi bi-search"})))),S.length>0?S.map((t,n)=>e.createElement("div",{className:"form-check py-3 pl-5 mr-3 pc-multi-select-opt",key:n,style:{cursor:"pointer"}},e.createElement("input",{className:"form-check-input pc-multi-select-opt-input",type:"checkbox",id:`option-${n}`,checked:N(t),onChange:()=>(e=>{let t=f.some(t=>t.value===e.value)?f.filter(t=>t.value!==e.value):[...f,e];t=k.filter(e=>t.some(t=>t.value===e.value)),h(t),r?.(i,t.map(e=>e.original))})(t),name:i,required:s}),e.createElement("label",{className:"form-check-label ms-2",htmlFor:`option-${n}`},t.name))):e.createElement("div",{className:"text-center text-muted py-2"},"No records found"))),e.createElement("style",{jsx:!0},"\n .multi-slc-dropdown-options-wrp {\n border-radius: 0.375rem;\n background-color: var(--kt-page-bg);\n }\n .pc-multi-select-opt {\n padding: 0 15px 0 38px;\n }\n .pc-multi-select-opt:hover {\n background-color: var(--kt-input-solid-bg);\n }\n .pc-multi-select-opt-input {\n margin-top: 3px;\n }\n .pc-multi-select-opt label {\n color: var(--kt-form-check-label-color-checked);\n }\n .pc-ele-border {\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n }\n .pc-ele-border.invalid{\n border-color: var(--kt-danger);\n }\n .pc-err-txt {\n color: var(--kt-danger);\n }\n "))},exports.PCRadio=({label:t,checked:n=!1,onChange:r,name:o,value:a,disabled:l=!1,id:c,className:i="",dataTestId:s})=>e.createElement("div",{className:`form-check ${i}`,"data-testid":s},e.createElement("input",{className:"form-check-input",type:"radio",name:o,id:c,value:a,checked:n,onChange:r,disabled:l}),t&&e.createElement("label",{className:"form-check-label",htmlFor:c},t)),exports.PCRow=_,exports.PCSelectDropdown=z,exports.PCTable=({value:t=[],columns:n=[],style:r={},caption:o,header:a,footer:l,children:c,paginator:i=!1,rowsPerPageOptions:s=[10,25,50],currentPageReportTemplate:p="Showing {first} to {last} of {totalRecords} records",onPageChange:d=()=>{},paginationConfig:u=null})=>{const m=!!u,[f,h]=e.useState(1),[v,g]=e.useState(s[0]),y=m?u.current_page:f,b=m?u.page_size:v,w=m?u.total_records:t.length,E=m?u.total_pages:Math.ceil(w/b),x=e.useMemo(()=>{if(m)return t;const e=(y-1)*b,n=e+b;return t.slice(e,n)},[t,y,b,m]),C=e=>{e<1||e>E||(m||h(e),d({page:e,rows:b}))},k=n?.length>0,N=e.Children.toArray(c).some(t=>e.isValidElement(t)&&"tbody"===t.type),S=!k&&e.Children.count(c)>0;return e.createElement(e.Fragment,null,e.createElement("div",{className:"table-responsive"},o&&e.createElement("div",{className:"mb-2"},o),e.createElement("table",{className:"table pc-table align-middle table-row-dashed fs-6 gy-3 mb-0 dataTable no-footer table-hover gs-4",style:r},k?e.createElement("thead",null,e.createElement("tr",null,n.map((t,n)=>e.createElement("th",{key:n},t.header)))):a&&e.createElement("thead",null,a),k?e.createElement("tbody",null,x.map((t,r)=>e.createElement("tr",{key:r},n.map((n,r)=>e.createElement("td",{key:r},e.createElement("div",{className:"py-2"},t[n.field])))))):S&&(N?c:e.createElement("tbody",null,c)),l&&e.createElement("tfoot",null,l))),i&&e.createElement("div",{className:"d-flex justify-content-between align-items-center mt-5 pc-pagination-wrp"},e.createElement("div",{className:"dataTables_length d-flex align-items-center"},e.createElement("select",{className:"form-select form-select-sm form-select-solid w-auto me-3",value:b,onChange:e=>{const t=parseInt(e.target.value,10);m||(g(t),h(1)),d({page:1,rows:t})}},s.map(t=>e.createElement("option",{key:t,value:t},t)))," ",e.createElement("div",null,(()=>{const e=(y-1)*b+1,t=Math.min(e+b-1,w);return p.replace("{first}",e).replace("{last}",t).replace("{totalRecords}",w)})())),e.createElement("div",{className:"d-flex align-items-center gap-2"},e.createElement("nav",null,e.createElement("ul",{className:"pagination mb-0"},e.createElement("li",{className:"page-item "+(1===y?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>C(1)},e.createElement("i",{class:"previous"}),e.createElement("i",{style:{marginLeft:"-5px"},class:"previous"}))),e.createElement("li",{className:"page-item "+(1===y?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>C(y-1)},e.createElement("i",{class:"previous"}))),Array.from({length:Math.min(E,5)},(t,n)=>{const r=y<=3?n+1:y-2+n;return r>E?null:e.createElement("li",{key:r,className:"page-item "+(y===r?"active":"")},e.createElement("button",{className:"page-link",onClick:()=>C(r)},r))}),e.createElement("li",{className:"page-item "+(y===E?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>C(y+1)},e.createElement("i",{class:"next"}))),e.createElement("li",{className:"page-item "+(y===E?"disabled":"")},e.createElement("button",{className:"page-link",onClick:()=>C(E)},e.createElement("i",{class:"next fs-1"}),e.createElement("i",{style:{marginLeft:"-5px"},class:"next"}))))))))},exports.PCTextarea=q,exports.PCTooltip=P;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peercore-ui-library",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Shared React UI components for PeerCore apps",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",