@mw-kit/mw-ui 1.8.13 → 1.8.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -7710,10 +7710,10 @@ var Button = (props) => {
7710
7710
  var Button_default = Button;
7711
7711
 
7712
7712
  // src/components/Filters/AppliedFilters/components/Menu/index.tsx
7713
- import { useEffect as useEffect14, useState as useState20 } from "react";
7713
+ import { useEffect as useEffect15, useState as useState20 } from "react";
7714
7714
 
7715
7715
  // src/components/Input/index.tsx
7716
- import React36 from "react";
7716
+ import React37 from "react";
7717
7717
 
7718
7718
  // src/components/Input/components/Checkbox/index.tsx
7719
7719
  import React5 from "react";
@@ -13112,7 +13112,7 @@ Range.displayName = "input";
13112
13112
  var Range_default = Range;
13113
13113
 
13114
13114
  // src/components/Input/components/Select/index.tsx
13115
- import React32, { useCallback as useCallback3, useEffect as useEffect13, useState as useState18 } from "react";
13115
+ import React33, { useCallback as useCallback3, useEffect as useEffect14, useState as useState18 } from "react";
13116
13116
 
13117
13117
  // src/components/Input/components/Select/hooks/Select/index.tsx
13118
13118
  import React28 from "react";
@@ -13347,7 +13347,10 @@ var useSelect = (props, [highlight, setHighlight], [options, setOptions], setOpe
13347
13347
  var Select_default = useSelect;
13348
13348
 
13349
13349
  // src/components/Input/components/Select/hooks/SelectMultiple/index.tsx
13350
- import React31, { useState as useState17 } from "react";
13350
+ import React32, { useEffect as useEffect13, useState as useState17 } from "react";
13351
+
13352
+ // src/components/Input/components/Select/hooks/SelectMultiple/components/Footer/index.tsx
13353
+ import React30 from "react";
13351
13354
 
13352
13355
  // src/components/Input/components/Select/hooks/SelectMultiple/context.ts
13353
13356
  import React29 from "react";
@@ -13356,15 +13359,22 @@ var useContext3 = () => React29.useContext(Provider4);
13356
13359
  var context_default3 = Provider4;
13357
13360
 
13358
13361
  // src/components/Input/components/Select/hooks/SelectMultiple/components/Footer/index.tsx
13359
- import { jsx as jsx322 } from "react/jsx-runtime";
13362
+ import { jsx as jsx322, jsxs as jsxs159 } from "react/jsx-runtime";
13360
13363
  var Footer2 = () => {
13361
13364
  const context = useContext3();
13362
13365
  const {
13363
13366
  props: { value, setValue },
13364
13367
  checked: [checked],
13365
- setOpen
13368
+ setOpen,
13369
+ limits
13366
13370
  } = context;
13371
+ const { min, max, enabled, error } = limits;
13372
+ const isDirty = checked.length !== value.length || checked.some((e) => !value.includes(e.value));
13373
+ const belowMin = enabled && typeof min === "number" ? checked.length < min : false;
13374
+ const aboveMax = enabled && typeof max === "number" ? checked.length > max : false;
13375
+ const disabled = !!error || !isDirty || belowMin || aboveMax;
13367
13376
  const onClick = () => {
13377
+ if (disabled) return;
13368
13378
  const [value2, data] = checked.reduce(
13369
13379
  (r, e) => [
13370
13380
  [...r[0], e.value],
@@ -13375,22 +13385,35 @@ var Footer2 = () => {
13375
13385
  setValue(value2, data);
13376
13386
  setOpen(false);
13377
13387
  };
13378
- const isDirty = checked.length !== value.length || checked.some((e) => !value.includes(e.value));
13379
- return /* @__PURE__ */ jsx322(
13380
- Button_default2,
13381
- {
13382
- type: "button",
13383
- content: "Aplicar",
13384
- onClick,
13385
- style: { marginRight: "-3.5px" },
13386
- disabled: !isDirty
13387
- }
13388
- );
13388
+ return /* @__PURE__ */ jsxs159(React30.Fragment, { children: [
13389
+ error && /* @__PURE__ */ jsx322(
13390
+ "span",
13391
+ {
13392
+ style: {
13393
+ padding: "7px",
13394
+ color: "#d32f2f",
13395
+ fontSize: "12px",
13396
+ flex: 1
13397
+ },
13398
+ children: error
13399
+ }
13400
+ ),
13401
+ /* @__PURE__ */ jsx322(
13402
+ Button_default2,
13403
+ {
13404
+ type: "button",
13405
+ content: "Aplicar",
13406
+ onClick,
13407
+ style: { marginRight: "-3.5px" },
13408
+ disabled
13409
+ }
13410
+ )
13411
+ ] });
13389
13412
  };
13390
13413
  var Footer_default = Footer2;
13391
13414
 
13392
13415
  // src/components/Input/components/Select/hooks/SelectMultiple/components/Header/index.tsx
13393
- import React30 from "react";
13416
+ import React31 from "react";
13394
13417
 
13395
13418
  // src/components/Link/index.tsx
13396
13419
  import styled39, { css as css29 } from "styled-components";
@@ -13452,13 +13475,15 @@ var SelectAllContainer = styled40.div`
13452
13475
  `;
13453
13476
 
13454
13477
  // src/components/Input/components/Select/hooks/SelectMultiple/components/Header/index.tsx
13455
- import { jsx as jsx324, jsxs as jsxs159 } from "react/jsx-runtime";
13478
+ import { jsx as jsx324, jsxs as jsxs160 } from "react/jsx-runtime";
13456
13479
  var CheckAll = () => {
13457
13480
  const context = useContext3();
13458
13481
  const {
13459
13482
  checked: [checked, setChecked],
13460
- options
13483
+ options,
13484
+ limits
13461
13485
  } = context;
13486
+ const { max, enabled, error } = limits;
13462
13487
  const maxCheck = options.reduce((count, o, idx) => {
13463
13488
  var _a;
13464
13489
  if (o.disabled) return count;
@@ -13466,24 +13491,25 @@ var CheckAll = () => {
13466
13491
  if (rule) return count;
13467
13492
  return count + 1;
13468
13493
  }, 0);
13494
+ const maxAllowed = enabled && typeof max === "number" ? Math.min(max, maxCheck) : maxCheck;
13469
13495
  const onClick = () => {
13470
13496
  setChecked((prev) => {
13471
- if (prev.length >= maxCheck) return [];
13472
- const checked2 = options.reduce(
13473
- (checked3, o, idx) => {
13474
- var _a;
13475
- if (o.disabled) return checked3;
13476
- const rule = (_a = o.rules) == null ? void 0 : _a.some((rule2) => rule2(idx, o.data) !== true);
13477
- if (rule) return checked3;
13478
- return [...checked3, { value: o.value, data: o.data }];
13479
- },
13480
- []
13481
- );
13497
+ if (prev.length >= maxAllowed) return [];
13498
+ if (maxAllowed <= 0) return [];
13499
+ const checked2 = [];
13500
+ options.forEach((o, idx) => {
13501
+ var _a;
13502
+ if (checked2.length >= maxAllowed) return;
13503
+ if (o.disabled) return;
13504
+ const rule = (_a = o.rules) == null ? void 0 : _a.some((rule2) => rule2(idx, o.data) !== true);
13505
+ if (rule) return;
13506
+ checked2.push({ value: o.value, data: o.data });
13507
+ });
13482
13508
  return checked2;
13483
13509
  });
13484
13510
  };
13485
- return /* @__PURE__ */ jsxs159(SelectAllContainer, { children: [
13486
- /* @__PURE__ */ jsxs159("b", { children: [
13511
+ return /* @__PURE__ */ jsxs160(SelectAllContainer, { children: [
13512
+ /* @__PURE__ */ jsxs160("b", { children: [
13487
13513
  "Selecionados (",
13488
13514
  checked.length,
13489
13515
  ")"
@@ -13491,8 +13517,8 @@ var CheckAll = () => {
13491
13517
  /* @__PURE__ */ jsx324(
13492
13518
  Link_default2,
13493
13519
  {
13494
- children: checked.length >= maxCheck ? "Desmarcar todos" : "Selecionar todos",
13495
- onClick
13520
+ children: checked.length >= maxAllowed ? "Desmarcar todos" : "Selecionar todos",
13521
+ onClick: error ? void 0 : onClick
13496
13522
  }
13497
13523
  )
13498
13524
  ] });
@@ -13500,13 +13526,15 @@ var CheckAll = () => {
13500
13526
  var Header3 = () => {
13501
13527
  const context = useContext3();
13502
13528
  if (!context.props.search) {
13503
- return /* @__PURE__ */ jsx324(React30.Fragment, {});
13529
+ return /* @__PURE__ */ jsx324(React31.Fragment, {});
13504
13530
  }
13505
13531
  const {
13506
- searchInput: [searchInput, setSearchInput]
13532
+ searchInput: [searchInput, setSearchInput],
13533
+ limits
13507
13534
  } = context;
13508
- return /* @__PURE__ */ jsxs159(HeaderContainer2, { children: [
13509
- context.props.selectAll && /* @__PURE__ */ jsx324(CheckAll, {}),
13535
+ const showSelectAll = context.props.selectAll && limits.max === void 0;
13536
+ return /* @__PURE__ */ jsxs160(HeaderContainer2, { children: [
13537
+ showSelectAll && /* @__PURE__ */ jsx324(CheckAll, {}),
13510
13538
  /* @__PURE__ */ jsx324(
13511
13539
  Input_default,
13512
13540
  {
@@ -13531,22 +13559,30 @@ import { jsx as jsx325 } from "react/jsx-runtime";
13531
13559
  var Label6 = (props) => {
13532
13560
  const context = useContext3();
13533
13561
  const {
13534
- checked: [checked, setChecked]
13562
+ checked: [checked, setChecked],
13563
+ limits
13535
13564
  } = context;
13565
+ const { max, enabled } = limits;
13536
13566
  const { disabled, value } = props.option;
13567
+ const isChecked = checked.findIndex((e) => e.value === value) !== -1;
13568
+ const disabledByLimit = enabled && typeof max === "number" && checked.length >= max && !isChecked;
13569
+ const finalDisabled = disabled || disabledByLimit || !!limits.error;
13537
13570
  const LabelComponent = props.label;
13538
13571
  return /* @__PURE__ */ jsx325(
13539
13572
  Checkbox_default,
13540
13573
  {
13541
13574
  type: "checkbox",
13542
- checked: checked.findIndex((e) => e.value === value) !== -1,
13575
+ checked: isChecked,
13543
13576
  label: typeof LabelComponent !== "function" ? LabelComponent : /* @__PURE__ */ jsx325(LabelComponent, { ...props.option }),
13544
- disabled,
13577
+ disabled: finalDisabled,
13545
13578
  onChange: (event) => {
13546
- const isChecked = event.target.checked;
13579
+ const isChecked2 = event.target.checked;
13547
13580
  setChecked((prev) => {
13548
13581
  const newState = prev.filter((v) => v.value !== value);
13549
- if (isChecked) {
13582
+ if (isChecked2) {
13583
+ if (enabled && typeof max === "number" && prev.length >= max) {
13584
+ return prev;
13585
+ }
13550
13586
  const e = props.value.find((e2) => e2.value === value);
13551
13587
  newState.push(
13552
13588
  e || {
@@ -13571,24 +13607,44 @@ var Label6 = (props) => {
13571
13607
  };
13572
13608
  var Label_default2 = Label6;
13573
13609
 
13610
+ // src/components/Input/components/Select/hooks/SelectMultiple/utils.ts
13611
+ var resolveLimits = (minSelected, maxSelected) => {
13612
+ const min = typeof minSelected === "number" && minSelected >= 0 ? minSelected : void 0;
13613
+ const max = typeof maxSelected === "number" && maxSelected >= 0 ? maxSelected : void 0;
13614
+ const enabled = min !== void 0 || max !== void 0;
13615
+ if (!enabled) {
13616
+ return { enabled };
13617
+ }
13618
+ if (min !== void 0 && max !== void 0 && min > max) {
13619
+ return {
13620
+ enabled: false,
13621
+ error: "minSelected cannot be greater than maxSelected"
13622
+ };
13623
+ }
13624
+ return { min, max, enabled };
13625
+ };
13626
+
13574
13627
  // src/components/Input/components/Select/hooks/SelectMultiple/index.tsx
13575
- import { jsx as jsx326, jsxs as jsxs160 } from "react/jsx-runtime";
13576
- var getOptions2 = (options, value) => {
13628
+ import { jsx as jsx326, jsxs as jsxs161 } from "react/jsx-runtime";
13629
+ var getOptions2 = (options, value, checked, limits) => {
13630
+ const limitReached = limits.enabled && typeof limits.max === "number" && checked.length >= limits.max && !limits.error;
13577
13631
  return options.map((option) => {
13578
13632
  const { label, onClick } = option;
13579
13633
  const data = { data: option.data, value: option.value };
13634
+ const isChecked = checked.some((c) => c.value === option.value);
13635
+ const disabled = option.disabled || (!!limits.error || limitReached && !isChecked);
13580
13636
  const parsed = {
13581
13637
  label: (option2) => /* @__PURE__ */ jsx326(
13582
13638
  Label_default2,
13583
13639
  {
13584
- option: { ...data, disabled: option2.disabled },
13640
+ option: { ...data, disabled: disabled || option2.disabled },
13585
13641
  label,
13586
13642
  value
13587
13643
  }
13588
13644
  ),
13589
13645
  onClick,
13590
13646
  data,
13591
- disabled: option.disabled,
13647
+ disabled,
13592
13648
  rules: option.rules,
13593
13649
  keepOpen: true
13594
13650
  };
@@ -13610,7 +13666,14 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
13610
13666
  const [checked, setChecked] = useState17([
13611
13667
  ...initial
13612
13668
  ]);
13613
- const parsedOptions = getOptions2(options, initial);
13669
+ const limits = resolveLimits(props.minSelected, props.maxSelected);
13670
+ const { max, enabled } = limits;
13671
+ useEffect13(() => {
13672
+ if (limits.error) {
13673
+ console.error(`[SelectMultiple]: ${limits.error}`);
13674
+ }
13675
+ }, [limits.error]);
13676
+ const parsedOptions = getOptions2(options, initial, checked, limits);
13614
13677
  const inputContent = getInputContent2(props.value);
13615
13678
  const onReset = () => {
13616
13679
  setChecked([...initial]);
@@ -13622,6 +13685,9 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
13622
13685
  setChecked((prev) => {
13623
13686
  const index2 = prev.findIndex((e) => e.value === option.value);
13624
13687
  if (index2 < 0) {
13688
+ if (enabled && typeof max === "number" && prev.length >= max) {
13689
+ return prev;
13690
+ }
13625
13691
  return [
13626
13692
  ...prev,
13627
13693
  {
@@ -13642,7 +13708,7 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
13642
13708
  onReset,
13643
13709
  menu: {
13644
13710
  itemSpacing: void 0,
13645
- before: /* @__PURE__ */ jsxs160(React31.Fragment, { children: [
13711
+ before: /* @__PURE__ */ jsxs161(React32.Fragment, { children: [
13646
13712
  /* @__PURE__ */ jsx326(Header_default2, {}),
13647
13713
  /* @__PURE__ */ jsx326(
13648
13714
  HiddenInput,
@@ -13662,7 +13728,13 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
13662
13728
  return /* @__PURE__ */ jsx326(
13663
13729
  context_default3.Provider,
13664
13730
  {
13665
- value: { ...base, props, options, checked: [checked, setChecked] },
13731
+ value: {
13732
+ ...base,
13733
+ props,
13734
+ options,
13735
+ checked: [checked, setChecked],
13736
+ limits
13737
+ },
13666
13738
  children
13667
13739
  }
13668
13740
  );
@@ -13690,8 +13762,8 @@ var useSelectMultiple = (props, [highlight, setHighlight], [options, setOptions]
13690
13762
  var SelectMultiple_default = useSelectMultiple;
13691
13763
 
13692
13764
  // src/components/Input/components/Select/index.tsx
13693
- import { jsx as jsx327, jsxs as jsxs161 } from "react/jsx-runtime";
13694
- var Select = React32.forwardRef(
13765
+ import { jsx as jsx327, jsxs as jsxs162 } from "react/jsx-runtime";
13766
+ var Select = React33.forwardRef(
13695
13767
  (props, ref) => {
13696
13768
  const { position, loader: loader2, initialLoader } = props;
13697
13769
  const [options, setOptions] = useState18(initialLoader || []);
@@ -13737,7 +13809,9 @@ var Select = React32.forwardRef(
13737
13809
  "selectAll",
13738
13810
  "setValue",
13739
13811
  "type",
13740
- "value"
13812
+ "value",
13813
+ "minSelected",
13814
+ "maxSelected"
13741
13815
  ]);
13742
13816
  const _onScrollEnd = props.onScrollEnd || (() => {
13743
13817
  });
@@ -13763,22 +13837,22 @@ var Select = React32.forwardRef(
13763
13837
  setLastPage(lastPage2);
13764
13838
  setLoading(false);
13765
13839
  }, [loader2, search, page, initialLoader]);
13766
- useEffect13(() => {
13840
+ useEffect14(() => {
13767
13841
  const timeoutId = setTimeout(() => onSubmit(), 250);
13768
13842
  return () => clearTimeout(timeoutId);
13769
13843
  }, [onSubmit]);
13770
- useEffect13(() => {
13844
+ useEffect14(() => {
13771
13845
  if (open) return;
13772
13846
  setSearch("");
13773
13847
  onReset();
13774
13848
  }, [props.value, open]);
13775
- useEffect13(() => {
13849
+ useEffect14(() => {
13776
13850
  setSearchInput(search);
13777
13851
  }, [search]);
13778
- useEffect13(() => {
13852
+ useEffect14(() => {
13779
13853
  if (page === 1) setHighlight(-1);
13780
13854
  }, [page]);
13781
- useEffect13(() => {
13855
+ useEffect14(() => {
13782
13856
  const timeoutId = setTimeout(() => setSearch(searchInput), 1e3);
13783
13857
  return () => clearTimeout(timeoutId);
13784
13858
  }, [searchInput]);
@@ -13791,7 +13865,7 @@ var Select = React32.forwardRef(
13791
13865
  setOpen,
13792
13866
  searchInput: [searchInput, setSearchInput]
13793
13867
  },
13794
- /* @__PURE__ */ jsxs161(
13868
+ /* @__PURE__ */ jsxs162(
13795
13869
  RelativeContainer7,
13796
13870
  {
13797
13871
  ref: onClickOut_default(() => setOpen(false)),
@@ -13870,7 +13944,7 @@ Select.displayName = "Select";
13870
13944
  var Select_default2 = Select;
13871
13945
 
13872
13946
  // src/components/Input/components/Switch/index.tsx
13873
- import React33 from "react";
13947
+ import React34 from "react";
13874
13948
 
13875
13949
  // src/components/Input/components/Switch/styles.ts
13876
13950
  import styled41, { css as css31 } from "styled-components";
@@ -13986,7 +14060,7 @@ var Label7 = styled41.label`
13986
14060
  `;
13987
14061
 
13988
14062
  // src/components/Input/components/Switch/index.tsx
13989
- import { jsx as jsx328, jsxs as jsxs162 } from "react/jsx-runtime";
14063
+ import { jsx as jsx328, jsxs as jsxs163 } from "react/jsx-runtime";
13990
14064
  var Switch = (props) => {
13991
14065
  const { isRequired, isInvalid: isInvalid2, isViewMode, isDisabled } = Form_default.useContext(
13992
14066
  props.name
@@ -14008,7 +14082,7 @@ var Switch = (props) => {
14008
14082
  "breakLabel"
14009
14083
  ]);
14010
14084
  htmlProps.disabled = props.disabled || props.htmlDisabled;
14011
- return /* @__PURE__ */ jsxs162(
14085
+ return /* @__PURE__ */ jsxs163(
14012
14086
  Label7,
14013
14087
  {
14014
14088
  ...props.labelProps || {},
@@ -14030,7 +14104,7 @@ var Switch = (props) => {
14030
14104
  $keepSpace: true,
14031
14105
  children: label[props.checked ? "after" : "before"]
14032
14106
  }
14033
- ) : /* @__PURE__ */ jsxs162(React33.Fragment, { children: [
14107
+ ) : /* @__PURE__ */ jsxs163(React34.Fragment, { children: [
14034
14108
  label.before && /* @__PURE__ */ jsx328(LabelContainer7, { children: label.before }),
14035
14109
  /* @__PURE__ */ jsx328("input", { ...htmlProps, type: "checkbox" }),
14036
14110
  /* @__PURE__ */ jsx328("span", {}),
@@ -14043,10 +14117,10 @@ var Switch = (props) => {
14043
14117
  var Switch_default = Switch;
14044
14118
 
14045
14119
  // src/components/Input/components/Tags/index.tsx
14046
- import React35, { useState as useState19 } from "react";
14120
+ import React36, { useState as useState19 } from "react";
14047
14121
 
14048
14122
  // src/components/Input/components/Tags/components/Input/index.tsx
14049
- import React34 from "react";
14123
+ import React35 from "react";
14050
14124
 
14051
14125
  // src/components/Input/components/Tags/components/Input/styles.ts
14052
14126
  import styled42 from "styled-components";
@@ -14083,7 +14157,7 @@ var Input4 = styled42.input`
14083
14157
 
14084
14158
  // src/components/Input/components/Tags/components/Input/index.tsx
14085
14159
  import { jsx as jsx329 } from "react/jsx-runtime";
14086
- var Input5 = React34.forwardRef(
14160
+ var Input5 = React35.forwardRef(
14087
14161
  (props, ref) => {
14088
14162
  const [value, setValue] = props.value;
14089
14163
  const _onKeyDown = props.onKeyDown || (() => {
@@ -14168,9 +14242,9 @@ var Tag = styled44.div`
14168
14242
  `;
14169
14243
 
14170
14244
  // src/components/Input/components/Tags/components/Tag/index.tsx
14171
- import { jsx as jsx331, jsxs as jsxs163 } from "react/jsx-runtime";
14245
+ import { jsx as jsx331, jsxs as jsxs164 } from "react/jsx-runtime";
14172
14246
  var Tag2 = ({ invalid, onClose, ...props }) => {
14173
- return /* @__PURE__ */ jsxs163(Tag, { ...props, $invalid: invalid, children: [
14247
+ return /* @__PURE__ */ jsxs164(Tag, { ...props, $invalid: invalid, children: [
14174
14248
  props.children,
14175
14249
  /* @__PURE__ */ jsx331("div", { onClick: onClose, children: /* @__PURE__ */ jsx331(
14176
14250
  Icon_default,
@@ -14240,8 +14314,8 @@ var TagContainer = styled45.div`
14240
14314
  `;
14241
14315
 
14242
14316
  // src/components/Input/components/Tags/index.tsx
14243
- import { jsx as jsx332, jsxs as jsxs164 } from "react/jsx-runtime";
14244
- var Tags = React35.forwardRef(
14317
+ import { jsx as jsx332, jsxs as jsxs165 } from "react/jsx-runtime";
14318
+ var Tags = React36.forwardRef(
14245
14319
  (props, ref) => {
14246
14320
  var _a;
14247
14321
  const { value, setValue } = props;
@@ -14270,9 +14344,9 @@ var Tags = React35.forwardRef(
14270
14344
  prev.splice(index, 1);
14271
14345
  setValue([...prev]);
14272
14346
  };
14273
- return /* @__PURE__ */ jsxs164(Label10, { $disabled: props.disabled, $width: props.width, children: [
14347
+ return /* @__PURE__ */ jsxs165(Label10, { $disabled: props.disabled, $width: props.width, children: [
14274
14348
  /* @__PURE__ */ jsx332(Label_default3, { required: props.required, children: props.label }),
14275
- /* @__PURE__ */ jsxs164(
14349
+ /* @__PURE__ */ jsxs165(
14276
14350
  TagContainer,
14277
14351
  {
14278
14352
  $invalid: props.invalid,
@@ -14313,7 +14387,7 @@ var Tags_default = Tags;
14313
14387
 
14314
14388
  // src/components/Input/index.tsx
14315
14389
  import { jsx as jsx333 } from "react/jsx-runtime";
14316
- var Component3 = React36.forwardRef(
14390
+ var Component3 = React37.forwardRef(
14317
14391
  (props, ref) => {
14318
14392
  switch (props.type) {
14319
14393
  case "date": {
@@ -14450,7 +14524,7 @@ var Item = styled46.div`
14450
14524
  `;
14451
14525
 
14452
14526
  // src/components/Filters/AppliedFilters/components/Menu/index.tsx
14453
- import { jsx as jsx334, jsxs as jsxs165 } from "react/jsx-runtime";
14527
+ import { jsx as jsx334, jsxs as jsxs166 } from "react/jsx-runtime";
14454
14528
  var AppliedFiltersMenu = (props) => {
14455
14529
  const {
14456
14530
  open,
@@ -14459,7 +14533,7 @@ var AppliedFiltersMenu = (props) => {
14459
14533
  } = props;
14460
14534
  const [search, setSearch] = useState20("");
14461
14535
  const [searched, setSearched] = useState20("");
14462
- useEffect14(() => {
14536
+ useEffect15(() => {
14463
14537
  setSearch("");
14464
14538
  setSearched("");
14465
14539
  }, [open]);
@@ -14485,9 +14559,9 @@ var AppliedFiltersMenu = (props) => {
14485
14559
  height: "261px",
14486
14560
  transition: { properties: { height: {} } },
14487
14561
  ...props.containerProps || {},
14488
- children: /* @__PURE__ */ jsxs165("div", { children: [
14489
- /* @__PURE__ */ jsxs165(Header4, { children: [
14490
- /* @__PURE__ */ jsxs165("div", { children: [
14562
+ children: /* @__PURE__ */ jsxs166("div", { children: [
14563
+ /* @__PURE__ */ jsxs166(Header4, { children: [
14564
+ /* @__PURE__ */ jsxs166("div", { children: [
14491
14565
  /* @__PURE__ */ jsx334(Title, { children: "Filtros Aplicados" }),
14492
14566
  /* @__PURE__ */ jsx334(Link_default2, { onClick: onClear, children: "Limpar Todos" })
14493
14567
  ] }),
@@ -14527,8 +14601,8 @@ var AppliedFiltersMenu = (props) => {
14527
14601
  },
14528
14602
  name
14529
14603
  }, index) => {
14530
- return /* @__PURE__ */ jsxs165(Item, { children: [
14531
- /* @__PURE__ */ jsxs165("div", { children: [
14604
+ return /* @__PURE__ */ jsxs166(Item, { children: [
14605
+ /* @__PURE__ */ jsxs166("div", { children: [
14532
14606
  /* @__PURE__ */ jsx334("div", { children: filter }),
14533
14607
  /* @__PURE__ */ jsx334("div", { children: option })
14534
14608
  ] }),
@@ -14553,12 +14627,12 @@ var AppliedFiltersMenu = (props) => {
14553
14627
  var Menu_default3 = AppliedFiltersMenu;
14554
14628
 
14555
14629
  // src/components/Filters/AppliedFilters/index.tsx
14556
- import { jsx as jsx335, jsxs as jsxs166 } from "react/jsx-runtime";
14630
+ import { jsx as jsx335, jsxs as jsxs167 } from "react/jsx-runtime";
14557
14631
  var AppliedFilters = Object.assign(
14558
14632
  (props) => {
14559
14633
  const { appliedFilters, containerProps } = props;
14560
14634
  const buttonProps = filterObject(props, ["appliedFilters"]);
14561
- return /* @__PURE__ */ jsxs166(
14635
+ return /* @__PURE__ */ jsxs167(
14562
14636
  Button_default,
14563
14637
  {
14564
14638
  ...buttonProps,
@@ -14639,13 +14713,13 @@ var Card = ({ borderType, size: size3, ...rest }) => {
14639
14713
  var Card_default = Card;
14640
14714
 
14641
14715
  // src/components/Filters/Filters/components/Menu/index.tsx
14642
- import { useEffect as useEffect17, useState as useState23 } from "react";
14716
+ import { useEffect as useEffect18, useState as useState23 } from "react";
14643
14717
 
14644
14718
  // src/components/Filters/Filters/components/Submenu/index.tsx
14645
- import React39, { useCallback as useCallback4, useEffect as useEffect16, useState as useState22 } from "react";
14719
+ import React40, { useCallback as useCallback4, useEffect as useEffect17, useState as useState22 } from "react";
14646
14720
 
14647
14721
  // src/components/Filters/Filters/components/Submenu/components/Header/index.tsx
14648
- import { useEffect as useEffect15, useState as useState21 } from "react";
14722
+ import { useEffect as useEffect16, useState as useState21 } from "react";
14649
14723
 
14650
14724
  // src/components/Filters/Filters/components/Submenu/components/Header/styles.ts
14651
14725
  import styled48 from "styled-components";
@@ -14671,7 +14745,7 @@ var Container13 = styled48.div`
14671
14745
  `;
14672
14746
 
14673
14747
  // src/components/Filters/Filters/components/Submenu/components/Header/index.tsx
14674
- import { jsx as jsx337, jsxs as jsxs167 } from "react/jsx-runtime";
14748
+ import { jsx as jsx337, jsxs as jsxs168 } from "react/jsx-runtime";
14675
14749
  var Header5 = (props) => {
14676
14750
  const {
14677
14751
  title,
@@ -14684,7 +14758,7 @@ var Header5 = (props) => {
14684
14758
  if (value === "") return;
14685
14759
  _setSearched(value);
14686
14760
  };
14687
- useEffect15(() => {
14761
+ useEffect16(() => {
14688
14762
  setSearch(searched);
14689
14763
  }, [searched]);
14690
14764
  const onSubmit = () => {
@@ -14694,7 +14768,7 @@ var Header5 = (props) => {
14694
14768
  setSearch("");
14695
14769
  setSearched("");
14696
14770
  };
14697
- return /* @__PURE__ */ jsxs167(Container13, { children: [
14771
+ return /* @__PURE__ */ jsxs168(Container13, { children: [
14698
14772
  /* @__PURE__ */ jsx337(EllipsisContainer_default, { children: isString(title) ? title : title.element }),
14699
14773
  withSearch && /* @__PURE__ */ jsx337(
14700
14774
  Input_default4,
@@ -14733,7 +14807,7 @@ var EmptyMessage = styled49.div`
14733
14807
  `;
14734
14808
 
14735
14809
  // src/components/Filters/Filters/components/Submenu/index.tsx
14736
- import { jsx as jsx338, jsxs as jsxs168 } from "react/jsx-runtime";
14810
+ import { jsx as jsx338, jsxs as jsxs169 } from "react/jsx-runtime";
14737
14811
  var getInstance = (props) => {
14738
14812
  const { item } = props;
14739
14813
  if (!item) {
@@ -14817,12 +14891,12 @@ var Submenu = (props) => {
14817
14891
  onSearch();
14818
14892
  }
14819
14893
  };
14820
- useEffect16(() => {
14894
+ useEffect17(() => {
14821
14895
  setOptions([]);
14822
14896
  setSearch("", false);
14823
14897
  setFirstRender(true);
14824
14898
  }, [item]);
14825
- useEffect16(() => {
14899
+ useEffect17(() => {
14826
14900
  setFirstRender((firstRender) => {
14827
14901
  if (!item || isDynamic && firstRender) {
14828
14902
  setLoading(false);
@@ -14903,9 +14977,9 @@ var Submenu = (props) => {
14903
14977
  loading,
14904
14978
  emptyContent: isDynamic && options.length === 0 ? /* @__PURE__ */ jsx338(EmptyMessage, { children: (() => {
14905
14979
  if (search !== "") {
14906
- return /* @__PURE__ */ jsx338(React39.Fragment, { children: "Nenhum resultado foi encontrado" });
14980
+ return /* @__PURE__ */ jsx338(React40.Fragment, { children: "Nenhum resultado foi encontrado" });
14907
14981
  }
14908
- return /* @__PURE__ */ jsxs168(React39.Fragment, { children: [
14982
+ return /* @__PURE__ */ jsxs169(React40.Fragment, { children: [
14909
14983
  "Utilize a busca para pesquisar por ",
14910
14984
  /* @__PURE__ */ jsx338("br", {}),
14911
14985
  label.text
@@ -14940,7 +15014,7 @@ var FiltersMenu = (props) => {
14940
15014
  };
14941
15015
  });
14942
15016
  const selected = active >= 0 && active < props.items.length ? props.items[active] : void 0;
14943
- useEffect17(() => {
15017
+ useEffect18(() => {
14944
15018
  if (open) return;
14945
15019
  setActive(-1);
14946
15020
  }, [open]);
@@ -15016,14 +15090,14 @@ var Filters = Object.assign(
15016
15090
  var Filters_default = Filters;
15017
15091
 
15018
15092
  // src/components/Grid/components/Col/index.tsx
15019
- import React42 from "react";
15093
+ import React43 from "react";
15020
15094
 
15021
15095
  // src/components/Grid/components/Row/context.ts
15022
- import React41 from "react";
15023
- var Provider5 = React41.createContext({
15096
+ import React42 from "react";
15097
+ var Provider5 = React42.createContext({
15024
15098
  cols: {}
15025
15099
  });
15026
- var useContext4 = () => React41.useContext(Provider5);
15100
+ var useContext4 = () => React42.useContext(Provider5);
15027
15101
  var context_default4 = Provider5;
15028
15102
 
15029
15103
  // src/components/Grid/components/Col/styles.ts
@@ -15196,7 +15270,7 @@ var Col = styled50.div`
15196
15270
 
15197
15271
  // src/components/Grid/components/Col/index.tsx
15198
15272
  import { jsx as jsx341 } from "react/jsx-runtime";
15199
- var Col2 = React42.forwardRef((props, ref) => {
15273
+ var Col2 = React43.forwardRef((props, ref) => {
15200
15274
  const context = useContext4();
15201
15275
  const colProps = { ...context.cols, ...props };
15202
15276
  const htmlProps = filterObject(colProps, [
@@ -15233,15 +15307,15 @@ Col2.displayName = "Col";
15233
15307
  var Col_default = Col2;
15234
15308
 
15235
15309
  // src/components/Grid/components/Grid/index.tsx
15236
- import React44 from "react";
15310
+ import React45 from "react";
15237
15311
 
15238
15312
  // src/components/Grid/components/Grid/context.ts
15239
- import React43 from "react";
15240
- var Provider6 = React43.createContext({
15313
+ import React44 from "react";
15314
+ var Provider6 = React44.createContext({
15241
15315
  rows: {},
15242
15316
  cols: {}
15243
15317
  });
15244
- var useContext5 = () => React43.useContext(Provider6);
15318
+ var useContext5 = () => React44.useContext(Provider6);
15245
15319
  var context_default5 = Provider6;
15246
15320
 
15247
15321
  // src/components/Grid/components/Grid/styles.ts
@@ -15274,7 +15348,7 @@ var Grid = styled51.div`
15274
15348
 
15275
15349
  // src/components/Grid/components/Grid/index.tsx
15276
15350
  import { jsx as jsx342 } from "react/jsx-runtime";
15277
- var Grid2 = React44.forwardRef((props, ref) => {
15351
+ var Grid2 = React45.forwardRef((props, ref) => {
15278
15352
  const cols = props.cols || {};
15279
15353
  const rows = props.rows || {};
15280
15354
  const gridProps = filterObject(props, [
@@ -15297,7 +15371,7 @@ Grid2.displayName = "Grid";
15297
15371
  var Grid_default2 = Grid2;
15298
15372
 
15299
15373
  // src/components/Grid/components/Row/index.tsx
15300
- import React45 from "react";
15374
+ import React46 from "react";
15301
15375
 
15302
15376
  // src/components/Grid/components/Row/styles.ts
15303
15377
  import styled52, { css as css37 } from "styled-components";
@@ -15424,7 +15498,7 @@ var Row = styled52.div`
15424
15498
 
15425
15499
  // src/components/Grid/components/Row/index.tsx
15426
15500
  import { jsx as jsx343 } from "react/jsx-runtime";
15427
- var Row2 = React45.forwardRef((props, ref) => {
15501
+ var Row2 = React46.forwardRef((props, ref) => {
15428
15502
  const context = useContext5();
15429
15503
  const cols = { ...context.cols, ...props.cols || {} };
15430
15504
  const rowProps = { ...props, ...context.rows };
@@ -15468,15 +15542,15 @@ var Grid3 = Object.assign(Grid_default2, {
15468
15542
  var Grid_default3 = Grid3;
15469
15543
 
15470
15544
  // src/components/Modal/component.tsx
15471
- import { useEffect as useEffect19 } from "react";
15545
+ import { useEffect as useEffect20 } from "react";
15472
15546
 
15473
15547
  // src/addons/Portal/index.ts
15474
- import { useEffect as useEffect18 } from "react";
15548
+ import { useEffect as useEffect19 } from "react";
15475
15549
  import { createPortal } from "react-dom";
15476
15550
  var Portal = (props) => {
15477
15551
  const { id, opened, children } = props;
15478
15552
  const portalRoot = document.createElement("div");
15479
- useEffect18(() => {
15553
+ useEffect19(() => {
15480
15554
  if (opened) {
15481
15555
  portalRoot.id = id + "-root";
15482
15556
  document.body.appendChild(portalRoot);
@@ -15589,7 +15663,7 @@ var Container14 = styled53.div`
15589
15663
  `;
15590
15664
 
15591
15665
  // src/components/Modal/component.tsx
15592
- import { jsx as jsx344, jsxs as jsxs169 } from "react/jsx-runtime";
15666
+ import { jsx as jsx344, jsxs as jsxs170 } from "react/jsx-runtime";
15593
15667
  var Modal = (props) => {
15594
15668
  const {
15595
15669
  openState,
@@ -15613,7 +15687,7 @@ var Modal = (props) => {
15613
15687
  setOpen(false);
15614
15688
  }
15615
15689
  };
15616
- useEffect19(() => {
15690
+ useEffect20(() => {
15617
15691
  const onEscDown = (event) => {
15618
15692
  if (closeOnEsc && event.key === "Escape") {
15619
15693
  event.preventDefault();
@@ -15626,7 +15700,7 @@ var Modal = (props) => {
15626
15700
  };
15627
15701
  }, []);
15628
15702
  const _size = size3 ? heights[size3] : heights.default;
15629
- return /* @__PURE__ */ jsx344(Portal_default, { opened: open || false, id: "modal", children: /* @__PURE__ */ jsx344(Background, { onClick: onClickOutside, children: /* @__PURE__ */ jsxs169(
15703
+ return /* @__PURE__ */ jsx344(Portal_default, { opened: open || false, id: "modal", children: /* @__PURE__ */ jsx344(Background, { onClick: onClickOutside, children: /* @__PURE__ */ jsxs170(
15630
15704
  Container14,
15631
15705
  {
15632
15706
  $size: size3 || "small",
@@ -15643,7 +15717,7 @@ var Modal = (props) => {
15643
15717
  borderSize: "3px"
15644
15718
  }
15645
15719
  ) : children || content }),
15646
- /* @__PURE__ */ jsxs169(Footer3, { children: [
15720
+ /* @__PURE__ */ jsxs170(Footer3, { children: [
15647
15721
  /* @__PURE__ */ jsx344(FooterMessage, { children: footerMessage && (typeof footerMessage === "string" ? /* @__PURE__ */ jsx344("span", { children: footerMessage }) : footerMessage) }),
15648
15722
  /* @__PURE__ */ jsx344(FooterButtons, { children: footer ? footer.map(({ children: children2, ...buttonProps }, index) => /* @__PURE__ */ jsx344(Button_default2, { ...buttonProps, children: children2 }, index)) : /* @__PURE__ */ jsx344(
15649
15723
  Button_default2,
@@ -15815,7 +15889,7 @@ var Modal2 = Object.assign(component_default, {
15815
15889
  var Modal_default = Modal2;
15816
15890
 
15817
15891
  // src/components/Placeholder/components/Template1/index.tsx
15818
- import React47 from "react";
15892
+ import React48 from "react";
15819
15893
 
15820
15894
  // src/components/Placeholder/components/Template1/styles.ts
15821
15895
  import styled57, { css as css39 } from "styled-components";
@@ -15873,18 +15947,18 @@ var MainLine = styled57(HeaderLine)`
15873
15947
  `;
15874
15948
 
15875
15949
  // src/components/Placeholder/components/Template1/index.tsx
15876
- import { jsx as jsx348, jsxs as jsxs170 } from "react/jsx-runtime";
15950
+ import { jsx as jsx348, jsxs as jsxs171 } from "react/jsx-runtime";
15877
15951
  var Template1 = (props) => {
15878
- if (!props.loading) return /* @__PURE__ */ jsx348(React47.Fragment, {});
15879
- return /* @__PURE__ */ jsxs170(Container15, { children: [
15880
- /* @__PURE__ */ jsxs170(Header7, { children: [
15952
+ if (!props.loading) return /* @__PURE__ */ jsx348(React48.Fragment, {});
15953
+ return /* @__PURE__ */ jsxs171(Container15, { children: [
15954
+ /* @__PURE__ */ jsxs171(Header7, { children: [
15881
15955
  /* @__PURE__ */ jsx348(HeaderImage, {}),
15882
- /* @__PURE__ */ jsxs170(HeaderContent, { children: [
15956
+ /* @__PURE__ */ jsxs171(HeaderContent, { children: [
15883
15957
  /* @__PURE__ */ jsx348(HeaderLine, { $size: "medium", $height: "9px", $color: "#E6E6E6" }),
15884
15958
  /* @__PURE__ */ jsx348(HeaderLine, { $size: "small", $height: "9px", $color: "#E6E6E6" })
15885
15959
  ] })
15886
15960
  ] }),
15887
- /* @__PURE__ */ jsxs170(MainContent, { children: [
15961
+ /* @__PURE__ */ jsxs171(MainContent, { children: [
15888
15962
  /* @__PURE__ */ jsx348(MainLine, { $size: "medium", $height: "9px", $color: "#E6E6E6" }),
15889
15963
  /* @__PURE__ */ jsx348(MainLine, { $size: "small", $height: "9px", $color: "#E6E6E6" }),
15890
15964
  /* @__PURE__ */ jsx348(MainLine, { $size: "mini", $height: "9px", $color: "#E6E6E6" }),
@@ -15896,7 +15970,7 @@ var Template1 = (props) => {
15896
15970
  var Template1_default = Template1;
15897
15971
 
15898
15972
  // src/components/Placeholder/components/Template2/index.tsx
15899
- import React48 from "react";
15973
+ import React49 from "react";
15900
15974
 
15901
15975
  // src/components/Placeholder/components/Template2/styles.ts
15902
15976
  import styled59 from "styled-components";
@@ -15964,18 +16038,18 @@ var MainLine2 = styled59(HeaderLine2)`
15964
16038
  var HeaderLine3 = styled59(HeaderLine2)``;
15965
16039
 
15966
16040
  // src/components/Placeholder/components/Template2/index.tsx
15967
- import { jsx as jsx349, jsxs as jsxs171 } from "react/jsx-runtime";
16041
+ import { jsx as jsx349, jsxs as jsxs172 } from "react/jsx-runtime";
15968
16042
  var Template2 = (props) => {
15969
- if (!props.loading) return /* @__PURE__ */ jsx349(React48.Fragment, {});
15970
- return /* @__PURE__ */ jsxs171(Template2Container, { children: [
15971
- /* @__PURE__ */ jsxs171(Header8, { children: [
16043
+ if (!props.loading) return /* @__PURE__ */ jsx349(React49.Fragment, {});
16044
+ return /* @__PURE__ */ jsxs172(Template2Container, { children: [
16045
+ /* @__PURE__ */ jsxs172(Header8, { children: [
15972
16046
  /* @__PURE__ */ jsx349(HeaderImage2, {}),
15973
- /* @__PURE__ */ jsxs171(HeaderContent2, { children: [
16047
+ /* @__PURE__ */ jsxs172(HeaderContent2, { children: [
15974
16048
  /* @__PURE__ */ jsx349(HeaderLine3, { $size: "mini", $height: "9px", $color: "#E6E6E6" }),
15975
16049
  /* @__PURE__ */ jsx349(HeaderLine3, { $size: "mini", $height: "9px", $color: "#E6E6E6" })
15976
16050
  ] })
15977
16051
  ] }),
15978
- /* @__PURE__ */ jsxs171(MainContent2, { children: [
16052
+ /* @__PURE__ */ jsxs172(MainContent2, { children: [
15979
16053
  /* @__PURE__ */ jsx349(MainLine2, { $size: "mini", $height: "9px", $color: "#E6E6E6" }),
15980
16054
  /* @__PURE__ */ jsx349(MainLine2, { $size: "mini", $height: "9px", $color: "#E6E6E6" })
15981
16055
  ] })
@@ -15984,7 +16058,7 @@ var Template2 = (props) => {
15984
16058
  var Template2_default = Template2;
15985
16059
 
15986
16060
  // src/components/Placeholder/components/Template3/index.tsx
15987
- import React49 from "react";
16061
+ import React50 from "react";
15988
16062
 
15989
16063
  // src/components/Placeholder/components/Template3/styles.ts
15990
16064
  import styled60 from "styled-components";
@@ -16001,10 +16075,10 @@ var Template3Line = styled60(HeaderLine2)`
16001
16075
  `;
16002
16076
 
16003
16077
  // src/components/Placeholder/components/Template3/index.tsx
16004
- import { jsx as jsx350, jsxs as jsxs172 } from "react/jsx-runtime";
16078
+ import { jsx as jsx350, jsxs as jsxs173 } from "react/jsx-runtime";
16005
16079
  var Template3 = (props) => {
16006
- if (!props.loading) return /* @__PURE__ */ jsx350(React49.Fragment, {});
16007
- return /* @__PURE__ */ jsxs172(Template3Container, { children: [
16080
+ if (!props.loading) return /* @__PURE__ */ jsx350(React50.Fragment, {});
16081
+ return /* @__PURE__ */ jsxs173(Template3Container, { children: [
16008
16082
  /* @__PURE__ */ jsx350(Template3Line, { $size: "large", $height: "7px", $color: "#DADADA" }),
16009
16083
  /* @__PURE__ */ jsx350(Template3Line, { $size: "small", $height: "7px", $color: "#DADADA" }),
16010
16084
  /* @__PURE__ */ jsx350(Template3Line, { $size: "medium", $height: "7px", $color: "#DADADA" }),
@@ -16015,7 +16089,7 @@ var Template3 = (props) => {
16015
16089
  var Template3_default = Template3;
16016
16090
 
16017
16091
  // src/components/Placeholder/components/Template4/index.tsx
16018
- import React50 from "react";
16092
+ import React51 from "react";
16019
16093
 
16020
16094
  // src/components/Placeholder/components/Template4/styles.ts
16021
16095
  import styled61, { css as css41 } from "styled-components";
@@ -16061,10 +16135,10 @@ var CustomLine = styled61(HeaderLine4)`
16061
16135
  `;
16062
16136
 
16063
16137
  // src/components/Placeholder/components/Template4/index.tsx
16064
- import { jsx as jsx351, jsxs as jsxs173 } from "react/jsx-runtime";
16138
+ import { jsx as jsx351, jsxs as jsxs174 } from "react/jsx-runtime";
16065
16139
  var Template4 = (props) => {
16066
- if (!props.loading) return /* @__PURE__ */ jsx351(React50.Fragment, {});
16067
- return /* @__PURE__ */ jsxs173(Template4Container, { children: [
16140
+ if (!props.loading) return /* @__PURE__ */ jsx351(React51.Fragment, {});
16141
+ return /* @__PURE__ */ jsxs174(Template4Container, { children: [
16068
16142
  /* @__PURE__ */ jsx351(
16069
16143
  CustomLine,
16070
16144
  {
@@ -16142,7 +16216,7 @@ var Template4 = (props) => {
16142
16216
  var Template4_default = Template4;
16143
16217
 
16144
16218
  // src/components/Placeholder/components/Template5/index.tsx
16145
- import React51 from "react";
16219
+ import React52 from "react";
16146
16220
 
16147
16221
  // src/components/Placeholder/components/Template5/styles.ts
16148
16222
  import styled62, { css as css42 } from "styled-components";
@@ -16199,12 +16273,12 @@ var MainContent3 = styled62.div`
16199
16273
  `;
16200
16274
 
16201
16275
  // src/components/Placeholder/components/Template5/index.tsx
16202
- import { jsx as jsx352, jsxs as jsxs174 } from "react/jsx-runtime";
16276
+ import { jsx as jsx352, jsxs as jsxs175 } from "react/jsx-runtime";
16203
16277
  var Template5 = (props) => {
16204
- if (!props.loading) return /* @__PURE__ */ jsx352(React51.Fragment, {});
16205
- return /* @__PURE__ */ jsxs174(Container19, { children: [
16278
+ if (!props.loading) return /* @__PURE__ */ jsx352(React52.Fragment, {});
16279
+ return /* @__PURE__ */ jsxs175(Container19, { children: [
16206
16280
  /* @__PURE__ */ jsx352(Circle, {}),
16207
- /* @__PURE__ */ jsxs174(MainContent3, { children: [
16281
+ /* @__PURE__ */ jsxs175(MainContent3, { children: [
16208
16282
  /* @__PURE__ */ jsx352(
16209
16283
  CustomLine2,
16210
16284
  {
@@ -16247,7 +16321,7 @@ var Template5 = (props) => {
16247
16321
  var Template5_default = Template5;
16248
16322
 
16249
16323
  // src/components/Placeholder/components/Template6/index.tsx
16250
- import React52 from "react";
16324
+ import React53 from "react";
16251
16325
 
16252
16326
  // src/components/Placeholder/components/Template6/styles.ts
16253
16327
  import styled63, { css as css43 } from "styled-components";
@@ -16303,10 +16377,10 @@ var CustomLine3 = styled63(HeaderLine6)`
16303
16377
  `;
16304
16378
 
16305
16379
  // src/components/Placeholder/components/Template6/index.tsx
16306
- import { jsx as jsx353, jsxs as jsxs175 } from "react/jsx-runtime";
16380
+ import { jsx as jsx353, jsxs as jsxs176 } from "react/jsx-runtime";
16307
16381
  var Template6 = (props) => {
16308
- if (!props.loading) return /* @__PURE__ */ jsx353(React52.Fragment, {});
16309
- return /* @__PURE__ */ jsx353(Container20, { children: /* @__PURE__ */ jsxs175(Header9, { children: [
16382
+ if (!props.loading) return /* @__PURE__ */ jsx353(React53.Fragment, {});
16383
+ return /* @__PURE__ */ jsx353(Container20, { children: /* @__PURE__ */ jsxs176(Header9, { children: [
16310
16384
  /* @__PURE__ */ jsx353(
16311
16385
  CustomLine3,
16312
16386
  {
@@ -16339,7 +16413,7 @@ var Template6 = (props) => {
16339
16413
  var Template6_default = Template6;
16340
16414
 
16341
16415
  // src/components/Placeholder/components/Template7/index.tsx
16342
- import React53 from "react";
16416
+ import React54 from "react";
16343
16417
 
16344
16418
  // src/components/Placeholder/components/Template7/styles.ts
16345
16419
  import styled64, { css as css44 } from "styled-components";
@@ -16405,10 +16479,10 @@ var Circle2 = styled64.div`
16405
16479
  `;
16406
16480
 
16407
16481
  // src/components/Placeholder/components/Template7/index.tsx
16408
- import { jsx as jsx354, jsxs as jsxs176 } from "react/jsx-runtime";
16482
+ import { jsx as jsx354, jsxs as jsxs177 } from "react/jsx-runtime";
16409
16483
  var Template7 = (props) => {
16410
- if (!props.loading) return /* @__PURE__ */ jsx354(React53.Fragment, {});
16411
- return /* @__PURE__ */ jsxs176(Container21, { children: [
16484
+ if (!props.loading) return /* @__PURE__ */ jsx354(React54.Fragment, {});
16485
+ return /* @__PURE__ */ jsxs177(Container21, { children: [
16412
16486
  /* @__PURE__ */ jsx354(Header10, { children: /* @__PURE__ */ jsx354(
16413
16487
  CustomLine4,
16414
16488
  {
@@ -16418,7 +16492,7 @@ var Template7 = (props) => {
16418
16492
  $size: "large"
16419
16493
  }
16420
16494
  ) }),
16421
- /* @__PURE__ */ jsxs176(Main3, { children: [
16495
+ /* @__PURE__ */ jsxs177(Main3, { children: [
16422
16496
  /* @__PURE__ */ jsx354(Circle2, {}),
16423
16497
  /* @__PURE__ */ jsx354(Circle2, {}),
16424
16498
  /* @__PURE__ */ jsx354(Circle2, {}),
@@ -16430,7 +16504,7 @@ var Template7 = (props) => {
16430
16504
  var Template7_default = Template7;
16431
16505
 
16432
16506
  // src/components/Placeholder/components/Template8/index.tsx
16433
- import React54 from "react";
16507
+ import React55 from "react";
16434
16508
 
16435
16509
  // src/components/Placeholder/components/Template8/styles.ts
16436
16510
  import styled65, { css as css45 } from "styled-components";
@@ -16489,10 +16563,10 @@ var Main4 = styled65.div`
16489
16563
  `;
16490
16564
 
16491
16565
  // src/components/Placeholder/components/Template8/index.tsx
16492
- import { jsx as jsx355, jsxs as jsxs177 } from "react/jsx-runtime";
16566
+ import { jsx as jsx355, jsxs as jsxs178 } from "react/jsx-runtime";
16493
16567
  var Template8 = (props) => {
16494
- if (!props.loading) return /* @__PURE__ */ jsx355(React54.Fragment, {});
16495
- return /* @__PURE__ */ jsxs177(Container22, { children: [
16568
+ if (!props.loading) return /* @__PURE__ */ jsx355(React55.Fragment, {});
16569
+ return /* @__PURE__ */ jsxs178(Container22, { children: [
16496
16570
  /* @__PURE__ */ jsx355(Header11, { children: /* @__PURE__ */ jsx355(
16497
16571
  CustomLine5,
16498
16572
  {
@@ -16502,7 +16576,7 @@ var Template8 = (props) => {
16502
16576
  $size: "large"
16503
16577
  }
16504
16578
  ) }),
16505
- /* @__PURE__ */ jsxs177(Main4, { children: [
16579
+ /* @__PURE__ */ jsxs178(Main4, { children: [
16506
16580
  /* @__PURE__ */ jsx355(
16507
16581
  CustomLine5,
16508
16582
  {
@@ -16527,7 +16601,7 @@ var Template8 = (props) => {
16527
16601
  var Template8_default = Template8;
16528
16602
 
16529
16603
  // src/components/Placeholder/components/Template9/index.tsx
16530
- import React55 from "react";
16604
+ import React56 from "react";
16531
16605
 
16532
16606
  // src/components/Placeholder/components/Template9/styles.ts
16533
16607
  import styled66, { css as css46 } from "styled-components";
@@ -16593,11 +16667,11 @@ var Circle3 = styled66.div`
16593
16667
  `;
16594
16668
 
16595
16669
  // src/components/Placeholder/components/Template9/index.tsx
16596
- import { jsx as jsx356, jsxs as jsxs178 } from "react/jsx-runtime";
16670
+ import { jsx as jsx356, jsxs as jsxs179 } from "react/jsx-runtime";
16597
16671
  var Template82 = (props) => {
16598
- if (!props.loading) return /* @__PURE__ */ jsx356(React55.Fragment, {});
16599
- return /* @__PURE__ */ jsxs178(Container23, { children: [
16600
- /* @__PURE__ */ jsxs178(Header12, { children: [
16672
+ if (!props.loading) return /* @__PURE__ */ jsx356(React56.Fragment, {});
16673
+ return /* @__PURE__ */ jsxs179(Container23, { children: [
16674
+ /* @__PURE__ */ jsxs179(Header12, { children: [
16601
16675
  /* @__PURE__ */ jsx356(
16602
16676
  CustomLine6,
16603
16677
  {
@@ -16623,7 +16697,7 @@ var Template82 = (props) => {
16623
16697
  var Template9_default = Template82;
16624
16698
 
16625
16699
  // src/components/Placeholder/components/Template10/index.tsx
16626
- import React56 from "react";
16700
+ import React57 from "react";
16627
16701
 
16628
16702
  // src/components/Placeholder/components/Template10/styles.ts
16629
16703
  import styled67, { css as css47 } from "styled-components";
@@ -16693,11 +16767,11 @@ var Circle4 = styled67.div`
16693
16767
  `;
16694
16768
 
16695
16769
  // src/components/Placeholder/components/Template10/index.tsx
16696
- import { jsx as jsx357, jsxs as jsxs179 } from "react/jsx-runtime";
16770
+ import { jsx as jsx357, jsxs as jsxs180 } from "react/jsx-runtime";
16697
16771
  var Template10 = (props) => {
16698
- if (!props.loading) return /* @__PURE__ */ jsx357(React56.Fragment, {});
16699
- return /* @__PURE__ */ jsxs179(Container24, { children: [
16700
- /* @__PURE__ */ jsxs179(Header13, { children: [
16772
+ if (!props.loading) return /* @__PURE__ */ jsx357(React57.Fragment, {});
16773
+ return /* @__PURE__ */ jsxs180(Container24, { children: [
16774
+ /* @__PURE__ */ jsxs180(Header13, { children: [
16701
16775
  /* @__PURE__ */ jsx357(
16702
16776
  CustomLine7,
16703
16777
  {
@@ -16717,7 +16791,7 @@ var Template10 = (props) => {
16717
16791
  }
16718
16792
  )
16719
16793
  ] }),
16720
- /* @__PURE__ */ jsxs179(Main6, { children: [
16794
+ /* @__PURE__ */ jsxs180(Main6, { children: [
16721
16795
  /* @__PURE__ */ jsx357(
16722
16796
  GraphLine,
16723
16797
  {
@@ -16895,11 +16969,11 @@ var Progress = styled68.div`
16895
16969
  `;
16896
16970
 
16897
16971
  // src/components/ProgressBar/index.tsx
16898
- import { jsx as jsx359, jsxs as jsxs180 } from "react/jsx-runtime";
16972
+ import { jsx as jsx359, jsxs as jsxs181 } from "react/jsx-runtime";
16899
16973
  var ProgressBar = ({ type, value, ...props }) => {
16900
- return /* @__PURE__ */ jsxs180(Container25, { $disabled: value === null, children: [
16974
+ return /* @__PURE__ */ jsxs181(Container25, { $disabled: value === null, children: [
16901
16975
  /* @__PURE__ */ jsx359(Progress, { ...props, $type: type, children: /* @__PURE__ */ jsx359("span", { style: { width: `${value || 0}%` } }) }),
16902
- /* @__PURE__ */ jsxs180("span", { children: [
16976
+ /* @__PURE__ */ jsxs181("span", { children: [
16903
16977
  " ",
16904
16978
  value === null ? "-" : value,
16905
16979
  "%"
@@ -16909,10 +16983,10 @@ var ProgressBar = ({ type, value, ...props }) => {
16909
16983
  var ProgressBar_default = ProgressBar;
16910
16984
 
16911
16985
  // src/components/Tabs/index.tsx
16912
- import React62, { useState as useState26 } from "react";
16986
+ import React63, { useState as useState26 } from "react";
16913
16987
 
16914
16988
  // src/components/Tabs/components/ScrollButtons/index.tsx
16915
- import React58, { useCallback as useCallback6, useEffect as useEffect20, useState as useState24 } from "react";
16989
+ import React59, { useCallback as useCallback6, useEffect as useEffect21, useState as useState24 } from "react";
16916
16990
 
16917
16991
  // src/components/Tabs/components/ScrollButton/index.tsx
16918
16992
  import { useCallback as useCallback5 } from "react";
@@ -16987,7 +17061,7 @@ var Container27 = styled70.div`
16987
17061
  `;
16988
17062
 
16989
17063
  // src/components/Tabs/components/ScrollButtons/index.tsx
16990
- import { jsx as jsx361, jsxs as jsxs181 } from "react/jsx-runtime";
17064
+ import { jsx as jsx361, jsxs as jsxs182 } from "react/jsx-runtime";
16991
17065
  var ScrollButtons = (props) => {
16992
17066
  const { activeTabIndex, tabsLength } = props;
16993
17067
  const [ref, setRef] = useState24(null);
@@ -17004,12 +17078,12 @@ var ScrollButtons = (props) => {
17004
17078
  setShowRightArrow(false);
17005
17079
  }
17006
17080
  }, [ref]);
17007
- useEffect20(() => {
17081
+ useEffect21(() => {
17008
17082
  checkScrollPosition();
17009
17083
  window.addEventListener("resize", checkScrollPosition);
17010
17084
  return () => window.removeEventListener("resize", checkScrollPosition);
17011
17085
  }, [checkScrollPosition, tabsLength]);
17012
- useEffect20(() => {
17086
+ useEffect21(() => {
17013
17087
  if (!ref) return;
17014
17088
  if (ref.scrollWidth <= ref.offsetWidth) return;
17015
17089
  const element = ref.children[activeTabIndex];
@@ -17019,7 +17093,7 @@ var ScrollButtons = (props) => {
17019
17093
  inline: "nearest"
17020
17094
  });
17021
17095
  }, [activeTabIndex, ref]);
17022
- return /* @__PURE__ */ jsxs181(React58.Fragment, { children: [
17096
+ return /* @__PURE__ */ jsxs182(React59.Fragment, { children: [
17023
17097
  /* @__PURE__ */ jsx361(ScrollButton_default, { scrollRef: ref, mode: "left", visible: showLeftArrow }),
17024
17098
  /* @__PURE__ */ jsx361(
17025
17099
  Container27,
@@ -17042,7 +17116,7 @@ var ScrollButtons = (props) => {
17042
17116
  var ScrollButtons_default = ScrollButtons;
17043
17117
 
17044
17118
  // src/components/Tabs/components/TabItem/index.tsx
17045
- import React61 from "react";
17119
+ import React62 from "react";
17046
17120
 
17047
17121
  // src/components/Tabs/functions.ts
17048
17122
  var sortTabs = (tabs, sorted = []) => {
@@ -17268,8 +17342,8 @@ var Container28 = styled73.div`
17268
17342
  `;
17269
17343
 
17270
17344
  // src/components/Tabs/components/TabItem/index.tsx
17271
- import { jsx as jsx364, jsxs as jsxs182 } from "react/jsx-runtime";
17272
- var VoidClose = () => /* @__PURE__ */ jsx364(React61.Fragment, {});
17345
+ import { jsx as jsx364, jsxs as jsxs183 } from "react/jsx-runtime";
17346
+ var VoidClose = () => /* @__PURE__ */ jsx364(React62.Fragment, {});
17273
17347
  var TabItem = (props) => {
17274
17348
  const {
17275
17349
  active: [active, setActive],
@@ -17279,11 +17353,11 @@ var TabItem = (props) => {
17279
17353
  alwaysOpen
17280
17354
  } = props;
17281
17355
  const CloseComponent = alwaysOpen || tabs.length < 2 ? VoidClose : Close_default;
17282
- return /* @__PURE__ */ jsx364(React61.Fragment, { children: sortedTabs.map(({ index, ...tab }) => {
17356
+ return /* @__PURE__ */ jsx364(React62.Fragment, { children: sortedTabs.map(({ index, ...tab }) => {
17283
17357
  const isActive = index === active;
17284
17358
  const hasSiblings = hasChildren(tabs, tab.group);
17285
17359
  const canClose = !props.internal && (!tab.primary || !hasSiblings);
17286
- return /* @__PURE__ */ jsxs182(
17360
+ return /* @__PURE__ */ jsxs183(
17287
17361
  Container28,
17288
17362
  {
17289
17363
  ...isActive ? { className: "active" } : {},
@@ -17374,8 +17448,8 @@ var Tabs = styled74.div`
17374
17448
  `;
17375
17449
 
17376
17450
  // src/components/Tabs/index.tsx
17377
- import { jsx as jsx365, jsxs as jsxs183 } from "react/jsx-runtime";
17378
- var VoidProvider = (props) => /* @__PURE__ */ jsx365(React62.Fragment, { children: props.children });
17451
+ import { jsx as jsx365, jsxs as jsxs184 } from "react/jsx-runtime";
17452
+ var VoidProvider = (props) => /* @__PURE__ */ jsx365(React63.Fragment, { children: props.children });
17379
17453
  var Component4 = (props) => {
17380
17454
  const components = props.components || {};
17381
17455
  const [options, setOptions] = typeof props.options[1] === "function" ? props.options : useState26(props.options);
@@ -17393,7 +17467,7 @@ var Component4 = (props) => {
17393
17467
  "delimiter",
17394
17468
  "spacing"
17395
17469
  ]);
17396
- return /* @__PURE__ */ jsxs183(React62.Fragment, { children: [
17470
+ return /* @__PURE__ */ jsxs184(React63.Fragment, { children: [
17397
17471
  /* @__PURE__ */ jsx365(
17398
17472
  Tabs,
17399
17473
  {
@@ -17426,7 +17500,7 @@ var Component4 = (props) => {
17426
17500
  ),
17427
17501
  options.map((tab, index) => {
17428
17502
  if (tab.component === void 0) {
17429
- return /* @__PURE__ */ jsx365(React62.Fragment, {}, index);
17503
+ return /* @__PURE__ */ jsx365(React63.Fragment, {}, index);
17430
17504
  }
17431
17505
  const Component5 = components[tab.component];
17432
17506
  const Provider7 = Component5.provider || VoidProvider;
@@ -17581,7 +17655,7 @@ var IconContent = styled76.div`
17581
17655
  `;
17582
17656
 
17583
17657
  // src/components/Toast/index.tsx
17584
- import { jsx as jsx367, jsxs as jsxs184 } from "react/jsx-runtime";
17658
+ import { jsx as jsx367, jsxs as jsxs185 } from "react/jsx-runtime";
17585
17659
  var Toast = ({
17586
17660
  size: size3,
17587
17661
  color,
@@ -17590,11 +17664,11 @@ var Toast = ({
17590
17664
  onClose: handlClose,
17591
17665
  ...props
17592
17666
  }) => {
17593
- return /* @__PURE__ */ jsxs184(Container30, { ...props, $size: size3, $color: color, children: [
17667
+ return /* @__PURE__ */ jsxs185(Container30, { ...props, $size: size3, $color: color, children: [
17594
17668
  /* @__PURE__ */ jsx367(IconContainer3, { children: /* @__PURE__ */ jsx367(Icon_default, { type: "feather", icon: "x", onClick: handlClose }) }),
17595
- /* @__PURE__ */ jsxs184(IconContent, { children: [
17669
+ /* @__PURE__ */ jsxs185(IconContent, { children: [
17596
17670
  /* @__PURE__ */ jsx367("h4", { children: title }),
17597
- /* @__PURE__ */ jsxs184("p", { children: [
17671
+ /* @__PURE__ */ jsxs185("p", { children: [
17598
17672
  " ",
17599
17673
  description
17600
17674
  ] })
@@ -17604,7 +17678,7 @@ var Toast = ({
17604
17678
  var Toast_default = Toast;
17605
17679
 
17606
17680
  // src/components/Zoom/index.tsx
17607
- import React63, { useState as useState27 } from "react";
17681
+ import React64, { useState as useState27 } from "react";
17608
17682
 
17609
17683
  // src/components/Zoom/styles.ts
17610
17684
  import styled77 from "styled-components";
@@ -17676,12 +17750,12 @@ var ModalContent = styled77.div`
17676
17750
  `;
17677
17751
 
17678
17752
  // src/components/Zoom/index.tsx
17679
- import { jsx as jsx368, jsxs as jsxs185 } from "react/jsx-runtime";
17753
+ import { jsx as jsx368, jsxs as jsxs186 } from "react/jsx-runtime";
17680
17754
  var Zoom = (props) => {
17681
17755
  const { src, width, height, ...imgProps } = props;
17682
17756
  const [modalOpened, setModalOpened] = useState27(false);
17683
- return /* @__PURE__ */ jsxs185(React63.Fragment, { children: [
17684
- /* @__PURE__ */ jsxs185(
17757
+ return /* @__PURE__ */ jsxs186(React64.Fragment, { children: [
17758
+ /* @__PURE__ */ jsxs186(
17685
17759
  Container31,
17686
17760
  {
17687
17761
  ...imgProps,