@producteca/producteca-ui-kit 1.91.1 → 1.93.0

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.
@@ -6,6 +6,7 @@ export interface PickChannelModalChannel {
6
6
  name?: string;
7
7
  disabled?: boolean;
8
8
  tooltipMessage?: string;
9
+ [key: string]: any;
9
10
  }
10
11
  export interface PickChannelModalProps {
11
12
  open: boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ export interface ModelContextToolResult {
2
+ content: Array<{
3
+ type: 'text';
4
+ text: string;
5
+ }>;
6
+ }
7
+ export interface ModelContextInputSchema {
8
+ type: 'object';
9
+ properties?: Record<string, unknown>;
10
+ required?: string[];
11
+ }
12
+ export interface ModelContextTool<TArgs = Record<string, unknown>> {
13
+ name: string;
14
+ description: string;
15
+ inputSchema: ModelContextInputSchema;
16
+ execute: (args: TArgs) => ModelContextToolResult | Promise<ModelContextToolResult>;
17
+ }
18
+ export interface UseModelContextToolOptions {
19
+ enabled?: boolean;
20
+ }
21
+ export interface UseModelContextToolResult {
22
+ isSupported: boolean;
23
+ }
24
+ export declare const useModelContextTool: <TArgs = Record<string, unknown>>({ name, description, inputSchema, execute }: ModelContextTool<TArgs>, { enabled }?: UseModelContextToolOptions) => UseModelContextToolResult;
package/dist/index.d.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './components';
2
2
  export * from './styles/colors';
3
3
  export * from './hooks/useReduxFormField';
4
+ export * from './hooks/useModelContextTool';
4
5
  export { configureLocale, getActiveLocale } from './locales/localeConfig';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './components';
2
2
  export * from './styles/colors';
3
3
  export * from './hooks/useReduxFormField';
4
+ export * from './hooks/useModelContextTool';
4
5
  export { configureLocale, getActiveLocale } from './locales/localeConfig';
5
6
  export type { UiKitLocale, LocaleEntry } from './locales/localeRegistry';
@@ -1,4 +1,4 @@
1
- var _templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject0,_templateObject1,_templateObject10,_templateObject11,_templateObject12,_templateObject13;function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf2(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf2(t)););return t;}function _taggedTemplateLiteral2(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf2(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf2(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct3())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf2(p,r.prototype),p;}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _readOnlyError(r){throw new TypeError('"'+r+'" is read-only');}function _toArray(r){return _arrayWithHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableRest2();}function _callSuper(t,o,e){return o=_getPrototypeOf2(o),_possibleConstructorReturn2(t,_isNativeReflectConstruct3()?Reflect.construct(o,e||[],_getPrototypeOf2(t).constructor):o.apply(t,e));}function _possibleConstructorReturn2(t,e){if(e&&("object"==_typeof2(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized2(t);}function _assertThisInitialized2(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct3=function _isNativeReflectConstruct3(){return!!t;})();}function _getPrototypeOf2(t){return _getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf2(t);}function _inherits2(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf2(t,e);}function _setPrototypeOf2(t,e){return _setPrototypeOf2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf2(t,e);}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function _toConsumableArray2(r){return _arrayWithoutHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableSpread2();}function _nonIterableSpread2(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray2(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles2(r){if(Array.isArray(r))return _arrayLikeToArray2(r);}function _defineProperty2(e,r,t){return(r=_toPropertyKey2(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _slicedToArray2(r,e){return _arrayWithHoles2(r)||_iterableToArrayLimit2(r,e)||_unsupportedIterableToArray2(r,e)||_nonIterableRest2();}function _nonIterableRest2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit2(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles2(r){if(Array.isArray(r))return r;}function _classCallCheck2(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function __defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey2(o.key),o);}}function _createClass2(e,r,t){return r&&__defineProperties(e.prototype,r),t&&__defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey2(t){var i=_toPrimitive2(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _toPrimitive2(t,r){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _typeof2(o){"@babel/helpers - typeof";return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof2(o);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray2(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n2=0,F=function F(){};return{s:F,n:function n(){return _n2>=r.length?{done:!0}:{done:!1,value:r[_n2++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray2(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray2(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(r,a):void 0;}}function _arrayLikeToArray2(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __pow=Math.pow;var __defNormalProp=function __defNormalProp(obj,key,value){return key in obj?__defProp(obj,key,{enumerable:true,configurable:true,writable:true,value:value}):obj[key]=value;};var __spreadValues=function __spreadValues(a,b){for(var prop in b||(b={}))if(__hasOwnProp.call(b,prop))__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols){var _iterator=_createForOfIteratorHelper(__getOwnPropSymbols(b)),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var prop=_step.value;if(__propIsEnum.call(b,prop))__defNormalProp(a,prop,b[prop]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}return a;};var __spreadProps=function __spreadProps(a,b){return __defProps(a,__getOwnPropDescs(b));};var __restKey=function __restKey(key){return _typeof2(key)==="symbol"?key:key+"";};var __objRest=function __objRest(source,exclude){var target={};for(var prop in source)if(__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0)target[prop]=source[prop];if(source!=null&&__getOwnPropSymbols){var _iterator2=_createForOfIteratorHelper(__getOwnPropSymbols(source)),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var prop=_step2.value;if(exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop))target[prop]=source[prop];}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}return target;};var __publicField=function __publicField(obj,key,value){return __defNormalProp(obj,_typeof2(key)!=="symbol"?key+"":key,value);};var __async=function __async(__this,__arguments,generator){return new Promise(function(resolve,reject){var fulfilled=function fulfilled(value){try{step2(generator.next(value));}catch(e){reject(e);}};var rejected=function rejected(value){try{step2(generator.throw(value));}catch(e){reject(e);}};var step2=function step2(x){return x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);};step2((generator=generator.apply(__this,__arguments)).next());});};import{jsx as jsx$1,jsxs,Fragment as Fragment$1}from"react/jsx-runtime";import*as React from"react";import React__default,{forwardRef,isValidElement,cloneElement,Children,useContext,useState,useCallback,useLayoutEffect,useRef,useMemo,createContext,Component,Fragment,useEffect,memo,createElement,useReducer,useId as useId$2}from"react";import*as ReactDOM from"react-dom";import ReactDOM__default,{createPortal,unstable_batchedUpdates}from"react-dom";function _arrayLikeToArray$1(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _arrayWithHoles$1(r2){if(Array.isArray(r2))return r2;}function _arrayWithoutHoles$1(r2){if(Array.isArray(r2))return _arrayLikeToArray$1(r2);}function _defineProperty$2(e,r2,t){return(r2=_toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function _iterableToArray$1(r2){if("undefined"!=typeof Symbol&&null!=r2[Symbol.iterator]||null!=r2["@@iterator"])return Array.from(r2);}function _iterableToArrayLimit$1(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l);else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function ownKeys$1(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2$1(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys$1(Object(t),true).forEach(function(r3){_defineProperty$2(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _objectWithoutProperties$1(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose$1(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose$1(r2,e){if(null==r2)return{};var t={};for(var n in r2)if({}.hasOwnProperty.call(r2,n)){if(-1!==e.indexOf(n))continue;t[n]=r2[n];}return t;}function _slicedToArray$1(r2,e){return _arrayWithHoles$1(r2)||_iterableToArrayLimit$1(r2,e)||_unsupportedIterableToArray$1(r2,e)||_nonIterableRest$1();}function _toConsumableArray$1(r2){return _arrayWithoutHoles$1(r2)||_iterableToArray$1(r2)||_unsupportedIterableToArray$1(r2)||_nonIterableSpread$1();}function _toPrimitive(t,r2){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _typeof$1(o){"@babel/helpers - typeof";return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof$1(o);}function _unsupportedIterableToArray$1(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray$1(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray$1(r2,a):void 0;}}function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==_typeof2(e))if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n;}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n;}var DEBUG_ENVS=["local","development"];var readEnv=function readEnv2(){var _proc$env;var override=globalThis.__PRODUCTECA_UI_ENV__;if(typeof override==="string")return override;var proc=globalThis.process;if(proc!==null&&proc!==void 0&&(_proc$env=proc.env)!==null&&_proc$env!==void 0&&_proc$env.NODE_ENV)return proc.env.NODE_ENV;return void 0;};var isDebugEnabled=function isDebugEnabled2(){var _readEnv;return DEBUG_ENVS.indexOf((_readEnv=readEnv())!==null&&_readEnv!==void 0?_readEnv:"")!==-1;};var logHandler=function logHandler2(component,handler,args){var _console;(_console=console).debug.apply(_console,["[producteca-ui-kit] ".concat(component,".").concat(handler," →")].concat(_toConsumableArray$1(args)));};var logWarning=function logWarning2(message2){console.warn("[producteca-ui-kit] ".concat(message2));};var MAX_DEPTH=4;var isFunction$5=function isFunction(value){return typeof value==="function";};var isHandlerKey=function isHandlerKey2(key){return /^on[A-Z]/.test(key);};var isReactElement=function isReactElement2(value){return _typeof$1(value)==="object"&&value!==null&&"$$typeof"in value;};var isPlainObject$3=function isPlainObject(value){if(_typeof$1(value)!=="object"||value===null||isReactElement(value))return false;var proto=Object.getPrototypeOf(value);return proto===Object.prototype||proto===null;};var wrapHandler=function wrapHandler2(fn3,componentName,path){return function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}logHandler(componentName,path,args);return fn3.apply(void 0,args);};};var _wrapDeep=function wrapDeep(value,componentName,path,depth){if(depth>MAX_DEPTH)return value;if(Array.isArray(value)){return value.map(function(item2,index2){return _wrapDeep(item2,componentName,"".concat(path,"[").concat(index2,"]"),depth+1);});}if(isPlainObject$3(value)){var next2={};for(var _i=0,_Object$keys=Object.keys(value);_i<_Object$keys.length;_i++){var key=_Object$keys[_i];var child=value[key];var childPath=path?"".concat(path,".").concat(key):key;next2[key]=isHandlerKey(key)&&isFunction$5(child)?wrapHandler(child,componentName,childPath):_wrapDeep(child,componentName,childPath,depth+1);}return next2;}return value;};function withDebugHandlers(Component2,componentName){if(!isDebugEnabled())return Component2;var Wrapped=/* @__PURE__ */forwardRef(function(props,ref){var next2=_wrapDeep(props,componentName,"",0);var Cmp=Component2;return/* @__PURE__ */jsx$1(Cmp,_objectSpread2$1(_objectSpread2$1({},next2),ref?{ref:ref}:{}));});Wrapped.displayName="withDebugHandlers(".concat(componentName,")");return Wrapped;}var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x["default"]:x;}function listCacheClear$1(){this.__data__=[];this.size=0;}var _listCacheClear=listCacheClear$1;function eq$3(value,other){return value===other||value!==value&&other!==other;}var eq_1=eq$3;var eq$2=eq_1;function assocIndexOf$4(array,key){var length2=array.length;while(length2--){if(eq$2(array[length2][0],key)){return length2;}}return-1;}var _assocIndexOf=assocIndexOf$4;var assocIndexOf$3=_assocIndexOf;var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete$1(key){var data=this.__data__,index2=assocIndexOf$3(data,key);if(index2<0){return false;}var lastIndex=data.length-1;if(index2==lastIndex){data.pop();}else{splice.call(data,index2,1);}--this.size;return true;}var _listCacheDelete=listCacheDelete$1;var assocIndexOf$2=_assocIndexOf;function listCacheGet$1(key){var data=this.__data__,index2=assocIndexOf$2(data,key);return index2<0?void 0:data[index2][1];}var _listCacheGet=listCacheGet$1;var assocIndexOf$1=_assocIndexOf;function listCacheHas$1(key){return assocIndexOf$1(this.__data__,key)>-1;}var _listCacheHas=listCacheHas$1;var assocIndexOf=_assocIndexOf;function listCacheSet$1(key,value){var data=this.__data__,index2=assocIndexOf(data,key);if(index2<0){++this.size;data.push([key,value]);}else{data[index2][1]=value;}return this;}var _listCacheSet=listCacheSet$1;var listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype["delete"]=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4;var ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3();this.size=0;}var _stackClear=stackClear$1;function stackDelete$1(key){var data=this.__data__,result=data["delete"](key);this.size=data.size;return result;}var _stackDelete=stackDelete$1;function stackGet$1(key){return this.__data__.get(key);}var _stackGet=stackGet$1;function stackHas$1(key){return this.__data__.has(key);}var _stackHas=stackHas$1;var freeGlobal$1=_typeof2(commonjsGlobal)=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var _freeGlobal=freeGlobal$1;var freeGlobal=_freeGlobal;var freeSelf=(typeof self==="undefined"?"undefined":_typeof2(self))=="object"&&self&&self.Object===Object&&self;var root$8=freeGlobal||freeSelf||Function("return this")();var _root=root$8;var root$7=_root;var Symbol$7=root$7.Symbol;var _Symbol=Symbol$7;var Symbol$6=_Symbol;var objectProto$h=Object.prototype;var hasOwnProperty$f=objectProto$h.hasOwnProperty;var nativeObjectToString$1=objectProto$h.toString;var symToStringTag$1=Symbol$6?Symbol$6.toStringTag:void 0;function getRawTag$1(value){var isOwn=hasOwnProperty$f.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=void 0;var unmasked=true;}catch(e){}var result=nativeObjectToString$1.call(value);if(unmasked){if(isOwn){value[symToStringTag$1]=tag;}else{delete value[symToStringTag$1];}}return result;}var _getRawTag=getRawTag$1;var objectProto$g=Object.prototype;var nativeObjectToString=objectProto$g.toString;function objectToString$1(value){return nativeObjectToString.call(value);}var _objectToString=objectToString$1;var Symbol$5=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString;var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=Symbol$5?Symbol$5.toStringTag:void 0;function baseGetTag$7(value){if(value==null){return value===void 0?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value);}var _baseGetTag=baseGetTag$7;function isObject$8(value){var type=_typeof2(value);return value!=null&&(type=="object"||type=="function");}var isObject_1=isObject$8;var baseGetTag$6=_baseGetTag,isObject$7=isObject_1;var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3(value){if(!isObject$7(value)){return false;}var tag=baseGetTag$6(value);return tag==funcTag$2||tag==genTag$1||tag==asyncTag||tag==proxyTag;}var isFunction_1=isFunction$3;var isFunction$4=/* @__PURE__ */getDefaultExportFromCjs(isFunction_1);var root$6=_root;var coreJsData$1=root$6["__core-js_shared__"];var _coreJsData=coreJsData$1;var coreJsData=_coreJsData;var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:"";}();function isMasked$1(func){return!!maskSrcKey&&maskSrcKey in func;}var _isMasked=isMasked$1;var funcProto$2=Function.prototype;var funcToString$2=funcProto$2.toString;function toSource$2(func){if(func!=null){try{return funcToString$2.call(func);}catch(e){}try{return func+"";}catch(e){}}return"";}var _toSource=toSource$2;var isFunction$2=isFunction_1,isMasked=_isMasked,isObject$6=isObject_1,toSource$1=_toSource;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto$1=Function.prototype,objectProto$f=Object.prototype;var funcToString$1=funcProto$1.toString;var hasOwnProperty$e=objectProto$f.hasOwnProperty;var reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$e).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(value){if(!isObject$6(value)||isMasked(value)){return false;}var pattern=isFunction$2(value)?reIsNative:reIsHostCtor;return pattern.test(toSource$1(value));}var _baseIsNative=baseIsNative$1;function getValue$2(object,key){return object==null?void 0:object[key];}var _getValue=getValue$2;var baseIsNative=_baseIsNative,getValue$1=_getValue;function getNative$7(object,key){var value=getValue$1(object,key);return baseIsNative(value)?value:void 0;}var _getNative=getNative$7;var getNative$6=_getNative,root$5=_root;var Map$4=getNative$6(root$5,"Map");var _Map=Map$4;var getNative$5=_getNative;var nativeCreate$4=getNative$5(Object,"create");var _nativeCreate=nativeCreate$4;var nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{};this.size=0;}var _hashClear=hashClear$1;function hashDelete$1(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result;}var _hashDelete=hashDelete$1;var nativeCreate$2=_nativeCreate;var HASH_UNDEFINED$2="__lodash_hash_undefined__";var objectProto$e=Object.prototype;var hasOwnProperty$d=objectProto$e.hasOwnProperty;function hashGet$1(key){var data=this.__data__;if(nativeCreate$2){var result=data[key];return result===HASH_UNDEFINED$2?void 0:result;}return hasOwnProperty$d.call(data,key)?data[key]:void 0;}var _hashGet=hashGet$1;var nativeCreate$1=_nativeCreate;var objectProto$d=Object.prototype;var hasOwnProperty$c=objectProto$d.hasOwnProperty;function hashHas$1(key){var data=this.__data__;return nativeCreate$1?data[key]!==void 0:hasOwnProperty$c.call(data,key);}var _hashHas=hashHas$1;var nativeCreate=_nativeCreate;var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===void 0?HASH_UNDEFINED$1:value;return this;}var _hashSet=hashSet$1;var hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}Hash$1.prototype.clear=hashClear;Hash$1.prototype["delete"]=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1;var Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0;this.__data__={"hash":new Hash(),"map":new(Map$3||ListCache$2)(),"string":new Hash()};}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(value){var type=_typeof2(value);return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null;}var _isKeyable=isKeyable$1;var isKeyable=_isKeyable;function getMapData$4(map2,key){var data=map2.__data__;return isKeyable(key)?data[typeof key=="string"?"string":"hash"]:data.map;}var _getMapData=getMapData$4;var getMapData$3=_getMapData;function mapCacheDelete$1(key){var result=getMapData$3(this,key)["delete"](key);this.size-=result?1:0;return result;}var _mapCacheDelete=mapCacheDelete$1;var getMapData$2=_getMapData;function mapCacheGet$1(key){return getMapData$2(this,key).get(key);}var _mapCacheGet=mapCacheGet$1;var getMapData$1=_getMapData;function mapCacheHas$1(key){return getMapData$1(this,key).has(key);}var _mapCacheHas=mapCacheHas$1;var getMapData=_getMapData;function mapCacheSet$1(key,value){var data=getMapData(this,key),size2=data.size;data.set(key,value);this.size+=data.size==size2?0:1;return this;}var _mapCacheSet=mapCacheSet$1;var mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}MapCache$3.prototype.clear=mapCacheClear;MapCache$3.prototype["delete"]=mapCacheDelete;MapCache$3.prototype.get=mapCacheGet;MapCache$3.prototype.has=mapCacheHas;MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3;var ListCache$1=_ListCache,Map$2=_Map,MapCache$2=_MapCache;var LARGE_ARRAY_SIZE=200;function stackSet$1(key,value){var data=this.__data__;if(data instanceof ListCache$1){var pairs=data.__data__;if(!Map$2||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache$2(pairs);}data.set(key,value);this.size=data.size;return this;}var _stackSet=stackSet$1;var ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$3(entries){var data=this.__data__=new ListCache(entries);this.size=data.size;}Stack$3.prototype.clear=stackClear;Stack$3.prototype["delete"]=stackDelete;Stack$3.prototype.get=stackGet;Stack$3.prototype.has=stackHas;Stack$3.prototype.set=stackSet;var _Stack=Stack$3;var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(value){this.__data__.set(value,HASH_UNDEFINED);return this;}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(value){return this.__data__.has(value);}var _setCacheHas=setCacheHas$1;var MapCache$1=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(values2){var index2=-1,length2=values2==null?0:values2.length;this.__data__=new MapCache$1();while(++index2<length2){this.add(values2[index2]);}}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(array,predicate){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(predicate(array[index2],index2,array)){return true;}}return false;}var _arraySome=arraySome$1;function cacheHas$1(cache,key){return cache.has(key);}var _cacheHas=cacheHas$1;var SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas;var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$5,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index2=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG$3?new SetCache():void 0;stack.set(array,other);stack.set(other,array);while(++index2<arrLength){var arrValue=array[index2],othValue=other[index2];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index2,other,array,stack):customizer(arrValue,othValue,index2,array,other,stack);}if(compared!==void 0){if(compared){continue;}result=false;break;}if(seen){if(!arraySome(other,function(othValue2,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue2||equalFunc(arrValue,othValue2,bitmask,customizer,stack))){return seen.push(othIndex);}})){result=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=false;break;}}stack["delete"](array);stack["delete"](other);return result;}var _equalArrays=equalArrays$2;var root$4=_root;var Uint8Array$2=root$4.Uint8Array;var _Uint8Array=Uint8Array$2;function mapToArray$1(map2){var index2=-1,result=Array(map2.size);map2.forEach(function(value,key){result[++index2]=[key,value];});return result;}var _mapToArray=mapToArray$1;function setToArray$1(set){var index2=-1,result=Array(set.size);set.forEach(function(value){result[++index2]=value;});return result;}var _setToArray=setToArray$1;var Symbol$4=_Symbol,Uint8Array$1=_Uint8Array,eq$1=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray;var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2;var boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",mapTag$7="[object Map]",numberTag$3="[object Number]",regexpTag$3="[object RegExp]",setTag$7="[object Set]",stringTag$4="[object String]",symbolTag$3="[object Symbol]";var arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]";var symbolProto$2=Symbol$4?Symbol$4.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function equalByTag$1(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag$4:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag$3:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array$1(object),new Uint8Array$1(other))){return false;}return true;case boolTag$3:case dateTag$3:case numberTag$3:return eq$1(+object,+other);case errorTag$2:return object.name==other.name&&object.message==other.message;case regexpTag$3:case stringTag$4:return object==other+"";case mapTag$7:var convert=mapToArray;case setTag$7:var isPartial=bitmask&COMPARE_PARTIAL_FLAG$4;convert||(convert=setToArray);if(object.size!=other.size&&!isPartial){return false;}var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=COMPARE_UNORDERED_FLAG$2;stack.set(object,other);var result=equalArrays$1(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return result;case symbolTag$3:if(symbolValueOf$1){return symbolValueOf$1.call(object)==symbolValueOf$1.call(other);}}return false;}var _equalByTag=equalByTag$1;function arrayPush$3(array,values2){var index2=-1,length2=values2.length,offset2=array.length;while(++index2<length2){array[offset2+index2]=values2[index2];}return array;}var _arrayPush=arrayPush$3;var isArray$g=Array.isArray;var isArray_1=isArray$g;var isArray$h=/* @__PURE__ */getDefaultExportFromCjs(isArray_1);var arrayPush$2=_arrayPush,isArray$f=isArray_1;function baseGetAllKeys$2(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray$f(object)?result:arrayPush$2(result,symbolsFunc(object));}var _baseGetAllKeys=baseGetAllKeys$2;function arrayFilter$2(array,predicate){var index2=-1,length2=array==null?0:array.length,resIndex=0,result=[];while(++index2<length2){var value=array[index2];if(predicate(value,index2,array)){result[resIndex++]=value;}}return result;}var _arrayFilter=arrayFilter$2;function stubArray$2(){return[];}var stubArray_1=stubArray$2;var arrayFilter$1=_arrayFilter,stubArray$1=stubArray_1;var objectProto$c=Object.prototype;var propertyIsEnumerable$1=objectProto$c.propertyIsEnumerable;var nativeGetSymbols$1=Object.getOwnPropertySymbols;var getSymbols$3=!nativeGetSymbols$1?stubArray$1:function(object){if(object==null){return[];}object=Object(object);return arrayFilter$1(nativeGetSymbols$1(object),function(symbol){return propertyIsEnumerable$1.call(object,symbol);});};var _getSymbols=getSymbols$3;function baseTimes$1(n,iteratee){var index2=-1,result=Array(n);while(++index2<n){result[index2]=iteratee(index2);}return result;}var _baseTimes=baseTimes$1;function isObjectLike$9(value){return value!=null&&_typeof2(value)=="object";}var isObjectLike_1=isObjectLike$9;var baseGetTag$5=_baseGetTag,isObjectLike$8=isObjectLike_1;var argsTag$3="[object Arguments]";function baseIsArguments$1(value){return isObjectLike$8(value)&&baseGetTag$5(value)==argsTag$3;}var _baseIsArguments=baseIsArguments$1;var baseIsArguments=_baseIsArguments,isObjectLike$7=isObjectLike_1;var objectProto$b=Object.prototype;var hasOwnProperty$b=objectProto$b.hasOwnProperty;var propertyIsEnumerable=objectProto$b.propertyIsEnumerable;var isArguments$4=baseIsArguments(/* @__PURE__ */function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike$7(value)&&hasOwnProperty$b.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee");};var isArguments_1=isArguments$4;var isBuffer$4={exports:{}};function stubFalse(){return false;}var stubFalse_1=stubFalse;isBuffer$4.exports;(function(module,exports){var root2=_root,stubFalse2=stubFalse_1;var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var Buffer2=moduleExports?root2.Buffer:void 0;var nativeIsBuffer=Buffer2?Buffer2.isBuffer:void 0;var isBuffer2=nativeIsBuffer||stubFalse2;module.exports=isBuffer2;})(isBuffer$4,isBuffer$4.exports);var isBufferExports=isBuffer$4.exports;var MAX_SAFE_INTEGER$2=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$3(value,length2){var type=_typeof2(value);length2=length2==null?MAX_SAFE_INTEGER$2:length2;return!!length2&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length2;}var _isIndex=isIndex$3;var MAX_SAFE_INTEGER$1=9007199254740991;function isLength$3(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER$1;}var isLength_1=isLength$3;var baseGetTag$4=_baseGetTag,isLength$2=isLength_1,isObjectLike$6=isObjectLike_1;var argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$6="[object Map]",numberTag$2="[object Number]",objectTag$4="[object Object]",regexpTag$2="[object RegExp]",setTag$6="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]";var arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=true;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$6]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$6]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=false;function baseIsTypedArray$1(value){return isObjectLike$6(value)&&isLength$2(value.length)&&!!typedArrayTags[baseGetTag$4(value)];}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(func){return function(value){return func(value);};}var _baseUnary=baseUnary$3;var _nodeUtil={exports:{}};_nodeUtil.exports;(function(module,exports){var freeGlobal2=_freeGlobal;var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal2.process;var nodeUtil2=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;if(types){return types;}return freeProcess&&freeProcess.binding&&freeProcess.binding("util");}catch(e){}}();module.exports=nodeUtil2;})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports;var baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports;var nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray;var isTypedArray$3=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray;var isTypedArray_1=isTypedArray$3;var baseTimes=_baseTimes,isArguments$3=isArguments_1,isArray$e=isArray_1,isBuffer$3=isBufferExports,isIndex$2=_isIndex,isTypedArray$2=isTypedArray_1;var objectProto$a=Object.prototype;var hasOwnProperty$a=objectProto$a.hasOwnProperty;function arrayLikeKeys$2(value,inherited){var isArr=isArray$e(value),isArg=!isArr&&isArguments$3(value),isBuff=!isArr&&!isArg&&isBuffer$3(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray$2(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length2=result.length;for(var key in value){if((inherited||hasOwnProperty$a.call(value,key))&&!(skipIndexes&&(// Safari 9 has enumerable `arguments.length` in strict mode.
1
+ var _templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject0,_templateObject1,_templateObject10,_templateObject11,_templateObject12,_templateObject13;function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf2(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf2(t)););return t;}function _taggedTemplateLiteral2(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf2(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf2(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct3())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf2(p,r.prototype),p;}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _readOnlyError(r){throw new TypeError('"'+r+'" is read-only');}function _toArray(r){return _arrayWithHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableRest2();}function _callSuper(t,o,e){return o=_getPrototypeOf2(o),_possibleConstructorReturn2(t,_isNativeReflectConstruct3()?Reflect.construct(o,e||[],_getPrototypeOf2(t).constructor):o.apply(t,e));}function _possibleConstructorReturn2(t,e){if(e&&("object"==_typeof2(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized2(t);}function _assertThisInitialized2(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct3(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct3=function _isNativeReflectConstruct3(){return!!t;})();}function _getPrototypeOf2(t){return _getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf2(t);}function _inherits2(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf2(t,e);}function _setPrototypeOf2(t,e){return _setPrototypeOf2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf2(t,e);}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},_regeneratorDefine2(e,r,n,t);}function _toConsumableArray2(r){return _arrayWithoutHoles2(r)||_iterableToArray2(r)||_unsupportedIterableToArray2(r)||_nonIterableSpread2();}function _nonIterableSpread2(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray2(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles2(r){if(Array.isArray(r))return _arrayLikeToArray2(r);}function _defineProperty2(e,r,t){return(r=_toPropertyKey2(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _slicedToArray2(r,e){return _arrayWithHoles2(r)||_iterableToArrayLimit2(r,e)||_unsupportedIterableToArray2(r,e)||_nonIterableRest2();}function _nonIterableRest2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit2(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles2(r){if(Array.isArray(r))return r;}function _classCallCheck2(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function __defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey2(o.key),o);}}function _createClass2(e,r,t){return r&&__defineProperties(e.prototype,r),t&&__defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey2(t){var i=_toPrimitive2(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _toPrimitive2(t,r){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _typeof2(o){"@babel/helpers - typeof";return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof2(o);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray2(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n2=0,F=function F(){};return{s:F,n:function n(){return _n2>=r.length?{done:!0}:{done:!1,value:r[_n2++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray2(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray2(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray2(r,a):void 0;}}function _arrayLikeToArray2(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __pow=Math.pow;var __defNormalProp=function __defNormalProp(obj,key,value){return key in obj?__defProp(obj,key,{enumerable:true,configurable:true,writable:true,value:value}):obj[key]=value;};var __spreadValues=function __spreadValues(a,b){for(var prop in b||(b={}))if(__hasOwnProp.call(b,prop))__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols){var _iterator=_createForOfIteratorHelper(__getOwnPropSymbols(b)),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var prop=_step.value;if(__propIsEnum.call(b,prop))__defNormalProp(a,prop,b[prop]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}return a;};var __spreadProps=function __spreadProps(a,b){return __defProps(a,__getOwnPropDescs(b));};var __restKey=function __restKey(key){return _typeof2(key)==="symbol"?key:key+"";};var __objRest=function __objRest(source,exclude){var target={};for(var prop in source)if(__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0)target[prop]=source[prop];if(source!=null&&__getOwnPropSymbols){var _iterator2=_createForOfIteratorHelper(__getOwnPropSymbols(source)),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var prop=_step2.value;if(exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop))target[prop]=source[prop];}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}}return target;};var __publicField=function __publicField(obj,key,value){return __defNormalProp(obj,_typeof2(key)!=="symbol"?key+"":key,value);};var __async=function __async(__this,__arguments,generator){return new Promise(function(resolve,reject){var fulfilled=function fulfilled(value){try{step2(generator.next(value));}catch(e){reject(e);}};var rejected=function rejected(value){try{step2(generator.throw(value));}catch(e){reject(e);}};var step2=function step2(x){return x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);};step2((generator=generator.apply(__this,__arguments)).next());});};import{jsx as jsx$1,jsxs,Fragment as Fragment$1}from"react/jsx-runtime";import*as React from"react";import React__default,{forwardRef,isValidElement,cloneElement,Children,useContext,useState,useCallback,useLayoutEffect,useRef,useMemo,createContext,Component,Fragment,useEffect,memo,createElement,useReducer,useId as useId$2}from"react";import*as ReactDOM from"react-dom";import ReactDOM__default,{createPortal,unstable_batchedUpdates}from"react-dom";function _arrayLikeToArray$1(r2,a){(null==a||a>r2.length)&&(a=r2.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r2[e];return n;}function _arrayWithHoles$1(r2){if(Array.isArray(r2))return r2;}function _arrayWithoutHoles$1(r2){if(Array.isArray(r2))return _arrayLikeToArray$1(r2);}function _defineProperty$2(e,r2,t){return(r2=_toPropertyKey(r2))in e?Object.defineProperty(e,r2,{value:t,enumerable:true,configurable:true,writable:true}):e[r2]=t,e;}function _iterableToArray$1(r2){if("undefined"!=typeof Symbol&&null!=r2[Symbol.iterator]||null!=r2["@@iterator"])return Array.from(r2);}function _iterableToArrayLimit$1(r2,l){var t=null==r2?null:"undefined"!=typeof Symbol&&r2[Symbol.iterator]||r2["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=true,o=false;try{if(i=(t=t.call(r2)).next,0===l){if(Object(t)!==t)return;f=false;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=true);}catch(r3){o=true,n=r3;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function ownKeys$1(e,r2){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r2&&(o=o.filter(function(r3){return Object.getOwnPropertyDescriptor(e,r3).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread2$1(e){for(var r2=1;r2<arguments.length;r2++){var t=null!=arguments[r2]?arguments[r2]:{};r2%2?ownKeys$1(Object(t),true).forEach(function(r3){_defineProperty$2(e,r3,t[r3]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(r3){Object.defineProperty(e,r3,Object.getOwnPropertyDescriptor(t,r3));});}return e;}function _objectWithoutProperties$1(e,t){if(null==e)return{};var o,r2,i=_objectWithoutPropertiesLoose$1(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r2=0;r2<n.length;r2++)o=n[r2],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose$1(r2,e){if(null==r2)return{};var t={};for(var n in r2)if({}.hasOwnProperty.call(r2,n)){if(-1!==e.indexOf(n))continue;t[n]=r2[n];}return t;}function _slicedToArray$1(r2,e){return _arrayWithHoles$1(r2)||_iterableToArrayLimit$1(r2,e)||_unsupportedIterableToArray$1(r2,e)||_nonIterableRest$1();}function _toConsumableArray$1(r2){return _arrayWithoutHoles$1(r2)||_iterableToArray$1(r2)||_unsupportedIterableToArray$1(r2)||_nonIterableSpread$1();}function _toPrimitive(t,r2){if("object"!=_typeof2(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r2);if("object"!=_typeof2(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r2?String:Number)(t);}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof2(i)?i:i+"";}function _typeof$1(o){"@babel/helpers - typeof";return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2;}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2;},_typeof$1(o);}function _unsupportedIterableToArray$1(r2,a){if(r2){if("string"==typeof r2)return _arrayLikeToArray$1(r2,a);var t={}.toString.call(r2).slice(8,-1);return"Object"===t&&r2.constructor&&(t=r2.constructor.name),"Map"===t||"Set"===t?Array.from(r2):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray$1(r2,a):void 0;}}function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==_typeof2(e))if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n;}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n;}var DEBUG_ENVS=["local","development"];var readEnv=function readEnv2(){var _proc$env;var override=globalThis.__PRODUCTECA_UI_ENV__;if(typeof override==="string")return override;var proc=globalThis.process;if(proc!==null&&proc!==void 0&&(_proc$env=proc.env)!==null&&_proc$env!==void 0&&_proc$env.NODE_ENV)return proc.env.NODE_ENV;return void 0;};var isDebugEnabled=function isDebugEnabled2(){var _readEnv;return DEBUG_ENVS.indexOf((_readEnv=readEnv())!==null&&_readEnv!==void 0?_readEnv:"")!==-1;};var logHandler=function logHandler2(component,handler,args){var _console;(_console=console).debug.apply(_console,["[producteca-ui-kit] ".concat(component,".").concat(handler," →")].concat(_toConsumableArray$1(args)));};var logWarning=function logWarning2(message2){console.warn("[producteca-ui-kit] ".concat(message2));};var MAX_DEPTH=4;var isFunction$5=function isFunction(value){return typeof value==="function";};var isHandlerKey=function isHandlerKey2(key){return /^on[A-Z]/.test(key);};var isReactElement=function isReactElement2(value){return _typeof$1(value)==="object"&&value!==null&&"$$typeof"in value;};var isPlainObject$3=function isPlainObject(value){if(_typeof$1(value)!=="object"||value===null||isReactElement(value))return false;var proto=Object.getPrototypeOf(value);return proto===Object.prototype||proto===null;};var wrapHandler=function wrapHandler2(fn3,componentName,path){return function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}logHandler(componentName,path,args);return fn3.apply(void 0,args);};};var _wrapDeep=function wrapDeep(value,componentName,path,depth){if(depth>MAX_DEPTH)return value;if(Array.isArray(value)){return value.map(function(item2,index2){return _wrapDeep(item2,componentName,"".concat(path,"[").concat(index2,"]"),depth+1);});}if(isPlainObject$3(value)){var next2={};for(var _i=0,_Object$keys=Object.keys(value);_i<_Object$keys.length;_i++){var key=_Object$keys[_i];var child=value[key];var childPath=path?"".concat(path,".").concat(key):key;next2[key]=isHandlerKey(key)&&isFunction$5(child)?wrapHandler(child,componentName,childPath):_wrapDeep(child,componentName,childPath,depth+1);}return next2;}return value;};function withDebugHandlers(Component2,componentName){if(!isDebugEnabled())return Component2;var Wrapped=/* @__PURE__ */forwardRef(function(props,ref){var next2=_wrapDeep(props,componentName,"",0);var Cmp=Component2;return/* @__PURE__ */jsx$1(Cmp,_objectSpread2$1(_objectSpread2$1({},next2),ref?{ref:ref}:{}));});Wrapped.displayName="withDebugHandlers(".concat(componentName,")");return Wrapped;}var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x["default"]:x;}function listCacheClear$1(){this.__data__=[];this.size=0;}var _listCacheClear=listCacheClear$1;function eq$3(value,other){return value===other||value!==value&&other!==other;}var eq_1=eq$3;var eq$2=eq_1;function assocIndexOf$4(array,key){var length2=array.length;while(length2--){if(eq$2(array[length2][0],key)){return length2;}}return-1;}var _assocIndexOf=assocIndexOf$4;var assocIndexOf$3=_assocIndexOf;var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete$1(key){var data=this.__data__,index2=assocIndexOf$3(data,key);if(index2<0){return false;}var lastIndex=data.length-1;if(index2==lastIndex){data.pop();}else{splice.call(data,index2,1);}--this.size;return true;}var _listCacheDelete=listCacheDelete$1;var assocIndexOf$2=_assocIndexOf;function listCacheGet$1(key){var data=this.__data__,index2=assocIndexOf$2(data,key);return index2<0?void 0:data[index2][1];}var _listCacheGet=listCacheGet$1;var assocIndexOf$1=_assocIndexOf;function listCacheHas$1(key){return assocIndexOf$1(this.__data__,key)>-1;}var _listCacheHas=listCacheHas$1;var assocIndexOf=_assocIndexOf;function listCacheSet$1(key,value){var data=this.__data__,index2=assocIndexOf(data,key);if(index2<0){++this.size;data.push([key,value]);}else{data[index2][1]=value;}return this;}var _listCacheSet=listCacheSet$1;var listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype["delete"]=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4;var ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3();this.size=0;}var _stackClear=stackClear$1;function stackDelete$1(key){var data=this.__data__,result=data["delete"](key);this.size=data.size;return result;}var _stackDelete=stackDelete$1;function stackGet$1(key){return this.__data__.get(key);}var _stackGet=stackGet$1;function stackHas$1(key){return this.__data__.has(key);}var _stackHas=stackHas$1;var freeGlobal$1=_typeof2(commonjsGlobal)=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;var _freeGlobal=freeGlobal$1;var freeGlobal=_freeGlobal;var freeSelf=(typeof self==="undefined"?"undefined":_typeof2(self))=="object"&&self&&self.Object===Object&&self;var root$8=freeGlobal||freeSelf||Function("return this")();var _root=root$8;var root$7=_root;var Symbol$7=root$7.Symbol;var _Symbol=Symbol$7;var Symbol$6=_Symbol;var objectProto$h=Object.prototype;var hasOwnProperty$f=objectProto$h.hasOwnProperty;var nativeObjectToString$1=objectProto$h.toString;var symToStringTag$1=Symbol$6?Symbol$6.toStringTag:void 0;function getRawTag$1(value){var isOwn=hasOwnProperty$f.call(value,symToStringTag$1),tag=value[symToStringTag$1];try{value[symToStringTag$1]=void 0;var unmasked=true;}catch(e){}var result=nativeObjectToString$1.call(value);if(unmasked){if(isOwn){value[symToStringTag$1]=tag;}else{delete value[symToStringTag$1];}}return result;}var _getRawTag=getRawTag$1;var objectProto$g=Object.prototype;var nativeObjectToString=objectProto$g.toString;function objectToString$1(value){return nativeObjectToString.call(value);}var _objectToString=objectToString$1;var Symbol$5=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString;var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=Symbol$5?Symbol$5.toStringTag:void 0;function baseGetTag$7(value){if(value==null){return value===void 0?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value);}var _baseGetTag=baseGetTag$7;function isObject$8(value){var type=_typeof2(value);return value!=null&&(type=="object"||type=="function");}var isObject_1=isObject$8;var baseGetTag$6=_baseGetTag,isObject$7=isObject_1;var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3(value){if(!isObject$7(value)){return false;}var tag=baseGetTag$6(value);return tag==funcTag$2||tag==genTag$1||tag==asyncTag||tag==proxyTag;}var isFunction_1=isFunction$3;var isFunction$4=/* @__PURE__ */getDefaultExportFromCjs(isFunction_1);var root$6=_root;var coreJsData$1=root$6["__core-js_shared__"];var _coreJsData=coreJsData$1;var coreJsData=_coreJsData;var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:"";}();function isMasked$1(func){return!!maskSrcKey&&maskSrcKey in func;}var _isMasked=isMasked$1;var funcProto$2=Function.prototype;var funcToString$2=funcProto$2.toString;function toSource$2(func){if(func!=null){try{return funcToString$2.call(func);}catch(e){}try{return func+"";}catch(e){}}return"";}var _toSource=toSource$2;var isFunction$2=isFunction_1,isMasked=_isMasked,isObject$6=isObject_1,toSource$1=_toSource;var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto$1=Function.prototype,objectProto$f=Object.prototype;var funcToString$1=funcProto$1.toString;var hasOwnProperty$e=objectProto$f.hasOwnProperty;var reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$e).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(value){if(!isObject$6(value)||isMasked(value)){return false;}var pattern=isFunction$2(value)?reIsNative:reIsHostCtor;return pattern.test(toSource$1(value));}var _baseIsNative=baseIsNative$1;function getValue$2(object,key){return object==null?void 0:object[key];}var _getValue=getValue$2;var baseIsNative=_baseIsNative,getValue$1=_getValue;function getNative$7(object,key){var value=getValue$1(object,key);return baseIsNative(value)?value:void 0;}var _getNative=getNative$7;var getNative$6=_getNative,root$5=_root;var Map$4=getNative$6(root$5,"Map");var _Map=Map$4;var getNative$5=_getNative;var nativeCreate$4=getNative$5(Object,"create");var _nativeCreate=nativeCreate$4;var nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{};this.size=0;}var _hashClear=hashClear$1;function hashDelete$1(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result;}var _hashDelete=hashDelete$1;var nativeCreate$2=_nativeCreate;var HASH_UNDEFINED$2="__lodash_hash_undefined__";var objectProto$e=Object.prototype;var hasOwnProperty$d=objectProto$e.hasOwnProperty;function hashGet$1(key){var data=this.__data__;if(nativeCreate$2){var result=data[key];return result===HASH_UNDEFINED$2?void 0:result;}return hasOwnProperty$d.call(data,key)?data[key]:void 0;}var _hashGet=hashGet$1;var nativeCreate$1=_nativeCreate;var objectProto$d=Object.prototype;var hasOwnProperty$c=objectProto$d.hasOwnProperty;function hashHas$1(key){var data=this.__data__;return nativeCreate$1?data[key]!==void 0:hasOwnProperty$c.call(data,key);}var _hashHas=hashHas$1;var nativeCreate=_nativeCreate;var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===void 0?HASH_UNDEFINED$1:value;return this;}var _hashSet=hashSet$1;var hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}Hash$1.prototype.clear=hashClear;Hash$1.prototype["delete"]=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1;var Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0;this.__data__={"hash":new Hash(),"map":new(Map$3||ListCache$2)(),"string":new Hash()};}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(value){var type=_typeof2(value);return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null;}var _isKeyable=isKeyable$1;var isKeyable=_isKeyable;function getMapData$4(map2,key){var data=map2.__data__;return isKeyable(key)?data[typeof key=="string"?"string":"hash"]:data.map;}var _getMapData=getMapData$4;var getMapData$3=_getMapData;function mapCacheDelete$1(key){var result=getMapData$3(this,key)["delete"](key);this.size-=result?1:0;return result;}var _mapCacheDelete=mapCacheDelete$1;var getMapData$2=_getMapData;function mapCacheGet$1(key){return getMapData$2(this,key).get(key);}var _mapCacheGet=mapCacheGet$1;var getMapData$1=_getMapData;function mapCacheHas$1(key){return getMapData$1(this,key).has(key);}var _mapCacheHas=mapCacheHas$1;var getMapData=_getMapData;function mapCacheSet$1(key,value){var data=getMapData(this,key),size2=data.size;data.set(key,value);this.size+=data.size==size2?0:1;return this;}var _mapCacheSet=mapCacheSet$1;var mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(entries){var index2=-1,length2=entries==null?0:entries.length;this.clear();while(++index2<length2){var entry=entries[index2];this.set(entry[0],entry[1]);}}MapCache$3.prototype.clear=mapCacheClear;MapCache$3.prototype["delete"]=mapCacheDelete;MapCache$3.prototype.get=mapCacheGet;MapCache$3.prototype.has=mapCacheHas;MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3;var ListCache$1=_ListCache,Map$2=_Map,MapCache$2=_MapCache;var LARGE_ARRAY_SIZE=200;function stackSet$1(key,value){var data=this.__data__;if(data instanceof ListCache$1){var pairs=data.__data__;if(!Map$2||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache$2(pairs);}data.set(key,value);this.size=data.size;return this;}var _stackSet=stackSet$1;var ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$3(entries){var data=this.__data__=new ListCache(entries);this.size=data.size;}Stack$3.prototype.clear=stackClear;Stack$3.prototype["delete"]=stackDelete;Stack$3.prototype.get=stackGet;Stack$3.prototype.has=stackHas;Stack$3.prototype.set=stackSet;var _Stack=Stack$3;var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(value){this.__data__.set(value,HASH_UNDEFINED);return this;}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(value){return this.__data__.has(value);}var _setCacheHas=setCacheHas$1;var MapCache$1=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(values2){var index2=-1,length2=values2==null?0:values2.length;this.__data__=new MapCache$1();while(++index2<length2){this.add(values2[index2]);}}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(array,predicate){var index2=-1,length2=array==null?0:array.length;while(++index2<length2){if(predicate(array[index2],index2,array)){return true;}}return false;}var _arraySome=arraySome$1;function cacheHas$1(cache,key){return cache.has(key);}var _cacheHas=cacheHas$1;var SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas;var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG$5,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false;}var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array;}var index2=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG$3?new SetCache():void 0;stack.set(array,other);stack.set(other,array);while(++index2<arrLength){var arrValue=array[index2],othValue=other[index2];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index2,other,array,stack):customizer(arrValue,othValue,index2,array,other,stack);}if(compared!==void 0){if(compared){continue;}result=false;break;}if(seen){if(!arraySome(other,function(othValue2,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue2||equalFunc(arrValue,othValue2,bitmask,customizer,stack))){return seen.push(othIndex);}})){result=false;break;}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=false;break;}}stack["delete"](array);stack["delete"](other);return result;}var _equalArrays=equalArrays$2;var root$4=_root;var Uint8Array$2=root$4.Uint8Array;var _Uint8Array=Uint8Array$2;function mapToArray$1(map2){var index2=-1,result=Array(map2.size);map2.forEach(function(value,key){result[++index2]=[key,value];});return result;}var _mapToArray=mapToArray$1;function setToArray$1(set){var index2=-1,result=Array(set.size);set.forEach(function(value){result[++index2]=value;});return result;}var _setToArray=setToArray$1;var Symbol$4=_Symbol,Uint8Array$1=_Uint8Array,eq$1=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray;var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2;var boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",mapTag$7="[object Map]",numberTag$3="[object Number]",regexpTag$3="[object RegExp]",setTag$7="[object Set]",stringTag$4="[object String]",symbolTag$3="[object Symbol]";var arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]";var symbolProto$2=Symbol$4?Symbol$4.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function equalByTag$1(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag$4:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false;}object=object.buffer;other=other.buffer;case arrayBufferTag$3:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array$1(object),new Uint8Array$1(other))){return false;}return true;case boolTag$3:case dateTag$3:case numberTag$3:return eq$1(+object,+other);case errorTag$2:return object.name==other.name&&object.message==other.message;case regexpTag$3:case stringTag$4:return object==other+"";case mapTag$7:var convert=mapToArray;case setTag$7:var isPartial=bitmask&COMPARE_PARTIAL_FLAG$4;convert||(convert=setToArray);if(object.size!=other.size&&!isPartial){return false;}var stacked=stack.get(object);if(stacked){return stacked==other;}bitmask|=COMPARE_UNORDERED_FLAG$2;stack.set(object,other);var result=equalArrays$1(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return result;case symbolTag$3:if(symbolValueOf$1){return symbolValueOf$1.call(object)==symbolValueOf$1.call(other);}}return false;}var _equalByTag=equalByTag$1;function arrayPush$3(array,values2){var index2=-1,length2=values2.length,offset2=array.length;while(++index2<length2){array[offset2+index2]=values2[index2];}return array;}var _arrayPush=arrayPush$3;var isArray$g=Array.isArray;var isArray_1=isArray$g;var isArray$h=/* @__PURE__ */getDefaultExportFromCjs(isArray_1);var arrayPush$2=_arrayPush,isArray$f=isArray_1;function baseGetAllKeys$2(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray$f(object)?result:arrayPush$2(result,symbolsFunc(object));}var _baseGetAllKeys=baseGetAllKeys$2;function arrayFilter$2(array,predicate){var index2=-1,length2=array==null?0:array.length,resIndex=0,result=[];while(++index2<length2){var value=array[index2];if(predicate(value,index2,array)){result[resIndex++]=value;}}return result;}var _arrayFilter=arrayFilter$2;function stubArray$2(){return[];}var stubArray_1=stubArray$2;var arrayFilter$1=_arrayFilter,stubArray$1=stubArray_1;var objectProto$c=Object.prototype;var propertyIsEnumerable$1=objectProto$c.propertyIsEnumerable;var nativeGetSymbols$1=Object.getOwnPropertySymbols;var getSymbols$3=!nativeGetSymbols$1?stubArray$1:function(object){if(object==null){return[];}object=Object(object);return arrayFilter$1(nativeGetSymbols$1(object),function(symbol){return propertyIsEnumerable$1.call(object,symbol);});};var _getSymbols=getSymbols$3;function baseTimes$1(n,iteratee){var index2=-1,result=Array(n);while(++index2<n){result[index2]=iteratee(index2);}return result;}var _baseTimes=baseTimes$1;function isObjectLike$9(value){return value!=null&&_typeof2(value)=="object";}var isObjectLike_1=isObjectLike$9;var baseGetTag$5=_baseGetTag,isObjectLike$8=isObjectLike_1;var argsTag$3="[object Arguments]";function baseIsArguments$1(value){return isObjectLike$8(value)&&baseGetTag$5(value)==argsTag$3;}var _baseIsArguments=baseIsArguments$1;var baseIsArguments=_baseIsArguments,isObjectLike$7=isObjectLike_1;var objectProto$b=Object.prototype;var hasOwnProperty$b=objectProto$b.hasOwnProperty;var propertyIsEnumerable=objectProto$b.propertyIsEnumerable;var isArguments$4=baseIsArguments(/* @__PURE__ */function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike$7(value)&&hasOwnProperty$b.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee");};var isArguments_1=isArguments$4;var isBuffer$4={exports:{}};function stubFalse(){return false;}var stubFalse_1=stubFalse;isBuffer$4.exports;(function(module,exports){var root2=_root,stubFalse2=stubFalse_1;var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var Buffer2=moduleExports?root2.Buffer:void 0;var nativeIsBuffer=Buffer2?Buffer2.isBuffer:void 0;var isBuffer2=nativeIsBuffer||stubFalse2;module.exports=isBuffer2;})(isBuffer$4,isBuffer$4.exports);var isBufferExports=isBuffer$4.exports;var MAX_SAFE_INTEGER$2=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$3(value,length2){var type=_typeof2(value);length2=length2==null?MAX_SAFE_INTEGER$2:length2;return!!length2&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length2;}var _isIndex=isIndex$3;var MAX_SAFE_INTEGER$1=9007199254740991;function isLength$3(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER$1;}var isLength_1=isLength$3;var baseGetTag$4=_baseGetTag,isLength$2=isLength_1,isObjectLike$6=isObjectLike_1;var argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$6="[object Map]",numberTag$2="[object Number]",objectTag$4="[object Object]",regexpTag$2="[object RegExp]",setTag$6="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]";var arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=true;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$6]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$6]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=false;function baseIsTypedArray$1(value){return isObjectLike$6(value)&&isLength$2(value.length)&&!!typedArrayTags[baseGetTag$4(value)];}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(func){return function(value){return func(value);};}var _baseUnary=baseUnary$3;var _nodeUtil={exports:{}};_nodeUtil.exports;(function(module,exports){var freeGlobal2=_freeGlobal;var freeExports=exports&&!exports.nodeType&&exports;var freeModule=freeExports&&true&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal2.process;var nodeUtil2=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;if(types){return types;}return freeProcess&&freeProcess.binding&&freeProcess.binding("util");}catch(e){}}();module.exports=nodeUtil2;})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports;var baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports;var nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray;var isTypedArray$3=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray;var isTypedArray_1=isTypedArray$3;var baseTimes=_baseTimes,isArguments$3=isArguments_1,isArray$e=isArray_1,isBuffer$3=isBufferExports,isIndex$2=_isIndex,isTypedArray$2=isTypedArray_1;var objectProto$a=Object.prototype;var hasOwnProperty$a=objectProto$a.hasOwnProperty;function arrayLikeKeys$2(value,inherited){var isArr=isArray$e(value),isArg=!isArr&&isArguments$3(value),isBuff=!isArr&&!isArg&&isBuffer$3(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray$2(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length2=result.length;for(var key in value){if((inherited||hasOwnProperty$a.call(value,key))&&!(skipIndexes&&(// Safari 9 has enumerable `arguments.length` in strict mode.
2
2
  key=="length"||// Node.js 0.10 has enumerable non-index properties on buffers.
3
3
  isBuff&&(key=="offset"||key=="parent")||// PhantomJS 2 has enumerable non-index properties on typed arrays.
4
4
  isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||// Skip index properties.
@@ -7003,7 +7003,7 @@ targetInLock&&(endTarget.contains(target)||endTarget===target));if(isDeltaPositi
7003
7003
  * The system prop that allows defining system overrides as well as additional CSS styles.
7004
7004
  */sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object]),/**
7005
7005
  * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
7006
- */title:PropTypes.node}:void 0;var OverflowChecker=function OverflowChecker2(_ref3){var children=_ref3.children;var ref=useRef(null);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showTooltip=_useState2[0],setShowTooltip=_useState2[1];useEffect(function(){var checkOverflow=function checkOverflow2(){if(ref.current){setShowTooltip(ref.current.scrollWidth>ref.current.offsetWidth);}};checkOverflow();window.addEventListener("resize",checkOverflow);return function(){return window.removeEventListener("resize",checkOverflow);};},[children]);return/* @__PURE__ */jsx$1(Fragment$1,{children:children(ref,showTooltip)});};var _excluded$r=["children","content","placement","arrow","maxWidth","trigger","shouldShowTooltip","slotProps"],_excluded2$6=["content","children"];var WithTooltip=function WithTooltip2(_ref3){var children=_ref3.children,content2=_ref3.content,_ref$placement=_ref3.placement,placement=_ref$placement===void 0?"top":_ref$placement,_ref$arrow=_ref3.arrow,arrow2=_ref$arrow===void 0?false:_ref$arrow,_ref$maxWidth=_ref3.maxWidth,maxWidth2=_ref$maxWidth===void 0?"284px":_ref$maxWidth,_ref$trigger=_ref3.trigger,trigger=_ref$trigger===void 0?"hover":_ref$trigger,_ref$shouldShowToolti=_ref3.shouldShowTooltip,shouldShowTooltip=_ref$shouldShowToolti===void 0?true:_ref$shouldShowToolti,customSlotProps=_ref3.slotProps,otherProps=_objectWithoutProperties$1(_ref3,_excluded$r);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),open=_useState2[0],setOpen=_useState2[1];var enhancedChildren=/* @__PURE__ */React__default.cloneElement(children,_objectSpread2$1({style:_objectSpread2$1(_objectSpread2$1({},children.props.style||{}),{},{cursor:"pointer"})},trigger==="click"&&shouldShowTooltip&&{onClick:function onClick(e){if(children.props.onClick){children.props.onClick(e);}setOpen(!open);}}));var tooltipProps=trigger==="click"?{open:shouldShowTooltip?open:false,onClose:function onClose(){return setOpen(false);},disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};var disabledListeners=!shouldShowTooltip?{disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};var customPopperProps=typeof(customSlotProps===null||customSlotProps===void 0?void 0:customSlotProps.popper)==="function"?void 0:customSlotProps===null||customSlotProps===void 0?void 0:customSlotProps.popper;return/* @__PURE__ */jsx$1(Tooltip,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({title:shouldShowTooltip?content2:"",placement:placement,arrow:arrow2,slots:{transition:Zoom},slotProps:{popper:{sx:_objectSpread2$1(_objectSpread2$1({},(customPopperProps===null||customPopperProps===void 0?void 0:customPopperProps.sx)||{}),{},_defineProperty$2(_defineProperty$2(_defineProperty$2(_defineProperty$2(_defineProperty$2(_defineProperty$2({},"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.tooltip),{fontFamily:"var(--primary-font-family)",background:"var(--grey-800)",padding:"9px 9px 8px 12px",fontSize:"var(--body-small)",fontWeight:"400",color:"white !important",borderRadius:"4px",maxWidth:maxWidth2}),"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.arrow),{color:"var(--grey-800)"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="top"] .').concat(tooltipClasses.tooltip),{marginBottom:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="bottom"] .').concat(tooltipClasses.tooltip),{marginTop:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="left"] .').concat(tooltipClasses.tooltip),{marginRight:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="right"] .').concat(tooltipClasses.tooltip),{marginLeft:"8px"}))}}},tooltipProps),disabledListeners),otherProps),{},{children:enhancedChildren}));};var WithOverflowTooltip=function WithOverflowTooltip2(_ref22){var content2=_ref22.content,_children=_ref22.children,tooltipProps=_objectWithoutProperties$1(_ref22,_excluded2$6);return/* @__PURE__ */jsx$1(OverflowChecker,{children:function children(ref,showTooltip){var childrenWithRef=/* @__PURE__ */React__default.cloneElement(_children,{ref:ref});return showTooltip&&content2?/* @__PURE__ */jsx$1(WithTooltip,_objectSpread2$1(_objectSpread2$1({content:content2},tooltipProps),{},{children:childrenWithRef})):childrenWithRef;}});};var styles$n={"help-link":"helpArticleLink-module_help-link_Tne5b"};var _excluded$q=["href","tooltip"];var HelpArticleLink=/* @__PURE__ */React__default.memo(function(_ref3){var href=_ref3.href,tooltip=_ref3.tooltip,props=_objectWithoutProperties$1(_ref3,_excluded$q);if(!href)return null;return/* @__PURE__ */jsx$1(WithTooltip,{content:tooltip,placement:"left",children:/* @__PURE__ */jsx$1(Link,_objectSpread2$1(_objectSpread2$1({href:href,target:"_blank","aria-label":tooltip,className:styles$n["help-link"]},props),{},{children:/* @__PURE__ */jsx$1(CustomIcon,{size:"8",color:getColor("primary","500"),children:/* @__PURE__ */jsx$1(AutoStoriesIcon,{"data-testid":"AutoStoriesIcon"})})}))});});HelpArticleLink.displayName="HelpArticleLink";var styles$m={"maintenance-wrapper":"maintenance-module_maintenance-wrapper_21CSu","maintenance-content":"maintenance-module_maintenance-content_csxiz","maintenance-icon":"maintenance-module_maintenance-icon_4Jqjc","maintenance-title":"maintenance-module_maintenance-title_6ALRO","maintenance-text":"maintenance-module_maintenance-text_P-UPr"};var _excluded$p=["title","description","subtitle"];var Maintenance=function Maintenance2(_ref3){var _ref$title=_ref3.title,title2=_ref$title===void 0?locale("maintenance.title"):_ref$title,_ref$description=_ref3.description,description2=_ref$description===void 0?locale("maintenance.description"):_ref$description,_ref$subtitle=_ref3.subtitle,subtitle2=_ref$subtitle===void 0?locale("maintenance.subtitle"):_ref$subtitle,props=_objectWithoutProperties$1(_ref3,_excluded$p);return/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({className:styles$m["maintenance-wrapper"]},props),{},{children:/* @__PURE__ */jsxs("div",{className:styles$m["maintenance-content"],children:[/* @__PURE__ */jsx$1("div",{className:styles$m["maintenance-icon"],children:/* @__PURE__ */jsx$1(MaintenanceIcon,{})}),/* @__PURE__ */jsx$1("h1",{className:styles$m["maintenance-title"],children:title2}),/* @__PURE__ */jsxs("div",{className:styles$m["maintenance-text"],children:[/* @__PURE__ */jsx$1("p",{children:description2}),/* @__PURE__ */jsx$1("p",{children:subtitle2})]})]})}));};var title$4="generatingState-module_title_WfWVT";var highlight="generatingState-module_highlight_L1iz8";var description$1="generatingState-module_description_htMlf";var styles$l={"generating-state-container":"generatingState-module_generating-state-container_XNq1W","text-container":"generatingState-module_text-container_PHvh6","spinner-container":"generatingState-module_spinner-container_D21cF",title:title$4,highlight:highlight,description:description$1};var _excluded$o=["highlight","icon","text","description"];var DefaultIcon$1=/* @__PURE__ */jsx$1(GeneratingStateIcon,{});var GeneratingState=function GeneratingState2(_ref3){var highlight2=_ref3.highlight,_ref$icon=_ref3.icon,icon2=_ref$icon===void 0?DefaultIcon$1:_ref$icon,_ref$text=_ref3.text,text2=_ref$text===void 0?locale("generatingState.text"):_ref$text,_ref$description=_ref3.description,description2=_ref$description===void 0?locale("generatingState.description"):_ref$description,props=_objectWithoutProperties$1(_ref3,_excluded$o);var title2=highlight2?/* @__PURE__ */jsxs(Fragment$1,{children:[text2," ",/* @__PURE__ */jsx$1("strong",{className:styles$l.highlight,children:highlight2})]}):text2;return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:styles$l["generating-state-container"],role:"status"},props),{},{children:[icon2,/* @__PURE__ */jsxs("div",{className:styles$l["text-container"],children:[/* @__PURE__ */jsx$1("p",{className:styles$l.title,children:title2}),/* @__PURE__ */jsx$1("p",{className:styles$l.description,children:description2})]}),/* @__PURE__ */jsx$1("div",{className:styles$l["spinner-container"],children:/* @__PURE__ */jsx$1(Spinner,{size:"sm"})})]}));};var modal$1="pickChannelModal-module_modal_YGDD7";var body="pickChannelModal-module_body_X7L60";var compact$1="pickChannelModal-module_compact_hD7b-";var sections="pickChannelModal-module_sections_VGJ6N";var section="pickChannelModal-module_section_BklUc";var section__title="pickChannelModal-module_section__title_fBRgI";var section__description="pickChannelModal-module_section__description_Pgidd";var styles$k={modal:modal$1,body:body,compact:compact$1,sections:sections,section:section,section__title:section__title,section__description:section__description,"cards-grid":"pickChannelModal-module_cards-grid_kLH1X"};var overlay="modal-module_overlay_tuS3y";var modal="modal-module_modal_pwYxH";var sm$3="modal-module_sm_yWHmZ";var md$1="modal-module_md_rV0w9";var lg$3="modal-module_lg_sy6Md";var xl="modal-module_xl_UbiWN";var styles$j={overlay:overlay,"modal-backdrop-fade-in":"modal-module_modal-backdrop-fade-in_ipnEv",modal:modal,"modal-enter":"modal-module_modal-enter_uufyU",sm:sm$3,md:md$1,lg:lg$3,xl:xl,"fit-content":"modal-module_fit-content_CBdg6"};var _excluded$n=["open","onClose","children","className","size","isLoading","fitContent","ariaLabel"];var ModalContext=/* @__PURE__ */createContext({isLoading:false});var ModalBase=function ModalBase2(_ref3){var open=_ref3.open,onClose=_ref3.onClose,children=_ref3.children,className=_ref3.className,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,_ref$isLoading=_ref3.isLoading,isLoading=_ref$isLoading===void 0?false:_ref$isLoading,_ref$fitContent=_ref3.fitContent,fitContent=_ref$fitContent===void 0?false:_ref$fitContent,ariaLabel=_ref3.ariaLabel,props=_objectWithoutProperties$1(_ref3,_excluded$n);return/* @__PURE__ */jsx$1(Modal$2,{open:open,onClose:onClose,className:styles$j["overlay"],children:/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({role:"dialog","aria-modal":"true","aria-label":ariaLabel||locale("a11y.dialog"),"aria-busy":isLoading||void 0,className:clsx(styles$j["modal"],styles$j[size2],className,_defineProperty$2({},styles$j["fit-content"],fitContent))},props),{},{children:/* @__PURE__ */jsx$1(ModalContext.Provider,{value:{isLoading:isLoading},children:children})}))});};var Modal$1=withDebugHandlers(ModalBase,"Modal");var icon$1="modalTitle-module_icon_jKB-M";var title$3="modalTitle-module_title_U2a2X";var subtitle="modalTitle-module_subtitle_DTIpI";var styles$i={"title-modal":"modalTitle-module_title-modal_Q-5aj","title-with-icon":"modalTitle-module_title-with-icon_qaofY",icon:icon$1,"title-group":"modalTitle-module_title-group_glQK9",title:title$3,subtitle:subtitle};var _excluded$m=["icon","title","subtitle","helpArticleUrl","helpTooltip"];var ModalTitle=function ModalTitle2(_ref3){var icon2=_ref3.icon,title2=_ref3.title,subtitle2=_ref3.subtitle,helpArticleUrl=_ref3.helpArticleUrl,_ref$helpTooltip=_ref3.helpTooltip,helpTooltip=_ref$helpTooltip===void 0?locale("modalTitle.instructive"):_ref$helpTooltip,props=_objectWithoutProperties$1(_ref3,_excluded$m);return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:styles$i["title-modal"]},props),{},{children:[/* @__PURE__ */jsxs("div",{className:styles$i["title-with-icon"],children:[icon2&&/* @__PURE__ */jsx$1("span",{className:styles$i["icon"],"aria-hidden":"true",children:icon2}),/* @__PURE__ */jsxs("div",{className:styles$i["title-group"],children:[/* @__PURE__ */jsx$1("span",{className:styles$i["title"],children:title2}),subtitle2&&/* @__PURE__ */jsx$1("div",{className:styles$i["subtitle"],children:subtitle2})]})]}),/* @__PURE__ */jsx$1(HelpArticleLink,{href:helpArticleUrl,tooltip:helpTooltip})]}));};var styles$h={"modal-body":"modalBody-module_modal-body_EvgIj","modal-body--loading":"modalBody-module_modal-body--loading_SG8wG"};var _excluded$l=["children","className"];var ModalBody=function ModalBody2(_ref3){var children=_ref3.children,className=_ref3.className,props=_objectWithoutProperties$1(_ref3,_excluded$l);var _useContext=useContext(ModalContext),isLoading=_useContext.isLoading;if(isLoading){return/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$h["modal-body"],styles$h["modal-body--loading"],className)},props),{},{children:/* @__PURE__ */jsx$1(Spinner,{size:"lg"})}));}return/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$h["modal-body"],className)},props),{},{children:children}));};var ModalFooter=function ModalFooter2(props){return/* @__PURE__ */jsx$1(ActionBar,_objectSpread2$1({variant:"modal"},props));};var Modal2=Modal$1;Modal2.Title=ModalTitle;Modal2.Body=ModalBody;Modal2.Footer=ModalFooter;var InsertPhotoRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.9 13.98l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.01.8-.4.8H6.02c-.42 0-.65-.48-.39-.81L8.12 14c.19-.26.57-.27.78-.02"}),"InsertPhotoRounded");var image="image-module_image_y02P7";var error$3="image-module_error_QtQOy";var styles$g={"image-container":"image-module_image-container_ZhlhW","show-border":"image-module_show-border_LV5sz",image:image,error:error$3};var _excluded$k=["sx","src","alt","imageSx","errorIcon","showBorder"];var Image=function Image2(_ref3){var sx=_ref3.sx,src=_ref3.src,alt=_ref3.alt,imageSx=_ref3.imageSx,errorIcon=_ref3.errorIcon,_ref$showBorder=_ref3.showBorder,showBorder=_ref$showBorder===void 0?true:_ref$showBorder,props=_objectWithoutProperties$1(_ref3,_excluded$k);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),hasError3=_useState2[0],setHasError=_useState2[1];useEffect(function(){setHasError(false);},[src]);var handleImageError=function handleImageError2(){setHasError(true);};return/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$g["image-container"],_defineProperty$2({},styles$g["show-border"],showBorder)),style:_objectSpread2$1({},sx)},props),{},{children:hasError3?!!errorIcon?errorIcon:/* @__PURE__ */jsx$1(InsertPhotoRoundedIcon,{className:styles$g.error}):/* @__PURE__ */jsx$1("img",{src:src,alt:alt||src,className:styles$g.image,style:_objectSpread2$1({},imageSx),onError:handleImageError})}));};var card$1="card-module_card_HG0v6";var header$2="card-module_header_Jtd2-";var title$2="card-module_title_9LIjW";var description="card-module_description_nxqlH";var disabled$5="card-module_disabled_Zdzj7";var active$3="card-module_active_dTNAe";var styles$f={card:card$1,header:header$2,title:title$2,description:description,disabled:disabled$5,active:active$3};var _excluded$j=["sx","icon","title","onClick","children","description","isActive","disabled"];var CardBase=function CardBase2(_ref3){var sx=_ref3.sx,icon2=_ref3.icon,title2=_ref3.title,onClick=_ref3.onClick,children=_ref3.children,description2=_ref3.description,_ref$isActive=_ref3.isActive,isActive=_ref$isActive===void 0?false:_ref$isActive,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,props=_objectWithoutProperties$1(_ref3,_excluded$j);return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({style:sx,onClick:onClick,className:clsx(styles$f.card,_defineProperty$2(_defineProperty$2({},styles$f.disabled,disabled2),styles$f.active,isActive))},props),{},{children:[/* @__PURE__ */jsxs("div",{className:styles$f.header,children:[!!icon2&&icon2,!!title2&&/* @__PURE__ */jsx$1("div",{className:styles$f.title,children:title2})]}),!!description2&&/* @__PURE__ */jsx$1("span",{className:styles$f.description,children:description2}),children]}));};var Card=withDebugHandlers(CardBase,"Card");var _excluded$i=["open","onClose","channels","fitContent","generalEditionTitle","channelEditionTitle","generalEditionDescription","channelEditionDescription","showGeneralEdition","onSelectChannel","titleProps"];var ChannelIcon=function ChannelIcon2(_ref3){var iconUrl=_ref3.iconUrl,name2=_ref3.name;return/* @__PURE__ */jsx$1(Image,{alt:name2,src:iconUrl,showBorder:false,imageSx:{objectFit:"contain"},sx:{height:"36px",maxHeight:"36px",maxWidth:"128px",width:"128px"}});};var ChannelCard=function ChannelCard2(_ref22){var channel=_ref22.channel,onSelect=_ref22.onSelect;var name2=channel.name,iconUrl=channel.iconUrl,disabled2=channel.disabled,tooltipMessage=channel.tooltipMessage;return/* @__PURE__ */jsx$1(WithTooltip,{content:tooltipMessage,shouldShowTooltip:!!tooltipMessage,children:/* @__PURE__ */jsx$1("div",{children:/* @__PURE__ */jsx$1(Card,{disabled:disabled2,description:name2,sx:{width:"200px",height:"88px"},onClick:function onClick(){return!disabled2&&onSelect(channel);},icon:/* @__PURE__ */jsx$1(ChannelIcon,{iconUrl:iconUrl,name:name2})})})});};var productecaStrategy={clientId:1,iconUrl:"https://imagesproducteca.blob.core.windows.net/producteca/isologo-producteca.svg"};var COMPACT_CARD_THRESHOLD=6;var PickChannelModalBase=function PickChannelModalBase2(_ref3){var _channels$length;var open=_ref3.open,onClose=_ref3.onClose,channels=_ref3.channels,fitContent=_ref3.fitContent,generalEditionTitle=_ref3.generalEditionTitle,channelEditionTitle=_ref3.channelEditionTitle,generalEditionDescription=_ref3.generalEditionDescription,channelEditionDescription=_ref3.channelEditionDescription,_ref3$showGeneralEdit=_ref3.showGeneralEdition,showGeneralEdition=_ref3$showGeneralEdit===void 0?false:_ref3$showGeneralEdit,_ref3$onSelectChannel=_ref3.onSelectChannel,onSelectChannel=_ref3$onSelectChannel===void 0?function(){}:_ref3$onSelectChannel,_ref3$titleProps=_ref3.titleProps,titleProps=_ref3$titleProps===void 0?{title:locale("pickChannelModal.title")}:_ref3$titleProps,props=_objectWithoutProperties$1(_ref3,_excluded$i);var cardCount=((_channels$length=channels===null||channels===void 0?void 0:channels.length)!==null&&_channels$length!==void 0?_channels$length:0)+(showGeneralEdition?1:0);var isCompact=!fitContent&&cardCount<=COMPACT_CARD_THRESHOLD;return/* @__PURE__ */jsxs(Modal2,_objectSpread2$1(_objectSpread2$1({open:open,onClose:onClose,size:"md",fitContent:fitContent,className:clsx(styles$k["modal"],_defineProperty$2({},styles$k["compact"],isCompact))},props),{},{children:[/* @__PURE__ */jsx$1(Modal2.Title,_objectSpread2$1({},titleProps)),/* @__PURE__ */jsx$1(Modal2.Body,{className:styles$k["body"],children:/* @__PURE__ */jsxs("div",{className:styles$k["sections"],children:[showGeneralEdition&&/* @__PURE__ */jsxs("section",{className:styles$k["section"],children:[generalEditionTitle&&/* @__PURE__ */jsx$1("h3",{className:styles$k["section__title"],children:generalEditionTitle}),generalEditionDescription&&/* @__PURE__ */jsx$1("p",{className:styles$k["section__description"],children:generalEditionDescription}),/* @__PURE__ */jsx$1("div",{className:styles$k["cards-grid"],children:/* @__PURE__ */jsx$1(ChannelCard,{channel:productecaStrategy,onSelect:onSelectChannel})})]}),/* @__PURE__ */jsxs("section",{className:styles$k["section"],children:[channelEditionTitle&&/* @__PURE__ */jsx$1("h3",{className:styles$k["section__title"],children:channelEditionTitle}),channelEditionDescription&&/* @__PURE__ */jsx$1("p",{className:styles$k["section__description"],children:channelEditionDescription}),/* @__PURE__ */jsx$1("div",{className:styles$k["cards-grid"],children:(channels||[]).map(function(channel){return/* @__PURE__ */jsx$1(ChannelCard,{channel:channel,onSelect:onSelectChannel},channel.clientId);})})]})]})})]}));};var PickChannelModal=withDebugHandlers(PickChannelModalBase,"PickChannelModal");var error$2="fileRow-module_error_51hJa";var card="fileRow-module_card_C0eaS";var compact="fileRow-module_compact_okqD-";var invalid$1="fileRow-module_invalid_lkV3F";var header$1="fileRow-module_header_5rhh6";var name="fileRow-module_name_8uFTt";var remove="fileRow-module_remove_2seMK";var progress="fileRow-module_progress_fOcXN";var percentage="fileRow-module_percentage_rszkL";var styles$e={"file-row":"fileRow-module_file-row_Sm6HQ",error:error$2,card:card,compact:compact,invalid:invalid$1,header:header$1,name:name,remove:remove,progress:progress,percentage:percentage};function getLinearProgressUtilityClass(slot){return generateUtilityClass("MuiLinearProgress",slot);}generateUtilityClasses("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","bar","bar1","bar2"]);var TRANSITION_DURATION=4;var indeterminate1Keyframe=keyframes(_templateObject0||(_templateObject0=_taggedTemplateLiteral2(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])));var indeterminate1Animation=typeof indeterminate1Keyframe!=="string"?css$2(_templateObject1||(_templateObject1=_taggedTemplateLiteral2(["\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "])),indeterminate1Keyframe):null;var indeterminate2Keyframe=keyframes(_templateObject10||(_templateObject10=_taggedTemplateLiteral2(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])));var indeterminate2Animation=typeof indeterminate2Keyframe!=="string"?css$2(_templateObject11||(_templateObject11=_taggedTemplateLiteral2(["\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "])),indeterminate2Keyframe):null;var bufferKeyframe=keyframes(_templateObject12||(_templateObject12=_taggedTemplateLiteral2(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"])));var bufferAnimation=typeof bufferKeyframe!=="string"?css$2(_templateObject13||(_templateObject13=_taggedTemplateLiteral2(["\n animation: "," 3s infinite linear;\n "])),bufferKeyframe):null;var useUtilityClasses=function useUtilityClasses(ownerState){var classes=ownerState.classes,variant=ownerState.variant,color2=ownerState.color;var slots={root:["root","color".concat(capitalize$1(color2)),variant],dashed:["dashed"],bar1:["bar","bar1"],bar2:["bar","bar2",variant==="buffer"&&"color".concat(capitalize$1(color2))]};return composeClasses(slots,getLinearProgressUtilityClass,classes);};var getColorShade=function getColorShade(theme,color2){if(theme.vars){return theme.vars.palette.LinearProgress["".concat(color2,"Bg")];}return theme.palette.mode==="light"?theme.lighten(theme.palette[color2].main,0.62):theme.darken(theme.palette[color2].main,0.5);};var LinearProgressRoot=styled("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:function overridesResolver(props,styles2){var ownerState=props.ownerState;return[styles2.root,styles2["color".concat(capitalize$1(ownerState.color))],styles2[ownerState.variant]];}})(memoTheme(function(_ref118){var theme=_ref118.theme;return{position:"relative",overflow:"hidden",display:"block",height:4,// Fix Safari's bug during composition of different paint.
7006
+ */title:PropTypes.node}:void 0;var OverflowChecker=function OverflowChecker2(_ref3){var children=_ref3.children;var ref=useRef(null);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),showTooltip=_useState2[0],setShowTooltip=_useState2[1];useEffect(function(){var checkOverflow=function checkOverflow2(){if(ref.current){setShowTooltip(ref.current.scrollWidth>ref.current.offsetWidth);}};checkOverflow();window.addEventListener("resize",checkOverflow);return function(){return window.removeEventListener("resize",checkOverflow);};},[children]);return/* @__PURE__ */jsx$1(Fragment$1,{children:children(ref,showTooltip)});};var _excluded$r=["children","content","placement","arrow","maxWidth","trigger","shouldShowTooltip","slotProps"],_excluded2$6=["content","children"];var WithTooltip=function WithTooltip2(_ref3){var children=_ref3.children,content2=_ref3.content,_ref$placement=_ref3.placement,placement=_ref$placement===void 0?"top":_ref$placement,_ref$arrow=_ref3.arrow,arrow2=_ref$arrow===void 0?false:_ref$arrow,_ref$maxWidth=_ref3.maxWidth,maxWidth2=_ref$maxWidth===void 0?"284px":_ref$maxWidth,_ref$trigger=_ref3.trigger,trigger=_ref$trigger===void 0?"hover":_ref$trigger,_ref$shouldShowToolti=_ref3.shouldShowTooltip,shouldShowTooltip=_ref$shouldShowToolti===void 0?true:_ref$shouldShowToolti,customSlotProps=_ref3.slotProps,otherProps=_objectWithoutProperties$1(_ref3,_excluded$r);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),open=_useState2[0],setOpen=_useState2[1];var enhancedChildren=/* @__PURE__ */React__default.cloneElement(children,_objectSpread2$1({style:_objectSpread2$1(_objectSpread2$1({},children.props.style||{}),{},{cursor:"pointer"})},trigger==="click"&&shouldShowTooltip&&{onClick:function onClick(e){if(children.props.onClick){children.props.onClick(e);}setOpen(!open);}}));var tooltipProps=trigger==="click"?{open:shouldShowTooltip?open:false,onClose:function onClose(){return setOpen(false);},disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};var disabledListeners=!shouldShowTooltip?{disableHoverListener:true,disableFocusListener:true,disableTouchListener:true}:{};var customPopperProps=typeof(customSlotProps===null||customSlotProps===void 0?void 0:customSlotProps.popper)==="function"?void 0:customSlotProps===null||customSlotProps===void 0?void 0:customSlotProps.popper;return/* @__PURE__ */jsx$1(Tooltip,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({title:shouldShowTooltip?content2:"",placement:placement,arrow:arrow2,slots:{transition:Zoom},slotProps:{popper:{sx:_objectSpread2$1(_objectSpread2$1({},(customPopperProps===null||customPopperProps===void 0?void 0:customPopperProps.sx)||{}),{},_defineProperty$2(_defineProperty$2(_defineProperty$2(_defineProperty$2(_defineProperty$2(_defineProperty$2({},"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.tooltip),{fontFamily:"var(--primary-font-family)",background:"var(--grey-800)",padding:"9px 9px 8px 12px",fontSize:"var(--body-small)",fontWeight:"400",color:"white !important",borderRadius:"4px",maxWidth:maxWidth2}),"&.".concat(tooltipClasses.popper," .").concat(tooltipClasses.arrow),{color:"var(--grey-800)"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="top"] .').concat(tooltipClasses.tooltip),{marginBottom:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="bottom"] .').concat(tooltipClasses.tooltip),{marginTop:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="left"] .').concat(tooltipClasses.tooltip),{marginRight:"8px"}),"&.".concat(tooltipClasses.popper,'[data-popper-placement*="right"] .').concat(tooltipClasses.tooltip),{marginLeft:"8px"}))}}},tooltipProps),disabledListeners),otherProps),{},{children:enhancedChildren}));};var WithOverflowTooltip=function WithOverflowTooltip2(_ref22){var content2=_ref22.content,_children=_ref22.children,tooltipProps=_objectWithoutProperties$1(_ref22,_excluded2$6);return/* @__PURE__ */jsx$1(OverflowChecker,{children:function children(ref,showTooltip){var childrenWithRef=/* @__PURE__ */React__default.cloneElement(_children,{ref:ref});return showTooltip&&content2?/* @__PURE__ */jsx$1(WithTooltip,_objectSpread2$1(_objectSpread2$1({content:content2},tooltipProps),{},{children:childrenWithRef})):childrenWithRef;}});};var styles$n={"help-link":"helpArticleLink-module_help-link_Tne5b"};var _excluded$q=["href","tooltip"];var HelpArticleLink=/* @__PURE__ */React__default.memo(function(_ref3){var href=_ref3.href,tooltip=_ref3.tooltip,props=_objectWithoutProperties$1(_ref3,_excluded$q);if(!href)return null;return/* @__PURE__ */jsx$1(WithTooltip,{content:tooltip,placement:"left",children:/* @__PURE__ */jsx$1(Link,_objectSpread2$1(_objectSpread2$1({href:href,target:"_blank","aria-label":tooltip,className:styles$n["help-link"]},props),{},{children:/* @__PURE__ */jsx$1(CustomIcon,{size:"8",color:getColor("primary","500"),children:/* @__PURE__ */jsx$1(AutoStoriesIcon,{"data-testid":"AutoStoriesIcon"})})}))});});HelpArticleLink.displayName="HelpArticleLink";var styles$m={"maintenance-wrapper":"maintenance-module_maintenance-wrapper_21CSu","maintenance-content":"maintenance-module_maintenance-content_csxiz","maintenance-icon":"maintenance-module_maintenance-icon_4Jqjc","maintenance-title":"maintenance-module_maintenance-title_6ALRO","maintenance-text":"maintenance-module_maintenance-text_P-UPr"};var _excluded$p=["title","description","subtitle"];var Maintenance=function Maintenance2(_ref3){var _ref$title=_ref3.title,title2=_ref$title===void 0?locale("maintenance.title"):_ref$title,_ref$description=_ref3.description,description2=_ref$description===void 0?locale("maintenance.description"):_ref$description,_ref$subtitle=_ref3.subtitle,subtitle2=_ref$subtitle===void 0?locale("maintenance.subtitle"):_ref$subtitle,props=_objectWithoutProperties$1(_ref3,_excluded$p);return/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({className:styles$m["maintenance-wrapper"]},props),{},{children:/* @__PURE__ */jsxs("div",{className:styles$m["maintenance-content"],children:[/* @__PURE__ */jsx$1("div",{className:styles$m["maintenance-icon"],children:/* @__PURE__ */jsx$1(MaintenanceIcon,{})}),/* @__PURE__ */jsx$1("h1",{className:styles$m["maintenance-title"],children:title2}),/* @__PURE__ */jsxs("div",{className:styles$m["maintenance-text"],children:[/* @__PURE__ */jsx$1("p",{children:description2}),/* @__PURE__ */jsx$1("p",{children:subtitle2})]})]})}));};var title$4="generatingState-module_title_WfWVT";var highlight="generatingState-module_highlight_L1iz8";var description$1="generatingState-module_description_htMlf";var styles$l={"generating-state-container":"generatingState-module_generating-state-container_XNq1W","text-container":"generatingState-module_text-container_PHvh6","spinner-container":"generatingState-module_spinner-container_D21cF",title:title$4,highlight:highlight,description:description$1};var _excluded$o=["highlight","icon","text","description"];var DefaultIcon$1=/* @__PURE__ */jsx$1(GeneratingStateIcon,{});var GeneratingState=function GeneratingState2(_ref3){var highlight2=_ref3.highlight,_ref$icon=_ref3.icon,icon2=_ref$icon===void 0?DefaultIcon$1:_ref$icon,_ref$text=_ref3.text,text2=_ref$text===void 0?locale("generatingState.text"):_ref$text,_ref$description=_ref3.description,description2=_ref$description===void 0?locale("generatingState.description"):_ref$description,props=_objectWithoutProperties$1(_ref3,_excluded$o);var title2=highlight2?/* @__PURE__ */jsxs(Fragment$1,{children:[text2," ",/* @__PURE__ */jsx$1("strong",{className:styles$l.highlight,children:highlight2})]}):text2;return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:styles$l["generating-state-container"],role:"status"},props),{},{children:[icon2,/* @__PURE__ */jsxs("div",{className:styles$l["text-container"],children:[/* @__PURE__ */jsx$1("p",{className:styles$l.title,children:title2}),/* @__PURE__ */jsx$1("p",{className:styles$l.description,children:description2})]}),/* @__PURE__ */jsx$1("div",{className:styles$l["spinner-container"],children:/* @__PURE__ */jsx$1(Spinner,{size:"sm"})})]}));};var modal$1="pickChannelModal-module_modal_YGDD7";var body="pickChannelModal-module_body_X7L60";var compact$1="pickChannelModal-module_compact_hD7b-";var sections="pickChannelModal-module_sections_VGJ6N";var section="pickChannelModal-module_section_BklUc";var section__title="pickChannelModal-module_section__title_fBRgI";var section__description="pickChannelModal-module_section__description_Pgidd";var styles$k={modal:modal$1,body:body,compact:compact$1,sections:sections,section:section,section__title:section__title,section__description:section__description,"cards-grid":"pickChannelModal-module_cards-grid_kLH1X"};var overlay="modal-module_overlay_tuS3y";var modal="modal-module_modal_pwYxH";var sm$3="modal-module_sm_yWHmZ";var md$1="modal-module_md_rV0w9";var lg$3="modal-module_lg_sy6Md";var xl="modal-module_xl_UbiWN";var styles$j={overlay:overlay,"modal-backdrop-fade-in":"modal-module_modal-backdrop-fade-in_ipnEv",modal:modal,"modal-enter":"modal-module_modal-enter_uufyU",sm:sm$3,md:md$1,lg:lg$3,xl:xl,"fit-content":"modal-module_fit-content_CBdg6"};var _excluded$n=["open","onClose","children","className","size","isLoading","fitContent","ariaLabel"];var ModalContext=/* @__PURE__ */createContext({isLoading:false});var ModalBase=function ModalBase2(_ref3){var open=_ref3.open,onClose=_ref3.onClose,children=_ref3.children,className=_ref3.className,_ref$size=_ref3.size,size2=_ref$size===void 0?"md":_ref$size,_ref$isLoading=_ref3.isLoading,isLoading=_ref$isLoading===void 0?false:_ref$isLoading,_ref$fitContent=_ref3.fitContent,fitContent=_ref$fitContent===void 0?false:_ref$fitContent,ariaLabel=_ref3.ariaLabel,props=_objectWithoutProperties$1(_ref3,_excluded$n);return/* @__PURE__ */jsx$1(Modal$2,{open:open,onClose:onClose,className:styles$j["overlay"],children:/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({role:"dialog","aria-modal":"true","aria-label":ariaLabel||locale("a11y.dialog"),"aria-busy":isLoading||void 0,className:clsx(styles$j["modal"],styles$j[size2],className,_defineProperty$2({},styles$j["fit-content"],fitContent))},props),{},{children:/* @__PURE__ */jsx$1(ModalContext.Provider,{value:{isLoading:isLoading},children:children})}))});};var Modal$1=withDebugHandlers(ModalBase,"Modal");var icon$1="modalTitle-module_icon_jKB-M";var title$3="modalTitle-module_title_U2a2X";var subtitle="modalTitle-module_subtitle_DTIpI";var styles$i={"title-modal":"modalTitle-module_title-modal_Q-5aj","title-with-icon":"modalTitle-module_title-with-icon_qaofY",icon:icon$1,"title-group":"modalTitle-module_title-group_glQK9",title:title$3,subtitle:subtitle};var _excluded$m=["icon","title","subtitle","helpArticleUrl","helpTooltip"];var ModalTitle=function ModalTitle2(_ref3){var icon2=_ref3.icon,title2=_ref3.title,subtitle2=_ref3.subtitle,helpArticleUrl=_ref3.helpArticleUrl,_ref$helpTooltip=_ref3.helpTooltip,helpTooltip=_ref$helpTooltip===void 0?locale("modalTitle.instructive"):_ref$helpTooltip,props=_objectWithoutProperties$1(_ref3,_excluded$m);return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:styles$i["title-modal"]},props),{},{children:[/* @__PURE__ */jsxs("div",{className:styles$i["title-with-icon"],children:[icon2&&/* @__PURE__ */jsx$1("span",{className:styles$i["icon"],"aria-hidden":"true",children:icon2}),/* @__PURE__ */jsxs("div",{className:styles$i["title-group"],children:[/* @__PURE__ */jsx$1("span",{className:styles$i["title"],children:title2}),subtitle2&&/* @__PURE__ */jsx$1("div",{className:styles$i["subtitle"],children:subtitle2})]})]}),/* @__PURE__ */jsx$1(HelpArticleLink,{href:helpArticleUrl,tooltip:helpTooltip})]}));};var styles$h={"modal-body":"modalBody-module_modal-body_EvgIj","modal-body--loading":"modalBody-module_modal-body--loading_SG8wG"};var _excluded$l=["children","className"];var ModalBody=function ModalBody2(_ref3){var children=_ref3.children,className=_ref3.className,props=_objectWithoutProperties$1(_ref3,_excluded$l);var _useContext=useContext(ModalContext),isLoading=_useContext.isLoading;if(isLoading){return/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$h["modal-body"],styles$h["modal-body--loading"],className)},props),{},{children:/* @__PURE__ */jsx$1(Spinner,{size:"lg"})}));}return/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$h["modal-body"],className)},props),{},{children:children}));};var ModalFooter=function ModalFooter2(props){return/* @__PURE__ */jsx$1(ActionBar,_objectSpread2$1({variant:"modal"},props));};var Modal2=Modal$1;Modal2.Title=ModalTitle;Modal2.Body=ModalBody;Modal2.Footer=ModalFooter;var InsertPhotoRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.9 13.98l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.01.8-.4.8H6.02c-.42 0-.65-.48-.39-.81L8.12 14c.19-.26.57-.27.78-.02"}),"InsertPhotoRounded");var image="image-module_image_y02P7";var error$3="image-module_error_QtQOy";var styles$g={"image-container":"image-module_image-container_ZhlhW","show-border":"image-module_show-border_LV5sz",image:image,error:error$3};var _excluded$k=["sx","src","alt","imageSx","errorIcon","showBorder"];var Image=function Image2(_ref3){var sx=_ref3.sx,src=_ref3.src,alt=_ref3.alt,imageSx=_ref3.imageSx,errorIcon=_ref3.errorIcon,_ref$showBorder=_ref3.showBorder,showBorder=_ref$showBorder===void 0?true:_ref$showBorder,props=_objectWithoutProperties$1(_ref3,_excluded$k);var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),hasError3=_useState2[0],setHasError=_useState2[1];useEffect(function(){setHasError(false);},[src]);var handleImageError=function handleImageError2(){setHasError(true);};return/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$g["image-container"],_defineProperty$2({},styles$g["show-border"],showBorder)),style:_objectSpread2$1({},sx)},props),{},{children:hasError3?!!errorIcon?errorIcon:/* @__PURE__ */jsx$1(InsertPhotoRoundedIcon,{className:styles$g.error}):/* @__PURE__ */jsx$1("img",{src:src,alt:alt||src,className:styles$g.image,style:_objectSpread2$1({},imageSx),onError:handleImageError})}));};var card$1="card-module_card_HG0v6";var header$2="card-module_header_Jtd2-";var title$2="card-module_title_9LIjW";var description="card-module_description_nxqlH";var disabled$5="card-module_disabled_Zdzj7";var active$3="card-module_active_dTNAe";var styles$f={card:card$1,header:header$2,title:title$2,description:description,disabled:disabled$5,active:active$3};var _excluded$j=["sx","icon","title","onClick","children","description","isActive","disabled"];var CardBase=function CardBase2(_ref3){var sx=_ref3.sx,icon2=_ref3.icon,title2=_ref3.title,onClick=_ref3.onClick,children=_ref3.children,description2=_ref3.description,_ref$isActive=_ref3.isActive,isActive=_ref$isActive===void 0?false:_ref$isActive,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,props=_objectWithoutProperties$1(_ref3,_excluded$j);return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({style:sx,onClick:onClick,className:clsx(styles$f.card,_defineProperty$2(_defineProperty$2({},styles$f.disabled,disabled2),styles$f.active,isActive))},props),{},{children:[/* @__PURE__ */jsxs("div",{className:styles$f.header,children:[!!icon2&&icon2,!!title2&&/* @__PURE__ */jsx$1("div",{className:styles$f.title,children:title2})]}),!!description2&&/* @__PURE__ */jsx$1("span",{className:styles$f.description,children:description2}),children]}));};var Card=withDebugHandlers(CardBase,"Card");var _excluded$i=["open","onClose","channels","fitContent","generalEditionTitle","channelEditionTitle","generalEditionDescription","channelEditionDescription","showGeneralEdition","onSelectChannel","titleProps"];var ChannelIcon=function ChannelIcon2(_ref3){var iconUrl=_ref3.iconUrl,name2=_ref3.name;return/* @__PURE__ */jsx$1(Image,{alt:name2,src:iconUrl,showBorder:false,imageSx:{objectFit:"contain"},sx:{height:"36px",maxHeight:"36px",maxWidth:"128px",width:"128px"}});};var ChannelCard=function ChannelCard2(_ref22){var channel=_ref22.channel,onSelect=_ref22.onSelect;var name2=channel.name,iconUrl=channel.iconUrl,disabled2=channel.disabled,tooltipMessage=channel.tooltipMessage;var _splitDataProps=splitDataProps(channel),_splitDataProps2=_slicedToArray$1(_splitDataProps,1),dataProps=_splitDataProps2[0];return/* @__PURE__ */jsx$1(WithTooltip,{content:tooltipMessage,shouldShowTooltip:!!tooltipMessage,children:/* @__PURE__ */jsx$1("div",{children:/* @__PURE__ */jsx$1(Card,_objectSpread2$1({disabled:disabled2,description:name2,sx:{width:"200px",height:"88px"},onClick:function onClick(){return!disabled2&&onSelect(channel);},icon:/* @__PURE__ */jsx$1(ChannelIcon,{iconUrl:iconUrl,name:name2})},dataProps))})});};var productecaStrategy={clientId:1,iconUrl:"https://imagesproducteca.blob.core.windows.net/producteca/isologo-producteca.svg"};var COMPACT_CARD_THRESHOLD=6;var PickChannelModalBase=function PickChannelModalBase2(_ref3){var _channels$length;var open=_ref3.open,onClose=_ref3.onClose,channels=_ref3.channels,fitContent=_ref3.fitContent,generalEditionTitle=_ref3.generalEditionTitle,channelEditionTitle=_ref3.channelEditionTitle,generalEditionDescription=_ref3.generalEditionDescription,channelEditionDescription=_ref3.channelEditionDescription,_ref3$showGeneralEdit=_ref3.showGeneralEdition,showGeneralEdition=_ref3$showGeneralEdit===void 0?false:_ref3$showGeneralEdit,_ref3$onSelectChannel=_ref3.onSelectChannel,onSelectChannel=_ref3$onSelectChannel===void 0?function(){}:_ref3$onSelectChannel,_ref3$titleProps=_ref3.titleProps,titleProps=_ref3$titleProps===void 0?{title:locale("pickChannelModal.title")}:_ref3$titleProps,props=_objectWithoutProperties$1(_ref3,_excluded$i);var cardCount=((_channels$length=channels===null||channels===void 0?void 0:channels.length)!==null&&_channels$length!==void 0?_channels$length:0)+(showGeneralEdition?1:0);var isCompact=!fitContent&&cardCount<=COMPACT_CARD_THRESHOLD;return/* @__PURE__ */jsxs(Modal2,_objectSpread2$1(_objectSpread2$1({open:open,onClose:onClose,size:"md",fitContent:fitContent,className:clsx(styles$k["modal"],_defineProperty$2({},styles$k["compact"],isCompact))},props),{},{children:[/* @__PURE__ */jsx$1(Modal2.Title,_objectSpread2$1({},titleProps)),/* @__PURE__ */jsx$1(Modal2.Body,{className:styles$k["body"],children:/* @__PURE__ */jsxs("div",{className:styles$k["sections"],children:[showGeneralEdition&&/* @__PURE__ */jsxs("section",{className:styles$k["section"],children:[generalEditionTitle&&/* @__PURE__ */jsx$1("h3",{className:styles$k["section__title"],children:generalEditionTitle}),generalEditionDescription&&/* @__PURE__ */jsx$1("p",{className:styles$k["section__description"],children:generalEditionDescription}),/* @__PURE__ */jsx$1("div",{className:styles$k["cards-grid"],children:/* @__PURE__ */jsx$1(ChannelCard,{channel:productecaStrategy,onSelect:onSelectChannel})})]}),/* @__PURE__ */jsxs("section",{className:styles$k["section"],children:[channelEditionTitle&&/* @__PURE__ */jsx$1("h3",{className:styles$k["section__title"],children:channelEditionTitle}),channelEditionDescription&&/* @__PURE__ */jsx$1("p",{className:styles$k["section__description"],children:channelEditionDescription}),/* @__PURE__ */jsx$1("div",{className:styles$k["cards-grid"],children:(channels||[]).map(function(channel){return/* @__PURE__ */jsx$1(ChannelCard,{channel:channel,onSelect:onSelectChannel},channel.clientId);})})]})]})})]}));};var PickChannelModal=withDebugHandlers(PickChannelModalBase,"PickChannelModal");var error$2="fileRow-module_error_51hJa";var card="fileRow-module_card_C0eaS";var compact="fileRow-module_compact_okqD-";var invalid$1="fileRow-module_invalid_lkV3F";var header$1="fileRow-module_header_5rhh6";var name="fileRow-module_name_8uFTt";var remove="fileRow-module_remove_2seMK";var progress="fileRow-module_progress_fOcXN";var percentage="fileRow-module_percentage_rszkL";var styles$e={"file-row":"fileRow-module_file-row_Sm6HQ",error:error$2,card:card,compact:compact,invalid:invalid$1,header:header$1,name:name,remove:remove,progress:progress,percentage:percentage};function getLinearProgressUtilityClass(slot){return generateUtilityClass("MuiLinearProgress",slot);}generateUtilityClasses("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","bar","bar1","bar2"]);var TRANSITION_DURATION=4;var indeterminate1Keyframe=keyframes(_templateObject0||(_templateObject0=_taggedTemplateLiteral2(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])));var indeterminate1Animation=typeof indeterminate1Keyframe!=="string"?css$2(_templateObject1||(_templateObject1=_taggedTemplateLiteral2(["\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "])),indeterminate1Keyframe):null;var indeterminate2Keyframe=keyframes(_templateObject10||(_templateObject10=_taggedTemplateLiteral2(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])));var indeterminate2Animation=typeof indeterminate2Keyframe!=="string"?css$2(_templateObject11||(_templateObject11=_taggedTemplateLiteral2(["\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "])),indeterminate2Keyframe):null;var bufferKeyframe=keyframes(_templateObject12||(_templateObject12=_taggedTemplateLiteral2(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"])));var bufferAnimation=typeof bufferKeyframe!=="string"?css$2(_templateObject13||(_templateObject13=_taggedTemplateLiteral2(["\n animation: "," 3s infinite linear;\n "])),bufferKeyframe):null;var useUtilityClasses=function useUtilityClasses(ownerState){var classes=ownerState.classes,variant=ownerState.variant,color2=ownerState.color;var slots={root:["root","color".concat(capitalize$1(color2)),variant],dashed:["dashed"],bar1:["bar","bar1"],bar2:["bar","bar2",variant==="buffer"&&"color".concat(capitalize$1(color2))]};return composeClasses(slots,getLinearProgressUtilityClass,classes);};var getColorShade=function getColorShade(theme,color2){if(theme.vars){return theme.vars.palette.LinearProgress["".concat(color2,"Bg")];}return theme.palette.mode==="light"?theme.lighten(theme.palette[color2].main,0.62):theme.darken(theme.palette[color2].main,0.5);};var LinearProgressRoot=styled("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:function overridesResolver(props,styles2){var ownerState=props.ownerState;return[styles2.root,styles2["color".concat(capitalize$1(ownerState.color))],styles2[ownerState.variant]];}})(memoTheme(function(_ref118){var theme=_ref118.theme;return{position:"relative",overflow:"hidden",display:"block",height:4,// Fix Safari's bug during composition of different paint.
7007
7007
  zIndex:0,"@media print":{colorAdjust:"exact"},variants:[].concat(_toConsumableArray2(Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(function(_ref128){var _ref129=_slicedToArray2(_ref128,1),color2=_ref129[0];return{props:{color:color2},style:{backgroundColor:getColorShade(theme,color2)}};})),[{props:function props(_ref130){var ownerState=_ref130.ownerState;return ownerState.color==="inherit"&&ownerState.variant!=="buffer";},style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:0.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}])};}));var LinearProgressDashed=styled("span",{name:"MuiLinearProgress",slot:"Dashed"})(memoTheme(function(_ref140){var theme=_ref140.theme;return{position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:0.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}}].concat(_toConsumableArray2(Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(function(_ref150){var _ref158=_slicedToArray2(_ref150,1),color2=_ref158[0];var backgroundColor2=getColorShade(theme,color2);return{props:{color:color2},style:{backgroundImage:"radial-gradient(".concat(backgroundColor2," 0%, ").concat(backgroundColor2," 16%, transparent 42%)")}};})))};}),bufferAnimation||{// At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
7008
7008
  animation:"".concat(bufferKeyframe," 3s infinite linear")});var LinearProgressBar1=styled("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:function overridesResolver(props,styles2){return[styles2.bar,styles2.bar1];}})(memoTheme(function(_ref159){var theme=_ref159.theme;return{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}}].concat(_toConsumableArray2(Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(function(_ref180){var _ref182=_slicedToArray2(_ref180,1),color2=_ref182[0];return{props:{color:color2},style:{backgroundColor:(theme.vars||theme).palette[color2].main}};})),[{props:{variant:"determinate"},style:{transition:"transform .".concat(TRANSITION_DURATION,"s linear")}},{props:{variant:"buffer"},style:{zIndex:1,transition:"transform .".concat(TRANSITION_DURATION,"s linear")}},{props:function props(_ref188){var ownerState=_ref188.ownerState;return ownerState.variant==="indeterminate"||ownerState.variant==="query";},style:{width:"auto"}},{props:function props(_ref192){var ownerState=_ref192.ownerState;return ownerState.variant==="indeterminate"||ownerState.variant==="query";},style:indeterminate1Animation||{animation:"".concat(indeterminate1Keyframe," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite")}}])};}));var LinearProgressBar2=styled("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:function overridesResolver(props,styles2){return[styles2.bar,styles2.bar2];}})(memoTheme(function(_ref193){var theme=_ref193.theme;return{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[].concat(_toConsumableArray2(Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(function(_ref195){var _ref196=_slicedToArray2(_ref195,1),color2=_ref196[0];return{props:{color:color2},style:{"--LinearProgressBar2-barColor":(theme.vars||theme).palette[color2].main}};})),[{props:function props(_ref222){var ownerState=_ref222.ownerState;return ownerState.variant!=="buffer"&&ownerState.color!=="inherit";},style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:function props(_ref233){var ownerState=_ref233.ownerState;return ownerState.variant!=="buffer"&&ownerState.color==="inherit";},style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:0.3}}],_toConsumableArray2(Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(function(_ref234){var _ref250=_slicedToArray2(_ref234,1),color2=_ref250[0];return{props:{color:color2,variant:"buffer"},style:{backgroundColor:getColorShade(theme,color2),transition:"transform .".concat(TRANSITION_DURATION,"s linear")}};})),[{props:function props(_ref254){var ownerState=_ref254.ownerState;return ownerState.variant==="indeterminate"||ownerState.variant==="query";},style:{width:"auto"}},{props:function props(_ref255){var ownerState=_ref255.ownerState;return ownerState.variant==="indeterminate"||ownerState.variant==="query";},style:indeterminate2Animation||{animation:"".concat(indeterminate2Keyframe," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite")}}])};}));var LinearProgress=/* @__PURE__ */React.forwardRef(function LinearProgress2(inProps,ref){var props=useDefaultProps({props:inProps,name:"MuiLinearProgress"});var _a=props,className=_a.className,_a$color7=_a.color,color2=_a$color7===void 0?"primary":_a$color7,maxProp=_a.max,minProp=_a.min,value=_a.value,valueBuffer=_a.valueBuffer,_a$variant12=_a.variant,variant=_a$variant12===void 0?"indeterminate":_a$variant12,other=__objRest(_a,["className","color","max","min","value","valueBuffer","variant"]);var ownerState=__spreadProps(__spreadValues({},props),{color:color2,variant:variant});if(process.env.NODE_ENV!=="production"){if(["indeterminate","query"].includes(variant)&&(minProp!==void 0||maxProp!==void 0)){console.warn("MUI: You have provided the `min` or `max` props with an 'indeterminate' or 'query' variant. These props will have no effect.");}}var min2=minProp!=null?minProp:0;var max2=maxProp!=null?maxProp:100;var classes=useUtilityClasses(ownerState);var isRtl=useRtl();var rootProps={};var inlineStyles={bar1:{},bar2:{}};if(variant==="determinate"||variant==="buffer"){if(value!==void 0){if(process.env.NODE_ENV!=="production"){if(value<min2||value>max2||min2>=max2){console.error("MUI: The min, max, and value props in LinearProgress should be numbers where min < max and min <= value <= max. Received min=".concat(min2,", max=").concat(max2,", value=").concat(value,"."));}}var range=max2-min2;var transform=(value-min2)/range*100-100;if(isRtl){transform=-transform;}inlineStyles.bar1.transform=range>0?"translateX(".concat(transform,"%)"):"translateX(-100%)";rootProps["aria-valuenow"]=value;rootProps["aria-valuemin"]=min2;rootProps["aria-valuemax"]=max2;}else if(process.env.NODE_ENV!=="production"){console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress.");}}if(variant==="buffer"){if(valueBuffer!==void 0){if(process.env.NODE_ENV!=="production"){if(valueBuffer<min2||valueBuffer>max2||valueBuffer<value||min2>=max2){console.error("MUI: The min, max, value, and valueBuffer props in LinearProgress should be numbers where min < max and min <= value <= valueBuffer <= max. Received min=".concat(min2,", max=").concat(max2,", value=").concat(value,", valueBuffer=").concat(valueBuffer,"."));}}var _range=max2-min2;var _transform=(valueBuffer-min2)/_range*100-100;if(isRtl){_transform=-_transform;}inlineStyles.bar2.transform=_range>0?"translateX(".concat(_transform,"%)"):"translateX(-100%)";}else if(process.env.NODE_ENV!=="production"){console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");}}return/* @__PURE__ */jsxs(LinearProgressRoot,__spreadProps(__spreadValues(__spreadProps(__spreadValues({className:clsx(classes.root,className),ownerState:ownerState,role:"progressbar"},rootProps),{ref:ref}),other),{children:[variant==="buffer"?/* @__PURE__ */jsx$1(LinearProgressDashed,{className:classes.dashed,ownerState:ownerState}):null,/* @__PURE__ */jsx$1(LinearProgressBar1,{className:classes.bar1,ownerState:ownerState,style:inlineStyles.bar1}),variant==="determinate"?null:/* @__PURE__ */jsx$1(LinearProgressBar2,{className:classes.bar2,ownerState:ownerState,style:inlineStyles.bar2})]}));});process.env.NODE_ENV!=="production"?LinearProgress.propTypes={// ┌────────────────────────────── Warning ──────────────────────────────┐
7009
7009
  // │ These PropTypes are generated from the TypeScript type definitions. │
@@ -7161,4 +7161,4 @@ droppable:false};}return{draggable:(_localDisabled$dragga=localDisabled==null?vo
7161
7161
  * Either a string to use a HTML element or a component.
7162
7162
  */component:PropTypes.elementType,/**
7163
7163
  * The system prop that allows defining system overrides as well as additional CSS styles.
7164
- */sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object])}:void 0;var DragIndicator=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator");var DraggableRow=/* @__PURE__ */React__default.memo(function(_ref3){var item2=_ref3.item,isAdding=_ref3.isAdding,onRemove=_ref3.onRemove,canRemove=_ref3.canRemove,_ref$showRemoveAction=_ref3.showRemoveAction,showRemoveAction=_ref$showRemoveAction===void 0?true:_ref$showRemoveAction,component=_ref3.component,isRemoving=_ref3.isRemoving,onSelectValue=_ref3.onSelectValue,componentProps=_ref3.componentProps;var resolvedDisabled=Boolean(componentProps===null||componentProps===void 0?void 0:componentProps.disabled);var canRemoveItem=canRemove?canRemove(item2):true;var _useSortable=useSortable({id:item2.id,disabled:resolvedDisabled}),attributes=_useSortable.attributes,listeners=_useSortable.listeners,setActivatorNodeRef=_useSortable.setActivatorNodeRef,setNodeRef=_useSortable.setNodeRef,transform=_useSortable.transform,transition=_useSortable.transition,isDragging=_useSortable.isDragging;var _handleRemove=useCallback(function(){if(!canRemoveItem){return;}onRemove(item2.id);},[canRemoveItem,item2.id,onRemove]);var Component2=component;return/* @__PURE__ */jsxs(Paper,{ref:setNodeRef,className:clsx(styles$3["draggable-list--item"],_defineProperty$2(_defineProperty$2(_defineProperty$2({},styles$3["draggable-list--item--dragging"],isDragging),styles$3["draggable-list--item--adding"],isAdding),styles$3["draggable-list--item--removing"],isRemoving)),elevation:0,style:{transform:CSS$1.Transform.toString(transform),transition:transition},children:[/* @__PURE__ */jsx$1("span",_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({ref:setActivatorNodeRef,"aria-label":locale("a11y.reorder")},attributes),listeners),{},{children:/* @__PURE__ */jsx$1(CustomIcon,{size:"16",children:/* @__PURE__ */jsx$1(DragIndicator,{})})})),Component2?/* @__PURE__ */jsx$1(Component2,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},componentProps),item2),{},{item:item2,disabled:resolvedDisabled,onItemChange:function onItemChange(value){return onSelectValue(item2.id,value);}})):null,showRemoveAction&&/* @__PURE__ */jsx$1(CustomIcon,{size:"8",role:"button","aria-label":locale("a11y.remove"),onClick:_handleRemove,disabled:resolvedDisabled||!canRemoveItem,color:getColor("primary","500"),children:/* @__PURE__ */jsx$1(TrashIcon,{})})]});});DraggableRow.displayName="DraggableRow";var _excluded$5=["label","addLabel","onChange","canRemove","showRemoveAction","itemComponent","value","componentProps","input"];var ITEM_ID_PREFIX="draggable-item";var _isStringArray=function _isStringArray2(value){return Array.isArray(value)&&(value.length===0||typeof value[0]==="string");};var _normalizeToItems=function _normalizeToItems2(value){if(!Array.isArray(value)){return[];}if(_isStringArray(value)){return value.map(function(val,index2){return{id:"".concat(ITEM_ID_PREFIX,"-string-").concat(index2,"-").concat(val),value:val};});}return value;};var _buildItem=function _buildItem2(currentLength){return{id:"".concat(ITEM_ID_PREFIX,"-").concat(currentLength,"-").concat(Date.now()),value:""};};var DraggableListBase=function DraggableListBase2(_ref3){var _ref22,_input$value;var label2=_ref3.label,addLabel=_ref3.addLabel,_onChange=_ref3.onChange,canRemove=_ref3.canRemove,_ref$showRemoveAction=_ref3.showRemoveAction,showRemoveAction=_ref$showRemoveAction===void 0?true:_ref$showRemoveAction,itemComponent=_ref3.itemComponent,_ref$value=_ref3.value,controlledItems=_ref$value===void 0?[]:_ref$value,componentProps=_ref3.componentProps,input2=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded$5);if(!itemComponent){return null;}var rawValue=(_ref22=(_input$value=input2===null||input2===void 0?void 0:input2.value)!==null&&_input$value!==void 0?_input$value:controlledItems)!==null&&_ref22!==void 0?_ref22:[];var resolvedItems=useMemo(function(){return _normalizeToItems(rawValue);},[rawValue]);var outputFormatRef=useRef(_isStringArray(rawValue)?"strings":"objects");var _useState=useState(resolvedItems),_useState2=_slicedToArray$1(_useState,2),items=_useState2[0],setItems=_useState2[1];var _useState3=useState(/* @__PURE__ */new Set()),_useState4=_slicedToArray$1(_useState3,2),addingItems=_useState4[0],setAddingItems=_useState4[1];var _useState5=useState(/* @__PURE__ */new Set()),_useState6=_slicedToArray$1(_useState5,2),removingItems=_useState6[0],setRemovingItems=_useState6[1];var sensors=useSensors(useSensor(PointerSensor));var itemIds=useMemo(function(){return items.map(function(item2){return item2.id;});},[items]);useEffect(function(){outputFormatRef.current=_isStringArray(rawValue)?"strings":"objects";setItems(resolvedItems);},[resolvedItems,rawValue]);var _valueToOutput=useCallback(function(nextItems){return outputFormatRef.current==="strings"?nextItems.map(function(item2){var _item$value;return(_item$value=item2.value)!==null&&_item$value!==void 0?_item$value:"";}):nextItems;},[]);var _useReduxFormField=useReduxFormField({input:input2,onChange:function onChange2(nextItems){var _ref32,_input$name;if(!_onChange){return;}var value=_valueToOutput(nextItems);var resolvedName=(_ref32=(_input$name=input2===null||input2===void 0?void 0:input2.name)!==null&&_input$name!==void 0?_input$name:componentProps===null||componentProps===void 0?void 0:componentProps.name)!==null&&_ref32!==void 0?_ref32:"draggableList";var event={target:{name:resolvedName,value:value}};_onChange(event);},transformValue:function transformValue(nextItems){return _valueToOutput(nextItems);}}),_handleItemsChange=_useReduxFormField.handleChange;var _syncItems=useCallback(function(updater){setItems(function(prev2){var next2=typeof updater==="function"?updater(prev2):updater;_handleItemsChange(next2);return next2;});},[_handleItemsChange]);var _handleRemove=useCallback(function(id){setRemovingItems(function(prev2){return new Set(prev2).add(id);});setTimeout(function(){_syncItems(function(prev2){return prev2.filter(function(item2){return item2.id!==id;});});setRemovingItems(function(prev2){var next2=new Set(prev2);next2.delete(id);return next2;});},300);},[_syncItems]);var _handleSelectValue=useCallback(function(id,value){_syncItems(function(prev2){return prev2.map(function(item2){return item2.id===id?_objectSpread2$1(_objectSpread2$1({},item2),{},{value:value}):item2;});});},[_syncItems]);var _handleAdd=useCallback(function(){_syncItems(function(prev2){var newItem=_buildItem(prev2.length);setAddingItems(function(adding){return new Set(adding).add(newItem.id);});setTimeout(function(){setAddingItems(function(adding){var next2=new Set(adding);next2.delete(newItem.id);return next2;});},300);return[].concat(_toConsumableArray$1(prev2),[newItem]);});},[_syncItems]);var _handleDragEnd=useCallback(function(event){var active2=event.active,over=event.over;if(!over||active2.id===over.id)return;_syncItems(function(prev2){var oldIndex=prev2.findIndex(function(item2){return item2.id===active2.id;});var newIndex=prev2.findIndex(function(item2){return item2.id===over.id;});if(oldIndex===-1||newIndex===-1){return prev2;}return arrayMove(prev2,oldIndex,newIndex);});},[_syncItems]);return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$3["draggable-list"])},props),{},{children:[label2&&/* @__PURE__ */jsx$1("div",{className:styles$3["draggable-list--label"],children:label2}),/* @__PURE__ */jsx$1(DndContext,{sensors:sensors,collisionDetection:closestCenter,onDragEnd:_handleDragEnd,children:/* @__PURE__ */jsx$1(SortableContext,{items:itemIds,strategy:verticalListSortingStrategy,children:items.map(function(item2){return/* @__PURE__ */jsx$1(DraggableRow,{item:item2,component:itemComponent,canRemove:canRemove,showRemoveAction:showRemoveAction,onRemove:_handleRemove,componentProps:componentProps,onSelectValue:_handleSelectValue,isAdding:addingItems.has(item2.id),isRemoving:removingItems.has(item2.id)},item2.id);})})}),/* @__PURE__ */jsx$1("div",{className:clsx(styles$3["draggable-list--add-button"]),children:/* @__PURE__ */jsx$1(Link,{href:"#",size:"sm",onClick:function onClick(event){event.preventDefault();_handleAdd();},children:addLabel||locale("addPlus")})})]}));};var DraggableList=withDebugHandlers(DraggableListBase,"DraggableList");var dropzone="dropzone-module_dropzone_s6uiA";var label$1="dropzone-module_label_LGKwn";var input="dropzone-module_input_W4Rty";var area="dropzone-module_area_24Xf3";var error="dropzone-module_error_c-jB-";var instructions="dropzone-module_instructions_Q21KZ";var action="dropzone-module_action_zulkw";var hint="dropzone-module_hint_aTyPQ";var loading="dropzone-module_loading_zmnqc";var invalid="dropzone-module_invalid_dnk8R";var disabled="dropzone-module_disabled_2ajiy";var styles$2={dropzone:dropzone,label:label$1,input:input,area:area,error:error,instructions:instructions,action:action,hint:hint,"drag-active":"dropzone-module_drag-active_f00v1",loading:loading,invalid:invalid,disabled:disabled};var CloudUploadIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload");var fileTypes={PDF:{mime:"application/pdf",extensions:[".pdf"]},XML:{mime:"text/xml",extensions:[".xml"]},XLSX:{mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",extensions:[".xlsx"]},XLS:{mime:"application/vnd.ms-excel",extensions:[".xls"]},CSV:{mime:"text/csv",extensions:[".csv"]},PNG:{mime:"image/png",extensions:[".png"]},JPEG:{mime:"image/jpeg",extensions:[".jpeg",".jpg"]},IMAGE:{mime:"image/*",extensions:[]}};var megabytesToBytes=function megabytesToBytes2(megabytes){return megabytes*1024*1024;};var matchesMime=function matchesMime2(fileMime,acceptedMime){return acceptedMime.endsWith("/*")?fileMime.startsWith(acceptedMime.replace("/*","/")):fileMime===acceptedMime;};var matchesExtension=function matchesExtension2(fileName,extensions){return extensions.some(function(extension){return fileName.toLowerCase().endsWith(extension);});};var buildAcceptAttribute=function buildAcceptAttribute2(accept){if(!(accept!==null&&accept!==void 0&&accept.length))return void 0;var tokens=accept.reduce(function(current2,type){var definition=fileTypes[type];if(!definition)return current2;return current2.concat(definition.mime,definition.extensions);},[]);return Array.from(new Set(tokens)).join(",");};var isAcceptedType=function isAcceptedType2(file,accept){if(!(accept!==null&&accept!==void 0&&accept.length))return true;return accept.some(function(type){var definition=fileTypes[type];if(!definition)return false;return matchesMime(file.type,definition.mime)||matchesExtension(file.name,definition.extensions);});};var partitionFiles=function partitionFiles2(files,_ref3){var accept=_ref3.accept,maxSize=_ref3.maxSize,maxFiles=_ref3.maxFiles;var withinLimit=files.slice(0,maxFiles);var exceeding=files.slice(maxFiles);var accepted=[];var rejected=exceeding.map(function(file){return{file:file,reason:"tooManyFiles"};});withinLimit.forEach(function(file){if(!isAcceptedType(file,accept)){rejected.push({file:file,reason:"invalidType"});return;}if(maxSize&&file.size>megabytesToBytes(maxSize)){rejected.push({file:file,reason:"tooLarge"});return;}accepted.push(file);});return{accepted:accepted,rejected:rejected};};var useDropzone=function useDropzone2(_ref3){var onDrop=_ref3.onDrop,_ref$onReject=_ref3.onReject,onReject=_ref$onReject===void 0?void 0:_ref$onReject,_ref$accept=_ref3.accept,accept=_ref$accept===void 0?void 0:_ref$accept,_ref$maxSize=_ref3.maxSize,maxSize=_ref$maxSize===void 0?void 0:_ref$maxSize,_ref$maxFiles=_ref3.maxFiles,maxFiles=_ref$maxFiles===void 0?1:_ref$maxFiles,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled;var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),isDragActive=_useState2[0],setIsDragActive=_useState2[1];var dragDepth=useRef(0);var acceptAttribute=useMemo(function(){return buildAcceptAttribute(accept);},[accept]);var processFiles=useCallback(function(fileList){var files=Array.from(fileList!==null&&fileList!==void 0?fileList:[]);if(!files.length)return;var _partitionFiles=partitionFiles(files,{accept:accept,maxSize:maxSize,maxFiles:maxFiles}),accepted=_partitionFiles.accepted,rejected=_partitionFiles.rejected;if(rejected.length)onReject===null||onReject===void 0||onReject(rejected);if(accepted.length)onDrop(accepted);},[accept,maxSize,maxFiles,onDrop,onReject]);var handleDragEnter=useCallback(function(event){event.preventDefault();if(disabled2)return;dragDepth.current+=1;setIsDragActive(true);},[disabled2]);var handleDragOver=useCallback(function(event){event.preventDefault();},[]);var handleDragLeave=useCallback(function(event){event.preventDefault();dragDepth.current=Math.max(0,dragDepth.current-1);if(!dragDepth.current)setIsDragActive(false);},[]);var handleDrop=useCallback(function(event){var _event$dataTransfer$f,_event$dataTransfer;event.preventDefault();dragDepth.current=0;setIsDragActive(false);if(disabled2)return;processFiles((_event$dataTransfer$f=(_event$dataTransfer=event.dataTransfer)===null||_event$dataTransfer===void 0?void 0:_event$dataTransfer.files)!==null&&_event$dataTransfer$f!==void 0?_event$dataTransfer$f:null);},[disabled2,processFiles]);var handleInputChange2=useCallback(function(event){processFiles(event.target.files);event.target.value="";},[processFiles]);var dragHandlers=useMemo(function(){return{onDragEnter:handleDragEnter,onDragOver:handleDragOver,onDragLeave:handleDragLeave,onDrop:handleDrop};},[handleDragEnter,handleDragOver,handleDragLeave,handleDrop]);return{isDragActive:isDragActive,acceptAttribute:acceptAttribute,dragHandlers:dragHandlers,handleInputChange:handleInputChange2,isMultiple:maxFiles>1};};var _excluded$4=["onDrop","onReject","accept","maxSize","maxFiles","label","error","isLoading","loadingText","disabled","name"];var DropzoneBase=function DropzoneBase2(_ref3){var onDrop=_ref3.onDrop,_ref$onReject=_ref3.onReject,onReject=_ref$onReject===void 0?void 0:_ref$onReject,_ref$accept=_ref3.accept,accept=_ref$accept===void 0?void 0:_ref$accept,_ref$maxSize=_ref3.maxSize,maxSize=_ref$maxSize===void 0?void 0:_ref$maxSize,_ref$maxFiles=_ref3.maxFiles,maxFiles=_ref$maxFiles===void 0?1:_ref$maxFiles,_ref$label=_ref3.label,label2=_ref$label===void 0?void 0:_ref$label,_ref$error=_ref3.error,error2=_ref$error===void 0?void 0:_ref$error,_ref$isLoading=_ref3.isLoading,isLoading=_ref$isLoading===void 0?false:_ref$isLoading,_ref$loadingText=_ref3.loadingText,loadingText=_ref$loadingText===void 0?void 0:_ref$loadingText,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$name=_ref3.name,name2=_ref$name===void 0?void 0:_ref$name,props=_objectWithoutProperties$1(_ref3,_excluded$4);var generatedId=useId$2();var inputId=name2!==null&&name2!==void 0?name2:generatedId;var isDisabled=disabled2||isLoading;var _useDropzone=useDropzone({onDrop:onDrop,onReject:onReject,accept:accept,maxSize:maxSize,maxFiles:maxFiles,disabled:isDisabled}),isDragActive=_useDropzone.isDragActive,acceptAttribute=_useDropzone.acceptAttribute,dragHandlers=_useDropzone.dragHandlers,handleInputChange2=_useDropzone.handleInputChange,isMultiple=_useDropzone.isMultiple;return/* @__PURE__ */jsxs("div",{className:styles$2.dropzone,children:[!!label2&&/* @__PURE__ */jsx$1("label",{htmlFor:inputId,className:styles$2.label,children:label2}),/* @__PURE__ */jsx$1("input",_objectSpread2$1({id:inputId,name:name2,type:"file",className:styles$2.input,accept:acceptAttribute,multiple:isMultiple,disabled:isDisabled,"aria-describedby":error2?"".concat(inputId,"-error"):void 0,onChange:handleInputChange2},props)),/* @__PURE__ */jsx$1("label",_objectSpread2$1(_objectSpread2$1({htmlFor:inputId,"aria-busy":isLoading||void 0,className:clsx(styles$2.area,_defineProperty$2(_defineProperty$2(_defineProperty$2(_defineProperty$2({},styles$2["drag-active"],isDragActive&&!isDisabled),styles$2.loading,isLoading),styles$2.invalid,!!error2),styles$2.disabled,isDisabled))},dragHandlers),{},{children:isLoading?/* @__PURE__ */jsxs(Fragment$1,{children:[/* @__PURE__ */jsx$1(Spinner,{size:"sm"}),/* @__PURE__ */jsx$1("p",{className:styles$2.instructions,children:loadingText!==null&&loadingText!==void 0?loadingText:locale("dropzone.uploadingFile")})]}):/* @__PURE__ */jsxs(Fragment$1,{children:[/* @__PURE__ */jsx$1(CustomIcon,{size:"24",color:getColor("primary","500"),children:/* @__PURE__ */jsx$1(CloudUploadIcon,{"data-testid":"CloudUploadIcon"})}),/* @__PURE__ */jsxs("p",{className:styles$2.instructions,children:[locale("dropzone.dropFiles")," ",/* @__PURE__ */jsx$1("span",{className:styles$2.action,children:locale("dropzone.clickHere")})]}),!!maxSize&&/* @__PURE__ */jsx$1("span",{className:styles$2.hint,children:locale("dropzone.maxSize",{maxSize:maxSize})})]})})),!!error2&&/* @__PURE__ */jsx$1("span",{id:"".concat(inputId,"-error"),role:"alert",className:styles$2.error,children:error2})]});};var Dropzone=withDebugHandlers(DropzoneBase,"Dropzone");var baseKeys=_baseKeys,getTag=_getTag,isArrayLike=isArrayLike_1,isString=isString_1,stringSize=_stringSize;var mapTag="[object Map]",setTag="[object Set]";function size(collection){if(collection==null){return 0;}if(isArrayLike(collection)){return isString(collection)?stringSize(collection):collection.length;}var tag=getTag(collection);if(tag==mapTag||tag==setTag){return collection.size;}return baseKeys(collection).length;}var size_1=size;var size$1=/* @__PURE__ */getDefaultExportFromCjs(size_1);var CheckRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"}),"CheckRounded");var stepper="stepper-module_stepper_gHKwd";var step="stepper-module_step_Azhew";var circle="stepper-module_circle_Bke9b";var circleNumber="stepper-module_circleNumber_B5iiB";var checkIcon="stepper-module_checkIcon_FBwCT";var completed="stepper-module_completed_v-jTa";var current="stepper-module_current_-39vJ";var pending="stepper-module_pending_HgdCr";var label="stepper-module_label_-YviU";var separator="stepper-module_separator_8n-wG";var styles$1={stepper:stepper,step:step,circle:circle,circleNumber:circleNumber,checkIcon:checkIcon,"stepper-check-in":"stepper-module_stepper-check-in_ebuuV",completed:completed,"stepper-pop":"stepper-module_stepper-pop_HEFCF",current:current,pending:pending,label:label,separator:separator};var _excluded$3=["label","status"],_excluded2$1=["steps","activeStep"];var resolveStatus=function resolveStatus2(index2,activeStep,explicitStatus){if(explicitStatus)return explicitStatus;if(index2<activeStep)return"completed";if(index2===activeStep)return"current";return"pending";};var StepCircle=function StepCircle2(_ref3){var status=_ref3.status,index2=_ref3.index;return/* @__PURE__ */jsx$1("span",{className:clsx(styles$1.circle,styles$1[status]),children:status==="completed"?/* @__PURE__ */jsx$1(CheckRoundedIcon,{"data-testid":"CheckRoundedIcon",className:styles$1.checkIcon}):/* @__PURE__ */jsx$1("span",{className:styles$1.circleNumber,children:index2+1})});};var StepItemComponent=function StepItemComponent2(_ref22){var step2=_ref22.step,index2=_ref22.index,isLast=_ref22.isLast,activeStep=_ref22.activeStep;var label2=step2.label,explicitStatus=step2.status,stepProps=_objectWithoutProperties$1(step2,_excluded$3);var status=resolveStatus(index2,activeStep,explicitStatus);return/* @__PURE__ */jsxs(Fragment$1,{children:[/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$1.step,styles$1[status])},stepProps),{},{children:[/* @__PURE__ */jsx$1(StepCircle,{status:status,index:index2}),/* @__PURE__ */jsx$1("span",{className:styles$1.label,children:label2})]})),!isLast&&/* @__PURE__ */jsx$1("span",{className:clsx(styles$1.separator,status==="completed"&&styles$1.completed),"aria-hidden":"true"})]});};var Stepper=function Stepper2(_ref3){var steps=_ref3.steps,_ref3$activeStep=_ref3.activeStep,activeStep=_ref3$activeStep===void 0?0:_ref3$activeStep,otherProps=_objectWithoutProperties$1(_ref3,_excluded2$1);var total=size$1(steps);return/* @__PURE__ */jsx$1("nav",_objectSpread2$1(_objectSpread2$1({className:styles$1.stepper,"aria-label":"Stepper"},otherProps),{},{children:map$2(steps,function(step2,index2){return/* @__PURE__ */jsx$1(StepItemComponent,{step:step2,index:index2,activeStep:activeStep,isLast:index2===total-1},index2);})}));};var TableContext=/* @__PURE__ */createContext([]);var table="table-module_table_NUX-V";var styles={"table-wrapper":"table-module_table-wrapper_vhMx4",table:table,"header-row":"table-module_header-row_ry6Lv","body-row":"table-module_body-row_OMOX0","header-cell":"table-module_header-cell_0FEWz","body-cell":"table-module_body-cell_p4019","body-async":"table-module_body-async_21Z7L"};var _excluded$2=["data","isLoading","error","empty","success"];var TableBody=function TableBody2(_ref3){var data=_ref3.data,isLoading=_ref3.isLoading,error2=_ref3.error,empty=_ref3.empty,success2=_ref3.success,props=_objectWithoutProperties$1(_ref3,_excluded$2);var columns=useContext(TableContext);var showContent=!isLoading&&!(error2!==null&&error2!==void 0&&error2.value)&&!(success2!==null&&success2!==void 0&&success2.value)&&data.length>0;if(!showContent){return/* @__PURE__ */jsx$1("tbody",_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsx$1("tr",{children:/* @__PURE__ */jsx$1("td",{colSpan:columns.length,className:styles["body-async"],children:/* @__PURE__ */jsx$1(AsyncContent,{isLoading:isLoading,error:error2,success:success2,empty:_objectSpread2$1(_objectSpread2$1({},empty),{},{items:data}),children:/* @__PURE__ */jsx$1(Fragment$1,{})})})})}));}return/* @__PURE__ */jsx$1("tbody",_objectSpread2$1(_objectSpread2$1({},props),{},{children:data.map(function(row,rowIndex){return/* @__PURE__ */jsx$1("tr",{className:styles["body-row"],children:columns.map(function(col){var value=row[col.key];return/* @__PURE__ */jsx$1(Box,{sx:col.sx,component:"td",className:styles["body-cell"],children:col.render?col.render(row,rowIndex):String(value!==null&&value!==void 0?value:"")},col.key);})},rowIndex);})}));};var _excluded$1=["columns"],_excluded2=["key","header","sx","render"];var TableHeader=function TableHeader2(_ref3){var columnsProp=_ref3.columns,props=_objectWithoutProperties$1(_ref3,_excluded$1);var contextColumns=useContext(TableContext);var columns=columnsProp!==null&&columnsProp!==void 0?columnsProp:contextColumns;return/* @__PURE__ */jsx$1("thead",_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsx$1("tr",{className:styles["header-row"],children:columns.map(function(_ref22){var key=_ref22.key,header2=_ref22.header,sx=_ref22.sx;_ref22.render;var columnProps=_objectWithoutProperties$1(_ref22,_excluded2);return/* @__PURE__ */jsx$1(Box,_objectSpread2$1(_objectSpread2$1({sx:sx,component:"th",className:styles["header-cell"]},columnProps),{},{children:header2||/* @__PURE__ */jsx$1(Box,{component:"span",sx:visuallyHidden,children:key})}),key);})})}));};var _excluded=["columns","children","className"];var Table$1=function Table(_ref3){var columns=_ref3.columns,children=_ref3.children,className=_ref3.className,props=_objectWithoutProperties$1(_ref3,_excluded);return/* @__PURE__ */jsx$1(TableContext.Provider,{value:columns,children:/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles["table-wrapper"],className)},props),{},{children:/* @__PURE__ */jsx$1("table",{className:styles.table,children:children})}))});};var Table2=Table$1;Table2.Header=TableHeader;Table2.Body=TableBody;export{ActionBar,Alert,AsyncContent,Breadcrumb,Button$2 as Button,Card,Categories,CheckIcon,CheckboxInput as Checkbox,CheckboxInputGroup as CheckboxGroup,CheckboxInput,CheckboxInputGroup,Chip$1 as Chip,ClearComponent,ColorOptions,ColorValues,Colors,ConditionalOperator,CopyButton,CustomIcon,DatePicker2 as DatePicker,DatePickerInput,DateRangePicker,DateRangePickerInput,DraggableList,Dropdown,Dropzone,EmptyState,EmptyStateIcon,ErrorStateIcon,FileIcon,FileRow,FormField,GeneratingState,GeneratingStateIcon,HeaderSection,HelpArticleLink,IconWithIdentifier,Image,Link,LinkWithIcon,MailIcon,Maintenance,MaintenanceIcon,MenuAction,MenuItemComponent,Modal2 as Modal,ModalBody,ModalFooter,ModalTitle,NewStateIcon,Option$1 as Option,OverflowChecker,PermissionOption,PermissionSelector,PickChannelModal,PriceCloseIcon,PriceDownIcon,ProductecaIcon,Progressbar,SearchComponent,SearchPublication,Searcher,SelectField,Shades,AppSidebar as Sidebar,SingleValue2 as SingleValue,Spinner,Stepper,SuccessStateIcon,SwitchInput as Switch,SwitchInputGroup as SwitchGroup,SwitchInput,SwitchInputGroup,Table2 as Table,TableBody,TableHeader,Tabs2 as Tabs,TextInput,TrashIcon,VALUE_AND,VALUE_OR,WarningModal,WithOverflowTooltip,WithTooltip,allColors,configureLocale,datePickerDayStyles,datePickerDigitalClockStyles,datePickerInputStyles,datePickerLayoutStyles,datePickerPopperStyles,datePickerYearStyles,formatDate,getActiveLocale,getColor,isValidColor,useAutoloadProgress,useDropzone,useReduxFormField};
7164
+ */sx:PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func,PropTypes.object,PropTypes.bool])),PropTypes.func,PropTypes.object])}:void 0;var DragIndicator=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator");var DraggableRow=/* @__PURE__ */React__default.memo(function(_ref3){var item2=_ref3.item,isAdding=_ref3.isAdding,onRemove=_ref3.onRemove,canRemove=_ref3.canRemove,_ref$showRemoveAction=_ref3.showRemoveAction,showRemoveAction=_ref$showRemoveAction===void 0?true:_ref$showRemoveAction,component=_ref3.component,isRemoving=_ref3.isRemoving,onSelectValue=_ref3.onSelectValue,componentProps=_ref3.componentProps;var resolvedDisabled=Boolean(componentProps===null||componentProps===void 0?void 0:componentProps.disabled);var canRemoveItem=canRemove?canRemove(item2):true;var _useSortable=useSortable({id:item2.id,disabled:resolvedDisabled}),attributes=_useSortable.attributes,listeners=_useSortable.listeners,setActivatorNodeRef=_useSortable.setActivatorNodeRef,setNodeRef=_useSortable.setNodeRef,transform=_useSortable.transform,transition=_useSortable.transition,isDragging=_useSortable.isDragging;var _handleRemove=useCallback(function(){if(!canRemoveItem){return;}onRemove(item2.id);},[canRemoveItem,item2.id,onRemove]);var Component2=component;return/* @__PURE__ */jsxs(Paper,{ref:setNodeRef,className:clsx(styles$3["draggable-list--item"],_defineProperty$2(_defineProperty$2(_defineProperty$2({},styles$3["draggable-list--item--dragging"],isDragging),styles$3["draggable-list--item--adding"],isAdding),styles$3["draggable-list--item--removing"],isRemoving)),elevation:0,style:{transform:CSS$1.Transform.toString(transform),transition:transition},children:[/* @__PURE__ */jsx$1("span",_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({ref:setActivatorNodeRef,"aria-label":locale("a11y.reorder")},attributes),listeners),{},{children:/* @__PURE__ */jsx$1(CustomIcon,{size:"16",children:/* @__PURE__ */jsx$1(DragIndicator,{})})})),Component2?/* @__PURE__ */jsx$1(Component2,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},componentProps),item2),{},{item:item2,disabled:resolvedDisabled,onItemChange:function onItemChange(value){return onSelectValue(item2.id,value);}})):null,showRemoveAction&&/* @__PURE__ */jsx$1(CustomIcon,{size:"8",role:"button","aria-label":locale("a11y.remove"),onClick:_handleRemove,disabled:resolvedDisabled||!canRemoveItem,color:getColor("primary","500"),children:/* @__PURE__ */jsx$1(TrashIcon,{})})]});});DraggableRow.displayName="DraggableRow";var _excluded$5=["label","addLabel","onChange","canRemove","showRemoveAction","itemComponent","value","componentProps","input"];var ITEM_ID_PREFIX="draggable-item";var _isStringArray=function _isStringArray2(value){return Array.isArray(value)&&(value.length===0||typeof value[0]==="string");};var _normalizeToItems=function _normalizeToItems2(value){if(!Array.isArray(value)){return[];}if(_isStringArray(value)){return value.map(function(val,index2){return{id:"".concat(ITEM_ID_PREFIX,"-string-").concat(index2,"-").concat(val),value:val};});}return value;};var _buildItem=function _buildItem2(currentLength){return{id:"".concat(ITEM_ID_PREFIX,"-").concat(currentLength,"-").concat(Date.now()),value:""};};var DraggableListBase=function DraggableListBase2(_ref3){var _ref22,_input$value;var label2=_ref3.label,addLabel=_ref3.addLabel,_onChange=_ref3.onChange,canRemove=_ref3.canRemove,_ref$showRemoveAction=_ref3.showRemoveAction,showRemoveAction=_ref$showRemoveAction===void 0?true:_ref$showRemoveAction,itemComponent=_ref3.itemComponent,_ref$value=_ref3.value,controlledItems=_ref$value===void 0?[]:_ref$value,componentProps=_ref3.componentProps,input2=_ref3.input,props=_objectWithoutProperties$1(_ref3,_excluded$5);if(!itemComponent){return null;}var rawValue=(_ref22=(_input$value=input2===null||input2===void 0?void 0:input2.value)!==null&&_input$value!==void 0?_input$value:controlledItems)!==null&&_ref22!==void 0?_ref22:[];var resolvedItems=useMemo(function(){return _normalizeToItems(rawValue);},[rawValue]);var outputFormatRef=useRef(_isStringArray(rawValue)?"strings":"objects");var _useState=useState(resolvedItems),_useState2=_slicedToArray$1(_useState,2),items=_useState2[0],setItems=_useState2[1];var _useState3=useState(/* @__PURE__ */new Set()),_useState4=_slicedToArray$1(_useState3,2),addingItems=_useState4[0],setAddingItems=_useState4[1];var _useState5=useState(/* @__PURE__ */new Set()),_useState6=_slicedToArray$1(_useState5,2),removingItems=_useState6[0],setRemovingItems=_useState6[1];var sensors=useSensors(useSensor(PointerSensor));var itemIds=useMemo(function(){return items.map(function(item2){return item2.id;});},[items]);useEffect(function(){outputFormatRef.current=_isStringArray(rawValue)?"strings":"objects";setItems(resolvedItems);},[resolvedItems,rawValue]);var _valueToOutput=useCallback(function(nextItems){return outputFormatRef.current==="strings"?nextItems.map(function(item2){var _item$value;return(_item$value=item2.value)!==null&&_item$value!==void 0?_item$value:"";}):nextItems;},[]);var _useReduxFormField=useReduxFormField({input:input2,onChange:function onChange2(nextItems){var _ref32,_input$name;if(!_onChange){return;}var value=_valueToOutput(nextItems);var resolvedName=(_ref32=(_input$name=input2===null||input2===void 0?void 0:input2.name)!==null&&_input$name!==void 0?_input$name:componentProps===null||componentProps===void 0?void 0:componentProps.name)!==null&&_ref32!==void 0?_ref32:"draggableList";var event={target:{name:resolvedName,value:value}};_onChange(event);},transformValue:function transformValue(nextItems){return _valueToOutput(nextItems);}}),_handleItemsChange=_useReduxFormField.handleChange;var _syncItems=useCallback(function(updater){setItems(function(prev2){var next2=typeof updater==="function"?updater(prev2):updater;_handleItemsChange(next2);return next2;});},[_handleItemsChange]);var _handleRemove=useCallback(function(id){setRemovingItems(function(prev2){return new Set(prev2).add(id);});setTimeout(function(){_syncItems(function(prev2){return prev2.filter(function(item2){return item2.id!==id;});});setRemovingItems(function(prev2){var next2=new Set(prev2);next2.delete(id);return next2;});},300);},[_syncItems]);var _handleSelectValue=useCallback(function(id,value){_syncItems(function(prev2){return prev2.map(function(item2){return item2.id===id?_objectSpread2$1(_objectSpread2$1({},item2),{},{value:value}):item2;});});},[_syncItems]);var _handleAdd=useCallback(function(){_syncItems(function(prev2){var newItem=_buildItem(prev2.length);setAddingItems(function(adding){return new Set(adding).add(newItem.id);});setTimeout(function(){setAddingItems(function(adding){var next2=new Set(adding);next2.delete(newItem.id);return next2;});},300);return[].concat(_toConsumableArray$1(prev2),[newItem]);});},[_syncItems]);var _handleDragEnd=useCallback(function(event){var active2=event.active,over=event.over;if(!over||active2.id===over.id)return;_syncItems(function(prev2){var oldIndex=prev2.findIndex(function(item2){return item2.id===active2.id;});var newIndex=prev2.findIndex(function(item2){return item2.id===over.id;});if(oldIndex===-1||newIndex===-1){return prev2;}return arrayMove(prev2,oldIndex,newIndex);});},[_syncItems]);return/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$3["draggable-list"])},props),{},{children:[label2&&/* @__PURE__ */jsx$1("div",{className:styles$3["draggable-list--label"],children:label2}),/* @__PURE__ */jsx$1(DndContext,{sensors:sensors,collisionDetection:closestCenter,onDragEnd:_handleDragEnd,children:/* @__PURE__ */jsx$1(SortableContext,{items:itemIds,strategy:verticalListSortingStrategy,children:items.map(function(item2){return/* @__PURE__ */jsx$1(DraggableRow,{item:item2,component:itemComponent,canRemove:canRemove,showRemoveAction:showRemoveAction,onRemove:_handleRemove,componentProps:componentProps,onSelectValue:_handleSelectValue,isAdding:addingItems.has(item2.id),isRemoving:removingItems.has(item2.id)},item2.id);})})}),/* @__PURE__ */jsx$1("div",{className:clsx(styles$3["draggable-list--add-button"]),children:/* @__PURE__ */jsx$1(Link,{href:"#",size:"sm",onClick:function onClick(event){event.preventDefault();_handleAdd();},children:addLabel||locale("addPlus")})})]}));};var DraggableList=withDebugHandlers(DraggableListBase,"DraggableList");var dropzone="dropzone-module_dropzone_s6uiA";var label$1="dropzone-module_label_LGKwn";var input="dropzone-module_input_W4Rty";var area="dropzone-module_area_24Xf3";var error="dropzone-module_error_c-jB-";var instructions="dropzone-module_instructions_Q21KZ";var action="dropzone-module_action_zulkw";var hint="dropzone-module_hint_aTyPQ";var loading="dropzone-module_loading_zmnqc";var invalid="dropzone-module_invalid_dnk8R";var disabled="dropzone-module_disabled_2ajiy";var styles$2={dropzone:dropzone,label:label$1,input:input,area:area,error:error,instructions:instructions,action:action,hint:hint,"drag-active":"dropzone-module_drag-active_f00v1",loading:loading,invalid:invalid,disabled:disabled};var CloudUploadIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload");var fileTypes={PDF:{mime:"application/pdf",extensions:[".pdf"]},XML:{mime:"text/xml",extensions:[".xml"]},XLSX:{mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",extensions:[".xlsx"]},XLS:{mime:"application/vnd.ms-excel",extensions:[".xls"]},CSV:{mime:"text/csv",extensions:[".csv"]},PNG:{mime:"image/png",extensions:[".png"]},JPEG:{mime:"image/jpeg",extensions:[".jpeg",".jpg"]},IMAGE:{mime:"image/*",extensions:[]}};var megabytesToBytes=function megabytesToBytes2(megabytes){return megabytes*1024*1024;};var matchesMime=function matchesMime2(fileMime,acceptedMime){return acceptedMime.endsWith("/*")?fileMime.startsWith(acceptedMime.replace("/*","/")):fileMime===acceptedMime;};var matchesExtension=function matchesExtension2(fileName,extensions){return extensions.some(function(extension){return fileName.toLowerCase().endsWith(extension);});};var buildAcceptAttribute=function buildAcceptAttribute2(accept){if(!(accept!==null&&accept!==void 0&&accept.length))return void 0;var tokens=accept.reduce(function(current2,type){var definition=fileTypes[type];if(!definition)return current2;return current2.concat(definition.mime,definition.extensions);},[]);return Array.from(new Set(tokens)).join(",");};var isAcceptedType=function isAcceptedType2(file,accept){if(!(accept!==null&&accept!==void 0&&accept.length))return true;return accept.some(function(type){var definition=fileTypes[type];if(!definition)return false;return matchesMime(file.type,definition.mime)||matchesExtension(file.name,definition.extensions);});};var partitionFiles=function partitionFiles2(files,_ref3){var accept=_ref3.accept,maxSize=_ref3.maxSize,maxFiles=_ref3.maxFiles;var withinLimit=files.slice(0,maxFiles);var exceeding=files.slice(maxFiles);var accepted=[];var rejected=exceeding.map(function(file){return{file:file,reason:"tooManyFiles"};});withinLimit.forEach(function(file){if(!isAcceptedType(file,accept)){rejected.push({file:file,reason:"invalidType"});return;}if(maxSize&&file.size>megabytesToBytes(maxSize)){rejected.push({file:file,reason:"tooLarge"});return;}accepted.push(file);});return{accepted:accepted,rejected:rejected};};var useDropzone=function useDropzone2(_ref3){var onDrop=_ref3.onDrop,_ref$onReject=_ref3.onReject,onReject=_ref$onReject===void 0?void 0:_ref$onReject,_ref$accept=_ref3.accept,accept=_ref$accept===void 0?void 0:_ref$accept,_ref$maxSize=_ref3.maxSize,maxSize=_ref$maxSize===void 0?void 0:_ref$maxSize,_ref$maxFiles=_ref3.maxFiles,maxFiles=_ref$maxFiles===void 0?1:_ref$maxFiles,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled;var _useState=useState(false),_useState2=_slicedToArray$1(_useState,2),isDragActive=_useState2[0],setIsDragActive=_useState2[1];var dragDepth=useRef(0);var acceptAttribute=useMemo(function(){return buildAcceptAttribute(accept);},[accept]);var processFiles=useCallback(function(fileList){var files=Array.from(fileList!==null&&fileList!==void 0?fileList:[]);if(!files.length)return;var _partitionFiles=partitionFiles(files,{accept:accept,maxSize:maxSize,maxFiles:maxFiles}),accepted=_partitionFiles.accepted,rejected=_partitionFiles.rejected;if(rejected.length)onReject===null||onReject===void 0||onReject(rejected);if(accepted.length)onDrop(accepted);},[accept,maxSize,maxFiles,onDrop,onReject]);var handleDragEnter=useCallback(function(event){event.preventDefault();if(disabled2)return;dragDepth.current+=1;setIsDragActive(true);},[disabled2]);var handleDragOver=useCallback(function(event){event.preventDefault();},[]);var handleDragLeave=useCallback(function(event){event.preventDefault();dragDepth.current=Math.max(0,dragDepth.current-1);if(!dragDepth.current)setIsDragActive(false);},[]);var handleDrop=useCallback(function(event){var _event$dataTransfer$f,_event$dataTransfer;event.preventDefault();dragDepth.current=0;setIsDragActive(false);if(disabled2)return;processFiles((_event$dataTransfer$f=(_event$dataTransfer=event.dataTransfer)===null||_event$dataTransfer===void 0?void 0:_event$dataTransfer.files)!==null&&_event$dataTransfer$f!==void 0?_event$dataTransfer$f:null);},[disabled2,processFiles]);var handleInputChange2=useCallback(function(event){processFiles(event.target.files);event.target.value="";},[processFiles]);var dragHandlers=useMemo(function(){return{onDragEnter:handleDragEnter,onDragOver:handleDragOver,onDragLeave:handleDragLeave,onDrop:handleDrop};},[handleDragEnter,handleDragOver,handleDragLeave,handleDrop]);return{isDragActive:isDragActive,acceptAttribute:acceptAttribute,dragHandlers:dragHandlers,handleInputChange:handleInputChange2,isMultiple:maxFiles>1};};var _excluded$4=["onDrop","onReject","accept","maxSize","maxFiles","label","error","isLoading","loadingText","disabled","name"];var DropzoneBase=function DropzoneBase2(_ref3){var onDrop=_ref3.onDrop,_ref$onReject=_ref3.onReject,onReject=_ref$onReject===void 0?void 0:_ref$onReject,_ref$accept=_ref3.accept,accept=_ref$accept===void 0?void 0:_ref$accept,_ref$maxSize=_ref3.maxSize,maxSize=_ref$maxSize===void 0?void 0:_ref$maxSize,_ref$maxFiles=_ref3.maxFiles,maxFiles=_ref$maxFiles===void 0?1:_ref$maxFiles,_ref$label=_ref3.label,label2=_ref$label===void 0?void 0:_ref$label,_ref$error=_ref3.error,error2=_ref$error===void 0?void 0:_ref$error,_ref$isLoading=_ref3.isLoading,isLoading=_ref$isLoading===void 0?false:_ref$isLoading,_ref$loadingText=_ref3.loadingText,loadingText=_ref$loadingText===void 0?void 0:_ref$loadingText,_ref$disabled=_ref3.disabled,disabled2=_ref$disabled===void 0?false:_ref$disabled,_ref$name=_ref3.name,name2=_ref$name===void 0?void 0:_ref$name,props=_objectWithoutProperties$1(_ref3,_excluded$4);var generatedId=useId$2();var inputId=name2!==null&&name2!==void 0?name2:generatedId;var isDisabled=disabled2||isLoading;var _useDropzone=useDropzone({onDrop:onDrop,onReject:onReject,accept:accept,maxSize:maxSize,maxFiles:maxFiles,disabled:isDisabled}),isDragActive=_useDropzone.isDragActive,acceptAttribute=_useDropzone.acceptAttribute,dragHandlers=_useDropzone.dragHandlers,handleInputChange2=_useDropzone.handleInputChange,isMultiple=_useDropzone.isMultiple;return/* @__PURE__ */jsxs("div",{className:styles$2.dropzone,children:[!!label2&&/* @__PURE__ */jsx$1("label",{htmlFor:inputId,className:styles$2.label,children:label2}),/* @__PURE__ */jsx$1("input",_objectSpread2$1({id:inputId,name:name2,type:"file",className:styles$2.input,accept:acceptAttribute,multiple:isMultiple,disabled:isDisabled,"aria-describedby":error2?"".concat(inputId,"-error"):void 0,onChange:handleInputChange2},props)),/* @__PURE__ */jsx$1("label",_objectSpread2$1(_objectSpread2$1({htmlFor:inputId,"aria-busy":isLoading||void 0,className:clsx(styles$2.area,_defineProperty$2(_defineProperty$2(_defineProperty$2(_defineProperty$2({},styles$2["drag-active"],isDragActive&&!isDisabled),styles$2.loading,isLoading),styles$2.invalid,!!error2),styles$2.disabled,isDisabled))},dragHandlers),{},{children:isLoading?/* @__PURE__ */jsxs(Fragment$1,{children:[/* @__PURE__ */jsx$1(Spinner,{size:"sm"}),/* @__PURE__ */jsx$1("p",{className:styles$2.instructions,children:loadingText!==null&&loadingText!==void 0?loadingText:locale("dropzone.uploadingFile")})]}):/* @__PURE__ */jsxs(Fragment$1,{children:[/* @__PURE__ */jsx$1(CustomIcon,{size:"24",color:getColor("primary","500"),children:/* @__PURE__ */jsx$1(CloudUploadIcon,{"data-testid":"CloudUploadIcon"})}),/* @__PURE__ */jsxs("p",{className:styles$2.instructions,children:[locale("dropzone.dropFiles")," ",/* @__PURE__ */jsx$1("span",{className:styles$2.action,children:locale("dropzone.clickHere")})]}),!!maxSize&&/* @__PURE__ */jsx$1("span",{className:styles$2.hint,children:locale("dropzone.maxSize",{maxSize:maxSize})})]})})),!!error2&&/* @__PURE__ */jsx$1("span",{id:"".concat(inputId,"-error"),role:"alert",className:styles$2.error,children:error2})]});};var Dropzone=withDebugHandlers(DropzoneBase,"Dropzone");var baseKeys=_baseKeys,getTag=_getTag,isArrayLike=isArrayLike_1,isString=isString_1,stringSize=_stringSize;var mapTag="[object Map]",setTag="[object Set]";function size(collection){if(collection==null){return 0;}if(isArrayLike(collection)){return isString(collection)?stringSize(collection):collection.length;}var tag=getTag(collection);if(tag==mapTag||tag==setTag){return collection.size;}return baseKeys(collection).length;}var size_1=size;var size$1=/* @__PURE__ */getDefaultExportFromCjs(size_1);var CheckRoundedIcon=createSvgIcon(/* @__PURE__ */jsx$1("path",{d:"M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"}),"CheckRounded");var stepper="stepper-module_stepper_gHKwd";var step="stepper-module_step_Azhew";var circle="stepper-module_circle_Bke9b";var circleNumber="stepper-module_circleNumber_B5iiB";var checkIcon="stepper-module_checkIcon_FBwCT";var completed="stepper-module_completed_v-jTa";var current="stepper-module_current_-39vJ";var pending="stepper-module_pending_HgdCr";var label="stepper-module_label_-YviU";var separator="stepper-module_separator_8n-wG";var styles$1={stepper:stepper,step:step,circle:circle,circleNumber:circleNumber,checkIcon:checkIcon,"stepper-check-in":"stepper-module_stepper-check-in_ebuuV",completed:completed,"stepper-pop":"stepper-module_stepper-pop_HEFCF",current:current,pending:pending,label:label,separator:separator};var _excluded$3=["label","status"],_excluded2$1=["steps","activeStep"];var resolveStatus=function resolveStatus2(index2,activeStep,explicitStatus){if(explicitStatus)return explicitStatus;if(index2<activeStep)return"completed";if(index2===activeStep)return"current";return"pending";};var StepCircle=function StepCircle2(_ref3){var status=_ref3.status,index2=_ref3.index;return/* @__PURE__ */jsx$1("span",{className:clsx(styles$1.circle,styles$1[status]),children:status==="completed"?/* @__PURE__ */jsx$1(CheckRoundedIcon,{"data-testid":"CheckRoundedIcon",className:styles$1.checkIcon}):/* @__PURE__ */jsx$1("span",{className:styles$1.circleNumber,children:index2+1})});};var StepItemComponent=function StepItemComponent2(_ref22){var step2=_ref22.step,index2=_ref22.index,isLast=_ref22.isLast,activeStep=_ref22.activeStep;var label2=step2.label,explicitStatus=step2.status,stepProps=_objectWithoutProperties$1(step2,_excluded$3);var status=resolveStatus(index2,activeStep,explicitStatus);return/* @__PURE__ */jsxs(Fragment$1,{children:[/* @__PURE__ */jsxs("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles$1.step,styles$1[status])},stepProps),{},{children:[/* @__PURE__ */jsx$1(StepCircle,{status:status,index:index2}),/* @__PURE__ */jsx$1("span",{className:styles$1.label,children:label2})]})),!isLast&&/* @__PURE__ */jsx$1("span",{className:clsx(styles$1.separator,status==="completed"&&styles$1.completed),"aria-hidden":"true"})]});};var Stepper=function Stepper2(_ref3){var steps=_ref3.steps,_ref3$activeStep=_ref3.activeStep,activeStep=_ref3$activeStep===void 0?0:_ref3$activeStep,otherProps=_objectWithoutProperties$1(_ref3,_excluded2$1);var total=size$1(steps);return/* @__PURE__ */jsx$1("nav",_objectSpread2$1(_objectSpread2$1({className:styles$1.stepper,"aria-label":"Stepper"},otherProps),{},{children:map$2(steps,function(step2,index2){return/* @__PURE__ */jsx$1(StepItemComponent,{step:step2,index:index2,activeStep:activeStep,isLast:index2===total-1},index2);})}));};var TableContext=/* @__PURE__ */createContext([]);var table="table-module_table_NUX-V";var styles={"table-wrapper":"table-module_table-wrapper_vhMx4",table:table,"header-row":"table-module_header-row_ry6Lv","body-row":"table-module_body-row_OMOX0","header-cell":"table-module_header-cell_0FEWz","body-cell":"table-module_body-cell_p4019","body-async":"table-module_body-async_21Z7L"};var _excluded$2=["data","isLoading","error","empty","success"];var TableBody=function TableBody2(_ref3){var data=_ref3.data,isLoading=_ref3.isLoading,error2=_ref3.error,empty=_ref3.empty,success2=_ref3.success,props=_objectWithoutProperties$1(_ref3,_excluded$2);var columns=useContext(TableContext);var showContent=!isLoading&&!(error2!==null&&error2!==void 0&&error2.value)&&!(success2!==null&&success2!==void 0&&success2.value)&&data.length>0;if(!showContent){return/* @__PURE__ */jsx$1("tbody",_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsx$1("tr",{children:/* @__PURE__ */jsx$1("td",{colSpan:columns.length,className:styles["body-async"],children:/* @__PURE__ */jsx$1(AsyncContent,{isLoading:isLoading,error:error2,success:success2,empty:_objectSpread2$1(_objectSpread2$1({},empty),{},{items:data}),children:/* @__PURE__ */jsx$1(Fragment$1,{})})})})}));}return/* @__PURE__ */jsx$1("tbody",_objectSpread2$1(_objectSpread2$1({},props),{},{children:data.map(function(row,rowIndex){return/* @__PURE__ */jsx$1("tr",{className:styles["body-row"],children:columns.map(function(col){var value=row[col.key];return/* @__PURE__ */jsx$1(Box,{sx:col.sx,component:"td",className:styles["body-cell"],children:col.render?col.render(row,rowIndex):String(value!==null&&value!==void 0?value:"")},col.key);})},rowIndex);})}));};var _excluded$1=["columns"],_excluded2=["key","header","sx","render"];var TableHeader=function TableHeader2(_ref3){var columnsProp=_ref3.columns,props=_objectWithoutProperties$1(_ref3,_excluded$1);var contextColumns=useContext(TableContext);var columns=columnsProp!==null&&columnsProp!==void 0?columnsProp:contextColumns;return/* @__PURE__ */jsx$1("thead",_objectSpread2$1(_objectSpread2$1({},props),{},{children:/* @__PURE__ */jsx$1("tr",{className:styles["header-row"],children:columns.map(function(_ref22){var key=_ref22.key,header2=_ref22.header,sx=_ref22.sx;_ref22.render;var columnProps=_objectWithoutProperties$1(_ref22,_excluded2);return/* @__PURE__ */jsx$1(Box,_objectSpread2$1(_objectSpread2$1({sx:sx,component:"th",className:styles["header-cell"]},columnProps),{},{children:header2||/* @__PURE__ */jsx$1(Box,{component:"span",sx:visuallyHidden,children:key})}),key);})})}));};var _excluded=["columns","children","className"];var Table$1=function Table(_ref3){var columns=_ref3.columns,children=_ref3.children,className=_ref3.className,props=_objectWithoutProperties$1(_ref3,_excluded);return/* @__PURE__ */jsx$1(TableContext.Provider,{value:columns,children:/* @__PURE__ */jsx$1("div",_objectSpread2$1(_objectSpread2$1({className:clsx(styles["table-wrapper"],className)},props),{},{children:/* @__PURE__ */jsx$1("table",{className:styles.table,children:children})}))});};var Table2=Table$1;Table2.Header=TableHeader;Table2.Body=TableBody;var getProvider=function getProvider2(){if(typeof document!=="undefined"){var fromDocument=document.modelContext;if(fromDocument)return fromDocument;}if(typeof navigator!=="undefined"){return navigator.modelContext;}return void 0;};var useModelContextTool=function useModelContextTool2(_ref3){var name2=_ref3.name,description2=_ref3.description,inputSchema=_ref3.inputSchema,execute=_ref3.execute;var _ref22=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_ref2$enabled=_ref22.enabled,enabled=_ref2$enabled===void 0?true:_ref2$enabled;var isSupported=getProvider()!==void 0;var executeRef=useRef(execute);var inputSchemaRef=useRef(inputSchema);var schemaKey=JSON.stringify(inputSchema);useEffect(function(){executeRef.current=execute;inputSchemaRef.current=inputSchema;});useEffect(function(){if(!enabled)return;var provider=getProvider();if(!provider)return;var controller=new AbortController();provider.registerTool({name:name2,description:description2,inputSchema:inputSchemaRef.current,execute:function execute2(args){return Promise.resolve(executeRef.current(args));}},{signal:controller.signal}).catch(function(error2){if(controller.signal.aborted)return;logWarning('useModelContextTool: could not register the tool "'.concat(name2,'" (').concat(String(error2),")"));});return function(){return controller.abort();};},[enabled,name2,description2,schemaKey]);return{isSupported:isSupported};};export{ActionBar,Alert,AsyncContent,Breadcrumb,Button$2 as Button,Card,Categories,CheckIcon,CheckboxInput as Checkbox,CheckboxInputGroup as CheckboxGroup,CheckboxInput,CheckboxInputGroup,Chip$1 as Chip,ClearComponent,ColorOptions,ColorValues,Colors,ConditionalOperator,CopyButton,CustomIcon,DatePicker2 as DatePicker,DatePickerInput,DateRangePicker,DateRangePickerInput,DraggableList,Dropdown,Dropzone,EmptyState,EmptyStateIcon,ErrorStateIcon,FileIcon,FileRow,FormField,GeneratingState,GeneratingStateIcon,HeaderSection,HelpArticleLink,IconWithIdentifier,Image,Link,LinkWithIcon,MailIcon,Maintenance,MaintenanceIcon,MenuAction,MenuItemComponent,Modal2 as Modal,ModalBody,ModalFooter,ModalTitle,NewStateIcon,Option$1 as Option,OverflowChecker,PermissionOption,PermissionSelector,PickChannelModal,PriceCloseIcon,PriceDownIcon,ProductecaIcon,Progressbar,SearchComponent,SearchPublication,Searcher,SelectField,Shades,AppSidebar as Sidebar,SingleValue2 as SingleValue,Spinner,Stepper,SuccessStateIcon,SwitchInput as Switch,SwitchInputGroup as SwitchGroup,SwitchInput,SwitchInputGroup,Table2 as Table,TableBody,TableHeader,Tabs2 as Tabs,TextInput,TrashIcon,VALUE_AND,VALUE_OR,WarningModal,WithOverflowTooltip,WithTooltip,allColors,configureLocale,datePickerDayStyles,datePickerDigitalClockStyles,datePickerInputStyles,datePickerLayoutStyles,datePickerPopperStyles,datePickerYearStyles,formatDate,getActiveLocale,getColor,isValidColor,useAutoloadProgress,useDropzone,useModelContextTool,useReduxFormField};