@anoki/fse-ui 1.0.0-beta1.46 → 1.0.0-beta1.47

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 (557) hide show
  1. package/dist/index.cjs154.js +1 -1
  2. package/dist/index.cjs155.js +1 -1
  3. package/dist/index.cjs156.js +1 -1
  4. package/dist/index.cjs157.js +1 -1
  5. package/dist/index.cjs158.js +1 -1
  6. package/dist/index.cjs159.js +1 -1
  7. package/dist/index.cjs160.js +1 -1
  8. package/dist/index.cjs161.js +1 -1
  9. package/dist/index.cjs162.js +1 -1
  10. package/dist/index.cjs163.js +1 -1
  11. package/dist/index.cjs164.js +1 -1
  12. package/dist/index.cjs165.js +1 -1
  13. package/dist/index.cjs166.js +1 -1
  14. package/dist/index.cjs167.js +1 -1
  15. package/dist/index.cjs168.js +1 -1
  16. package/dist/index.cjs169.js +1 -1
  17. package/dist/index.cjs170.js +1 -1
  18. package/dist/index.cjs171.js +1 -1
  19. package/dist/index.cjs172.js +1 -1
  20. package/dist/index.cjs173.js +1 -1
  21. package/dist/index.cjs174.js +1 -1
  22. package/dist/index.cjs175.js +1 -1
  23. package/dist/index.cjs176.js +1 -1
  24. package/dist/index.cjs180.js +1 -1
  25. package/dist/index.cjs181.js +1 -1
  26. package/dist/index.cjs182.js +1 -1
  27. package/dist/index.cjs184.js +1 -1
  28. package/dist/index.cjs185.js +1 -1
  29. package/dist/index.cjs186.js +1 -1
  30. package/dist/index.cjs187.js +1 -1
  31. package/dist/index.cjs188.js +1 -1
  32. package/dist/index.cjs189.js +1 -1
  33. package/dist/index.cjs190.js +1 -1
  34. package/dist/index.cjs191.js +1 -1
  35. package/dist/index.cjs192.js +1 -1
  36. package/dist/index.cjs194.js +1 -1
  37. package/dist/index.cjs195.js +1 -1
  38. package/dist/index.cjs196.js +1 -1
  39. package/dist/index.cjs197.js +1 -1
  40. package/dist/index.cjs198.js +1 -1
  41. package/dist/index.cjs199.js +1 -1
  42. package/dist/index.cjs200.js +1 -1
  43. package/dist/index.cjs203.js +1 -1
  44. package/dist/index.cjs204.js +1 -1
  45. package/dist/index.cjs205.js +1 -1
  46. package/dist/index.cjs206.js +1 -1
  47. package/dist/index.cjs207.js +1 -1
  48. package/dist/index.cjs208.js +1 -1
  49. package/dist/index.cjs209.js +1 -1
  50. package/dist/index.cjs210.js +1 -1
  51. package/dist/index.cjs216.js +1 -1
  52. package/dist/index.cjs218.js +1 -1
  53. package/dist/index.cjs219.js +1 -1
  54. package/dist/index.cjs22.js +1 -1
  55. package/dist/index.cjs222.js +1 -1
  56. package/dist/index.cjs222.js.map +1 -1
  57. package/dist/index.cjs224.js +2 -0
  58. package/dist/index.cjs224.js.map +1 -0
  59. package/dist/index.cjs232.js +1 -1
  60. package/dist/index.cjs241.js +1 -1
  61. package/dist/index.cjs244.js +1 -1
  62. package/dist/index.cjs254.js +1 -1
  63. package/dist/index.cjs26.js +1 -1
  64. package/dist/index.cjs265.js +1 -1
  65. package/dist/index.cjs270.js +1 -1
  66. package/dist/index.cjs272.js +1 -1
  67. package/dist/index.cjs279.js +1 -1
  68. package/dist/index.cjs280.js +1 -1
  69. package/dist/index.cjs284.js +1 -1
  70. package/dist/index.cjs293.js +1 -1
  71. package/dist/index.cjs295.js +1 -1
  72. package/dist/index.cjs301.js +1 -1
  73. package/dist/index.cjs302.js +1 -1
  74. package/dist/index.cjs303.js +1 -1
  75. package/dist/index.cjs345.js +1 -1
  76. package/dist/index.cjs351.js +1 -1
  77. package/dist/index.cjs379.js +1 -1
  78. package/dist/index.cjs380.js +1 -1
  79. package/dist/index.cjs381.js +1 -1
  80. package/dist/index.cjs391.js +1 -1
  81. package/dist/index.cjs4.js +1 -1
  82. package/dist/index.cjs420.js +1 -1
  83. package/dist/index.cjs438.js +2 -0
  84. package/dist/index.cjs438.js.map +1 -0
  85. package/dist/index.cjs439.js +2 -0
  86. package/dist/index.cjs439.js.map +1 -0
  87. package/dist/index.cjs440.js +1 -1
  88. package/dist/index.cjs440.js.map +1 -1
  89. package/dist/index.cjs441.js +1 -1
  90. package/dist/index.cjs441.js.map +1 -1
  91. package/dist/index.cjs442.js +1 -1
  92. package/dist/index.cjs442.js.map +1 -1
  93. package/dist/index.cjs443.js +1 -1
  94. package/dist/index.cjs443.js.map +1 -1
  95. package/dist/index.cjs444.js +1 -1
  96. package/dist/index.cjs444.js.map +1 -1
  97. package/dist/index.cjs445.js +1 -1
  98. package/dist/index.cjs445.js.map +1 -1
  99. package/dist/index.cjs446.js +1 -1
  100. package/dist/index.cjs446.js.map +1 -1
  101. package/dist/index.cjs447.js +1 -1
  102. package/dist/index.cjs447.js.map +1 -1
  103. package/dist/index.cjs448.js +1 -1
  104. package/dist/index.cjs448.js.map +1 -1
  105. package/dist/index.cjs449.js +1 -1
  106. package/dist/index.cjs449.js.map +1 -1
  107. package/dist/index.cjs450.js +1 -1
  108. package/dist/index.cjs450.js.map +1 -1
  109. package/dist/index.cjs451.js +1 -1
  110. package/dist/index.cjs451.js.map +1 -1
  111. package/dist/index.cjs452.js +1 -1
  112. package/dist/index.cjs452.js.map +1 -1
  113. package/dist/index.cjs453.js +1 -1
  114. package/dist/index.cjs453.js.map +1 -1
  115. package/dist/index.cjs454.js +1 -1
  116. package/dist/index.cjs454.js.map +1 -1
  117. package/dist/index.cjs455.js +1 -1
  118. package/dist/index.cjs455.js.map +1 -1
  119. package/dist/index.cjs456.js +1 -1
  120. package/dist/index.cjs456.js.map +1 -1
  121. package/dist/index.cjs457.js +1 -1
  122. package/dist/index.cjs457.js.map +1 -1
  123. package/dist/index.cjs458.js +1 -1
  124. package/dist/index.cjs458.js.map +1 -1
  125. package/dist/index.cjs459.js +1 -1
  126. package/dist/index.cjs459.js.map +1 -1
  127. package/dist/index.cjs460.js +1 -1
  128. package/dist/index.cjs460.js.map +1 -1
  129. package/dist/index.cjs461.js +1 -1
  130. package/dist/index.cjs461.js.map +1 -1
  131. package/dist/index.cjs462.js +1 -1
  132. package/dist/index.cjs462.js.map +1 -1
  133. package/dist/index.cjs463.js +1 -1
  134. package/dist/index.cjs463.js.map +1 -1
  135. package/dist/index.cjs464.js +1 -1
  136. package/dist/index.cjs464.js.map +1 -1
  137. package/dist/index.cjs465.js +1 -1
  138. package/dist/index.cjs465.js.map +1 -1
  139. package/dist/index.cjs466.js +1 -1
  140. package/dist/index.cjs466.js.map +1 -1
  141. package/dist/index.cjs467.js +1 -1
  142. package/dist/index.cjs467.js.map +1 -1
  143. package/dist/index.cjs469.js +1 -1
  144. package/dist/index.cjs469.js.map +1 -1
  145. package/dist/index.cjs470.js +1 -1
  146. package/dist/index.cjs470.js.map +1 -1
  147. package/dist/{index.cjs482.js → index.cjs471.js} +2 -2
  148. package/dist/{index.cjs482.js.map → index.cjs471.js.map} +1 -1
  149. package/dist/{index.cjs483.js → index.cjs472.js} +2 -2
  150. package/dist/{index.cjs483.js.map → index.cjs472.js.map} +1 -1
  151. package/dist/index.cjs473.js +2 -0
  152. package/dist/index.cjs473.js.map +1 -0
  153. package/dist/index.cjs474.js +2 -0
  154. package/dist/index.cjs474.js.map +1 -0
  155. package/dist/index.cjs475.js +2 -0
  156. package/dist/index.cjs475.js.map +1 -0
  157. package/dist/index.cjs479.js +2 -0
  158. package/dist/index.cjs479.js.map +1 -0
  159. package/dist/index.cjs486.js +2 -0
  160. package/dist/index.cjs486.js.map +1 -0
  161. package/dist/index.cjs487.js +1 -1
  162. package/dist/index.cjs487.js.map +1 -1
  163. package/dist/index.cjs488.js +1 -1
  164. package/dist/index.cjs488.js.map +1 -1
  165. package/dist/index.cjs489.js +4 -1
  166. package/dist/index.cjs489.js.map +1 -1
  167. package/dist/{index.cjs497.js → index.cjs490.js} +2 -2
  168. package/dist/{index.cjs497.js.map → index.cjs490.js.map} +1 -1
  169. package/dist/index.cjs493.js +1 -1
  170. package/dist/index.cjs493.js.map +1 -1
  171. package/dist/index.cjs494.js +1 -1
  172. package/dist/index.cjs494.js.map +1 -1
  173. package/dist/index.cjs495.js +1 -1
  174. package/dist/index.cjs495.js.map +1 -1
  175. package/dist/index.cjs5.js +1 -1
  176. package/dist/index.cjs502.js +39 -0
  177. package/dist/index.cjs502.js.map +1 -0
  178. package/dist/index.cjs503.js +1 -1
  179. package/dist/index.cjs503.js.map +1 -1
  180. package/dist/index.cjs504.js +1 -38
  181. package/dist/index.cjs504.js.map +1 -1
  182. package/dist/index.cjs505.js +1 -1
  183. package/dist/index.cjs505.js.map +1 -1
  184. package/dist/index.cjs506.js +1 -1
  185. package/dist/index.cjs506.js.map +1 -1
  186. package/dist/index.cjs507.js +1 -1
  187. package/dist/index.cjs507.js.map +1 -1
  188. package/dist/index.cjs508.js +1 -1
  189. package/dist/index.cjs508.js.map +1 -1
  190. package/dist/index.cjs510.js +1 -1
  191. package/dist/index.cjs510.js.map +1 -1
  192. package/dist/index.cjs511.js +1 -1
  193. package/dist/index.cjs511.js.map +1 -1
  194. package/dist/index.cjs512.js +1 -1
  195. package/dist/index.cjs512.js.map +1 -1
  196. package/dist/index.cjs513.js +1 -1
  197. package/dist/index.cjs513.js.map +1 -1
  198. package/dist/index.cjs514.js +1 -1
  199. package/dist/index.cjs515.js +1 -1
  200. package/dist/index.cjs517.js +1 -1
  201. package/dist/index.cjs518.js +1 -1
  202. package/dist/index.cjs520.js +1 -1
  203. package/dist/index.cjs521.js +1 -1
  204. package/dist/index.cjs523.js +1 -1
  205. package/dist/index.cjs524.js +1 -1
  206. package/dist/index.cjs525.js +1 -1
  207. package/dist/index.cjs526.js +1 -1
  208. package/dist/index.cjs529.js +1 -1
  209. package/dist/index.cjs532.js +1 -1
  210. package/dist/index.cjs537.js +1 -1
  211. package/dist/index.cjs539.js +1 -1
  212. package/dist/index.cjs540.js +6 -0
  213. package/dist/index.cjs540.js.map +1 -0
  214. package/dist/index.cjs541.js +1 -1
  215. package/dist/index.cjs541.js.map +1 -1
  216. package/dist/index.cjs542.js +1 -1
  217. package/dist/index.cjs542.js.map +1 -1
  218. package/dist/index.cjs543.js +2 -0
  219. package/dist/index.cjs543.js.map +1 -0
  220. package/dist/index.cjs544.js +1 -5
  221. package/dist/index.cjs544.js.map +1 -1
  222. package/dist/index.cjs545.js +1 -1
  223. package/dist/index.cjs545.js.map +1 -1
  224. package/dist/index.cjs546.js +1 -1
  225. package/dist/index.cjs546.js.map +1 -1
  226. package/dist/index.cjs547.js +1 -1
  227. package/dist/index.cjs547.js.map +1 -1
  228. package/dist/index.cjs548.js +1 -1
  229. package/dist/index.cjs548.js.map +1 -1
  230. package/dist/index.cjs549.js +1 -1
  231. package/dist/index.cjs549.js.map +1 -1
  232. package/dist/index.cjs550.js +1 -1
  233. package/dist/index.cjs550.js.map +1 -1
  234. package/dist/index.cjs551.js +1 -1
  235. package/dist/index.cjs551.js.map +1 -1
  236. package/dist/index.cjs552.js +1 -1
  237. package/dist/index.cjs552.js.map +1 -1
  238. package/dist/index.cjs553.js +1 -1
  239. package/dist/index.cjs553.js.map +1 -1
  240. package/dist/index.cjs554.js +1 -1
  241. package/dist/index.cjs554.js.map +1 -1
  242. package/dist/index.cjs555.js +1 -1
  243. package/dist/index.cjs555.js.map +1 -1
  244. package/dist/index.cjs556.js +1 -1
  245. package/dist/index.cjs556.js.map +1 -1
  246. package/dist/index.cjs557.js +2 -0
  247. package/dist/index.cjs557.js.map +1 -0
  248. package/dist/index.cjs6.js +1 -1
  249. package/dist/index.cjs62.js +1 -1
  250. package/dist/index.cjs65.js +1 -1
  251. package/dist/index.cjs65.js.map +1 -1
  252. package/dist/index.cjs7.js +1 -1
  253. package/dist/index.cjs8.js +1 -1
  254. package/dist/index.es154.js +1 -1
  255. package/dist/index.es155.js +1 -1
  256. package/dist/index.es156.js +1 -1
  257. package/dist/index.es157.js +1 -1
  258. package/dist/index.es158.js +1 -1
  259. package/dist/index.es159.js +1 -1
  260. package/dist/index.es160.js +1 -1
  261. package/dist/index.es161.js +1 -1
  262. package/dist/index.es162.js +1 -1
  263. package/dist/index.es163.js +1 -1
  264. package/dist/index.es164.js +1 -1
  265. package/dist/index.es165.js +1 -1
  266. package/dist/index.es166.js +1 -1
  267. package/dist/index.es167.js +1 -1
  268. package/dist/index.es168.js +1 -1
  269. package/dist/index.es169.js +1 -1
  270. package/dist/index.es170.js +1 -1
  271. package/dist/index.es171.js +1 -1
  272. package/dist/index.es172.js +1 -1
  273. package/dist/index.es173.js +1 -1
  274. package/dist/index.es174.js +1 -1
  275. package/dist/index.es175.js +1 -1
  276. package/dist/index.es176.js +1 -1
  277. package/dist/index.es180.js +1 -1
  278. package/dist/index.es181.js +1 -1
  279. package/dist/index.es182.js +1 -1
  280. package/dist/index.es184.js +1 -1
  281. package/dist/index.es185.js +1 -1
  282. package/dist/index.es186.js +1 -1
  283. package/dist/index.es187.js +1 -1
  284. package/dist/index.es188.js +1 -1
  285. package/dist/index.es189.js +1 -1
  286. package/dist/index.es190.js +1 -1
  287. package/dist/index.es191.js +1 -1
  288. package/dist/index.es192.js +1 -1
  289. package/dist/index.es194.js +1 -1
  290. package/dist/index.es195.js +1 -1
  291. package/dist/index.es196.js +1 -1
  292. package/dist/index.es197.js +1 -1
  293. package/dist/index.es198.js +1 -1
  294. package/dist/index.es199.js +1 -1
  295. package/dist/index.es200.js +1 -1
  296. package/dist/index.es203.js +1 -1
  297. package/dist/index.es204.js +1 -1
  298. package/dist/index.es205.js +1 -1
  299. package/dist/index.es206.js +1 -1
  300. package/dist/index.es207.js +1 -1
  301. package/dist/index.es208.js +1 -1
  302. package/dist/index.es209.js +1 -1
  303. package/dist/index.es210.js +1 -1
  304. package/dist/index.es216.js +1 -1
  305. package/dist/index.es218.js +1 -1
  306. package/dist/index.es219.js +1 -1
  307. package/dist/index.es22.js +1 -1
  308. package/dist/index.es222.js +27 -2
  309. package/dist/index.es222.js.map +1 -1
  310. package/dist/index.es224.js +5 -0
  311. package/dist/index.es224.js.map +1 -0
  312. package/dist/index.es232.js +1 -1
  313. package/dist/index.es241.js +7 -7
  314. package/dist/index.es244.js +1 -1
  315. package/dist/index.es254.js +8 -8
  316. package/dist/index.es26.js +1 -1
  317. package/dist/index.es265.js +1 -1
  318. package/dist/index.es270.js +1 -1
  319. package/dist/index.es272.js +14 -14
  320. package/dist/index.es279.js +1 -1
  321. package/dist/index.es280.js +1 -1
  322. package/dist/index.es284.js +1 -1
  323. package/dist/index.es293.js +1 -1
  324. package/dist/index.es295.js +1 -1
  325. package/dist/index.es301.js +1 -1
  326. package/dist/index.es302.js +1 -1
  327. package/dist/index.es303.js +7 -7
  328. package/dist/index.es345.js +4 -4
  329. package/dist/index.es351.js +1 -1
  330. package/dist/index.es379.js +3 -3
  331. package/dist/index.es380.js +2 -2
  332. package/dist/index.es381.js +3 -3
  333. package/dist/index.es391.js +1 -1
  334. package/dist/index.es4.js +1 -1
  335. package/dist/index.es420.js +3 -3
  336. package/dist/index.es438.js +2037 -0
  337. package/dist/index.es438.js.map +1 -0
  338. package/dist/index.es439.js +63 -0
  339. package/dist/index.es439.js.map +1 -0
  340. package/dist/index.es440.js +175 -2019
  341. package/dist/index.es440.js.map +1 -1
  342. package/dist/index.es441.js +9 -59
  343. package/dist/index.es441.js.map +1 -1
  344. package/dist/index.es442.js +173 -179
  345. package/dist/index.es442.js.map +1 -1
  346. package/dist/index.es443.js +3 -14
  347. package/dist/index.es443.js.map +1 -1
  348. package/dist/index.es444.js +132 -6
  349. package/dist/index.es444.js.map +1 -1
  350. package/dist/index.es445.js +5 -25
  351. package/dist/index.es445.js.map +1 -1
  352. package/dist/index.es446.js +23 -64
  353. package/dist/index.es446.js.map +1 -1
  354. package/dist/index.es447.js +64 -48
  355. package/dist/index.es447.js.map +1 -1
  356. package/dist/index.es448.js +51 -33
  357. package/dist/index.es448.js.map +1 -1
  358. package/dist/index.es449.js +32 -620
  359. package/dist/index.es449.js.map +1 -1
  360. package/dist/index.es450.js +621 -10
  361. package/dist/index.es450.js.map +1 -1
  362. package/dist/index.es451.js +10 -5
  363. package/dist/index.es451.js.map +1 -1
  364. package/dist/index.es452.js +5 -24
  365. package/dist/index.es452.js.map +1 -1
  366. package/dist/index.es453.js +23 -67
  367. package/dist/index.es453.js.map +1 -1
  368. package/dist/index.es454.js +67 -8
  369. package/dist/index.es454.js.map +1 -1
  370. package/dist/index.es455.js +4 -184
  371. package/dist/index.es455.js.map +1 -1
  372. package/dist/index.es456.js +56 -3
  373. package/dist/index.es456.js.map +1 -1
  374. package/dist/index.es457.js +43 -130
  375. package/dist/index.es457.js.map +1 -1
  376. package/dist/index.es458.js +13 -3
  377. package/dist/index.es458.js.map +1 -1
  378. package/dist/index.es459.js +120 -52
  379. package/dist/index.es459.js.map +1 -1
  380. package/dist/index.es460.js +14 -45
  381. package/dist/index.es460.js.map +1 -1
  382. package/dist/index.es461.js +134 -13
  383. package/dist/index.es461.js.map +1 -1
  384. package/dist/index.es462.js +207 -113
  385. package/dist/index.es462.js.map +1 -1
  386. package/dist/index.es463.js +13 -14
  387. package/dist/index.es463.js.map +1 -1
  388. package/dist/index.es464.js +173 -127
  389. package/dist/index.es464.js.map +1 -1
  390. package/dist/index.es465.js +10 -218
  391. package/dist/index.es465.js.map +1 -1
  392. package/dist/index.es466.js +50 -14
  393. package/dist/index.es466.js.map +1 -1
  394. package/dist/index.es467.js +9 -181
  395. package/dist/index.es467.js.map +1 -1
  396. package/dist/index.es469.js +12 -50
  397. package/dist/index.es469.js.map +1 -1
  398. package/dist/index.es470.js +205 -8
  399. package/dist/index.es470.js.map +1 -1
  400. package/dist/{index.es482.js → index.es471.js} +2 -2
  401. package/dist/{index.es482.js.map → index.es471.js.map} +1 -1
  402. package/dist/{index.es483.js → index.es472.js} +4 -4
  403. package/dist/{index.es483.js.map → index.es472.js.map} +1 -1
  404. package/dist/index.es473.js +28 -0
  405. package/dist/index.es473.js.map +1 -0
  406. package/dist/index.es474.js +32 -0
  407. package/dist/index.es474.js.map +1 -0
  408. package/dist/index.es475.js +8 -0
  409. package/dist/index.es475.js.map +1 -0
  410. package/dist/index.es479.js +18 -0
  411. package/dist/index.es479.js.map +1 -0
  412. package/dist/index.es486.js +8 -0
  413. package/dist/index.es486.js.map +1 -0
  414. package/dist/index.es487.js +3 -25
  415. package/dist/index.es487.js.map +1 -1
  416. package/dist/index.es488.js +24 -29
  417. package/dist/index.es488.js.map +1 -1
  418. package/dist/index.es489.js +110 -5
  419. package/dist/index.es489.js.map +1 -1
  420. package/dist/{index.es497.js → index.es490.js} +2 -2
  421. package/dist/{index.es497.js.map → index.es490.js.map} +1 -1
  422. package/dist/index.es493.js +525 -5
  423. package/dist/index.es493.js.map +1 -1
  424. package/dist/index.es494.js +128 -3
  425. package/dist/index.es494.js.map +1 -1
  426. package/dist/index.es495.js +132 -22
  427. package/dist/index.es495.js.map +1 -1
  428. package/dist/index.es5.js +1 -1
  429. package/dist/index.es502.js +72 -0
  430. package/dist/index.es502.js.map +1 -0
  431. package/dist/index.es503.js +8 -64
  432. package/dist/index.es503.js.map +1 -1
  433. package/dist/index.es504.js +13 -68
  434. package/dist/index.es504.js.map +1 -1
  435. package/dist/index.es505.js +65 -8
  436. package/dist/index.es505.js.map +1 -1
  437. package/dist/index.es506.js +64 -13
  438. package/dist/index.es506.js.map +1 -1
  439. package/dist/index.es507.js +4 -66
  440. package/dist/index.es507.js.map +1 -1
  441. package/dist/index.es508.js +22 -3
  442. package/dist/index.es508.js.map +1 -1
  443. package/dist/index.es510.js +21 -11
  444. package/dist/index.es510.js.map +1 -1
  445. package/dist/index.es511.js +11 -26
  446. package/dist/index.es511.js.map +1 -1
  447. package/dist/index.es512.js +27 -4
  448. package/dist/index.es512.js.map +1 -1
  449. package/dist/index.es513.js +4 -22
  450. package/dist/index.es513.js.map +1 -1
  451. package/dist/index.es514.js +1 -1
  452. package/dist/index.es515.js +3 -3
  453. package/dist/index.es517.js +1 -1
  454. package/dist/index.es518.js +3 -3
  455. package/dist/index.es520.js +1 -1
  456. package/dist/index.es521.js +2 -2
  457. package/dist/index.es523.js +3 -3
  458. package/dist/index.es524.js +2 -2
  459. package/dist/index.es525.js +15 -15
  460. package/dist/index.es526.js +2 -2
  461. package/dist/index.es529.js +3 -3
  462. package/dist/index.es532.js +9 -9
  463. package/dist/index.es537.js +8 -8
  464. package/dist/index.es539.js +1 -1
  465. package/dist/index.es540.js +43 -0
  466. package/dist/index.es540.js.map +1 -0
  467. package/dist/index.es541.js +2 -74
  468. package/dist/index.es541.js.map +1 -1
  469. package/dist/index.es542.js +5 -2
  470. package/dist/index.es542.js.map +1 -1
  471. package/dist/index.es543.js +5 -0
  472. package/dist/index.es543.js.map +1 -0
  473. package/dist/index.es544.js +2 -40
  474. package/dist/index.es544.js.map +1 -1
  475. package/dist/index.es545.js +2 -2
  476. package/dist/index.es545.js.map +1 -1
  477. package/dist/index.es546.js +6 -5
  478. package/dist/index.es546.js.map +1 -1
  479. package/dist/index.es547.js +16 -6
  480. package/dist/index.es547.js.map +1 -1
  481. package/dist/index.es548.js +2 -16
  482. package/dist/index.es548.js.map +1 -1
  483. package/dist/index.es549.js +2 -2
  484. package/dist/index.es549.js.map +1 -1
  485. package/dist/index.es550.js +3 -2
  486. package/dist/index.es550.js.map +1 -1
  487. package/dist/index.es551.js +2 -2
  488. package/dist/index.es551.js.map +1 -1
  489. package/dist/index.es552.js +4 -2
  490. package/dist/index.es552.js.map +1 -1
  491. package/dist/index.es553.js +4 -2
  492. package/dist/index.es553.js.map +1 -1
  493. package/dist/index.es554.js +3 -3
  494. package/dist/index.es554.js.map +1 -1
  495. package/dist/index.es555.js +2 -2
  496. package/dist/index.es555.js.map +1 -1
  497. package/dist/index.es556.js +73 -3
  498. package/dist/index.es556.js.map +1 -1
  499. package/dist/index.es557.js +5 -0
  500. package/dist/index.es557.js.map +1 -0
  501. package/dist/index.es6.js +1 -1
  502. package/dist/index.es62.js +1 -1
  503. package/dist/index.es65.js +41 -50
  504. package/dist/index.es65.js.map +1 -1
  505. package/dist/index.es7.js +2 -2
  506. package/dist/index.es8.js +2 -2
  507. package/package.json +1 -1
  508. package/dist/index.cjs223.js +0 -2
  509. package/dist/index.cjs223.js.map +0 -1
  510. package/dist/index.cjs468.js +0 -2
  511. package/dist/index.cjs468.js.map +0 -1
  512. package/dist/index.cjs480.js +0 -2
  513. package/dist/index.cjs480.js.map +0 -1
  514. package/dist/index.cjs481.js +0 -2
  515. package/dist/index.cjs481.js.map +0 -1
  516. package/dist/index.cjs496.js +0 -5
  517. package/dist/index.cjs496.js.map +0 -1
  518. package/dist/index.cjs498.js +0 -2
  519. package/dist/index.cjs498.js.map +0 -1
  520. package/dist/index.cjs499.js +0 -2
  521. package/dist/index.cjs499.js.map +0 -1
  522. package/dist/index.cjs500.js +0 -2
  523. package/dist/index.cjs500.js.map +0 -1
  524. package/dist/index.cjs509.js +0 -2
  525. package/dist/index.cjs509.js.map +0 -1
  526. package/dist/index.cjs560.js +0 -2
  527. package/dist/index.cjs560.js.map +0 -1
  528. package/dist/index.cjs561.js +0 -2
  529. package/dist/index.cjs561.js.map +0 -1
  530. package/dist/index.cjs562.js +0 -2
  531. package/dist/index.cjs562.js.map +0 -1
  532. package/dist/index.es223.js +0 -30
  533. package/dist/index.es223.js.map +0 -1
  534. package/dist/index.es468.js +0 -14
  535. package/dist/index.es468.js.map +0 -1
  536. package/dist/index.es480.js +0 -15
  537. package/dist/index.es480.js.map +0 -1
  538. package/dist/index.es481.js +0 -209
  539. package/dist/index.es481.js.map +0 -1
  540. package/dist/index.es496.js +0 -113
  541. package/dist/index.es496.js.map +0 -1
  542. package/dist/index.es498.js +0 -528
  543. package/dist/index.es498.js.map +0 -1
  544. package/dist/index.es499.js +0 -131
  545. package/dist/index.es499.js.map +0 -1
  546. package/dist/index.es500.js +0 -137
  547. package/dist/index.es500.js.map +0 -1
  548. package/dist/index.es509.js +0 -26
  549. package/dist/index.es509.js.map +0 -1
  550. package/dist/index.es560.js +0 -7
  551. package/dist/index.es560.js.map +0 -1
  552. package/dist/index.es561.js +0 -6
  553. package/dist/index.es561.js.map +0 -1
  554. package/dist/index.es562.js +0 -5
  555. package/dist/index.es562.js.map +0 -1
  556. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
  557. /package/dist/components/ui/{DoctorModal/DoctorModalFooter/DoctorModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
@@ -1,5 +1,7 @@
1
- const o = { asChild: { type: "boolean" } };
1
+ function e(r, t) {
2
+ return Object.prototype.hasOwnProperty.call(r, t);
3
+ }
2
4
  export {
3
- o as asChildPropDef
5
+ e as hasOwnProperty
4
6
  };
5
7
  //# sourceMappingURL=index.es552.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es552.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.js"],"sourcesContent":["const o={asChild:{type:\"boolean\"}};export{o as asChildPropDef};\n//# sourceMappingURL=as-child.prop.js.map\n"],"names":[],"mappings":"AAAK,MAAC,IAAE,EAAC,SAAQ,EAAC,MAAK,UAAS,EAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es552.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js"],"sourcesContent":["function e(n,r){return Object.prototype.hasOwnProperty.call(n,r)}export{e as hasOwnProperty};\n//# sourceMappingURL=has-own-property.js.map\n"],"names":["n","r"],"mappings":"AAAA,SAAS,EAAEA,GAAEC,GAAE;AAAC,SAAO,OAAO,UAAU,eAAe,KAAKD,GAAEC,CAAC;AAAC;","x_google_ignoreList":[0]}
@@ -1,5 +1,7 @@
1
- const e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], s = { gap: { type: "enum | string", className: "rt-r-gap", customProperties: ["--gap"], values: e, responsive: !0 }, gapX: { type: "enum | string", className: "rt-r-cg", customProperties: ["--column-gap"], values: e, responsive: !0 }, gapY: { type: "enum | string", className: "rt-r-rg", customProperties: ["--row-gap"], values: e, responsive: !0 } };
1
+ function m(t, [a, n]) {
2
+ return Math.min(n, Math.max(a, t));
3
+ }
2
4
  export {
3
- s as gapPropDefs
5
+ m as clamp
4
6
  };
5
7
  //# sourceMappingURL=index.es553.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es553.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/gap.props.js"],"sourcesContent":["const e=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\"],p={gap:{type:\"enum | string\",className:\"rt-r-gap\",customProperties:[\"--gap\"],values:e,responsive:!0},gapX:{type:\"enum | string\",className:\"rt-r-cg\",customProperties:[\"--column-gap\"],values:e,responsive:!0},gapY:{type:\"enum | string\",className:\"rt-r-rg\",customProperties:[\"--row-gap\"],values:e,responsive:!0}};export{p as gapPropDefs};\n//# sourceMappingURL=gap.props.js.map\n"],"names":["p"],"mappings":"AAAK,MAAC,IAAE,CAAC,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,KAAI,GAAG,GAAEA,IAAE,EAAC,KAAI,EAAC,MAAK,iBAAgB,WAAU,YAAW,kBAAiB,CAAC,OAAO,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,MAAK,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,cAAc,GAAE,QAAO,GAAE,YAAW,GAAE,GAAE,MAAK,EAAC,MAAK,iBAAgB,WAAU,WAAU,kBAAiB,CAAC,WAAW,GAAE,QAAO,GAAE,YAAW,GAAE,EAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es553.js","sources":["../node_modules/@radix-ui/number/dist/index.mjs"],"sourcesContent":["// packages/core/number/src/number.ts\nfunction clamp(value, [min, max]) {\n return Math.min(max, Math.max(min, value));\n}\nexport {\n clamp\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["clamp","value","min","max"],"mappings":"AACA,SAASA,EAAMC,GAAO,CAACC,GAAKC,CAAG,GAAG;AAChC,SAAO,KAAK,IAAIA,GAAK,KAAK,IAAID,GAAKD,CAAK,CAAC;AAC3C;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
- const e = ["none", "small", "medium", "large", "full"], a = { radius: { type: "enum", values: e, default: void 0 } };
1
+ const e = ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"], o = { color: { type: "enum", values: e, default: "" } };
2
2
  export {
3
- e as radii,
4
- a as radiusPropDef
3
+ o as accentColorPropDef,
4
+ e as accentColors
5
5
  };
6
6
  //# sourceMappingURL=index.es554.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es554.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/radius.prop.js"],"sourcesContent":["const e=[\"none\",\"small\",\"medium\",\"large\",\"full\"],r={radius:{type:\"enum\",values:e,default:void 0}};export{e as radii,r as radiusPropDef};\n//# sourceMappingURL=radius.prop.js.map\n"],"names":["r"],"mappings":"AAAK,MAAC,IAAE,CAAC,QAAO,SAAQ,UAAS,SAAQ,MAAM,GAAEA,IAAE,EAAC,QAAO,EAAC,MAAK,QAAO,QAAO,GAAE,SAAQ,OAAM,EAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es554.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/color.prop.js"],"sourcesContent":["const o=[\"gray\",\"gold\",\"bronze\",\"brown\",\"yellow\",\"amber\",\"orange\",\"tomato\",\"red\",\"ruby\",\"crimson\",\"pink\",\"plum\",\"purple\",\"violet\",\"iris\",\"indigo\",\"blue\",\"cyan\",\"teal\",\"jade\",\"green\",\"grass\",\"lime\",\"mint\",\"sky\"],e=[\"auto\",\"gray\",\"mauve\",\"slate\",\"sage\",\"olive\",\"sand\"],r={color:{type:\"enum\",values:o,default:void 0}},s={color:{type:\"enum\",values:o,default:\"\"}};export{s as accentColorPropDef,o as accentColors,r as colorPropDef,e as grayColors};\n//# sourceMappingURL=color.prop.js.map\n"],"names":["o","s"],"mappings":"AAAK,MAACA,IAAE,CAAC,QAAO,QAAO,UAAS,SAAQ,UAAS,SAAQ,UAAS,UAAS,OAAM,QAAO,WAAU,QAAO,QAAO,UAAS,UAAS,QAAO,UAAS,QAAO,QAAO,QAAO,QAAO,SAAQ,SAAQ,QAAO,QAAO,KAAK,GAA0GC,IAAE,EAAC,OAAM,EAAC,MAAK,QAAO,QAAOD,GAAE,SAAQ,GAAE,EAAC;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
- const s = ["initial", "xs", "sm", "md", "lg", "xl"];
1
+ const t = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } };
2
2
  export {
3
- s as breakpoints
3
+ t as highContrastPropDef
4
4
  };
5
5
  //# sourceMappingURL=index.es555.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es555.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/prop-def.js"],"sourcesContent":["const e=[\"initial\",\"xs\",\"sm\",\"md\",\"lg\",\"xl\"];export{e as breakpoints};\n//# sourceMappingURL=prop-def.js.map\n"],"names":["e"],"mappings":"AAAK,MAACA,IAAE,CAAC,WAAU,MAAK,MAAK,MAAK,MAAK,IAAI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es555.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.js"],"sourcesContent":["const o={highContrast:{type:\"boolean\",className:\"rt-high-contrast\",default:void 0}};export{o as highContrastPropDef};\n//# sourceMappingURL=high-contrast.prop.js.map\n"],"names":["o"],"mappings":"AAAK,MAACA,IAAE,EAAC,cAAa,EAAC,MAAK,WAAU,WAAU,oBAAmB,SAAQ,OAAM,EAAC;","x_google_ignoreList":[0]}
@@ -1,7 +1,77 @@
1
- function e(r, t) {
2
- return Object.prototype.hasOwnProperty.call(r, t);
1
+ import { commonjsGlobal as u } from "./index.es433.js";
2
+ import { __module as f } from "./index.es557.js";
3
+ var j = f.exports, E;
4
+ function S() {
5
+ return E ? f.exports : (E = 1, (function(R, L) {
6
+ (function(v, i) {
7
+ i();
8
+ })(j, function() {
9
+ function v(e, t) {
10
+ return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
11
+ }
12
+ function i(e, t, r) {
13
+ var n = new XMLHttpRequest();
14
+ n.open("GET", e), n.responseType = "blob", n.onload = function() {
15
+ l(n.response, t, r);
16
+ }, n.onerror = function() {
17
+ console.error("could not download file");
18
+ }, n.send();
19
+ }
20
+ function m(e) {
21
+ var t = new XMLHttpRequest();
22
+ t.open("HEAD", e, !1);
23
+ try {
24
+ t.send();
25
+ } catch {
26
+ }
27
+ return 200 <= t.status && 299 >= t.status;
28
+ }
29
+ function c(e) {
30
+ try {
31
+ e.dispatchEvent(new MouseEvent("click"));
32
+ } catch {
33
+ var t = document.createEvent("MouseEvents");
34
+ t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
35
+ }
36
+ }
37
+ var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof u == "object" && u.global === u ? u : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), l = a.saveAs || (typeof window != "object" || window !== a ? function() {
38
+ } : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
39
+ var n = a.URL || a.webkitURL, o = document.createElement("a");
40
+ t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? c(o) : m(o.href) ? i(e, t, r) : c(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
41
+ n.revokeObjectURL(o.href);
42
+ }, 4e4), setTimeout(function() {
43
+ c(o);
44
+ }, 0));
45
+ } : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
46
+ if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(v(e, r), t);
47
+ else if (m(e)) i(e, t, r);
48
+ else {
49
+ var n = document.createElement("a");
50
+ n.href = e, n.target = "_blank", setTimeout(function() {
51
+ c(n);
52
+ });
53
+ }
54
+ } : function(e, t, r, n) {
55
+ if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
56
+ var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, y = /CriOS\/[\d]+/.test(navigator.userAgent);
57
+ if ((y || o && b || w) && typeof FileReader < "u") {
58
+ var d = new FileReader();
59
+ d.onloadend = function() {
60
+ var s = d.result;
61
+ s = y ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = s : location = s, n = null;
62
+ }, d.readAsDataURL(e);
63
+ } else {
64
+ var h = a.URL || a.webkitURL, p = h.createObjectURL(e);
65
+ n ? n.location = p : location.href = p, n = null, setTimeout(function() {
66
+ h.revokeObjectURL(p);
67
+ }, 4e4);
68
+ }
69
+ });
70
+ a.saveAs = l.saveAs = l, R.exports = l;
71
+ });
72
+ })(f), f.exports);
3
73
  }
4
74
  export {
5
- e as hasOwnProperty
75
+ S as __require
6
76
  };
7
77
  //# sourceMappingURL=index.es556.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es556.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js"],"sourcesContent":["function e(n,r){return Object.prototype.hasOwnProperty.call(n,r)}export{e as hasOwnProperty};\n//# sourceMappingURL=has-own-property.js.map\n"],"names":["n","r"],"mappings":"AAAA,SAAS,EAAEA,GAAEC,GAAE;AAAC,SAAO,OAAO,UAAU,eAAe,KAAKD,GAAEC,CAAC;AAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es556.js","sources":["../node_modules/file-saver/dist/FileSaver.min.js"],"sourcesContent":["(function(a,b){if(\"function\"==typeof define&&define.amd)define([],b);else if(\"undefined\"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){\"use strict\";function b(a,b){return\"undefined\"==typeof b?b={autoBom:!1}:\"object\"!=typeof b&&(console.warn(\"Deprecated: Expected third argument to be a object\"),b={autoBom:!b}),b.autoBom&&/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(a.type)?new Blob([\"\\uFEFF\",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open(\"GET\",a),d.responseType=\"blob\",d.onload=function(){g(d.response,b,c)},d.onerror=function(){console.error(\"could not download file\")},d.send()}function d(a){var b=new XMLHttpRequest;b.open(\"HEAD\",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent(\"click\"))}catch(c){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"click\",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f=\"object\"==typeof window&&window.window===window?window:\"object\"==typeof self&&self.self===self?self:\"object\"==typeof global&&global.global===global?global:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||(\"object\"!=typeof window||window!==f?function(){}:\"download\"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement(\"a\");g=g||b.name||\"download\",j.download=g,j.rel=\"noopener\",\"string\"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target=\"_blank\")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:\"msSaveOrOpenBlob\"in navigator?function(f,g,h){if(g=g||f.name||\"download\",\"string\"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement(\"a\");i.href=f,i.target=\"_blank\",setTimeout(function(){e(i)})}}:function(b,d,e,g){if(g=g||open(\"\",\"_blank\"),g&&(g.document.title=g.document.body.innerText=\"downloading...\"),\"string\"==typeof b)return c(b,d,e);var h=\"application/octet-stream\"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\\/[\\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&\"undefined\"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,\"data:attachment/file;\"),g?g.location.href=a:location=a,g=null},k.readAsDataURL(b)}else{var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m)},4E4)}});f.saveAs=g.saveAs=g,\"undefined\"!=typeof module&&(module.exports=g)});\n\n//# sourceMappingURL=FileSaver.min.js.map"],"names":["a","b","this","c","d","g","e","f","global","h","i","j","k","l","m","module"],"mappings":";;;;;AAAA,KAAC,SAASA,GAAEC,GAAE;AAA2F,MAAAA,EAAC;AAAA,IAA6C,GAAGC,GAAK,WAAU;AAAc,eAASD,EAAED,GAAEC,GAAE;AAAC,eAAmB,OAAOA,IAApB,MAAsBA,IAAE,EAAC,SAAQ,GAAE,IAAY,OAAOA,KAAjB,aAAqB,QAAQ,KAAK,oDAAoD,GAAEA,IAAE,EAAC,SAAQ,CAACA,EAAC,IAAGA,EAAE,WAAS,6EAA6E,KAAKD,EAAE,IAAI,IAAE,IAAI,KAAK,CAAC,UAASA,CAAC,GAAE,EAAC,MAAKA,EAAE,KAAI,CAAC,IAAEA;AAAA,MAAC;AAAC,eAASG,EAAEH,GAAEC,GAAEE,GAAE;AAAC,YAAIC,IAAE,IAAI;AAAe,QAAAA,EAAE,KAAK,OAAMJ,CAAC,GAAEI,EAAE,eAAa,QAAOA,EAAE,SAAO,WAAU;AAAC,UAAAC,EAAED,EAAE,UAASH,GAAEE,C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WAAU;AAAC,gBAAIZ,IAAEY,EAAE;AAAO,YAAAZ,IAAEW,IAAEX,IAAEA,EAAE,QAAQ,gBAAe,uBAAuB,GAAEK,IAAEA,EAAE,SAAS,OAAKL,IAAE,WAASA,GAAEK,IAAE;AAAA,UAAI,GAAEO,EAAE,cAAcX,CAAC;AAAA,QAAC,OAAK;AAAC,cAAIY,IAAEN,EAAE,OAAKA,EAAE,WAAUO,IAAED,EAAE,gBAAgBZ,CAAC;AAAE,UAAAI,IAAEA,EAAE,WAASS,IAAE,SAAS,OAAKA,GAAET,IAAE,MAAK,WAAW,WAAU;AAAC,YAAAQ,EAAE,gBAAgBC,CAAC;AAAA,UAAC,GAAE,GAAG;AAAA,QAAC;AAAA,MAAC;AAAG,MAAAP,EAAE,SAAOF,EAAE,SAAOA,GAA+BU,EAAA,UAAeV;AAAA,IAAE,CAAC;AAAA;;","x_google_ignoreList":[0]}
@@ -0,0 +1,5 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
5
+ //# sourceMappingURL=index.es557.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es557.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/dist/index.es6.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as g } from "./index.es220.js";
2
2
  import { useMemo as s } from "react";
3
3
  import { clsx as x } from "./index.es221.js";
4
- import { createSpacingClasses as f } from "./index.es223.js";
4
+ import { createSpacingClasses as f } from "./index.es222.js";
5
5
  const v = ({
6
6
  as: e,
7
7
  className: i,
@@ -1,5 +1,5 @@
1
1
  import { j as s } from "./index.es220.js";
2
- import { createColorClasses as l } from "./index.es222.js";
2
+ import { createColorClasses as l } from "./index.es224.js";
3
3
  import { clsx as x } from "./index.es221.js";
4
4
  const p = ({
5
5
  initials: e,
@@ -1,86 +1,77 @@
1
1
  import { j as t } from "./index.es220.js";
2
- import { clsx as u } from "./index.es221.js";
2
+ import { clsx as h } from "./index.es221.js";
3
3
  import F, { useMemo as T } from "react";
4
- import { InfoPopup as C } from "./index.es73.js";
4
+ import { InfoPopup as u } from "./index.es73.js";
5
5
  import "./index.es314.js";
6
6
  import { Favourite as N } from "./index.es182.js";
7
- import { Row as m } from "./index.es7.js";
7
+ import { Row as j } from "./index.es7.js";
8
8
  const z = ({
9
- iconColor: c,
10
- icon: i = /* @__PURE__ */ t.jsx(N, { color: c }),
11
- noIcon: l = !1,
12
- textLabel: h = "Default text",
9
+ iconColor: a,
10
+ icon: c = /* @__PURE__ */ t.jsx(N, { color: a }),
11
+ noIcon: m = !1,
12
+ textLabel: k = "Default text",
13
13
  handleAction: d = () => {
14
14
  },
15
15
  handleIconAction: f = () => {
16
16
  },
17
- classNameComponent: O = "fs-7",
18
- classNameText: R = "",
19
- disablePointer: x = !1,
20
- iconPosition: r = "left",
17
+ classNameComponent: C = "fs-7",
18
+ classNameText: O = "",
19
+ disablePointer: i = !1,
20
+ iconPosition: s = "left",
21
21
  popupInfo: e,
22
- positionPopUp: n = "right",
23
- justifyContent: v = "center",
24
- alignItems: w = "center",
25
- children: k = void 0
22
+ positionPopUp: g = "right",
23
+ justifyContent: R = "center",
24
+ alignItems: v = "center",
25
+ children: w = void 0
26
26
  }) => {
27
- const j = (s) => {
28
- !x && f && (s.stopPropagation(), e && g(!a), f());
29
- }, [a, g] = F.useState(!1), B = T(() => i || /* @__PURE__ */ t.jsx(N, { color: c }), [c, i]);
27
+ const n = (l) => {
28
+ !i && f && (l.stopPropagation(), e && x(!r), f());
29
+ }, [r, x] = F.useState(!1), B = T(() => c || /* @__PURE__ */ t.jsx(N, { color: a }), [a, c]);
30
30
  return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs(
31
- m,
31
+ j,
32
32
  {
33
- justifyContent: v,
34
- alignItems: w,
33
+ justifyContent: R,
34
+ alignItems: v,
35
35
  gap: "x8",
36
- className: u(
37
- x ? "text-muted" : "cursor-pointer text-primary",
38
- O
36
+ className: h(
37
+ i ? "text-muted" : "cursor-pointer text-primary",
38
+ C
39
39
  ),
40
- onClick: () => d && !x && d(),
40
+ onClick: () => d && !i && d(),
41
41
  children: [
42
- !l && (r === "left" || r == null) && !e ? /* @__PURE__ */ t.jsx(m, { alignItems: "center", onClick: (s) => j(s), children: B }) : e && !l && (r === "left" || r == null) && /* @__PURE__ */ t.jsx(
43
- C,
42
+ !m && (s === "left" || s == null) && !e ? /* @__PURE__ */ t.jsx(j, { alignItems: "center", onClick: (l) => n(l), children: B }) : e && !m && (s === "left" || s == null) && /* @__PURE__ */ t.jsx(
43
+ u,
44
44
  {
45
45
  title: e.title,
46
46
  description: e.description,
47
- isOpen: a,
48
- positionPopUp: n,
49
- onClickCloseBtn: () => g(!a),
47
+ isOpen: r,
48
+ positionPopUp: g,
49
+ onClickCloseBtn: () => x(!r),
50
50
  className: e.className
51
51
  }
52
52
  ),
53
- /* @__PURE__ */ t.jsx("p", { className: u("fw-bold", R), children: h }),
54
- !l && r === "right" && !e ? /* @__PURE__ */ t.jsxs(
55
- m,
53
+ /* @__PURE__ */ t.jsx("p", { className: h("fw-bold", O), children: k }),
54
+ !m && s === "right" && !e ? /* @__PURE__ */ t.jsxs(
55
+ j,
56
56
  {
57
57
  gap: "x24",
58
58
  alignItems: "center",
59
- onClick: (s) => j(s),
59
+ onClick: (l) => n(l),
60
60
  children: [
61
- k,
62
- i
61
+ w,
62
+ c
63
63
  ]
64
64
  }
65
- ) : e && !l && r === "right" && /* @__PURE__ */ t.jsx(
66
- C,
65
+ ) : e && !m && s === "right" && /* @__PURE__ */ t.jsx(
66
+ u,
67
67
  {
68
68
  title: e.title,
69
69
  description: e.description,
70
- isOpen: a,
71
- positionPopUp: n,
72
- onClickCloseBtn: () => g(!a),
70
+ isOpen: r,
71
+ positionPopUp: g,
72
+ onClickCloseBtn: () => x(!r),
73
73
  className: e.className
74
74
  }
75
- ),
76
- l && /* @__PURE__ */ t.jsx(
77
- m,
78
- {
79
- gap: "x24",
80
- alignItems: "center",
81
- onClick: (s) => j(s),
82
- children: k
83
- }
84
75
  )
85
76
  ]
86
77
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.es65.js","sources":["../src/components/ui/ActionIconText/index.tsx"],"sourcesContent":["import { Favourite } from \"@/icons\";\nimport clsx from \"clsx\";\nimport React, { CSSProperties, useMemo } from \"react\";\nimport { PropsWithChildren, ReactNode } from \"react\";\nimport { InfoPopup, InfoPopupProps } from \"../InfoPopup\";\nimport \"./ActionIconText.scss\";\nimport { ColorKeys } from \"@theme/colors.ts\";\nimport { Row } from \"@/components\";\n\nexport type ActionIconTextProps = PropsWithChildren<{\n icon?: ReactNode;\n noIcon?: boolean;\n textLabel?: string;\n handleAction?: () => void;\n handleIconAction?: () => void;\n classNameComponent?: string;\n classNameText?: string;\n disablePointer?: boolean;\n iconPosition?: \"left\" | \"right\";\n popupInfo?: InfoPopupProps;\n iconColor?: ColorKeys;\n positionPopUp?: \"right\" | \"top\" | \"bottom\" | \"left\" | undefined;\n justifyContent?: CSSProperties[\"justifyContent\"];\n alignItems?: CSSProperties[\"alignItems\"];\n children?: ReactNode;\n}>;\n\nexport const ActionIconText = ({\n iconColor,\n icon = <Favourite color={iconColor} />,\n noIcon = false,\n textLabel = \"Default text\",\n handleAction = () => {},\n handleIconAction = () => {},\n classNameComponent = \"fs-7\",\n classNameText = \"\",\n disablePointer = false,\n iconPosition = \"left\",\n popupInfo,\n positionPopUp = \"right\",\n justifyContent = \"center\",\n alignItems = \"center\",\n children = undefined,\n}: ActionIconTextProps) => {\n const runIconAction = (e: React.MouseEvent) => {\n if (!disablePointer && handleIconAction) {\n e.stopPropagation();\n if (popupInfo) {\n setPopupIsOpen(!popupIsOpen);\n }\n handleIconAction();\n }\n };\n\n const [popupIsOpen, setPopupIsOpen] = React.useState(false);\n\n const iconToRender = useMemo(() => {\n return icon || <Favourite color={iconColor} />;\n }, [iconColor, icon]);\n\n return (\n <>\n <Row\n justifyContent={justifyContent}\n alignItems={alignItems}\n gap={\"x8\"}\n className={clsx(\n disablePointer ? \"text-muted\" : \"cursor-pointer text-primary\",\n classNameComponent,\n )}\n onClick={() => handleAction && !disablePointer && handleAction()}\n >\n {!noIcon &&\n (iconPosition === \"left\" || iconPosition == null) &&\n !popupInfo ? (\n <Row alignItems={\"center\"} onClick={(e) => runIconAction(e)}>\n {iconToRender}\n </Row>\n ) : (\n popupInfo &&\n !noIcon &&\n (iconPosition === \"left\" || iconPosition == null) && (\n <InfoPopup\n title={popupInfo.title}\n description={popupInfo.description}\n isOpen={popupIsOpen}\n positionPopUp={positionPopUp}\n onClickCloseBtn={() => setPopupIsOpen(!popupIsOpen)}\n className={popupInfo.className}\n ></InfoPopup>\n )\n )}\n <p className={clsx(\"fw-bold\", classNameText)}>{textLabel}</p>\n\n {!noIcon && iconPosition === \"right\" && !popupInfo ? (\n <Row\n gap={\"x24\"}\n alignItems={\"center\"}\n onClick={(e) => runIconAction(e)}\n >\n {children}\n {icon}\n </Row>\n ) : (\n popupInfo &&\n !noIcon &&\n iconPosition === \"right\" && (\n <InfoPopup\n title={popupInfo.title}\n description={popupInfo.description}\n isOpen={popupIsOpen}\n positionPopUp={positionPopUp}\n onClickCloseBtn={() => setPopupIsOpen(!popupIsOpen)}\n className={popupInfo.className}\n ></InfoPopup>\n )\n )}\n {noIcon && (\n <Row\n gap={\"x24\"}\n alignItems={\"center\"}\n onClick={(e) => runIconAction(e)}\n >\n {children}\n </Row>\n )}\n </Row>\n </>\n );\n};\n"],"names":["ActionIconText","iconColor","icon","jsx","Favourite","noIcon","textLabel","handleAction","handleIconAction","classNameComponent","classNameText","disablePointer","iconPosition","popupInfo","positionPopUp","justifyContent","alignItems","children","runIconAction","e","setPopupIsOpen","popupIsOpen","React","iconToRender","useMemo","Fragment","jsxs","Row","clsx","InfoPopup"],"mappings":";;;;;;;AA2BO,MAAMA,IAAiB,CAAC;AAAA,EAC7B,WAAAC;AAAA,EACA,MAAAC,IAAOC,gBAAAA,EAAAA,IAACC,GAAA,EAAU,OAAOH,EAAA,CAA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AAA,UAAC0B;AAAA,UAAA;AAAA,YACC,OAAOhB,EAAU;AAAA,YACjB,aAAaA,EAAU;AAAA,YACvB,QAAQQ;AAAA,YACR,eAAAP;AAAA,YACA,iBAAiB,MAAMM,EAAe,CAACC,CAAW;AAAA,YAClD,WAAWR,EAAU;AAAA,UAAA;AAAA,QAAA;AAAA,8BAI1B,KAAA,EAAE,WAAWe,EAAK,WAAWlB,CAAa,GAAI,UAAAJ,GAAU;AAAA,QAExD,CAACD,KAAUO,MAAiB,WAAW,CAACC,IACvCa,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC,KAAK;AAAA,YACL,YAAY;AAAA,YACZ,SAAS,CAACR,MAAMD,EAAcC,CAAC;AAAA,YAE9B,UAAA;AAAA,cAAAF;AAAA,cACAf;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA,IAGHW,KACA,CAACR,KACDO,MAAiB,WACfT,gBAAAA,EAAAA;AAAAA,UAAC0B;AAAA,UAAA;AAAA,YACC,OAAOhB,EAAU;AAAA,YACjB,aAAaA,EAAU;AAAA,YACvB,QAAQQ;AAAA,YACR,eAAAP;AAAA,YACA,iBAAiB,MAAMM,EAAe,CAACC,CAAW;AAAA,YAClD,WAAWR,EAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAI1BR,KACCF,gBAAAA,EAAAA;AAAAA,UAACwB;AAAA,UAAA;AAAA,YACC,KAAK;AAAA,YACL,YAAY;AAAA,YACZ,SAAS,CAACR,MAAMD,EAAcC,CAAC;AAAA,YAE9B,UAAAF;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA,GAGN;AAEJ;"}
1
+ {"version":3,"file":"index.es65.js","sources":["../src/components/ui/ActionIconText/index.tsx"],"sourcesContent":["import { Favourite } from \"@/icons\";\nimport clsx from \"clsx\";\nimport React, { CSSProperties, useMemo } from \"react\";\nimport { PropsWithChildren, ReactNode } from \"react\";\nimport { InfoPopup, InfoPopupProps } from \"../InfoPopup\";\nimport \"./ActionIconText.scss\";\nimport { ColorKeys } from \"@theme/colors.ts\";\nimport { Row } from \"@/components\";\n\nexport type ActionIconTextProps = PropsWithChildren<{\n icon?: ReactNode;\n noIcon?: boolean;\n textLabel?: string;\n handleAction?: () => void;\n handleIconAction?: () => void;\n classNameComponent?: string;\n classNameText?: string;\n disablePointer?: boolean;\n iconPosition?: \"left\" | \"right\";\n popupInfo?: InfoPopupProps;\n iconColor?: ColorKeys;\n positionPopUp?: \"right\" | \"top\" | \"bottom\" | \"left\" | undefined;\n justifyContent?: CSSProperties[\"justifyContent\"];\n alignItems?: CSSProperties[\"alignItems\"];\n children?: ReactNode;\n}>;\n\nexport const ActionIconText = ({\n iconColor,\n icon = <Favourite color={iconColor} />,\n noIcon = false,\n textLabel = \"Default text\",\n handleAction = () => { },\n handleIconAction = () => { },\n classNameComponent = \"fs-7\",\n classNameText = \"\",\n disablePointer = false,\n iconPosition = \"left\",\n popupInfo,\n positionPopUp = \"right\",\n justifyContent = \"center\",\n alignItems = \"center\",\n children = undefined,\n}: ActionIconTextProps) => {\n const runIconAction = (e: React.MouseEvent) => {\n if (!disablePointer && handleIconAction) {\n e.stopPropagation();\n if (popupInfo) {\n setPopupIsOpen(!popupIsOpen);\n }\n handleIconAction();\n }\n };\n\n const [popupIsOpen, setPopupIsOpen] = React.useState(false);\n\n const iconToRender = useMemo(() => {\n return icon || <Favourite color={iconColor} />;\n }, [iconColor, icon]);\n\n return (\n <>\n <Row\n justifyContent={justifyContent}\n alignItems={alignItems}\n gap={\"x8\"}\n className={clsx(\n disablePointer ? \"text-muted\" : \"cursor-pointer text-primary\",\n classNameComponent,\n )}\n onClick={() => handleAction && !disablePointer && handleAction()}\n >\n {!noIcon &&\n (iconPosition === \"left\" || iconPosition == null) &&\n !popupInfo ? (\n <Row alignItems={\"center\"} onClick={(e) => runIconAction(e)}>\n {iconToRender}\n </Row>\n ) : (\n popupInfo &&\n !noIcon &&\n (iconPosition === \"left\" || iconPosition == null) && (\n <InfoPopup\n title={popupInfo.title}\n description={popupInfo.description}\n isOpen={popupIsOpen}\n positionPopUp={positionPopUp}\n onClickCloseBtn={() => setPopupIsOpen(!popupIsOpen)}\n className={popupInfo.className}\n ></InfoPopup>\n )\n )}\n <p className={clsx(\"fw-bold\", classNameText)}>{textLabel}</p>\n\n {!noIcon && iconPosition === \"right\" && !popupInfo ? (\n <Row\n gap={\"x24\"}\n alignItems={\"center\"}\n onClick={(e) => runIconAction(e)}\n >\n {children}\n {icon}\n </Row>\n ) : (\n popupInfo &&\n !noIcon &&\n iconPosition === \"right\" && (\n <InfoPopup\n title={popupInfo.title}\n description={popupInfo.description}\n isOpen={popupIsOpen}\n positionPopUp={positionPopUp}\n onClickCloseBtn={() => setPopupIsOpen(!popupIsOpen)}\n className={popupInfo.className}\n ></InfoPopup>\n )\n )}\n {/* {noIcon && (\n <Row\n gap={\"x24\"}\n alignItems={\"center\"}\n onClick={(e) => runIconAction(e)}\n >\n {children}\n </Row>\n )} */}\n </Row>\n </>\n );\n};\n"],"names":["ActionIconText","iconColor","icon","jsx","Favourite","noIcon","textLabel","handleAction","handleIconAction","classNameComponent","classNameText","disablePointer","iconPosition","popupInfo","positionPopUp","justifyContent","alignItems","children","runIconAction","e","setPopupIsOpen","popupIsOpen","React","iconToRender","useMemo","Fragment","jsxs","Row","clsx","InfoPopup"],"mappings":";;;;;;;AA2BO,MAAMA,IAAiB,CAAC;AAAA,EAC7B,WAAAC;AAAA,EACA,MAAAC,IAAOC,gBAAAA,EAAAA,IAACC,GAAA,EAAU,OAAOH,EAAA,CAAW;AAAA,EACpC,QAAAI,IAAS;AAAA,EACT,WAAAC,IAAY;AAAA,EACZ,cAAAC,IAAe,MAAM;AAAA,EAAE;AAAA,EACvB,kBAAAC,IAAmB,MAAM;AAAA,EAAE;AAAA,EAC3B,oBAAAC,IAAqB;AAAA,EACrB,eAAAC,IAAgB;AAAA,EAChB,gBAAAC,IAAiB;AAAA,EACjB,cAAAC,IAAe;AAA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lB,CAAa,GAAI,UAAAJ,GAAU;AAAA,QAExD,CAACD,KAAUO,MAAiB,WAAW,CAACC,IACvCa,gBAAAA,EAAAA;AAAAA,UAACC;AAAA,UAAA;AAAA,YACC,KAAK;AAAA,YACL,YAAY;AAAA,YACZ,SAAS,CAACR,MAAMD,EAAcC,CAAC;AAAA,YAE9B,UAAA;AAAA,cAAAF;AAAA,cACAf;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA,IAGHW,KACA,CAACR,KACDO,MAAiB,WACfT,gBAAAA,EAAAA;AAAAA,UAAC0B;AAAA,UAAA;AAAA,YACC,OAAOhB,EAAU;AAAA,YACjB,aAAaA,EAAU;AAAA,YACvB,QAAQQ;AAAA,YACR,eAAAP;AAAA,YACA,iBAAiB,MAAMM,EAAe,CAACC,CAAW;AAAA,YAClD,WAAWR,EAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MACtB;AAAA,IAAA;AAAA,EAAA,GAaT;AAEJ;"}
package/dist/index.es7.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { j as x } from "./index.es220.js";
2
2
  import { useMemo as y } from "react";
3
3
  import { clsx as g } from "./index.es221.js";
4
- import { createSpacingClasses as j } from "./index.es223.js";
5
- import { createColorClasses as u } from "./index.es222.js";
4
+ import { createSpacingClasses as j } from "./index.es222.js";
5
+ import { createColorClasses as u } from "./index.es224.js";
6
6
  import { createTypographyClasses as h } from "./index.es225.js";
7
7
  const E = ({
8
8
  as: o,
package/dist/index.es8.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { j as f } from "./index.es220.js";
2
2
  import { useMemo as x } from "react";
3
3
  import { clsx as y } from "./index.es221.js";
4
- import { createSpacingClasses as g } from "./index.es223.js";
5
- import { createColorClasses as j } from "./index.es222.js";
4
+ import { createSpacingClasses as g } from "./index.es222.js";
5
+ import { createColorClasses as j } from "./index.es224.js";
6
6
  import { createTypographyClasses as u } from "./index.es225.js";
7
7
  const M = ({
8
8
  as: o,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anoki/fse-ui",
3
- "version": "1.0.0-beta1.46",
3
+ "version": "1.0.0-beta1.47",
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 t=["gap","m","mx","my","mt","mr","mb","ml","p","px","py","pt","pr","pb","pl","br","br-t","br-r","br-b","br-l","min-h","min-w","max-h","max-w"],a=e=>t.map(r=>e[r]?`${r}-${e[r]}`:"").filter(Boolean);exports.createSpacingClasses=a;
2
- //# sourceMappingURL=index.cjs223.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs223.js","sources":["../src/theme/spacing.ts"],"sourcesContent":["export type SpacingKey =\n | \"x4\"\n | \"x8\"\n | \"x12\"\n | \"x16\"\n | \"x20\"\n | \"x24\"\n | \"x28\"\n | \"x32\"\n | \"x36\"\n | \"x40\"\n | \"x44\"\n | \"x48\"\n | \"x52\"\n | \"x56\"\n | \"x60\"\n | \"x64\"\n | \"x68\"\n | \"x72\"\n | \"x76\"\n | \"x80\"\n | \"x84\"\n | \"x88\"\n | \"x92\"\n | \"x96\"\n | \"x100\"\n | \"x104\";\n\nexport type SpacingProps = {\n gap?: SpacingKey;\n m?: SpacingKey; // margin\n mx?: SpacingKey; // margin x\n my?: SpacingKey; // margin y\n mt?: SpacingKey; // margin top\n mr?: SpacingKey; // margin bottom\n mb?: SpacingKey; // margin right\n ml?: SpacingKey; // margin left\n p?: SpacingKey; // padding\n px?: SpacingKey; // padding x\n py?: SpacingKey; // padding y\n pt?: SpacingKey; // padding top\n pr?: SpacingKey; // padding bottom\n pb?: SpacingKey; // padding right\n pl?: SpacingKey; // padding left\n br?: SpacingKey; // border-radius\n \"br-t\"?: SpacingKey; // border-radius top\n \"br-r\"?: SpacingKey; // border-radius right\n \"br-b\"?: SpacingKey; // border-radius bottom\n \"br-l\"?: SpacingKey; // border-radius left\n \"min-h\"?: SpacingKey; // min-height\n \"min-w\"?: SpacingKey; // min-width\n \"max-h\"?: SpacingKey; // max-height\n \"max-w\"?: SpacingKey; // max-width\n};\n\nexport type SpacingPropsKeys = keyof SpacingProps;\nconst spacingPropsKeys: SpacingPropsKeys[] = [\n \"gap\",\n \"m\",\n \"mx\",\n \"my\",\n \"mt\",\n \"mr\",\n \"mb\",\n \"ml\",\n \"p\",\n \"px\",\n \"py\",\n \"pt\",\n \"pr\",\n \"pb\",\n \"pl\",\n \"br\",\n \"br-t\",\n \"br-r\",\n \"br-b\",\n \"br-l\",\n \"min-h\",\n \"min-w\",\n \"max-h\",\n \"max-w\",\n];\n\nexport const createSpacingClasses = <TProps extends SpacingProps>(\n props: TProps,\n) => {\n return spacingPropsKeys\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\n .filter(Boolean);\n};\n"],"names":["spacingPropsKeys","createSpacingClasses","props","key"],"mappings":"gFAwDA,MAAMA,EAAuC,CAC3C,MACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,OACA,OACA,OACA,QACA,QACA,QACA,OACF,EAEaC,EACXC,GAEOF,EACJ,IAAKG,GAASD,EAAMC,CAAG,EAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAAK,EAAG,EACvD,OAAO,OAAO"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=o(c);function s(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}exports.useCallbackRef=s;
2
- //# sourceMappingURL=index.cjs468.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs468.js","sources":["../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args","_a"],"mappings":"mYAEA,SAASA,EAAeC,EAAU,CAChC,MAAMC,EAAcC,EAAM,OAAOF,CAAQ,EACzCE,OAAAA,EAAM,UAAU,IAAM,CACpBD,EAAY,QAAUD,CACxB,CAAC,EACME,EAAM,QAAQ,IAAM,IAAIC,WAAS,OAAAC,EAAAH,EAAY,UAAZ,YAAAG,EAAA,KAAAH,EAAsB,GAAGE,IAAO,EAAE,CAC5E","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),a=require("./index.cjs468.js");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=s(o);function i(e,t=globalThis==null?void 0:globalThis.document){const n=a.useCallbackRef(e);u.useEffect(()=>{const r=c=>{c.key==="Escape"&&n(c)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}exports.useEscapeKeydown=i;
2
- //# sourceMappingURL=index.cjs480.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs480.js","sources":["../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useEscapeKeydown","onEscapeKeyDownProp","ownerDocument","onEscapeKeyDown","useCallbackRef","React","handleKeyDown","event"],"mappings":"kaAGA,SAASA,EAAiBC,EAAqBC,EAAgB,mCAAY,SAAU,CACnF,MAAMC,EAAkBC,EAAAA,eAAeH,CAAmB,EAC1DI,EAAM,UAAU,IAAM,CACpB,MAAMC,EAAiBC,GAAU,CAC3BA,EAAM,MAAQ,UAChBJ,EAAgBI,CAAK,CAEzB,EACA,OAAAL,EAAc,iBAAiB,UAAWI,EAAe,CAAE,QAAS,GAAM,EACnE,IAAMJ,EAAc,oBAAoB,UAAWI,EAAe,CAAE,QAAS,GAAM,CAC5F,EAAG,CAACH,EAAiBD,CAAa,CAAC,CACrC","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index.cjs483.js"),L=require("react"),H=require("react-dom");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=U(L),I=U(H);var J=typeof document<"u",K=function(){},R=J?L.useLayoutEffect:K;function P(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!P(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const g=s[r];if(!(g==="_owner"&&e.$$typeof)&&!P(e[g],t[g]))return!1}return!0}return e!==e&&t!==t}function $(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function z(e,t){const n=$(e);return Math.round(t*n)/n}function D(e){const t=o.useRef(e);return R(()=>{t.current=e}),t}function Q(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:g,floating:A}={},transform:j=!0,whileElementsMounted:k,open:S}=e,[u,E]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[M,T]=o.useState(r);P(M,r)||T(r);const[B,N]=o.useState(null),[V,W]=o.useState(null),b=o.useCallback(i=>{i!==d.current&&(d.current=i,N(i))},[]),v=o.useCallback(i=>{i!==p.current&&(p.current=i,W(i))},[]),c=g||B,l=A||V,d=o.useRef(null),p=o.useRef(null),w=o.useRef(u),G=k!=null,O=D(k),_=D(s),C=D(S),y=o.useCallback(()=>{if(!d.current||!p.current)return;const i={placement:t,strategy:n,middleware:M};_.current&&(i.platform=_.current),f.computePosition(d.current,p.current,i).then(h=>{const m={...h,isPositioned:C.current!==!1};x.current&&!P(w.current,m)&&(w.current=m,I.flushSync(()=>{E(m)}))})},[M,t,n,_,C]);R(()=>{S===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,E(i=>({...i,isPositioned:!1})))},[S]);const x=o.useRef(!1);R(()=>(x.current=!0,()=>{x.current=!1}),[]),R(()=>{if(c&&(d.current=c),l&&(p.current=l),c&&l){if(O.current)return O.current(c,l,y);y()}},[c,l,y,O,G]);const F=o.useMemo(()=>({reference:d,floating:p,setReference:b,setFloating:v}),[b,v]),a=o.useMemo(()=>({reference:c,floating:l}),[c,l]),q=o.useMemo(()=>{const i={position:n,left:0,top:0};if(!a.floating)return i;const h=z(a.floating,u.x),m=z(a.floating,u.y);return j?{...i,transform:"translate("+h+"px, "+m+"px)",...$(a.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:h,top:m}},[n,j,a.floating,u.x,u.y]);return o.useMemo(()=>({...u,update:y,refs:F,elements:a,floatingStyles:q}),[u,y,F,a,q])}const X=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?f.arrow({element:r.current,padding:s}).fn(n):{}:r?f.arrow({element:r,padding:s}).fn(n):{}}}},Y=(e,t)=>({...f.offset(e),options:[e,t]}),Z=(e,t)=>({...f.shift(e),options:[e,t]}),ee=(e,t)=>({...f.limitShift(e),options:[e,t]}),te=(e,t)=>({...f.flip(e),options:[e,t]}),ne=(e,t)=>({...f.size(e),options:[e,t]}),re=(e,t)=>({...f.hide(e),options:[e,t]}),oe=(e,t)=>({...X(e),options:[e,t]});exports.autoUpdate=f.autoUpdate;exports.computePosition=f.computePosition;exports.platform=f.platform;exports.arrow=oe;exports.flip=te;exports.hide=re;exports.limitShift=ee;exports.offset=Y;exports.shift=Z;exports.size=ne;exports.useFloating=Q;
2
- //# sourceMappingURL=index.cjs481.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs481.js","sources":["../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, autoPlacement as autoPlacement$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar isClient = typeof document !== 'undefined';\n\nvar noop = function noop() {};\nvar index = isClient ? useLayoutEffect : noop;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => ({\n ...offset$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => ({\n ...shift$1(options),\n options: [options, deps]\n});\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => ({\n ...limitShift$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => ({\n ...flip$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => ({\n ...size$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => ({\n ...autoPlacement$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => ({\n ...hide$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => ({\n ...inline$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => ({\n ...arrow$1(options),\n options: [options, deps]\n});\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["isClient","noop","index","useLayoutEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","arrow$1","isRef","state","padding","arrow$2","offset","deps","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1","arrow"],"mappings":"gcAMA,IAAIA,EAAW,OAAO,SAAa,IAE/BC,EAAO,UAAgB,CAAC,EACxBC,EAAQF,EAAWG,EAAAA,gBAAkBF,EAIzC,SAASG,EAAUC,EAAGC,EAAG,CACvB,GAAID,IAAMC,EACR,MAAO,GAET,GAAI,OAAOD,GAAM,OAAOC,EACtB,MAAO,GAET,GAAI,OAAOD,GAAM,YAAcA,EAAE,aAAeC,EAAE,WAChD,MAAO,GAET,IAAIC,EACAC,EACAC,EACJ,GAAIJ,GAAKC,GAAK,OAAOD,GAAM,SAAU,CACnC,GAAI,MAAM,QAAQA,CAAC,EAAG,CAEpB,GADAE,EAASF,EAAE,OACPE,IAAWD,EAAE,OAAQ,MAAO,GAChC,IAAKE,EAAID,EAAQC,MAAQ,GACvB,GAAI,CAACJ,EAAUC,EAAEG,CAAC,EAAGF,EAAEE,CAAC,CAAC,EACvB,MAAO,GAGX,MAAO,EACT,CAGA,GAFAC,EAAO,OAAO,KAAKJ,CAAC,EACpBE,EAASE,EAAK,OACVF,IAAW,OAAO,KAAKD,CAAC,EAAE,OAC5B,MAAO,GAET,IAAKE,EAAID,EAAQC,MAAQ,GACvB,GAAI,CAAC,CAAA,EAAG,eAAe,KAAKF,EAAGG,EAAKD,CAAC,CAAC,EACpC,MAAO,GAGX,IAAKA,EAAID,E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,QAAS,CAACA,EAASgD,CAAI,CACzB","x_google_ignoreList":[0]}
@@ -1,5 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index.cjs487.js"),q=require("react"),j=require("./index.cjs504.js"),_=require("./index.cjs505.js"),v=require("./index.cjs506.js"),P=require("./index.cjs507.js");function A(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,i.get?i:{enumerable:!0,get:()=>e[l]})}}return a.default=e,Object.freeze(a)}const n=A(q);var g=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},E=function(e){return[e.deltaX,e.deltaY]},M=function(e){return e&&"current"in e?e.current:e},x=function(e,a){return e[0]===a[0]&&e[1]===a[1]},p=function(e){return`
2
- .block-interactivity-`.concat(e,` {pointer-events: none;}
3
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
4
- `)},I=0,d=[];function W(e){var a=n.useRef([]),l=n.useRef([0,0]),i=n.useRef(),h=n.useState(I++)[0],S=n.useState(_.styleSingleton)[0],b=n.useRef(e);n.useEffect(function(){b.current=e},[e]),n.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(h));var t=O.__spreadArray([e.lockRef.current],(e.shards||[]).map(M),!0).filter(Boolean);return t.forEach(function(r){return r.classList.add("allow-interactivity-".concat(h))}),function(){document.body.classList.remove("block-interactivity-".concat(h)),t.forEach(function(r){return r.classList.remove("allow-interactivity-".concat(h))})}}},[e.inert,e.lockRef.current,e.shards]);var R=n.useCallback(function(t,r){if("touches"in t&&t.touches.length===2||t.type==="wheel"&&t.ctrlKey)return!b.current.allowPinchZoom;var s=g(t),u=l.current,o="deltaX"in t?t.deltaX:u[0]-s[0],f="deltaY"in t?t.deltaY:u[1]-s[1],c,k=t.target,m=Math.abs(o)>Math.abs(f)?"h":"v";if("touches"in t&&m==="h"&&k.type==="range")return!1;var C=P.locationCouldBeScrolled(m,k);if(!C)return!0;if(C?c=m:(c=m==="v"?"h":"v",C=P.locationCouldBeScrolled(m,k)),!C)return!1;if(!i.current&&"changedTouches"in t&&(o||f)&&(i.current=c),!c)return!0;var Y=i.current||c;return P.handleScroll(Y,r,t,Y==="h"?o:f)},[]),y=n.useCallback(function(t){var r=t;if(!(!d.length||d[d.length-1]!==S)){var s="deltaY"in r?E(r):g(r),u=a.current.filter(function(c){return c.name===r.type&&(c.target===r.target||r.target===c.shadowParent)&&x(c.delta,s)})[0];if(u&&u.should){r.cancelable&&r.preventDefault();return}if(!u){var o=(b.current.shards||[]).map(M).filter(Boolean).filter(function(c){return c.contains(r.target)}),f=o.length>0?R(r,o[0]):!b.current.noIsolation;f&&r.cancelable&&r.preventDefault()}}},[]),w=n.useCallback(function(t,r,s,u){var o={name:t,delta:r,target:s,should:u,shadowParent:z(s)};a.current.push(o),setTimeout(function(){a.current=a.current.filter(function(f){return f!==o})},1)},[]),T=n.useCallback(function(t){l.current=g(t),i.current=void 0},[]),L=n.useCallback(function(t){w(t.type,E(t),t.target,R(t,e.lockRef.current))},[]),X=n.useCallback(function(t){w(t.type,g(t),t.target,R(t,e.lockRef.current))},[]);n.useEffect(function(){return d.push(S),e.setCallbacks({onScrollCapture:L,onWheelCapture:L,onTouchMoveCapture:X}),document.addEventListener("wheel",y,v.nonPassive),document.addEventListener("touchmove",y,v.nonPassive),document.addEventListener("touchstart",T,v.nonPassive),function(){d=d.filter(function(t){return t!==S}),document.removeEventListener("wheel",y,v.nonPassive),document.removeEventListener("touchmove",y,v.nonPassive),document.removeEventListener("touchstart",T,v.nonPassive)}},[]);var B=e.removeScrollBar,D=e.inert;return n.createElement(n.Fragment,null,D?n.createElement(S,{styles:p(h)}):null,B?n.createElement(j.RemoveScrollBar,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function z(e){for(var a=null;e!==null;)e instanceof ShadowRoot&&(a=e.host,e=e.host),e=e.parentNode;return a}exports.RemoveScrollSideCar=W;exports.getDeltaXY=E;exports.getTouchXY=g;
5
- //# sourceMappingURL=index.cjs496.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs496.js","sources":["../node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n"],"names":["getTouchXY","event","getDeltaXY","extractRef","ref","deltaCompare","x","y","generateStyle","id","idCounter","lockStack","RemoveScrollSideCar","props","shouldPreventQueue","React","touchStartRef","activeAxis","Style","styleSingleton","lastProps","allow_1","__spreadArray","el","shouldCancelEvent","parent","touch","touchStart","deltaX","deltaY","currentAxis","target","moveDirection","canBeScrolledInMainDirection","locationCouldBeScrolled","cancelingAxis","handleScroll","shouldPrevent","_event","delta","sourceEvent","e","shardNodes","node","shouldStop","shouldCancel","name","should","getOutermostShadowParent","scrollTouchStart","scrollWheel","scrollTouchMove","nonPassive","inst","removeScrollBar","inert","RemoveScrollBar","shadowParent"],"mappings":"8hBAMU,IAACA,EAAa,SAAUC,EAAO,CACrC,MAAO,mBAAoBA,EAAQ,CAACA,EAAM,eAAe,CAAC,EAAE,QAASA,EAAM,eAAe,CAAC,EAAE,OAAO,EAAI,CAAC,EAAG,CAAC,CACjH,EACWC,EAAa,SAAUD,EAAO,CAAE,MAAO,CAACA,EAAM,OAAQA,EAAM,MAAM,CAAG,EAC5EE,EAAa,SAAUC,EAAK,CAC5B,OAAOA,GAAO,YAAaA,EAAMA,EAAI,QAAUA,CACnD,EACIC,EAAe,SAAUC,EAAGC,EAAG,CAAE,OAAOD,EAAE,CAAC,IAAMC,EAAE,CAAC,GAAKD,EAAE,CAAC,IAAMC,EAAE,CAAC,CAAG,EACxEC,EAAgB,SAAUC,EAAI,CAAE,MAAO;AAAA,yBAA4B,OAAOA,EAAI;AAAA,wBAAmD,EAAE,OAAOA,EAAI;AAAA,CAA2B,CAAG,EAC5KC,EAAY,EACZC,EAAY,CAAA,EACT,SAASC,EAAoBC,EAAO,CACvC,IAAIC,EAAqBC,EAAM,OAAO,EAAE,EACpCC,EAAgBD,EAAM,OAAO,CAAC,EAAG,CAAC,CAAC,EACnCE,EAAaF,EAAM,OAAM,EACzBN,EAAKM,EAAM,SAASL,GAAW,EAAE,CAAC,EAClCQ,EAAQH,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EAAAA,UAAU,EAC7D,UAAY,CACfzC,EAAYA,EAAU,OAAO,SAAU0C,EAAM,CAAE,OAAOA,IAASnC,CAAO,CAAC,EACvE,SAAS,oBAAoB,QAASmB,EAAee,EAAAA,UAAU,EAC/D,SAAS,oBAAoB,YAAaf,EAAee,EAAAA,UAAU,EACnE,SAAS,oBAAoB,aAAcH,EAAkBG,EAAAA,UAAU,CAC3E,CACJ,EAAG,CAAA,CAAE,EACL,IAAIE,EAAkBzC,EAAM,gBAAiB0C,EAAQ1C,EAAM,MAC3D,OAAQE,EAAM,cAAcA,EAAM,SAAU,KACxCwC,EAAQxC,EAAM,cAAcG,EAAO,CAAE,OAAQV,EAAcC,CAAE,CAAC,CAAE,EAAI,KACpE6C,EAAkBvC,EAAM,cAAcyC,EAAAA,gBAAiB,CAAE,WAAY3C,EAAM,WAAY,QAASA,EAAM,OAAO,CAAE,EAAI,IAAI,CAC/H,CACA,SAASmC,EAAyBL,EAAM,CAEpC,QADIc,EAAe,KACZd,IAAS,MACRA,aAAgB,aAChBc,EAAed,EAAK,KACpBA,EAAOA,EAAK,MAEhBA,EAAOA,EAAK,WAEhB,OAAOc,CACX","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs499.js");function B(n,t,g){let{reference:l,floating:f}=n;const i=e.getSideAxis(t),a=e.getAlignmentAxis(t),d=e.getAxisLength(a),h=e.getSide(t),w=i==="y",c=l.x+l.width/2-f.width/2,o=l.y+l.height/2-f.height/2,m=l[d]/2-f[d]/2;let s;switch(h){case"top":s={x:c,y:l.y-f.height};break;case"bottom":s={x:c,y:l.y+l.height};break;case"right":s={x:l.x+l.width,y:o};break;case"left":s={x:l.x-f.width,y:o};break;default:s={x:l.x,y:l.y}}switch(e.getAlignment(t)){case"start":s[a]-=m*(g&&w?-1:1);break;case"end":s[a]+=m*(g&&w?-1:1);break}return s}const _=async(n,t,g)=>{const{placement:l="bottom",strategy:f="absolute",middleware:i=[],platform:a}=g,d=i.filter(Boolean),h=await(a.isRTL==null?void 0:a.isRTL(t));let w=await a.getElementRects({reference:n,floating:t,strategy:f}),{x:c,y:o}=B(w,l,h),m=l,s={},r=0;for(let u=0;u<d.length;u++){const{name:x,fn:v}=d[u],{x:y,y:A,data:b,reset:p}=await v({x:c,y:o,initialPlacement:l,placement:m,strategy:f,middlewareData:s,rects:w,platform:a,elements:{reference:n,floating:t}});c=y??c,o=A??o,s={...s,[x]:{...s[x],...b}},p&&r<=50&&(r++,typeof p=="object"&&(p.placement&&(m=p.placement),p.rects&&(w=p.rects===!0?await a.getElementRects({reference:n,floating:t,strategy:f}):p.rects),{x:c,y:o}=B(w,m,h)),u=-1)}return{x:c,y:o,placement:m,strategy:f,middlewareData:s}};async function V(n,t){var g;t===void 0&&(t={});const{x:l,y:f,platform:i,rects:a,elements:d,strategy:h}=n,{boundary:w="clippingAncestors",rootBoundary:c="viewport",elementContext:o="floating",altBoundary:m=!1,padding:s=0}=e.evaluate(t,n),r=e.getPaddingObject(s),x=d[m?o==="floating"?"reference":"floating":o],v=e.rectToClientRect(await i.getClippingRect({element:(g=await(i.isElement==null?void 0:i.isElement(x)))==null||g?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(d.floating)),boundary:w,rootBoundary:c,strategy:h})),y=o==="floating"?{x:l,y:f,width:a.floating.width,height:a.floating.height}:a.reference,A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d.floating)),b=await(i.isElement==null?void 0:i.isElement(A))?await(i.getScale==null?void 0:i.getScale(A))||{x:1,y:1}:{x:1,y:1},p=e.rectToClientRect(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:y,offsetParent:A,strategy:h}):y);return{top:(v.top-p.top+r.top)/b.y,bottom:(p.bottom-v.bottom+r.bottom)/b.y,left:(v.left-p.left+r.left)/b.x,right:(p.right-v.right+r.right)/b.x}}const X=n=>({name:"arrow",options:n,async fn(t){const{x:g,y:l,placement:f,rects:i,platform:a,elements:d,middlewareData:h}=t,{element:w,padding:c=0}=e.evaluate(n,t)||{};if(w==null)return{};const o=e.getPaddingObject(c),m={x:g,y:l},s=e.getAlignmentAxis(f),r=e.getAxisLength(s),u=await a.getDimensions(w),x=s==="y",v=x?"top":"left",y=x?"bottom":"right",A=x?"clientHeight":"clientWidth",b=i.reference[r]+i.reference[s]-m[s]-i.floating[r],p=m[s]-i.reference[s],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(w));let C=P?P[A]:0;(!C||!await(a.isElement==null?void 0:a.isElement(P)))&&(C=d.floating[A]||i.floating[r]);const M=b/2-p/2,D=C/2-u[r]/2-1,O=e.min(o[v],D),L=e.min(o[y],D),T=O,H=C-u[r]-L,S=C/2-u[r]/2+M,F=e.clamp(T,S,H),E=!h.arrow&&e.getAlignment(f)!=null&&S!==F&&i.reference[r]/2-(S<T?O:L)-u[r]/2<0,R=E?S<T?S-T:S-H:0;return{[s]:m[s]+R,data:{[s]:F,centerOffset:S-F-R,...E&&{alignmentOffset:R}},reset:E}}}),q=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(t){var g,l;const{placement:f,middlewareData:i,rects:a,initialPlacement:d,platform:h,elements:w}=t,{mainAxis:c=!0,crossAxis:o=!0,fallbackPlacements:m,fallbackStrategy:s="bestFit",fallbackAxisSideDirection:r="none",flipAlignment:u=!0,...x}=e.evaluate(n,t);if((g=i.arrow)!=null&&g.alignmentOffset)return{};const v=e.getSide(f),y=e.getSideAxis(d),A=e.getSide(d)===d,b=await(h.isRTL==null?void 0:h.isRTL(w.floating)),p=m||(A||!u?[e.getOppositePlacement(d)]:e.getExpandedPlacements(d)),P=r!=="none";!m&&P&&p.push(...e.getOppositeAxisPlacements(d,u,r,b));const C=[d,...p],M=await V(t,x),D=[];let O=((l=i.flip)==null?void 0:l.overflows)||[];if(c&&D.push(M[v]),o){const S=e.getAlignmentSides(f,a,b);D.push(M[S[0]],M[S[1]])}if(O=[...O,{placement:f,overflows:D}],!D.every(S=>S<=0)){var L,T;const S=(((L=i.flip)==null?void 0:L.index)||0)+1,F=C[S];if(F&&(!(o==="alignment"?y!==e.getSideAxis(F):!1)||O.every(k=>e.getSideAxis(k.placement)===y?k.overflows[0]>0:!0)))return{data:{index:S,overflows:O},reset:{placement:F}};let E=(T=O.filter(R=>R.overflows[0]<=0).sort((R,k)=>R.overflows[1]-k.overflows[1])[0])==null?void 0:T.placement;if(!E)switch(s){case"bestFit":{var H;const R=(H=O.filter(k=>{if(P){const j=e.getSideAxis(k.placement);return j===y||j==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(j=>j>0).reduce((j,$)=>j+$,0)]).sort((k,j)=>k[1]-j[1])[0])==null?void 0:H[0];R&&(E=R);break}case"initialPlacement":E=d;break}if(f!==E)return{reset:{placement:E}}}return{}}}};function z(n,t){return{top:n.top-t.height,right:n.right-t.width,bottom:n.bottom-t.height,left:n.left-t.width}}function W(n){return e.sides.some(t=>n[t]>=0)}const I=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(t){const{rects:g}=t,{strategy:l="referenceHidden",...f}=e.evaluate(n,t);switch(l){case"referenceHidden":{const i=await V(t,{...f,elementContext:"reference"}),a=z(i,g.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:W(a)}}}case"escaped":{const i=await V(t,{...f,altBoundary:!0}),a=z(i,g.floating);return{data:{escapedOffsets:a,escaped:W(a)}}}default:return{}}}}},Y=new Set(["left","top"]);async function U(n,t){const{placement:g,platform:l,elements:f}=n,i=await(l.isRTL==null?void 0:l.isRTL(f.floating)),a=e.getSide(g),d=e.getAlignment(g),h=e.getSideAxis(g)==="y",w=Y.has(a)?-1:1,c=i&&h?-1:1,o=e.evaluate(t,n);let{mainAxis:m,crossAxis:s,alignmentAxis:r}=typeof o=="number"?{mainAxis:o,crossAxis:0,alignmentAxis:null}:{mainAxis:o.mainAxis||0,crossAxis:o.crossAxis||0,alignmentAxis:o.alignmentAxis};return d&&typeof r=="number"&&(s=d==="end"?r*-1:r),h?{x:s*c,y:m*w}:{x:m*w,y:s*c}}const G=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var g,l;const{x:f,y:i,placement:a,middlewareData:d}=t,h=await U(t,n);return a===((g=d.offset)==null?void 0:g.placement)&&(l=d.arrow)!=null&&l.alignmentOffset?{}:{x:f+h.x,y:i+h.y,data:{...h,placement:a}}}}},J=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){const{x:g,y:l,placement:f}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:d={fn:x=>{let{x:v,y}=x;return{x:v,y}}},...h}=e.evaluate(n,t),w={x:g,y:l},c=await V(t,h),o=e.getSideAxis(e.getSide(f)),m=e.getOppositeAxis(o);let s=w[m],r=w[o];if(i){const x=m==="y"?"top":"left",v=m==="y"?"bottom":"right",y=s+c[x],A=s-c[v];s=e.clamp(y,s,A)}if(a){const x=o==="y"?"top":"left",v=o==="y"?"bottom":"right",y=r+c[x],A=r-c[v];r=e.clamp(y,r,A)}const u=d.fn({...t,[m]:s,[o]:r});return{...u,data:{x:u.x-g,y:u.y-l,enabled:{[m]:i,[o]:a}}}}}},K=function(n){return n===void 0&&(n={}),{options:n,fn(t){const{x:g,y:l,placement:f,rects:i,middlewareData:a}=t,{offset:d=0,mainAxis:h=!0,crossAxis:w=!0}=e.evaluate(n,t),c={x:g,y:l},o=e.getSideAxis(f),m=e.getOppositeAxis(o);let s=c[m],r=c[o];const u=e.evaluate(d,t),x=typeof u=="number"?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(h){const A=m==="y"?"height":"width",b=i.reference[m]-i.floating[A]+x.mainAxis,p=i.reference[m]+i.reference[A]-x.mainAxis;s<b?s=b:s>p&&(s=p)}if(w){var v,y;const A=m==="y"?"width":"height",b=Y.has(e.getSide(f)),p=i.reference[o]-i.floating[A]+(b&&((v=a.offset)==null?void 0:v[o])||0)+(b?0:x.crossAxis),P=i.reference[o]+i.reference[A]+(b?0:((y=a.offset)==null?void 0:y[o])||0)-(b?x.crossAxis:0);r<p?r=p:r>P&&(r=P)}return{[m]:s,[o]:r}}}},N=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(t){var g,l;const{placement:f,rects:i,platform:a,elements:d}=t,{apply:h=()=>{},...w}=e.evaluate(n,t),c=await V(t,w),o=e.getSide(f),m=e.getAlignment(f),s=e.getSideAxis(f)==="y",{width:r,height:u}=i.floating;let x,v;o==="top"||o==="bottom"?(x=o,v=m===(await(a.isRTL==null?void 0:a.isRTL(d.floating))?"start":"end")?"left":"right"):(v=o,x=m==="end"?"top":"bottom");const y=u-c.top-c.bottom,A=r-c.left-c.right,b=e.min(u-c[x],y),p=e.min(r-c[v],A),P=!t.middlewareData.shift;let C=b,M=p;if((g=t.middlewareData.shift)!=null&&g.enabled.x&&(M=A),(l=t.middlewareData.shift)!=null&&l.enabled.y&&(C=y),P&&!m){const O=e.max(c.left,0),L=e.max(c.right,0),T=e.max(c.top,0),H=e.max(c.bottom,0);s?M=r-2*(O!==0||L!==0?O+L:e.max(c.left,c.right)):C=u-2*(T!==0||H!==0?T+H:e.max(c.top,c.bottom))}await h({...t,availableWidth:M,availableHeight:C});const D=await a.getDimensions(d.floating);return r!==D.width||u!==D.height?{reset:{rects:!0}}:{}}}};exports.rectToClientRect=e.rectToClientRect;exports.arrow=X;exports.computePosition=_;exports.detectOverflow=V;exports.flip=q;exports.hide=I;exports.limitShift=K;exports.offset=G;exports.shift=J;exports.size=N;
2
- //# sourceMappingURL=index.cjs498.js.map