siam-ui-utils 3.0.30 → 3.0.32

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.
Files changed (85) hide show
  1. package/dist/CustomBootstrap.js +9 -9
  2. package/dist/_virtual/_commonjsHelpers.js +7 -7
  3. package/dist/_virtual/events.js +6 -6
  4. package/dist/_virtual/events2.js +5 -5
  5. package/dist/_virtual/index.js +8 -8
  6. package/dist/_virtual/index2.js +5 -5
  7. package/dist/_virtual/react-dropzone.js +8 -8
  8. package/dist/_virtual/react-dropzone2.js +5 -5
  9. package/dist/assets/img/copiar.png.js +5 -5
  10. package/dist/assets/img/take-photo.jpg.js +5 -5
  11. package/dist/constants.js +9 -9
  12. package/dist/copy-link/index.js +60 -60
  13. package/dist/copy-link/styles.css +37 -37
  14. package/dist/custom-input/CustomInputCheckbox.js +35 -36
  15. package/dist/custom-input/CustomInputCurrency.js +84 -85
  16. package/dist/custom-input/CustomInputFile.js +45 -46
  17. package/dist/custom-input/CustomInputRadio.js +66 -67
  18. package/dist/custom-input/constant.js +5 -5
  19. package/dist/custom-input/index.js +12 -12
  20. package/dist/drag-and-dropzone/config.js +59 -59
  21. package/dist/drag-and-dropzone/index.js +39 -39
  22. package/dist/dropzone/Input.js +77 -77
  23. package/dist/dropzone/Layout.js +50 -50
  24. package/dist/dropzone/Preview.js +117 -117
  25. package/dist/dropzone/SubmitButton.js +34 -34
  26. package/dist/dropzone/assets/cancel.svg.js +5 -5
  27. package/dist/dropzone/assets/remove.svg.js +5 -5
  28. package/dist/dropzone/assets/restart.svg.js +5 -5
  29. package/dist/dropzone/index.js +514 -514
  30. package/dist/dropzone/utils.js +93 -93
  31. package/dist/dropzone-uploader/base/index.js +135 -135
  32. package/dist/dropzone-uploader/index.js +7 -7
  33. package/dist/dropzone-uploader/styled/index.js +148 -149
  34. package/dist/iconos/constants-svg.js +666 -666
  35. package/dist/iconos/icon-button-svg.js +50 -50
  36. package/dist/iconos/index.js +24 -24
  37. package/dist/iconos/styled-icon.js +26 -26
  38. package/dist/index.js +4 -4
  39. package/dist/intl-messages/index.js +11 -11
  40. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -8
  41. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -13
  42. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -8
  43. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +13 -13
  44. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -9
  45. package/dist/node_modules/classnames/index.js +62 -62
  46. package/dist/node_modules/dom-helpers/esm/addClass.js +10 -10
  47. package/dist/node_modules/dom-helpers/esm/hasClass.js +8 -8
  48. package/dist/node_modules/dom-helpers/esm/removeClass.js +16 -16
  49. package/dist/node_modules/events/events.js +372 -372
  50. package/dist/node_modules/react-dropzone-component/dist/react-dropzone.js +1023 -1023
  51. package/dist/node_modules/react-multi-select-component/dist/esm/index.js +178 -178
  52. package/dist/node_modules/react-transition-group/esm/CSSTransition.js +275 -275
  53. package/dist/node_modules/react-transition-group/esm/Transition.js +441 -441
  54. package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +146 -146
  55. package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js +6 -6
  56. package/dist/node_modules/react-transition-group/esm/config.js +7 -7
  57. package/dist/node_modules/react-transition-group/esm/utils/ChildMapping.js +100 -100
  58. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +24 -24
  59. package/dist/node_modules/react-transition-group/esm/utils/reflow.js +7 -7
  60. package/dist/react-notifications/Notification.js +73 -73
  61. package/dist/react-notifications/NotificationContainer.js +59 -59
  62. package/dist/react-notifications/NotificationManager.js +174 -174
  63. package/dist/react-notifications/Notifications.js +72 -72
  64. package/dist/react-notifications/constants.js +26 -26
  65. package/dist/react-notifications/index.js +11 -11
  66. package/dist/select/custom-select/constants.js +8 -8
  67. package/dist/select/custom-select/index.js +90 -90
  68. package/dist/select/custom-select-input/index.js +12 -12
  69. package/dist/select/index.js +9 -9
  70. package/dist/select/multi-select/badge-label-multi-select.js +29 -29
  71. package/dist/select/multi-select/index.css +23 -23
  72. package/dist/select/multi-select/index.js +62 -63
  73. package/dist/select/multi-select/styled-component.js +24 -24
  74. package/dist/timer/index.js +60 -60
  75. package/dist/timer/styles.css +58 -58
  76. package/dist/tomar-foto/index.js +62 -62
  77. package/dist/view-layout/button-editor.js +14 -14
  78. package/dist/view-layout/constants.js +11 -11
  79. package/dist/view-layout/editor-layer.js +28 -28
  80. package/dist/view-layout/index.js +53 -53
  81. package/dist/view-layout/slot-wrapper.js +39 -39
  82. package/dist/view-layout/styles.css +126 -126
  83. package/dist/where-by-room/index.js +20 -20
  84. package/dist/where-by-room/room.js +78 -78
  85. package/package.json +1 -2
@@ -1,63 +1,62 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useState, useEffect } from "react";
3
- import { MultiSelect as je } from "../../node_modules/react-multi-select-component/dist/esm/index.js";
4
- import { Row, Col } from "reactstrap";
5
- import BadgeLabelMultiSelect from "./badge-label-multi-select.js";
6
- import { BadgeWrapper, ClickableBadge } from "./styled-component.js";
7
- import "./index.css";
8
- const CustomMultiSelect = ({
9
- lista = [],
10
- onListaUpdate = () => {
11
- },
12
- value = [],
13
- styles = {}
14
- }) => {
15
- const [selected, setSelected] = useState([]);
16
- const overrideStringsCustom = {
17
- selectSomeItems: "Seleccionar Estado/s",
18
- allItemsAreSelected: "Todos Seleccionados",
19
- search: "Buscar...",
20
- selectAll: "SELECCIONAR TODOS"
21
- };
22
- useEffect(() => {
23
- if (value.length) {
24
- setSelected(value);
25
- }
26
- }, [value]);
27
- const handleCheckChange = (selectedOptions) => {
28
- if (selectedOptions) {
29
- setSelected(selectedOptions);
30
- onListaUpdate(selectedOptions);
31
- }
32
- };
33
- const handleRemoveBadge = (valueToRemove) => {
34
- const updated = selected.filter((item) => item.value !== valueToRemove);
35
- setSelected(updated);
36
- onListaUpdate(updated);
37
- };
38
- return /* @__PURE__ */ jsxs(Row, { className: "align-items-center", children: [
39
- /* @__PURE__ */ jsx(Col, { xs: 6, style: { ...styles }, children: /* @__PURE__ */ jsx(
40
- je,
41
- {
42
- options: lista,
43
- value: selected,
44
- onChange: handleCheckChange,
45
- labelledBy: "Seleccionar",
46
- className: "custom-multiselect",
47
- overrideStrings: overrideStringsCustom
48
- }
49
- ) }),
50
- /* @__PURE__ */ jsx(Col, { xs: 6, style: { marginTop: "0.5rem" }, children: selected.length > 0 && /* @__PURE__ */ jsx(BadgeWrapper, { children: selected.length === lista.length ? /* @__PURE__ */ jsx(ClickableBadge, { color: "info", pill: true, children: "Todos" }) : /* @__PURE__ */ jsx(
51
- BadgeLabelMultiSelect,
52
- {
53
- descripcionLabel: selected,
54
- onRemove: handleRemoveBadge
55
- }
56
- ) }) })
57
- ] });
58
- };
59
- export {
60
- CustomMultiSelect,
61
- CustomMultiSelect as default
62
- };
63
- //# sourceMappingURL=index.js.map
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useState, useEffect } from "react";
3
+ import { MultiSelect as je } from "../../node_modules/react-multi-select-component/dist/esm/index.js";
4
+ import { Row, Col } from "reactstrap";
5
+ import BadgeLabelMultiSelect from "./badge-label-multi-select.js";
6
+ import { BadgeWrapper, ClickableBadge } from "./styled-component.js";
7
+ import "./index.css";
8
+ const CustomMultiSelect = ({
9
+ lista = [],
10
+ onListaUpdate = () => {
11
+ },
12
+ value = [],
13
+ styles = {}
14
+ }) => {
15
+ const [selected, setSelected] = useState([]);
16
+ const overrideStringsCustom = {
17
+ selectSomeItems: "Seleccionar Estado/s",
18
+ allItemsAreSelected: "Todos Seleccionados",
19
+ search: "Buscar...",
20
+ selectAll: "SELECCIONAR TODOS"
21
+ };
22
+ useEffect(() => {
23
+ if (value.length) {
24
+ setSelected(value);
25
+ }
26
+ }, [value]);
27
+ const handleCheckChange = (selectedOptions) => {
28
+ if (selectedOptions) {
29
+ setSelected(selectedOptions);
30
+ onListaUpdate(selectedOptions);
31
+ }
32
+ };
33
+ const handleRemoveBadge = (valueToRemove) => {
34
+ const updated = selected.filter((item) => item.value !== valueToRemove);
35
+ setSelected(updated);
36
+ onListaUpdate(updated);
37
+ };
38
+ return /* @__PURE__ */ jsxs(Row, { className: "align-items-center", children: [
39
+ /* @__PURE__ */ jsx(Col, { xs: 6, style: { ...styles }, children: /* @__PURE__ */ jsx(
40
+ je,
41
+ {
42
+ options: lista,
43
+ value: selected,
44
+ onChange: handleCheckChange,
45
+ labelledBy: "Seleccionar",
46
+ className: "custom-multiselect",
47
+ overrideStrings: overrideStringsCustom
48
+ }
49
+ ) }),
50
+ /* @__PURE__ */ jsx(Col, { xs: 6, style: { marginTop: "0.5rem" }, children: selected.length > 0 && /* @__PURE__ */ jsx(BadgeWrapper, { children: selected.length === lista.length ? /* @__PURE__ */ jsx(ClickableBadge, { color: "info", pill: true, children: "Todos" }) : /* @__PURE__ */ jsx(
51
+ BadgeLabelMultiSelect,
52
+ {
53
+ descripcionLabel: selected,
54
+ onRemove: handleRemoveBadge
55
+ }
56
+ ) }) })
57
+ ] });
58
+ };
59
+ export {
60
+ CustomMultiSelect
61
+ };
62
+ //# sourceMappingURL=index.js.map
@@ -1,24 +1,24 @@
1
- import { Badge } from "reactstrap";
2
- import styled from "styled-components";
3
- const ClickableBadge = styled(Badge)`
4
- cursor: pointer;
5
- width: fit-content;
6
- white-space: nowrap;
7
- `;
8
- const BadgeWrapper = styled.div`
9
- display: inline-flex;
10
- flex-wrap: nowrap;
11
- gap: 10px;
12
- padding: 0.5rem;
13
- border-radius: 0.5rem;
14
- background-color: #f1f1f1;
15
- border: 1px solid #ccc;
16
- margin-top: 2.8rem;
17
- max-width: 120%;
18
- overflow-x: auto;
19
- `;
20
- export {
21
- BadgeWrapper,
22
- ClickableBadge
23
- };
24
- //# sourceMappingURL=styled-component.js.map
1
+ import { Badge } from "reactstrap";
2
+ import styled from "styled-components";
3
+ const ClickableBadge = styled(Badge)`
4
+ cursor: pointer;
5
+ width: fit-content;
6
+ white-space: nowrap;
7
+ `;
8
+ const BadgeWrapper = styled.div`
9
+ display: inline-flex;
10
+ flex-wrap: nowrap;
11
+ gap: 10px;
12
+ padding: 0.5rem;
13
+ border-radius: 0.5rem;
14
+ background-color: #f1f1f1;
15
+ border: 1px solid #ccc;
16
+ margin-top: 2.8rem;
17
+ max-width: 120%;
18
+ overflow-x: auto;
19
+ `;
20
+ export {
21
+ BadgeWrapper,
22
+ ClickableBadge
23
+ };
24
+ //# sourceMappingURL=styled-component.js.map
@@ -1,60 +1,60 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useState, useRef, useEffect } from "react";
3
- import "./styles.css";
4
- const formatTiempo = (ms) => {
5
- if (ms == null) return "--:--";
6
- const absMs = Math.abs(ms);
7
- const totalSec = Math.floor(absMs / 1e3);
8
- const min = Math.floor(totalSec / 60);
9
- const sec = totalSec % 60;
10
- const formatted = `${min.toString().padStart(2, "0")}:${sec.toString().padStart(2, "0")}`;
11
- return ms < 0 ? `-${formatted}` : formatted;
12
- };
13
- const getTimerColorClass = (ms, maxTime) => {
14
- if (!maxTime) return "";
15
- const percent = ms / maxTime;
16
- if (percent > 0.33) return "timer-green";
17
- if (percent > 0.15) return "timer-yellow";
18
- if (percent > 0) return "timer-red";
19
- if (ms === 0) return "timer-out";
20
- if (ms < 0) return "timer-over";
21
- return "";
22
- };
23
- const Timer = ({
24
- initialMinutes = 0,
25
- icon = true,
26
- className = "",
27
- active = true,
28
- style = {}
29
- }) => {
30
- const initialMs = initialMinutes * 60 * 1e3;
31
- const [ms, setMs] = useState(initialMs);
32
- const intervalRef = useRef();
33
- useEffect(() => {
34
- if (!active) return;
35
- intervalRef.current = setInterval(() => {
36
- setMs((prev) => prev - 1e3);
37
- }, 1e3);
38
- return () => clearInterval(intervalRef.current);
39
- }, [active]);
40
- useEffect(() => {
41
- setMs(initialMs);
42
- }, [initialMs]);
43
- const timerColorClass = getTimerColorClass(ms, initialMs);
44
- return /* @__PURE__ */ jsxs(
45
- "span",
46
- {
47
- className: `av-video-timer timer ${timerColorClass} ${className}`,
48
- style,
49
- children: [
50
- icon && /* @__PURE__ */ jsx("i", { className: "icon-clock timer" }),
51
- formatTiempo(ms)
52
- ]
53
- }
54
- );
55
- };
56
- export {
57
- Timer,
58
- formatTiempo
59
- };
60
- //# sourceMappingURL=index.js.map
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useState, useRef, useEffect } from "react";
3
+ import "./styles.css";
4
+ const formatTiempo = (ms) => {
5
+ if (ms == null) return "--:--";
6
+ const absMs = Math.abs(ms);
7
+ const totalSec = Math.floor(absMs / 1e3);
8
+ const min = Math.floor(totalSec / 60);
9
+ const sec = totalSec % 60;
10
+ const formatted = `${min.toString().padStart(2, "0")}:${sec.toString().padStart(2, "0")}`;
11
+ return ms < 0 ? `-${formatted}` : formatted;
12
+ };
13
+ const getTimerColorClass = (ms, maxTime) => {
14
+ if (!maxTime) return "";
15
+ const percent = ms / maxTime;
16
+ if (percent > 0.33) return "timer-green";
17
+ if (percent > 0.15) return "timer-yellow";
18
+ if (percent > 0) return "timer-red";
19
+ if (ms === 0) return "timer-out";
20
+ if (ms < 0) return "timer-over";
21
+ return "";
22
+ };
23
+ const Timer = ({
24
+ initialMinutes = 0,
25
+ icon = true,
26
+ className = "",
27
+ active = true,
28
+ style = {}
29
+ }) => {
30
+ const initialMs = initialMinutes * 60 * 1e3;
31
+ const [ms, setMs] = useState(initialMs);
32
+ const intervalRef = useRef();
33
+ useEffect(() => {
34
+ if (!active) return;
35
+ intervalRef.current = setInterval(() => {
36
+ setMs((prev) => prev - 1e3);
37
+ }, 1e3);
38
+ return () => clearInterval(intervalRef.current);
39
+ }, [active]);
40
+ useEffect(() => {
41
+ setMs(initialMs);
42
+ }, [initialMs]);
43
+ const timerColorClass = getTimerColorClass(ms, initialMs);
44
+ return /* @__PURE__ */ jsxs(
45
+ "span",
46
+ {
47
+ className: `av-video-timer timer ${timerColorClass} ${className}`,
48
+ style,
49
+ children: [
50
+ icon && /* @__PURE__ */ jsx("i", { className: "icon-clock timer" }),
51
+ formatTiempo(ms)
52
+ ]
53
+ }
54
+ );
55
+ };
56
+ export {
57
+ Timer,
58
+ formatTiempo
59
+ };
60
+ //# sourceMappingURL=index.js.map
@@ -1,59 +1,59 @@
1
- .av-video-timer {
2
- color: inherit;
3
- margin: 0 12px;
4
- flex: 1;
5
- text-align: center;
6
- display: flex;
7
- justify-content: center;
8
- font-weight: bold;
9
- align-items: center;
10
- font-size: 1.3em;
11
- width: 100%;
12
- margin: 8px 0;
13
- }
14
-
15
- .timer {
16
- font-size: clamp(5px, 2vw, 20px);
17
- margin-right: 4px;
18
- }
19
-
20
- .timer-green {
21
- color: #28a745;
22
- }
23
-
24
- .timer-yellow {
25
- color: #ffc107;
26
- }
27
-
28
- .timer-red {
29
- color: #bd0300;
30
- }
31
-
32
- @keyframes vibrate {
33
- 0% {
34
- transform: translateX(0);
35
- }
36
- 20% {
37
- transform: translateX(-3px);
38
- }
39
- 40% {
40
- transform: translateX(3px);
41
- }
42
- 60% {
43
- transform: translateX(-3px);
44
- }
45
- 80% {
46
- transform: translateX(3px);
47
- }
48
- 100% {
49
- transform: translateX(0);
50
- }
51
- }
52
- .timer-out {
53
- color: #000000;
54
- animation: vibrate 0.3s linear infinite;
55
- }
56
-
57
- .timer-over {
58
- color: #c00805;
1
+ .av-video-timer {
2
+ color: inherit;
3
+ margin: 0 12px;
4
+ flex: 1;
5
+ text-align: center;
6
+ display: flex;
7
+ justify-content: center;
8
+ font-weight: bold;
9
+ align-items: center;
10
+ font-size: 1.3em;
11
+ width: 100%;
12
+ margin: 8px 0;
13
+ }
14
+
15
+ .timer {
16
+ font-size: clamp(5px, 2vw, 20px);
17
+ margin-right: 4px;
18
+ }
19
+
20
+ .timer-green {
21
+ color: #28a745;
22
+ }
23
+
24
+ .timer-yellow {
25
+ color: #ffc107;
26
+ }
27
+
28
+ .timer-red {
29
+ color: #bd0300;
30
+ }
31
+
32
+ @keyframes vibrate {
33
+ 0% {
34
+ transform: translateX(0);
35
+ }
36
+ 20% {
37
+ transform: translateX(-3px);
38
+ }
39
+ 40% {
40
+ transform: translateX(3px);
41
+ }
42
+ 60% {
43
+ transform: translateX(-3px);
44
+ }
45
+ 80% {
46
+ transform: translateX(3px);
47
+ }
48
+ 100% {
49
+ transform: translateX(0);
50
+ }
51
+ }
52
+ .timer-out {
53
+ color: #000000;
54
+ animation: vibrate 0.3s linear infinite;
55
+ }
56
+
57
+ .timer-over {
58
+ color: #c00805;
59
59
  }
@@ -1,62 +1,62 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { useState } from "react";
3
- import { Row } from "reactstrap";
4
- import { DropzoneUploader } from "../dropzone-uploader/base/index.js";
5
- import { Colxx } from "../CustomBootstrap.js";
6
- import imgHacerFoto from "../assets/img/take-photo.jpg.js";
7
- import { TAKE_PHOTO } from "../constants.js";
8
- const TomarFoto = ({
9
- onFilesSelectedSelfie = () => {
10
- },
11
- isMobile = false
12
- }) => {
13
- const [filesTotalSelectedSelfie, setTotalFilesSelectedSelfie] = useState(0);
14
- const {
15
- LOAD_SELFIE_WITH_IDENTITY_CARD_MESSAGE,
16
- MESSAGE_SELFIE_ONLY_CAN_TAKE_FROM_CELLPHONE,
17
- TAKE_PHOTO_MESSAGE
18
- } = TAKE_PHOTO;
19
- const handleFilesSelectedSelfie = (files) => {
20
- setTotalFilesSelectedSelfie(files.length);
21
- onFilesSelectedSelfie(files);
22
- };
23
- return /* @__PURE__ */ jsxs(Fragment, { children: [
24
- /* @__PURE__ */ jsx(Row, { className: "pt-2 ml-4", children: /* @__PURE__ */ jsx(Colxx, { xxs: "11", md: "5", children: LOAD_SELFIE_WITH_IDENTITY_CARD_MESSAGE }) }),
25
- /* @__PURE__ */ jsx(Row, { className: "pt-2 ml-2", children: /* @__PURE__ */ jsx(Colxx, { xxs: "12", md: "9", children: isMobile ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Colxx, { xxs: "12", className: "text-center", children: [
26
- filesTotalSelectedSelfie === 0 && /* @__PURE__ */ jsx(
27
- "img",
28
- {
29
- style: { width: "97%" },
30
- alt: "hacerFotoDNI",
31
- src: imgHacerFoto
32
- }
33
- ),
34
- /* @__PURE__ */ jsx(
35
- DropzoneUploader,
36
- {
37
- className: "pt-2 ml-2",
38
- maxFiles: 1,
39
- onChangeFiles: handleFilesSelectedSelfie,
40
- totalFiles: filesTotalSelectedSelfie,
41
- accept: "image/jpg,image/jpeg",
42
- capture: "environment",
43
- nameFileLabel: TAKE_PHOTO_MESSAGE
44
- }
45
- )
46
- ] }) }) : /* @__PURE__ */ jsx(
47
- "h2",
48
- {
49
- className: "view-icon iconsminds-smartphone-4 ml-2 mr-2",
50
- style: {
51
- color: "red",
52
- margin: "10px 10px 0px 10px"
53
- },
54
- children: MESSAGE_SELFIE_ONLY_CAN_TAKE_FROM_CELLPHONE
55
- }
56
- ) }) })
57
- ] });
58
- };
59
- export {
60
- TomarFoto
61
- };
62
- //# sourceMappingURL=index.js.map
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { useState } from "react";
3
+ import { Row } from "reactstrap";
4
+ import { DropzoneUploader } from "../dropzone-uploader/base/index.js";
5
+ import { Colxx } from "../CustomBootstrap.js";
6
+ import imgHacerFoto from "../assets/img/take-photo.jpg.js";
7
+ import { TAKE_PHOTO } from "../constants.js";
8
+ const TomarFoto = ({
9
+ onFilesSelectedSelfie = () => {
10
+ },
11
+ isMobile = false
12
+ }) => {
13
+ const [filesTotalSelectedSelfie, setTotalFilesSelectedSelfie] = useState(0);
14
+ const {
15
+ LOAD_SELFIE_WITH_IDENTITY_CARD_MESSAGE,
16
+ MESSAGE_SELFIE_ONLY_CAN_TAKE_FROM_CELLPHONE,
17
+ TAKE_PHOTO_MESSAGE
18
+ } = TAKE_PHOTO;
19
+ const handleFilesSelectedSelfie = (files) => {
20
+ setTotalFilesSelectedSelfie(files.length);
21
+ onFilesSelectedSelfie(files);
22
+ };
23
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
24
+ /* @__PURE__ */ jsx(Row, { className: "pt-2 ml-4", children: /* @__PURE__ */ jsx(Colxx, { xxs: "11", md: "5", children: LOAD_SELFIE_WITH_IDENTITY_CARD_MESSAGE }) }),
25
+ /* @__PURE__ */ jsx(Row, { className: "pt-2 ml-2", children: /* @__PURE__ */ jsx(Colxx, { xxs: "12", md: "9", children: isMobile ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Colxx, { xxs: "12", className: "text-center", children: [
26
+ filesTotalSelectedSelfie === 0 && /* @__PURE__ */ jsx(
27
+ "img",
28
+ {
29
+ style: { width: "97%" },
30
+ alt: "hacerFotoDNI",
31
+ src: imgHacerFoto
32
+ }
33
+ ),
34
+ /* @__PURE__ */ jsx(
35
+ DropzoneUploader,
36
+ {
37
+ className: "pt-2 ml-2",
38
+ maxFiles: 1,
39
+ onChangeFiles: handleFilesSelectedSelfie,
40
+ totalFiles: filesTotalSelectedSelfie,
41
+ accept: "image/jpg,image/jpeg",
42
+ capture: "environment",
43
+ nameFileLabel: TAKE_PHOTO_MESSAGE
44
+ }
45
+ )
46
+ ] }) }) : /* @__PURE__ */ jsx(
47
+ "h2",
48
+ {
49
+ className: "view-icon iconsminds-smartphone-4 ml-2 mr-2",
50
+ style: {
51
+ color: "red",
52
+ margin: "10px 10px 0px 10px"
53
+ },
54
+ children: MESSAGE_SELFIE_ONLY_CAN_TAKE_FROM_CELLPHONE
55
+ }
56
+ ) }) })
57
+ ] });
58
+ };
59
+ export {
60
+ TomarFoto
61
+ };
62
+ //# sourceMappingURL=index.js.map
@@ -1,14 +1,14 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import "./styles.css";
3
- const ButtonEditor = ({ activo, onClick }) => /* @__PURE__ */ jsx(
4
- "button",
5
- {
6
- className: `visualizador-editor-btn ${activo ? "visualizador-editor-btn--activo" : "visualizador-editor-btn--inactivo"}`,
7
- onClick,
8
- children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx("i", { className: "icon-eye simple-icon-eye" }) })
9
- }
10
- );
11
- export {
12
- ButtonEditor as default
13
- };
14
- //# sourceMappingURL=button-editor.js.map
1
+ import { jsx } from "react/jsx-runtime";
2
+ import "./styles.css";
3
+ const ButtonEditor = ({ activo, onClick }) => /* @__PURE__ */ jsx(
4
+ "button",
5
+ {
6
+ className: `visualizador-editor-btn ${activo ? "visualizador-editor-btn--activo" : "visualizador-editor-btn--inactivo"}`,
7
+ onClick,
8
+ children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx("i", { className: "icon-eye simple-icon-eye" }) })
9
+ }
10
+ );
11
+ export {
12
+ ButtonEditor as default
13
+ };
14
+ //# sourceMappingURL=button-editor.js.map
@@ -1,11 +1,11 @@
1
- const GRID_SIZES = {
2
- sm: { cols: 18, rows: 18 },
3
- md: { cols: 12, rows: 12 },
4
- lg: { cols: 6, rows: 6 }
5
- };
6
- const LOCALHOST = ["localhost", "127.0.0.1"];
7
- export {
8
- GRID_SIZES,
9
- LOCALHOST
10
- };
11
- //# sourceMappingURL=constants.js.map
1
+ const GRID_SIZES = {
2
+ sm: { cols: 18, rows: 18 },
3
+ md: { cols: 12, rows: 12 },
4
+ lg: { cols: 6, rows: 6 }
5
+ };
6
+ const LOCALHOST = ["localhost", "127.0.0.1"];
7
+ export {
8
+ GRID_SIZES,
9
+ LOCALHOST
10
+ };
11
+ //# sourceMappingURL=constants.js.map
@@ -1,28 +1,28 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import "./styles.css";
3
- const EditorLayer = ({ gridCols, gridRows }) => {
4
- return /* @__PURE__ */ jsx(
5
- "div",
6
- {
7
- className: "editor-layer",
8
- style: {
9
- gridTemplateColumns: `repeat(${gridCols}, 1fr)`,
10
- gridTemplateRows: `repeat(${gridRows}, 1fr)`
11
- },
12
- children: Array.from({ length: gridRows * gridCols }).map((_, idx) => {
13
- const x = idx % gridCols;
14
- const y = Math.floor(idx / gridCols);
15
- return /* @__PURE__ */ jsx("div", { className: "editor-layer-cell", children: /* @__PURE__ */ jsxs("div", { className: "editor-layer-cell-coord", children: [
16
- "x:",
17
- x,
18
- ";y:",
19
- y
20
- ] }) }, `cell-${x}-${y}`);
21
- })
22
- }
23
- );
24
- };
25
- export {
26
- EditorLayer as default
27
- };
28
- //# sourceMappingURL=editor-layer.js.map
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import "./styles.css";
3
+ const EditorLayer = ({ gridCols, gridRows }) => {
4
+ return /* @__PURE__ */ jsx(
5
+ "div",
6
+ {
7
+ className: "editor-layer",
8
+ style: {
9
+ gridTemplateColumns: `repeat(${gridCols}, 1fr)`,
10
+ gridTemplateRows: `repeat(${gridRows}, 1fr)`
11
+ },
12
+ children: Array.from({ length: gridRows * gridCols }).map((_, idx) => {
13
+ const x = idx % gridCols;
14
+ const y = Math.floor(idx / gridCols);
15
+ return /* @__PURE__ */ jsx("div", { className: "editor-layer-cell", children: /* @__PURE__ */ jsxs("div", { className: "editor-layer-cell-coord", children: [
16
+ "x:",
17
+ x,
18
+ ";y:",
19
+ y
20
+ ] }) }, `cell-${x}-${y}`);
21
+ })
22
+ }
23
+ );
24
+ };
25
+ export {
26
+ EditorLayer as default
27
+ };
28
+ //# sourceMappingURL=editor-layer.js.map