linear-react-components-ui 1.1.26-beta-1 → 1.1.26-beta.10

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 (225) hide show
  1. package/lib/alerts/AlertContainer.js +8 -2
  2. package/lib/alerts/AlertProvider.js +11 -5
  3. package/lib/alerts/BaseAlert.js +10 -8
  4. package/lib/alerts/Message.js +91 -64
  5. package/lib/alerts/withAlert.js +10 -6
  6. package/lib/assets/BaseAlert.css +1 -1
  7. package/lib/assets/Content.css +1 -1
  8. package/lib/assets/DefaultFile.css +1 -1
  9. package/lib/assets/Drawer.css +1 -1
  10. package/lib/assets/index11.css +1 -1
  11. package/lib/assets/index5.css +1 -1
  12. package/lib/avatar/index.js +29 -51
  13. package/lib/badge/index.js +25 -23
  14. package/lib/buttons/ActivateButton.js +9 -4
  15. package/lib/buttons/AddButton.js +12 -5
  16. package/lib/buttons/Button.js +16 -5
  17. package/lib/buttons/ButtonGroups.js +10 -3
  18. package/lib/buttons/CancelButton.js +14 -4
  19. package/lib/buttons/DangerButton.js +15 -4
  20. package/lib/buttons/DefaultButton.js +76 -111
  21. package/lib/buttons/DestroyButton.js +21 -5
  22. package/lib/buttons/EditButton.js +9 -4
  23. package/lib/buttons/InactivateButton.js +9 -4
  24. package/lib/buttons/InfoButton.js +15 -4
  25. package/lib/buttons/PrimaryButton.js +15 -4
  26. package/lib/buttons/RestoreButton.js +9 -4
  27. package/lib/buttons/SaveButton.js +14 -4
  28. package/lib/buttons/SuccessButton.js +15 -4
  29. package/lib/buttons/WarningButton.js +15 -4
  30. package/lib/buttons/button_container/index.js +21 -16
  31. package/lib/buttons/split_button/index.js +53 -55
  32. package/lib/calendar/DangerCalendar.js +18 -4
  33. package/lib/calendar/InfoCalendar.js +18 -4
  34. package/lib/calendar/PrimaryCalendar.js +18 -4
  35. package/lib/calendar/SuccessCalendar.js +18 -4
  36. package/lib/calendar/WarningCalendar.js +18 -4
  37. package/lib/calendar/base/Day.js +32 -22
  38. package/lib/calendar/base/Month.js +24 -21
  39. package/lib/calendar/base/Week.js +20 -19
  40. package/lib/calendar/base/helpers.js +11 -19
  41. package/lib/calendar/base/index.js +129 -97
  42. package/lib/checkbox/index.js +6 -5
  43. package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
  44. package/lib/chunks/{index.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
  45. package/lib/chunks/index.aw0XaUkg.js +266 -0
  46. package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
  47. package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
  48. package/lib/chunks/moment.DMLRxgRE.js +2589 -0
  49. package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
  50. package/lib/chunks/v1.Ds1rkxUj.js +49 -0
  51. package/lib/dialog/Alert.js +18 -17
  52. package/lib/dialog/Custom.js +42 -28
  53. package/lib/dialog/Error.js +18 -17
  54. package/lib/dialog/Information.js +18 -17
  55. package/lib/dialog/Question.js +43 -59
  56. package/lib/dialog/Warning.js +18 -17
  57. package/lib/dialog/base/Content.js +13 -4
  58. package/lib/dialog/base/Footer.js +8 -3
  59. package/lib/dialog/base/Header.js +4 -3
  60. package/lib/dialog/base/index.js +5 -4
  61. package/lib/dialog/form/index.js +5 -4
  62. package/lib/dialog/index.js +1 -1
  63. package/lib/dialog/wizard/index.js +11 -10
  64. package/lib/dialog/wizard/progressbar.js +96 -3
  65. package/lib/dialog/wizard/step.js +4 -3
  66. package/lib/dialog/wizard/useWizard.js +42 -29
  67. package/lib/drawer/Content.js +15 -8
  68. package/lib/drawer/Drawer.js +38 -35
  69. package/lib/drawer/Header.js +53 -40
  70. package/lib/drawer/helpers.js +2 -2
  71. package/lib/dropdown/Popup.js +4 -2
  72. package/lib/dropdown/withDropdown.js +75 -50
  73. package/lib/fieldset/index.js +66 -47
  74. package/lib/form/Field.js +88 -62
  75. package/lib/form/FieldArray.js +18 -39
  76. package/lib/form/FieldNumber.js +42 -38
  77. package/lib/form/FieldPeriod.js +90 -59
  78. package/lib/form/helpers.js +14 -11
  79. package/lib/form/index.js +88 -100
  80. package/lib/form/withFieldHOC.js +57 -48
  81. package/lib/form/withFormSecurity.js +15 -18
  82. package/lib/gridlayout/GridCol.js +21 -20
  83. package/lib/gridlayout/GridRow.js +22 -20
  84. package/lib/hint/helpers.js +6 -2
  85. package/lib/hint/index.js +27 -25
  86. package/lib/icons/helper.js +142 -569
  87. package/lib/icons/index.js +62 -57
  88. package/lib/index.js +20 -19
  89. package/lib/inputs/base/InputTextBase.js +121 -207
  90. package/lib/inputs/base/Label.js +27 -29
  91. package/lib/inputs/base/helpers.d.ts +3 -3
  92. package/lib/inputs/base/helpers.js +4 -2
  93. package/lib/inputs/color/index.js +52 -73
  94. package/lib/inputs/date/Dialog.js +15 -16
  95. package/lib/inputs/date/Dropdown.js +16 -14
  96. package/lib/inputs/date/helpers.js +7 -7
  97. package/lib/inputs/date/index.js +101 -147
  98. package/lib/inputs/errorMessage/index.js +21 -13
  99. package/lib/inputs/file/DefaultFile.js +64 -67
  100. package/lib/inputs/file/DragDropFile.js +79 -135
  101. package/lib/inputs/file/File.d.ts +1 -1
  102. package/lib/inputs/file/File.js +24 -39
  103. package/lib/inputs/file/FileButtonSettings.js +20 -17
  104. package/lib/inputs/inputHOC.js +38 -20
  105. package/lib/inputs/mask/BaseMask.js +51 -30
  106. package/lib/inputs/mask/Cnpj.js +42 -36
  107. package/lib/inputs/mask/Cpf.js +45 -33
  108. package/lib/inputs/mask/Phone.js +10 -6
  109. package/lib/inputs/mask/ZipCode.js +9 -4
  110. package/lib/inputs/mask/helpers.d.ts +33 -33
  111. package/lib/inputs/mask/helpers.js +44 -44
  112. package/lib/inputs/multiSelect/ActionButtons.js +35 -46
  113. package/lib/inputs/multiSelect/Dropdown.js +94 -133
  114. package/lib/inputs/multiSelect/helper.js +4 -7
  115. package/lib/inputs/multiSelect/index.js +167 -127
  116. package/lib/inputs/number/BaseNumber.js +43 -31
  117. package/lib/inputs/number/Currency.js +19 -12
  118. package/lib/inputs/number/Decimal.js +9 -4
  119. package/lib/inputs/number/index.js +31 -35
  120. package/lib/inputs/period/Dialog.js +16 -16
  121. package/lib/inputs/period/Dropdown.js +15 -15
  122. package/lib/inputs/period/PeriodList.js +41 -27
  123. package/lib/inputs/period/helper.js +8 -4
  124. package/lib/inputs/period/index.js +192 -330
  125. package/lib/inputs/search/index.js +95 -71
  126. package/lib/inputs/select/ActionButtons.js +24 -45
  127. package/lib/inputs/select/Dropdown.js +61 -110
  128. package/lib/inputs/select/helper.d.ts +1 -1
  129. package/lib/inputs/select/helper.js +43 -45
  130. package/lib/inputs/select/index.js +23 -25
  131. package/lib/inputs/select/multiple/Selecteds.js +23 -19
  132. package/lib/inputs/select/multiple/index.js +106 -176
  133. package/lib/inputs/select/simple/index.js +126 -196
  134. package/lib/inputs/text/index.js +9 -4
  135. package/lib/inputs/textarea/index.js +13 -15
  136. package/lib/internals/withTooltip.js +114 -67
  137. package/lib/labelMessages/index.js +50 -45
  138. package/lib/labels/DangerLabel.js +18 -4
  139. package/lib/labels/DefaultLabel.js +53 -39
  140. package/lib/labels/InfoLabel.js +18 -4
  141. package/lib/labels/PrimaryLabel.js +18 -4
  142. package/lib/labels/SuccessLabel.js +18 -4
  143. package/lib/labels/WarningLabel.js +18 -4
  144. package/lib/labels/label_container/index.js +15 -9
  145. package/lib/list/Header.js +18 -6
  146. package/lib/list/Item.js +5 -4
  147. package/lib/list/Separator.js +8 -3
  148. package/lib/list/helpers.js +2 -2
  149. package/lib/list/index.js +21 -18
  150. package/lib/menus/float/MenuItem.js +49 -52
  151. package/lib/menus/float/SubMenuContainer.d.ts +10 -10
  152. package/lib/menus/float/index.js +102 -81
  153. package/lib/menus/sidenav/ExpandMenu.js +17 -15
  154. package/lib/menus/sidenav/MenuLink.js +21 -14
  155. package/lib/menus/sidenav/NavMenuGroup.js +19 -14
  156. package/lib/menus/sidenav/NavMenuItem.js +131 -111
  157. package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
  158. package/lib/menus/sidenav/helpers.js +4 -4
  159. package/lib/menus/sidenav/index.js +145 -123
  160. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +21 -17
  161. package/lib/menus/sidenav/popup_menu_search/index.js +17 -51
  162. package/lib/noPermission/index.js +13 -8
  163. package/lib/panel/Content.js +49 -40
  164. package/lib/panel/DangerPanel.js +10 -5
  165. package/lib/panel/Default.js +62 -36
  166. package/lib/panel/Header.js +53 -37
  167. package/lib/panel/InfoPanel.js +10 -5
  168. package/lib/panel/PrimaryPanel.js +10 -5
  169. package/lib/panel/SuccessPanel.js +10 -5
  170. package/lib/panel/ToolBar.js +17 -4
  171. package/lib/panel/WarningPanel.js +10 -5
  172. package/lib/panel/helpers.js +8 -5
  173. package/lib/permissionValidations.js +15 -11
  174. package/lib/popover/PopoverText.js +12 -5
  175. package/lib/popover/PopoverTitle.js +10 -3
  176. package/lib/popover/index.js +36 -56
  177. package/lib/progress/Bar.js +43 -34
  178. package/lib/progress/index.js +23 -18
  179. package/lib/radio/index.js +105 -89
  180. package/lib/shortcuts/index.js +20 -7
  181. package/lib/skeleton/SkeletonContainer.js +16 -6
  182. package/lib/skeleton/index.js +42 -18
  183. package/lib/spinner/SpinnerLoading.js +53 -16
  184. package/lib/spinner/index.js +47 -37
  185. package/lib/split/Split.js +83 -79
  186. package/lib/split/SplitSide.js +24 -16
  187. package/lib/table/Body.js +36 -49
  188. package/lib/table/Header.js +45 -35
  189. package/lib/table/HeaderColumn.js +40 -27
  190. package/lib/table/Row.js +47 -48
  191. package/lib/table/RowColumn.js +50 -38
  192. package/lib/table/helpers.js +3 -1
  193. package/lib/table/index.js +101 -104
  194. package/lib/tabs/DropdownTabs.js +64 -61
  195. package/lib/tabs/Menu.js +35 -49
  196. package/lib/tabs/MenuTabs.js +59 -84
  197. package/lib/tabs/Panel.js +57 -47
  198. package/lib/tabs/context.js +36 -40
  199. package/lib/tabs/index.js +69 -64
  200. package/lib/tabs/tabHelpers.js +10 -8
  201. package/lib/textContent/index.js +30 -32
  202. package/lib/toolbar/ButtonBar.js +62 -58
  203. package/lib/toolbar/LabelBar.js +46 -38
  204. package/lib/toolbar/Separator.js +8 -3
  205. package/lib/toolbar/ToolBarGroup.js +14 -3
  206. package/lib/toolbar/index.js +35 -29
  207. package/lib/tooltip/index.js +24 -24
  208. package/lib/treetable/Body.js +26 -27
  209. package/lib/treetable/Header.js +23 -19
  210. package/lib/treetable/Row.js +210 -147
  211. package/lib/treetable/helpers.d.ts +4 -5
  212. package/lib/treetable/helpers.js +6 -14
  213. package/lib/treetable/index.js +25 -15
  214. package/lib/treeview/Header.js +13 -5
  215. package/lib/treeview/Node.js +198 -175
  216. package/lib/treeview/index.js +257 -174
  217. package/lib/uitour/index.js +167 -166
  218. package/package.json +32 -43
  219. package/lib/chunks/index.CmrLK9Qe.js +0 -675
  220. package/lib/chunks/index.D5f6Ow9V.js +0 -89
  221. package/lib/chunks/index.yztgndLc.js +0 -206
  222. package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
  223. package/lib/chunks/tabs.Cvj2MJH6.js +0 -246
  224. package/lib/chunks/v1.CDXKvGzE.js +0 -41
  225. /package/lib/assets/{index29.css → progressbar.css} +0 -0
@@ -0,0 +1,266 @@
1
+ import { j as l } from "./jsx-runtime.D1SHvdVE.js";
2
+ import { c as ve } from "./compiler-runtime.Cu50tn6L.js";
3
+ import he, { useContext as re, createContext as be, useRef as ge, useState as Ce, useLayoutEffect as Fe, useEffect as we } from "react";
4
+ import Se from "react-dom";
5
+ import Be from "../dialog/base/Content.js";
6
+ import { r as _e, u as Ie } from "./v1.Ds1rkxUj.js";
7
+ import je from "../icons/index.js";
8
+ import Re from "../buttons/button_container/index.js";
9
+ import "../buttons/DefaultButton.js";
10
+ import '../assets/button.css';/* empty css */
11
+ import Ue from "../dialog/base/Footer.js";
12
+ import Oe from "../spinner/index.js";
13
+ import Le, { FormSecurityContext as $e } from "../form/withFormSecurity.js";
14
+ const Me = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ne = { randomUUID: Me };
15
+ function Pe(t, e, v) {
16
+ t = t || {};
17
+ const u = t.random ?? t.rng?.() ?? _e();
18
+ if (u.length < 16)
19
+ throw new Error("Random bytes length must be >= 16");
20
+ return u[6] = u[6] & 15 | 64, u[8] = u[8] & 63 | 128, Ie(u);
21
+ }
22
+ function ke(t, e, v) {
23
+ return Ne.randomUUID && !t ? Ne.randomUUID() : Pe(t);
24
+ }
25
+ const Ae = (t) => ({
26
+ height: t.height,
27
+ maxHeight: "100%",
28
+ width: t.width,
29
+ textAlign: t.textAlign
30
+ }), He = (t) => /* @__PURE__ */ l.jsx("button", { id: "botao-fechar-modal-cabecalho", className: "close-button", onClick: t, children: /* @__PURE__ */ l.jsx(je, { name: "cancel2" }) }), We = (t, e) => e || (t ? /* @__PURE__ */ l.jsx(je, { name: t, color: "#000" }) : null), ze = (t) => {
31
+ const e = ve.c(18), {
32
+ showCloseButton: v,
33
+ handlerClose: u,
34
+ title: E,
35
+ icon: C,
36
+ titleIcon: h
37
+ } = t, D = v === void 0 ? !0 : v, I = re(xe), R = re(Ee), w = u || R.handleClose, c = I?.headerRef, s = `${C !== null || h !== null ? "left" : ""}`;
38
+ let g;
39
+ e[0] !== C || e[1] !== h ? (g = We(h, C), e[0] = C, e[1] = h, e[2] = g) : g = e[2];
40
+ let a;
41
+ e[3] !== s || e[4] !== g ? (a = /* @__PURE__ */ l.jsx("div", { className: s, children: g }), e[3] = s, e[4] = g, e[5] = a) : a = e[5];
42
+ let d;
43
+ e[6] !== E ? (d = /* @__PURE__ */ l.jsx("h5", { className: "modal-title", children: E }), e[6] = E, e[7] = d) : d = e[7];
44
+ let x;
45
+ e[8] !== w || e[9] !== D ? (x = D && He(w), e[8] = w, e[9] = D, e[10] = x) : x = e[10];
46
+ let m;
47
+ e[11] !== d || e[12] !== x ? (m = /* @__PURE__ */ l.jsxs("div", { className: "right", children: [
48
+ d,
49
+ x
50
+ ] }), e[11] = d, e[12] = x, e[13] = m) : m = e[13];
51
+ let S;
52
+ return e[14] !== c || e[15] !== a || e[16] !== m ? (S = /* @__PURE__ */ l.jsxs("div", { role: "button", tabIndex: -1, onFocus: Te, onBlur: Xe, ref: c, className: "dialog-header", children: [
53
+ a,
54
+ m
55
+ ] }), e[14] = c, e[15] = a, e[16] = m, e[17] = S) : S = e[17], S;
56
+ };
57
+ function Te() {
58
+ }
59
+ function Xe() {
60
+ }
61
+ const xe = be({}), Ye = (t) => {
62
+ const e = ve.c(33), {
63
+ showFooter: v,
64
+ isWaiting: u,
65
+ width: E,
66
+ height: C,
67
+ content: h,
68
+ children: D,
69
+ className: I,
70
+ wrapperClassName: R,
71
+ contentClassName: w
72
+ } = t, c = v === void 0 ? !0 : v, s = u === void 0 ? !1 : u, g = E === void 0 ? "50%" : E, a = C === void 0 ? "50%" : C, d = I === void 0 ? "" : I, x = R === void 0 ? "" : R, m = w === void 0 ? "" : w, S = ge(null), $ = re($e);
73
+ let B;
74
+ e[0] !== s ? (B = s ? {
75
+ opacity: 0.4,
76
+ pointerEvent: "none"
77
+ } : {}, e[0] = s, e[1] = B) : B = e[1];
78
+ const o = B;
79
+ let U;
80
+ e[2] !== s ? (U = () => s ? /* @__PURE__ */ l.jsx("div", { className: "waitingspinner", children: /* @__PURE__ */ l.jsx(Oe, { style: {
81
+ width: 60
82
+ }, delayTime: 0 }) }) : null, e[2] = s, e[3] = U) : U = e[3];
83
+ const i = U;
84
+ let O;
85
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (O = {
86
+ headerRef: S
87
+ }, e[4] = O) : O = e[4];
88
+ const M = `dialog-form-wrapper ${x}`;
89
+ let p;
90
+ e[5] !== t.handlerClose || e[6] !== t.icon || e[7] !== t.title ? (p = t.title && /* @__PURE__ */ l.jsx("div", { className: "header-form", children: /* @__PURE__ */ l.jsx(ze, { title: t.title, handlerClose: t.handlerClose, icon: t.icon }) }), e[5] = t.handlerClose, e[6] = t.icon, e[7] = t.title, e[8] = p) : p = e[8];
91
+ let n;
92
+ e[9] !== o || e[10] !== t.styleForContent ? (n = {
93
+ ...t.styleForContent,
94
+ ...o
95
+ }, e[9] = o, e[10] = t.styleForContent, e[11] = n) : n = e[11];
96
+ const _ = h || D;
97
+ let r;
98
+ e[12] !== m || e[13] !== n || e[14] !== _ ? (r = /* @__PURE__ */ l.jsx(Be, { styleForContent: n, className: m, children: _ }), e[12] = m, e[13] = n, e[14] = _, e[15] = r) : r = e[15];
99
+ let y;
100
+ e[16] !== i ? (y = i(), e[16] = i, e[17] = y) : y = e[17];
101
+ let N;
102
+ e[18] !== $ || e[19] !== o || e[20] !== t || e[21] !== c ? (N = c && t.buttons && /* @__PURE__ */ l.jsx(Ue, { children: /* @__PURE__ */ l.jsx(Re, { ...t, style: {
103
+ ...o
104
+ }, children: he.Children.toArray(t.buttons.map((b) => $ && $.securityBeforeUnload && b && b.type && b.type.name === "CancelButton" ? he.cloneElement(b, {
105
+ onClick: t.handlerClose
106
+ }) : he.cloneElement(b))) }) }), e[18] = $, e[19] = o, e[20] = t, e[21] = c, e[22] = N) : N = e[22];
107
+ let F;
108
+ return e[23] !== d || e[24] !== a || e[25] !== t || e[26] !== M || e[27] !== p || e[28] !== r || e[29] !== y || e[30] !== N || e[31] !== g ? (F = /* @__PURE__ */ l.jsx(xe.Provider, { value: O, children: /* @__PURE__ */ l.jsxs(Ke, { width: g, height: a, ...t, className: d, wrapperClassName: M, children: [
109
+ p,
110
+ r,
111
+ y,
112
+ N
113
+ ] }) }), e[23] = d, e[24] = a, e[25] = t, e[26] = M, e[27] = p, e[28] = r, e[29] = y, e[30] = N, e[31] = g, e[32] = F) : F = e[32], F;
114
+ }, at = Le(Ye), Ee = be({}), {
115
+ body: qe
116
+ } = document, Ke = (t) => {
117
+ const e = ve.c(62);
118
+ let v;
119
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (v = ke(), e[0] = v) : v = e[0];
120
+ const u = v, {
121
+ id: E,
122
+ overlay: C,
123
+ closeOnEsc: h,
124
+ closeOnOutsideClick: D,
125
+ wrapperClassName: I,
126
+ className: R,
127
+ children: w,
128
+ open: c,
129
+ onOpenChange: s,
130
+ zIndex: g,
131
+ handlerClose: a
132
+ } = t, d = E === void 0 ? u : E, x = C === void 0 ? !0 : C, m = I === void 0 ? "" : I, S = R === void 0 ? "" : R, $ = g === void 0 ? 0 : g, {
133
+ headerRef: B
134
+ } = re(xe), o = ge(null), U = ge(null), [i, O] = Ce(!1), [M, p] = Ce(c), n = M === void 0 ? !0 : M;
135
+ c !== void 0 && c !== n && p(c);
136
+ let _;
137
+ e[1] !== a || e[2] !== s || e[3] !== c ? (_ = () => {
138
+ c !== void 0 && s ? s(!1) : (a && a(), s && s(!1));
139
+ }, e[1] = a, e[2] = s, e[3] = c, e[4] = _) : _ = e[4];
140
+ const r = _;
141
+ let y;
142
+ e[5] !== D || e[6] !== r || e[7] !== i ? (y = (f) => {
143
+ if (!D)
144
+ return;
145
+ const j = f.target;
146
+ f.stopPropagation(), o !== null && o.current !== null && !i && !o.current.contains(j) && r();
147
+ }, e[5] = D, e[6] = r, e[7] = i, e[8] = y) : y = e[8];
148
+ const N = y;
149
+ let F;
150
+ e[9] !== r ? (F = (f) => {
151
+ f?.key === "Escape" && (f.stopPropagation(), r());
152
+ }, e[9] = r, e[10] = F) : F = e[10];
153
+ const b = F;
154
+ let Y;
155
+ e[11] === Symbol.for("react.memo_cache_sentinel") ? (Y = (f) => {
156
+ const j = !U.current?.contains(f.relatedTarget), X = o.current?.querySelector("#modal-dialog-content")?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
157
+ if (j && X?.length) {
158
+ const ie = X[0];
159
+ setTimeout(() => {
160
+ ie.focus();
161
+ }, 150);
162
+ }
163
+ }, e[11] = Y) : Y = e[11];
164
+ const De = Y;
165
+ let q;
166
+ e[12] === Symbol.for("react.memo_cache_sentinel") ? (q = (f) => {
167
+ const {
168
+ positionX: j,
169
+ positionY: L
170
+ } = f;
171
+ if (o.current) {
172
+ const {
173
+ width: X,
174
+ height: ie
175
+ } = o.current.getBoundingClientRect();
176
+ let fe = j <= 0 ? 0 : j, ue = L <= 0 ? 0 : L;
177
+ fe + X >= window.innerWidth && (fe = window.innerWidth - X), ue + ie >= window.innerHeight && (ue = window.innerHeight - ie), o.current.style.transform = `translate(${fe}px, ${ue}px)`, o.current.style.transition = "none", o.current.style.left = "0", o.current.style.top = "0", o.current.style.position = "absolute";
178
+ }
179
+ }, e[12] = q) : q = e[12];
180
+ const pe = q;
181
+ let K;
182
+ e[13] !== i ? (K = (f) => {
183
+ if (o.current && i) {
184
+ const {
185
+ left: j,
186
+ top: L
187
+ } = o.current.getBoundingClientRect();
188
+ pe({
189
+ positionX: f.movementX + j,
190
+ positionY: f.movementY + L
191
+ });
192
+ }
193
+ }, e[13] = i, e[14] = K) : K = e[14];
194
+ const G = K;
195
+ let J;
196
+ e[15] !== B ? (J = (f) => {
197
+ const j = f.target, L = B?.current?.contains(j);
198
+ o.current && L && O(!0);
199
+ }, e[15] = B, e[16] = J) : J = e[16];
200
+ const Q = J;
201
+ let V;
202
+ e[17] === Symbol.for("react.memo_cache_sentinel") ? (V = () => {
203
+ o.current && O(!1);
204
+ }, e[17] = V) : V = e[17];
205
+ const ye = V, ce = 99999 + Number($);
206
+ let P;
207
+ e[18] !== ce ? (P = {
208
+ zIndex: ce
209
+ }, e[18] = ce, e[19] = P) : P = e[19];
210
+ let k;
211
+ e[20] !== x ? (k = x && /* @__PURE__ */ l.jsx("div", { className: "modal-overlay", "data-testid": "modal-overlay" }), e[20] = x, e[21] = k) : k = e[21];
212
+ const ae = `dialog ${S}`;
213
+ let A;
214
+ e[22] !== t ? (A = Ae(t), e[22] = t, e[23] = A) : A = e[23];
215
+ let H;
216
+ e[24] !== w || e[25] !== A || e[26] !== m ? (H = /* @__PURE__ */ l.jsx("div", { className: m, "data-testid": "dialog-wrapper", style: A, ref: o, children: w }), e[24] = w, e[25] = A, e[26] = m, e[27] = H) : H = e[27];
217
+ let W;
218
+ e[28] !== ae || e[29] !== H ? (W = /* @__PURE__ */ l.jsx("div", { className: ae, "data-testid": "dialog-component", children: H }), e[28] = ae, e[29] = H, e[30] = W) : W = e[30];
219
+ let Z;
220
+ e[31] !== N || e[32] !== d || e[33] !== P || e[34] !== k || e[35] !== W ? (Z = /* @__PURE__ */ l.jsxs("div", { id: d, ref: U, onBlur: De, className: "modalcontainer", onMouseDown: N, style: P, children: [
221
+ k,
222
+ W
223
+ ] }), e[31] = N, e[32] = d, e[33] = P, e[34] = k, e[35] = W, e[36] = Z) : Z = e[36];
224
+ const de = Z;
225
+ let ee;
226
+ e[37] === Symbol.for("react.memo_cache_sentinel") ? (ee = [], e[37] = ee) : ee = e[37], Fe(Ge, ee);
227
+ let te;
228
+ e[38] !== h || e[39] !== b || e[40] !== n ? (te = () => (n && h && document.addEventListener("keydown", b), () => {
229
+ document.removeEventListener("keydown", b);
230
+ }), e[38] = h, e[39] = b, e[40] = n, e[41] = te) : te = e[41];
231
+ let ne;
232
+ e[42] !== h || e[43] !== n ? (ne = [n, h], e[42] = h, e[43] = n, e[44] = ne) : ne = e[44], we(te, ne);
233
+ let oe;
234
+ e[45] !== i || e[46] !== Q || e[47] !== G || e[48] !== n ? (oe = () => (n && (document.addEventListener("mousedown", Q), document.addEventListener("mouseup", ye), i && document.addEventListener("mousemove", G)), () => {
235
+ document.removeEventListener("mousedown", Q), document.removeEventListener("mouseup", ye), document.removeEventListener("mousemove", G);
236
+ }), e[45] = i, e[46] = Q, e[47] = G, e[48] = n, e[49] = oe) : oe = e[49];
237
+ let le;
238
+ if (e[50] !== i || e[51] !== n ? (le = [i, n], e[50] = i, e[51] = n, e[52] = le) : le = e[52], we(oe, le), !n)
239
+ return null;
240
+ const me = s || p;
241
+ let z;
242
+ e[53] !== r || e[54] !== n || e[55] !== me ? (z = {
243
+ handleClose: r,
244
+ open: n,
245
+ onOpenChange: me
246
+ }, e[53] = r, e[54] = n, e[55] = me, e[56] = z) : z = e[56];
247
+ let T;
248
+ e[57] !== de ? (T = Se.createPortal(de, qe), e[57] = de, e[58] = T) : T = e[58];
249
+ let se;
250
+ return e[59] !== z || e[60] !== T ? (se = /* @__PURE__ */ l.jsx(Ee.Provider, { value: z, children: T }), e[59] = z, e[60] = T, e[61] = se) : se = e[61], se;
251
+ };
252
+ function Ge() {
253
+ const {
254
+ activeElement: t
255
+ } = document, e = t;
256
+ return () => {
257
+ e?.focus();
258
+ };
259
+ }
260
+ export {
261
+ Ke as B,
262
+ Ee as D,
263
+ at as F,
264
+ ze as H,
265
+ xe as a
266
+ };
@@ -0,0 +1,282 @@
1
+ import K from "react";
2
+ var v = { exports: {} }, m = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var $;
13
+ function ee() {
14
+ if ($) return m;
15
+ $ = 1;
16
+ var l = Symbol.for("react.transitional.element"), E = Symbol.for("react.fragment");
17
+ function c(i, o, s) {
18
+ var f = null;
19
+ if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) {
20
+ s = {};
21
+ for (var d in o)
22
+ d !== "key" && (s[d] = o[d]);
23
+ } else s = o;
24
+ return o = s.ref, {
25
+ $$typeof: l,
26
+ type: i,
27
+ key: f,
28
+ ref: o !== void 0 ? o : null,
29
+ props: s
30
+ };
31
+ }
32
+ return m.Fragment = E, m.jsx = c, m.jsxs = c, m;
33
+ }
34
+ var _ = {};
35
+ /**
36
+ * @license React
37
+ * react-jsx-runtime.development.js
38
+ *
39
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */
44
+ var I;
45
+ function re() {
46
+ return I || (I = 1, process.env.NODE_ENV !== "production" && (function() {
47
+ function l(e) {
48
+ if (e == null) return null;
49
+ if (typeof e == "function")
50
+ return e.$$typeof === H ? null : e.displayName || e.name || null;
51
+ if (typeof e == "string") return e;
52
+ switch (e) {
53
+ case p:
54
+ return "Fragment";
55
+ case U:
56
+ return "Profiler";
57
+ case W:
58
+ return "StrictMode";
59
+ case z:
60
+ return "Suspense";
61
+ case G:
62
+ return "SuspenseList";
63
+ case B:
64
+ return "Activity";
65
+ }
66
+ if (typeof e == "object")
67
+ switch (typeof e.tag == "number" && console.error(
68
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
+ ), e.$$typeof) {
70
+ case M:
71
+ return "Portal";
72
+ case V:
73
+ return e.displayName || "Context";
74
+ case J:
75
+ return (e._context.displayName || "Context") + ".Consumer";
76
+ case q:
77
+ var r = e.render;
78
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
79
+ case X:
80
+ return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
81
+ case T:
82
+ r = e._payload, e = e._init;
83
+ try {
84
+ return l(e(r));
85
+ } catch {
86
+ }
87
+ }
88
+ return null;
89
+ }
90
+ function E(e) {
91
+ return "" + e;
92
+ }
93
+ function c(e) {
94
+ try {
95
+ E(e);
96
+ var r = !1;
97
+ } catch {
98
+ r = !0;
99
+ }
100
+ if (r) {
101
+ r = console;
102
+ var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
103
+ return t.call(
104
+ r,
105
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
+ n
107
+ ), E(e);
108
+ }
109
+ }
110
+ function i(e) {
111
+ if (e === p) return "<>";
112
+ if (typeof e == "object" && e !== null && e.$$typeof === T)
113
+ return "<...>";
114
+ try {
115
+ var r = l(e);
116
+ return r ? "<" + r + ">" : "<...>";
117
+ } catch {
118
+ return "<...>";
119
+ }
120
+ }
121
+ function o() {
122
+ var e = k.A;
123
+ return e === null ? null : e.getOwner();
124
+ }
125
+ function s() {
126
+ return Error("react-stack-top-frame");
127
+ }
128
+ function f(e) {
129
+ if (x.call(e, "key")) {
130
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
131
+ if (r && r.isReactWarning) return !1;
132
+ }
133
+ return e.key !== void 0;
134
+ }
135
+ function d(e, r) {
136
+ function t() {
137
+ g || (g = !0, console.error(
138
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
139
+ r
140
+ ));
141
+ }
142
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
143
+ get: t,
144
+ configurable: !0
145
+ });
146
+ }
147
+ function D() {
148
+ var e = l(this.type);
149
+ return h[e] || (h[e] = !0, console.error(
150
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
151
+ )), e = this.props.ref, e !== void 0 ? e : null;
152
+ }
153
+ function L(e, r, t, n, b, A) {
154
+ var a = t.ref;
155
+ return e = {
156
+ $$typeof: j,
157
+ type: e,
158
+ key: r,
159
+ props: t,
160
+ _owner: n
161
+ }, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
162
+ enumerable: !1,
163
+ get: D
164
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
165
+ configurable: !1,
166
+ enumerable: !1,
167
+ writable: !0,
168
+ value: 0
169
+ }), Object.defineProperty(e, "_debugInfo", {
170
+ configurable: !1,
171
+ enumerable: !1,
172
+ writable: !0,
173
+ value: null
174
+ }), Object.defineProperty(e, "_debugStack", {
175
+ configurable: !1,
176
+ enumerable: !1,
177
+ writable: !0,
178
+ value: b
179
+ }), Object.defineProperty(e, "_debugTask", {
180
+ configurable: !1,
181
+ enumerable: !1,
182
+ writable: !0,
183
+ value: A
184
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
185
+ }
186
+ function P(e, r, t, n, b, A) {
187
+ var a = r.children;
188
+ if (a !== void 0)
189
+ if (n)
190
+ if (Z(a)) {
191
+ for (n = 0; n < a.length; n++)
192
+ w(a[n]);
193
+ Object.freeze && Object.freeze(a);
194
+ } else
195
+ console.error(
196
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
197
+ );
198
+ else w(a);
199
+ if (x.call(r, "key")) {
200
+ a = l(e);
201
+ var u = Object.keys(r).filter(function(Q) {
202
+ return Q !== "key";
203
+ });
204
+ n = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", Y[a + n] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ `A props object containing a "key" prop is being spread into JSX:
206
+ let props = %s;
207
+ <%s {...props} />
208
+ React keys must be passed directly to JSX without using spread:
209
+ let props = %s;
210
+ <%s key={someKey} {...props} />`,
211
+ n,
212
+ a,
213
+ u,
214
+ a
215
+ ), Y[a + n] = !0);
216
+ }
217
+ if (a = null, t !== void 0 && (c(t), a = "" + t), f(r) && (c(r.key), a = "" + r.key), "key" in r) {
218
+ t = {};
219
+ for (var S in r)
220
+ S !== "key" && (t[S] = r[S]);
221
+ } else t = r;
222
+ return a && d(
223
+ t,
224
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
225
+ ), L(
226
+ e,
227
+ a,
228
+ t,
229
+ o(),
230
+ b,
231
+ A
232
+ );
233
+ }
234
+ function w(e) {
235
+ y(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? y(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
236
+ }
237
+ function y(e) {
238
+ return typeof e == "object" && e !== null && e.$$typeof === j;
239
+ }
240
+ var R = K, j = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), V = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), k = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() {
241
+ return null;
242
+ };
243
+ R = {
244
+ react_stack_bottom_frame: function(e) {
245
+ return e();
246
+ }
247
+ };
248
+ var g, h = {}, N = R.react_stack_bottom_frame.bind(
249
+ R,
250
+ s
251
+ )(), C = O(i(s)), Y = {};
252
+ _.Fragment = p, _.jsx = function(e, r, t) {
253
+ var n = 1e4 > k.recentlyCreatedOwnerStacks++;
254
+ return P(
255
+ e,
256
+ r,
257
+ t,
258
+ !1,
259
+ n ? Error("react-stack-top-frame") : N,
260
+ n ? O(i(e)) : C
261
+ );
262
+ }, _.jsxs = function(e, r, t) {
263
+ var n = 1e4 > k.recentlyCreatedOwnerStacks++;
264
+ return P(
265
+ e,
266
+ r,
267
+ t,
268
+ !0,
269
+ n ? Error("react-stack-top-frame") : N,
270
+ n ? O(i(e)) : C
271
+ );
272
+ };
273
+ })()), _;
274
+ }
275
+ var F;
276
+ function te() {
277
+ return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = ee() : v.exports = re()), v.exports;
278
+ }
279
+ var ae = te();
280
+ export {
281
+ ae as j
282
+ };