@anoki/fse-ui 1.0.727 → 1.0.729

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 (217) hide show
  1. package/dist/components/ui/DeclarantsSelect/DeclarantsSelect.css +1 -1
  2. package/dist/index.cjs100.js +1 -1
  3. package/dist/index.cjs100.js.map +1 -1
  4. package/dist/index.cjs117.js +1 -1
  5. package/dist/index.cjs117.js.map +1 -1
  6. package/dist/index.cjs193.js +1 -1
  7. package/dist/index.cjs193.js.map +1 -1
  8. package/dist/index.cjs194.js +1 -1
  9. package/dist/index.cjs194.js.map +1 -1
  10. package/dist/index.cjs198.js +1 -1
  11. package/dist/index.cjs198.js.map +1 -1
  12. package/dist/index.cjs207.js +1 -1
  13. package/dist/index.cjs207.js.map +1 -1
  14. package/dist/index.cjs211.js +1 -1
  15. package/dist/index.cjs211.js.map +1 -1
  16. package/dist/index.cjs244.js +1 -1
  17. package/dist/index.cjs244.js.map +1 -1
  18. package/dist/index.cjs255.js +1 -1
  19. package/dist/index.cjs255.js.map +1 -1
  20. package/dist/index.cjs271.js +1 -1
  21. package/dist/index.cjs271.js.map +1 -1
  22. package/dist/index.cjs279.js +1 -1
  23. package/dist/index.cjs28.js +1 -1
  24. package/dist/index.cjs28.js.map +1 -1
  25. package/dist/index.cjs288.js +1 -1
  26. package/dist/index.cjs298.js +1 -1
  27. package/dist/index.cjs298.js.map +1 -1
  28. package/dist/index.cjs337.js +1 -1
  29. package/dist/index.cjs337.js.map +1 -1
  30. package/dist/index.cjs365.js +1 -1
  31. package/dist/index.cjs366.js +1 -1
  32. package/dist/index.cjs379.js +12 -3
  33. package/dist/index.cjs379.js.map +1 -1
  34. package/dist/index.cjs388.js +1 -1
  35. package/dist/index.cjs388.js.map +1 -1
  36. package/dist/index.cjs389.js +1 -1
  37. package/dist/index.cjs389.js.map +1 -1
  38. package/dist/index.cjs390.js +1 -1
  39. package/dist/index.cjs390.js.map +1 -1
  40. package/dist/index.cjs391.js +1 -1
  41. package/dist/index.cjs397.js +1 -1
  42. package/dist/index.cjs398.js +1 -1
  43. package/dist/index.cjs398.js.map +1 -1
  44. package/dist/index.cjs408.js +1 -1
  45. package/dist/index.cjs408.js.map +1 -1
  46. package/dist/index.cjs409.js +1 -1
  47. package/dist/index.cjs409.js.map +1 -1
  48. package/dist/index.cjs410.js +1 -1
  49. package/dist/index.cjs410.js.map +1 -1
  50. package/dist/index.cjs411.js +1 -1
  51. package/dist/index.cjs411.js.map +1 -1
  52. package/dist/index.cjs412.js +1 -1
  53. package/dist/index.cjs412.js.map +1 -1
  54. package/dist/index.cjs413.js +1 -1
  55. package/dist/index.cjs413.js.map +1 -1
  56. package/dist/index.cjs414.js +2 -0
  57. package/dist/index.cjs414.js.map +1 -0
  58. package/dist/index.cjs42.js +1 -1
  59. package/dist/index.cjs42.js.map +1 -1
  60. package/dist/{index.cjs422.js → index.cjs424.js} +1 -1
  61. package/dist/{index.cjs422.js.map → index.cjs424.js.map} +1 -1
  62. package/dist/{index.cjs418.js → index.cjs425.js} +2 -2
  63. package/dist/index.cjs425.js.map +1 -0
  64. package/dist/{index.cjs419.js → index.cjs426.js} +1 -1
  65. package/dist/{index.cjs419.js.map → index.cjs426.js.map} +1 -1
  66. package/dist/{index.cjs420.js → index.cjs427.js} +2 -2
  67. package/dist/index.cjs427.js.map +1 -0
  68. package/dist/index.cjs428.js +2 -0
  69. package/dist/index.cjs428.js.map +1 -0
  70. package/dist/{index.cjs417.js → index.cjs429.js} +1 -1
  71. package/dist/{index.cjs417.js.map → index.cjs429.js.map} +1 -1
  72. package/dist/index.cjs430.js +1 -1
  73. package/dist/index.cjs432.js.map +1 -1
  74. package/dist/index.cjs433.js +1 -1
  75. package/dist/index.cjs433.js.map +1 -1
  76. package/dist/index.cjs438.js +1 -1
  77. package/dist/index.cjs440.js +1 -1
  78. package/dist/index.cjs442.js +1 -1
  79. package/dist/index.cjs442.js.map +1 -1
  80. package/dist/index.cjs445.js +38 -1
  81. package/dist/index.cjs445.js.map +1 -1
  82. package/dist/index.cjs446.js +1 -38
  83. package/dist/index.cjs446.js.map +1 -1
  84. package/dist/index.cjs447.js +1 -1
  85. package/dist/index.cjs447.js.map +1 -1
  86. package/dist/index.cjs448.js +1 -1
  87. package/dist/index.cjs448.js.map +1 -1
  88. package/dist/index.cjs449.js +1 -1
  89. package/dist/index.cjs449.js.map +1 -1
  90. package/dist/index.cjs458.js +1 -1
  91. package/dist/index.cjs468.js +1 -1
  92. package/dist/index.cjs468.js.map +1 -1
  93. package/dist/index.cjs469.js +1 -1
  94. package/dist/index.cjs469.js.map +1 -1
  95. package/dist/index.cjs470.js +1 -1
  96. package/dist/index.cjs471.js +1 -1
  97. package/dist/index.cjs471.js.map +1 -1
  98. package/dist/index.cjs472.js +1 -1
  99. package/dist/index.cjs472.js.map +1 -1
  100. package/dist/index.cjs49.js +1 -1
  101. package/dist/index.cjs49.js.map +1 -1
  102. package/dist/index.cjs62.js +1 -1
  103. package/dist/index.cjs62.js.map +1 -1
  104. package/dist/index.cjs64.js +1 -1
  105. package/dist/index.cjs64.js.map +1 -1
  106. package/dist/index.es100.js +2 -2
  107. package/dist/index.es117.js +2 -2
  108. package/dist/index.es117.js.map +1 -1
  109. package/dist/index.es193.js +71 -76
  110. package/dist/index.es193.js.map +1 -1
  111. package/dist/index.es194.js +1 -11
  112. package/dist/index.es194.js.map +1 -1
  113. package/dist/index.es198.js +58 -63
  114. package/dist/index.es198.js.map +1 -1
  115. package/dist/index.es207.js +26 -29
  116. package/dist/index.es207.js.map +1 -1
  117. package/dist/index.es211.js +15 -18
  118. package/dist/index.es211.js.map +1 -1
  119. package/dist/index.es244.js +17 -18
  120. package/dist/index.es244.js.map +1 -1
  121. package/dist/index.es255.js +119 -236
  122. package/dist/index.es255.js.map +1 -1
  123. package/dist/index.es271.js +26 -27
  124. package/dist/index.es271.js.map +1 -1
  125. package/dist/index.es279.js +1 -1
  126. package/dist/index.es28.js +5 -5
  127. package/dist/index.es288.js +1 -1
  128. package/dist/index.es298.js +87 -102
  129. package/dist/index.es298.js.map +1 -1
  130. package/dist/index.es337.js +1 -1
  131. package/dist/index.es337.js.map +1 -1
  132. package/dist/index.es365.js +1 -1
  133. package/dist/index.es366.js +2 -2
  134. package/dist/index.es379.js +307 -146
  135. package/dist/index.es379.js.map +1 -1
  136. package/dist/index.es388.js +21 -43
  137. package/dist/index.es388.js.map +1 -1
  138. package/dist/index.es389.js +1 -2
  139. package/dist/index.es389.js.map +1 -1
  140. package/dist/index.es390.js +129 -129
  141. package/dist/index.es390.js.map +1 -1
  142. package/dist/index.es391.js +1 -1
  143. package/dist/index.es397.js +1 -1
  144. package/dist/index.es398.js +3 -3
  145. package/dist/index.es398.js.map +1 -1
  146. package/dist/index.es408.js +116 -126
  147. package/dist/index.es408.js.map +1 -1
  148. package/dist/index.es409.js +134 -13
  149. package/dist/index.es409.js.map +1 -1
  150. package/dist/index.es410.js +13 -14
  151. package/dist/index.es410.js.map +1 -1
  152. package/dist/index.es411.js +14 -8
  153. package/dist/index.es411.js.map +1 -1
  154. package/dist/index.es412.js +9 -50
  155. package/dist/index.es412.js.map +1 -1
  156. package/dist/index.es413.js +49 -53
  157. package/dist/index.es413.js.map +1 -1
  158. package/dist/index.es414.js +56 -0
  159. package/dist/index.es414.js.map +1 -0
  160. package/dist/index.es42.js +9 -9
  161. package/dist/{index.es422.js → index.es424.js} +1 -1
  162. package/dist/{index.es422.js.map → index.es424.js.map} +1 -1
  163. package/dist/{index.es418.js → index.es425.js} +2 -2
  164. package/dist/index.es425.js.map +1 -0
  165. package/dist/{index.es419.js → index.es426.js} +1 -1
  166. package/dist/{index.es419.js.map → index.es426.js.map} +1 -1
  167. package/dist/{index.es420.js → index.es427.js} +3 -3
  168. package/dist/index.es427.js.map +1 -0
  169. package/dist/{index.es421.js → index.es428.js} +72 -75
  170. package/dist/index.es428.js.map +1 -0
  171. package/dist/{index.es417.js → index.es429.js} +1 -1
  172. package/dist/{index.es417.js.map → index.es429.js.map} +1 -1
  173. package/dist/index.es430.js +1 -1
  174. package/dist/index.es432.js.map +1 -1
  175. package/dist/index.es433.js +6 -10
  176. package/dist/index.es433.js.map +1 -1
  177. package/dist/index.es438.js +1 -1
  178. package/dist/index.es440.js +4 -4
  179. package/dist/index.es442.js +149 -153
  180. package/dist/index.es442.js.map +1 -1
  181. package/dist/index.es445.js +69 -65
  182. package/dist/index.es445.js.map +1 -1
  183. package/dist/index.es446.js +8 -68
  184. package/dist/index.es446.js.map +1 -1
  185. package/dist/index.es447.js +14 -9
  186. package/dist/index.es447.js.map +1 -1
  187. package/dist/index.es448.js +62 -14
  188. package/dist/index.es448.js.map +1 -1
  189. package/dist/index.es449.js +64 -61
  190. package/dist/index.es449.js.map +1 -1
  191. package/dist/index.es458.js +1 -1
  192. package/dist/index.es468.js +3 -3
  193. package/dist/index.es468.js.map +1 -1
  194. package/dist/index.es469.js +8 -131
  195. package/dist/index.es469.js.map +1 -1
  196. package/dist/index.es470.js +1 -1
  197. package/dist/index.es471.js +3 -9
  198. package/dist/index.es471.js.map +1 -1
  199. package/dist/index.es472.js +131 -2
  200. package/dist/index.es472.js.map +1 -1
  201. package/dist/index.es49.js +14 -14
  202. package/dist/index.es62.js +9 -9
  203. package/dist/index.es64.js +1 -1
  204. package/dist/index.es64.js.map +1 -1
  205. package/package.json +1 -1
  206. package/dist/index.cjs407.js +0 -2
  207. package/dist/index.cjs407.js.map +0 -1
  208. package/dist/index.cjs418.js.map +0 -1
  209. package/dist/index.cjs420.js.map +0 -1
  210. package/dist/index.cjs421.js +0 -2
  211. package/dist/index.cjs421.js.map +0 -1
  212. package/dist/index.es407.js +0 -128
  213. package/dist/index.es407.js.map +0 -1
  214. package/dist/index.es418.js.map +0 -1
  215. package/dist/index.es420.js.map +0 -1
  216. package/dist/index.es421.js.map +0 -1
  217. /package/dist/components/ui/{ConsentModal/ConsentModalContent/ConsentModalContent.css → DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css} +0 -0
@@ -1,136 +1,13 @@
1
- function r(e) {
2
- return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
3
- }
4
- function o(e, n) {
5
- e === void 0 && (e = {}), n === void 0 && (n = {});
6
- const u = ["__proto__", "constructor", "prototype"];
7
- Object.keys(n).filter((t) => u.indexOf(t) < 0).forEach((t) => {
8
- typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
9
- });
10
- }
11
- const i = {
12
- body: {},
13
- addEventListener() {
14
- },
15
- removeEventListener() {
16
- },
17
- activeElement: {
18
- blur() {
19
- },
20
- nodeName: ""
21
- },
22
- querySelector() {
23
- return null;
24
- },
25
- querySelectorAll() {
26
- return [];
27
- },
28
- getElementById() {
29
- return null;
30
- },
31
- createEvent() {
32
- return {
33
- initEvent() {
34
- }
35
- };
36
- },
37
- createElement() {
38
- return {
39
- children: [],
40
- childNodes: [],
41
- style: {},
42
- setAttribute() {
43
- },
44
- getElementsByTagName() {
45
- return [];
46
- }
47
- };
48
- },
49
- createElementNS() {
50
- return {};
51
- },
52
- importNode() {
53
- return null;
54
- },
55
- location: {
56
- hash: "",
57
- host: "",
58
- hostname: "",
59
- href: "",
60
- origin: "",
61
- pathname: "",
62
- protocol: "",
63
- search: ""
64
- }
65
- };
66
- function s() {
67
- const e = typeof document < "u" ? document : {};
68
- return o(e, i), e;
69
- }
70
- const c = {
71
- document: i,
72
- navigator: {
73
- userAgent: ""
74
- },
75
- location: {
76
- hash: "",
77
- host: "",
78
- hostname: "",
79
- href: "",
80
- origin: "",
81
- pathname: "",
82
- protocol: "",
83
- search: ""
84
- },
85
- history: {
86
- replaceState() {
87
- },
88
- pushState() {
89
- },
90
- go() {
91
- },
92
- back() {
1
+ import { e as i, c as m } from "./index.es470.js";
2
+ function o(f, a, n, l) {
3
+ return f.params.createElements && Object.keys(l).forEach((e) => {
4
+ if (!n[e] && n.auto === !0) {
5
+ let t = i(f.el, `.${l[e]}`)[0];
6
+ t || (t = m("div", l[e]), t.className = l[e], f.el.append(t)), n[e] = t, a[e] = t;
93
7
  }
94
- },
95
- CustomEvent: function() {
96
- return this;
97
- },
98
- addEventListener() {
99
- },
100
- removeEventListener() {
101
- },
102
- getComputedStyle() {
103
- return {
104
- getPropertyValue() {
105
- return "";
106
- }
107
- };
108
- },
109
- Image() {
110
- },
111
- Date() {
112
- },
113
- screen: {},
114
- setTimeout() {
115
- },
116
- clearTimeout() {
117
- },
118
- matchMedia() {
119
- return {};
120
- },
121
- requestAnimationFrame(e) {
122
- return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
123
- },
124
- cancelAnimationFrame(e) {
125
- typeof setTimeout > "u" || clearTimeout(e);
126
- }
127
- };
128
- function a() {
129
- const e = typeof window < "u" ? window : {};
130
- return o(e, c), e;
8
+ }), n;
131
9
  }
132
10
  export {
133
- a,
134
- s as g
11
+ o as c
135
12
  };
136
13
  //# sourceMappingURL=index.es469.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es469.js","sources":["../node_modules/swiper/shared/ssr-window.esm.mjs"],"sourcesContent":["/**\n * SSR Window 5.0.0\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2025, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: February 12, 2025\n */\n/* eslint-disable no-param-reassign */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;\n}\nfunction extend(target, src) {\n if (target === void 0) {\n target = {};\n }\n if (src === void 0) {\n src = {};\n }\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n Object.keys(src).filter(key => noExtend.indexOf(key) < 0).forEach(key => {\n if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {\n extend(target[key], src[key]);\n }\n });\n}\nconst ssrDocument = {\n body: {},\n addEventListener() {},\n removeEventListener() {},\n activeElement: {\n blur() {},\n nodeName: ''\n },\n querySelector() {\n return null;\n },\n querySelectorAll() {\n return [];\n },\n getElementById() {\n return null;\n },\n createEvent() {\n return {\n initEvent() {}\n };\n },\n createElement() {\n return {\n children: [],\n childNodes: [],\n style: {},\n setAttribute() {},\n getElementsByTagName() {\n return [];\n }\n };\n },\n createElementNS() {\n return {};\n },\n importNode() {\n return null;\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n }\n};\nfunction getDocument() {\n const doc = typeof document !== 'undefined' ? document : {};\n extend(doc, ssrDocument);\n return doc;\n}\nconst ssrWindow = {\n document: ssrDocument,\n navigator: {\n userAgent: ''\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n },\n history: {\n replaceState() {},\n pushState() {},\n go() {},\n back() {}\n },\n CustomEvent: function CustomEvent() {\n return this;\n },\n addEventListener() {},\n removeEventListener() {},\n getComputedStyle() {\n return {\n getPropertyValue() {\n return '';\n }\n };\n },\n Image() {},\n Date() {},\n screen: {},\n setTimeout() {},\n clearTimeout() {},\n matchMedia() {\n return {};\n },\n requestAnimationFrame(callback) {\n if (typeof setTimeout === 'undefined') {\n callback();\n return null;\n }\n return setTimeout(callback, 0);\n },\n cancelAnimationFrame(id) {\n if (typeof setTimeout === 'undefined') {\n return;\n }\n clearTimeout(id);\n }\n};\nfunction getWindow() {\n const win = typeof window !== 'undefined' ? window : {};\n extend(win, ssrWindow);\n return win;\n}\n\nexport { getWindow as a, getDocument as g };\n"],"names":["isObject","obj","extend","target","src","noExtend","key","ssrDocument","getDocument","doc","ssrWindow","callback","id","getWindow","win"],"mappings":"AAYA,SAASA,EAASC,GAAK;AACrB,SAAOA,MAAQ,QAAQ,OAAOA,KAAQ,YAAY,iBAAiBA,KAAOA,EAAI,gBAAgB;AAChG;AACA,SAASC,EAAOC,GAAQC,GAAK;AAC3B,EAAID,MAAW,WACbA,IAAS,CAA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AAE;AACvD,SAAAZ,EAAOY,GAAKJ,CAAS,GACdI;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es469.js","sources":["../node_modules/swiper/shared/create-element-if-not-defined.mjs"],"sourcesContent":["import { e as elementChildren, c as createElement } from './utils.mjs';\n\nfunction createElementIfNotDefined(swiper, originalParams, params, checkProps) {\n if (swiper.params.createElements) {\n Object.keys(checkProps).forEach(key => {\n if (!params[key] && params.auto === true) {\n let element = elementChildren(swiper.el, `.${checkProps[key]}`)[0];\n if (!element) {\n element = createElement('div', checkProps[key]);\n element.className = checkProps[key];\n swiper.el.append(element);\n }\n params[key] = element;\n originalParams[key] = element;\n }\n });\n }\n return params;\n}\n\nexport { createElementIfNotDefined as c };\n"],"names":["createElementIfNotDefined","swiper","originalParams","params","checkProps","key","element","elementChildren","createElement"],"mappings":";AAEA,SAASA,EAA0BC,GAAQC,GAAgBC,GAAQC,GAAY;AAC7E,SAAIH,EAAO,OAAO,kBAChB,OAAO,KAAKG,CAAU,EAAE,QAAQ,CAAAC,MAAO;AACrC,QAAI,CAACF,EAAOE,CAAG,KAAKF,EAAO,SAAS,IAAM;AACxC,UAAIG,IAAUC,EAAgBN,EAAO,IAAI,IAAIG,EAAWC,CAAG,CAAC,EAAE,EAAE,CAAC;AACjE,MAAKC,MACHA,IAAUE,EAAc,OAAOJ,EAAWC,CAAG,CAAC,GAC9CC,EAAQ,YAAYF,EAAWC,CAAG,GAClCJ,EAAO,GAAG,OAAOK,CAAO,IAE1BH,EAAOE,CAAG,IAAIC,GACdJ,EAAeG,CAAG,IAAIC;AAAA,IAC9B;AAAA,EACA,CAAK,GAEIH;AACT;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { a } from "./index.es469.js";
1
+ import { a } from "./index.es472.js";
2
2
  function y(e) {
3
3
  return e === void 0 && (e = ""), e.trim().split(" ").filter((t) => !!t.trim());
4
4
  }
@@ -1,13 +1,7 @@
1
- import { e as i, c as m } from "./index.es470.js";
2
- function o(f, a, n, l) {
3
- return f.params.createElements && Object.keys(l).forEach((e) => {
4
- if (!n[e] && n.auto === !0) {
5
- let t = i(f.el, `.${l[e]}`)[0];
6
- t || (t = m("div", l[e]), t.className = l[e], f.el.append(t)), n[e] = t, a[e] = t;
7
- }
8
- }), n;
1
+ function r(e) {
2
+ return e === void 0 && (e = ""), `.${e.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
9
3
  }
10
4
  export {
11
- o as c
5
+ r as c
12
6
  };
13
7
  //# sourceMappingURL=index.es471.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es471.js","sources":["../node_modules/swiper/shared/create-element-if-not-defined.mjs"],"sourcesContent":["import { e as elementChildren, c as createElement } from './utils.mjs';\n\nfunction createElementIfNotDefined(swiper, originalParams, params, checkProps) {\n if (swiper.params.createElements) {\n Object.keys(checkProps).forEach(key => {\n if (!params[key] && params.auto === true) {\n let element = elementChildren(swiper.el, `.${checkProps[key]}`)[0];\n if (!element) {\n element = createElement('div', checkProps[key]);\n element.className = checkProps[key];\n swiper.el.append(element);\n }\n params[key] = element;\n originalParams[key] = element;\n }\n });\n }\n return params;\n}\n\nexport { createElementIfNotDefined as c };\n"],"names":["createElementIfNotDefined","swiper","originalParams","params","checkProps","key","element","elementChildren","createElement"],"mappings":";AAEA,SAASA,EAA0BC,GAAQC,GAAgBC,GAAQC,GAAY;AAC7E,SAAIH,EAAO,OAAO,kBAChB,OAAO,KAAKG,CAAU,EAAE,QAAQ,CAAAC,MAAO;AACrC,QAAI,CAACF,EAAOE,CAAG,KAAKF,EAAO,SAAS,IAAM;AACxC,UAAIG,IAAUC,EAAgBN,EAAO,IAAI,IAAIG,EAAWC,CAAG,CAAC,EAAE,EAAE,CAAC;AACjE,MAAKC,MACHA,IAAUE,EAAc,OAAOJ,EAAWC,CAAG,CAAC,GAC9CC,EAAQ,YAAYF,EAAWC,CAAG,GAClCJ,EAAO,GAAG,OAAOK,CAAO,IAE1BH,EAAOE,CAAG,IAAIC,GACdJ,EAAeG,CAAG,IAAIC;AAAA,IAC9B;AAAA,EACA,CAAK,GAEIH;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es471.js","sources":["../node_modules/swiper/shared/classes-to-selector.mjs"],"sourcesContent":["function classesToSelector(classes) {\n if (classes === void 0) {\n classes = '';\n }\n return `.${classes.trim().replace(/([\\.:!+\\/])/g, '\\\\$1') // eslint-disable-line\n .replace(/ /g, '.')}`;\n}\n\nexport { classesToSelector as c };\n"],"names":["classesToSelector","classes"],"mappings":"AAAA,SAASA,EAAkBC,GAAS;AAClC,SAAIA,MAAY,WACdA,IAAU,KAEL,IAAIA,EAAQ,KAAM,EAAC,QAAQ,gBAAgB,MAAM,EACvD,QAAQ,MAAM,GAAG,CAAC;AACrB;","x_google_ignoreList":[0]}
@@ -1,7 +1,136 @@
1
1
  function r(e) {
2
- return e === void 0 && (e = ""), `.${e.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
2
+ return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
3
+ }
4
+ function o(e, n) {
5
+ e === void 0 && (e = {}), n === void 0 && (n = {});
6
+ const u = ["__proto__", "constructor", "prototype"];
7
+ Object.keys(n).filter((t) => u.indexOf(t) < 0).forEach((t) => {
8
+ typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
9
+ });
10
+ }
11
+ const i = {
12
+ body: {},
13
+ addEventListener() {
14
+ },
15
+ removeEventListener() {
16
+ },
17
+ activeElement: {
18
+ blur() {
19
+ },
20
+ nodeName: ""
21
+ },
22
+ querySelector() {
23
+ return null;
24
+ },
25
+ querySelectorAll() {
26
+ return [];
27
+ },
28
+ getElementById() {
29
+ return null;
30
+ },
31
+ createEvent() {
32
+ return {
33
+ initEvent() {
34
+ }
35
+ };
36
+ },
37
+ createElement() {
38
+ return {
39
+ children: [],
40
+ childNodes: [],
41
+ style: {},
42
+ setAttribute() {
43
+ },
44
+ getElementsByTagName() {
45
+ return [];
46
+ }
47
+ };
48
+ },
49
+ createElementNS() {
50
+ return {};
51
+ },
52
+ importNode() {
53
+ return null;
54
+ },
55
+ location: {
56
+ hash: "",
57
+ host: "",
58
+ hostname: "",
59
+ href: "",
60
+ origin: "",
61
+ pathname: "",
62
+ protocol: "",
63
+ search: ""
64
+ }
65
+ };
66
+ function s() {
67
+ const e = typeof document < "u" ? document : {};
68
+ return o(e, i), e;
69
+ }
70
+ const c = {
71
+ document: i,
72
+ navigator: {
73
+ userAgent: ""
74
+ },
75
+ location: {
76
+ hash: "",
77
+ host: "",
78
+ hostname: "",
79
+ href: "",
80
+ origin: "",
81
+ pathname: "",
82
+ protocol: "",
83
+ search: ""
84
+ },
85
+ history: {
86
+ replaceState() {
87
+ },
88
+ pushState() {
89
+ },
90
+ go() {
91
+ },
92
+ back() {
93
+ }
94
+ },
95
+ CustomEvent: function() {
96
+ return this;
97
+ },
98
+ addEventListener() {
99
+ },
100
+ removeEventListener() {
101
+ },
102
+ getComputedStyle() {
103
+ return {
104
+ getPropertyValue() {
105
+ return "";
106
+ }
107
+ };
108
+ },
109
+ Image() {
110
+ },
111
+ Date() {
112
+ },
113
+ screen: {},
114
+ setTimeout() {
115
+ },
116
+ clearTimeout() {
117
+ },
118
+ matchMedia() {
119
+ return {};
120
+ },
121
+ requestAnimationFrame(e) {
122
+ return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
123
+ },
124
+ cancelAnimationFrame(e) {
125
+ typeof setTimeout > "u" || clearTimeout(e);
126
+ }
127
+ };
128
+ function a() {
129
+ const e = typeof window < "u" ? window : {};
130
+ return o(e, c), e;
3
131
  }
4
132
  export {
5
- r as c
133
+ a,
134
+ s as g
6
135
  };
7
136
  //# sourceMappingURL=index.es472.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es472.js","sources":["../node_modules/swiper/shared/classes-to-selector.mjs"],"sourcesContent":["function classesToSelector(classes) {\n if (classes === void 0) {\n classes = '';\n }\n return `.${classes.trim().replace(/([\\.:!+\\/])/g, '\\\\$1') // eslint-disable-line\n .replace(/ /g, '.')}`;\n}\n\nexport { classesToSelector as c };\n"],"names":["classesToSelector","classes"],"mappings":"AAAA,SAASA,EAAkBC,GAAS;AAClC,SAAIA,MAAY,WACdA,IAAU,KAEL,IAAIA,EAAQ,KAAM,EAAC,QAAQ,gBAAgB,MAAM,EACvD,QAAQ,MAAM,GAAG,CAAC;AACrB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es472.js","sources":["../node_modules/swiper/shared/ssr-window.esm.mjs"],"sourcesContent":["/**\n * SSR Window 5.0.0\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2025, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: February 12, 2025\n */\n/* eslint-disable no-param-reassign */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;\n}\nfunction extend(target, src) {\n if (target === void 0) {\n target = {};\n }\n if (src === void 0) {\n src = {};\n }\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n Object.keys(src).filter(key => noExtend.indexOf(key) < 0).forEach(key => {\n if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {\n extend(target[key], src[key]);\n }\n });\n}\nconst ssrDocument = {\n body: {},\n addEventListener() {},\n removeEventListener() {},\n activeElement: {\n blur() {},\n nodeName: ''\n },\n querySelector() {\n return null;\n },\n querySelectorAll() {\n return [];\n },\n getElementById() {\n return null;\n },\n createEvent() {\n return {\n initEvent() {}\n };\n },\n createElement() {\n return {\n children: [],\n childNodes: [],\n style: {},\n setAttribute() {},\n getElementsByTagName() {\n return [];\n }\n };\n },\n createElementNS() {\n return {};\n },\n importNode() {\n return null;\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n }\n};\nfunction getDocument() {\n const doc = typeof document !== 'undefined' ? document : {};\n extend(doc, ssrDocument);\n return doc;\n}\nconst ssrWindow = {\n document: ssrDocument,\n navigator: {\n userAgent: ''\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n },\n history: {\n replaceState() {},\n pushState() {},\n go() {},\n back() {}\n },\n CustomEvent: function CustomEvent() {\n return this;\n },\n addEventListener() {},\n removeEventListener() {},\n getComputedStyle() {\n return {\n getPropertyValue() {\n return '';\n }\n };\n },\n Image() {},\n Date() {},\n screen: {},\n setTimeout() {},\n clearTimeout() {},\n matchMedia() {\n return {};\n },\n requestAnimationFrame(callback) {\n if (typeof setTimeout === 'undefined') {\n callback();\n return null;\n }\n return setTimeout(callback, 0);\n },\n cancelAnimationFrame(id) {\n if (typeof setTimeout === 'undefined') {\n return;\n }\n clearTimeout(id);\n }\n};\nfunction getWindow() {\n const win = typeof window !== 'undefined' ? window : {};\n extend(win, ssrWindow);\n return win;\n}\n\nexport { getWindow as a, getDocument as g };\n"],"names":["isObject","obj","extend","target","src","noExtend","key","ssrDocument","getDocument","doc","ssrWindow","callback","id","getWindow","win"],"mappings":"AAYA,SAASA,EAASC,GAAK;AACrB,SAAOA,MAAQ,QAAQ,OAAOA,KAAQ,YAAY,iBAAiBA,KAAOA,EAAI,gBAAgB;AAChG;AACA,SAASC,EAAOC,GAAQC,GAAK;AAC3B,EAAID,MAAW,WACbA,IAAS,CAAE,IAETC,MAAQ,WACVA,IAAM,CAAE;AAEV,QAAMC,IAAW,CAAC,aAAa,eAAe,WAAW;AACzD,SAAO,KAAKD,CAAG,EAAE,OAAO,CAAAE,MAAOD,EAAS,QAAQC,CAAG,IAAI,CAAC,EAAE,QAAQ,CAAAA,MAAO;AACvE,IAAI,OAAOH,EAAOG,CAAG,IAAM,MAAaH,EAAOG,CAAG,IAAIF,EAAIE,CAAG,IAAWN,EAASI,EAAIE,CAAG,CAA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ACR,MAAM;AAAA,IACN,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,UAAU;AAAA,IACV,QAAQ;AAAA,EACT;AAAA,EACD,SAAS;AAAA,IACP,eAAe;AAAA,IAAE;AAAA,IACjB,YAAY;AAAA,IAAE;AAAA,IACd,KAAK;AAAA,IAAE;AAAA,IACP,OAAO;AAAA,IAAA;AAAA,EACR;AAAA,EACD,aAAa,WAAuB;AAClC,WAAO;AAAA,EACR;AAAA,EACD,mBAAmB;AAAA,EAAE;AAAA,EACrB,sBAAsB;AAAA,EAAE;AAAA,EACxB,mBAAmB;AACjB,WAAO;AAAA,MACL,mBAAmB;AACjB,eAAO;AAAA,MACf;AAAA,IACK;AAAA,EACF;AAAA,EACD,QAAQ;AAAA,EAAE;AAAA,EACV,OAAO;AAAA,EAAE;AAAA,EACT,QAAQ,CAAE;AAAA,EACV,aAAa;AAAA,EAAE;AAAA,EACf,eAAe;AAAA,EAAE;AAAA,EACjB,aAAa;AACX,WAAO,CAAE;AAAA,EACV;AAAA,EACD,sBAAsBI,GAAU;AAC9B,WAAI,OAAO,aAAe,OACxBA,EAAU,GACH,QAEF,WAAWA,GAAU,CAAC;AAAA,EAC9B;AAAA,EACD,qBAAqBC,GAAI;AACvB,IAAI,OAAO,aAAe,OAG1B,aAAaA,CAAE;AAAA,EACnB;AACA;AACA,SAASC,IAAY;AACnB,QAAMC,IAAM,OAAO,SAAW,MAAc,SAAS,CAAE;AACvD,SAAAZ,EAAOY,GAAKJ,CAAS,GACdI;AACT;","x_google_ignoreList":[0]}
@@ -1,18 +1,18 @@
1
1
  import { j as e } from "./index.es212.js";
2
- import { Checkbox as h, CheckboxIndicator as m } from "./index.es255.js";
2
+ import { Root as h, Indicator as m } from "./index.es255.js";
3
3
  import { Row as l } from "./index.es9.js";
4
4
  import d from "./index.es224.js";
5
5
  import './components/ui/Checkbox/Checkbox.css';/* empty css */
6
6
  import { clsx as p } from "./index.es214.js";
7
- const u = ({
8
- id: t,
9
- label: o,
7
+ const C = ({
8
+ id: o,
9
+ label: t,
10
10
  checked: n,
11
11
  onChange: i,
12
- classNameText: c = "fs-6 fw-bold"
12
+ classNameText: a = "fs-6 fw-bold"
13
13
  }) => {
14
14
  var s;
15
- const a = () => /* @__PURE__ */ e.jsx(
15
+ const c = () => /* @__PURE__ */ e.jsx(
16
16
  "svg",
17
17
  {
18
18
  width: "14",
@@ -32,31 +32,31 @@ const u = ({
32
32
  }
33
33
  )
34
34
  }
35
- ), r = new DOMParser().parseFromString(`${o}`, "text/html"), x = ((s = r == null ? void 0 : r.body) == null ? void 0 : s.textContent) || "";
35
+ ), r = new DOMParser().parseFromString(`${t}`, "text/html"), x = ((s = r == null ? void 0 : r.body) == null ? void 0 : s.textContent) || "";
36
36
  return /* @__PURE__ */ e.jsxs(l, { alignItems: "center", gap: "x16", children: [
37
37
  /* @__PURE__ */ e.jsx(
38
38
  h,
39
39
  {
40
- id: t,
40
+ id: o,
41
41
  checked: n,
42
42
  onCheckedChange: i,
43
43
  className: "ui-checkbox",
44
44
  "aria-label": x,
45
- children: /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(a, {}) })
45
+ children: /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(c, {}) })
46
46
  }
47
47
  ),
48
- o && /* @__PURE__ */ e.jsx(
48
+ t && /* @__PURE__ */ e.jsx(
49
49
  d,
50
50
  {
51
51
  as: "label",
52
- htmlFor: t,
53
- className: p(c, "text-slate-20"),
54
- children: o
52
+ htmlFor: o,
53
+ className: p(a, "text-slate-20"),
54
+ children: t
55
55
  }
56
56
  )
57
57
  ] });
58
58
  };
59
59
  export {
60
- u as Checkbox
60
+ C as Checkbox
61
61
  };
62
62
  //# sourceMappingURL=index.es49.js.map
@@ -1,14 +1,14 @@
1
1
  import { j as e } from "./index.es212.js";
2
- import { Checkbox as p, CheckboxIndicator as w } from "./index.es255.js";
2
+ import { Root as p, Indicator as w } from "./index.es255.js";
3
3
  import './components/ui/filters/CheckboxFilter/CheckboxFilter.css';/* empty css */
4
- import k from "./index.es224.js";
4
+ import j from "./index.es224.js";
5
5
  import { clsx as i } from "./index.es214.js";
6
6
  import { Row as c } from "./index.es9.js";
7
- const v = ({
7
+ const C = ({
8
8
  id: r,
9
9
  label: t,
10
- checked: h,
11
- onChange: a,
10
+ checked: a,
11
+ onChange: h,
12
12
  classNameText: l = "fs-6 fw-bold",
13
13
  canMultiple: s = !0
14
14
  }) => {
@@ -68,8 +68,8 @@ const v = ({
68
68
  p,
69
69
  {
70
70
  id: r,
71
- checked: h,
72
- onCheckedChange: a,
71
+ checked: a,
72
+ onCheckedChange: h,
73
73
  className: i(
74
74
  s ? "ui-checkbox-filter-container" : "ui-checkbox-filter"
75
75
  ),
@@ -78,7 +78,7 @@ const v = ({
78
78
  }
79
79
  ),
80
80
  t && /* @__PURE__ */ e.jsx(
81
- k,
81
+ j,
82
82
  {
83
83
  as: "label",
84
84
  htmlFor: r,
@@ -91,6 +91,6 @@ const v = ({
91
91
  ) });
92
92
  };
93
93
  export {
94
- v as CheckboxFilter
94
+ C as CheckboxFilter
95
95
  };
96
96
  //# sourceMappingURL=index.es62.js.map
@@ -41,7 +41,7 @@ const w = ({
41
41
  x,
42
42
  {
43
43
  color: "primary",
44
- className: t("ui-arrow", { "ui-expanded": e })
44
+ className: t("ui-arrow", { "ui-expanded": !e })
45
45
  }
46
46
  ) })
47
47
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"index.es64.js","sources":["../src/components/ui/CardExemption/index.tsx"],"sourcesContent":["import \"./CardExemption.scss\";\nimport clsx from \"clsx\";\nimport { ArrowDown } from \"@/icons\";\nimport { Row } from \"@/components\";\n\ntype CardExemptionProps = {\n information?: { label: string; value: string }[];\n className?: string;\n exemptionCode: string;\n isOpen: boolean;\n onToggle: () => void;\n selectedStructures?: string[];\n hasBorder?: boolean;\n exemptionLabel?: string;\n};\n\nexport const CardExemption = ({\n information = [],\n className = \"\",\n exemptionCode,\n isOpen,\n onToggle,\n hasBorder = true,\n exemptionLabel = \"\",\n}: CardExemptionProps) => {\n return (\n <div className={\"rounded shadow w-full\"}>\n <button\n className={clsx(\n hasBorder && \"ui-has-border-bottom\",\n \"ui-btn-accordion-exemption\",\n className,\n )}\n type=\"button\"\n onClick={onToggle}\n >\n <Row\n gap={\"x24\"}\n p={\"x24\"}\n justifyContent={\"center\"}\n alignItems={\"center\"}\n >\n <h3 className=\"fw-semibold fs-5 md-fs-4 text-color-darker \">\n {exemptionCode}\n </h3>\n <span className=\"ui-divider\"></span>\n\n <p className={\"fs-7 md-fs-6 text-muted fw-semibold\"}>\n {exemptionLabel}\n </p>\n </Row>\n <div className={\"p-x24\"}>\n <ArrowDown\n color=\"primary\"\n className={clsx(\"ui-arrow\", { \"ui-expanded\": isOpen })}\n />\n </div>\n </button>\n {isOpen && (\n <dl className=\"ui-card-exemption p-x24\">\n {information.map(({ label, value }) => (\n <div key={label}>\n <dt className=\"fs-custom fw-bold text-slate-28\">{label}</dt>\n <dd className=\"fs-custom fw-regular text-slate-28\">{value}</dd>\n </div>\n ))}\n </dl>\n )}\n </div>\n );\n};\n"],"names":["CardExemption","information","className","exemptionCode","isOpen","onToggle","hasBorder","exemptionLabel","jsxs","clsx","Row","jsx","ArrowDown","label","value"],"mappings":";;;;;AAgBO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,aAAAC,IAAc,CAAC;AAAA,EACf,WAAAC,IAAY;AAAA,EACZ,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,gBAAAC,IAAiB;AACnB,MAEIC,gBAAAA,EAAA,KAAC,OAAI,EAAA,WAAW,yBACd,UAAA;AAAA,EAAAA,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACTH,KAAa;AAAA,QACb;AAAA,QACAJ;AAAA,MACF;AAAA,MACA,MAAK;AAAA,MACL,SAASG;AAAA,MAET,UAAA;AAAA,QAAAG,gBAAAA,EAAA;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,KAAK;AAAA,YACL,GAAG;AAAA,YACH,gBAAgB;AAAA,YAChB,YAAY;AAAA,YAEZ,UAAA;AAAA,cAACC,gBAAAA,EAAA,IAAA,MAAA,EAAG,WAAU,+CACX,UACHR,GAAA;AAAA,cACAQ,gBAAAA,EAAAA,IAAC,QAAK,EAAA,WAAU,aAAa,CAAA;AAAA,cAE5BA,gBAAAA,EAAA,IAAA,KAAA,EAAE,WAAW,uCACX,UACHJ,EAAA,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,QACAI,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAW,SACd,UAAAA,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,OAAM;AAAA,YACN,WAAWH,EAAK,YAAY,EAAE,eAAeL,EAAQ,CAAA;AAAA,UAAA;AAAA,QAAA,EAEzD,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAAA,EACCA,KACCO,gBAAAA,EAAA,IAAC,MAAG,EAAA,WAAU,2BACX,UAAAV,EAAY,IAAI,CAAC,EAAE,OAAAY,GAAO,OAAAC,EAAM,6BAC9B,OACC,EAAA,UAAA;AAAA,IAACH,gBAAAA,EAAA,IAAA,MAAA,EAAG,WAAU,mCAAmC,UAAME,GAAA;AAAA,IACtDF,gBAAAA,EAAA,IAAA,MAAA,EAAG,WAAU,sCAAsC,UAAMG,EAAA,CAAA;AAAA,EAAA,EAFlD,GAAAD,CAGV,CACD,EACH,CAAA;AAAA,GAEJ;"}
1
+ {"version":3,"file":"index.es64.js","sources":["../src/components/ui/CardExemption/index.tsx"],"sourcesContent":["import \"./CardExemption.scss\";\nimport clsx from \"clsx\";\nimport { ArrowDown } from \"@/icons\";\nimport { Row } from \"@/components\";\n\ntype CardExemptionProps = {\n information?: { label: string; value: string }[];\n className?: string;\n exemptionCode: string;\n isOpen: boolean;\n onToggle: () => void;\n selectedStructures?: string[];\n hasBorder?: boolean;\n exemptionLabel?: string;\n};\n\nexport const CardExemption = ({\n information = [],\n className = \"\",\n exemptionCode,\n isOpen,\n onToggle,\n hasBorder = true,\n exemptionLabel = \"\",\n}: CardExemptionProps) => {\n return (\n <div className={\"rounded shadow w-full\"}>\n <button\n className={clsx(\n hasBorder && \"ui-has-border-bottom\",\n \"ui-btn-accordion-exemption\",\n className,\n )}\n type=\"button\"\n onClick={onToggle}\n >\n <Row\n gap={\"x24\"}\n p={\"x24\"}\n justifyContent={\"center\"}\n alignItems={\"center\"}\n >\n <h3 className=\"fw-semibold fs-5 md-fs-4 text-color-darker \">\n {exemptionCode}\n </h3>\n <span className=\"ui-divider\"></span>\n\n <p className={\"fs-7 md-fs-6 text-muted fw-semibold\"}>\n {exemptionLabel}\n </p>\n </Row>\n <div className={\"p-x24\"}>\n <ArrowDown\n color=\"primary\"\n className={clsx(\"ui-arrow\", { \"ui-expanded\": !isOpen })}\n />\n </div>\n </button>\n {isOpen && (\n <dl className=\"ui-card-exemption p-x24\">\n {information.map(({ label, value }) => (\n <div key={label}>\n <dt className=\"fs-custom fw-bold text-slate-28\">{label}</dt>\n <dd className=\"fs-custom fw-regular text-slate-28\">{value}</dd>\n </div>\n ))}\n </dl>\n )}\n </div>\n );\n};\n"],"names":["CardExemption","information","className","exemptionCode","isOpen","onToggle","hasBorder","exemptionLabel","jsxs","clsx","Row","jsx","ArrowDown","label","value"],"mappings":";;;;;AAgBO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,aAAAC,IAAc,CAAC;AAAA,EACf,WAAAC,IAAY;AAAA,EACZ,eAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,gBAAAC,IAAiB;AACnB,MAEIC,gBAAAA,EAAA,KAAC,OAAI,EAAA,WAAW,yBACd,UAAA;AAAA,EAAAA,gBAAAA,EAAA;AAAA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version": "1.0.729",
4
4
  "description": "FSE UI components library",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),y=require("./index.cjs385.js"),p=require("./index.cjs389.js"),R=require("./index.cjs386.js"),x=require("./index.cjs422.js"),H=require("./index.cjs430.js"),w=require("./index.cjs212.js");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=U(q);var z="DismissableLayer",h="dismissableLayer.update",M="dismissableLayer.pointerDownOutside",$="dismissableLayer.focusOutside",L,T=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=o.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:l,onDismiss:d,...v}=e,c=o.useContext(T),[u,F]=o.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=o.useState({}),W=R.useComposedRefs(t,i=>F(i)),m=Array.from(c.layers),[_]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),A=m.indexOf(_),P=u?m.indexOf(u):-1,k=c.layersWithOutsidePointerEventsDisabled.size>0,D=P>=A,I=Y(i=>{const E=i.target,C=[...c.branches].some(b=>b.contains(E));!D||C||(r==null||r(i),l==null||l(i),i.defaultPrevented||d==null||d())},f),O=G(i=>{const E=i.target;[...c.branches].some(b=>b.contains(E))||(a==null||a(i),l==null||l(i),i.defaultPrevented||d==null||d())},f);return H.useEscapeKeydown(i=>{P===c.layers.size-1&&(s==null||s(i),!i.defaultPrevented&&d&&(i.preventDefault(),d()))},f),o.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(L=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),g(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=L)}},[u,f,n,c]),o.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,c]),o.useEffect(()=>{const i=()=>N({});return document.addEventListener(h,i),()=>document.removeEventListener(h,i)},[]),w.jsxRuntimeExports.jsx(p.Primitive.div,{...v,ref:W,style:{pointerEvents:k?D?"auto":"none":void 0,...e.style},onFocusCapture:y.composeEventHandlers(e.onFocusCapture,O.onFocusCapture),onBlurCapture:y.composeEventHandlers(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:y.composeEventHandlers(e.onPointerDownCapture,I.onPointerDownCapture)})});S.displayName=z;var X="DismissableLayerBranch",B=o.forwardRef((e,t)=>{const n=o.useContext(T),s=o.useRef(null),r=R.useComposedRefs(t,s);return o.useEffect(()=>{const a=s.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),w.jsxRuntimeExports.jsx(p.Primitive.div,{...e,ref:r})});B.displayName=X;function Y(e,t=globalThis==null?void 0:globalThis.document){const n=x.useCallbackRef(e),s=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const a=d=>{if(d.target&&!s.current){let v=function(){j(M,n,c,{discrete:!0})};const c={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=v,t.addEventListener("click",r.current,{once:!0})):v()}else t.removeEventListener("click",r.current);s.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function G(e,t=globalThis==null?void 0:globalThis.document){const n=x.useCallbackRef(e),s=o.useRef(!1);return o.useEffect(()=>{const r=a=>{a.target&&!s.current&&j($,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function g(){const e=new CustomEvent(h);document.dispatchEvent(e)}function j(e,t,n,{discrete:s}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?p.dispatchDiscreteCustomEvent(r,a):r.dispatchEvent(a)}exports.DismissableLayer=S;exports.DismissableLayerBranch=B;
2
- //# sourceMappingURL=index.cjs407.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs407.js","sources":["../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dismissable-layer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DISMISSABLE_LAYER_NAME","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","originalBodyPointerEvents","DismissableLayerContext","React","DismissableLayer","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","node","setNode","ownerDocument","force","composedRefs","useComposedRefs","node2","layers","highestLayerWithOutsidePointerEventsDisabled","highestLayerWithOutsidePointerEventsDisabledIndex","index","isBodyPointerEventsDisabled","isPointerEventsEnabled","pointerDownOutside","usePointerDownOutside","event","target","isPointerDownOnBranch","branch","focusOutside","useFocusOutside","useEscapeKeydown","dispatchUpdate","handleUpdate","jsx","Primitive","composeEventHandlers","BRANCH_NAME","DismissableLayerBranch","ref","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","handleClickRef","handlePointerDown","handleAndDispatchPointerDownOutsideEvent2","handleAndDispatchCustomEvent","eventDetail","timerId","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","name","handler","detail","discrete","dispatchDiscreteCustomEvent"],"mappings":"6jBAUA,IAAIA,EAAyB,mBACzBC,EAAiB,0BACjBC,EAAuB,sCACvBC,EAAgB,gCAChBC,EACAC,EAA0BC,EAAM,cAAc,CAChD,OAAwB,IAAI,IAC5B,uCAAwD,IAAI,IAC5D,SAA0B,IAAI,GAChC,CAAC,EACGC,EAAmBD,EAAM,WAC3B,CAACE,EAAOC,IAAiB,CACvB,KAAM,CACJ,4BAAAC,EAA8B,GAC9B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BpC,EAAc,oBAAoB,cAAegC,CAAiB,EAClEhC,EAAc,oBAAoB,QAAS+B,EAAe,OAAO,CAClE,CACL,EAAK,CAAC/B,EAAe4B,CAAwB,CAAC,EACrC,CAEL,qBAAsB,IAAME,EAA4B,QAAU,EACnE,CACH,CACA,SAASZ,EAAgBzB,EAAgBO,EAAgB,mCAAY,SAAU,CAC7E,MAAMqC,EAAqBR,EAAc,eAACpC,CAAc,EAClD6C,EAA4BpD,EAAM,OAAO,EAAK,EACpDA,OAAAA,EAAM,UAAU,IAAM,CACpB,MAAMqD,EAAe1B,GAAU,CACzBA,EAAM,QAAU,CAACyB,EAA0B,SAE7CJ,EAA6BnD,EAAesD,EADxB,CAAE,cAAexB,CAAO,EACiC,CAC3E,SAAU,EACpB,CAAS,CAEJ,EACD,OAAAb,EAAc,iBAAiB,UAAWuC,CAAW,EAC9C,IAAMvC,EAAc,oBAAoB,UAAWuC,CAAW,CACzE,EAAK,CAACvC,EAAeqC,CAAkB,CAAC,EAC/B,CACL,eAAgB,IAAMC,EAA0B,QAAU,GAC1D,cAAe,IAAMA,EAA0B,QAAU,EAC1D,CACH,CACA,SAASlB,GAAiB,CACxB,MAAMP,EAAQ,IAAI,YAAYhC,CAAc,EAC5C,SAAS,cAAcgC,CAAK,CAC9B,CACA,SAASqB,EAA6BM,EAAMC,EAASC,EAAQ,CAAE,SAAAC,CAAQ,EAAI,CACzE,MAAM7B,EAAS4B,EAAO,cAAc,OAC9B7B,EAAQ,IAAI,YAAY2B,EAAM,CAAE,QAAS,GAAO,WAAY,GAAM,OAAAE,EAAQ,EAC5ED,GAAS3B,EAAO,iBAAiB0B,EAAMC,EAAS,CAAE,KAAM,GAAM,EAC9DE,EACFC,EAA2B,4BAAC9B,EAAQD,CAAK,EAEzCC,EAAO,cAAcD,CAAK,CAE9B","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs418.js","sources":["../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/collection-legacy.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\n\n// src/collection.tsx\nimport React2 from \"react\";\nimport { createContextScope as createContextScope2 } from \"@radix-ui/react-context\";\nimport { useComposedRefs as useComposedRefs2 } from \"@radix-ui/react-compose-refs\";\nimport { createSlot as createSlot2 } from \"@radix-ui/react-slot\";\n\n// src/ordered-dictionary.ts\nvar __instanciated = /* @__PURE__ */ new WeakMap();\nvar OrderedDict = class _OrderedDict extends Map {\n #keys;\n constructor(entries) {\n super(entries);\n this.#keys = [...super.keys()];\n __instanciated.set(this, true);\n }\n set(key, value) {\n if (__instanciated.get(this)) {\n if (this.has(key)) {\n this.#keys[this.#keys.indexOf(key)] = key;\n } else {\n this.#keys.push(key);\n }\n }\n super.set(key, value);\n return this;\n }\n insert(index, key, value) {\n const has = this.has(key);\n const length = this.#keys.length;\n const relativeIndex = toSafeInteger(index);\n let actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n const safeIndex = actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n if (safeIndex === this.size || has && safeIndex === this.size - 1 || safeIndex === -1) {\n this.set(key, value);\n return this;\n }\n const size = this.size + (has ? 0 : 1);\n if (relativeIndex < 0) {\n actualIndex++;\n }\n const keys = [...this.#keys];\n let nextValue;\n let shouldSkip = false;\n for (let i = actualIndex; i < size; i++) {\n if (actualIndex === i) {\n let nextKey = keys[i];\n if (keys[i] === key) {\n nextKey = keys[i + 1];\n }\n if (has) {\n this.delete(key);\n }\n nextValue = this.get(nextKey);\n this.set(key, value);\n } else {\n if (!shouldSkip && keys[i - 1] === key) {\n shouldSkip = true;\n }\n const currentKey = keys[shouldSkip ? i : i - 1];\n const currentValue = nextValue;\n nextValue = this.get(currentKey);\n this.delete(currentKey);\n this.set(currentKey, currentValue);\n }\n }\n return this;\n }\n with(index, key, value) {\n const copy = new _OrderedDict(this);\n copy.insert(index, key, value);\n return copy;\n }\n before(key) {\n const index = this.#keys.indexOf(key) - 1;\n if (index < 0) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position before the given key.\n */\n setBefore(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index, newKey, value);\n }\n after(key) {\n let index = this.#keys.indexOf(key);\n index = index === -1 || index === this.size - 1 ? -1 : index + 1;\n if (index === -1) {\n return void 0;\n }\n return this.entryAt(index);\n }\n /**\n * Sets a new key-value pair at the position after the given key.\n */\n setAfter(key, newKey, value) {\n const index = this.#keys.indexOf(key);\n if (index === -1) {\n return this;\n }\n return this.insert(index + 1, newKey, value);\n }\n first() {\n return this.entryAt(0);\n }\n last() {\n return this.entryAt(-1);\n }\n clear() {\n this.#keys = [];\n return super.clear();\n }\n delete(key) {\n const deleted = super.delete(key);\n if (deleted) {\n this.#keys.splice(this.#keys.indexOf(key), 1);\n }\n return deleted;\n }\n deleteAt(index) {\n const key = this.keyAt(index);\n if (key !== void 0) {\n return this.delete(key);\n }\n return false;\n }\n at(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return this.get(key);\n }\n }\n entryAt(index) {\n const key = at(this.#keys, index);\n if (key !== void 0) {\n return [key, this.get(key)];\n }\n }\n indexOf(key) {\n return this.#keys.indexOf(key);\n }\n keyAt(index) {\n return at(this.#keys, index);\n }\n from(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.at(dest);\n }\n keyFrom(key, offset) {\n const index = this.indexOf(key);\n if (index === -1) {\n return void 0;\n }\n let dest = index + offset;\n if (dest < 0) dest = 0;\n if (dest >= this.size) dest = this.size - 1;\n return this.keyAt(dest);\n }\n find(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return entry;\n }\n index++;\n }\n return void 0;\n }\n findIndex(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return index;\n }\n index++;\n }\n return -1;\n }\n filter(predicate, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n entries.push(entry);\n }\n index++;\n }\n return new _OrderedDict(entries);\n }\n map(callbackfn, thisArg) {\n const entries = [];\n let index = 0;\n for (const entry of this) {\n entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index, this])]);\n index++;\n }\n return new _OrderedDict(entries);\n }\n reduce(...args) {\n const [callbackfn, initialValue] = args;\n let index = 0;\n let accumulator = initialValue ?? this.at(0);\n for (const entry of this) {\n if (index === 0 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n index++;\n }\n return accumulator;\n }\n reduceRight(...args) {\n const [callbackfn, initialValue] = args;\n let accumulator = initialValue ?? this.at(-1);\n for (let index = this.size - 1; index >= 0; index--) {\n const entry = this.at(index);\n if (index === this.size - 1 && args.length === 1) {\n accumulator = entry;\n } else {\n accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);\n }\n }\n return accumulator;\n }\n toSorted(compareFn) {\n const entries = [...this.entries()].sort(compareFn);\n return new _OrderedDict(entries);\n }\n toReversed() {\n const reversed = new _OrderedDict();\n for (let index = this.size - 1; index >= 0; index--) {\n const key = this.keyAt(index);\n const element = this.get(key);\n reversed.set(key, element);\n }\n return reversed;\n }\n toSpliced(...args) {\n const entries = [...this.entries()];\n entries.splice(...args);\n return new _OrderedDict(entries);\n }\n slice(start, end) {\n const result = new _OrderedDict();\n let stop = this.size - 1;\n if (start === void 0) {\n return result;\n }\n if (start < 0) {\n start = start + this.size;\n }\n if (end !== void 0 && end > 0) {\n stop = end - 1;\n }\n for (let index = start; index <= stop; index++) {\n const key = this.keyAt(index);\n const element = this.get(key);\n result.set(key, element);\n }\n return result;\n }\n every(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (!Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return false;\n }\n index++;\n }\n return true;\n }\n some(predicate, thisArg) {\n let index = 0;\n for (const entry of this) {\n if (Reflect.apply(predicate, thisArg, [entry, index, this])) {\n return true;\n }\n index++;\n }\n return false;\n }\n};\nfunction at(array, index) {\n if (\"at\" in Array.prototype) {\n return Array.prototype.at.call(array, index);\n }\n const actualIndex = toSafeIndex(array, index);\n return actualIndex === -1 ? void 0 : array[actualIndex];\n}\nfunction toSafeIndex(array, index) {\n const length = array.length;\n const relativeIndex = toSafeInteger(index);\n const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;\n return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;\n}\nfunction toSafeInteger(number) {\n return number !== number || number === 0 ? 0 : Math.trunc(number);\n}\n\n// src/collection.tsx\nimport { jsx as jsx2 } from \"react/jsx-runtime\";\nfunction createCollection2(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope2(PROVIDER_NAME);\n const [CollectionContextProvider, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n {\n collectionElement: null,\n collectionRef: { current: null },\n collectionRefObject: { current: null },\n itemMap: new OrderedDict(),\n setItemMap: () => void 0\n }\n );\n const CollectionProvider = ({ state, ...props }) => {\n return state ? /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state }) : /* @__PURE__ */ jsx2(CollectionInit, { ...props });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const CollectionInit = (props) => {\n const state = useInitCollection();\n return /* @__PURE__ */ jsx2(CollectionProviderImpl, { ...props, state });\n };\n CollectionInit.displayName = PROVIDER_NAME + \"Init\";\n const CollectionProviderImpl = (props) => {\n const { scope, children, state } = props;\n const ref = React2.useRef(null);\n const [collectionElement, setCollectionElement] = React2.useState(\n null\n );\n const composeRefs = useComposedRefs2(ref, setCollectionElement);\n const [itemMap, setItemMap] = state;\n React2.useEffect(() => {\n if (!collectionElement) return;\n const observer = getChildListObserver(() => {\n });\n observer.observe(collectionElement, {\n childList: true,\n subtree: true\n });\n return () => {\n observer.disconnect();\n };\n }, [collectionElement]);\n return /* @__PURE__ */ jsx2(\n CollectionContextProvider,\n {\n scope,\n itemMap,\n setItemMap,\n collectionRef: composeRefs,\n collectionRefObject: ref,\n collectionElement,\n children\n }\n );\n };\n CollectionProviderImpl.displayName = PROVIDER_NAME + \"Impl\";\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot2(COLLECTION_SLOT_NAME);\n const CollectionSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs2(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx2(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot2(ITEM_SLOT_NAME);\n const CollectionItemSlot = React2.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React2.useRef(null);\n const [element, setElement] = React2.useState(null);\n const composedRefs = useComposedRefs2(forwardedRef, ref, setElement);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n const { setItemMap } = context;\n const itemDataRef = React2.useRef(itemData);\n if (!shallowEqual(itemDataRef.current, itemData)) {\n itemDataRef.current = itemData;\n }\n const memoizedItemData = itemDataRef.current;\n React2.useEffect(() => {\n const itemData2 = memoizedItemData;\n setItemMap((map) => {\n if (!element) {\n return map;\n }\n if (!map.has(element)) {\n map.set(element, { ...itemData2, element });\n return map.toSorted(sortByDocumentPosition);\n }\n return map.set(element, { ...itemData2, element }).toSorted(sortByDocumentPosition);\n });\n return () => {\n setItemMap((map) => {\n if (!element || !map.has(element)) {\n return map;\n }\n map.delete(element);\n return new OrderedDict(map);\n });\n };\n }, [element, memoizedItemData, setItemMap]);\n return /* @__PURE__ */ jsx2(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useInitCollection() {\n return React2.useState(new OrderedDict());\n }\n function useCollection(scope) {\n const { itemMap } = useCollectionContext(name + \"CollectionConsumer\", scope);\n return itemMap;\n }\n const functions = {\n createCollectionScope,\n useCollection,\n useInitCollection\n };\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n functions\n ];\n}\nfunction shallowEqual(a, b) {\n if (a === b) return true;\n if (typeof a !== \"object\" || typeof b !== \"object\") return false;\n if (a == null || b == null) return false;\n const keysA = Object.keys(a);\n const keysB = Object.keys(b);\n if (keysA.length !== keysB.length) return false;\n for (const key of keysA) {\n if (!Object.prototype.hasOwnProperty.call(b, key)) return false;\n if (a[key] !== b[key]) return false;\n }\n return true;\n}\nfunction isElementPreceding(a, b) {\n return !!(b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING);\n}\nfunction sortByDocumentPosition(a, b) {\n return !a[1].element || !b[1].element ? 0 : isElementPreceding(a[1].element, b[1].element) ? -1 : 1;\n}\nfunction getChildListObserver(callback) {\n const observer = new MutationObserver((mutationsList) => {\n for (const mutation of mutationsList) {\n if (mutation.type === \"childList\") {\n callback();\n return;\n }\n }\n });\n return observer;\n}\nexport {\n createCollection,\n createCollection2 as unstable_createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","React","itemMap","jsx","COLLECTION_SLOT_NAME","CollectionSlotImpl","createSlot","CollectionSlot","forwardedRef","context","composedRefs","useComposedRefs","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlotImpl","CollectionItemSlot","itemData","useCollection","collectionNode","orderedNodes","a","b"],"mappings":"qOAQA,SAASA,EAAiBC,EAAM,CAC9B,MAAMC,EAAgBD,EAAO,qBACvB,CAACE,EAAyBC,CAAqB,EAAIC,EAAAA,mBAAmBH,CAAa,EACnF,CAACI,EAAwBC,CAAoB,EAAIJ,EACrDD,EACA,CAAE,cAAe,CAAE,QAAS,IAAI,EAAI,QAAyB,IAAI,GAAK,CACvE,EACKM,EAAsBC,GAAU,CACpC,KAAM,CAAE,MAAAC,EAAO,SAAAC,CAAQ,EAAKF,EACtBG,EAAMC,EAAM,OAAO,IAAI,EACvBC,EAAUD,EAAM,OAAuB,IAAI,GAAK,EAAE,QACxD,OAAuBE,EAAG,kBAAA,IAACT,EAAwB,CAAE,MAAAI,EAAO,QAAAI,EAAS,cAAeF,EAAK,SAAAD,EAAU,CACpG,EACDH,EAAmB,YAAcN,EACjC,MAAMc,EAAuBf,EAAO,iBAC9BgB,EAAqBC,EAAU,WAACF,CAAoB,EACpDG,EAAiBN,EAAM,WAC3B,CAACJ,EAAOW,IAAiB,CACvB,KAAM,CAAE,MAAAV,EAAO,SAAAC,CAAQ,EAAKF,EACtBY,EAAUd,EAAqBS,EAAsBN,CAAK,EAC1DY,EAAeC,EAAe,gB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