@tmf_ciclica/ciclicastorybook 1.2.70 → 1.2.71
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.cjs.js +5 -5
- package/dist/index.es.js +83 -83
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3,15 +3,15 @@ import { jsxs as m, jsx as i, Fragment as Xe } from "react/jsx-runtime";
|
|
|
3
3
|
import * as Me from "react";
|
|
4
4
|
import I, { useState as O, useEffect as A, useMemo as Be, useRef as te, useLayoutEffect as b2 } from "react";
|
|
5
5
|
import e from "prop-types";
|
|
6
|
-
import { useTranslation as F, Trans as
|
|
7
|
-
import { motion as
|
|
6
|
+
import { useTranslation as F, Trans as _t } from "react-i18next";
|
|
7
|
+
import { motion as vt } from "framer-motion";
|
|
8
8
|
import { create as jt } from "zustand";
|
|
9
|
-
import * as
|
|
10
|
-
import { select as we, min as
|
|
9
|
+
import * as it from "d3";
|
|
10
|
+
import { select as we, min as dt, max as ut, scaleBand as pt, scaleLinear as Ht, scaleOrdinal as Kt, axisBottom as Wt, axisLeft as ht } from "d3";
|
|
11
11
|
import _2 from "mapbox-gl";
|
|
12
12
|
import { useSelector as v2 } from "react-redux";
|
|
13
13
|
import x2, { Source as w2, Layer as N2, NavigationControl as k2, Popup as $2 } from "react-map-gl/mapbox";
|
|
14
|
-
import
|
|
14
|
+
import st from "maplibre-gl";
|
|
15
15
|
import { Protocol as S2 } from "pmtiles";
|
|
16
16
|
import L2, { Source as M2, Layer as B2, NavigationControl as T2, Popup as D2 } from "react-map-gl/maplibre";
|
|
17
17
|
import { createSlice as V2 } from "@reduxjs/toolkit";
|
|
@@ -324,7 +324,7 @@ const y0 = "_indicatorsCategory_11gdl_2", b0 = "_title_11gdl_6", _0 = "_mainTitl
|
|
|
324
324
|
}) => {
|
|
325
325
|
const { t: h } = F();
|
|
326
326
|
return /* @__PURE__ */ m(
|
|
327
|
-
|
|
327
|
+
vt.div,
|
|
328
328
|
{
|
|
329
329
|
className: Pe.indicatorsCategory,
|
|
330
330
|
initial: { height: `${d}px` },
|
|
@@ -519,18 +519,18 @@ Jt.propTypes = {
|
|
|
519
519
|
}),
|
|
520
520
|
checkedColor: e.string
|
|
521
521
|
};
|
|
522
|
-
function
|
|
523
|
-
return
|
|
522
|
+
function mt(n, c) {
|
|
523
|
+
return mt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(s, r) {
|
|
524
524
|
return s.__proto__ = r, s;
|
|
525
|
-
},
|
|
525
|
+
}, mt(n, c);
|
|
526
526
|
}
|
|
527
527
|
function L0(n, c) {
|
|
528
|
-
n.prototype = Object.create(c.prototype), n.prototype.constructor = n,
|
|
528
|
+
n.prototype = Object.create(c.prototype), n.prototype.constructor = n, mt(n, c);
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function rt(n) {
|
|
531
531
|
return n && n.stopPropagation && n.stopPropagation(), n && n.preventDefault && n.preventDefault(), !1;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function ot(n) {
|
|
534
534
|
return n == null ? [] : Array.isArray(n) ? n.slice() : [n];
|
|
535
535
|
}
|
|
536
536
|
function ze(n) {
|
|
@@ -542,17 +542,17 @@ function Ze(n) {
|
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
544
|
function be(n, c) {
|
|
545
|
-
return
|
|
545
|
+
return gt(function(s, r) {
|
|
546
546
|
let t = s;
|
|
547
547
|
return t <= r.min && (t = r.min), t >= r.max && (t = r.max), t;
|
|
548
548
|
}(n, c), c);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function gt(n, c) {
|
|
551
551
|
const s = (n - c.min) % c.step;
|
|
552
552
|
let r = n - s;
|
|
553
553
|
return 2 * Math.abs(s) >= c.step && (r += s > 0 ? c.step : -c.step), parseFloat(r.toFixed(5));
|
|
554
554
|
}
|
|
555
|
-
let
|
|
555
|
+
let Ct = function(n) {
|
|
556
556
|
function c(r) {
|
|
557
557
|
var t;
|
|
558
558
|
(t = n.call(this, r) || this).onKeyUp = () => {
|
|
@@ -612,7 +612,7 @@ let mt = function(n) {
|
|
|
612
612
|
t.start(u, l[0]), Ze(t.getMouseEventMap());
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
|
-
|
|
615
|
+
rt(a);
|
|
616
616
|
}
|
|
617
617
|
}, t.onSliderClick = (a) => {
|
|
618
618
|
if (!t.props.disabled && t.props.onSliderClick && !t.hasMoved) {
|
|
@@ -620,12 +620,12 @@ let mt = function(n) {
|
|
|
620
620
|
t.props.onSliderClick(u);
|
|
621
621
|
}
|
|
622
622
|
}, t.createOnKeyDown = (a) => (l) => {
|
|
623
|
-
t.props.disabled || (t.start(a), Ze(t.getKeyDownEventMap()),
|
|
623
|
+
t.props.disabled || (t.start(a), Ze(t.getKeyDownEventMap()), rt(l));
|
|
624
624
|
}, t.createOnMouseDown = (a) => (l) => {
|
|
625
625
|
if (t.props.disabled || l.button === 2) return;
|
|
626
626
|
t.setState({ pending: !0 });
|
|
627
627
|
const u = t.getMousePosition(l);
|
|
628
|
-
t.start(a, u[0]), Ze(t.getMouseEventMap()),
|
|
628
|
+
t.start(a, u[0]), Ze(t.getMouseEventMap()), rt(l);
|
|
629
629
|
}, t.createOnTouchStart = (a) => (l) => {
|
|
630
630
|
if (t.props.disabled || l.touches.length > 1) return;
|
|
631
631
|
t.setState({ pending: !0 });
|
|
@@ -647,8 +647,8 @@ let mt = function(n) {
|
|
|
647
647
|
const C = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(l, t.state.upperBound - u) }, h = { index: a, value: ze(t.state.value) };
|
|
648
648
|
return t.props.renderTrack(C, h);
|
|
649
649
|
};
|
|
650
|
-
let o =
|
|
651
|
-
o.length || (o =
|
|
650
|
+
let o = ot(r.value);
|
|
651
|
+
o.length || (o = ot(r.defaultValue)), t.pendingResizeTimeouts = [];
|
|
652
652
|
const d = [];
|
|
653
653
|
for (let a = 0; a < o.length; a += 1) o[a] = be(o[a], r), d.push(a);
|
|
654
654
|
return t.resizeObserver = null, t.resizeElementRef = I.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: o, zIndices: d }, t;
|
|
@@ -658,7 +658,7 @@ let mt = function(n) {
|
|
|
658
658
|
return s.componentDidMount = function() {
|
|
659
659
|
typeof window < "u" && (this.resizeObserver = new ResizeObserver(this.handleResize), this.resizeObserver.observe(this.resizeElementRef.current), this.resize());
|
|
660
660
|
}, c.getDerivedStateFromProps = function(r, t) {
|
|
661
|
-
const o =
|
|
661
|
+
const o = ot(r.value);
|
|
662
662
|
return o.length ? t.pending ? null : { value: o.map((d) => be(d, r)) } : null;
|
|
663
663
|
}, s.componentDidUpdate = function() {
|
|
664
664
|
this.state.upperBound === 0 && this.resize();
|
|
@@ -764,9 +764,9 @@ let mt = function(n) {
|
|
|
764
764
|
}(d, t, h, C))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
|
|
765
765
|
}, s.pushSucceeding = function(r, t, o) {
|
|
766
766
|
let d, a;
|
|
767
|
-
for (d = o, a = r[d] + t; r[d + 1] !== null && a > r[d + 1]; d += 1, a = r[d] + t) r[d + 1] =
|
|
767
|
+
for (d = o, a = r[d] + t; r[d + 1] !== null && a > r[d + 1]; d += 1, a = r[d] + t) r[d + 1] = gt(a, this.props);
|
|
768
768
|
}, s.pushPreceding = function(r, t, o) {
|
|
769
|
-
for (let d = o, a = r[d] - t; r[d - 1] !== null && a < r[d - 1]; d -= 1, a = r[d] - t) r[d - 1] =
|
|
769
|
+
for (let d = o, a = r[d] - t; r[d - 1] !== null && a < r[d - 1]; d -= 1, a = r[d] - t) r[d - 1] = gt(a, this.props);
|
|
770
770
|
}, s.axisKey = function() {
|
|
771
771
|
return this.props.orientation === "vertical" ? "Y" : "X";
|
|
772
772
|
}, s.orthogonalAxisKey = function() {
|
|
@@ -815,8 +815,8 @@ let mt = function(n) {
|
|
|
815
815
|
}, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, d, a, l);
|
|
816
816
|
}, c;
|
|
817
817
|
}(I.Component);
|
|
818
|
-
|
|
819
|
-
var
|
|
818
|
+
Ct.displayName = "ReactSlider", Ct.defaultProps = { min: 0, max: 100, step: 1, pageFn: (n) => 10 * n, minDistance: 0, defaultValue: 0, orientation: "horizontal", className: "slider", thumbClassName: "thumb", thumbActiveClassName: "active", trackClassName: "track", markClassName: "mark", withTracks: !0, pearling: !1, disabled: !1, snapDragDisabled: !1, invert: !1, marks: [], renderThumb: (n) => I.createElement("div", n), renderTrack: (n) => I.createElement("div", n), renderMark: (n) => I.createElement("span", n) };
|
|
819
|
+
var ft = Ct;
|
|
820
820
|
const M0 = "_container_4u41i_2", B0 = "_unitLabel_4u41i_8", T0 = "_slider_4u41i_11", D0 = "_thumb_4u41i_17", V0 = "_track_4u41i_26", F0 = "_labels_4u41i_32", ke = {
|
|
821
821
|
container: M0,
|
|
822
822
|
unitLabel: B0,
|
|
@@ -848,7 +848,7 @@ const M0 = "_container_4u41i_2", B0 = "_unitLabel_4u41i_8", T0 = "_slider_4u41i_
|
|
|
848
848
|
children: [
|
|
849
849
|
/* @__PURE__ */ i("div", { className: ke.unitLabel, children: /* @__PURE__ */ i("span", { children: u(o) }) }),
|
|
850
850
|
/* @__PURE__ */ i(
|
|
851
|
-
|
|
851
|
+
ft,
|
|
852
852
|
{
|
|
853
853
|
className: ke.slider,
|
|
854
854
|
thumbClassName: ke.thumb,
|
|
@@ -896,7 +896,7 @@ const A0 = "_tematicalFiltersInputContainer_1vm1r_2", O0 = "_inputTypeContainer_
|
|
|
896
896
|
inputTypeContainer: O0,
|
|
897
897
|
checkboxContainer: R0,
|
|
898
898
|
absoluteSliderContainer: I0
|
|
899
|
-
},
|
|
899
|
+
}, xt = ({
|
|
900
900
|
indicator: n,
|
|
901
901
|
//onChangeBothType
|
|
902
902
|
activeColor: c
|
|
@@ -1096,7 +1096,7 @@ const A0 = "_tematicalFiltersInputContainer_1vm1r_2", O0 = "_inputTypeContainer_
|
|
|
1096
1096
|
}
|
|
1097
1097
|
) });
|
|
1098
1098
|
};
|
|
1099
|
-
|
|
1099
|
+
xt.propTypes = {
|
|
1100
1100
|
indicator: e.shape({
|
|
1101
1101
|
name: e.string,
|
|
1102
1102
|
type: e.string,
|
|
@@ -1135,7 +1135,7 @@ const e2 = ({
|
|
|
1135
1135
|
color: c,
|
|
1136
1136
|
activeColor: s,
|
|
1137
1137
|
children: o == null ? void 0 : o.map((d, a) => /* @__PURE__ */ i(
|
|
1138
|
-
|
|
1138
|
+
xt,
|
|
1139
1139
|
{
|
|
1140
1140
|
indicator: d,
|
|
1141
1141
|
fontColor: c,
|
|
@@ -1188,7 +1188,7 @@ const t2 = ({
|
|
|
1188
1188
|
},
|
|
1189
1189
|
`subcategory-${l}`
|
|
1190
1190
|
)) : t && t.map((a, l) => /* @__PURE__ */ i(
|
|
1191
|
-
|
|
1191
|
+
xt,
|
|
1192
1192
|
{
|
|
1193
1193
|
indicator: a,
|
|
1194
1194
|
fontColor: d,
|
|
@@ -1418,9 +1418,9 @@ const U0 = "_barChartContainer_1each_2", Lt = {
|
|
|
1418
1418
|
contentWidth: f
|
|
1419
1419
|
} = Be(() => {
|
|
1420
1420
|
if (n && n.length > 0) {
|
|
1421
|
-
const x =
|
|
1421
|
+
const x = it.max(n, (S) => S.value) || 1, N = d || x;
|
|
1422
1422
|
if (a === "vertical") {
|
|
1423
|
-
const S = n.length * (c + s) + l * 2, k = Math.max(S, h || 0), L = y, T =
|
|
1423
|
+
const S = n.length * (c + s) + l * 2, k = Math.max(S, h || 0), L = y, T = it.scaleLinear().domain([0, N]).range([L - 100, u]), B = Array.from(
|
|
1424
1424
|
{ length: o + 1 },
|
|
1425
1425
|
(P, R) => N / o * R
|
|
1426
1426
|
);
|
|
@@ -1436,7 +1436,7 @@ const U0 = "_barChartContainer_1each_2", Lt = {
|
|
|
1436
1436
|
} else {
|
|
1437
1437
|
const S = n.length * (c + s);
|
|
1438
1438
|
console.log("barsHeight: ", S);
|
|
1439
|
-
const k = S + u * 2 + C + 30, L = h + t + l * 2, D =
|
|
1439
|
+
const k = S + u * 2 + C + 30, L = h + t + l * 2, D = it.scaleLinear().domain([0, N]).range([0, h - l * 2]), T = Array.from(
|
|
1440
1440
|
{ length: o + 1 },
|
|
1441
1441
|
(B, P) => N / o * P
|
|
1442
1442
|
);
|
|
@@ -1731,7 +1731,7 @@ const J0 = "_indicatorsCategory_arwy3_2", Y0 = "_title_arwy3_5", en = "_list_arw
|
|
|
1731
1731
|
optionContainer: un,
|
|
1732
1732
|
customRadious: pn,
|
|
1733
1733
|
optionText: hn
|
|
1734
|
-
},
|
|
1734
|
+
}, wt = ({
|
|
1735
1735
|
indicator: n,
|
|
1736
1736
|
values: c = [],
|
|
1737
1737
|
activeColor: s,
|
|
@@ -1853,7 +1853,7 @@ const J0 = "_indicatorsCategory_arwy3_2", Y0 = "_title_arwy3_5", en = "_list_arw
|
|
|
1853
1853
|
opacity: y ? 0.5 : 1
|
|
1854
1854
|
},
|
|
1855
1855
|
children: /* @__PURE__ */ i(
|
|
1856
|
-
|
|
1856
|
+
_t,
|
|
1857
1857
|
{
|
|
1858
1858
|
i18nKey: C,
|
|
1859
1859
|
components: { sup: /* @__PURE__ */ i("sup", {}) },
|
|
@@ -1869,7 +1869,7 @@ const J0 = "_indicatorsCategory_arwy3_2", Y0 = "_title_arwy3_5", en = "_list_arw
|
|
|
1869
1869
|
(t == null ? void 0 : t.name) === C && h === "twoUnits" && /* @__PURE__ */ i("div", { children: v() })
|
|
1870
1870
|
] });
|
|
1871
1871
|
};
|
|
1872
|
-
|
|
1872
|
+
wt.propTypes = {
|
|
1873
1873
|
indicator: e.shape({
|
|
1874
1874
|
name: e.string,
|
|
1875
1875
|
type: e.string
|
|
@@ -1902,7 +1902,7 @@ const mn = "_indicatorsSubCategory_1nuug_2", gn = "_list_1nuug_11", Bt = {
|
|
|
1902
1902
|
return A(() => {
|
|
1903
1903
|
g(t == d);
|
|
1904
1904
|
}, [t, d]), /* @__PURE__ */ m(
|
|
1905
|
-
|
|
1905
|
+
vt.div,
|
|
1906
1906
|
{
|
|
1907
1907
|
className: Bt.indicatorsSubCategory,
|
|
1908
1908
|
initial: { height: "43px" },
|
|
@@ -1920,7 +1920,7 @@ const mn = "_indicatorsSubCategory_1nuug_2", gn = "_list_1nuug_11", Bt = {
|
|
|
1920
1920
|
)
|
|
1921
1921
|
] }) }),
|
|
1922
1922
|
c && /* @__PURE__ */ i("div", { className: Bt.list, children: c == null ? void 0 : c.map((_, v) => /* @__PURE__ */ i(
|
|
1923
|
-
|
|
1923
|
+
wt,
|
|
1924
1924
|
{
|
|
1925
1925
|
indicator: _,
|
|
1926
1926
|
defaultColor: s,
|
|
@@ -1969,7 +1969,7 @@ const r2 = ({
|
|
|
1969
1969
|
return A(() => {
|
|
1970
1970
|
_(o === c);
|
|
1971
1971
|
}, [o, c]), /* @__PURE__ */ m(
|
|
1972
|
-
|
|
1972
|
+
vt.div,
|
|
1973
1973
|
{
|
|
1974
1974
|
className: He.indicatorsCategory,
|
|
1975
1975
|
initial: { height: "53px" },
|
|
@@ -2011,7 +2011,7 @@ const r2 = ({
|
|
|
2011
2011
|
`subcKey ${f}`
|
|
2012
2012
|
)
|
|
2013
2013
|
) : /* @__PURE__ */ i("div", { className: He.list, children: (v = n.indicators) == null ? void 0 : v.map((b, w) => /* @__PURE__ */ i(
|
|
2014
|
-
|
|
2014
|
+
wt,
|
|
2015
2015
|
{
|
|
2016
2016
|
indicator: b,
|
|
2017
2017
|
values: b.type == "twoUnits" && b.values,
|
|
@@ -2263,7 +2263,7 @@ const kn = "_legendContainer_4ndr8_3", $n = "_closeButton_4ndr8_41", Sn = "_titl
|
|
|
2263
2263
|
marginTop: s && s.length > 0 && u === 0 ? "30px" : u > 0 ? "20px" : "0px"
|
|
2264
2264
|
},
|
|
2265
2265
|
children: l.title && /* @__PURE__ */ i(
|
|
2266
|
-
|
|
2266
|
+
_t,
|
|
2267
2267
|
{
|
|
2268
2268
|
i18nKey: l.title,
|
|
2269
2269
|
components: { sup: /* @__PURE__ */ i("sup", {}) },
|
|
@@ -2511,7 +2511,7 @@ const Kn = "_mapContainer_b0pyr_3", Wn = {
|
|
|
2511
2511
|
const { t: c } = F();
|
|
2512
2512
|
return /* @__PURE__ */ i("div", { className: Vt.FeaturePopUp, children: n.map((s) => /* @__PURE__ */ m("p", { children: [
|
|
2513
2513
|
/* @__PURE__ */ m("span", { className: Vt.title, children: [
|
|
2514
|
-
/* @__PURE__ */ i(
|
|
2514
|
+
/* @__PURE__ */ i(_t, { i18nKey: s.name, components: { sup: /* @__PURE__ */ i("sup", {}) }, shouldUnescape: !0 }),
|
|
2515
2515
|
":"
|
|
2516
2516
|
] }),
|
|
2517
2517
|
isNaN(s.value) ? /* @__PURE__ */ i(Xe, { children: c(s.value) }) : /* @__PURE__ */ m(Xe, { children: [
|
|
@@ -2546,13 +2546,13 @@ const Kn = "_mapContainer_b0pyr_3", Wn = {
|
|
|
2546
2546
|
}
|
|
2547
2547
|
}, [y]), A(() => {
|
|
2548
2548
|
let _ = new S2();
|
|
2549
|
-
return
|
|
2550
|
-
|
|
2549
|
+
return st.addProtocol("pmtiles", _.tile), () => {
|
|
2550
|
+
st.removeProtocol("pmtiles");
|
|
2551
2551
|
};
|
|
2552
2552
|
}, []), /* @__PURE__ */ i("div", { className: `${Wn.mapContainer}`, style: o && o, children: /* @__PURE__ */ m(
|
|
2553
2553
|
L2,
|
|
2554
2554
|
{
|
|
2555
|
-
mapLib:
|
|
2555
|
+
mapLib: st,
|
|
2556
2556
|
initialViewState: n,
|
|
2557
2557
|
ref: g,
|
|
2558
2558
|
hash: p,
|
|
@@ -2852,7 +2852,7 @@ pi.propTypes = {
|
|
|
2852
2852
|
rightBarOpen: e.bool,
|
|
2853
2853
|
onChange: e.func
|
|
2854
2854
|
};
|
|
2855
|
-
const hi = "_TopNavMenuContainer_12mp4_2", mi = "_topNavOptions_12mp4_13", gi = "_active_12mp4_27",
|
|
2855
|
+
const hi = "_TopNavMenuContainer_12mp4_2", mi = "_topNavOptions_12mp4_13", gi = "_active_12mp4_27", at = {
|
|
2856
2856
|
TopNavMenuContainer: hi,
|
|
2857
2857
|
topNavOptions: mi,
|
|
2858
2858
|
active: gi
|
|
@@ -2866,11 +2866,11 @@ const hi = "_TopNavMenuContainer_12mp4_2", mi = "_topNavOptions_12mp4_13", gi =
|
|
|
2866
2866
|
}
|
|
2867
2867
|
}) => {
|
|
2868
2868
|
const { t: o } = F();
|
|
2869
|
-
return /* @__PURE__ */ i("div", { className:
|
|
2869
|
+
return /* @__PURE__ */ i("div", { className: at.TopNavMenuContainer, style: { ...c }, children: n.map((d, a) => /* @__PURE__ */ i(
|
|
2870
2870
|
Ut,
|
|
2871
2871
|
{
|
|
2872
2872
|
to: d.url,
|
|
2873
|
-
className: ({ isActive: l }) => `${
|
|
2873
|
+
className: ({ isActive: l }) => `${at.topNavOptions} ${l ? at.active : ""} `,
|
|
2874
2874
|
onClick: () => t(d.url),
|
|
2875
2875
|
style: ({ isActive: l }) => ({
|
|
2876
2876
|
color: r,
|
|
@@ -2948,17 +2948,17 @@ const _i = "_elementSelector_1ox68_2", vi = "_header_1ox68_14", xi = "_nameDateC
|
|
|
2948
2948
|
moreInfo: Oi
|
|
2949
2949
|
}, Ri = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e", Ii = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Ei = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e", qi = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Pi = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.3062'%20cy='15.2144'%20r='14.3521'%20stroke='%2392898A'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9898%2012.7234V9.89008C11.9898%208.88815%2012.3811%207.92726%2013.0777%207.21879C13.7743%206.51032%2014.719%206.1123%2015.7041%206.1123C16.6892%206.1123%2017.6339%206.51032%2018.3305%207.21879C19.0271%207.92726%2019.4184%208.88815%2019.4184%209.89008V12.7234H20.347C20.8395%2012.7234%2021.3119%2012.9224%2021.6602%2013.2767C22.0084%2013.6309%2022.2041%2014.1113%2022.2041%2014.6123V21.2234C22.2041%2021.7244%2022.0084%2022.2048%2021.6602%2022.5591C21.3119%2022.9133%2020.8395%2023.1123%2020.347%2023.1123H11.0612C10.5687%2023.1123%2010.0963%2022.9133%209.74805%2022.5591C9.39976%2022.2048%209.2041%2021.7244%209.2041%2021.2234V14.6123C9.2041%2014.1113%209.39976%2013.6309%209.74805%2013.2767C10.0963%2012.9224%2010.5687%2012.7234%2011.0612%2012.7234H11.9898ZM13.847%209.89008C13.847%209.38912%2014.0426%208.90867%2014.3909%208.55444C14.7392%208.2002%2015.2116%208.00119%2015.7041%208.00119C16.1966%208.00119%2016.669%208.2002%2017.0173%208.55444C17.3656%208.90867%2017.5612%209.38912%2017.5612%209.89008V12.7234H13.847V9.89008ZM15.7041%2015.5567C15.9504%2015.5567%2016.1866%2015.6563%2016.3607%2015.8334C16.5348%2016.0105%2016.6327%2016.2507%2016.6327%2016.5012V19.3345C16.6327%2019.585%2016.5348%2019.8252%2016.3607%2020.0023C16.1866%2020.1795%2015.9504%2020.279%2015.7041%2020.279C15.4578%2020.279%2015.2216%2020.1795%2015.0475%2020.0023C14.8734%2019.8252%2014.7755%2019.585%2014.7755%2019.3345V16.5012C14.7755%2016.2507%2014.8734%2016.0105%2015.0475%2015.8334C15.2216%2015.6563%2015.4578%2015.5567%2015.7041%2015.5567Z'%20fill='%2392898A'/%3e%3c/svg%3e", zi = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Editar'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203792'%3e%3cpath%20id='Vector%20530'%20d='M22.469%2010.8343L19.54%207.90531C19.3447%207.71005%2019.0281%207.71005%2018.8329%207.90531L8.39131%2018.3469C8.31762%2018.4206%208.2688%2018.5154%208.25167%2018.6182L7.66586%2022.1331C7.60946%2022.4715%207.90285%2022.7649%208.24126%2022.7085L11.7561%2022.1227C11.8589%2022.1055%2011.9538%2022.0567%2012.0275%2021.983L22.469%2011.5415C22.6643%2011.3462%2022.6643%2011.0296%2022.469%2010.8343Z'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20531'%20d='M9.00391%2017.7334L12.6401%2021.3695'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20614'%20d='M19.4292%207.55176L9.24805%2017.733L12.6418%2021.1267L22.823%2010.9455L19.4292%207.55176Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Zi = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206729'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='i'%20d='M14%209.008C14%208.708%2014.102%208.468%2014.306%208.288C14.51%208.096%2014.78%208%2015.116%208C15.452%208%2015.722%208.096%2015.926%208.288C16.13%208.468%2016.232%208.708%2016.232%209.008C16.232%209.308%2016.13%209.554%2015.926%209.746C15.722%209.926%2015.452%2010.016%2015.116%2010.016C14.78%2010.016%2014.51%209.926%2014.306%209.746C14.102%209.554%2014%209.308%2014%209.008ZM15.926%2011.906V21.788H14.288V11.906H15.926Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e";
|
|
2950
2950
|
var Ft;
|
|
2951
|
-
function
|
|
2952
|
-
return
|
|
2951
|
+
function yt() {
|
|
2952
|
+
return yt = Object.assign ? Object.assign.bind() : function(n) {
|
|
2953
2953
|
for (var c = 1; c < arguments.length; c++) {
|
|
2954
2954
|
var s = arguments[c];
|
|
2955
2955
|
for (var r in s) ({}).hasOwnProperty.call(s, r) && (n[r] = s[r]);
|
|
2956
2956
|
}
|
|
2957
2957
|
return n;
|
|
2958
|
-
},
|
|
2958
|
+
}, yt.apply(null, arguments);
|
|
2959
2959
|
}
|
|
2960
2960
|
var ji = function(c) {
|
|
2961
|
-
return /* @__PURE__ */ Me.createElement("svg",
|
|
2961
|
+
return /* @__PURE__ */ Me.createElement("svg", yt({
|
|
2962
2962
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2963
2963
|
width: 26,
|
|
2964
2964
|
height: 14,
|
|
@@ -3297,12 +3297,12 @@ function l2(n) {
|
|
|
3297
3297
|
return n;
|
|
3298
3298
|
return c;
|
|
3299
3299
|
}
|
|
3300
|
-
var c2 = (n) => /^\w*$/.test(n),
|
|
3300
|
+
var c2 = (n) => /^\w*$/.test(n), bt = (n) => n === void 0, rs = (n) => Array.isArray(n) ? n.filter(Boolean) : [], d2 = (n) => rs(n.replace(/["|']|\]/g, "").split(/\.|\[/)), Y = (n, c, s) => {
|
|
3301
3301
|
if (!c || !Re(n))
|
|
3302
3302
|
return s;
|
|
3303
3303
|
const r = (c2(c) ? [c] : d2(c)).reduce((t, o) => a2(t) ? t : t[o], n);
|
|
3304
|
-
return
|
|
3305
|
-
},
|
|
3304
|
+
return bt(r) || r === n ? bt(n[c]) ? s : n[c] : r;
|
|
3305
|
+
}, lt = (n) => typeof n == "boolean", Ot = (n, c, s) => {
|
|
3306
3306
|
let r = -1;
|
|
3307
3307
|
const t = c2(c) ? [c] : d2(c), o = t.length, d = o - 1;
|
|
3308
3308
|
for (; ++r < o; ) {
|
|
@@ -3324,7 +3324,7 @@ const Rt = {
|
|
|
3324
3324
|
all: "all"
|
|
3325
3325
|
}, u2 = I.createContext(null);
|
|
3326
3326
|
u2.displayName = "HookFormContext";
|
|
3327
|
-
const
|
|
3327
|
+
const Nt = () => I.useContext(u2);
|
|
3328
3328
|
var os = (n, c, s, r = !0) => {
|
|
3329
3329
|
const t = {
|
|
3330
3330
|
defaultValues: c._defaultValues
|
|
@@ -3340,7 +3340,7 @@ var os = (n, c, s, r = !0) => {
|
|
|
3340
3340
|
};
|
|
3341
3341
|
const p2 = typeof window < "u" ? Me.useLayoutEffect : Me.useEffect;
|
|
3342
3342
|
function as(n) {
|
|
3343
|
-
const c =
|
|
3343
|
+
const c = Nt(), { control: s = c.control, disabled: r, name: t, exact: o } = n || {}, [d, a] = I.useState(s._formState), l = I.useRef({
|
|
3344
3344
|
isDirty: !1,
|
|
3345
3345
|
isLoading: !1,
|
|
3346
3346
|
dirtyFields: !1,
|
|
@@ -3366,7 +3366,7 @@ function as(n) {
|
|
|
3366
3366
|
}
|
|
3367
3367
|
var ls = (n) => typeof n == "string", cs = (n, c, s, r, t) => ls(n) ? Y(s, n, t) : Array.isArray(n) ? n.map((o) => Y(s, o)) : s;
|
|
3368
3368
|
function ds(n) {
|
|
3369
|
-
const c =
|
|
3369
|
+
const c = Nt(), { control: s = c.control, name: r, defaultValue: t, disabled: o, exact: d } = n || {}, a = I.useRef(t), [l, u] = I.useState(s._getWatch(r, a.current));
|
|
3370
3370
|
return p2(() => s._subscribe({
|
|
3371
3371
|
name: r,
|
|
3372
3372
|
formState: {
|
|
@@ -3377,7 +3377,7 @@ function ds(n) {
|
|
|
3377
3377
|
}), [r, s, o, d]), I.useEffect(() => s._removeUnmounted()), l;
|
|
3378
3378
|
}
|
|
3379
3379
|
function us(n) {
|
|
3380
|
-
const c =
|
|
3380
|
+
const c = Nt(), { name: s, disabled: r, control: t = c.control, shouldUnregister: o } = n, d = ns(t._names.array, s), a = ds({
|
|
3381
3381
|
control: t,
|
|
3382
3382
|
name: s,
|
|
3383
3383
|
defaultValue: Y(t._formValues, s, Y(t._defaultValues, s, n.defaultValue)),
|
|
@@ -3389,7 +3389,7 @@ function us(n) {
|
|
|
3389
3389
|
}), u = I.useRef(n), C = I.useRef(t.register(s, {
|
|
3390
3390
|
...n.rules,
|
|
3391
3391
|
value: a,
|
|
3392
|
-
...
|
|
3392
|
+
...lt(n.disabled) ? { disabled: n.disabled } : {}
|
|
3393
3393
|
})), h = I.useMemo(() => Object.defineProperties({}, {
|
|
3394
3394
|
invalid: {
|
|
3395
3395
|
enumerable: !0,
|
|
@@ -3434,7 +3434,7 @@ function us(n) {
|
|
|
3434
3434
|
}, [t._fields, s]), _ = I.useMemo(() => ({
|
|
3435
3435
|
name: s,
|
|
3436
3436
|
value: a,
|
|
3437
|
-
...
|
|
3437
|
+
...lt(r) || l.disabled ? { disabled: l.disabled || r } : {},
|
|
3438
3438
|
onChange: y,
|
|
3439
3439
|
onBlur: p,
|
|
3440
3440
|
ref: g
|
|
@@ -3443,7 +3443,7 @@ function us(n) {
|
|
|
3443
3443
|
const v = t._options.shouldUnregister || o;
|
|
3444
3444
|
t.register(s, {
|
|
3445
3445
|
...u.current.rules,
|
|
3446
|
-
...
|
|
3446
|
+
...lt(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
3447
3447
|
});
|
|
3448
3448
|
const b = (w, $) => {
|
|
3449
3449
|
const f = Y(t._fields, w);
|
|
@@ -3451,7 +3451,7 @@ function us(n) {
|
|
|
3451
3451
|
};
|
|
3452
3452
|
if (b(s, !0), v) {
|
|
3453
3453
|
const w = l2(Y(t._options.defaultValues, s));
|
|
3454
|
-
Ot(t._defaultValues, s, w),
|
|
3454
|
+
Ot(t._defaultValues, s, w), bt(Y(t._formValues, s)) && Ot(t._formValues, s, w);
|
|
3455
3455
|
}
|
|
3456
3456
|
return !d && t.register(s), () => {
|
|
3457
3457
|
(d ? v && !t._state.action : v) ? t.unregister(s) : b(s, !1);
|
|
@@ -3862,7 +3862,7 @@ const Ie = (n) => n.render(us(n)), ps = "_textInputContainer_1o3iy_2", hs = "_la
|
|
|
3862
3862
|
p && /* @__PURE__ */ i("div", { className: Z.minLabel, children: w(p) }),
|
|
3863
3863
|
/* @__PURE__ */ m("div", { children: [
|
|
3864
3864
|
/* @__PURE__ */ i(
|
|
3865
|
-
|
|
3865
|
+
ft,
|
|
3866
3866
|
{
|
|
3867
3867
|
min: o,
|
|
3868
3868
|
max: d,
|
|
@@ -3911,7 +3911,7 @@ const Ie = (n) => n.render(us(n)), ps = "_textInputContainer_1o3iy_2", hs = "_la
|
|
|
3911
3911
|
p && /* @__PURE__ */ i("div", { className: Z.minLabel, children: w(p) }),
|
|
3912
3912
|
/* @__PURE__ */ m("div", { children: [
|
|
3913
3913
|
/* @__PURE__ */ i(
|
|
3914
|
-
|
|
3914
|
+
ft,
|
|
3915
3915
|
{
|
|
3916
3916
|
min: o,
|
|
3917
3917
|
max: d,
|
|
@@ -4675,13 +4675,13 @@ const O1 = "_svgContainer_1rxoe_2", R1 = "_svg_1rxoe_2", zt = {
|
|
|
4675
4675
|
if (!n || n.length === 0 || N.width === 0) return;
|
|
4676
4676
|
const k = we(f.current), L = N.width, D = N.height, T = L - o.left - o.right, B = D - o.top - o.bottom;
|
|
4677
4677
|
if (T <= 0 || B <= 0) return;
|
|
4678
|
-
const P = n.map((V) => V.anyo || V.year || V.x), R = c, X =
|
|
4678
|
+
const P = n.map((V) => V.anyo || V.year || V.x), R = c, X = dt(n, (V) => dt(R, (W) => V[W])) || 0, K = ut(n, (V) => ut(R, (W) => V[W])) || 0, z = pt().domain(P).rangeRound([0, T]).paddingInner(y), E = pt().domain(R).rangeRound([0, z.bandwidth()]).padding(p), se = Ht().domain([Math.min(0, X), K]).nice().rangeRound([B, 0]), Ce = Kt().domain(R).range(Array.isArray(s) ? s : Object.values(s || {}));
|
|
4679
4679
|
k.selectAll("*").remove();
|
|
4680
4680
|
const oe = k.append("g").attr("transform", `translate(${o.left},${o.top})`);
|
|
4681
4681
|
b && k.append("text").attr("x", L / 2).attr("y", o.top / 2).attr("text-anchor", "middle").style("font-size", "16px").style("font-weight", "bold").style("fill", "#333").text(b), u && oe.append("g").attr("class", "grid").selectAll("line").data(se.ticks()).enter().append("line").attr("x1", 0).attr("x2", T).attr("y1", (V) => se(V)).attr("y2", (V) => se(V)).style("stroke", "#e0e0e0").style("stroke-width", 0.5), a && (oe.append("g").attr("transform", `translate(0,${B})`).call(Wt(z).tickSizeOuter(0)).attr("class", "x-axis").selectAll("text").attr("transform", `translate(0,10)rotate(${C})`).style("text-anchor", C < 0 ? "end" : "middle").style("font-size", "12px").style("fill", "#605B56"), w && oe.append("text").attr(
|
|
4682
4682
|
"transform",
|
|
4683
4683
|
`translate(${T / 2}, ${B + o.bottom - 5})`
|
|
4684
|
-
).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(w)), l && (oe.append("g").call(
|
|
4684
|
+
).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(w)), l && (oe.append("g").call(ht(se).ticks(6).tickFormat(h)).attr("class", "y-axis").call((V) => V.select(".domain").remove()), $ && oe.append("text").attr("transform", "rotate(-90)").attr("y", 0 - o.left).attr("x", 0 - B / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text($));
|
|
4685
4685
|
const Q = oe.append("g").selectAll(".bar-group").data(n).enter().append("g").attr("class", "bar-group").attr("transform", (V) => `translate(${z(V.anyo || V.year || V.x)},0)`).selectAll(".bar").data(
|
|
4686
4686
|
(V) => R.map((W) => ({
|
|
4687
4687
|
key: W,
|
|
@@ -4822,9 +4822,9 @@ const E1 = "_svgContainer_7fkic_2", q1 = "_svg_7fkic_2", Zt = {
|
|
|
4822
4822
|
value: Number(M[G]) || 0,
|
|
4823
4823
|
data: M
|
|
4824
4824
|
})), f2 = j.filter((G) => G.value < 0), y2 = j.filter((G) => G.value >= 0);
|
|
4825
|
-
let
|
|
4825
|
+
let et = 0;
|
|
4826
4826
|
f2.forEach((G) => {
|
|
4827
|
-
const fe =
|
|
4827
|
+
const fe = et, ce = et + G.value, nt = Math.abs(ce - fe);
|
|
4828
4828
|
Ce.push({
|
|
4829
4829
|
key: G.key,
|
|
4830
4830
|
value: G.value,
|
|
@@ -4832,29 +4832,29 @@ const E1 = "_svgContainer_7fkic_2", q1 = "_svg_7fkic_2", Zt = {
|
|
|
4832
4832
|
// El punto más alto
|
|
4833
4833
|
y1: Math.min(fe, ce),
|
|
4834
4834
|
// El punto más bajo
|
|
4835
|
-
height:
|
|
4835
|
+
height: nt,
|
|
4836
4836
|
data: G.data,
|
|
4837
4837
|
xKey: ee
|
|
4838
|
-
}),
|
|
4838
|
+
}), et = ce;
|
|
4839
4839
|
});
|
|
4840
|
-
let
|
|
4840
|
+
let tt = 0;
|
|
4841
4841
|
y2.forEach((G) => {
|
|
4842
|
-
const fe =
|
|
4842
|
+
const fe = tt, ce = tt + G.value, nt = ce - fe;
|
|
4843
4843
|
Ce.push({
|
|
4844
4844
|
key: G.key,
|
|
4845
4845
|
value: G.value,
|
|
4846
4846
|
y0: Math.min(fe, ce),
|
|
4847
4847
|
y1: Math.max(fe, ce),
|
|
4848
|
-
height:
|
|
4848
|
+
height: nt,
|
|
4849
4849
|
data: G.data,
|
|
4850
4850
|
xKey: ee
|
|
4851
|
-
}),
|
|
4851
|
+
}), tt = ce;
|
|
4852
4852
|
});
|
|
4853
4853
|
});
|
|
4854
4854
|
const oe = [
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
], ae =
|
|
4855
|
+
dt(Ce, (M) => Math.min(M.y0, M.y1)) || 0,
|
|
4856
|
+
ut(Ce, (M) => Math.max(M.y0, M.y1)) || 0
|
|
4857
|
+
], ae = pt().domain(n.map((M) => M.any || M.year || M.x)).range([0, K]).padding(y), Q = Ht().domain([oe[0], oe[1]]).nice(6).range([E, 0]), V = Kt().domain(c).range(Array.isArray(s) ? s : Object.values(s || {}));
|
|
4858
4858
|
T.selectAll("*").remove();
|
|
4859
4859
|
const W = T.append("g").attr("transform", `translate(${o.left},${o.top})`);
|
|
4860
4860
|
v && T.append("text").attr("x", svgWidth / 2).attr("y", o.top / 2).attr("text-anchor", "middle").style("font-size", "16px").style("font-weight", "bold").style("fill", "#333").text(v), u && W.append("g").attr("class", "grid").selectAll("line").data(Q.ticks(6)).enter().append("line").attr("x1", 0).attr("x2", K).attr("y1", (M) => Q(M)).attr("y2", (M) => Q(M)).style("stroke", "#e0e0e0").style("stroke-width", 0.5), a && (W.append("g").attr("class", "x-axis").attr("transform", `translate(0, ${E})`).call(Wt(ae).tickSizeOuter(0)).selectAll("text").remove(), W.append("g").attr("class", "x-axis-labels").attr("transform", `translate(0, ${E})`).selectAll("text").data(n).enter().append("text").attr(
|
|
@@ -4869,7 +4869,7 @@ const E1 = "_svgContainer_7fkic_2", q1 = "_svg_7fkic_2", Zt = {
|
|
|
4869
4869
|
).text((j) => j.any || j.year || j.x), b && W.append("text").attr(
|
|
4870
4870
|
"transform",
|
|
4871
4871
|
`translate(${K / 2}, ${E + o.bottom - 5})`
|
|
4872
|
-
).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(b)), l && (W.append("g").attr("class", "y-axis").call(
|
|
4872
|
+
).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(b)), l && (W.append("g").attr("class", "y-axis").call(ht(Q).ticks(6).tickFormat(h)).call((M) => M.select(".domain").remove()), W.append("g").attr("class", "y-ticks").attr("transform", `translate(${K}, 0)`).call(ht(Q).ticks(6).tickSizeInner(K)).call((M) => M.select(".domain").remove()).call((M) => M.selectAll(".tick text").remove()), w && W.append("text").attr("transform", "rotate(-90)").attr("y", 0 - o.left).attr("x", 0 - E / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(w));
|
|
4873
4873
|
let le;
|
|
4874
4874
|
f && (le = we("body").append("div").attr("class", "chart-tooltip").style("position", "absolute").style("visibility", "hidden").style("background", "rgba(0, 0, 0, 0.8)").style("color", "white").style("padding", "8px").style("border-radius", "4px").style("font-size", "12px").style("pointer-events", "none").style("z-index", "1000"));
|
|
4875
4875
|
const Je = W.selectAll(".segment").data(Ce, (M) => `${M.xKey}-${M.key}`);
|
|
@@ -5106,7 +5106,7 @@ ir.propTypes = {
|
|
|
5106
5106
|
/** Ancho fijo para las columnas de años. */
|
|
5107
5107
|
columnWidth: e.number
|
|
5108
5108
|
};
|
|
5109
|
-
const sr = "_speedGraphic_d1k72_2",
|
|
5109
|
+
const sr = "_speedGraphic_d1k72_2", ct = {
|
|
5110
5110
|
speedGraphic: sr
|
|
5111
5111
|
}, rr = ({
|
|
5112
5112
|
minValue: n = 0,
|
|
@@ -5121,7 +5121,7 @@ const sr = "_speedGraphic_d1k72_2", at = {
|
|
|
5121
5121
|
}) => {
|
|
5122
5122
|
s < n && (s = n), s > c && (s = c);
|
|
5123
5123
|
const u = (s - n) / (c - n), C = 270 + u * 180, h = t ? Math.round(u * 100) : s;
|
|
5124
|
-
return /* @__PURE__ */ m("div", { className:
|
|
5124
|
+
return /* @__PURE__ */ m("div", { className: ct.speedGraphic, children: [
|
|
5125
5125
|
/* @__PURE__ */ m(
|
|
5126
5126
|
"svg",
|
|
5127
5127
|
{
|
|
@@ -5227,12 +5227,12 @@ const sr = "_speedGraphic_d1k72_2", at = {
|
|
|
5227
5227
|
]
|
|
5228
5228
|
}
|
|
5229
5229
|
),
|
|
5230
|
-
/* @__PURE__ */ m("div", { className:
|
|
5230
|
+
/* @__PURE__ */ m("div", { className: ct.value, children: [
|
|
5231
5231
|
h,
|
|
5232
5232
|
t && "%",
|
|
5233
5233
|
o && o
|
|
5234
5234
|
] }),
|
|
5235
|
-
r && /* @__PURE__ */ i("div", { className:
|
|
5235
|
+
r && /* @__PURE__ */ i("div", { className: ct.title, children: r })
|
|
5236
5236
|
] });
|
|
5237
5237
|
};
|
|
5238
5238
|
rr.propTypes = {
|