@tempots/beatui 0.95.0 → 1.0.1

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 (239) hide show
  1. package/dist/{ar-BVXPzVJB.cjs → ar-CuI1Jgt6.cjs} +1 -1
  2. package/dist/{ar-B4jDJwHQ.js → ar-DaKbK_t8.js} +87 -11
  3. package/dist/auth/index.cjs.js +1 -1
  4. package/dist/auth/index.es.js +1 -1
  5. package/dist/{auth-divider-BPwKk8MW.js → auth-divider-CbME_yVQ.js} +87 -86
  6. package/dist/auth-divider-MMhfmLBu.cjs +1 -0
  7. package/dist/beatui.css +1628 -545
  8. package/dist/beatui.tailwind.css +1628 -545
  9. package/dist/better-auth/index.cjs.js +1 -1
  10. package/dist/better-auth/index.es.js +6 -6
  11. package/dist/codehighlight/index.cjs.js +22 -0
  12. package/dist/codehighlight/index.es.js +76 -0
  13. package/dist/colors-B-p6IzX9.cjs +1 -0
  14. package/dist/{colors-BY0Ja_bf.js → colors-DwufPN8S.js} +18 -18
  15. package/dist/{de-Dd33yWzb.js → de-3MTPDS1i.js} +82 -6
  16. package/dist/{de-BdfPZskW.cjs → de-DthHehbh.cjs} +1 -1
  17. package/dist/{deep-merge-C8dSqIXI.js → deep-merge-BzIheQtH.js} +511 -517
  18. package/dist/deep-merge-EkjEgK0N.cjs +1 -0
  19. package/dist/{duration-input-IuFWywO5.cjs → duration-input-ClgYjeBa.cjs} +1 -1
  20. package/dist/{duration-input-DFZwkg6M.js → duration-input-DGzmIImj.js} +5 -5
  21. package/dist/{editor-toolbar-group-DiJFgGcI.js → editor-toolbar-group-Crlu1QJw.js} +3 -3
  22. package/dist/{editor-toolbar-group-BCBfu8pG.cjs → editor-toolbar-group-mkL4QozO.cjs} +1 -1
  23. package/dist/es-B6GJLk9h.cjs +1 -0
  24. package/dist/{es-jHMT3_7O.js → es-DwMUvBeU.js} +94 -18
  25. package/dist/{fa-eX3_BAZR.js → fa-0rvQiKrJ.js} +87 -11
  26. package/dist/{fa-BXnP4pbN.cjs → fa-BwgP93iV.cjs} +1 -1
  27. package/dist/{fr-Bj-GjMJm.js → fr-B4i6NzLl.js} +86 -10
  28. package/dist/{fr-HJDhGjI2.cjs → fr-CQzk5zqY.cjs} +1 -1
  29. package/dist/{he-DYgmPPkG.js → he-C71n-hsn.js} +87 -11
  30. package/dist/{he-C6nEVZhN.cjs → he-DcxxvRfs.cjs} +1 -1
  31. package/dist/{hi-DMVSXAJt.cjs → hi-D-KHVWg4.cjs} +1 -1
  32. package/dist/{hi-CgYLonE9.js → hi-xmrXpeVU.js} +87 -11
  33. package/dist/index-B5MAsOC-.cjs +1 -0
  34. package/dist/{index-B8cqD9ny.js → index-C3o9GSH6.js} +106 -105
  35. package/dist/index.cjs.js +4 -4
  36. package/dist/index.es.js +8055 -5285
  37. package/dist/input-container-BvEcp7FU.js +275 -0
  38. package/dist/input-container-Di1YvVB_.cjs +1 -0
  39. package/dist/{it-CO2BPqah.js → it-CDZTtOBC.js} +83 -7
  40. package/dist/{it-DhfVcjKb.cjs → it-D344Dutu.cjs} +1 -1
  41. package/dist/{ja-Bt6fGS_Q.cjs → ja-BNgnDZ27.cjs} +1 -1
  42. package/dist/{ja-BrzwjH8T.js → ja-Zz1LzidW.js} +91 -15
  43. package/dist/json-schema/index.cjs.js +1 -1
  44. package/dist/json-schema/index.es.js +261 -257
  45. package/dist/json-schema-display/index.cjs.js +1 -1
  46. package/dist/json-schema-display/index.es.js +2 -2
  47. package/dist/json-structure/index.cjs.js +1 -1
  48. package/dist/json-structure/index.es.js +132 -133
  49. package/dist/{ko-D-lJ4wYQ.js → ko-9laUsZDL.js} +90 -14
  50. package/dist/{ko-DfAaBGrz.cjs → ko-D-WJ9NK7.cjs} +1 -1
  51. package/dist/lexical/index.cjs.js +2 -39
  52. package/dist/lexical/index.es.js +2056 -20626
  53. package/dist/markdown/index.cjs.js +1 -1
  54. package/dist/markdown/index.es.js +41 -4
  55. package/dist/{menu-CV85y3Xf.js → menu-B8yoDMRS.js} +23 -23
  56. package/dist/menu-B92oSDct.cjs +1 -0
  57. package/dist/modal-BT0jjDqX.cjs +1 -0
  58. package/dist/{modal-CwZuWiSK.js → modal-DBguyX-b.js} +9 -9
  59. package/dist/monaco/index.cjs.js +2 -2
  60. package/dist/monaco/index.es.js +7 -7
  61. package/dist/{nl-CNWBQjK5.cjs → nl-CrqUlFie.cjs} +1 -1
  62. package/dist/{nl-ClsworIe.js → nl-Dcll9fVA.js} +86 -10
  63. package/dist/notice-B5wTXoTq.cjs +1 -0
  64. package/dist/{notice-D7hYFM5A.js → notice-BKcyJD5w.js} +37 -37
  65. package/dist/oneof-branch-detection-J_DYEEcD.js +1077 -0
  66. package/dist/oneof-branch-detection-ZUBZ6hqy.cjs +1 -0
  67. package/dist/{pl-CqHTeu3-.cjs → pl-9UksIrvX.cjs} +1 -1
  68. package/dist/{pl-WTwLAxnV.js → pl-Dm9N9Gbr.js} +83 -7
  69. package/dist/prosemirror/index.cjs.js +3 -1
  70. package/dist/prosemirror/index.es.js +636 -4
  71. package/dist/{pt-CgkjJnsG.js → pt-CFi5cn0k.js} +88 -12
  72. package/dist/{pt-BQmsiqbo.cjs → pt-_kfdzwqi.cjs} +1 -1
  73. package/dist/{ru-CtgH7OY9.js → ru-CEhZUw8R.js} +91 -15
  74. package/dist/{ru-CG56A2To.cjs → ru-CW1WNNlr.cjs} +1 -1
  75. package/dist/stack-BLMteGTn.js +15 -0
  76. package/dist/stack-dwLevGa2.cjs +1 -0
  77. package/dist/tailwind/preset.cjs.js +1 -1
  78. package/dist/tailwind/preset.es.js +2 -2
  79. package/dist/tailwind/vite-plugin.cjs.js +1 -1
  80. package/dist/tailwind/vite-plugin.es.js +1 -1
  81. package/dist/text-input-DfqXolVe.js +55 -0
  82. package/dist/text-input-X_q01NsY.cjs +1 -0
  83. package/dist/toolbar-DY0ax2Qd.js +130 -0
  84. package/dist/toolbar-DoKdYXIL.cjs +1 -0
  85. package/dist/{tr-DE7_VtKu.cjs → tr-B6GIRegf.cjs} +1 -1
  86. package/dist/{tr-D1O1vEmr.js → tr-ZmnVDhLP.js} +81 -5
  87. package/dist/{translations-yu4gNqlP.js → translations-A4kR7CW8.js} +1 -1
  88. package/dist/{translations-DyCmyLE_.js → translations-B1_yyDUK.js} +207 -129
  89. package/dist/{translations-DBxIjvWR.cjs → translations-C81buKAw.cjs} +1 -1
  90. package/dist/translations-Dbx7L7Q1.cjs +1 -0
  91. package/dist/types/beatui-i18n/default.d.ts +71 -0
  92. package/dist/types/beatui-i18n/locales/en.d.ts +71 -0
  93. package/dist/types/beatui-i18n/translations.d.ts +71 -0
  94. package/dist/types/codehighlight/code-highlight.d.ts +21 -0
  95. package/dist/types/codehighlight/index.d.ts +14 -0
  96. package/dist/types/components/button/toggle-button.d.ts +4 -4
  97. package/dist/types/components/data/avatar.d.ts +3 -1
  98. package/dist/types/components/data/badge.d.ts +10 -18
  99. package/dist/types/components/data/column-filter-panel.d.ts +31 -0
  100. package/dist/types/components/data/column-filter.d.ts +110 -0
  101. package/dist/types/components/data/column-header-menu.d.ts +42 -0
  102. package/dist/types/components/data/data-source.d.ts +190 -0
  103. package/dist/types/components/data/data-table-body.d.ts +12 -0
  104. package/dist/types/components/data/data-table-column-toggle.d.ts +4 -0
  105. package/dist/types/components/data/data-table-context.d.ts +53 -0
  106. package/dist/types/components/data/data-table-header.d.ts +6 -0
  107. package/dist/types/components/data/data-table-resolve.d.ts +26 -0
  108. package/dist/types/components/data/data-table-types.d.ts +201 -0
  109. package/dist/types/components/data/data-table.d.ts +38 -0
  110. package/dist/types/components/data/data-toolbar.d.ts +44 -0
  111. package/dist/types/components/data/date-picker-shared.d.ts +55 -0
  112. package/dist/types/components/data/date-picker.d.ts +58 -0
  113. package/dist/types/components/data/date-range-picker.d.ts +56 -0
  114. package/dist/types/components/data/filter.d.ts +268 -0
  115. package/dist/types/components/data/index.d.ts +13 -4
  116. package/dist/types/components/data/indicator.d.ts +41 -0
  117. package/dist/types/components/data/progress-bar.d.ts +2 -2
  118. package/dist/types/components/data/selection-checkbox.d.ts +63 -0
  119. package/dist/types/components/data/skeleton.d.ts +1 -1
  120. package/dist/types/components/data/sortable-header.d.ts +55 -0
  121. package/dist/types/components/data/unstyled-drop-zone.d.ts +2 -2
  122. package/dist/types/components/form/control/control.d.ts +9 -9
  123. package/dist/types/components/form/input/advanced-slider.d.ts +6 -6
  124. package/dist/types/components/form/input/appearance-selector.d.ts +9 -2
  125. package/dist/types/components/form/input/bigint-input.d.ts +3 -3
  126. package/dist/types/components/form/input/checkbox-input.d.ts +6 -7
  127. package/dist/types/components/form/input/color-input.d.ts +1 -1
  128. package/dist/types/components/form/input/color-swatch-input.d.ts +3 -3
  129. package/dist/types/components/form/input/combobox-input.d.ts +5 -5
  130. package/dist/types/components/form/input/combobox-tags-input.d.ts +5 -5
  131. package/dist/types/components/form/input/date-input.d.ts +4 -4
  132. package/dist/types/components/form/input/date-time-input.d.ts +4 -4
  133. package/dist/types/components/form/input/dropdown-input.d.ts +5 -5
  134. package/dist/types/components/form/input/editable-text.d.ts +2 -2
  135. package/dist/types/components/form/input/index.d.ts +1 -0
  136. package/dist/types/components/form/input/input-container.d.ts +1 -1
  137. package/dist/types/components/form/input/input-options.d.ts +28 -1
  138. package/dist/types/components/form/input/mask-input.d.ts +8 -2
  139. package/dist/types/components/form/input/native-select.d.ts +3 -3
  140. package/dist/types/components/form/input/nullable-bigint-input.d.ts +3 -3
  141. package/dist/types/components/form/input/nullable-date-input.d.ts +2 -2
  142. package/dist/types/components/form/input/nullable-date-time-input.d.ts +2 -2
  143. package/dist/types/components/form/input/nullable-rating-input.d.ts +8 -8
  144. package/dist/types/components/form/input/nullable-uuid-input.d.ts +4 -4
  145. package/dist/types/components/form/input/number-input.d.ts +3 -3
  146. package/dist/types/components/form/input/otp-input.d.ts +12 -12
  147. package/dist/types/components/form/input/rating-input.d.ts +7 -8
  148. package/dist/types/components/form/input/select-tags-input.d.ts +5 -5
  149. package/dist/types/components/form/input/switch.d.ts +2 -2
  150. package/dist/types/components/form/input/tri-state-checkbox-input.d.ts +82 -0
  151. package/dist/types/components/form/input/uuid-input.d.ts +2 -2
  152. package/dist/types/components/json-structure/controls/uuid-control.d.ts +1 -1
  153. package/dist/types/components/layout/card.d.ts +66 -0
  154. package/dist/types/components/layout/collapse.d.ts +2 -2
  155. package/dist/types/components/layout/flex.d.ts +26 -0
  156. package/dist/types/components/layout/index.d.ts +1 -0
  157. package/dist/types/components/lexical/floating/slash-command-palette.d.ts +2 -2
  158. package/dist/types/components/media/pdf-page-viewer.d.ts +8 -5
  159. package/dist/types/components/misc/index.d.ts +1 -0
  160. package/dist/types/components/misc/loading-overlay.d.ts +29 -0
  161. package/dist/types/components/misc/notice.d.ts +4 -4
  162. package/dist/types/components/misc/notification-provider.d.ts +9 -3
  163. package/dist/types/components/misc/notification.d.ts +9 -9
  164. package/dist/types/components/navigation/breadcrumbs.d.ts +1 -1
  165. package/dist/types/components/navigation/menu.d.ts +6 -6
  166. package/dist/types/components/navigation/pagination.d.ts +17 -4
  167. package/dist/types/components/navigation/sidebar/sidebar-link.d.ts +2 -2
  168. package/dist/types/components/navigation/tabs/tabs.d.ts +17 -8
  169. package/dist/types/components/navigation/toolbar/toolbar.d.ts +12 -6
  170. package/dist/types/components/overlay/announcement-bar.d.ts +12 -4
  171. package/dist/types/components/overlay/dialogs.d.ts +2 -2
  172. package/dist/types/components/overlay/modal.d.ts +9 -2
  173. package/dist/types/components/overlay/tooltip.d.ts +6 -6
  174. package/dist/types/components/theme/types.d.ts +15 -4
  175. package/dist/types/lexical/plugins/slash-commands.d.ts +1 -1
  176. package/dist/types/tokens/z-index.d.ts +18 -18
  177. package/dist/types/utils/use-animated-toggle.d.ts +12 -4
  178. package/dist/{ur-ZJgsSpG2.cjs → ur-CtFl_tz6.cjs} +1 -1
  179. package/dist/{ur-BcuB7IqE.js → ur-yYgj3NmT.js} +87 -11
  180. package/dist/use-animated-toggle-C3asw_Sg.js +207 -0
  181. package/dist/use-animated-toggle-cKcuItmz.cjs +1 -0
  182. package/dist/use-form-CaW192gw.cjs +2 -0
  183. package/dist/{use-form-CfxvyTfd.js → use-form-Dn6v2tEh.js} +153 -152
  184. package/dist/utils-DmEuG3Np.cjs +1 -0
  185. package/dist/utils-vUtP6iPG.js +165 -0
  186. package/dist/{vi-D0rQ3dIx.js → vi-D5u4CLQO.js} +88 -12
  187. package/dist/{vi-BOgLRkuK.cjs → vi-DyCZSpsk.cjs} +1 -1
  188. package/dist/widget-customization-B49MeU4E.cjs +1 -0
  189. package/dist/widget-customization-DEiQ_31d.js +1063 -0
  190. package/dist/{zh-DoYqiZO1.js → zh-B0kwMMer.js} +90 -14
  191. package/dist/{zh-BTZ8OZ4H.cjs → zh-C3ZxMQKb.cjs} +1 -1
  192. package/package.json +208 -37
  193. package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
  194. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  195. package/dist/auth-divider-BgaQ8ifw.cjs +0 -1
  196. package/dist/colors-BI0YhONJ.cjs +0 -1
  197. package/dist/deep-merge-ChJQbUKq.cjs +0 -1
  198. package/dist/es-C8TpneCm.cjs +0 -1
  199. package/dist/hls.light.min-C6xKDzRR.cjs +0 -27
  200. package/dist/hls.light.min-hEMf_E8u.js +0 -8311
  201. package/dist/index-1JaBwDB-.js +0 -921
  202. package/dist/index-CN10Cyqr.cjs +0 -1
  203. package/dist/index-CTcbhnPw.cjs +0 -4
  204. package/dist/index-DF7RFzD9.cjs +0 -1
  205. package/dist/index-D_zOXmU5.cjs +0 -36
  206. package/dist/index-DfPkCwdC.js +0 -2709
  207. package/dist/index-vowHNIPH.js +0 -14308
  208. package/dist/index-yOU4Ceaq.js +0 -68
  209. package/dist/index-zQ3IYJFH.cjs +0 -1
  210. package/dist/input-container-BWYHj0Iq.cjs +0 -1
  211. package/dist/input-container-DMoVdH6E.js +0 -263
  212. package/dist/menu-De_-sGeb.cjs +0 -1
  213. package/dist/modal-CiGmgsOI.cjs +0 -1
  214. package/dist/notice-CPZQuxcA.cjs +0 -1
  215. package/dist/oneof-branch-detection-BFxukD63.cjs +0 -8
  216. package/dist/oneof-branch-detection-izpPjBCR.js +0 -6290
  217. package/dist/stack-4VUGISn6.cjs +0 -1
  218. package/dist/stack-Bm-UZosx.js +0 -879
  219. package/dist/string-B9vVyfq3.cjs +0 -1
  220. package/dist/string-DYyMxBl-.js +0 -19
  221. package/dist/text-input-BLupB3cU.js +0 -45
  222. package/dist/text-input-M6WBhhVj.cjs +0 -1
  223. package/dist/timer-BJHOsuS6.cjs +0 -1
  224. package/dist/timer-Rd2sKnvH.js +0 -65
  225. package/dist/toolbar-Be1eU0qU.js +0 -118
  226. package/dist/toolbar-WWv5kcYG.cjs +0 -1
  227. package/dist/translations-OOsMRpX9.cjs +0 -1
  228. package/dist/types/components/data/calendar-shared.d.ts +0 -59
  229. package/dist/types/components/data/calendar.d.ts +0 -107
  230. package/dist/types/components/data/icon-badge.d.ts +0 -14
  231. package/dist/types/components/data/range-calendar.d.ts +0 -104
  232. package/dist/types/components/data/tag.d.ts +0 -51
  233. package/dist/use-animated-toggle-C7PTmnZi.js +0 -195
  234. package/dist/use-animated-toggle-DrqK7nUS.cjs +0 -1
  235. package/dist/use-form-ClA0ZRco.cjs +0 -2
  236. package/dist/utils-DEbsp9Q9.js +0 -129
  237. package/dist/utils-DIUEhA-Z.cjs +0 -1
  238. package/dist/widget-customization-CLZNGavL.js +0 -1042
  239. package/dist/widget-customization-DtEEo35Y.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-OOsMRpX9.cjs"),r={loadingExtended:"جاري التحميل، يرجى الانتظار",loadingShort:"جاري التحميل...",locale:"اللغة",iconDescription:"أيقونة",loadingIcon:"أيقونة التحميل",failedToLoadIcon:"فشل في تحميل الأيقونة",editLabel:"تحرير",selectOne:"اختر واحد",selectNone:"لا شيء",selectMany:"اختر عدة",noResults:"لا نتائج",passwordPlaceholderText:"كلمة المرور السرية",togglePasswordVisibility:"إظهار/إخفاء كلمة المرور",toggleMenu:"تبديل القائمة",toggleAside:"تبديل اللوحة الجانبية",mainNavigation:"القائمة الرئيسية",sidebar:"الشريط الجانبي",closeDrawer:"إغلاق الدرج",closeModal:"إغلاق النافذة المنبثقة",confirm:"تأكيد",cancel:"إلغاء",addLabel:"إضافة",removeItem:"إزالة العنصر",currentLocale:"العربية",ar:"العربية",de:"الألمانية",en:"الإنجليزية",es:"الأسبانية",fr:"الفرنسية",hi:"الهندية",it:"الإيطالية",ja:"اليابانية",ko:"الكورية",nl:"الهولندية",pl:"البولندية",pt:"البرتغالية",ru:"الروسية",tr:"التركية",vi:"الفيتنامية",zh:"الصينية",he:"العبرية",fa:"الفارسية",ur:"الأردية",emailPlaceholderText:"بريدك الإلكتروني",incrementValue:"زيادة القيمة",decrementValue:"تقليل القيمة",dropZoneInstructions:e=>e?"انقر للاختيار أو اسحب الملفات هنا، أو اضغط Enter أو Space لفتح محدد الملفات":"اسحب الملفات هنا",fileSizeUnits:["بايت","ك.ب","م.ب","ج.ب","ت.ب"],removeFile:"إزالة الملف",clearAllFiles:"مسح كل الملفات",clearValue:"مسح القيمة",unknownType:"نوع غير معروف",filesInputInstructions:(e,o,n)=>{let l=e==null||e>1?"انقر للاختيار أو اسحب الملفات هنا":"انقر للاختيار أو اسحب ملف هنا";if(e||o){const t=[];if(e!=null&&e>1&&t.push(`حتى ${e} ملفات`),o&&n){const a=i.formatFileSize(o,{units:n});t.push(`حد أقصى ${a} لكل ملف`)}t.length>0&&(l+=` (${t.join("، ")})`)}return l},paginationLabel:"ترقيم الصفحات",firstPage:"الصفحة الأولى",previousPage:"الصفحة السابقة",nextPage:"الصفحة التالية",lastPage:"الصفحة الأخيرة",breadcrumbs:"مسار التنقل",commandPalette:"لوحة الأوامر",typeACommand:"اكتب أمراً...",noResultsFound:"لم يتم العثور على نتائج",noMatchingCommands:"لا توجد أوامر مطابقة",appearanceSystem:"النظام",appearanceLight:"فاتح",appearanceDark:"داكن",ok:"OK",changeTypeConfirmation:"سيؤدي تغيير النوع إلى مسح القيمة الحالية. هل تريد المتابعة؟",notifications:"الإشعارات",markAllAsRead:"تحديد الكل كمقروء",noNotifications:"لا توجد إشعارات",schemaConflictsDetected:"تم اكتشاف تعارضات في المخطط",schemaViolationsDetected:"تم اكتشاف انتهاكات في المخطط",properties:"الخصائص",uploading:"جاري الرفع...",dropFilesOrBrowse:"أسقط الملفات هنا أو انقر للتصفح",acceptedTypes:e=>`الأنواع المقبولة: ${e}`,enterUrlPrompt:"أدخل الرابط:",exceeded:"(تم التجاوز)",pdfPreview:"معاينة PDF",lexical:{fontFamily:"نوع الخط",fontSize:"حجم الخط",lineHeight:"ارتفاع السطر",fontColor:"لون الخط",highlightColor:"لون التمييز",backgroundColor:"لون الخلفية",bold:"غامق",italic:"مائل",underline:"تسطير",strikethrough:"يتوسطه خط",code:"رمز",clearFormatting:"مسح التنسيق",normal:"عادي",heading:e=>`عنوان ${e}`,bulletList:"قائمة نقطية",orderedList:"قائمة مرقمة",checkList:"قائمة مهام",indent:"مسافة بادئة",outdent:"إزالة المسافة البادئة",blockquote:"اقتباس",codeBlock:"كتلة رمز",horizontalRule:"خط أفقي",insertTable:"إدراج جدول",link:"رابط",undo:"تراجع",redo:"إعادة",cut:"قص",copy:"نسخ",paste:"لصق",defaultOption:"افتراضي",slashCommands:"أوامر الشرطة المائلة",noCommandsFound:"لم يتم العثور على أوامر",changeBlockType:"تغيير نوع الكتلة",blockTypes:"أنواع الكتل",enterUrl:"أدخل الرابط:",tableActions:"Table actions",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table"},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,o)=>`Page ${e} is out of range (1-${o})`,renderFailed:"Failed to render PDF page"}};exports.default=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./translations-Dbx7L7Q1.cjs"),r={loadingExtended:"جاري التحميل، يرجى الانتظار",loadingShort:"جاري التحميل...",locale:"اللغة",iconDescription:"أيقونة",loadingIcon:"أيقونة التحميل",failedToLoadIcon:"فشل في تحميل الأيقونة",editLabel:"تحرير",selectOne:"اختر واحد",selectNone:"لا شيء",selectMany:"اختر عدة",noResults:"لا نتائج",passwordPlaceholderText:"كلمة المرور السرية",togglePasswordVisibility:"إظهار/إخفاء كلمة المرور",toggleMenu:"تبديل القائمة",toggleAside:"تبديل اللوحة الجانبية",mainNavigation:"القائمة الرئيسية",sidebar:"الشريط الجانبي",closeDrawer:"إغلاق الدرج",closeModal:"إغلاق النافذة المنبثقة",confirm:"تأكيد",cancel:"إلغاء",addLabel:"إضافة",removeItem:"إزالة العنصر",currentLocale:"العربية",ar:"العربية",de:"الألمانية",en:"الإنجليزية",es:"الأسبانية",fr:"الفرنسية",hi:"الهندية",it:"الإيطالية",ja:"اليابانية",ko:"الكورية",nl:"الهولندية",pl:"البولندية",pt:"البرتغالية",ru:"الروسية",tr:"التركية",vi:"الفيتنامية",zh:"الصينية",he:"العبرية",fa:"الفارسية",ur:"الأردية",emailPlaceholderText:"بريدك الإلكتروني",incrementValue:"زيادة القيمة",decrementValue:"تقليل القيمة",dropZoneInstructions:e=>e?"انقر للاختيار أو اسحب الملفات هنا، أو اضغط Enter أو Space لفتح محدد الملفات":"اسحب الملفات هنا",fileSizeUnits:["بايت","ك.ب","م.ب","ج.ب","ت.ب"],removeFile:"إزالة الملف",clearAllFiles:"مسح كل الملفات",clearValue:"مسح القيمة",unknownType:"نوع غير معروف",filesInputInstructions:(e,t,l)=>{let n=e==null||e>1?"انقر للاختيار أو اسحب الملفات هنا":"انقر للاختيار أو اسحب ملف هنا";if(e||t){const o=[];if(e!=null&&e>1&&o.push(`حتى ${e} ملفات`),t&&l){const a=i.formatFileSize(t,{units:l});o.push(`حد أقصى ${a} لكل ملف`)}o.length>0&&(n+=` (${o.join("، ")})`)}return n},paginationLabel:"ترقيم الصفحات",firstPage:"الصفحة الأولى",previousPage:"الصفحة السابقة",nextPage:"الصفحة التالية",lastPage:"الصفحة الأخيرة",breadcrumbs:"مسار التنقل",commandPalette:"لوحة الأوامر",typeACommand:"اكتب أمراً...",noResultsFound:"لم يتم العثور على نتائج",noMatchingCommands:"لا توجد أوامر مطابقة",appearanceSystem:"النظام",appearanceLight:"فاتح",appearanceDark:"داكن",ok:"OK",changeTypeConfirmation:"سيؤدي تغيير النوع إلى مسح القيمة الحالية. هل تريد المتابعة؟",notifications:"الإشعارات",markAllAsRead:"تحديد الكل كمقروء",noNotifications:"لا توجد إشعارات",schemaConflictsDetected:"تم اكتشاف تعارضات في المخطط",schemaViolationsDetected:"تم اكتشاف انتهاكات في المخطط",properties:"الخصائص",uploading:"جاري الرفع...",dropFilesOrBrowse:"أسقط الملفات هنا أو انقر للتصفح",acceptedTypes:e=>`الأنواع المقبولة: ${e}`,enterUrlPrompt:"أدخل الرابط:",exceeded:"(تم التجاوز)",pdfPreview:"معاينة PDF",lexical:{fontFamily:"نوع الخط",fontSize:"حجم الخط",lineHeight:"ارتفاع السطر",fontColor:"لون الخط",highlightColor:"لون التمييز",backgroundColor:"لون الخلفية",bold:"غامق",italic:"مائل",underline:"تسطير",strikethrough:"يتوسطه خط",code:"رمز",clearFormatting:"مسح التنسيق",normal:"عادي",heading:e=>`عنوان ${e}`,bulletList:"قائمة نقطية",orderedList:"قائمة مرقمة",checkList:"قائمة مهام",indent:"مسافة بادئة",outdent:"إزالة المسافة البادئة",blockquote:"اقتباس",codeBlock:"كتلة رمز",horizontalRule:"خط أفقي",insertTable:"إدراج جدول",link:"رابط",undo:"تراجع",redo:"إعادة",cut:"قص",copy:"نسخ",paste:"لصق",defaultOption:"افتراضي",slashCommands:"أوامر الشرطة المائلة",noCommandsFound:"لم يتم العثور على أوامر",changeBlockType:"تغيير نوع الكتلة",blockTypes:"أنواع الكتل",enterUrl:"أدخل الرابط:",tableActions:"Table actions",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table"},dataTable:{sortAscending:"ترتيب تصاعدي",sortDescending:"ترتيب تنازلي",clearSort:"مسح الترتيب",filterPlaceholder:"تصفية...",clearFilter:"مسح التصفية",selectAll:"تحديد الكل",deselectAll:"إلغاء تحديد الكل",selectedCount:e=>`${e} محدد`,resetAll:"إعادة تعيين الكل",noResults:"لم يتم العثور على نتائج",loading:"جارٍ التحميل...",filterPanelAddCondition:"إضافة شرط",filterPanelApply:"تطبيق",filterPanelClear:"مسح الفلاتر",filterPanelAnd:"و",filterPanelOr:"أو",filterPanelContains:"يحتوي على",filterPanelNotContains:"لا يحتوي على",filterPanelEquals:"يساوي",filterPanelNotEquals:"لا يساوي",filterPanelStartsWith:"يبدأ بـ",filterPanelEndsWith:"ينتهي بـ",filterPanelIsNull:"فارغ",filterPanelIsNotNull:"غير فارغ",filterPanelGt:"أكبر من",filterPanelGte:"أكبر من أو يساوي",filterPanelLt:"أقل من",filterPanelLte:"أقل من أو يساوي",filterPanelBetween:"بين",filterPanelValuePlaceholder:"القيمة...",sortMultiHint:"اضغط Shift للترتيب حسب أعمدة متعددة",columnVisibility:"الأعمدة",showAllColumns:"إظهار الكل",menuSortAsc:"ترتيب تصاعدي",menuSortDesc:"ترتيب تنازلي",menuClearSort:"مسح الترتيب",menuHideColumn:"إخفاء العمود",menuChooseColumns:"اختيار الأعمدة",menuResetColumns:"إعادة تعيين الأعمدة",menuFilter:"تصفية",rowCount:(e,t)=>`الصفوف: ${e} إجمالي الصفوف: ${t}`,filterTagsPlaceholder:"اختر القيم...",groupCount:e=>`${e} عناصر`,collapseGroup:"طي المجموعة",expandGroup:"توسيع المجموعة",describeFilter:{textContains:(e,t)=>`${e} يحتوي على "${t}"`,textNotContains:(e,t)=>`${e} لا يحتوي على "${t}"`,textEquals:(e,t)=>`${e} يساوي "${t}"`,textNotEquals:(e,t)=>`${e} لا يساوي "${t}"`,textStartsWith:(e,t)=>`${e} يبدأ بـ "${t}"`,textEndsWith:(e,t)=>`${e} ينتهي بـ "${t}"`,compareEq:(e,t)=>`${e} = ${t}`,compareNeq:(e,t)=>`${e} ≠ ${t}`,compareGt:(e,t)=>`${e} > ${t}`,compareGte:(e,t)=>`${e} ≥ ${t}`,compareLt:(e,t)=>`${e} < ${t}`,compareLte:(e,t)=>`${e} ≤ ${t}`,rangeBetween:(e,t,l)=>`${e} بين ${t} و ${l}`,rangeGte:(e,t)=>`${e} ≥ ${t}`,rangeLte:(e,t)=>`${e} ≤ ${t}`,setIn:(e,t)=>`${e} ضمن [${t}]`,setNotIn:(e,t)=>`${e} ليس ضمن [${t}]`,booleanIs:(e,t)=>`${e} هو ${t}`,isNull:e=>`${e} فارغ`,isNotNull:e=>`${e} ليس فارغاً`,compositeAnd:e=>e.join(" و "),compositeOr:e=>e.join(" أو ")}},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"},pdfPageViewer:{loading:"Loading PDF...",loadFailed:"Failed to load PDF",invalidPdf:"Invalid PDF file",pageOutOfRange:(e,t)=>`Page ${e} is out of range (1-${t})`,renderFailed:"Failed to render PDF page"}};exports.default=r;
@@ -1,5 +1,5 @@
1
- import { f as i } from "./translations-DyCmyLE_.js";
2
- const d = {
1
+ import { f as i } from "./translations-B1_yyDUK.js";
2
+ const s = {
3
3
  loadingExtended: "جاري التحميل، يرجى الانتظار",
4
4
  loadingShort: "جاري التحميل...",
5
5
  locale: "اللغة",
@@ -58,17 +58,17 @@ const d = {
58
58
  // inputs reset
59
59
  clearValue: "مسح القيمة",
60
60
  unknownType: "نوع غير معروف",
61
- filesInputInstructions: (e, o, l) => {
61
+ filesInputInstructions: (e, t, l) => {
62
62
  let n = e == null || e > 1 ? "انقر للاختيار أو اسحب الملفات هنا" : "انقر للاختيار أو اسحب ملف هنا";
63
- if (e || o) {
64
- const t = [];
65
- if (e != null && e > 1 && t.push(`حتى ${e} ملفات`), o && l) {
66
- const a = i(o, {
63
+ if (e || t) {
64
+ const o = [];
65
+ if (e != null && e > 1 && o.push(`حتى ${e} ملفات`), t && l) {
66
+ const a = i(t, {
67
67
  units: l
68
68
  });
69
- t.push(`حد أقصى ${a} لكل ملف`);
69
+ o.push(`حد أقصى ${a} لكل ملف`);
70
70
  }
71
- t.length > 0 && (n += ` (${t.join("، ")})`);
71
+ o.length > 0 && (n += ` (${o.join("، ")})`);
72
72
  }
73
73
  return n;
74
74
  },
@@ -156,6 +156,82 @@ const d = {
156
156
  deleteTable: "Delete table"
157
157
  },
158
158
  // prosemirror
159
+ dataTable: {
160
+ sortAscending: "ترتيب تصاعدي",
161
+ sortDescending: "ترتيب تنازلي",
162
+ clearSort: "مسح الترتيب",
163
+ filterPlaceholder: "تصفية...",
164
+ clearFilter: "مسح التصفية",
165
+ selectAll: "تحديد الكل",
166
+ deselectAll: "إلغاء تحديد الكل",
167
+ selectedCount: (e) => `${e} محدد`,
168
+ resetAll: "إعادة تعيين الكل",
169
+ noResults: "لم يتم العثور على نتائج",
170
+ loading: "جارٍ التحميل...",
171
+ // Filter panel
172
+ filterPanelAddCondition: "إضافة شرط",
173
+ filterPanelApply: "تطبيق",
174
+ filterPanelClear: "مسح الفلاتر",
175
+ filterPanelAnd: "و",
176
+ filterPanelOr: "أو",
177
+ filterPanelContains: "يحتوي على",
178
+ filterPanelNotContains: "لا يحتوي على",
179
+ filterPanelEquals: "يساوي",
180
+ filterPanelNotEquals: "لا يساوي",
181
+ filterPanelStartsWith: "يبدأ بـ",
182
+ filterPanelEndsWith: "ينتهي بـ",
183
+ filterPanelIsNull: "فارغ",
184
+ filterPanelIsNotNull: "غير فارغ",
185
+ filterPanelGt: "أكبر من",
186
+ filterPanelGte: "أكبر من أو يساوي",
187
+ filterPanelLt: "أقل من",
188
+ filterPanelLte: "أقل من أو يساوي",
189
+ filterPanelBetween: "بين",
190
+ filterPanelValuePlaceholder: "القيمة...",
191
+ sortMultiHint: "اضغط Shift للترتيب حسب أعمدة متعددة",
192
+ columnVisibility: "الأعمدة",
193
+ showAllColumns: "إظهار الكل",
194
+ // Column header menu
195
+ menuSortAsc: "ترتيب تصاعدي",
196
+ menuSortDesc: "ترتيب تنازلي",
197
+ menuClearSort: "مسح الترتيب",
198
+ menuHideColumn: "إخفاء العمود",
199
+ menuChooseColumns: "اختيار الأعمدة",
200
+ menuResetColumns: "إعادة تعيين الأعمدة",
201
+ menuFilter: "تصفية",
202
+ // Row count footer
203
+ rowCount: (e, t) => `الصفوف: ${e} إجمالي الصفوف: ${t}`,
204
+ // Tags filter
205
+ filterTagsPlaceholder: "اختر القيم...",
206
+ // Group by
207
+ groupCount: (e) => `${e} عناصر`,
208
+ collapseGroup: "طي المجموعة",
209
+ expandGroup: "توسيع المجموعة",
210
+ describeFilter: {
211
+ textContains: (e, t) => `${e} يحتوي على "${t}"`,
212
+ textNotContains: (e, t) => `${e} لا يحتوي على "${t}"`,
213
+ textEquals: (e, t) => `${e} يساوي "${t}"`,
214
+ textNotEquals: (e, t) => `${e} لا يساوي "${t}"`,
215
+ textStartsWith: (e, t) => `${e} يبدأ بـ "${t}"`,
216
+ textEndsWith: (e, t) => `${e} ينتهي بـ "${t}"`,
217
+ compareEq: (e, t) => `${e} = ${t}`,
218
+ compareNeq: (e, t) => `${e} ≠ ${t}`,
219
+ compareGt: (e, t) => `${e} > ${t}`,
220
+ compareGte: (e, t) => `${e} ≥ ${t}`,
221
+ compareLt: (e, t) => `${e} < ${t}`,
222
+ compareLte: (e, t) => `${e} ≤ ${t}`,
223
+ rangeBetween: (e, t, l) => `${e} بين ${t} و ${l}`,
224
+ rangeGte: (e, t) => `${e} ≥ ${t}`,
225
+ rangeLte: (e, t) => `${e} ≤ ${t}`,
226
+ setIn: (e, t) => `${e} ضمن [${t}]`,
227
+ setNotIn: (e, t) => `${e} ليس ضمن [${t}]`,
228
+ booleanIs: (e, t) => `${e} هو ${t}`,
229
+ isNull: (e) => `${e} فارغ`,
230
+ isNotNull: (e) => `${e} ليس فارغاً`,
231
+ compositeAnd: (e) => e.join(" و "),
232
+ compositeOr: (e) => e.join(" أو ")
233
+ }
234
+ },
159
235
  prosemirror: {
160
236
  bold: "Bold",
161
237
  italic: "Italic",
@@ -175,10 +251,10 @@ const d = {
175
251
  loading: "Loading PDF...",
176
252
  loadFailed: "Failed to load PDF",
177
253
  invalidPdf: "Invalid PDF file",
178
- pageOutOfRange: (e, o) => `Page ${e} is out of range (1-${o})`,
254
+ pageOutOfRange: (e, t) => `Page ${e} is out of range (1-${t})`,
179
255
  renderFailed: "Failed to render PDF page"
180
256
  }
181
257
  };
182
258
  export {
183
- d as default
259
+ s as default
184
260
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../auth-divider-BgaQ8ifw.cjs");exports.AmazonLoginButton=o.AmazonLoginButton;exports.AppleLoginButton=o.AppleLoginButton;exports.AuthContainer=o.AuthContainer;exports.AuthDivider=o.AuthDivider;exports.AuthModal=o.AuthModal;exports.DiscordLoginButton=o.DiscordLoginButton;exports.EpicLoginButton=o.EpicLoginButton;exports.FacebookLoginButton=o.FacebookLoginButton;exports.GitHubLoginButton=o.GitHubLoginButton;exports.GoogleLoginButton=o.GoogleLoginButton;exports.InstagramLoginButton=o.InstagramLoginButton;exports.LinkedInLoginButton=o.LinkedInLoginButton;exports.MicrosoftLoginButton=o.MicrosoftLoginButton;exports.PasswordStrengthBar=o.PasswordStrengthBar;exports.PasswordStrengthIndicator=o.PasswordStrengthIndicator;exports.PasswordStrengthText=o.PasswordStrengthText;exports.PayPalLoginButton=o.PayPalLoginButton;exports.PinterestLoginButton=o.PinterestLoginButton;exports.PlayStationLoginButton=o.PlayStationLoginButton;exports.RedditLoginButton=o.RedditLoginButton;exports.ResetPasswordForm=o.ResetPasswordForm;exports.SignInForm=o.SignInForm;exports.SignUpForm=o.SignUpForm;exports.SnapchatLoginButton=o.SnapchatLoginButton;exports.SocialLoginButton=o.SocialLoginButton;exports.SocialLoginButtons=o.SocialLoginButtons;exports.SocialProviders=o.SocialProviders;exports.SteamLoginButton=o.SteamLoginButton;exports.TiktokLoginButton=o.TiktokLoginButton;exports.TwitchLoginButton=o.TwitchLoginButton;exports.TwitterLoginButton=o.TwitterLoginButton;exports.WeChatLoginButton=o.WeChatLoginButton;exports.WhatsAppLoginButton=o.WhatsAppLoginButton;exports.XLoginButtin=o.XLoginButtin;exports.XboxLoginButton=o.XboxLoginButton;exports.YahooLoginButton=o.YahooLoginButton;exports.authSchemas=o.authSchemas;exports.calculatePasswordStrength=o.calculatePasswordStrength;exports.createEmailSchema=o.createEmailSchema;exports.createPasswordSchema=o.createPasswordSchema;exports.createSignInSchema=o.createSignInSchema;exports.createSignUpSchema=o.createSignUpSchema;exports.createSocialLoginUrl=o.createSocialLoginUrl;exports.defaultPasswordRules=o.defaultPasswordRules;exports.defaultSignInSchema=o.defaultSignInSchema;exports.defaultSignUpSchema=o.defaultSignUpSchema;exports.emailSchema=o.emailSchema;exports.formatAuthError=o.formatAuthError;exports.formatProviderName=o.formatProviderName;exports.formatSocialLoginText=o.formatSocialLoginText;exports.generateRandomString=o.generateRandomString;exports.getProviderColor=o.getProviderColor;exports.getProviderIcon=o.getProviderIcon;exports.isBrowser=o.isBrowser;exports.isValidEmail=o.isValidEmail;exports.openSocialLoginPopup=o.openSocialLoginPopup;exports.providerInfo=o.providerInfo;exports.requestToControllerValidation=o.requestToControllerValidation;exports.resetPasswordSchema=o.resetPasswordSchema;exports.socialProviderInfo=o.socialProviderInfo;exports.useAuthEmailProp=o.useAuthEmailProp;exports.validateEmail=o.validateEmail;exports.validatePassword=o.validatePassword;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../auth-divider-MMhfmLBu.cjs");exports.AmazonLoginButton=o.AmazonLoginButton;exports.AppleLoginButton=o.AppleLoginButton;exports.AuthContainer=o.AuthContainer;exports.AuthDivider=o.AuthDivider;exports.AuthModal=o.AuthModal;exports.DiscordLoginButton=o.DiscordLoginButton;exports.EpicLoginButton=o.EpicLoginButton;exports.FacebookLoginButton=o.FacebookLoginButton;exports.GitHubLoginButton=o.GitHubLoginButton;exports.GoogleLoginButton=o.GoogleLoginButton;exports.InstagramLoginButton=o.InstagramLoginButton;exports.LinkedInLoginButton=o.LinkedInLoginButton;exports.MicrosoftLoginButton=o.MicrosoftLoginButton;exports.PasswordStrengthBar=o.PasswordStrengthBar;exports.PasswordStrengthIndicator=o.PasswordStrengthIndicator;exports.PasswordStrengthText=o.PasswordStrengthText;exports.PayPalLoginButton=o.PayPalLoginButton;exports.PinterestLoginButton=o.PinterestLoginButton;exports.PlayStationLoginButton=o.PlayStationLoginButton;exports.RedditLoginButton=o.RedditLoginButton;exports.ResetPasswordForm=o.ResetPasswordForm;exports.SignInForm=o.SignInForm;exports.SignUpForm=o.SignUpForm;exports.SnapchatLoginButton=o.SnapchatLoginButton;exports.SocialLoginButton=o.SocialLoginButton;exports.SocialLoginButtons=o.SocialLoginButtons;exports.SocialProviders=o.SocialProviders;exports.SteamLoginButton=o.SteamLoginButton;exports.TiktokLoginButton=o.TiktokLoginButton;exports.TwitchLoginButton=o.TwitchLoginButton;exports.TwitterLoginButton=o.TwitterLoginButton;exports.WeChatLoginButton=o.WeChatLoginButton;exports.WhatsAppLoginButton=o.WhatsAppLoginButton;exports.XLoginButtin=o.XLoginButtin;exports.XboxLoginButton=o.XboxLoginButton;exports.YahooLoginButton=o.YahooLoginButton;exports.authSchemas=o.authSchemas;exports.calculatePasswordStrength=o.calculatePasswordStrength;exports.createEmailSchema=o.createEmailSchema;exports.createPasswordSchema=o.createPasswordSchema;exports.createSignInSchema=o.createSignInSchema;exports.createSignUpSchema=o.createSignUpSchema;exports.createSocialLoginUrl=o.createSocialLoginUrl;exports.defaultPasswordRules=o.defaultPasswordRules;exports.defaultSignInSchema=o.defaultSignInSchema;exports.defaultSignUpSchema=o.defaultSignUpSchema;exports.emailSchema=o.emailSchema;exports.formatAuthError=o.formatAuthError;exports.formatProviderName=o.formatProviderName;exports.formatSocialLoginText=o.formatSocialLoginText;exports.generateRandomString=o.generateRandomString;exports.getProviderColor=o.getProviderColor;exports.getProviderIcon=o.getProviderIcon;exports.isBrowser=o.isBrowser;exports.isValidEmail=o.isValidEmail;exports.openSocialLoginPopup=o.openSocialLoginPopup;exports.providerInfo=o.providerInfo;exports.requestToControllerValidation=o.requestToControllerValidation;exports.resetPasswordSchema=o.resetPasswordSchema;exports.socialProviderInfo=o.socialProviderInfo;exports.useAuthEmailProp=o.useAuthEmailProp;exports.validateEmail=o.validateEmail;exports.validatePassword=o.validatePassword;
@@ -1,4 +1,4 @@
1
- import { A as t, a as s, b as n, c as i, d as e, D as r, E as g, F as u, G as c, e as l, I as d, L, M as S, P as B, f as m, g as h, h as P, i as p, j as w, R as f, k as v, S as I, l as A, m as E, n as T, o as k, p as x, q as C, T as F, r as R, s as U, W as b, t as y, X as D, u as G, Y as M, v as V, w as W, x as X, y as q, z, B as H, C as N, H as Y, J as j, K as J, N as K, O, Q, U as Z, V as _, Z as $, _ as aa, $ as oa, a0 as ta, a1 as sa, a2 as na, a3 as ia, a4 as ea, a5 as ra, a6 as ga, a7 as ua, a8 as ca } from "../auth-divider-BPwKk8MW.js";
1
+ import { A as t, a as s, b as n, c as i, d as e, D as r, E as g, F as u, G as c, e as l, I as d, L, M as S, P as B, f as m, g as h, h as P, i as p, j as w, R as f, k as v, S as I, l as A, m as E, n as T, o as k, p as x, q as C, T as F, r as R, s as U, W as b, t as y, X as D, u as G, Y as M, v as V, w as W, x as X, y as q, z, B as H, C as N, H as Y, J as j, K as J, N as K, O, Q, U as Z, V as _, Z as $, _ as aa, $ as oa, a0 as ta, a1 as sa, a2 as na, a3 as ia, a4 as ea, a5 as ra, a6 as ga, a7 as ua, a8 as ca } from "../auth-divider-CbME_yVQ.js";
2
2
  export {
3
3
  t as AmazonLoginButton,
4
4
  s as AppleLoginButton,
@@ -1,12 +1,13 @@
1
1
  import { localStorageProp as le, prop as U, Use as q, html as l, attr as t, on as z, When as _, coalesce as g, Ensure as W, computedOf as b, bind as me, ForEach as ue, Value as oe, OneOfValue as pe, Fragment as R } from "@tempots/dom";
2
- import { i as te, S as T } from "./stack-Bm-UZosx.js";
3
- import { t as de, u as G, a as ne, b as A } from "./use-form-CfxvyTfd.js";
4
- import { o as H, b as F, s as C, M as he } from "./modal-CwZuWiSK.js";
5
- import { d as f, A as x } from "./translations-yu4gNqlP.js";
6
- import { P as O, E as j, N as X } from "./notice-D7hYFM5A.js";
7
- import { B as M } from "./input-container-DMoVdH6E.js";
8
- import { T as ge } from "./text-input-BLupB3cU.js";
9
- import { I as fe } from "./translations-DyCmyLE_.js";
2
+ import { S as T } from "./stack-BLMteGTn.js";
3
+ import { t as de, u as G, a as ne, b as A } from "./use-form-Dn6v2tEh.js";
4
+ import { o as H, b as F, s as C, M as he } from "./modal-DBguyX-b.js";
5
+ import { Validation as te } from "@tempots/std";
6
+ import { d as f, A as x } from "./translations-A4kR7CW8.js";
7
+ import { P as O, E as j, N as X } from "./notice-BKcyJD5w.js";
8
+ import { B as M } from "./input-container-BvEcp7FU.js";
9
+ import { T as ge } from "./text-input-DfqXolVe.js";
10
+ import { I as fe } from "./translations-B1_yyDUK.js";
10
11
  import { classes as be } from "@tempots/ui";
11
12
  const Y = {
12
13
  google: { name: "Google", icon: "logos:google-icon", color: "#4285f4" },
@@ -57,13 +58,13 @@ const Y = {
57
58
  function we(e) {
58
59
  return Y[e]?.name || e;
59
60
  }
60
- function Re(e) {
61
+ function Ue(e) {
61
62
  return Y[e]?.icon || "mdi:account";
62
63
  }
63
- function Ue(e) {
64
+ function Me(e) {
64
65
  return Y[e]?.color || "#666";
65
66
  }
66
- function Me(e, o = "Continue with {provider}") {
67
+ function Ne(e, o = "Continue with {provider}") {
67
68
  return o.replace("{provider}", we(e));
68
69
  }
69
70
  const $ = {
@@ -73,7 +74,7 @@ const $ = {
73
74
  requireNumbers: !0,
74
75
  requireSymbols: !1
75
76
  };
76
- function Ne(e) {
77
+ function Ve(e) {
77
78
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
78
79
  }
79
80
  function _e(e = 32) {
@@ -83,7 +84,7 @@ function _e(e = 32) {
83
84
  s += o.charAt(Math.floor(Math.random() * o.length));
84
85
  return s;
85
86
  }
86
- function Ve(e, o, s, a = [], c = {}) {
87
+ function De(e, o, s, a = [], c = {}) {
87
88
  const r = {
88
89
  google: "https://accounts.google.com/oauth/authorize",
89
90
  github: "https://github.com/login/oauth/authorize",
@@ -147,7 +148,7 @@ function Ve(e, o, s, a = [], c = {}) {
147
148
  });
148
149
  return `${n}?${h.toString()}`;
149
150
  }
150
- function De(e, o, s, a) {
151
+ function Fe(e, o, s, a) {
151
152
  const c = window.open(
152
153
  e,
153
154
  `${o}_login`,
@@ -164,10 +165,10 @@ function De(e, o, s, a) {
164
165
  };
165
166
  window.addEventListener("message", u);
166
167
  }
167
- function Fe(e) {
168
+ function Oe(e) {
168
169
  return e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e ? String(e.message) : "An unexpected error occurred";
169
170
  }
170
- function Oe() {
171
+ function We() {
171
172
  return typeof window < "u" && typeof document < "u";
172
173
  }
173
174
  function Z({
@@ -249,16 +250,16 @@ function Q(e = $, o, s) {
249
250
  }
250
251
  const ie = H({
251
252
  email: re
252
- }).schema(), We = K(), Ge = Q(), He = {
253
+ }).schema(), Ge = K(), He = Q(), je = {
253
254
  signIn: K,
254
255
  signUp: Q,
255
256
  resetPassword: () => ie
256
257
  };
257
- function je(e, o) {
258
+ function Xe(e, o) {
258
259
  const s = o ?? f, c = (o ? N(o) : re).validate(e);
259
260
  return c.success ? null : c.errors[0]?.message || (s.invalidEmailAddress ?? f.invalidEmailAddress);
260
261
  }
261
- function Xe(e, o = $, s) {
262
+ function Ye(e, o = $, s) {
262
263
  const a = s ?? f, r = J(o, s).validate(e);
263
264
  return r.success ? null : r.errors[0]?.message || (a.invalidPassword ?? f.invalidPassword);
264
265
  }
@@ -553,7 +554,7 @@ function ve({
553
554
  )
554
555
  );
555
556
  }
556
- function Ye({
557
+ function Ze({
557
558
  password: e,
558
559
  rules: o = $,
559
560
  className: s
@@ -574,7 +575,7 @@ function Ye({
574
575
  )
575
576
  );
576
577
  }
577
- function Ze({
578
+ function Je({
578
579
  password: e,
579
580
  rules: o = $,
580
581
  className: s
@@ -1028,99 +1029,99 @@ const p = {
1028
1029
  color: "blue"
1029
1030
  // distinct deep blue tone (not Facebook’s exact blue)
1030
1031
  }
1031
- }, Je = (e) => d({
1032
+ }, Ke = (e) => d({
1032
1033
  ...e,
1033
1034
  ...p.google,
1034
1035
  provider: "google"
1035
- }), Ke = (e) => d({
1036
+ }), Qe = (e) => d({
1036
1037
  ...e,
1037
1038
  ...p.github,
1038
1039
  provider: "github"
1039
- }), Qe = (e) => d({
1040
+ }), eo = (e) => d({
1040
1041
  ...e,
1041
1042
  ...p.apple,
1042
1043
  provider: "apple"
1043
- }), eo = (e) => d({
1044
+ }), oo = (e) => d({
1044
1045
  ...e,
1045
1046
  ...p.facebook,
1046
1047
  provider: "facebook"
1047
- }), oo = (e) => d({
1048
+ }), to = (e) => d({
1048
1049
  ...e,
1049
1050
  ...p.x,
1050
1051
  provider: "x"
1051
- }), to = (e) => d({
1052
+ }), ao = (e) => d({
1052
1053
  ...e,
1053
1054
  ...p.twitter,
1054
1055
  provider: "twitter"
1055
- }), ao = (e) => d({
1056
+ }), so = (e) => d({
1056
1057
  ...e,
1057
1058
  ...p.microsoft,
1058
1059
  provider: "microsoft"
1059
- }), so = (e) => d({
1060
+ }), no = (e) => d({
1060
1061
  ...e,
1061
1062
  ...p.discord,
1062
1063
  provider: "discord"
1063
- }), no = (e) => d({
1064
+ }), ro = (e) => d({
1064
1065
  ...e,
1065
1066
  ...p.linkedin,
1066
1067
  provider: "linkedin"
1067
- }), ro = (e) => d({
1068
+ }), io = (e) => d({
1068
1069
  ...e,
1069
1070
  ...p.instagram,
1070
1071
  provider: "instagram"
1071
- }), io = (e) => d({
1072
+ }), co = (e) => d({
1072
1073
  ...e,
1073
1074
  ...p.tiktok,
1074
1075
  provider: "tiktok"
1075
- }), co = (e) => d({
1076
+ }), lo = (e) => d({
1076
1077
  ...e,
1077
1078
  ...p.snapchat,
1078
1079
  provider: "snapchat"
1079
- }), lo = (e) => d({
1080
+ }), mo = (e) => d({
1080
1081
  ...e,
1081
1082
  ...p.reddit,
1082
1083
  provider: "reddit"
1083
- }), mo = (e) => d({
1084
+ }), uo = (e) => d({
1084
1085
  ...e,
1085
1086
  ...p.pinterest,
1086
1087
  provider: "pinterest"
1087
- }), uo = (e) => d({
1088
+ }), po = (e) => d({
1088
1089
  ...e,
1089
1090
  ...p.twitch,
1090
1091
  provider: "twitch"
1091
- }), po = (e) => d({
1092
+ }), ho = (e) => d({
1092
1093
  ...e,
1093
1094
  ...p.steam,
1094
1095
  provider: "steam"
1095
- }), ho = (e) => d({
1096
+ }), go = (e) => d({
1096
1097
  ...e,
1097
1098
  ...p.epic,
1098
1099
  provider: "epic"
1099
- }), go = (e) => d({
1100
+ }), fo = (e) => d({
1100
1101
  ...e,
1101
1102
  ...p.playstation,
1102
1103
  provider: "playstation"
1103
- }), fo = (e) => d({
1104
+ }), bo = (e) => d({
1104
1105
  ...e,
1105
1106
  ...p.xbox,
1106
1107
  provider: "xbox"
1107
- }), bo = (e) => d({
1108
+ }), wo = (e) => d({
1108
1109
  ...e,
1109
1110
  ...p.whatsapp,
1110
1111
  provider: "whatsapp"
1111
- }), wo = (e) => d({
1112
+ }), _o = (e) => d({
1112
1113
  ...e,
1113
1114
  ...p.wechat,
1114
1115
  provider: "wechat"
1115
- }), _o = (e) => d({
1116
+ }), Lo = (e) => d({
1116
1117
  ...e,
1117
1118
  ...p.amazon,
1118
1119
  provider: "amazon"
1119
- }), Lo = (e) => d({
1120
+ }), vo = (e) => d({
1120
1121
  ...e,
1121
1122
  ...p.yahoo,
1122
1123
  provider: "yahoo"
1123
- }), vo = (e) => d({
1124
+ }), ko = (e) => d({
1124
1125
  ...e,
1125
1126
  ...p.paypal,
1126
1127
  provider: "paypal"
@@ -1270,7 +1271,7 @@ function Pe({
1270
1271
  );
1271
1272
  });
1272
1273
  }
1273
- function ko(e) {
1274
+ function yo(e) {
1274
1275
  return he(
1275
1276
  {
1276
1277
  size: "sm",
@@ -1307,65 +1308,65 @@ function se({
1307
1308
  );
1308
1309
  }
1309
1310
  export {
1310
- Oe as $,
1311
- _o as A,
1311
+ We as $,
1312
+ Lo as A,
1312
1313
  Q as B,
1313
- Ve as C,
1314
- so as D,
1315
- ho as E,
1316
- eo as F,
1317
- Ke as G,
1314
+ De as C,
1315
+ no as D,
1316
+ go as E,
1317
+ oo as F,
1318
+ Qe as G,
1318
1319
  $ as H,
1319
- ro as I,
1320
- We as J,
1321
- Ge as K,
1322
- no as L,
1323
- ao as M,
1320
+ io as I,
1321
+ Ge as J,
1322
+ He as K,
1323
+ ro as L,
1324
+ so as M,
1324
1325
  re as N,
1325
- Fe as O,
1326
- Ye as P,
1326
+ Oe as O,
1327
+ Ze as P,
1327
1328
  we as Q,
1328
- lo as R,
1329
+ mo as R,
1329
1330
  Le as S,
1330
- io as T,
1331
- Me as U,
1331
+ co as T,
1332
+ Ne as U,
1332
1333
  _e as V,
1333
- wo as W,
1334
- oo as X,
1335
- Lo as Y,
1336
- Ue as Z,
1337
- Re as _,
1338
- Qe as a,
1339
- Ne as a0,
1340
- De as a1,
1334
+ _o as W,
1335
+ to as X,
1336
+ vo as Y,
1337
+ Me as Z,
1338
+ Ue as _,
1339
+ eo as a,
1340
+ Ve as a0,
1341
+ Fe as a1,
1341
1342
  Y as a2,
1342
1343
  Z as a3,
1343
1344
  ie as a4,
1344
1345
  p as a5,
1345
1346
  ce as a6,
1346
- je as a7,
1347
- Xe as a8,
1347
+ Xe as a7,
1348
+ Ye as a8,
1348
1349
  Pe as b,
1349
1350
  se as c,
1350
- ko as d,
1351
- Je as e,
1351
+ yo as d,
1352
+ Ke as e,
1352
1353
  ve as f,
1353
- Ze as g,
1354
- vo as h,
1355
- mo as i,
1356
- go as j,
1354
+ Je as g,
1355
+ ko as h,
1356
+ uo as i,
1357
+ fo as j,
1357
1358
  ye as k,
1358
1359
  ke as l,
1359
- co as m,
1360
+ lo as m,
1360
1361
  d as n,
1361
1362
  Se as o,
1362
1363
  ae as p,
1363
- po as q,
1364
- uo as r,
1365
- to as s,
1366
- bo as t,
1367
- fo as u,
1368
- He as v,
1364
+ ho as q,
1365
+ po as r,
1366
+ ao as s,
1367
+ wo as t,
1368
+ bo as u,
1369
+ je as v,
1369
1370
  ee as w,
1370
1371
  N as x,
1371
1372
  J as y,
@@ -0,0 +1 @@
1
+ "use strict";const e=require("@tempots/dom"),q=require("./stack-dwLevGa2.cjs"),L=require("./use-form-CaW192gw.cjs"),f=require("./modal-BT0jjDqX.cjs"),G=require("@tempots/std"),m=require("./translations-C81buKAw.cjs"),P=require("./notice-B5wTXoTq.cjs"),C=require("./input-container-Di1YvVB_.cjs"),ee=require("./text-input-X_q01NsY.cjs"),te=require("./translations-Dbx7L7Q1.cjs"),oe=require("@tempots/ui"),T={google:{name:"Google",icon:"logos:google-icon",color:"#4285f4"},github:{name:"GitHub",icon:"logos:github-icon",color:"#333"},apple:{name:"Apple",icon:"logos:apple",color:"#000"},facebook:{name:"Facebook",icon:"logos:facebook",color:"#1877f2"},twitter:{name:"Twitter",icon:"logos:twitter",color:"#1da1f2"},microsoft:{name:"Microsoft",icon:"logos:microsoft-icon",color:"#00a4ef"},discord:{name:"Discord",icon:"logos:discord-icon",color:"#5865f2"},linkedin:{name:"LinkedIn",icon:"logos:linkedin-icon",color:"#0077b5"},instagram:{name:"Instagram",icon:"logos:instagram-icon",color:"#e4405f"},tiktok:{name:"TikTok",icon:"logos:tiktok-icon",color:"#000"},snapchat:{name:"Snapchat",icon:"logos:snapchat-icon",color:"#fffc00"},reddit:{name:"Reddit",icon:"logos:reddit-icon",color:"#ff4500"},pinterest:{name:"Pinterest",icon:"logos:pinterest-icon",color:"#bd081c"},twitch:{name:"Twitch",icon:"logos:twitch",color:"#9146ff"},steam:{name:"Steam",icon:"logos:steam-icon",color:"#000"},epic:{name:"Epic Games",icon:"simple-icons:epicgames",color:"#313131"},playstation:{name:"PlayStation",icon:"logos:playstation-icon",color:"#003791"},xbox:{name:"Xbox",icon:"logos:xbox-icon",color:"#107c10"},whatsapp:{name:"WhatsApp",icon:"logos:whatsapp-icon",color:"#25d366"},wechat:{name:"WeChat",icon:"logos:wechat-icon",color:"#1aad19"},amazon:{name:"Amazon",icon:"logos:amazon-icon",color:"#ff9900"},yahoo:{name:"Yahoo",icon:"logos:yahoo-icon",color:"#720e9e"},paypal:{name:"PayPal",icon:"logos:paypal",color:"#0070ba"},x:{name:"X",icon:"simple-icons:x",color:"#000"}};function j(t){return T[t]?.name||t}function ae(t){return T[t]?.icon||"mdi:account"}function ne(t){return T[t]?.color||"#666"}function re(t,o="Continue with {provider}"){return o.replace("{provider}",j(t))}const y={minLength:8,requireUppercase:!0,requireLowercase:!0,requireNumbers:!0,requireSymbols:!1};function se(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function H(t=32){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let a=0;a<t;a++)n+=o.charAt(Math.floor(Math.random()*o.length));return n}function ie(t,o,n,a=[],c={}){const s={google:"https://accounts.google.com/oauth/authorize",github:"https://github.com/login/oauth/authorize",apple:"https://appleid.apple.com/auth/authorize",facebook:"https://www.facebook.com/v18.0/dialog/oauth",twitter:"https://twitter.com/i/oauth2/authorize",microsoft:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",discord:"https://discord.com/api/oauth2/authorize",linkedin:"https://www.linkedin.com/oauth/v2/authorization",instagram:"https://api.instagram.com/oauth/authorize",tiktok:"https://www.tiktok.com/v2/auth/authorize",snapchat:"https://accounts.snapchat.com/accounts/oauth2/authorize",reddit:"https://www.reddit.com/api/v1/authorize",pinterest:"https://api.pinterest.com/oauth/",twitch:"https://id.twitch.tv/oauth2/authorize",steam:"https://steamcommunity.com/oauth/authorize",epic:"https://auth.epicgames.com/authorize",playstation:"https://auth.api.sonyentertainmentnetwork.com/oauth/authorize",xbox:"https://login.live.com/oauth20_authorize.srf",whatsapp:"https://web.whatsapp.com/oauth/authorize",wechat:"https://open.weixin.qq.com/connect/qrconnect",amazon:"https://www.amazon.com/ap/oa",yahoo:"https://api.login.yahoo.com/oauth2/request_auth",paypal:"https://www.paypal.com/signin/authorize",x:"https://api.twitter.com/oauth2/authorize"},u={google:["openid","email","profile"],github:["user:email"],apple:["email","name"],facebook:["email"],twitter:["users.read"],microsoft:["openid","email","profile"],discord:["identify","email"],linkedin:["r_liteprofile","r_emailaddress"],instagram:["user_profile","user_media"],tiktok:["user.info.basic","user.external.id"],snapchat:["user.info.basic","user.external.id"],reddit:["identity","email"],pinterest:["read_public","read_relationships"],twitch:["openid","email","profile"],steam:["openid","email","profile"],epic:["openid","email","profile"],playstation:["openid","email","profile"],xbox:["openid","email","profile"],whatsapp:["openid","email","profile"],wechat:["openid","email","profile"],amazon:["openid","email","profile"],yahoo:["openid","email","profile"],paypal:["openid","email","profile"],x:["openid","email","profile"]},r=s[t];if(!r)throw new Error(`Unsupported provider: ${t}`);const l=a.length>0?a:u[t],i=H(),h=new URLSearchParams({client_id:o,redirect_uri:n,scope:l.join(" "),state:i,response_type:"code",...c});return`${r}?${h.toString()}`}function ce(t,o,n,a){const c=window.open(t,`${o}_login`,"width=500,height=600,scrollbars=yes,resizable=yes");if(!c){a?.(new Error("Failed to open popup window"));return}const s=setInterval(()=>{c.closed&&(clearInterval(s),a?.(new Error("Login cancelled")))},1e3),u=r=>{r.origin===window.location.origin&&(r.data.type==="SOCIAL_LOGIN_SUCCESS"?(clearInterval(s),c.close(),window.removeEventListener("message",u),n?.(r.data.result)):r.data.type==="SOCIAL_LOGIN_ERROR"&&(clearInterval(s),c.close(),window.removeEventListener("message",u),a?.(new Error(r.data.error))))};window.addEventListener("message",u)}function le(t){return t instanceof Error?t.message:typeof t=="string"?t:t&&typeof t=="object"&&"message"in t?String(t.message):"An unexpected error occurred"}function ue(){return typeof window<"u"&&typeof document<"u"}function $({task:t,message:o,onStart:n,onEnd:a}){return async c=>{n?.();const s=await L.taskToValidation({task:t!=null?()=>t(c):async()=>null,errorMessage:o,errorPath:["root"],validation:u=>u!=null?G.Validation.invalid({message:u}):G.Validation.valid});return a?.(),s}}function E(t=y,o){const n=o??m.defaultMessages;let a=f.string();return t.minLength&&(a=a.min(t.minLength,(n.passwordMinLength??m.defaultMessages.passwordMinLength)(t.minLength))),t.requireUppercase&&(a=a.regex(/[A-Z]/,n.passwordRequireUppercase??m.defaultMessages.passwordRequireUppercase)),t.requireLowercase&&(a=a.regex(/[a-z]/,n.passwordRequireLowercase??m.defaultMessages.passwordRequireLowercase)),t.requireNumbers&&(a=a.regex(/[0-9]/,n.passwordRequireNumber??m.defaultMessages.passwordRequireNumber)),t.requireSymbols&&(a=a.regex(/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/,n.passwordRequireSpecialChar??m.defaultMessages.passwordRequireSpecialChar)),t.customValidation&&(a=a.refine(c=>t.customValidation(c))),a}function A(t){const o=t??m.defaultMessages;return f.string().min(1,o.emailRequired??m.defaultMessages.emailRequired).email(o.invalidEmail??m.defaultMessages.invalidEmail)}const V=A();function M(t,o){const n=o??m.defaultMessages,a=t?E(t,o):f.string().refine(c=>c.length>0?null:n.passwordRequired??m.defaultMessages.passwordRequired);return f.object({email:A(o),password:a,rememberMe:f.boolean().default(!1)}).schema()}function z(t=y,o,n){const a=n??m.defaultMessages,c=E(t,n),s=o?.showNameField!==!1,u=o?.showConfirmPassword!==!1,r=o?.showAcceptTermsAndConditions!==!1,l={name:s?f.string().min(1,a.nameRequired??m.defaultMessages.nameRequired).optional():f.string().optional(),email:A(n),password:c,confirmPassword:u?f.string().min(1,a.confirmPasswordRequired??m.defaultMessages.confirmPasswordRequired):f.string(),acceptTerms:r?f.boolean().refine(h=>h===!0,a.acceptTermsRequired??m.defaultMessages.acceptTermsRequired):f.boolean().default(!0)},i=f.object(l);return u?i.refine(h=>h.password===h.confirmPassword?null:a.passwordsDoNotMatch??m.defaultMessages.passwordsDoNotMatch,{path:["confirmPassword"]}).schema():i.schema()}const N=f.object({email:V}).schema(),me=M(),de=z(),pe={signIn:M,signUp:z,resetPassword:()=>N};function he(t,o){const n=o??m.defaultMessages,c=(o?A(o):V).validate(t);return c.success?null:c.errors[0]?.message||(n.invalidEmailAddress??m.defaultMessages.invalidEmailAddress)}function ge(t,o=y,n){const a=n??m.defaultMessages,s=E(o,n).validate(t);return s.success?null:s.errors[0]?.message||(a.invalidPassword??m.defaultMessages.invalidPassword)}function R(t,o=y){const n={length:t.length>=(o.minLength||8),uppercase:/[A-Z]/.test(t),lowercase:/[a-z]/.test(t),numbers:/[0-9]/.test(t),symbols:/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(t),custom:o.customValidation?o.customValidation(t)===null:t.length>0},a=[!0,o.requireUppercase,o.requireLowercase,o.requireNumbers,o.requireSymbols,!!o.customValidation].filter(Boolean).length,c=[n.length,o.requireUppercase?n.uppercase:null,o.requireLowercase?n.lowercase:null,o.requireNumbers?n.numbers:null,o.requireSymbols?n.symbols:null,o.customValidation?n.custom:null].filter(r=>r===!0).length,s=a>0?Math.round(c/a*100):0;let u;return s<40?u="weak":s<60?u="fair":s<80?u="good":u="strong",{strength:u,score:s,checks:n}}const D=()=>e.localStorageProp({key:"bui_auth_email",defaultValue:null});function X({onSignIn:t,passwordRules:o,labels:n,showRememberMe:a}){const c=e.prop(!1),s=D(),u=M(o),r=L.useForm({schema:u,onSubmit:$({task:t,message:"Reset password failed",onStart:()=>{c.set(!0),r.controller.disable()},onEnd:()=>{c.set(!1),r.controller.enable()}}),initialValue:{email:"",password:""}}),{controller:l,submit:i}=r;c.on(l.setDisabled);const h=l.field("email"),w=l.field("password");return s.on(b=>{b!=null&&h.change(b)}),h.signal.on(b=>{s.value!=null&&(s.value=b)}),e.Use(m.AuthI18n,b=>e.html.form(e.attr.class("bc-auth-form__form"),e.on.submit(i),q.Stack(e.attr.class("bc-auth-form__fields"),e.Ensure(l.error,_=>P.Notice({variant:"danger",tone:"prominent",role:"alert"},e.html.div(_))),L.Control(P.EmailInput,{controller:h,label:e.coalesce(n?.emailLabel,b.$.emailLabel)}),L.Control(P.PasswordInput,{controller:w,label:e.coalesce(n?.passwordLabel,b.$.passwordLabel)}),e.When(a??!0,()=>e.html.div(e.attr.class("bc-auth-form__remember-me"),e.html.label(e.attr.class("bc-auth-form__checkbox-label"),L.CheckboxInput({value:s.map(_=>_!=null),after:e.html.span(e.coalesce(n?.rememberMeLabel,b.$.rememberMeLabel)),onChange:_=>{_?s.value=h.signal.value??"":s.value=null}}))))),C.Button({type:"submit",variant:"filled",color:"primary",loading:c,disabled:l.disabledOrHasErrors},e.attr.class("bc-auth-form__submit"),e.coalesce(n?.signInButton,b.$.signInButton))))}function Y({password:t,rules:o=y,showLabel:n=!0,className:a}){const c=e.computedOf(t)(i=>!i||i.length===0?{strength:"weak",score:0,checks:{length:!1,uppercase:!1,lowercase:!1,numbers:!1,symbols:!1,custom:!1}}:R(i,o)),s=c.map(i=>i.strength),u=c.map(i=>i.score),r=c.map(i=>i.checks),l=e.computedOf(s,a)((i,h)=>["bc-password-strength",`bc-password-strength--${i}`,h].filter(Boolean).join(" "));return e.html.div(e.attr.class(l),e.html.div(e.attr.class("bc-password-strength__bar"),e.html.div(e.attr.class("bc-password-strength__fill"),e.attr.style(u.map(i=>`width: ${i}%`)))),e.When(n,()=>e.Use(m.AuthI18n,i=>e.html.div(e.attr.class("bc-password-strength__label"),e.computedOf(s,i)((h,w)=>{switch(h){case"weak":return w.passwordStrengthWeak;case"fair":return w.passwordStrengthFair;case"good":return w.passwordStrengthGood;case"strong":return w.passwordStrengthStrong;default:return w.passwordStrengthWeak}})))),e.html.div(e.attr.class("bc-password-strength__requirements"),e.When(o.minLength!==void 0,()=>e.html.div(e.attr.class("bc-password-strength__requirement"),e.attr.class(e.computedOf(r)(i=>i.length?"bc-password-strength__requirement--met":"")),e.html.span(e.attr.class("bc-password-strength__requirement-icon"),e.computedOf(r)(i=>i.length?"✓":"○")),e.html.span(e.attr.class("bc-password-strength__requirement-text"),`At least ${o.minLength} characters`))),e.When(o.requireUppercase===!0,()=>e.html.div(e.attr.class("bc-password-strength__requirement"),e.attr.class(e.computedOf(r)(i=>i.uppercase?"bc-password-strength__requirement--met":"")),e.html.span(e.attr.class("bc-password-strength__requirement-icon"),e.computedOf(r)(i=>i.uppercase?"✓":"○")),e.html.span(e.attr.class("bc-password-strength__requirement-text"),"One uppercase letter"))),e.When(o.requireLowercase===!0,()=>e.html.div(e.attr.class("bc-password-strength__requirement"),e.attr.class(e.computedOf(r)(i=>i.lowercase?"bc-password-strength__requirement--met":"")),e.html.span(e.attr.class("bc-password-strength__requirement-icon"),e.computedOf(r)(i=>i.lowercase?"✓":"○")),e.html.span(e.attr.class("bc-password-strength__requirement-text"),"One lowercase letter"))),e.When(o.requireNumbers===!0,()=>e.html.div(e.attr.class("bc-password-strength__requirement"),e.attr.class(e.computedOf(r)(i=>i.numbers?"bc-password-strength__requirement--met":"")),e.html.span(e.attr.class("bc-password-strength__requirement-icon"),e.computedOf(r)(i=>i.numbers?"✓":"○")),e.html.span(e.attr.class("bc-password-strength__requirement-text"),"One number"))),e.When(o.requireSymbols===!0,()=>e.html.div(e.attr.class("bc-password-strength__requirement"),e.attr.class(e.computedOf(r)(i=>i.symbols?"bc-password-strength__requirement--met":"")),e.html.span(e.attr.class("bc-password-strength__requirement-icon"),e.computedOf(r)(i=>i.symbols?"✓":"○")),e.html.span(e.attr.class("bc-password-strength__requirement-text"),"One special character")))))}function fe({password:t,rules:o=y,className:n}){const a=e.computedOf(t)(r=>!r||r.length===0?{strength:"weak",score:0}:R(r,o)),c=a.map(r=>r.strength),s=a.map(r=>r.score),u=e.computedOf(c,n)((r,l)=>["bc-password-strength-bar",`bc-password-strength-bar--${r}`,l].filter(Boolean).join(" "));return e.html.div(e.attr.class(u),e.html.div(e.attr.class("bc-password-strength-bar__fill"),e.attr.style(s.map(r=>`width: ${r}%`))))}function we({password:t,rules:o=y,className:n}){const a=e.computedOf(t)(s=>!s||s.length===0?"weak":R(s,o).strength),c=e.computedOf(a,n)((s,u)=>["bc-password-strength-text",`bc-password-strength-text--${s}`,u].filter(Boolean).join(" "));return e.Use(m.AuthI18n,s=>e.html.span(e.attr.class(c),e.computedOf(a,s)((u,r)=>{switch(u){case"weak":return r.passwordStrengthWeak;case"fair":return r.passwordStrengthFair;case"good":return r.passwordStrengthGood;case"strong":return r.passwordStrengthStrong;default:return r.passwordStrengthWeak}})))}function Z({passwordRules:t,labels:o,initialEmail:n,initialName:a,showPasswordStrength:c,onSignUp:s,showNameField:u,showConfirmPassword:r,showAcceptTermsAndConditions:l,termsAndConditions:i}){const h=e.prop(!1),w=t||y,b=z(w,{showNameField:u!==!1,showConfirmPassword:r!==!1,showAcceptTermsAndConditions:l!==!1}),_=L.useForm({schema:b,onSubmit:$({task:s!=null?g=>s({email:g.email,password:g.password,name:g.name,acceptTerms:g.acceptTerms}):void 0,message:"Reset password failed",onStart:()=>{h.set(!0),_.controller.disable()},onEnd:()=>{h.set(!1),_.controller.enable()}}),initialValue:{name:a??"",email:n??"",password:"",confirmPassword:"",acceptTerms:!1}}),{controller:v,submit:U}=_;h.on(v.setDisabled);const B=v.field("name"),S=v.field("email"),x=v.field("password"),O=v.field("confirmPassword"),I=v.field("acceptTerms");return e.Use(m.AuthI18n,g=>e.html.form(e.attr.class("bc-auth-form__form"),e.on.submit(U),q.Stack(e.attr.class("bc-auth-form__fields"),e.Ensure(v.error,k=>P.Notice({variant:"danger",tone:"prominent",role:"alert"},e.html.div(k))),e.When(u!==!1,()=>L.Control(ee.TextInput,{controller:B.transform(k=>k??"",k=>k===""?void 0:k),label:e.coalesce(o?.nameLabel,g.$.nameLabel)})),L.Control(P.EmailInput,{controller:S,label:e.coalesce(o?.emailLabel,g.$.emailLabel)}),L.Control(P.PasswordInput,{controller:x,label:e.coalesce(o?.passwordLabel,g.$.passwordLabel)}),e.When(c??!1,()=>Y({password:x.signal,rules:w,showLabel:!0})),e.When(r??!1,()=>L.Control(P.PasswordInput,{controller:O,label:e.coalesce(o?.confirmPasswordLabel,g.$.confirmPasswordLabel)})),e.When(l??!1,()=>e.html.div(e.attr.class("bc-auth-form__terms"),e.html.label(e.attr.class("bc-auth-form__checkbox-label"),L.CheckboxInput({value:I.signal.map(k=>k??!1),onChange:k=>I.change(k)}),e.html.span(i||e.coalesce(o?.acceptTermsLabel,g.$.acceptTermsLabel))),e.When(I.errorVisible,()=>e.html.div(e.attr.class("bc-auth-form__field-error"),I.error.map(k=>k||"")))))),C.Button({type:"submit",variant:"filled",color:"primary",loading:h,disabled:v.disabledOrHasErrors},e.attr.class("bc-auth-form__submit"),e.coalesce(o?.signUpButton,g.$.signUpButton))))}function J({onResetPassword:t,labels:o={}}){const n=D(),a=e.prop(!1),c=L.useForm({schema:N,onSubmit:$({task:t,message:"Reset password failed",onStart:()=>{a.set(!0),c.controller.disable()},onEnd:()=>{a.set(!1),c.controller.enable()}}),initialValue:{email:""}}),{controller:s,submit:u}=c;a.on(s.setDisabled);const r=s.field("email");return n.on(l=>{l!=null&&r.change(l)}),e.Use(m.AuthI18n,l=>e.html.form(e.attr.class("bc-auth-form__form"),e.Ensure(s.error,i=>P.Notice({variant:"danger",tone:"prominent",role:"alert"},e.html.div(i))),e.html.p(e.attr.class("bc-auth-form__description"),e.coalesce(o?.resetPasswordDescription,l.$.resetPasswordDescription)),e.on.submit(u),q.Stack(e.attr.class("bc-auth-form__fields"),L.Control(P.EmailInput,{controller:r,label:e.coalesce(o?.emailLabel,l.$.emailLabel)})),C.Button({loading:a,type:"submit",variant:"filled",color:"primary",disabled:s.disabledOrHasErrors},e.attr.class("bc-auth-form__submit"),e.coalesce(o?.resetPasswordButton,l.$.resetPasswordButton))))}function p({provider:t,onClick:o,size:n="md",name:a,icon:c,color:s,flow:u,labels:r}){const l=async()=>{if(o)try{u==="popup"?await o():await o()}catch(i){console.error(`Social login error for ${t} (${u||"redirect"} flow):`,i)}};return C.Button({type:"button",variant:"filled",size:n,color:s,onClick:l,roundedness:"full"},e.attr.class("bc-social-login-button"),e.attr.class(e.computedOf(t)(i=>`bc-social-login-button--${i}`)),e.html.span(e.attr.class("bc-social-login-button__inner"),e.html.span(e.attr.class("bc-social-login-button__icon"),te.Icon({icon:c,size:n},e.attr.class("bc-social-login-button__icon-inner"))),e.Use(m.AuthI18n,i=>e.html.span(e.attr.class("bc-social-login-button__label"),e.bind(e.coalesce(r?.continueWithProvider,i.$.continueWithProvider))(a)))))}function K({providers:t,onProviderClick:o,size:n="md",className:a}){return q.Stack(e.attr.class("bc-social-login-buttons"),e.attr.class(a),e.ForEach(t,c=>p({provider:c.$.provider,flow:c.$.flow,color:c.map(({provider:s})=>d[s].color),name:c.map(({provider:s})=>d[s].name),icon:c.map(({provider:s})=>d[s].icon),onClick:async()=>{o&&await o(c.$.provider.value)},size:n})))}const d={google:{name:"Google",icon:"logos:google-icon",color:"red"},github:{name:"GitHub",icon:"logos:github-icon",color:"black"},apple:{name:"Apple",icon:"logos:apple",color:"stone"},facebook:{name:"Facebook",icon:"logos:facebook",color:"blue"},twitter:{name:"Twitter",icon:"logos:twitter",color:"sky"},x:{name:"X",icon:"logos:x",color:"zinc"},microsoft:{name:"Microsoft",icon:"logos:microsoft-icon",color:"amber"},discord:{name:"Discord",icon:"logos:discord-icon",color:"indigo"},linkedin:{name:"LinkedIn",icon:"logos:linkedin-icon",color:"cyan"},instagram:{name:"Instagram",icon:"logos:instagram-icon",color:"fuchsia"},tiktok:{name:"TikTok",icon:"logos:tiktok-icon",color:"teal"},snapchat:{name:"Snapchat",icon:"simple-icons:snapchat",color:"yellow"},reddit:{name:"Reddit",icon:"logos:reddit-icon",color:"orange"},pinterest:{name:"Pinterest",icon:"logos:pinterest",color:"rose"},twitch:{name:"Twitch",icon:"logos:twitch",color:"purple"},steam:{name:"Steam",icon:"logos:steam",color:"slate"},epic:{name:"Epic Games",icon:"simple-icons:epicgames",color:"neutral"},playstation:{name:"PlayStation",icon:"simple-icons:playstation",color:"violet"},xbox:{name:"Xbox",icon:"simple-icons:xbox",color:"green"},whatsapp:{name:"WhatsApp",icon:"logos:whatsapp-icon",color:"emerald"},wechat:{name:"WeChat",icon:"simple-icons:wechat",color:"lime"},amazon:{name:"Amazon",icon:"simple-icons:amazon",color:"red"},yahoo:{name:"Yahoo",icon:"logos:yahoo",color:"rose"},paypal:{name:"PayPal",icon:"logos:paypal",color:"blue"}},be=t=>p({...t,...d.google,provider:"google"}),Le=t=>p({...t,...d.github,provider:"github"}),_e=t=>p({...t,...d.apple,provider:"apple"}),ke=t=>p({...t,...d.facebook,provider:"facebook"}),ve=t=>p({...t,...d.x,provider:"x"}),Se=t=>p({...t,...d.twitter,provider:"twitter"}),Pe=t=>p({...t,...d.microsoft,provider:"microsoft"}),ye=t=>p({...t,...d.discord,provider:"discord"}),Be=t=>p({...t,...d.linkedin,provider:"linkedin"}),qe=t=>p({...t,...d.instagram,provider:"instagram"}),Ie=t=>p({...t,...d.tiktok,provider:"tiktok"}),xe=t=>p({...t,...d.snapchat,provider:"snapchat"}),Ae=t=>p({...t,...d.reddit,provider:"reddit"}),Ce=t=>p({...t,...d.pinterest,provider:"pinterest"}),Te=t=>p({...t,...d.twitch,provider:"twitch"}),$e=t=>p({...t,...d.steam,provider:"steam"}),Ee=t=>p({...t,...d.epic,provider:"epic"}),Me=t=>p({...t,...d.playstation,provider:"playstation"}),ze=t=>p({...t,...d.xbox,provider:"xbox"}),Re=t=>p({...t,...d.whatsapp,provider:"whatsapp"}),Ue=t=>p({...t,...d.wechat,provider:"wechat"}),Oe=t=>p({...t,...d.amazon,provider:"amazon"}),We=t=>p({...t,...d.yahoo,provider:"yahoo"}),Fe=t=>p({...t,...d.paypal,provider:"paypal"});function W({providers:t,onSocialLogin:o}){return q.Stack(K({providers:t,onProviderClick:o}))}function Q({mode:t,socialProviders:o,initialName:n,initialEmail:a,passwordRules:c,showRememberMe:s,showSocialDivider:u,showPasswordStrength:r,labels:l,onSignIn:i,onSignUp:h,onResetPassword:w,onModeChange:b,onSocialLogin:_,showContainer:v},...U){const B=t!=null?e.Value.deriveProp(t):e.prop("signin");return B.on(S=>b?.(S)),e.Use(m.AuthI18n,S=>{function x(){const g=e.coalesce(l?.hasAccountLink,S.$.hasAccountLink);return e.html.button(e.attr.type("button"),e.attr.class("bc-auth-form__link"),e.on.click(()=>B.set("signin")),g)}function O(){return e.html.button(e.attr.type("button"),e.attr.class("bc-auth-form__link"),e.on.click(()=>B.set("signup")),e.coalesce(l?.noAccountLink,S.$.noAccountLink))}function I(){return e.html.button(e.attr.type("button"),e.attr.class("bc-auth-form__link"),e.on.click(()=>B.set("reset-password")),e.coalesce(l?.forgotPasswordLink,S.$.forgotPasswordLink))}return e.html.div(oe.classes({"bc-auth-container":!0,"bc-auth-container--styled":e.Value.map(v??!0,g=>g)}),e.attr.class(B.map(g=>`bc-auth-container--${g}`)),e.attr.class("bc-auth-form"),e.OneOfValue(B,{signin:()=>e.Fragment(e.html.h2(e.attr.class("bc-auth-form__title"),e.coalesce(l?.signInTitle,S.$.signInTitle)),o!=null?e.Fragment(W({providers:o,onSocialLogin:_}),e.When(u??!1,F)):null,X({onSignIn:i,showRememberMe:s,passwordRules:c,labels:{emailLabel:l?.emailLabel,passwordLabel:l?.passwordLabel,rememberMeLabel:l?.rememberMeLabel,signInButton:l?.signInButton,forgotPasswordLink:l?.forgotPasswordLink,noAccountLink:l?.noAccountLink}}),q.Stack(e.attr.class("bc-auth-form__footer"),O(),I())),signup:()=>e.Fragment(e.html.h2(e.attr.class("bc-auth-form__title"),e.coalesce(l?.signUpTitle,S.$.signUpTitle)),o!=null?e.Fragment(W({providers:o,onSocialLogin:_}),e.When(u??!1,F)):null,Z({labels:{nameLabel:l?.nameLabel,emailLabel:l?.emailLabel,passwordLabel:l?.passwordLabel,confirmPasswordLabel:l?.confirmPasswordLabel,acceptTermsLabel:l?.acceptTermsLabel,signUpButton:l?.signUpButton,hasAccountLink:l?.hasAccountLink},initialEmail:a,initialName:n,onSignUp:h,passwordRules:c,showPasswordStrength:r}),q.Stack(e.attr.class("bc-auth-form__footer"),x())),"reset-password":()=>e.Fragment(e.html.h2(e.attr.class("bc-auth-form__title"),e.coalesce(l?.resetPasswordTitle,S.$.resetPasswordTitle)),J({labels:{backToSignInLink:l?.backToSignInLink,emailLabel:l?.emailLabel,resetPasswordButton:l?.resetPasswordButton,resetPasswordDescription:l?.resetPasswordDescription},onResetPassword:w}),q.Stack(e.attr.class("bc-auth-form__footer"),x()))}),...U)})}function Ve(t){return f.Modal({size:"sm",dismissable:!0,showCloseButton:!0},(o,n)=>t(a=>o({body:Q({showContainer:!1,...a}),header:e.Use(m.AuthI18n,c=>e.coalesce(a.modalTitle,c.$.authenticationTitle))})))}function F({labels:t,className:o}={}){return e.html.div(e.attr.class("bc-auth-divider"),e.attr.class(o),e.html.div(e.attr.class("bc-auth-divider__line")),e.Use(m.AuthI18n,n=>e.html.span(e.attr.class("bc-auth-divider__text"),e.coalesce(t?.text,n.$.orDivider))),e.html.div(e.attr.class("bc-auth-divider__line")))}exports.AmazonLoginButton=Oe;exports.AppleLoginButton=_e;exports.AuthContainer=Q;exports.AuthDivider=F;exports.AuthModal=Ve;exports.DiscordLoginButton=ye;exports.EpicLoginButton=Ee;exports.FacebookLoginButton=ke;exports.GitHubLoginButton=Le;exports.GoogleLoginButton=be;exports.InstagramLoginButton=qe;exports.LinkedInLoginButton=Be;exports.MicrosoftLoginButton=Pe;exports.PasswordStrengthBar=fe;exports.PasswordStrengthIndicator=Y;exports.PasswordStrengthText=we;exports.PayPalLoginButton=Fe;exports.PinterestLoginButton=Ce;exports.PlayStationLoginButton=Me;exports.RedditLoginButton=Ae;exports.ResetPasswordForm=J;exports.SignInForm=X;exports.SignUpForm=Z;exports.SnapchatLoginButton=xe;exports.SocialLoginButton=p;exports.SocialLoginButtons=K;exports.SocialProviders=W;exports.SteamLoginButton=$e;exports.TiktokLoginButton=Ie;exports.TwitchLoginButton=Te;exports.TwitterLoginButton=Se;exports.WeChatLoginButton=Ue;exports.WhatsAppLoginButton=Re;exports.XLoginButtin=ve;exports.XboxLoginButton=ze;exports.YahooLoginButton=We;exports.authSchemas=pe;exports.calculatePasswordStrength=R;exports.createEmailSchema=A;exports.createPasswordSchema=E;exports.createSignInSchema=M;exports.createSignUpSchema=z;exports.createSocialLoginUrl=ie;exports.defaultPasswordRules=y;exports.defaultSignInSchema=me;exports.defaultSignUpSchema=de;exports.emailSchema=V;exports.formatAuthError=le;exports.formatProviderName=j;exports.formatSocialLoginText=re;exports.generateRandomString=H;exports.getProviderColor=ne;exports.getProviderIcon=ae;exports.isBrowser=ue;exports.isValidEmail=se;exports.openSocialLoginPopup=ce;exports.providerInfo=T;exports.requestToControllerValidation=$;exports.resetPasswordSchema=N;exports.socialProviderInfo=d;exports.useAuthEmailProp=D;exports.validateEmail=he;exports.validatePassword=ge;