@tempots/beatui 0.30.2 → 0.31.0

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 (368) hide show
  1. package/dist/2019-BY_FFnZU.cjs +1 -0
  2. package/dist/{2019-Cd9nHhvg.js → 2019-C660mMK6.js} +9 -10
  3. package/dist/{2020-CyKJpuK6.js → 2020-C3P-aGet.js} +30 -31
  4. package/dist/2020-Cyyhc8pv.cjs +1 -0
  5. package/dist/{ar-Dz8Mg5la.js → ar-BUxQ3yNv.js} +30 -15
  6. package/dist/ar-DcFl4tkv.cjs +1 -0
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +85 -84
  9. package/dist/beatui.css +32 -6
  10. package/dist/beatui.tailwind.css +32 -6
  11. package/dist/{de-ToWTQGEo.js → de-CKKQr2-K.js} +27 -12
  12. package/dist/de-DEUS3n0J.cjs +1 -0
  13. package/dist/{es-CruxS0Tz.js → es-C5VUn_X1.js} +27 -12
  14. package/dist/es-CIeoDpkc.cjs +1 -0
  15. package/dist/{fa-Cf0NZLWA.js → fa-Cs2LZsfr.js} +30 -15
  16. package/dist/fa-gXa9Xdjn.cjs +1 -0
  17. package/dist/fr-6SpJ-gVV.cjs +1 -0
  18. package/dist/{fr-YKXmqMGr.js → fr-Dlw8mKFp.js} +20 -5
  19. package/dist/{he-D8ZOduPw.js → he-Cm4NxsyE.js} +30 -15
  20. package/dist/he-D9cwxZOb.cjs +1 -0
  21. package/dist/hi-CNRHnMsQ.cjs +1 -0
  22. package/dist/{hi-CIamzVEf.js → hi-Cjz1aQX2.js} +30 -15
  23. package/dist/index-BI5w0jSz.js +2707 -0
  24. package/dist/index-Bv2gn_kV.cjs +4 -0
  25. package/dist/index-C-FUCwXi.js +14275 -0
  26. package/dist/index-CKyH3jwP.cjs +1 -0
  27. package/dist/index-CXY0yKJD.cjs +34 -0
  28. package/dist/{index-O9BwR_8P.cjs → index-CYY_JLSN.cjs} +1 -1
  29. package/dist/index-DKy2mZws.cjs +1 -0
  30. package/dist/{index-B2079wM-.js → index-DjShJtXp.js} +15 -15
  31. package/dist/index-DwyUOY3r.js +68 -0
  32. package/dist/{index-DDpjzV7E.js → index-Jd2O_Iux.js} +304 -307
  33. package/dist/{index-DFJed4ks.js → index-_Kh76-c2.js} +1 -1
  34. package/dist/index-klVI8k8O.cjs +8 -0
  35. package/dist/index.cjs.js +4 -4
  36. package/dist/index.es.js +1123 -1229
  37. package/dist/it-DvBJ31Ls.cjs +1 -0
  38. package/dist/{it-Bn7tG_KC.js → it-iuFeIEsO.js} +29 -14
  39. package/dist/{ja-i1ULXeiu.js → ja-D6Dd96v-.js} +25 -10
  40. package/dist/ja-FKJGj5My.cjs +1 -0
  41. package/dist/json-schema/index.cjs.js +1 -1
  42. package/dist/json-schema/index.es.js +1 -1
  43. package/dist/{ko-BpKDmtvY.js → ko-C8GOsfIU.js} +30 -15
  44. package/dist/ko-PqVOGPUi.cjs +1 -0
  45. package/dist/markdown/index.cjs.js +1 -2
  46. package/dist/markdown/index.es.js +4 -420
  47. package/dist/{modal-DvGSDVSv.js → modal-CuhK7DqK.js} +14 -13
  48. package/dist/modal-RQtwnFy9.cjs +1 -0
  49. package/dist/{nl-Cs4PDWCJ.js → nl-Ct2cyWWi.js} +31 -16
  50. package/dist/nl-DAhT0vfu.cjs +1 -0
  51. package/dist/notice-BnX2sRrK.cjs +2 -0
  52. package/dist/notice-Dz_BJg8D.js +1467 -0
  53. package/dist/{pl-BFLNf991.js → pl-DewgRE-k.js} +31 -16
  54. package/dist/pl-JgD0mCRa.cjs +1 -0
  55. package/dist/prosemirror/index.cjs.js +1 -0
  56. package/dist/prosemirror/index.es.js +6 -0
  57. package/dist/prosemirror.css +294 -0
  58. package/dist/pt-BkoMl_PC.cjs +1 -0
  59. package/dist/{pt-BRZeOkcE.js → pt-CNyp2zeW.js} +31 -16
  60. package/dist/ru-9OW0HQFS.cjs +1 -0
  61. package/dist/{ru-KI7Gowz-.js → ru-U6PdSzha.js} +35 -20
  62. package/dist/styles-url-CF_019NX.js +4 -0
  63. package/dist/styles-url-DhmSan6u.cjs +1 -0
  64. package/dist/toolbar-D7fDCmUn.cjs +1 -0
  65. package/dist/toolbar-DTh9Ouhs.js +118 -0
  66. package/dist/{tr-CYk8Fua5.js → tr-CQVvooxi.js} +28 -13
  67. package/dist/tr-DsOaoQqh.cjs +1 -0
  68. package/dist/translations-BDRano6u.cjs +1 -0
  69. package/dist/{translations-DdNHXAWr.js → translations-Cic51rHH.js} +1 -1
  70. package/dist/translations-D4PjDB1t.js +831 -0
  71. package/dist/translations-DDFTHcX3.cjs +1 -0
  72. package/dist/types/beatui-i18n/default.d.ts +14 -0
  73. package/dist/types/beatui-i18n/locales/en.d.ts +14 -0
  74. package/dist/types/beatui-i18n/translations.d.ts +14 -0
  75. package/dist/types/components/form/input/input-container.d.ts +3 -1
  76. package/dist/types/components/form/input/input-options.d.ts +6 -0
  77. package/dist/types/components/prosemirror/etoolbar-button.d.ts +11 -0
  78. package/dist/types/components/prosemirror/etoolbar-group.d.ts +4 -0
  79. package/dist/types/components/prosemirror/link-control.d.ts +12 -0
  80. package/dist/types/components/prosemirror/prosemirror-markdown-input.d.ts +76 -0
  81. package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +18 -0
  82. package/dist/types/components/prosemirror/utils.d.ts +12 -0
  83. package/dist/types/prosemirror/index.d.ts +2 -0
  84. package/dist/{ur-BIcZGLWt.js → ur-C3LypxEh.js} +30 -15
  85. package/dist/ur-C8v4y2tI.cjs +1 -0
  86. package/dist/utils-D8WljbbZ.cjs +1 -0
  87. package/dist/{utils-D1op9R8_.js → utils-DY9kZecl.js} +74 -73
  88. package/dist/vi-DzLo7qhK.cjs +1 -0
  89. package/dist/{vi-BeK62QeB.js → vi-M5ObJg3d.js} +19 -4
  90. package/dist/zh-BXk4IZBo.cjs +1 -0
  91. package/dist/{zh-Dt6yWDu2.js → zh-DGA8R46s.js} +32 -17
  92. package/package.json +20 -13
  93. package/dist/2019-Bl1mhxeM.cjs +0 -1
  94. package/dist/2020-BKqFJLj6.cjs +0 -1
  95. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  96. package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
  97. package/dist/apl-B2DGVGxc.js +0 -76
  98. package/dist/apl-M-DNMvvR.cjs +0 -1
  99. package/dist/ar-CbsALGhG.cjs +0 -1
  100. package/dist/asciiarmor-2LVJmxlE.js +0 -34
  101. package/dist/asciiarmor-BMx3XVjX.cjs +0 -1
  102. package/dist/asn1-OOsVM4yU.cjs +0 -1
  103. package/dist/asn1-jKiBa2Ya.js +0 -95
  104. package/dist/asterisk-B1QUaW1C.cjs +0 -1
  105. package/dist/asterisk-DS281yxp.js +0 -271
  106. package/dist/brainfuck-BjUlYKdF.cjs +0 -1
  107. package/dist/brainfuck-C_p9pTT8.js +0 -34
  108. package/dist/clike-BEMIzMUI.cjs +0 -1
  109. package/dist/clike-DGTaUp48.js +0 -620
  110. package/dist/clojure-Ap_IXD2I.cjs +0 -1
  111. package/dist/clojure-CCKyeQKf.js +0 -800
  112. package/dist/cmake-C4D5_VmS.cjs +0 -1
  113. package/dist/cmake-CuaCgAKt.js +0 -28
  114. package/dist/cobol-BlTKFDRj.js +0 -72
  115. package/dist/cobol-Du-cT2hr.cjs +0 -1
  116. package/dist/coffeescript-BVCvwO8I.js +0 -179
  117. package/dist/coffeescript-DDFAj2ea.cjs +0 -1
  118. package/dist/commonlisp-CXBBRCTx.cjs +0 -1
  119. package/dist/commonlisp-D_kxz07b.js +0 -75
  120. package/dist/crystal-D309uH6_.js +0 -217
  121. package/dist/crystal-DAFWRDbh.cjs +0 -1
  122. package/dist/css-BkF-NPzE.js +0 -1553
  123. package/dist/css-DzFJyRJ8.cjs +0 -1
  124. package/dist/cypher-BMq4Fwjl.js +0 -68
  125. package/dist/cypher-BN0-oCze.cjs +0 -1
  126. package/dist/d-BHsqGcfm.cjs +0 -1
  127. package/dist/d-BZcgY6La.js +0 -127
  128. package/dist/de-MO-u5hoD.cjs +0 -1
  129. package/dist/diff-CemTHKfk.cjs +0 -1
  130. package/dist/diff-Cg9d_RX2.js +0 -18
  131. package/dist/dockerfile-BBTH3voH.cjs +0 -1
  132. package/dist/dockerfile-DIy8NleC.js +0 -194
  133. package/dist/dtd-ChoVQPwv.cjs +0 -1
  134. package/dist/dtd-CtLokQ-U.js +0 -84
  135. package/dist/dylan-QYeExnWK.js +0 -234
  136. package/dist/dylan-apTQIgUA.cjs +0 -1
  137. package/dist/ebnf-DUPDuY4r.js +0 -78
  138. package/dist/ebnf-LYmLy17h.cjs +0 -1
  139. package/dist/ecl-C7WNQq7-.cjs +0 -1
  140. package/dist/ecl-CiXN-g_D.js +0 -121
  141. package/dist/eiffel-BJThA8RG.cjs +0 -1
  142. package/dist/eiffel-yQhjl4T1.js +0 -110
  143. package/dist/elm-CNT9vbN0.js +0 -108
  144. package/dist/elm-CcXP9T36.cjs +0 -1
  145. package/dist/erlang-B6mpcObI.cjs +0 -1
  146. package/dist/erlang-CFOYdy9e.js +0 -487
  147. package/dist/es-CqkWVfis.cjs +0 -1
  148. package/dist/fa-DR8j7v-l.cjs +0 -1
  149. package/dist/factor-B-tsx9yW.cjs +0 -1
  150. package/dist/factor-DDOC7X6P.js +0 -65
  151. package/dist/fcl-BzAKklXo.cjs +0 -1
  152. package/dist/fcl-CPC2WYrI.js +0 -103
  153. package/dist/forth-BmxRyE9S.js +0 -60
  154. package/dist/forth-CPAzyZ_n.cjs +0 -1
  155. package/dist/fortran-9bvPyrOW.js +0 -442
  156. package/dist/fortran-DHiTlGV1.cjs +0 -1
  157. package/dist/fr-ClK0mWTO.cjs +0 -1
  158. package/dist/gas-BiPtGF2E.cjs +0 -1
  159. package/dist/gas-cpmYfFX2.js +0 -183
  160. package/dist/gherkin-CJuwpceU.js +0 -34
  161. package/dist/gherkin-Djo7Y51D.cjs +0 -1
  162. package/dist/groovy-BMVITiCm.cjs +0 -1
  163. package/dist/groovy-DZeT_VM-.js +0 -146
  164. package/dist/haskell-Bvt3Qq1t.js +0 -375
  165. package/dist/haskell-CngODaW-.cjs +0 -1
  166. package/dist/haxe-70NVW1pR.js +0 -359
  167. package/dist/haxe-Dyk-piTh.cjs +0 -1
  168. package/dist/he-DeJMBRTP.cjs +0 -1
  169. package/dist/hi-C9Anq8Ae.cjs +0 -1
  170. package/dist/http-BkLifcnL.cjs +0 -1
  171. package/dist/http-D9LttvKF.js +0 -44
  172. package/dist/idl-B6TRFYjl.js +0 -947
  173. package/dist/idl-FmHDmsE-.cjs +0 -1
  174. package/dist/index-0dpJGQbC.js +0 -94
  175. package/dist/index-52kzSRNb.cjs +0 -1
  176. package/dist/index-5a6_6F3Z.cjs +0 -6
  177. package/dist/index-BGHGZg_7.js +0 -552
  178. package/dist/index-BMn-7Ble.js +0 -1307
  179. package/dist/index-BR0F2BVZ.cjs +0 -1
  180. package/dist/index-BlCmv2EJ.cjs +0 -1
  181. package/dist/index-BlamLFdS.js +0 -76
  182. package/dist/index-By8a3eg5.cjs +0 -1
  183. package/dist/index-C0sjoDdy.js +0 -309
  184. package/dist/index-C9RMQY3t.cjs +0 -1
  185. package/dist/index-CDBeAhhM.js +0 -289
  186. package/dist/index-CH2HgQJF.cjs +0 -1
  187. package/dist/index-CT9YDHSn.js +0 -74
  188. package/dist/index-CUZnWZnQ.cjs +0 -3
  189. package/dist/index-CVNvgkJN.js +0 -342
  190. package/dist/index-C_NT6gCL.cjs +0 -1
  191. package/dist/index-CafCsH0Z.cjs +0 -1
  192. package/dist/index-Cei6J0b_.cjs +0 -8
  193. package/dist/index-CmcOKNW2.js +0 -302
  194. package/dist/index-CvpdOKX2.js +0 -136
  195. package/dist/index-CxE1PN5L.cjs +0 -1
  196. package/dist/index-D2BpI4Zz.cjs +0 -2
  197. package/dist/index-D40RPDMJ.cjs +0 -1
  198. package/dist/index-D5iq4kyE.cjs +0 -1
  199. package/dist/index-DFzKuRY8.cjs +0 -1
  200. package/dist/index-DIO9qaw5.cjs +0 -1
  201. package/dist/index-DIR2rO5B.cjs +0 -1
  202. package/dist/index-DPnQDm6f.js +0 -138
  203. package/dist/index-DU0jpFGR.cjs +0 -1
  204. package/dist/index-DUvVsNDG.cjs +0 -13
  205. package/dist/index-DVZnPL32.js +0 -953
  206. package/dist/index-DiYfLAVQ.js +0 -554
  207. package/dist/index-DnIheaHS.js +0 -251
  208. package/dist/index-Dp2K8q6O.cjs +0 -7
  209. package/dist/index-DrlNzz-e.js +0 -59
  210. package/dist/index-Dx9UDsJi.cjs +0 -1
  211. package/dist/index-DxY-AOQA.js +0 -157
  212. package/dist/index-Mmd0YHPJ.js +0 -960
  213. package/dist/index-NyiYUSW3.js +0 -101
  214. package/dist/index-alBMysbQ.js +0 -1874
  215. package/dist/index-lEkIbMCl.js +0 -612
  216. package/dist/index-qwDdlmIi.js +0 -270
  217. package/dist/index-x3mhc_C_.cjs +0 -1
  218. package/dist/it-5n3LuTHe.cjs +0 -1
  219. package/dist/ja-Bdp4_B8-.cjs +0 -1
  220. package/dist/javascript-C2yteZeJ.js +0 -691
  221. package/dist/javascript-DngSGg_0.cjs +0 -1
  222. package/dist/jinja2-DnB6dQmV.js +0 -154
  223. package/dist/jinja2-wbVbDTNi.cjs +0 -1
  224. package/dist/julia-DA67Qw9E.cjs +0 -1
  225. package/dist/julia-DpvXAuO6.js +0 -241
  226. package/dist/ko-B5SwKB-j.cjs +0 -1
  227. package/dist/livescript-Bg3URadp.cjs +0 -1
  228. package/dist/livescript-CanGTf8u.js +0 -272
  229. package/dist/lua-CIsxjGwi.cjs +0 -1
  230. package/dist/lua-XplVlWi_.js +0 -217
  231. package/dist/mathematica-BG089QIc.cjs +0 -1
  232. package/dist/mathematica-jaRHnSxC.js +0 -35
  233. package/dist/mbox-BctzC1hL.js +0 -76
  234. package/dist/mbox-CySolFFZ.cjs +0 -1
  235. package/dist/milkdown/index.cjs.js +0 -1
  236. package/dist/milkdown/index.es.js +0 -4
  237. package/dist/milkdown-input-Bkgdi-Bv.cjs +0 -944
  238. package/dist/milkdown-input-CciSI_a5.js +0 -63967
  239. package/dist/milkdown-url-D99P-nA-.js +0 -4
  240. package/dist/milkdown-url-DqoUZH3u.cjs +0 -1
  241. package/dist/milkdown.css +0 -1914
  242. package/dist/mirc-BfqEffzk.cjs +0 -1
  243. package/dist/mirc-CFBPAOaF.js +0 -72
  244. package/dist/mllike-BSnXJBGA.js +0 -272
  245. package/dist/mllike-QUjwI6zq.cjs +0 -1
  246. package/dist/modal-CAKAT7wv.cjs +0 -1
  247. package/dist/modelica-B6Zhcb-M.cjs +0 -1
  248. package/dist/modelica-vUgVs--1.js +0 -93
  249. package/dist/mscgen-BToym4Bs.cjs +0 -1
  250. package/dist/mscgen-Cpl0NYLN.js +0 -104
  251. package/dist/mumps-CQoS1kWX.js +0 -25
  252. package/dist/mumps-wfyQdxSu.cjs +0 -1
  253. package/dist/nginx-CwqyBUfA.cjs +0 -1
  254. package/dist/nginx-zDPm3Z74.js +0 -89
  255. package/dist/nl-Cenl4nr6.cjs +0 -1
  256. package/dist/notice-DBME6bFw.cjs +0 -2
  257. package/dist/notice-DVEacWKt.js +0 -2275
  258. package/dist/nsis-DPj2fUaP.cjs +0 -1
  259. package/dist/nsis-fePjrhq7.js +0 -62
  260. package/dist/ntriples-CsNjv2QF.js +0 -79
  261. package/dist/ntriples-DgwJmozm.cjs +0 -1
  262. package/dist/octave-1pkKrgAA.cjs +0 -1
  263. package/dist/octave-C8PmmSRH.js +0 -143
  264. package/dist/oz-BXOZCt0U.cjs +0 -1
  265. package/dist/oz-Ce8aN8oE.js +0 -151
  266. package/dist/pascal-De0D6mP7.js +0 -77
  267. package/dist/pascal-DtY2LEkJ.cjs +0 -1
  268. package/dist/perl-B4bSCe1C.js +0 -915
  269. package/dist/perl-CVDWbEju.cjs +0 -1
  270. package/dist/pig-D24Z8EXi.js +0 -54
  271. package/dist/pig-DMByOrnr.cjs +0 -1
  272. package/dist/pl-7xYNCk-v.cjs +0 -1
  273. package/dist/powershell-BaoYaFvj.cjs +0 -1
  274. package/dist/powershell-DkYVfTzP.js +0 -249
  275. package/dist/preprocess-CvkqwVNt.cjs +0 -3
  276. package/dist/preprocess-D898zxsP.js +0 -2295
  277. package/dist/properties-DXHJZ3WE.cjs +0 -1
  278. package/dist/properties-Dn9wna3M.js +0 -26
  279. package/dist/protobuf-BKhXdfH6.cjs +0 -1
  280. package/dist/protobuf-BPIjwpzm.js +0 -49
  281. package/dist/pt-DOLL0Jpj.cjs +0 -1
  282. package/dist/pug-CwAQJzGR.js +0 -248
  283. package/dist/pug-kEfRDOiF.cjs +0 -1
  284. package/dist/puppet-8mAyuMbW.cjs +0 -1
  285. package/dist/puppet-nyd4dhjf.js +0 -45
  286. package/dist/python-BkR3uSy8.js +0 -313
  287. package/dist/python-D-iU6WXz.cjs +0 -1
  288. package/dist/q-BPQ45Nxu.cjs +0 -1
  289. package/dist/q-DXjKs-tC.js +0 -83
  290. package/dist/r-LKEuhEGI.js +0 -104
  291. package/dist/r-r2_EZsON.cjs +0 -1
  292. package/dist/rpm-IznJm2Xc.js +0 -57
  293. package/dist/rpm-YK81m3qU.cjs +0 -1
  294. package/dist/ru-DoS9XuqG.cjs +0 -1
  295. package/dist/ruby-CcYfvIk6.js +0 -228
  296. package/dist/ruby-Cn1sFkZF.cjs +0 -1
  297. package/dist/sas-7E8yHoCW.js +0 -105
  298. package/dist/sas-DAGcJy94.cjs +0 -1
  299. package/dist/scheme-B0ZrbojV.cjs +0 -1
  300. package/dist/scheme-DjibxsNh.js +0 -124
  301. package/dist/shell-BMYo43V6.cjs +0 -1
  302. package/dist/shell-C0C2sNA_.js +0 -182
  303. package/dist/sieve-Bwz7vjP5.js +0 -72
  304. package/dist/sieve-CIYW-b_H.cjs +0 -1
  305. package/dist/simple-mode-B0dvCdAA.js +0 -89
  306. package/dist/simple-mode-BIKNPBes.cjs +0 -1
  307. package/dist/smalltalk-Bhddl2pB.js +0 -48
  308. package/dist/smalltalk-CSslY-3i.cjs +0 -1
  309. package/dist/solr-A1kSnAwJ.cjs +0 -1
  310. package/dist/solr-BNlsLglM.js +0 -41
  311. package/dist/sparql-DnHMBLLY.cjs +0 -1
  312. package/dist/sparql-FarWu_Gb.js +0 -197
  313. package/dist/spreadsheet-B7_BK8hB.cjs +0 -1
  314. package/dist/spreadsheet-C-cy4P5N.js +0 -49
  315. package/dist/sql-9VmIWHrZ.cjs +0 -1
  316. package/dist/sql-CfG5lQ3l.js +0 -282
  317. package/dist/stex-B4wyjEnp.cjs +0 -1
  318. package/dist/stex-Du4h4KAU.js +0 -129
  319. package/dist/stylus-CAdqWld3.js +0 -250
  320. package/dist/stylus-D6GYOT3Z.cjs +0 -1
  321. package/dist/swift-DGw6Cgu8.cjs +0 -1
  322. package/dist/swift-DSxqR9R6.js +0 -230
  323. package/dist/tcl-ByLXbQFo.cjs +0 -1
  324. package/dist/tcl-xfoLljhY.js +0 -81
  325. package/dist/textile-D1AWE-pc.js +0 -295
  326. package/dist/textile-iryw-lTw.cjs +0 -1
  327. package/dist/tiddlywiki-5wqsXtSk.js +0 -155
  328. package/dist/tiddlywiki-D8IJz1k7.cjs +0 -1
  329. package/dist/tiki-C5p5KSQK.cjs +0 -1
  330. package/dist/tiki-__Kn3CeS.js +0 -181
  331. package/dist/toml-3ZsH_4Qa.cjs +0 -1
  332. package/dist/toml-BHiuTcfn.js +0 -49
  333. package/dist/tr-BVmoz40w.cjs +0 -1
  334. package/dist/translations-Dv56lQia.cjs +0 -1
  335. package/dist/troff-D-3QCOYN.cjs +0 -1
  336. package/dist/troff-D2UO-fKf.js +0 -35
  337. package/dist/ttcn-Bsa4sfRm.js +0 -123
  338. package/dist/ttcn-C2MXAqcM.cjs +0 -1
  339. package/dist/ttcn-cfg-BYqcMRxC.cjs +0 -1
  340. package/dist/ttcn-cfg-Bac_acMi.js +0 -88
  341. package/dist/turtle-DSJNatSv.cjs +0 -1
  342. package/dist/turtle-xwJUxoPV.js +0 -80
  343. package/dist/types/components/milkdown/milkdown-input.d.ts +0 -15
  344. package/dist/types/milkdown/index.d.ts +0 -1
  345. package/dist/ur-orNTOdMP.cjs +0 -1
  346. package/dist/utils-Dobqjl2y.cjs +0 -1
  347. package/dist/vb-c2kQGd6-.js +0 -74
  348. package/dist/vb-qzHzzvyB.cjs +0 -1
  349. package/dist/vbscript-1f_Dhg5H.js +0 -324
  350. package/dist/vbscript-CWm8v9tE.cjs +0 -1
  351. package/dist/velocity-D3_yAIp3.cjs +0 -1
  352. package/dist/velocity-DJd0pTTC.js +0 -96
  353. package/dist/verilog-BOhLNmQo.cjs +0 -1
  354. package/dist/verilog-CiS1jyi5.js +0 -262
  355. package/dist/vhdl-CMFbi8Im.cjs +0 -1
  356. package/dist/vhdl-T9HkrbI2.js +0 -106
  357. package/dist/vi-BWyUDP07.cjs +0 -1
  358. package/dist/webidl-CWb_flNk.cjs +0 -1
  359. package/dist/webidl-CjfDENEo.js +0 -155
  360. package/dist/xquery-BUQdORAS.js +0 -422
  361. package/dist/xquery-Cjw5fRnG.cjs +0 -1
  362. package/dist/yacas-C0absKBh.js +0 -73
  363. package/dist/yacas-urx_N5C8.cjs +0 -1
  364. package/dist/z80-CsG3CM6M.cjs +0 -1
  365. package/dist/z80-Pki2zAjW.js +0 -61
  366. package/dist/zh-RVJj1NQq.cjs +0 -1
  367. /package/dist/types/{components/milkdown/milkdown-url.d.ts → prosemirror/styles-url.d.ts} +0 -0
  368. /package/dist/types/{milkdown → prosemirror}/styles.d.ts +0 -0
@@ -0,0 +1,1467 @@
1
+ import { Use as N, coalesce as R, aria as x, attr as o, html as b, on as D, Value as C, Empty as w, computedOf as _, When as V, dataAttr as q, input as Z, emitValue as M, prop as I, Fragment as F, emitValueAsNumber as ee, Unless as se, Ensure as te } from "@tempots/dom";
2
+ import { a as L, B as ne, I as P, b as z, C as W } from "./translations-D4PjDB1t.js";
3
+ const H = /* @__PURE__ */ new Map();
4
+ function K(e) {
5
+ const s = H.get(e) ?? 0;
6
+ return H.set(e, s + 1), `${e}-${s}`;
7
+ }
8
+ const k = {
9
+ /**
10
+ * Creates a loading state.
11
+ * @param previousValue - The previous value.
12
+ * @returns A loading state.
13
+ * @public
14
+ */
15
+ notAsked: { type: "NotAsked" },
16
+ /**
17
+ * Creates a loading state.
18
+ * @param previousValue - The previous value.
19
+ * @returns A loading state.
20
+ * @public
21
+ */
22
+ loading(e = void 0) {
23
+ return { type: "Loading", previousValue: e };
24
+ },
25
+ /**
26
+ * Creates a successful state.
27
+ * @param value - The value.
28
+ * @returns A successful state.
29
+ * @public
30
+ */
31
+ success(e) {
32
+ return { type: "AsyncSuccess", value: e };
33
+ },
34
+ /**
35
+ * Creates a failure state.
36
+ * @param error - The error.
37
+ * @returns A failure state.
38
+ * @public
39
+ */
40
+ failure(e) {
41
+ return { type: "AsyncFailure", error: e };
42
+ },
43
+ /**
44
+ * Checks if the result is a success.
45
+ * @param r - The result.
46
+ * @returns `true` if the result is a success; otherwise, `false`.
47
+ * @public
48
+ */
49
+ isSuccess(e) {
50
+ return e.type === "AsyncSuccess";
51
+ },
52
+ /**
53
+ * Checks if the result is a failure.
54
+ * @param r - The result.
55
+ * @returns `true` if the result is a failure; otherwise, `false`.
56
+ * @public
57
+ */
58
+ isFailure(e) {
59
+ return e.type === "AsyncFailure";
60
+ },
61
+ /**
62
+ * Checks if the result is a not-asked.
63
+ * @param r - The result.
64
+ * @returns `true` if the result is not-asked; otherwise, `false`.
65
+ * @public
66
+ */
67
+ isNotAsked(e) {
68
+ return e.type === "NotAsked";
69
+ },
70
+ /**
71
+ * Checks if the result is a loading.
72
+ * @param r - The result.
73
+ * @returns `true` if the result is loading; otherwise, `false`.
74
+ * @public
75
+ */
76
+ isLoading(e) {
77
+ return e.type === "Loading";
78
+ },
79
+ /**
80
+ * Gets the value if the result is a success; otherwise, returns the alternative value.
81
+ * @param r - The result.
82
+ * @param alt - The alternative value.
83
+ * @returns The value if the result is a success; otherwise, the alternative value.
84
+ * @public
85
+ */
86
+ getOrElse(e, s) {
87
+ return k.isSuccess(e) ? e.value : s;
88
+ },
89
+ /**
90
+ * Gets the value if the result is a success; otherwise, returns the value from the alternative function.
91
+ * @param r - The result.
92
+ * @param altf - The alternative function.
93
+ * @returns The value if the result is a success; otherwise, the value from the alternative
94
+ * @public
95
+ * function.
96
+ */
97
+ getOrElseLazy(e, s) {
98
+ return k.isSuccess(e) ? e.value : s();
99
+ },
100
+ /**
101
+ * Gets the value if the result is a success; otherwise, returns `null`.
102
+ * @param r - The result.
103
+ * @returns The value if the result is a success; otherwise, `null`.
104
+ * @public
105
+ */
106
+ getOrNull(e) {
107
+ return k.isSuccess(e) ? e.value : null;
108
+ },
109
+ /**
110
+ * Gets the value if the result is a success; otherwise, returns `undefined`.
111
+ * @param r - The result.
112
+ * @returns The value if the result is a success; otherwise, `undefined`.
113
+ * @public
114
+ */
115
+ getOrUndefined(e) {
116
+ return k.isSuccess(e) ? e.value : void 0;
117
+ },
118
+ /**
119
+ * Gets the value of a `AsyncResult` if it is a `Success`, otherwise it throws the error contained in the `Failure`.
120
+ * @param r - The `AsyncResult` to get the value from.
121
+ * @returns The value of the `AsyncResult` if it is a `Success`.
122
+ */
123
+ getUnsafe: (e) => {
124
+ if (k.isSuccess(e))
125
+ return e.value;
126
+ throw k.isFailure(e) ? e.error : new Error("Cannot get value from a not-asked or loading result");
127
+ },
128
+ /**
129
+ * Based on the state of the result, it picks the appropriate function to call and returns the result.
130
+ * @param success - The function to call if the result is a success.
131
+ * @param failure - The function to call if the result is a failure.
132
+ * @param loading - The function to call if the result is loading.
133
+ * @param notAsked - The function to call if the result is not-asked.
134
+ * @returns The result of calling the appropriate function based on the state of the result.
135
+ * @public
136
+ */
137
+ match: (e, {
138
+ success: s,
139
+ failure: t,
140
+ loading: a,
141
+ notAsked: n = a
142
+ }) => k.isSuccess(e) ? s(e.value) : k.isFailure(e) ? t(e.error) : k.isNotAsked(e) ? n() : a(e.previousValue),
143
+ /**
144
+ * When the result is a success, it applies the function to the value.
145
+ *
146
+ * @param r - The result.
147
+ * @param apply - The function to apply.
148
+ * @returns The result that was passed in.
149
+ * @public
150
+ */
151
+ whenSuccess: (e, s) => (k.isSuccess(e) && s(e.value), e),
152
+ /**
153
+ * When the result is a failure, it applies the function to the error.
154
+ *
155
+ * @param r - The result.
156
+ * @param apply - The function to apply.
157
+ * @returns The result that was passed in.
158
+ * @public
159
+ */
160
+ whenFailure: (e, s) => (k.isFailure(e) && s(e.error), e),
161
+ /**
162
+ * Compares two results for equality.
163
+ * @param r1 - The first result.
164
+ * @param r2 - The second result.
165
+ * @param options - The options to use for comparison. By default, uses strict equality.
166
+ * @returns `true` if the results are equal, `false` otherwise.
167
+ */
168
+ equals: (e, s, t = {
169
+ valueEquals: (a, n) => a === n,
170
+ errorEquals: (a, n) => a === n
171
+ }) => e.type === "AsyncSuccess" && s.type === "AsyncSuccess" ? t.valueEquals(e.value, s.value) : e.type === "AsyncFailure" && s.type === "AsyncFailure" ? t.errorEquals(e.error, s.error) : e.type === "Loading" && s.type === "Loading" ? t.valueEquals(e.previousValue, s.previousValue) : e.type === "NotAsked" && s.type === "NotAsked",
172
+ /**
173
+ * Combines multiple results into a single result.
174
+ * @param results - The results to combine.
175
+ * @returns A single result that is a success if all the input results are successes, otherwise a failure.
176
+ */
177
+ all: (e) => {
178
+ const s = [];
179
+ for (const t of e)
180
+ if (k.isSuccess(t))
181
+ s.push(t.value);
182
+ else
183
+ return t;
184
+ return k.success(s);
185
+ },
186
+ /**
187
+ * Converts a Promise to an AsyncResult.
188
+ * @param p - The Promise to convert.
189
+ * @returns A Promise that resolves to an AsyncResult.
190
+ */
191
+ ofPromise: async (e) => {
192
+ try {
193
+ const s = await e;
194
+ return k.success(s);
195
+ } catch (s) {
196
+ return k.failure(s instanceof Error ? s : new Error(String(s)));
197
+ }
198
+ }
199
+ }, $ = (e, s) => e === s || e !== e && s !== s, S = {
200
+ /**
201
+ * Creates a valid `Validation`.
202
+ * @returns A `Validation` that is `Valid`.
203
+ */
204
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
205
+ valid: { type: "valid" },
206
+ /**
207
+ * Creates an invalid `Validation`.
208
+ * @param error - The error associated with the invalid value.
209
+ * @returns A `Validation` that is `Invalid`.
210
+ */
211
+ invalid(e) {
212
+ return { type: "invalid", error: e };
213
+ },
214
+ /**
215
+ * Checks if a `Validation` is `Valid`.
216
+ * @param r - The `Validation` to check.
217
+ * @returns `true` if the `Validation` is `Valid`, otherwise `false`.
218
+ */
219
+ isValid(e) {
220
+ return e.type === "valid";
221
+ },
222
+ /**
223
+ * Checks if a `Validation` is `Invalid`.
224
+ * @param r - The `Validation` to check.
225
+ * @returns `true` if the `Validation` is `Invalid`, otherwise `false`.
226
+ */
227
+ isInvalid(e) {
228
+ return e.type === "invalid";
229
+ },
230
+ /**
231
+ * Maps the value of a `Validation` to a new value.
232
+ * @param r - The `Validation` to map.
233
+ * @param valid - The mapping function for a valid value.
234
+ * @param invalid - The mapping function for an invalid value.
235
+ * @returns The mapped value.
236
+ */
237
+ match: (e, s, t) => S.isValid(e) ? s() : t(e.error),
238
+ /**
239
+ * Maps the value of a `Validation` to a new `Validation`.
240
+ * @param validation - The `Validation` to map.
241
+ * @param value - The value to map.
242
+ * @returns A new `Validation` with the mapped value.
243
+ */
244
+ toResult: (e, s) => S.match(
245
+ e,
246
+ () => m.success(s),
247
+ (t) => m.failure(t)
248
+ ),
249
+ /**
250
+ * Execute a function when the `Validation` is valid.
251
+ *
252
+ * @param r - The `Validation` to check.
253
+ * @param apply - The function to execute when the `Validation` is valid.
254
+ * @returns The `Validation` object.
255
+ */
256
+ whenValid: (e, s) => (S.isValid(e) && s(), e),
257
+ /**
258
+ * Execute a function when the `Validation` is invalid.
259
+ *
260
+ * @param r - The `Validation` to check.
261
+ * @param apply - The function to execute when the `Validation` is invalid.
262
+ * @returns The `Validation` object.
263
+ */
264
+ whenInvalid: (e, s) => (S.isInvalid(e) && s(e.error), e)
265
+ }, m = {
266
+ /**
267
+ * Creates a successful `Result`.
268
+ * @param value - The value to wrap in a `Success` type.
269
+ * @returns A `Result` that is a `Success`.
270
+ * @public
271
+ */
272
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
273
+ success(e) {
274
+ return { type: "Success", value: e };
275
+ },
276
+ /**
277
+ * Creates a failure `Result`.
278
+ * @param error - The error to wrap in a `Failure` type.
279
+ * @returns A `Result` that is a `Failure`.
280
+ * @public
281
+ */
282
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
283
+ failure(e) {
284
+ return { type: "Failure", error: e };
285
+ },
286
+ /**
287
+ * Maps the value of a `Result` to a new value.
288
+ * @param r - The `Result` to map.
289
+ * @param f - The mapping function.
290
+ * @returns A new `Result` with the mapped value.
291
+ * @public
292
+ */
293
+ map: (e, s) => e.type === "Success" ? m.success(s(e.value)) : e,
294
+ /**
295
+ * Maps the value of a `Result` to a new `Result`.
296
+ * @param r - The `Result` to map.
297
+ * @param f - The mapping function.
298
+ * @returns A new `Result` with the mapped value.
299
+ * @public
300
+ */
301
+ flatMap: (e, s) => e.type === "Success" ? s(e.value) : e,
302
+ /**
303
+ * Converts a `Result` to an `AsyncResult`.
304
+ * @param r - The `Result` to convert.
305
+ * @returns An `AsyncResult` that is equivalent to the input `Result`.
306
+ * @public
307
+ */
308
+ toAsync(e) {
309
+ return m.match(
310
+ e,
311
+ (s) => k.success(s),
312
+ (s) => k.failure(s)
313
+ );
314
+ },
315
+ /**
316
+ * Converts a `Result` to a `Validation`.
317
+ * @param r - The `Result` to convert.
318
+ * @returns A `Validation` that is equivalent to the input `Result`.
319
+ * @public
320
+ */
321
+ toValidation(e) {
322
+ return m.match(
323
+ e,
324
+ () => S.valid,
325
+ (s) => S.invalid(s)
326
+ );
327
+ },
328
+ /**
329
+ * Checks if a `Result` is a success.
330
+ * @param r - The `Result` to check.
331
+ * @returns `true` if the `Result` is a `Success`, `false` otherwise.
332
+ * @public
333
+ */
334
+ isSuccess(e) {
335
+ return e.type === "Success";
336
+ },
337
+ /**
338
+ * Checks if a `Result` is a failure.
339
+ * @param r - The `Result` to check.
340
+ * @returns `true` if the `Result` is a `Failure`, `false` otherwise.
341
+ * @public
342
+ */
343
+ isFailure(e) {
344
+ return e.type === "Failure";
345
+ },
346
+ /**
347
+ * Gets the value of a `Result` if it is a `Success`, otherwise returns the provided default value.
348
+ * @param r - The `Result` to get the value from.
349
+ * @param alt - The default value to return if the `Result` is a `Failure`.
350
+ * @returns The value of the `Result` if it is a `Success`, otherwise the default value.
351
+ * @public
352
+ */
353
+ getOrElse(e, s) {
354
+ return m.isSuccess(e) ? e.value : s;
355
+ },
356
+ /**
357
+ * Gets the value of a `Result` if it is a `Success`, otherwise returns the result of the provided function.
358
+ * @param r - The `Result` to get the value from.
359
+ * @param altf - The function to call if the `Result` is a `Failure`.
360
+ * @returns The value of the `Result` if it is a `Success`, otherwise the result of the function.
361
+ * @public
362
+ */
363
+ getOrElseLazy(e, s) {
364
+ return m.isSuccess(e) ? e.value : s();
365
+ },
366
+ /**
367
+ * Gets the value of a `Result` if it is a `Success`, otherwise returns `null`.
368
+ * @param r - The `Result` to get the value from.
369
+ * @returns The value of the `Result` if it is a `Success`, otherwise `null`.
370
+ * @public
371
+ */
372
+ getOrNull(e) {
373
+ return m.isSuccess(e) ? e.value : null;
374
+ },
375
+ /**
376
+ * Gets the value of a `Result` if it is a `Success`, otherwise returns `undefined`.
377
+ * @param r - The `Result` to get the value from.
378
+ * @returns The value of the `Result` if it is a `Success`, otherwise `undefined`.
379
+ * @public
380
+ */
381
+ getOrUndefined(e) {
382
+ return m.isSuccess(e) ? e.value : void 0;
383
+ },
384
+ /**
385
+ * Gets the value of a `Result` if it is a `Success`, otherwise it throws the error contained in the `Failure`.
386
+ * @param r - The `Result` to get the value from.
387
+ * @returns The value of the `Result` if it is a `Success`.
388
+ */
389
+ getUnsafe: (e) => {
390
+ if (m.isSuccess(e))
391
+ return e.value;
392
+ throw e.error;
393
+ },
394
+ /**
395
+ * Based on the state of the result, it picks the appropriate function to call and returns the result.
396
+ * @param success - The function to call if the result is a success.
397
+ * @param failure - The function to call if the result is a failure.
398
+ * @returns The result of calling the appropriate function based on the state of the result.
399
+ * @public
400
+ */
401
+ match: (e, s, t) => m.isSuccess(e) ? s(e.value) : t(e.error),
402
+ /**
403
+ * Calls the provided function if the result is a success.
404
+ * @param apply - The function to call if the result is a success.
405
+ * @returns A function that takes a `Result` and calls the provided function if the result is a success.
406
+ * @public
407
+ */
408
+ whenSuccess: (e, s) => (m.isSuccess(e) && s(e.value), e),
409
+ whenFailure: (e, s) => (m.isFailure(e) && s(e.error), e),
410
+ /**
411
+ * Combines two results into a single result.
412
+ * @param r1 - The first result.
413
+ * @param r2 - The second result.
414
+ * @param combineV - The function to combine two values.
415
+ * @param combineE - The function to combine two errors.
416
+ * @returns The combined result.
417
+ * @public
418
+ */
419
+ combine: (e, s, t, a) => m.match(
420
+ e,
421
+ (n) => m.match(
422
+ s,
423
+ (r) => m.success(t(n, r)),
424
+ (r) => m.failure(r)
425
+ ),
426
+ (n) => m.match(
427
+ s,
428
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
429
+ (r) => m.failure(n),
430
+ (r) => m.failure(a(n, r))
431
+ )
432
+ ),
433
+ /**
434
+ * Compares two results for equality.
435
+ * @param r1 - The first result.
436
+ * @param r2 - The second result.
437
+ * @param options - The options to use for comparison. By default, uses strict equality.
438
+ * @returns `true` if the results are equal, `false` otherwise.
439
+ */
440
+ equals: (e, s, t = {
441
+ valueEquals: (a, n) => a === n,
442
+ errorEquals: (a, n) => a === n
443
+ }) => e.type === "Success" && s.type === "Success" ? t.valueEquals(e.value, s.value) : e.type === "Failure" && s.type === "Failure" ? t.errorEquals(e.error, s.error) : !1,
444
+ /**
445
+ * Combines multiple results into a single result.
446
+ * @param results - The results to combine.
447
+ * @returns A single result that is a success if all the input results are successes, otherwise a failure.
448
+ */
449
+ all: (e) => {
450
+ const s = [];
451
+ for (const t of e)
452
+ if (m.isSuccess(t))
453
+ s.push(t.value);
454
+ else
455
+ return t;
456
+ return m.success(s);
457
+ }
458
+ };
459
+ function ae({
460
+ size: e = "sm",
461
+ icon: s = "line-md:close",
462
+ disabled: t,
463
+ roundedness: a = "full",
464
+ color: n = "base",
465
+ onClick: r,
466
+ label: i
467
+ }, ...l) {
468
+ return N(L, (c) => {
469
+ const f = R(i, c.$.closeModal);
470
+ return ne(
471
+ {
472
+ variant: "text",
473
+ size: e,
474
+ roundedness: a,
475
+ disabled: t,
476
+ color: n,
477
+ onClick: r
478
+ },
479
+ o.title(f),
480
+ x.label(f),
481
+ ...l,
482
+ P({ icon: s, size: e ?? "sm" })
483
+ );
484
+ });
485
+ }
486
+ function j(e) {
487
+ return `bc-label bc-label--${e}`;
488
+ }
489
+ const De = (...e) => b.span(o.class(j("emphasis")), ...e), re = (...e) => b.span(o.class(j("default")), ...e), ie = (...e) => b.span(o.class(j("muted")), ...e), Ee = (...e) => b.span(o.class(j("danger")), ...e), Te = (e) => {
490
+ const {
491
+ value: s,
492
+ onBlur: t,
493
+ onChange: a,
494
+ placeholder: n,
495
+ disabled: r,
496
+ id: i,
497
+ checkedIcon: l,
498
+ uncheckedIcon: c,
499
+ iconSize: f = "lg"
500
+ } = e, u = i ?? K("checkbox"), v = `${u}-label`, g = () => {
501
+ if (C.get(r ?? !1)) return;
502
+ const h = C.get(s);
503
+ a?.(!h);
504
+ }, y = (h) => {
505
+ C.get(r ?? !1) || (h.key === " " || h.key === "Enter") && (h.preventDefault(), g());
506
+ };
507
+ return z(
508
+ {
509
+ baseContainer: !0,
510
+ growInput: !1,
511
+ ...e,
512
+ input: b.span(
513
+ o.class("bc-checkbox-input"),
514
+ b.span(
515
+ o.class("bc-checkbox-input__checkbox"),
516
+ o.class(
517
+ C.map(
518
+ s,
519
+ (h) => h ? "bc-checkbox-input__checkbox--checked" : "bc-checkbox-input__checkbox--unchecked"
520
+ )
521
+ ),
522
+ o.class(
523
+ C.map(
524
+ r ?? !1,
525
+ (h) => h ? "bc-checkbox-input__checkbox--disabled" : ""
526
+ )
527
+ ),
528
+ o.id(u),
529
+ o.role("checkbox"),
530
+ o.tabindex(
531
+ C.map(
532
+ r ?? !1,
533
+ (h) => h ? -1 : 0
534
+ )
535
+ ),
536
+ x.checked(s),
537
+ x.disabled(r),
538
+ n != null ? x.labelledby(v) : w,
539
+ D.keydown(y),
540
+ t != null ? D.blur(t) : w,
541
+ P({
542
+ icon: _(
543
+ s,
544
+ l,
545
+ c
546
+ )(
547
+ (h, d, p) => h ? d ?? "akar-icons/check-box-fill" : p ?? "akar-icons/box"
548
+ ),
549
+ accessibility: "decorative",
550
+ size: f
551
+ })
552
+ ),
553
+ n != null ? b.label(
554
+ o.class("bc-checkbox-input__label"),
555
+ o.id(v),
556
+ o.for(u),
557
+ ie(n)
558
+ ) : w
559
+ )
560
+ },
561
+ D.click(g)
562
+ );
563
+ }, le = b.span(
564
+ o.class("bc-input-wrapper__required"),
565
+ " *"
566
+ );
567
+ function ce(e) {
568
+ const s = ["bc-input-wrapper"];
569
+ return e && s.push("bc-input-wrapper--horizontal"), s.join(" ");
570
+ }
571
+ function oe(e, s) {
572
+ const t = ["bc-input-wrapper__label-text"];
573
+ return e ? t.push("bc-input-wrapper__label-text--error") : s ? t.push("bc-input-wrapper__label-text--disabled") : t.push("bc-input-wrapper__label-text--default"), t.join(" ");
574
+ }
575
+ const G = ({
576
+ required: e,
577
+ label: s,
578
+ labelChildren: t,
579
+ context: a,
580
+ description: n,
581
+ content: r,
582
+ error: i,
583
+ labelFor: l,
584
+ hasError: c,
585
+ disabled: f,
586
+ horizontal: u
587
+ }, ...v) => {
588
+ const g = c ?? i != null, y = f ?? !1, h = u ?? !1, d = K("input-wrapper"), p = n ? `${d}-description` : void 0, E = i != null ? `${d}-error` : void 0;
589
+ return b.div(
590
+ o.class(
591
+ C.map(h, (T) => ce(T))
592
+ ),
593
+ s != null || a != null ? b.div(
594
+ o.class("bc-input-wrapper__header"),
595
+ b.div(
596
+ o.class("bc-input-wrapper__label-section"),
597
+ b.label(
598
+ o.class("bc-input-wrapper__label"),
599
+ l != null ? o.for(l) : w,
600
+ b.span(
601
+ o.class(
602
+ _(
603
+ g,
604
+ y
605
+ )(
606
+ (T, A) => oe(
607
+ T ?? !1,
608
+ A ?? !1
609
+ )
610
+ )
611
+ ),
612
+ s
613
+ ),
614
+ s != null && e ? le : w
615
+ ),
616
+ // Show description under label when horizontal
617
+ V(
618
+ _(
619
+ h,
620
+ n
621
+ )((T, A) => T && A != null),
622
+ () => b.div(
623
+ o.class(
624
+ "bc-input-wrapper__description bc-input-wrapper__description--under-label"
625
+ ),
626
+ o.id(p),
627
+ n
628
+ )
629
+ )
630
+ ),
631
+ a != null ? re(a) : w,
632
+ t
633
+ ) : w,
634
+ b.div(
635
+ o.class("bc-input-wrapper__content"),
636
+ // Add data attributes to help inputs inherit accessibility information
637
+ [p, E].filter(Boolean).length > 0 ? q.describedby(
638
+ [p, E].filter(Boolean).join(" ")
639
+ ) : w,
640
+ e ? q.required("true") : w,
641
+ V(g, () => q.invalid("true")),
642
+ r
643
+ ),
644
+ // Show description at bottom only when not horizontal
645
+ V(
646
+ _(
647
+ h,
648
+ n
649
+ )((T, A) => !T && A != null),
650
+ () => b.div(
651
+ o.class("bc-input-wrapper__description"),
652
+ o.id(p),
653
+ n
654
+ )
655
+ ),
656
+ i != null ? V(
657
+ g,
658
+ () => b.div(
659
+ o.class("bc-input-wrapper__error"),
660
+ o.id(E),
661
+ x.live("polite"),
662
+ // Announce errors to screen readers
663
+ o.role("alert"),
664
+ // Mark as alert for immediate attention
665
+ i
666
+ )
667
+ ) : null,
668
+ ...v
669
+ );
670
+ };
671
+ function Ie(...e) {
672
+ return b.div(o.class("bc-stack"), ...e);
673
+ }
674
+ const Ae = (e) => {
675
+ const s = {
676
+ name: "email",
677
+ autocomplete: "email",
678
+ ...e
679
+ }, {
680
+ value: t,
681
+ before: a,
682
+ onBlur: n,
683
+ onChange: r,
684
+ onInput: i,
685
+ placeholder: l
686
+ } = s, c = a ?? P({
687
+ icon: "line-md:email",
688
+ size: "sm",
689
+ color: "neutral"
690
+ });
691
+ return N(
692
+ L,
693
+ (f) => z({
694
+ ...e,
695
+ before: c,
696
+ input: Z.email(
697
+ W(s),
698
+ o.placeholder(R(l, f.$.emailPlaceholderText)),
699
+ o.value(t),
700
+ o.class("bc-input"),
701
+ n != null ? D.blur(M(n)) : w,
702
+ r != null ? D.change(M(r)) : w,
703
+ i != null ? D.input(M(i)) : w
704
+ )
705
+ })
706
+ );
707
+ }, Ve = (e) => {
708
+ const {
709
+ value: s,
710
+ onBlur: t,
711
+ onChange: a,
712
+ onInput: n,
713
+ before: r,
714
+ after: i,
715
+ hasError: l,
716
+ disabled: c,
717
+ autocomplete: f,
718
+ placeholder: u,
719
+ ...v
720
+ } = e, g = {
721
+ name: "password",
722
+ disabled: c,
723
+ ...v
724
+ }, y = I(!0), h = _(
725
+ y,
726
+ f
727
+ )((d, p) => d ? p ?? "current-password" : "off");
728
+ return N(L, (d) => {
729
+ const p = _(
730
+ d.$.passwordPlaceholderText,
731
+ y,
732
+ u
733
+ )((T, A, Y) => A ? "•••••••••••••••" : Y ?? T), E = b.button(
734
+ o.type("button"),
735
+ o.class("bc-input-container__password-toggle"),
736
+ x.label(d.$.togglePasswordVisibility),
737
+ D.click(() => y.update((T) => !T)),
738
+ V(
739
+ y,
740
+ () => P({ icon: "line-md:watch" }),
741
+ () => P({ icon: "line-md:watch-off" })
742
+ )
743
+ );
744
+ return z({
745
+ before: r,
746
+ disabled: c,
747
+ hasError: l,
748
+ input: b.input(
749
+ W({
750
+ ...g,
751
+ autocomplete: h,
752
+ placeholder: p
753
+ }),
754
+ V(
755
+ y,
756
+ () => F(o.type("password")),
757
+ () => F(o.type("text"))
758
+ ),
759
+ o.class("bc-input"),
760
+ o.value(s),
761
+ t != null ? D.blur(M(t)) : w,
762
+ a != null ? D.change(M(a)) : w,
763
+ n != null ? D.input(M(n)) : w
764
+ ),
765
+ after: i != null ? F(E, i) : E
766
+ });
767
+ });
768
+ }, ue = (
769
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
770
+ (e, s) => () => {
771
+ e.markTouched(), s?.();
772
+ }
773
+ ), he = (e, s) => (t) => {
774
+ e.change(t), s?.(t);
775
+ };
776
+ function J(e, s) {
777
+ const { controller: t, onBlur: a, onChange: n, ...r } = s;
778
+ return e({
779
+ id: t.name,
780
+ disabled: t.disabled,
781
+ value: t.value,
782
+ hasError: t.errorVisible,
783
+ ...r,
784
+ onChange: he(t, n),
785
+ onBlur: ue(t, a)
786
+ });
787
+ }
788
+ function Oe(e, s, ...t) {
789
+ return G(
790
+ {
791
+ ...s,
792
+ content: J(
793
+ e,
794
+ s
795
+ )
796
+ },
797
+ ...t
798
+ );
799
+ }
800
+ function de(e, s) {
801
+ const { toInput: t, fromInput: a, controller: n, ...r } = s, i = n.transform(t, a);
802
+ return J(e, {
803
+ ...r,
804
+ controller: i
805
+ });
806
+ }
807
+ function Me(e, s, ...t) {
808
+ return G(
809
+ {
810
+ ...s,
811
+ content: de(e, s)
812
+ },
813
+ ...t
814
+ );
815
+ }
816
+ function $e(e) {
817
+ return e.split(".").map((t) => {
818
+ const a = t.match(/^\[(\d+)\]$/);
819
+ return a ? Number(a[1]) : t;
820
+ });
821
+ }
822
+ function pe(e) {
823
+ return typeof e == "number" ? `[${e}]` : `.${e}`;
824
+ }
825
+ function fe(e) {
826
+ if (e.length === 0) return "";
827
+ const [s, ...t] = e;
828
+ return [
829
+ typeof s == "number" ? `[${s}]` : s,
830
+ ...t.map(pe)
831
+ ].join("");
832
+ }
833
+ function B(e) {
834
+ return function(t) {
835
+ if (t.type === "valid") return t;
836
+ let a = t.error;
837
+ for (const n of e)
838
+ if (a = a?.dependencies?.[n], a == null) return S.valid;
839
+ return S.invalid(a);
840
+ };
841
+ }
842
+ class O {
843
+ path;
844
+ change;
845
+ value;
846
+ status;
847
+ error;
848
+ hasError;
849
+ touched;
850
+ errorVisible;
851
+ dirty;
852
+ dependencyErrors;
853
+ #e = {
854
+ disabled: I(!1),
855
+ touched: I(!1)
856
+ };
857
+ #t;
858
+ #s = I(void 0);
859
+ parent;
860
+ disabled;
861
+ #n = [];
862
+ disabledOrHasErrors;
863
+ constructor(s, t, a, n, r, i = $) {
864
+ this.path = s, this.change = t, this.value = a, this.status = n, this.#t = i, this.#s.set(a.value), this.error = n.map(
865
+ (l) => l?.type === "invalid" ? l.error?.message : void 0
866
+ ), this.hasError = this.error.map((l) => l != null), this.touched = this.#e.touched, r.validationMode ? this.errorVisible = _(
867
+ this.hasError,
868
+ this.touched,
869
+ r.validationMode
870
+ )((l, c, f) => f === "continuous" ? !!l : !!l && !!c) : this.errorVisible = _(
871
+ this.hasError,
872
+ this.touched
873
+ )((l, c) => !!l && !!c), this.dirty = _(
874
+ this.value,
875
+ this.#s
876
+ )((l, c) => !this.#t(l, c)), this.dependencyErrors = n.map(
877
+ (l) => l?.type === "invalid" ? l.error?.dependencies : void 0
878
+ ), this.parent = r, this.disabled = _(
879
+ this.#e.disabled,
880
+ r.disabled
881
+ )((l, c) => l || c), this.disabledOrHasErrors = _(
882
+ this.disabled,
883
+ this.hasError
884
+ )((l, c) => l || c), this.onDispose(() => {
885
+ this.#e.disabled.dispose(), this.#e.touched.dispose(), this.disabled.dispose(), this.error.dispose(), this.errorVisible.dispose(), this.dirty.dispose(), this.#s.dispose(), this.dependencyErrors.dispose(), this.disabledOrHasErrors.dispose();
886
+ });
887
+ }
888
+ get name() {
889
+ return fe(this.path);
890
+ }
891
+ onDispose = (s) => {
892
+ this.#n.push(s);
893
+ };
894
+ dispose = () => {
895
+ for (const s of this.#n)
896
+ try {
897
+ s();
898
+ } catch (t) {
899
+ console.error("Error in dispose callback:", t);
900
+ }
901
+ this.#n.length = 0;
902
+ };
903
+ setDisabled = (s) => {
904
+ this.#e.disabled.set(s);
905
+ };
906
+ disable = () => this.setDisabled(!0);
907
+ enable = () => this.setDisabled(!1);
908
+ markTouched = () => {
909
+ this.#e.touched.set(!0);
910
+ };
911
+ resetTouched = () => {
912
+ this.#e.touched.set(!1);
913
+ };
914
+ markPristine = () => {
915
+ this.#s.set(this.value.value);
916
+ };
917
+ reset = () => {
918
+ this.change(this.#s.value);
919
+ };
920
+ array = (s = $) => new me(
921
+ this.path,
922
+ this.change,
923
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
924
+ this.value,
925
+ this.status,
926
+ this.parent,
927
+ s
928
+ );
929
+ object = (s = $) => new be(
930
+ this.path,
931
+ this.change,
932
+ this.value,
933
+ this.status,
934
+ this.parent,
935
+ s
936
+ );
937
+ transform = (s, t, a = [], n = $) => new O(
938
+ [...this.path, ...a],
939
+ (r) => this.change(t(r)),
940
+ this.value.map(s, n),
941
+ this.status.map(B(a)),
942
+ this.parent,
943
+ n
944
+ );
945
+ asyncTransform = (s, t, a, n = [], r = $) => new O(
946
+ [...this.path, ...n],
947
+ (i) => {
948
+ t(i).then((l) => this.change(l));
949
+ },
950
+ this.value.mapAsync(s, a, void 0, r),
951
+ this.status.map(B(n)),
952
+ this.parent,
953
+ r
954
+ );
955
+ }
956
+ class be extends O {
957
+ #e = /* @__PURE__ */ new Map();
958
+ #t = /* @__PURE__ */ new Map();
959
+ #s = /* @__PURE__ */ new Map();
960
+ #n = I(!1);
961
+ touchedDeep = this.#n;
962
+ #r = /* @__PURE__ */ new Map();
963
+ #a = /* @__PURE__ */ new Map();
964
+ #l = I(!1);
965
+ dirtyDeep = this.#l;
966
+ #o;
967
+ #u;
968
+ #c = () => {
969
+ let s = !1;
970
+ for (const t of this.#t.values())
971
+ if (t) {
972
+ s = !0;
973
+ break;
974
+ }
975
+ this.#n.set(this.touched.value || s);
976
+ };
977
+ constructor(s, t, a, n, r, i) {
978
+ super(
979
+ s,
980
+ t,
981
+ a.map((c) => c ?? {}, i),
982
+ n,
983
+ r,
984
+ i
985
+ ), this.#o = this.touched.on(() => {
986
+ this.#c();
987
+ }), this.#u = this.dirty.on(() => {
988
+ this.#i();
989
+ });
990
+ const l = this.value.on(() => this.#i());
991
+ this.onDispose(() => {
992
+ for (const c of this.#e.values())
993
+ c.dispose();
994
+ this.#e.clear();
995
+ for (const c of this.#s.values()) c();
996
+ this.#s.clear(), this.#t.clear(), this.#n.dispose();
997
+ for (const c of this.#a.values()) c();
998
+ this.#a.clear(), this.#r.clear(), this.#l.dispose(), this.#o(), this.#u(), l();
999
+ });
1000
+ }
1001
+ field = (s) => {
1002
+ if (this.#e.has(s))
1003
+ return this.#e.get(s);
1004
+ const t = async (i) => {
1005
+ this.change({
1006
+ ...this.value.value,
1007
+ [s]: i
1008
+ });
1009
+ }, a = new O(
1010
+ [...this.path, s],
1011
+ t,
1012
+ this.value.map((i) => i[s]),
1013
+ this.status.map(B([s])),
1014
+ {
1015
+ disabled: this.disabled,
1016
+ // propagate validationMode to children if present
1017
+ validationMode: this.parent.validationMode
1018
+ }
1019
+ );
1020
+ this.#e.set(s, a);
1021
+ const n = a.touched.on((i) => {
1022
+ this.#t.set(s, i), this.#c();
1023
+ });
1024
+ this.#s.set(s, n);
1025
+ const r = a.dirty.on((i) => {
1026
+ this.#r.set(s, i), this.#i();
1027
+ });
1028
+ return this.#a.set(s, r), a;
1029
+ };
1030
+ markAllTouched = () => {
1031
+ this.markTouched();
1032
+ const s = this.value.value;
1033
+ for (const t of Object.keys(s))
1034
+ this.field(t).markTouched();
1035
+ for (const t of this.#e.values())
1036
+ t.markTouched();
1037
+ };
1038
+ markAllPristine = () => {
1039
+ this.markPristine();
1040
+ const s = this.value.value;
1041
+ for (const t of Object.keys(s))
1042
+ this.field(t).markPristine?.();
1043
+ for (const t of this.#e.values())
1044
+ t.markPristine?.();
1045
+ };
1046
+ #i = () => {
1047
+ let s = !1;
1048
+ for (const t of this.#r.values())
1049
+ if (t) {
1050
+ s = !0;
1051
+ break;
1052
+ }
1053
+ this.#l.set(this.dirty.value || s);
1054
+ };
1055
+ }
1056
+ class me extends O {
1057
+ #e = new Array();
1058
+ length;
1059
+ #t = /* @__PURE__ */ new Map();
1060
+ #s = /* @__PURE__ */ new Map();
1061
+ #n = I(!1);
1062
+ touchedDeep = this.#n;
1063
+ #r = /* @__PURE__ */ new Map();
1064
+ #a = /* @__PURE__ */ new Map();
1065
+ #l = I(!1);
1066
+ dirtyDeep = this.#l;
1067
+ #o;
1068
+ #u;
1069
+ #c = () => {
1070
+ let s = !1;
1071
+ for (const t of this.#t.values())
1072
+ if (t) {
1073
+ s = !0;
1074
+ break;
1075
+ }
1076
+ this.#n.set(this.touched.value || s);
1077
+ };
1078
+ constructor(s, t, a, n, r, i) {
1079
+ const l = a.map((u) => u ?? [], i);
1080
+ super(s, t, l, n, r, i);
1081
+ const c = l.on((u) => {
1082
+ const v = this.#e.length - u.length;
1083
+ v > 0 && (this.#e.splice(u.length, v).forEach((g, y) => {
1084
+ const h = u.length + y;
1085
+ g.dispose(), this.#s.get(h)?.(), this.#s.delete(h), this.#t.delete(h), this.#a.get(h)?.(), this.#a.delete(h), this.#r.delete(h);
1086
+ }), this.#c(), this.#i());
1087
+ });
1088
+ this.length = l.map((u) => u.length), this.#o = this.touched.on(() => {
1089
+ this.#c();
1090
+ }), this.#u = this.dirty.on(() => {
1091
+ this.#i();
1092
+ });
1093
+ const f = this.value.on(() => this.#i());
1094
+ this.onDispose(() => {
1095
+ for (const u of this.#e)
1096
+ u.dispose();
1097
+ this.length.dispose(), this.#e.length = 0, c(), l.dispose();
1098
+ for (const u of this.#s.values()) u();
1099
+ this.#s.clear(), this.#t.clear(), this.#n.dispose();
1100
+ for (const u of this.#a.values()) u();
1101
+ this.#a.clear(), this.#r.clear(), this.#l.dispose(), this.#o(), this.#u(), f();
1102
+ });
1103
+ }
1104
+ item = (s) => {
1105
+ if (this.#e[s])
1106
+ return this.#e[s];
1107
+ const t = async (i) => {
1108
+ const l = this.value.value.slice();
1109
+ l[s] = i, this.change(l);
1110
+ }, a = new O(
1111
+ [...this.path, s],
1112
+ t,
1113
+ this.value.map((i) => i[s]),
1114
+ this.status.map(B([s])),
1115
+ {
1116
+ disabled: this.disabled,
1117
+ validationMode: this.parent.validationMode
1118
+ }
1119
+ );
1120
+ this.#e[s] = a;
1121
+ const n = a.touched.on((i) => {
1122
+ this.#t.set(s, i), this.#c();
1123
+ });
1124
+ this.#s.set(s, n);
1125
+ const r = a.dirty.on((i) => {
1126
+ this.#r.set(s, i), this.#i();
1127
+ });
1128
+ return this.#a.set(s, r), a;
1129
+ };
1130
+ push = (...s) => {
1131
+ this.change([...this.value.value, ...s]);
1132
+ };
1133
+ pop = () => {
1134
+ this.splice(this.value.value.length - 1, 1);
1135
+ };
1136
+ shift = () => {
1137
+ this.splice(0, 1);
1138
+ };
1139
+ unshift = (...s) => {
1140
+ this.change([...s, ...this.value.value]);
1141
+ };
1142
+ removeAt = (s) => {
1143
+ this.splice(s, 1);
1144
+ };
1145
+ splice = (s, t) => {
1146
+ const a = this.value.value.slice();
1147
+ a.splice(s, t), this.change(a);
1148
+ };
1149
+ move = (s, t, a = 1) => {
1150
+ if (a < 1 || s === t) return;
1151
+ const n = this.value.value.slice(), r = n.splice(s, a);
1152
+ n.splice(t, 0, ...r), this.change(n);
1153
+ };
1154
+ markAllTouched = () => {
1155
+ this.markTouched();
1156
+ const s = this.value.value.length;
1157
+ for (let t = 0; t < s; t++)
1158
+ this.item(t).markTouched();
1159
+ };
1160
+ markAllPristine = () => {
1161
+ this.markPristine();
1162
+ const s = this.value.value.length;
1163
+ for (let t = 0; t < s; t++)
1164
+ this.item(t).markPristine?.();
1165
+ };
1166
+ #i = () => {
1167
+ let s = !1;
1168
+ for (const t of this.#r.values())
1169
+ if (t) {
1170
+ s = !0;
1171
+ break;
1172
+ }
1173
+ this.#l.set(this.dirty.value || s);
1174
+ };
1175
+ }
1176
+ function ve(e) {
1177
+ function s(t) {
1178
+ return typeof t == "number" ? t : t.toString();
1179
+ }
1180
+ return e.map(
1181
+ (t) => typeof t == "object" && t.key != null ? s(t.key) : s(t)
1182
+ );
1183
+ }
1184
+ function ye(e) {
1185
+ const s = e.filter((n) => n.path == null || n.path.length === 0).map((n) => n.message), t = e.filter((n) => n.path != null && n.path.length > 0).reduce((n, r) => {
1186
+ const i = ve(r.path), l = i.pop();
1187
+ let c = n;
1188
+ for (const f of i)
1189
+ c.dependencies == null && (c.dependencies = {}), c.dependencies[f] == null && (c.dependencies[f] = {}), c = c.dependencies[f];
1190
+ return c.dependencies == null && (c.dependencies = {}), c.dependencies[l] = { message: r.message }, n;
1191
+ }, {}), a = s.join(`
1192
+ `);
1193
+ return {
1194
+ ...t,
1195
+ message: a != "" ? a : void 0
1196
+ };
1197
+ }
1198
+ function ge({
1199
+ initialValue: e,
1200
+ onChange: s,
1201
+ validate: t,
1202
+ equals: a,
1203
+ validationMode: n,
1204
+ validateDebounceMs: r
1205
+ }) {
1206
+ const i = C.deriveProp(e), l = I(S.valid), c = I(!1), f = I(n ?? "touchedOrSubmit"), u = (d) => {
1207
+ l.set(d);
1208
+ };
1209
+ let v;
1210
+ const g = async (d) => {
1211
+ if (t != null) {
1212
+ const p = await t(d);
1213
+ u(p);
1214
+ }
1215
+ }, y = async (d) => {
1216
+ i.set(d), s?.(d);
1217
+ const p = f.value;
1218
+ if (t != null) {
1219
+ if (p === "onSubmit")
1220
+ return;
1221
+ const E = r ?? 0;
1222
+ E > 0 ? (v && clearTimeout(v), v = setTimeout(() => {
1223
+ g(d);
1224
+ }, E)) : await g(d);
1225
+ }
1226
+ }, h = new O(
1227
+ [],
1228
+ y,
1229
+ i,
1230
+ l,
1231
+ {
1232
+ disabled: c,
1233
+ validationMode: f
1234
+ },
1235
+ a ?? $
1236
+ );
1237
+ return h.onDispose(() => {
1238
+ c.dispose(), i.dispose(), l.dispose(), f.dispose(), v && clearTimeout(v);
1239
+ }), { controller: h, setStatus: u };
1240
+ }
1241
+ function Q(e) {
1242
+ return F(o.disabled(e.disabled), o.name(e.name));
1243
+ }
1244
+ function xe(e, {
1245
+ triggerOn: s = "change"
1246
+ } = {}) {
1247
+ return F(
1248
+ Q(e),
1249
+ o.value(e.value),
1250
+ (s === "input" ? D.input : D.change)(M(e.change))
1251
+ );
1252
+ }
1253
+ function Fe(e, {
1254
+ triggerOn: s = "change"
1255
+ } = {}) {
1256
+ return F(
1257
+ Q(e),
1258
+ o.valueAsNumber(e.value),
1259
+ (s === "input" ? D.input : D.change)(
1260
+ ee(e.change)
1261
+ )
1262
+ );
1263
+ }
1264
+ function U(e) {
1265
+ return e.issues != null ? S.invalid(ye(e.issues)) : S.valid;
1266
+ }
1267
+ async function Pe({
1268
+ task: e,
1269
+ errorMessage: s,
1270
+ errorPath: t = ["root"],
1271
+ validation: a
1272
+ }) {
1273
+ try {
1274
+ const n = await e();
1275
+ return a != null ? a(n) : S.valid;
1276
+ } catch (n) {
1277
+ const r = s ?? (n instanceof Error ? n.message : "Operation failed");
1278
+ return t.length === 1 && t[0] === "root" ? S.invalid({
1279
+ message: r
1280
+ }) : S.invalid({
1281
+ dependencies: X(t, r)
1282
+ });
1283
+ }
1284
+ }
1285
+ function X(e, s) {
1286
+ if (e.length === 1)
1287
+ return {
1288
+ [e[0]]: { message: s }
1289
+ };
1290
+ const [t, ...a] = e;
1291
+ return {
1292
+ [t]: {
1293
+ dependencies: X(a, s)
1294
+ }
1295
+ };
1296
+ }
1297
+ function Be({
1298
+ initialValue: e = {},
1299
+ schema: s,
1300
+ onSubmit: t = async () => S.valid,
1301
+ validationMode: a,
1302
+ validateDebounceMs: n
1303
+ }) {
1304
+ const { controller: r, setStatus: i } = ge({
1305
+ initialValue: e,
1306
+ validationMode: a ?? "touchedOrSubmit",
1307
+ validateDebounceMs: n,
1308
+ validate: (a ?? "touchedOrSubmit") === "onSubmit" ? void 0 : async (u) => U(
1309
+ await s["~standard"].validate(u)
1310
+ )
1311
+ }), l = I(!1), c = r.object();
1312
+ return c.onDispose(l.dispose), {
1313
+ controller: c,
1314
+ setStatus: i,
1315
+ submit: async (u) => {
1316
+ if (l.set(!0), u?.preventDefault(), c.markAllTouched(), (a ?? "touchedOrSubmit") === "onSubmit") {
1317
+ const g = c.value.value, y = U(
1318
+ await s["~standard"].validate(g)
1319
+ );
1320
+ if (i(y), y.type === "invalid") {
1321
+ l.set(!1);
1322
+ return;
1323
+ }
1324
+ }
1325
+ const v = await t(c.value.value);
1326
+ l.set(!1), v.type === "invalid" && i(v);
1327
+ },
1328
+ submitting: l
1329
+ };
1330
+ }
1331
+ function ke(e) {
1332
+ switch (e) {
1333
+ case "success":
1334
+ return "material-symbols:check-circle-outline";
1335
+ case "warning":
1336
+ return "material-symbols:warning-outline";
1337
+ case "danger":
1338
+ return "material-symbols:error-outline";
1339
+ case "info":
1340
+ default:
1341
+ return "material-symbols:info-outline";
1342
+ }
1343
+ }
1344
+ function we(e) {
1345
+ switch (e) {
1346
+ case "success":
1347
+ return "success";
1348
+ case "warning":
1349
+ return "warning";
1350
+ case "danger":
1351
+ return "danger";
1352
+ case "info":
1353
+ default:
1354
+ return "info";
1355
+ }
1356
+ }
1357
+ function Se(e, s, t, a) {
1358
+ const n = [
1359
+ "bc-notice",
1360
+ `bc-notice--${e}`,
1361
+ `bc-notice--tone-${s}`
1362
+ ];
1363
+ return t && n.push("bc-notice--dismissible"), a && a.length > 0 && n.push(a), n.join(" ");
1364
+ }
1365
+ function Ne({
1366
+ variant: e = "info",
1367
+ tone: s = "subtle",
1368
+ role: t,
1369
+ title: a,
1370
+ icon: n,
1371
+ closable: r = !1,
1372
+ onDismiss: i,
1373
+ class: l
1374
+ }, ...c) {
1375
+ const f = C.map(
1376
+ r,
1377
+ (d) => !!d || i != null
1378
+ ), u = C.map(e, (d) => d ?? "info"), v = C.map(s, (d) => d ?? "subtle"), g = _(
1379
+ t,
1380
+ u
1381
+ )(
1382
+ (d, p) => d ?? (p === "danger" ? "alert" : "status")
1383
+ ), y = I(!0), h = N(
1384
+ L,
1385
+ (d) => b.div(
1386
+ o.class(
1387
+ _(
1388
+ u,
1389
+ v,
1390
+ f,
1391
+ l
1392
+ )((p, E, T, A) => Se(p, E, T, A))
1393
+ ),
1394
+ // Accessibility role mapping (always defined)
1395
+ o.role(C.map(g, (p) => p)),
1396
+ se(
1397
+ C.map(n, (p) => p === !1),
1398
+ () => b.div(
1399
+ o.class("bc-notice__icon"),
1400
+ P({
1401
+ icon: _(
1402
+ n,
1403
+ u
1404
+ )((p, E) => p === void 0 ? ke(E) : String(p)),
1405
+ size: "md",
1406
+ color: C.map(u, we)
1407
+ })
1408
+ )
1409
+ ),
1410
+ b.div(
1411
+ o.class("bc-notice__body"),
1412
+ te(a, (p) => b.div(o.class("bc-notice__title"), p)),
1413
+ b.div(o.class("bc-notice__content"), ...c)
1414
+ ),
1415
+ V(
1416
+ f,
1417
+ () => ae({
1418
+ size: "xs",
1419
+ label: d.$.closeModal,
1420
+ onClick: () => {
1421
+ y.set(!1), i?.();
1422
+ }
1423
+ })
1424
+ )
1425
+ )
1426
+ );
1427
+ return V(y, () => h);
1428
+ }
1429
+ export {
1430
+ me as A,
1431
+ J as B,
1432
+ ae as C,
1433
+ Ee as D,
1434
+ Ae as E,
1435
+ G as I,
1436
+ re as L,
1437
+ Me as M,
1438
+ Ne as N,
1439
+ $ as O,
1440
+ Ve as P,
1441
+ le as R,
1442
+ Ie as S,
1443
+ S as a,
1444
+ Te as b,
1445
+ Oe as c,
1446
+ he as d,
1447
+ O as e,
1448
+ B as f,
1449
+ de as g,
1450
+ fe as h,
1451
+ be as i,
1452
+ ve as j,
1453
+ ye as k,
1454
+ ge as l,
1455
+ ue as m,
1456
+ Q as n,
1457
+ xe as o,
1458
+ $e as p,
1459
+ Fe as q,
1460
+ U as r,
1461
+ K as s,
1462
+ Pe as t,
1463
+ Be as u,
1464
+ De as v,
1465
+ pe as w,
1466
+ ie as x
1467
+ };