@producteca/producteca-ui-kit 1.68.0 → 1.69.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.
@@ -1,6 +1,6 @@
1
1
  import { MenuProps } from '@mui/material/Menu';
2
2
 
3
3
  export declare const StyledMenu: import('@emotion/styled').StyledComponent<MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
4
- export declare const StyledButton: import('@emotion/styled').StyledComponent<import('@mui/material/Button').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, keyof import('@mui/material/Button').ButtonOwnProps> & Omit<import('@mui/material').ButtonBaseOwnProps, "type" | "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | keyof import('@mui/material/Button').ButtonOwnProps> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
4
+ export declare const StyledButton: import('@emotion/styled').StyledComponent<import('@mui/material/Button').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, keyof import('@mui/material/Button').ButtonOwnProps> & Omit<import('@mui/material').ButtonBaseOwnProps, "action" | "type" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | keyof import('@mui/material/Button').ButtonOwnProps> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
5
5
  ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
6
- }, "size" | "type" | "variant" | "disabled" | "className" | "children" | "color" | "style" | "classes" | "sx" | "tabIndex" | "href" | "action" | "loading" | "loadingIndicator" | "fullWidth" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "disableElevation" | "endIcon" | "loadingPosition" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
6
+ }, "style" | "disabled" | "action" | "size" | "type" | "variant" | "className" | "children" | "color" | "classes" | "sx" | "tabIndex" | "href" | "loading" | "loadingIndicator" | "fullWidth" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "disableElevation" | "endIcon" | "loadingPosition" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
@@ -6,5 +6,8 @@ export declare const ConditionalOperator: {
6
6
  displayName: string;
7
7
  VALUE_OR: string;
8
8
  VALUE_AND: string;
9
+ } & {
10
+ VALUE_OR: string;
11
+ VALUE_AND: string;
9
12
  };
10
13
  export default ConditionalOperator;
@@ -1,9 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { jsxs, jsx as jsx$1, Fragment as Fragment$1 } from "react/jsx-runtime";
4
+ import { jsx as jsx$1, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
5
5
  import * as React from "react";
6
- import React__default, { isValidElement, cloneElement, Children, forwardRef, useContext, useState, useCallback, useLayoutEffect, useRef, useMemo, createContext, Component, Fragment, useEffect, memo, createElement, useReducer } from "react";
6
+ import React__default, { forwardRef, isValidElement, cloneElement, Children, useContext, useState, useCallback, useLayoutEffect, useRef, useMemo, createContext, Component, Fragment, useEffect, memo, createElement, useReducer } from "react";
7
7
  import * as ReactDOM from "react-dom";
8
8
  import ReactDOM__default, { createPortal, unstable_batchedUpdates } from "react-dom";
9
9
  function r(e) {
@@ -19,6 +19,57 @@ function clsx() {
19
19
  for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
20
20
  return n;
21
21
  }
22
+ const DEBUG_ENVS = ["local", "development"];
23
+ const readEnv = () => {
24
+ const proc = globalThis.process;
25
+ if (proc?.env?.ENV) return proc.env.ENV;
26
+ const escapeHatch = globalThis.__PRODUCTECA_UI_ENV__;
27
+ if (typeof escapeHatch === "string") return escapeHatch;
28
+ return void 0;
29
+ };
30
+ const isDebugEnabled = () => DEBUG_ENVS.indexOf(readEnv() ?? "") !== -1;
31
+ const logHandler = (component, handler, args) => {
32
+ console.debug(`[producteca-ui-kit] ${component}.${handler} →`, ...args);
33
+ };
34
+ const MAX_DEPTH = 4;
35
+ const isFunction$5 = (value) => typeof value === "function";
36
+ const isHandlerKey = (key) => /^on[A-Z]/.test(key);
37
+ const isReactElement = (value) => typeof value === "object" && value !== null && "$$typeof" in value;
38
+ const isPlainObject$3 = (value) => {
39
+ if (typeof value !== "object" || value === null || isReactElement(value)) return false;
40
+ const proto = Object.getPrototypeOf(value);
41
+ return proto === Object.prototype || proto === null;
42
+ };
43
+ const wrapHandler = (fn3, componentName, path) => (...args) => {
44
+ logHandler(componentName, path, args);
45
+ return fn3(...args);
46
+ };
47
+ const wrapDeep = (value, componentName, path, depth) => {
48
+ if (depth > MAX_DEPTH) return value;
49
+ if (Array.isArray(value)) {
50
+ return value.map((item2, index2) => wrapDeep(item2, componentName, `${path}[${index2}]`, depth + 1));
51
+ }
52
+ if (isPlainObject$3(value)) {
53
+ const next2 = {};
54
+ for (const key of Object.keys(value)) {
55
+ const child = value[key];
56
+ const childPath = path ? `${path}.${key}` : key;
57
+ next2[key] = isHandlerKey(key) && isFunction$5(child) ? wrapHandler(child, componentName, childPath) : wrapDeep(child, componentName, childPath, depth + 1);
58
+ }
59
+ return next2;
60
+ }
61
+ return value;
62
+ };
63
+ function withDebugHandlers(Component2, componentName) {
64
+ if (!isDebugEnabled()) return Component2;
65
+ const Wrapped = forwardRef((props, ref) => {
66
+ const next2 = wrapDeep(props, componentName, "", 0);
67
+ const Cmp = Component2;
68
+ return /* @__PURE__ */ jsx$1(Cmp, { ...next2, ...ref ? { ref } : {} });
69
+ });
70
+ Wrapped.displayName = `withDebugHandlers(${componentName})`;
71
+ return Wrapped;
72
+ }
22
73
  const btn = "button-module_btn_XFZLT";
23
74
  const disabled$9 = "button-module_disabled_tB8LZ";
24
75
  const fullwidth$2 = "button-module_fullwidth_03y8a";
@@ -49,7 +100,7 @@ const styles$J = {
49
100
  error: error$4,
50
101
  outline: outline$1
51
102
  };
52
- const Button$2 = React__default.forwardRef(({
103
+ const ButtonBase$1 = React__default.forwardRef(({
53
104
  type = "button",
54
105
  variant = "primary",
55
106
  size: size2 = "lg",
@@ -79,7 +130,8 @@ const Button$2 = React__default.forwardRef(({
79
130
  }
80
131
  );
81
132
  });
82
- Button$2.displayName = "Button";
133
+ ButtonBase$1.displayName = "Button";
134
+ const Button$2 = withDebugHandlers(ButtonBase$1, "Button");
83
135
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
84
136
  function getDefaultExportFromCjs(x) {
85
137
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
@@ -9980,7 +10032,7 @@ const ColorValues = map$2(allColors, "color");
9980
10032
  const Shades = map$2(Colors["grey"], (color2, shade) => shade);
9981
10033
  const Categories = map$2(Colors, (shades, category) => category);
9982
10034
  const isValidColor = (color2) => includes$1(ColorValues, color2);
9983
- const CustomIcon = ({
10035
+ const CustomIconBase = ({
9984
10036
  color: color2 = getColor("grey", "500"),
9985
10037
  size: size2 = "16",
9986
10038
  sx,
@@ -10021,6 +10073,7 @@ const _translateSizeToFontSize = (size2) => {
10021
10073
  };
10022
10074
  return transform[size2] || transform["16"];
10023
10075
  };
10076
+ const CustomIcon = withDebugHandlers(CustomIconBase, "CustomIcon");
10024
10077
  const chip = "chip-module_chip_U3kfP";
10025
10078
  const title$8 = "chip-module_title_DARz9";
10026
10079
  const text = "chip-module_text_4xvju";
@@ -10051,7 +10104,7 @@ const styles$H = {
10051
10104
  primary,
10052
10105
  action: action$1
10053
10106
  };
10054
- const Chip$1 = ({ isActive, title: title2, text: text2, content: content2, onRemove = void 0, disabled: disabled2 = false, variant = "primary", size: size2 = "lg" }) => {
10107
+ const ChipBase = ({ isActive, title: title2, text: text2, content: content2, onRemove = void 0, disabled: disabled2 = false, variant = "primary", size: size2 = "lg" }) => {
10055
10108
  const canRemove = onRemove && !disabled2;
10056
10109
  return /* @__PURE__ */ jsx$1(Grow, { in: !!text2 || !!title2 || !!content2, unmountOnExit: true, children: /* @__PURE__ */ jsxs("span", { className: clsx(styles$H.chip, styles$H[variant], styles$H[size2], { [styles$H.disabled]: disabled2, [styles$H.active]: isActive }), children: [
10057
10110
  content2,
@@ -10066,6 +10119,7 @@ const Chip$1 = ({ isActive, title: title2, text: text2, content: content2, onRem
10066
10119
  canRemove && /* @__PURE__ */ jsx$1(CustomIcon, { className: styles$H.action, size: "8", onClick: canRemove ? onRemove : void 0, color: getColor("grey", "700"), children: /* @__PURE__ */ jsx$1(CloseRoundedIcon, {}) })
10067
10120
  ] }) });
10068
10121
  };
10122
+ const Chip$1 = withDebugHandlers(ChipBase, "Chip");
10069
10123
  const defaultColor$c = getColor("grey", "500");
10070
10124
  const SearchPublication = ({ size: size2 = 100, color: color2 = defaultColor$c }) => {
10071
10125
  const resolvedColor = isValidColor(color2) ? color2 : defaultColor$c;
@@ -20658,7 +20712,7 @@ const ClearComponent = ({
20658
20712
  return isClearable && (isArrayWithSome || hasSelectedValue) ? /* @__PURE__ */ jsx$1("a", { className: styles$B["producteca-select-field__is-clearable"], onClick: () => handleChange(null), children: /* @__PURE__ */ jsx$1(CustomIcon, { children: /* @__PURE__ */ jsx$1(ClearRounded, {}) }) }) : null;
20659
20713
  };
20660
20714
  const _valueGetter = (option, getter) => getter ? getter(option) : option?.value;
20661
- const SelectField = (props) => {
20715
+ const SelectFieldBase = (props) => {
20662
20716
  const {
20663
20717
  name,
20664
20718
  label: label2,
@@ -20796,6 +20850,7 @@ const SelectField = (props) => {
20796
20850
  ] })
20797
20851
  ] });
20798
20852
  };
20853
+ const SelectField = withDebugHandlers(SelectFieldBase, "SelectField");
20799
20854
  const disabled$7 = "textInput-module_disabled_zmiie";
20800
20855
  const fullwidth = "textInput-module_fullwidth_uG3VU";
20801
20856
  const lg$9 = "textInput-module_lg_rvzUN";
@@ -20821,7 +20876,7 @@ const styles$A = {
20821
20876
  sm: sm$a,
20822
20877
  title: title$7
20823
20878
  };
20824
- const TextInput = (props) => {
20879
+ const TextInputBase = (props) => {
20825
20880
  const {
20826
20881
  isValid: isValid2,
20827
20882
  onChange: onChange2,
@@ -20911,6 +20966,7 @@ const TextInput = (props) => {
20911
20966
  }
20912
20967
  );
20913
20968
  };
20969
+ const TextInput = withDebugHandlers(TextInputBase, "TextInput");
20914
20970
  const Visibility = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
20915
20971
  d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
20916
20972
  }), "Visibility");
@@ -57738,7 +57794,7 @@ const getPickerProps = ({
57738
57794
  }
57739
57795
  }
57740
57796
  });
57741
- const DatePickerInput = (props) => {
57797
+ const DatePickerInputBase = (props) => {
57742
57798
  const {
57743
57799
  meta,
57744
57800
  name,
@@ -57872,6 +57928,7 @@ const DatePickerInput = (props) => {
57872
57928
  }
57873
57929
  );
57874
57930
  };
57931
+ const DatePickerInput = withDebugHandlers(DatePickerInputBase, "DatePickerInput");
57875
57932
  const DatePicker2 = ({ label: label2, rightAdornment, ...props }) => {
57876
57933
  return /* @__PURE__ */ jsx$1(FormField, { type: "date", label: label2, rightAdornment, ...props });
57877
57934
  };
@@ -65374,7 +65431,7 @@ const styles$u = {
65374
65431
  md: md$5,
65375
65432
  sm: sm$7
65376
65433
  };
65377
- const CheckboxInputGroup = ({
65434
+ const CheckboxInputGroupBase = ({
65378
65435
  title: title2,
65379
65436
  name,
65380
65437
  type = "checkbox",
@@ -65423,7 +65480,8 @@ const CheckboxInputGroup = ({
65423
65480
  }) })
65424
65481
  ] });
65425
65482
  };
65426
- const CheckboxInput = ({
65483
+ const CheckboxInputGroup = withDebugHandlers(CheckboxInputGroupBase, "CheckboxInputGroup");
65484
+ const CheckboxInputBase = ({
65427
65485
  id,
65428
65486
  name,
65429
65487
  checked,
@@ -65451,6 +65509,7 @@ const CheckboxInput = ({
65451
65509
  }
65452
65510
  );
65453
65511
  };
65512
+ const CheckboxInput = withDebugHandlers(CheckboxInputBase, "CheckboxInput");
65454
65513
  var baseKeys$1 = _baseKeys, getTag$1 = _getTag, isArguments = isArguments_1, isArray = isArray_1, isArrayLike$2 = isArrayLike_1, isBuffer = isBufferExports, isPrototype = _isPrototype, isTypedArray = isTypedArray_1;
65455
65514
  var mapTag$1 = "[object Map]", setTag$1 = "[object Set]";
65456
65515
  var objectProto = Object.prototype;
@@ -65590,7 +65649,7 @@ const _convertValueToOption = (value) => {
65590
65649
  if (!value) return null;
65591
65650
  return { value, label: value };
65592
65651
  };
65593
- const Searcher = (props) => {
65652
+ const SearcherBase = (props) => {
65594
65653
  const {
65595
65654
  name,
65596
65655
  label: label2,
@@ -65780,6 +65839,7 @@ const Searcher = (props) => {
65780
65839
  )
65781
65840
  ] });
65782
65841
  };
65842
+ const Searcher = withDebugHandlers(SearcherBase, "Searcher");
65783
65843
  const title$5 = "switchInput-module_title_lBK2p";
65784
65844
  const disabled$4 = "switchInput-module_disabled_yz9dR";
65785
65845
  const lg$5 = "switchInput-module_lg_WMIDO";
@@ -65798,7 +65858,7 @@ const styles$s = {
65798
65858
  md: md$4,
65799
65859
  sm: sm$6
65800
65860
  };
65801
- const SwitchInputGroup = ({
65861
+ const SwitchInputGroupBase = ({
65802
65862
  title: title2,
65803
65863
  name,
65804
65864
  items,
@@ -65861,7 +65921,8 @@ const SwitchInputGroup = ({
65861
65921
  }) })
65862
65922
  ] });
65863
65923
  };
65864
- const SwitchInput = ({
65924
+ const SwitchInputGroup = withDebugHandlers(SwitchInputGroupBase, "SwitchInputGroup");
65925
+ const SwitchInputBase = ({
65865
65926
  id,
65866
65927
  name,
65867
65928
  checked,
@@ -65887,6 +65948,7 @@ const SwitchInput = ({
65887
65948
  }
65888
65949
  );
65889
65950
  };
65951
+ const SwitchInput = withDebugHandlers(SwitchInputBase, "SwitchInput");
65890
65952
  const styles$r = {
65891
65953
  "async-content-container": "asyncContent-module_async-content-container_UEl81",
65892
65954
  "state-container": "asyncContent-module_state-container_FgE4I",
@@ -65928,7 +65990,7 @@ const styles$p = {
65928
65990
  "weight-900": "link-module_weight-900_Yxl7i",
65929
65991
  disabled: disabled$3
65930
65992
  };
65931
- const Link = React__default.memo(React__default.forwardRef(({
65993
+ const LinkBase = React__default.memo(React__default.forwardRef(({
65932
65994
  size: size2 = "md",
65933
65995
  decoration = "none",
65934
65996
  weight,
@@ -65973,9 +66035,10 @@ const Link = React__default.memo(React__default.forwardRef(({
65973
66035
  }
65974
66036
  );
65975
66037
  }));
65976
- Link.displayName = "Link";
66038
+ LinkBase.displayName = "Link";
66039
+ const Link = withDebugHandlers(LinkBase, "Link");
65977
66040
  const DefaultIcon$1 = /* @__PURE__ */ jsx$1(EmptyStateIcon, {});
65978
- const EmptyState = ({
66041
+ const EmptyStateBase = ({
65979
66042
  onActionClick,
65980
66043
  icon: icon2 = DefaultIcon$1,
65981
66044
  actionText = locale("reloadPage"),
@@ -65996,6 +66059,7 @@ const EmptyState = ({
65996
66059
  ] })
65997
66060
  ] });
65998
66061
  };
66062
+ const EmptyState = withDebugHandlers(EmptyStateBase, "EmptyState");
65999
66063
  const ErrorView = memo(({
66000
66064
  text: text2,
66001
66065
  actionText,
@@ -66108,7 +66172,7 @@ const _getStatusComponent = ({
66108
66172
  };
66109
66173
  return statusComponents[status];
66110
66174
  };
66111
- const AsyncContent = memo(({
66175
+ const AsyncContentBase = memo(({
66112
66176
  error: error2,
66113
66177
  empty,
66114
66178
  success: success2,
@@ -66129,7 +66193,8 @@ const AsyncContent = memo(({
66129
66193
  success: success2
66130
66194
  }) });
66131
66195
  });
66132
- AsyncContent.displayName = "AsyncContent";
66196
+ AsyncContentBase.displayName = "AsyncContent";
66197
+ const AsyncContent = withDebugHandlers(AsyncContentBase, "AsyncContent");
66133
66198
  const fullPage = "actionBar-module_fullPage_A4wiw";
66134
66199
  const modal$1 = "actionBar-module_modal_jZfAJ";
66135
66200
  const page = "actionBar-module_page_Oq8Jb";
@@ -66139,7 +66204,7 @@ const styles$o = {
66139
66204
  modal: modal$1,
66140
66205
  page
66141
66206
  };
66142
- const ActionBar = ({ variant = "page", saveProps, cancelProps, previousProps }) => {
66207
+ const ActionBarBase = ({ variant = "page", saveProps, cancelProps, previousProps }) => {
66143
66208
  const { onCancel, label: cancelText = locale("cancel") } = cancelProps || {};
66144
66209
  const { onPrevious, label: previousText = locale("previous"), ...previousOtherProps } = previousProps || {};
66145
66210
  const { onSave, label: saveText = locale("save"), ...saveOtherProps } = saveProps || {};
@@ -66149,13 +66214,14 @@ const ActionBar = ({ variant = "page", saveProps, cancelProps, previousProps })
66149
66214
  !!onSave && /* @__PURE__ */ jsx$1(Button$2, { label: saveText, onClick: onSave, ...saveOtherProps })
66150
66215
  ] });
66151
66216
  };
66217
+ const ActionBar = withDebugHandlers(ActionBarBase, "ActionBar");
66152
66218
  const Check = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
66153
66219
  d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
66154
66220
  }), "Check");
66155
66221
  const ContentCopy = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
66156
66222
  d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
66157
66223
  }), "ContentCopy");
66158
- const CopyButton = ({
66224
+ const CopyButtonBase = ({
66159
66225
  onClick,
66160
66226
  copyText = locale("copyButton.copy"),
66161
66227
  copiedText = locale("copyButton.copied"),
@@ -66199,6 +66265,7 @@ const Icons = ({ copied }) => /* @__PURE__ */ jsxs("div", { className: "copy-btn
66199
66265
  /* @__PURE__ */ jsx$1("div", { className: `copy-icon ${copied ? "hidden" : ""}`, children: /* @__PURE__ */ jsx$1(ContentCopy, { "data-testid": "ContentCopyIcon" }) }),
66200
66266
  /* @__PURE__ */ jsx$1("div", { className: `check-icon ${!copied ? "hidden" : ""}`, children: /* @__PURE__ */ jsx$1(Check, {}) })
66201
66267
  ] });
66268
+ const CopyButton = withDebugHandlers(CopyButtonBase, "CopyButton");
66202
66269
  const dense = "headerSection-module_dense_f1FWn";
66203
66270
  const content = "headerSection-module_content_5y2PB";
66204
66271
  const title$4 = "headerSection-module_title_cabYm";
@@ -66302,7 +66369,7 @@ const _getDefaultOptions = () => [
66302
66369
  { value: VALUE_OR, label: locale("conditionalOperator.or") },
66303
66370
  { value: VALUE_AND, label: locale("conditionalOperator.and") }
66304
66371
  ];
66305
- const ConditionalOperator = ({
66372
+ const ConditionalOperatorBase = ({
66306
66373
  name = "conditionalOperator",
66307
66374
  value,
66308
66375
  onChange: onChange2,
@@ -66340,9 +66407,13 @@ const ConditionalOperator = ({
66340
66407
  }
66341
66408
  );
66342
66409
  };
66343
- ConditionalOperator.displayName = "ConditionalOperator";
66344
- ConditionalOperator.VALUE_OR = VALUE_OR;
66345
- ConditionalOperator.VALUE_AND = VALUE_AND;
66410
+ ConditionalOperatorBase.displayName = "ConditionalOperator";
66411
+ ConditionalOperatorBase.VALUE_OR = VALUE_OR;
66412
+ ConditionalOperatorBase.VALUE_AND = VALUE_AND;
66413
+ const ConditionalOperator = Object.assign(
66414
+ withDebugHandlers(ConditionalOperatorBase, "ConditionalOperator"),
66415
+ { VALUE_OR, VALUE_AND }
66416
+ );
66346
66417
  const AutoStoriesIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
66347
66418
  d: "m19 1-5 5v11l5-4.5zM1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5V6c-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6m22 13.5V6c-.6-.45-1.25-.75-2-1v13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5v2c1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5z"
66348
66419
  }), "AutoStories");
@@ -67394,7 +67465,7 @@ const styles$f = {
67394
67465
  "fit-content": "modal-module_fit-content_CBdg6"
67395
67466
  };
67396
67467
  const ModalContext = createContext({ isLoading: false });
67397
- const Modal$1 = ({
67468
+ const ModalBase = ({
67398
67469
  open,
67399
67470
  onClose,
67400
67471
  children,
@@ -67414,6 +67485,7 @@ const Modal$1 = ({
67414
67485
  children: /* @__PURE__ */ jsx$1(ModalContext.Provider, { value: { isLoading }, children })
67415
67486
  }
67416
67487
  ) });
67488
+ const Modal$1 = withDebugHandlers(ModalBase, "Modal");
67417
67489
  const icon$1 = "modalTitle-module_icon_jKB-M";
67418
67490
  const title$3 = "modalTitle-module_title_U2a2X";
67419
67491
  const subtitle = "modalTitle-module_subtitle_DTIpI";
@@ -67473,7 +67545,7 @@ const styles$c = {
67473
67545
  disabled: disabled$2,
67474
67546
  active: active$2
67475
67547
  };
67476
- const Card = ({
67548
+ const CardBase = ({
67477
67549
  sx,
67478
67550
  icon: icon2,
67479
67551
  title: title2,
@@ -67503,6 +67575,7 @@ const Card = ({
67503
67575
  },
67504
67576
  title2
67505
67577
  );
67578
+ const Card = withDebugHandlers(CardBase, "Card");
67506
67579
  const InsertPhotoRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
67507
67580
  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"
67508
67581
  }), "InsertPhotoRounded");
@@ -67560,7 +67633,7 @@ const productecaStrategy = {
67560
67633
  clientId: 1,
67561
67634
  iconUrl: "https://imagesproducteca.blob.core.windows.net/producteca/isologo-producteca.svg"
67562
67635
  };
67563
- const PickChannelModal = ({
67636
+ const PickChannelModalBase = ({
67564
67637
  open,
67565
67638
  onClose,
67566
67639
  channels,
@@ -67587,6 +67660,7 @@ const PickChannelModal = ({
67587
67660
  ] })
67588
67661
  ] }) })
67589
67662
  ] });
67663
+ const PickChannelModal = withDebugHandlers(PickChannelModalBase, "PickChannelModal");
67590
67664
  function getLinearProgressUtilityClass(slot) {
67591
67665
  return generateUtilityClass("MuiLinearProgress", slot);
67592
67666
  }
@@ -68110,7 +68184,7 @@ const styles$9 = {
68110
68184
  warning,
68111
68185
  info
68112
68186
  };
68113
- const Alert = ({
68187
+ const AlertBase = ({
68114
68188
  message: message2,
68115
68189
  variant = "success",
68116
68190
  className,
@@ -68146,6 +68220,7 @@ const Alert = ({
68146
68220
  }
68147
68221
  );
68148
68222
  };
68223
+ const Alert = withDebugHandlers(AlertBase, "Alert");
68149
68224
  var baseKeys = _baseKeys, getTag = _getTag, isArrayLike$1 = isArrayLike_1, isString = isString_1, stringSize = _stringSize;
68150
68225
  var mapTag = "[object Map]", setTag = "[object Set]";
68151
68226
  function size(collection) {
@@ -68185,13 +68260,14 @@ const BreadcrumbItemComponent = ({ item: item2, index: index2, items }) => {
68185
68260
  " "
68186
68261
  ] });
68187
68262
  };
68188
- const Breadcrumb = ({
68263
+ const BreadcrumbBase = ({
68189
68264
  items,
68190
68265
  className,
68191
68266
  ...otherProps
68192
68267
  }) => {
68193
68268
  return /* @__PURE__ */ jsx$1("nav", { className: clsx(styles$8["breadcrumb"], className), "aria-label": "Breadcrumb", ...otherProps, children: map$2(items, (item2, index2) => /* @__PURE__ */ jsx$1(BreadcrumbItemComponent, { item: item2, index: index2, items }, index2)) });
68194
68269
  };
68270
+ const Breadcrumb = withDebugHandlers(BreadcrumbBase, "Breadcrumb");
68195
68271
  const MoreVertIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
68196
68272
  d: "M12 8c1.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"
68197
68273
  }), "MoreVert");
@@ -68259,7 +68335,7 @@ const ItemContent = ({
68259
68335
  ]
68260
68336
  }
68261
68337
  );
68262
- const MenuItemComponent = ({
68338
+ const MenuItemComponentBase = ({
68263
68339
  label: label2,
68264
68340
  icon: icon2,
68265
68341
  onClick,
@@ -68297,6 +68373,7 @@ const MenuItemComponent = ({
68297
68373
  }
68298
68374
  );
68299
68375
  };
68376
+ const MenuItemComponent = withDebugHandlers(MenuItemComponentBase, "MenuItemComponent");
68300
68377
  const MenuAction = ({
68301
68378
  items,
68302
68379
  id = "menu-action-button",
@@ -68374,7 +68451,7 @@ const styles$6 = {
68374
68451
  "warning-body": "warningModal-module_warning-body_5DHA9"
68375
68452
  };
68376
68453
  const DefaultIcon = /* @__PURE__ */ jsx$1(CustomIcon, { size: "32", color: getColor("secondary", "500"), children: /* @__PURE__ */ jsx$1(ErrorIcon, {}) });
68377
- const WarningModal = ({
68454
+ const WarningModalBase = ({
68378
68455
  open,
68379
68456
  icon: icon2,
68380
68457
  onSave,
@@ -68431,6 +68508,7 @@ const WarningModal = ({
68431
68508
  ]
68432
68509
  }
68433
68510
  );
68511
+ const WarningModal = withDebugHandlers(WarningModalBase, "WarningModal");
68434
68512
  var baseIteratee$1 = _baseIteratee, isArrayLike = isArrayLike_1, keys = keys_1;
68435
68513
  function createFind$1(findIndexFunc) {
68436
68514
  return function(collection, predicate, fromIndex) {
@@ -68484,7 +68562,7 @@ const styles$5 = {
68484
68562
  active: active$1,
68485
68563
  disabled
68486
68564
  };
68487
- const Tabs2 = ({
68565
+ const TabsBase = ({
68488
68566
  sx,
68489
68567
  items,
68490
68568
  value,
@@ -68584,6 +68662,7 @@ const sxTab = {
68584
68662
  padding: 0,
68585
68663
  minHeight: 0
68586
68664
  };
68665
+ const Tabs2 = withDebugHandlers(TabsBase, "Tabs");
68587
68666
  /*! *****************************************************************************
68588
68667
  Copyright (c) Microsoft Corporation.
68589
68668
 
@@ -72809,7 +72888,7 @@ const styles$4 = {
72809
72888
  "menu-item-collapsed": "sidebar-module_menu-item-collapsed_-Gz6l",
72810
72889
  active
72811
72890
  };
72812
- const AppSidebar = ({ title: title2, items }) => {
72891
+ const AppSidebarBase = ({ title: title2, items }) => {
72813
72892
  const [collapsed2, setCollapsed] = useState(false);
72814
72893
  return /* @__PURE__ */ jsx$1("div", { className: styles$4.wrapper, children: /* @__PURE__ */ jsxs(
72815
72894
  Sidebar,
@@ -72837,6 +72916,7 @@ const AppSidebar = ({ title: title2, items }) => {
72837
72916
  }
72838
72917
  ) });
72839
72918
  };
72919
+ const AppSidebar = withDebugHandlers(AppSidebarBase, "AppSidebar");
72840
72920
  const KeyboardArrowDownIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
72841
72921
  d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
72842
72922
  }), "KeyboardArrowDown");
@@ -72874,7 +72954,7 @@ const styles$3 = {
72874
72954
  sm,
72875
72955
  "MuiButton-endIcon": "dropdown-module_MuiButton-endIcon_h9XM7"
72876
72956
  };
72877
- const Dropdown = ({
72957
+ const DropdownBase = ({
72878
72958
  label: label2,
72879
72959
  items,
72880
72960
  disabled: disabled2 = false,
@@ -72970,6 +73050,7 @@ const Dropdown = ({
72970
73050
  )
72971
73051
  ] });
72972
73052
  };
73053
+ const Dropdown = withDebugHandlers(DropdownBase, "Dropdown");
72973
73054
  function useCombinedRefs() {
72974
73055
  for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
72975
73056
  refs[_key] = arguments[_key];
@@ -76899,7 +76980,7 @@ const _buildItem = (currentLength) => {
76899
76980
  value: ""
76900
76981
  };
76901
76982
  };
76902
- const DraggableList = ({
76983
+ const DraggableListBase = ({
76903
76984
  label: label2,
76904
76985
  addLabel,
76905
76986
  onChange: onChange2,
@@ -77029,6 +77110,7 @@ const DraggableList = ({
77029
77110
  ) })
77030
77111
  ] });
77031
77112
  };
77113
+ const DraggableList = withDebugHandlers(DraggableListBase, "DraggableList");
77032
77114
  const CheckRoundedIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
77033
77115
  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"
77034
77116
  }), "CheckRounded");