@tempots/beatui 0.82.0 → 0.83.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.
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/ar-CBrjAlIY.cjs +1 -0
- package/dist/ar-DjMvIww5.js +175 -0
- package/dist/{ar-NCCPhOpI.js → ar-DwDxAANU.js} +16 -1
- package/dist/ar-kZBzg02I.cjs +1 -0
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +64 -1351
- package/dist/auth-divider-C3_CgC0l.js +1375 -0
- package/dist/auth-divider-C4WTL71M.cjs +1 -0
- package/dist/beatui.css +11183 -5596
- package/dist/beatui.tailwind.css +11210 -5623
- package/dist/better-auth/index.cjs.js +1 -0
- package/dist/better-auth/index.es.js +741 -0
- package/dist/{colors-B2yrgHSW.cjs → colors-BI0YhONJ.cjs} +1 -1
- package/dist/{colors-DPo9GEJR.js → colors-BmLYKmoH.js} +38 -30
- package/dist/de-B03SM9eF.cjs +1 -0
- package/dist/{de-BVK2MkCk.js → de-CSGSC0xX.js} +18 -3
- package/dist/de-CrBw41po.cjs +1 -0
- package/dist/{de-f2xcEb34.js → de-wChFYqM4.js} +79 -5
- package/dist/deep-merge-CmQoIYPC.js +1689 -0
- package/dist/deep-merge-UghuPcyW.cjs +1 -0
- package/dist/duration-input-BJzKgI15.cjs +1 -0
- package/dist/{duration-input-B3vnnwBZ.js → duration-input-DaB6s0rL.js} +24 -23
- package/dist/editor-toolbar-group-BslfdazC.js +32 -0
- package/dist/editor-toolbar-group-_V1rDM-1.cjs +1 -0
- package/dist/{es-BxBeTRCv.cjs → es-BRa0hV-7.cjs} +1 -1
- package/dist/es-Ca5xT3NE.cjs +1 -0
- package/dist/es-CmPF3IGl.js +175 -0
- package/dist/{es-BQS8PL9j.js → es-dR46FTMF.js} +16 -1
- package/dist/{fa-DxPseW3g.cjs → fa-BxCSKn9j.cjs} +1 -1
- package/dist/fa-D696e75R.js +175 -0
- package/dist/fa-DhZJYuC6.cjs +1 -0
- package/dist/{fa-T-tkJSJr.js → fa-FsHBFjdY.js} +16 -1
- package/dist/fr-1nSKSIlw.cjs +1 -0
- package/dist/{fr-yOW_68YY.js → fr-B0jeX1Hx.js} +83 -9
- package/dist/{fr-CSRRhyCG.js → fr-Di6BT9_V.js} +18 -3
- package/dist/fr-Dq6RAY9s.cjs +1 -0
- package/dist/he-BBX1h9uD.cjs +1 -0
- package/dist/{he-Bxdc4M08.js → he-CXujw1Lw.js} +16 -1
- package/dist/he-DhcurPt5.cjs +1 -0
- package/dist/he-SgAsIYJA.js +175 -0
- package/dist/{hi-CJeFvTBe.js → hi-Bvh4d9bO.js} +16 -1
- package/dist/hi-Cd0YQZTU.cjs +1 -0
- package/dist/hi-CxsIxbfM.cjs +1 -0
- package/dist/hi-s9oiIihq.js +175 -0
- package/dist/{hls.light.min-Bhrf47iR.cjs → hls.light.min-C6xKDzRR.cjs} +1 -1
- package/dist/{hls.light.min-C6VwviEa.js → hls.light.min-hEMf_E8u.js} +1 -1
- package/dist/{index-ChsRjiIp.cjs → index-Bm43lZqE.cjs} +19 -19
- package/dist/{index-C5YCCgnn.cjs → index-C2_iX1um.cjs} +1 -1
- package/dist/{index-DT6-HMMz.js → index-C32iUFIr.js} +1432 -1462
- package/dist/{index-CiAVfKIZ.js → index-CEqc0H3v.js} +1 -1
- package/dist/index-DH37GTQj.cjs +1 -0
- package/dist/{index-DklKfzD4.js → index-Di1_W_7Q.js} +351 -361
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +6310 -3528
- package/dist/input-container-CSi72GI1.cjs +1 -0
- package/dist/input-container-Nx0gMAzS.js +258 -0
- package/dist/it-ByIEk5Cq.cjs +1 -0
- package/dist/it-D_IcaYxp.cjs +1 -0
- package/dist/{it-6e6X-4BB.js → it-Dc4IMciD.js} +80 -6
- package/dist/{it-Zmp0BhIj.js → it-EWhykhHv.js} +18 -3
- package/dist/ja-CMGqpPo7.cjs +1 -0
- package/dist/{ja-BxNuNo2H.js → ja-D2t2g5xj.js} +85 -11
- package/dist/ja-DV6Fpp18.cjs +1 -0
- package/dist/{ja-DWjoA-hQ.js → ja-YZ0P5woj.js} +16 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +212 -205
- package/dist/json-schema-display/index.cjs.js +1 -1
- package/dist/json-schema-display/index.es.js +1 -1
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +623 -762
- package/dist/ko-BPl5rP97.cjs +1 -0
- package/dist/ko-BRylA5JZ.js +175 -0
- package/dist/ko-DR1f0as8.cjs +1 -0
- package/dist/{ko-BOlI-33h.js → ko-U7BSUAxZ.js} +16 -1
- package/dist/lexical/index.cjs.js +46 -0
- package/dist/lexical/index.es.js +21397 -0
- package/dist/lexical.css +1122 -0
- package/dist/menu-CX72LaZ3.cjs +1 -0
- package/dist/menu-D_slbwl8.js +374 -0
- package/dist/modal-DaI1jH-X.js +488 -0
- package/dist/modal-kyZfvVZb.cjs +1 -0
- package/dist/nl-BSfaHFt0.cjs +1 -0
- package/dist/{nl-Dr-l6zUy.cjs → nl-CQF0N7Mc.cjs} +1 -1
- package/dist/{nl-kQNcAdY1.js → nl-CqAxoB4J.js} +18 -3
- package/dist/nl-Dh7LUWAn.js +176 -0
- package/dist/notice-Bc1L4Zpr.cjs +1 -0
- package/dist/{notice-CZHWWwOQ.js → notice-Dz4nX57_.js} +49 -48
- package/dist/{oneof-branch-detection-BVNoKU9d.js → oneof-branch-detection-BED_n2MT.js} +523 -520
- package/dist/{oneof-branch-detection-C8g3eWnx.cjs → oneof-branch-detection-Vov_e3kI.cjs} +4 -4
- package/dist/{pl-CKyPFvss.js → pl-C-weXGCB.js} +16 -1
- package/dist/pl-D-O4sCnr.cjs +1 -0
- package/dist/{pl-Bs4nLJ__.js → pl-XEG-p1Q9.js} +77 -3
- package/dist/{pl-BK0i_yvq.cjs → pl-y_w3DWF3.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DBmUhaNI.js → pt-BjNGOoZH.js} +18 -3
- package/dist/pt-DYsDA2sZ.js +175 -0
- package/dist/pt-DqaZWmbG.cjs +1 -0
- package/dist/pt-chEEYLlt.cjs +1 -0
- package/dist/ru-B46hVpFF.cjs +1 -0
- package/dist/{ru-Bi1_DEKM.js → ru-BTKBykp-.js} +86 -12
- package/dist/{ru-CsJ_yT-7.js → ru-CFmeZBXK.js} +16 -1
- package/dist/ru-CISMzCHR.cjs +1 -0
- package/dist/session-id-3KiilioY.js +8 -0
- package/dist/session-id-B5lJMzbB.cjs +1 -0
- package/dist/styles-url-CVCcF0ra.cjs +1 -0
- package/dist/styles-url-DUdp56Ts.js +4 -0
- package/dist/tailwind/index.cjs.js +1 -1
- package/dist/tailwind/index.es.js +3 -3
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +74 -4
- package/dist/tailwind/vite-plugin.cjs.js +10 -10
- package/dist/tailwind/vite-plugin.es.js +289 -410
- package/dist/text-input-8v79fzEy.cjs +1 -0
- package/dist/text-input-CPJzUC2r.js +45 -0
- package/dist/{toolbar-DR2Zd4Oo.js → toolbar-CjQG7l7X.js} +4 -4
- package/dist/toolbar-D3ZsC0g_.cjs +1 -0
- package/dist/{tr-Bn5ldVJs.js → tr-C5X2gFZS.js} +17 -2
- package/dist/tr-CaMaflJL.cjs +1 -0
- package/dist/{tr-DiYB-FwX.js → tr-Cp8ZCUic.js} +77 -3
- package/dist/{tr-CgJ8uhZu.cjs → tr-mWu2E__o.cjs} +1 -1
- package/dist/{translations-Cq8bUKJP.js → translations-BGblCUBj.js} +144 -70
- package/dist/translations-CZ0KOii3.cjs +1 -0
- package/dist/translations-gVgMyNno.cjs +1 -0
- package/dist/translations-jUYta1_1.js +87 -0
- package/dist/types/auth/index.d.ts +13 -0
- package/dist/types/auth-i18n/default.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ar.d.ts +14 -0
- package/dist/types/auth-i18n/locales/de.d.ts +14 -0
- package/dist/types/auth-i18n/locales/en.d.ts +14 -0
- package/dist/types/auth-i18n/locales/es.d.ts +14 -0
- package/dist/types/auth-i18n/locales/fa.d.ts +14 -0
- package/dist/types/auth-i18n/locales/fr.d.ts +14 -0
- package/dist/types/auth-i18n/locales/he.d.ts +14 -0
- package/dist/types/auth-i18n/locales/hi.d.ts +14 -0
- package/dist/types/auth-i18n/locales/it.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ja.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ko.d.ts +14 -0
- package/dist/types/auth-i18n/locales/nl.d.ts +14 -0
- package/dist/types/auth-i18n/locales/pl.d.ts +14 -0
- package/dist/types/auth-i18n/locales/pt.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ru.d.ts +14 -0
- package/dist/types/auth-i18n/locales/tr.d.ts +14 -0
- package/dist/types/auth-i18n/locales/ur.d.ts +14 -0
- package/dist/types/auth-i18n/locales/vi.d.ts +14 -0
- package/dist/types/auth-i18n/locales/zh.d.ts +14 -0
- package/dist/types/auth-i18n/translations.d.ts +14 -0
- package/dist/types/beatui-i18n/default.d.ts +99 -0
- package/dist/types/beatui-i18n/index.d.ts +11 -0
- package/dist/types/beatui-i18n/locales/en.d.ts +63 -0
- package/dist/types/beatui-i18n/translations.d.ts +87 -0
- package/dist/types/better-auth/bridge.d.ts +2 -0
- package/dist/types/better-auth/callbacks.d.ts +6 -0
- package/dist/types/better-auth/components/authenticated.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-container.d.ts +4 -0
- package/dist/types/better-auth/components/better-auth-modal.d.ts +4 -0
- package/dist/types/better-auth/components/magic-link-form.d.ts +7 -0
- package/dist/types/better-auth/components/passkey-management.d.ts +6 -0
- package/dist/types/better-auth/components/passkey-signin.d.ts +12 -0
- package/dist/types/better-auth/components/two-factor-setup.d.ts +8 -0
- package/dist/types/better-auth/components/two-factor-verify.d.ts +10 -0
- package/dist/types/better-auth/i18n/default.d.ts +29 -0
- package/dist/types/better-auth/i18n/locales/en.d.ts +28 -0
- package/dist/types/better-auth/i18n/translations.d.ts +27 -0
- package/dist/types/better-auth/index.d.ts +35 -0
- package/dist/types/better-auth/provider.d.ts +39 -0
- package/dist/types/better-auth/session.d.ts +14 -0
- package/dist/types/better-auth/social-mapping.d.ts +2 -0
- package/dist/types/better-auth/types.d.ts +276 -0
- package/dist/types/components/auth/auth-container.d.ts +63 -2
- package/dist/types/components/auth/auth-divider.d.ts +30 -0
- package/dist/types/components/auth/auth-email-prop.d.ts +25 -0
- package/dist/types/components/auth/index.d.ts +9 -0
- package/dist/types/components/auth/password-strength-indicator.d.ts +58 -0
- package/dist/types/components/auth/reset-password-form.d.ts +33 -0
- package/dist/types/components/auth/schemas.d.ts +183 -5
- package/dist/types/components/auth/signin-form.d.ts +33 -0
- package/dist/types/components/auth/signup-form.d.ts +36 -0
- package/dist/types/components/auth/social-login-button.d.ts +213 -0
- package/dist/types/components/auth/social-providers.d.ts +27 -1
- package/dist/types/components/auth/types.d.ts +301 -0
- package/dist/types/components/auth/utils.d.ts +198 -0
- package/dist/types/components/beatui.d.ts +35 -0
- package/dist/types/components/button/button.d.ts +61 -0
- package/dist/types/components/button/close-button.d.ts +32 -1
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/button/toggle-button-group.d.ts +95 -0
- package/dist/types/components/button/toggle-button.d.ts +60 -0
- package/dist/types/components/data/avatar-group.d.ts +74 -0
- package/dist/types/components/data/avatar.d.ts +62 -0
- package/dist/types/components/data/badge.d.ts +49 -2
- package/dist/types/components/data/calendar-shared.d.ts +59 -0
- package/dist/types/components/data/calendar.d.ts +107 -0
- package/dist/types/components/data/history-timeline.d.ts +35 -0
- package/dist/types/components/data/icon-badge.d.ts +14 -0
- package/dist/types/components/data/icon.d.ts +55 -4
- package/dist/types/components/data/index.d.ts +9 -0
- package/dist/types/components/data/page-drop-zone.d.ts +61 -8
- package/dist/types/components/data/presence-overlay.d.ts +26 -0
- package/dist/types/components/data/progress-bar.d.ts +81 -0
- package/dist/types/components/data/range-calendar.d.ts +104 -0
- package/dist/types/components/data/skeleton.d.ts +70 -0
- package/dist/types/components/data/table.d.ts +38 -11
- package/dist/types/components/data/tag.d.ts +40 -0
- package/dist/types/components/data/unstyled-drop-zone.d.ts +73 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +16 -0
- package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +9 -0
- package/dist/types/components/editor-toolbar/index.d.ts +2 -0
- package/dist/types/components/form/control/control.d.ts +155 -0
- package/dist/types/components/form/control/date-utils.d.ts +81 -0
- package/dist/types/components/form/control/ensure-control.d.ts +28 -0
- package/dist/types/components/form/control/form-status.d.ts +63 -0
- package/dist/types/components/form/control/index.d.ts +10 -0
- package/dist/types/components/form/control/list-control.d.ts +100 -1
- package/dist/types/components/form/control/list-item-controls.d.ts +65 -0
- package/dist/types/components/form/controller/color-controller.d.ts +29 -1
- package/dist/types/components/form/controller/controller-validation.d.ts +31 -0
- package/dist/types/components/form/controller/controller.d.ts +286 -0
- package/dist/types/components/form/controller/index.d.ts +12 -0
- package/dist/types/components/form/controller/path.d.ts +69 -0
- package/dist/types/components/form/controller/union-controller.d.ts +106 -11
- package/dist/types/components/form/controller/utils.d.ts +67 -0
- package/dist/types/components/form/input/advanced-slider.d.ts +143 -0
- package/dist/types/components/form/input/appearance-selector.d.ts +39 -0
- package/dist/types/components/form/input/base64-input.d.ts +34 -0
- package/dist/types/components/form/input/base64s-input.d.ts +47 -0
- package/dist/types/components/form/input/bigint-input.d.ts +27 -0
- package/dist/types/components/form/input/checkbox-input.d.ts +46 -0
- package/dist/types/components/form/input/color-input.d.ts +42 -0
- package/dist/types/components/form/input/color-swatch-input.d.ts +53 -0
- package/dist/types/components/form/input/combobox-input.d.ts +73 -0
- package/dist/types/components/form/input/combobox-tags-input.d.ts +54 -0
- package/dist/types/components/form/input/date-input.d.ts +33 -0
- package/dist/types/components/form/input/date-time-input.d.ts +34 -0
- package/dist/types/components/form/input/dropdown-base.d.ts +52 -0
- package/dist/types/components/form/input/dropdown-input.d.ts +86 -0
- package/dist/types/components/form/input/duration-input.d.ts +18 -0
- package/dist/types/components/form/input/duration-mask.d.ts +24 -0
- package/dist/types/components/form/input/editable-text.d.ts +33 -0
- package/dist/types/components/form/input/email-input.d.ts +34 -0
- package/dist/types/components/form/input/file-input.d.ts +33 -0
- package/dist/types/components/form/input/files-input.d.ts +44 -0
- package/dist/types/components/form/input/index.d.ts +5 -0
- package/dist/types/components/form/input/input-adornment.d.ts +38 -0
- package/dist/types/components/form/input/input-container.d.ts +65 -0
- package/dist/types/components/form/input/input-options.d.ts +70 -0
- package/dist/types/components/form/input/input-wrapper.d.ts +78 -0
- package/dist/types/components/form/input/instant-input.d.ts +18 -0
- package/dist/types/components/form/input/lazy-native-select.d.ts +43 -0
- package/dist/types/components/form/input/list-input.d.ts +50 -0
- package/dist/types/components/form/input/mask-input.d.ts +158 -0
- package/dist/types/components/form/input/native-select.d.ts +50 -0
- package/dist/types/components/form/input/nullable-base64-input.d.ts +25 -0
- package/dist/types/components/form/input/nullable-bigint-input.d.ts +26 -0
- package/dist/types/components/form/input/nullable-date-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-date-time-input.d.ts +19 -0
- package/dist/types/components/form/input/nullable-duration-input.d.ts +19 -0
- package/dist/types/components/form/input/nullable-email-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-instant-input.d.ts +19 -0
- package/dist/types/components/form/input/nullable-mask-input.d.ts +24 -0
- package/dist/types/components/form/input/nullable-number-input.d.ts +29 -0
- package/dist/types/components/form/input/nullable-password-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-date-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-month-day-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-time-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-rating-input.d.ts +33 -0
- package/dist/types/components/form/input/nullable-text-area.d.ts +27 -0
- package/dist/types/components/form/input/nullable-text-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-url-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-utils.d.ts +22 -2
- package/dist/types/components/form/input/nullable-uuid-input.d.ts +18 -0
- package/dist/types/components/form/input/nullable-zoned-date-time-input.d.ts +20 -0
- package/dist/types/components/form/input/number-input.d.ts +49 -0
- package/dist/types/components/form/input/option.d.ts +165 -0
- package/dist/types/components/form/input/otp-input.d.ts +77 -0
- package/dist/types/components/form/input/password-input.d.ts +39 -0
- package/dist/types/components/form/input/plain-date-input.d.ts +17 -0
- package/dist/types/components/form/input/plain-date-time-input.d.ts +17 -0
- package/dist/types/components/form/input/plain-month-day-input.d.ts +18 -0
- package/dist/types/components/form/input/plain-time-input.d.ts +17 -0
- package/dist/types/components/form/input/plain-year-month-input.d.ts +17 -0
- package/dist/types/components/form/input/radio-group.d.ts +108 -0
- package/dist/types/components/form/input/rating-input.d.ts +57 -0
- package/dist/types/components/form/input/segmented-input.d.ts +70 -1
- package/dist/types/components/form/input/select-tags-input.d.ts +69 -0
- package/dist/types/components/form/input/slider-input.d.ts +82 -0
- package/dist/types/components/form/input/switch.d.ts +59 -1
- package/dist/types/components/form/input/tag-input.d.ts +19 -0
- package/dist/types/components/form/input/tag-utils.d.ts +111 -0
- package/dist/types/components/form/input/tags-input.d.ts +18 -0
- package/dist/types/components/form/input/text-area.d.ts +42 -0
- package/dist/types/components/form/input/text-input.d.ts +63 -1
- package/dist/types/components/form/input/url-input.d.ts +34 -0
- package/dist/types/components/form/input/uuid-input.d.ts +19 -0
- package/dist/types/components/form/input/zoned-date-time-input.d.ts +20 -0
- package/dist/types/components/form/schema/standard-schema-v1.d.ts +98 -23
- package/dist/types/components/form/use-form.d.ts +146 -2
- package/dist/types/components/i18n/index.d.ts +9 -0
- package/dist/types/components/i18n/locale-direction.d.ts +21 -1
- package/dist/types/components/i18n/locale-selector.d.ts +45 -0
- package/dist/types/components/i18n/make-i18nprovider.d.ts +42 -0
- package/dist/types/components/json-schema/schema-types.d.ts +133 -0
- package/dist/types/components/json-structure/controls/control-utils.d.ts +19 -0
- package/dist/types/components/json-structure/controls/deprecation-utils.d.ts +2 -3
- package/dist/types/components/json-structure/controls/index.d.ts +1 -0
- package/dist/types/components/json-structure/structure-types.d.ts +473 -19
- package/dist/types/components/layout/accordion.d.ts +77 -0
- package/dist/types/components/layout/action-card.d.ts +90 -2
- package/dist/types/components/layout/app-shell.d.ts +76 -0
- package/dist/types/components/layout/card.d.ts +27 -0
- package/dist/types/components/layout/center.d.ts +39 -0
- package/dist/types/components/layout/collapse.d.ts +28 -0
- package/dist/types/components/layout/divider.d.ts +84 -0
- package/dist/types/components/layout/group.d.ts +15 -0
- package/dist/types/components/layout/index.d.ts +2 -0
- package/dist/types/components/layout/nine-slice-scroll-view.d.ts +105 -0
- package/dist/types/components/layout/scrollable-panel.d.ts +54 -0
- package/dist/types/components/layout/sink.d.ts +46 -0
- package/dist/types/components/layout/stack.d.ts +16 -0
- package/dist/types/components/layout/with-breakpoint.d.ts +194 -0
- package/dist/types/components/lexical/bare-editor.d.ts +29 -0
- package/dist/types/components/lexical/code/index.d.ts +1 -0
- package/dist/types/components/lexical/code/language-selector.d.ts +13 -0
- package/dist/types/components/lexical/contextual-editor.d.ts +22 -0
- package/dist/types/components/lexical/docked-editor.d.ts +23 -0
- package/dist/types/components/lexical/floating/block-handle.d.ts +16 -0
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/floating/index.d.ts +6 -0
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +20 -0
- package/dist/types/components/lexical/index.d.ts +8 -0
- package/dist/types/components/lexical/lexical-editor-input.d.ts +30 -0
- package/dist/types/components/lexical/table/index.d.ts +1 -0
- package/dist/types/components/lexical/table/table-controls.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/index.d.ts +6 -0
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +12 -0
- package/dist/types/components/lexical/toolbar/toolbar-button.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-group.d.ts +1 -0
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +32 -0
- package/dist/types/components/misc/empty-state.d.ts +86 -0
- package/dist/types/components/misc/expando.d.ts +81 -0
- package/dist/types/components/misc/index.d.ts +2 -1
- package/dist/types/components/misc/link-portal.d.ts +40 -2
- package/dist/types/components/misc/notice.d.ts +93 -0
- package/dist/types/components/misc/notification-panel.d.ts +21 -0
- package/dist/types/components/misc/notification-provider.d.ts +141 -0
- package/dist/types/components/misc/notification.d.ts +93 -0
- package/dist/types/components/misc/style-portal.d.ts +31 -1
- package/dist/types/components/monaco/monaco-editor-input.d.ts +59 -2
- package/dist/types/components/navigation/breadcrumbs.d.ts +96 -0
- package/dist/types/components/navigation/flyout.d.ts +118 -16
- package/dist/types/components/navigation/index.d.ts +3 -0
- package/dist/types/components/navigation/link/link.d.ts +100 -0
- package/dist/types/components/navigation/menu.d.ts +155 -35
- package/dist/types/components/navigation/pagination.d.ts +82 -0
- package/dist/types/components/navigation/sidebar/sidebar-group.d.ts +42 -0
- package/dist/types/components/navigation/sidebar/sidebar-link.d.ts +101 -0
- package/dist/types/components/navigation/sidebar/sidebar-separator.d.ts +17 -0
- package/dist/types/components/navigation/sidebar/sidebar.d.ts +57 -0
- package/dist/types/components/navigation/tabs/tabs.d.ts +3 -2
- package/dist/types/components/navigation/toolbar/toolbar.d.ts +125 -0
- package/dist/types/components/navigation/tree-view.d.ts +95 -0
- package/dist/types/components/overlay/announcement-bar.d.ts +41 -2
- package/dist/types/components/overlay/block-command-palette.d.ts +25 -0
- package/dist/types/components/overlay/command-palette.d.ts +17 -0
- package/dist/types/components/overlay/dialogs.d.ts +213 -0
- package/dist/types/components/overlay/drawer.d.ts +76 -12
- package/dist/types/components/overlay/index.d.ts +4 -0
- package/dist/types/components/overlay/lightbox.d.ts +53 -10
- package/dist/types/components/overlay/modal.d.ts +113 -13
- package/dist/types/components/overlay/overlay.d.ts +61 -0
- package/dist/types/components/overlay/popover.d.ts +100 -0
- package/dist/types/components/overlay/ribbon.d.ts +58 -9
- package/dist/types/components/prosemirror/etoolbar-button.d.ts +11 -11
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +11 -4
- package/dist/types/components/prosemirror/link-control.d.ts +43 -2
- package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +46 -6
- package/dist/types/components/prosemirror/utils.d.ts +113 -1
- package/dist/types/components/theme/style-utils.d.ts +95 -0
- package/dist/types/components/theme/theme.d.ts +39 -0
- package/dist/types/components/theme/types.d.ts +133 -1
- package/dist/types/components/typography/index.d.ts +1 -0
- package/dist/types/components/typography/kbd.d.ts +48 -0
- package/dist/types/components/typography/label.d.ts +45 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/json-schema/index.d.ts +13 -0
- package/dist/types/json-schema-display/index.d.ts +12 -0
- package/dist/types/json-structure/index.d.ts +9 -4
- package/dist/types/lexical/commands/index.d.ts +17 -0
- package/dist/types/lexical/headless.d.ts +39 -0
- package/dist/types/lexical/horizontal-rule-node.d.ts +20 -0
- package/dist/types/lexical/index.d.ts +20 -0
- package/dist/types/lexical/lazy-loader.d.ts +35 -0
- package/dist/types/lexical/nodes.d.ts +29 -0
- package/dist/types/lexical/plugins/auto-link.d.ts +7 -0
- package/dist/types/lexical/plugins/clipboard.d.ts +11 -0
- package/dist/types/lexical/plugins/code-shiki.d.ts +11 -0
- package/dist/types/lexical/plugins/code.d.ts +7 -0
- package/dist/types/lexical/plugins/dragon.d.ts +6 -0
- package/dist/types/lexical/plugins/file-io.d.ts +10 -0
- package/dist/types/lexical/plugins/hashtag.d.ts +7 -0
- package/dist/types/lexical/plugins/history.d.ts +7 -0
- package/dist/types/lexical/plugins/horizontal-rule.d.ts +12 -0
- package/dist/types/lexical/plugins/html-io.d.ts +9 -0
- package/dist/types/lexical/plugins/index.d.ts +24 -0
- package/dist/types/lexical/plugins/link.d.ts +6 -0
- package/dist/types/lexical/plugins/list.d.ts +6 -0
- package/dist/types/lexical/plugins/mark.d.ts +15 -0
- package/dist/types/lexical/plugins/markdown-io.d.ts +13 -0
- package/dist/types/lexical/plugins/offset.d.ts +6 -0
- package/dist/types/lexical/plugins/overflow.d.ts +7 -0
- package/dist/types/lexical/plugins/plain-text.d.ts +6 -0
- package/dist/types/lexical/plugins/rich-text.d.ts +6 -0
- package/dist/types/lexical/plugins/selection.d.ts +6 -0
- package/dist/types/lexical/plugins/slash-commands.d.ts +26 -0
- package/dist/types/lexical/plugins/table.d.ts +11 -0
- package/dist/types/lexical/plugins/text.d.ts +13 -0
- package/dist/types/lexical/plugins/yjs.d.ts +9 -0
- package/dist/types/lexical/styles-url.d.ts +2 -0
- package/dist/types/lexical/styles.d.ts +2 -0
- package/dist/types/lexical/types.d.ts +634 -0
- package/dist/types/lexical-i18n/default.d.ts +92 -0
- package/dist/types/lexical-i18n/index.d.ts +21 -0
- package/dist/types/lexical-i18n/locales/ar.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/de.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/en.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/es.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fa.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/fr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/he.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/hi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/it.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ja.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ko.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/nl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pl.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/pt.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ru.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/tr.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/ur.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/vi.d.ts +91 -0
- package/dist/types/lexical-i18n/locales/zh.d.ts +91 -0
- package/dist/types/lexical-i18n/translations.d.ts +21 -0
- package/dist/types/markdown/index.d.ts +13 -0
- package/dist/types/monaco/index.d.ts +17 -0
- package/dist/types/monaco/lazy-loader.d.ts +79 -0
- package/dist/types/monaco/styles-url.d.ts +11 -0
- package/dist/types/monaco/styles.d.ts +11 -0
- package/dist/types/monaco/types.d.ts +47 -0
- package/dist/types/prosemirror/index.d.ts +12 -0
- package/dist/types/prosemirror/styles-url.d.ts +11 -0
- package/dist/types/prosemirror/styles.d.ts +10 -0
- package/dist/types/tailwind/google-fonts.d.ts +15 -0
- package/dist/types/tailwind/index.d.ts +13 -0
- package/dist/types/tailwind/preset.d.ts +111 -0
- package/dist/types/tailwind/vite-plugin.d.ts +39 -4
- package/dist/types/tokens/base-colors.d.ts +21 -0
- package/dist/types/tokens/breakpoints.d.ts +67 -0
- package/dist/types/tokens/colors.d.ts +213 -4
- package/dist/types/tokens/motion.d.ts +142 -3
- package/dist/types/tokens/radius.d.ts +99 -0
- package/dist/types/tokens/shadows.d.ts +85 -0
- package/dist/types/tokens/spacing.d.ts +111 -0
- package/dist/types/tokens/text-shadows.d.ts +82 -0
- package/dist/types/tokens/typography.d.ts +313 -25
- package/dist/types/tokens/z-index.d.ts +62 -0
- package/dist/types/utils/color.d.ts +297 -28
- package/dist/types/utils/download.d.ts +92 -0
- package/dist/types/utils/focus-trap.d.ts +67 -11
- package/dist/types/utils/format-file-size.d.ts +44 -0
- package/dist/ur-B6yB2JQ7.cjs +1 -0
- package/dist/ur-CvGP14xo.cjs +1 -0
- package/dist/{ur-Bg9eX81v.js → ur-Deo004ME.js} +16 -1
- package/dist/{ur-B69X-xNs.js → ur-DkIYJxsF.js} +82 -8
- package/dist/use-animated-toggle-89fKlXxy.js +195 -0
- package/dist/use-animated-toggle-DrqK7nUS.cjs +1 -0
- package/dist/{use-form-CgZyrACX.js → use-form-BurzbPVV.js} +271 -88
- package/dist/use-form-Uree6QFy.cjs +2 -0
- package/dist/vi-BYk1rJDv.js +53 -0
- package/dist/vi-DKw6PBja.js +175 -0
- package/dist/vi-Df4WZe9y.cjs +1 -0
- package/dist/vi-DneuUbkq.cjs +1 -0
- package/dist/{widget-customization-DRA7E9Zf.js → widget-customization-0is7oTeP.js} +233 -231
- package/dist/widget-customization-B-LmxkPE.cjs +1 -0
- package/dist/zh-C5a9NGFW.cjs +1 -0
- package/dist/zh-CaKHseXJ.js +175 -0
- package/dist/zh-DFHuW_5g.cjs +1 -0
- package/dist/{zh-BIykcEu9.js → zh-DR7QaM65.js} +16 -1
- package/package.json +48 -3
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/ar-BsUm-TCn.cjs +0 -1
- package/dist/ar-D7CXDmVZ.cjs +0 -1
- package/dist/ar-nOSKXpIW.js +0 -101
- package/dist/de-BUFLEyKr.cjs +0 -1
- package/dist/de-WzsOu9Gn.cjs +0 -1
- package/dist/deep-merge-CiOwVWn8.js +0 -1619
- package/dist/deep-merge-DxZqCkE5.cjs +0 -1
- package/dist/duration-input-Dg5SX3lM.cjs +0 -1
- package/dist/es-CDqqzpCw.js +0 -101
- package/dist/es-Ds2Xf3wV.cjs +0 -1
- package/dist/fa-C7tE_hR3.js +0 -101
- package/dist/fa-Ct1UtDB7.cjs +0 -1
- package/dist/fr-Cdyopuz3.cjs +0 -1
- package/dist/fr-CzAkRFed.cjs +0 -1
- package/dist/he-D2oUloCJ.js +0 -101
- package/dist/he-DarDNPn0.cjs +0 -1
- package/dist/he-DlXALrK7.cjs +0 -1
- package/dist/hi-3dBhLwDs.cjs +0 -1
- package/dist/hi-D5ZlZoQq.js +0 -101
- package/dist/hi-tATwsXJ6.cjs +0 -1
- package/dist/index-DE2tjivA.cjs +0 -1
- package/dist/it-BmFag7j0.cjs +0 -1
- package/dist/it-DohtcWi9.cjs +0 -1
- package/dist/ja-Dj-bAKLf.cjs +0 -1
- package/dist/ja-eyTArrgS.cjs +0 -1
- package/dist/ko-BFLCDMMs.cjs +0 -1
- package/dist/ko-BomUE-yQ.cjs +0 -1
- package/dist/ko-Ch0jFsBV.js +0 -101
- package/dist/modal-D2xE47kr.cjs +0 -1
- package/dist/modal-hkQD1bqZ.js +0 -655
- package/dist/nl-Bx2ACvr4.cjs +0 -1
- package/dist/nl-NuTdZO1s.js +0 -102
- package/dist/notice-C0SmlheE.cjs +0 -1
- package/dist/pl-QHl6sl8f.cjs +0 -1
- package/dist/pt-BETjHZrL.js +0 -101
- package/dist/pt-DZGw2Z-1.cjs +0 -1
- package/dist/pt-oBMmVYcu.cjs +0 -1
- package/dist/ru-CtxMmoa6.cjs +0 -1
- package/dist/ru-D03IuLqh.cjs +0 -1
- package/dist/text-input-CByq5OIo.cjs +0 -1
- package/dist/text-input-CFJntP7G.js +0 -287
- package/dist/toolbar-TPWYzoiF.cjs +0 -1
- package/dist/tr-B_-_1wua.cjs +0 -1
- package/dist/translations-B4-Zd2LM.cjs +0 -1
- package/dist/translations-D62qqNV9.cjs +0 -1
- package/dist/translations-DPr6c05Z.js +0 -67
- package/dist/ur-DvqAg9gW.cjs +0 -1
- package/dist/ur-DyUSmIbo.cjs +0 -1
- package/dist/use-form-JjeKCINk.cjs +0 -2
- package/dist/vi-BdzxA60L.js +0 -101
- package/dist/vi-CBmPaHxg.cjs +0 -1
- package/dist/vi-D5R3YcU0.cjs +0 -1
- package/dist/vi-DhdsHHf_.js +0 -38
- package/dist/widget-customization-G-QLB1rw.cjs +0 -1
- package/dist/zh-CCGXcj5r.cjs +0 -1
- package/dist/zh-Cb1b8uik.cjs +0 -1
- package/dist/zh-Dn1UJiZa.js +0 -101
|
@@ -0,0 +1,1375 @@
|
|
|
1
|
+
import { localStorageProp as le, prop as U, Use as q, html as l, attr as t, on as E, When as _, coalesce as g, Ensure as W, computedOf as b, Fragment as z, bind as me, ForEach as ue, Value as oe, OneOfValue as pe } from "@tempots/dom";
|
|
2
|
+
import { i as te, S as T } from "./stack-BJgsPJ9A.js";
|
|
3
|
+
import { t as de, u as G, a as ne, b as A } from "./use-form-BurzbPVV.js";
|
|
4
|
+
import { o as H, s as C, b as F, M as he } from "./modal-DaI1jH-X.js";
|
|
5
|
+
import { d as f, A as x } from "./translations-jUYta1_1.js";
|
|
6
|
+
import { P as O, E as j, N as X } from "./notice-Dz4nX57_.js";
|
|
7
|
+
import { B as M } from "./input-container-Nx0gMAzS.js";
|
|
8
|
+
import { T as ge } from "./text-input-CPJzUC2r.js";
|
|
9
|
+
import { I as fe } from "./translations-BGblCUBj.js";
|
|
10
|
+
import { classes as be } from "@tempots/ui";
|
|
11
|
+
const Y = {
|
|
12
|
+
google: { name: "Google", icon: "logos:google-icon", color: "#4285f4" },
|
|
13
|
+
github: { name: "GitHub", icon: "logos:github-icon", color: "#333" },
|
|
14
|
+
apple: { name: "Apple", icon: "logos:apple", color: "#000" },
|
|
15
|
+
facebook: { name: "Facebook", icon: "logos:facebook", color: "#1877f2" },
|
|
16
|
+
twitter: { name: "Twitter", icon: "logos:twitter", color: "#1da1f2" },
|
|
17
|
+
microsoft: {
|
|
18
|
+
name: "Microsoft",
|
|
19
|
+
icon: "logos:microsoft-icon",
|
|
20
|
+
color: "#00a4ef"
|
|
21
|
+
},
|
|
22
|
+
discord: { name: "Discord", icon: "logos:discord-icon", color: "#5865f2" },
|
|
23
|
+
linkedin: { name: "LinkedIn", icon: "logos:linkedin-icon", color: "#0077b5" },
|
|
24
|
+
instagram: {
|
|
25
|
+
name: "Instagram",
|
|
26
|
+
icon: "logos:instagram-icon",
|
|
27
|
+
color: "#e4405f"
|
|
28
|
+
},
|
|
29
|
+
tiktok: { name: "TikTok", icon: "logos:tiktok-icon", color: "#000" },
|
|
30
|
+
snapchat: { name: "Snapchat", icon: "logos:snapchat-icon", color: "#fffc00" },
|
|
31
|
+
reddit: { name: "Reddit", icon: "logos:reddit-icon", color: "#ff4500" },
|
|
32
|
+
pinterest: {
|
|
33
|
+
name: "Pinterest",
|
|
34
|
+
icon: "logos:pinterest-icon",
|
|
35
|
+
color: "#bd081c"
|
|
36
|
+
},
|
|
37
|
+
twitch: { name: "Twitch", icon: "logos:twitch", color: "#9146ff" },
|
|
38
|
+
steam: { name: "Steam", icon: "logos:steam-icon", color: "#000" },
|
|
39
|
+
epic: {
|
|
40
|
+
name: "Epic Games",
|
|
41
|
+
icon: "simple-icons:epicgames",
|
|
42
|
+
color: "#313131"
|
|
43
|
+
},
|
|
44
|
+
playstation: {
|
|
45
|
+
name: "PlayStation",
|
|
46
|
+
icon: "logos:playstation-icon",
|
|
47
|
+
color: "#003791"
|
|
48
|
+
},
|
|
49
|
+
xbox: { name: "Xbox", icon: "logos:xbox-icon", color: "#107c10" },
|
|
50
|
+
whatsapp: { name: "WhatsApp", icon: "logos:whatsapp-icon", color: "#25d366" },
|
|
51
|
+
wechat: { name: "WeChat", icon: "logos:wechat-icon", color: "#1aad19" },
|
|
52
|
+
amazon: { name: "Amazon", icon: "logos:amazon-icon", color: "#ff9900" },
|
|
53
|
+
yahoo: { name: "Yahoo", icon: "logos:yahoo-icon", color: "#720e9e" },
|
|
54
|
+
paypal: { name: "PayPal", icon: "logos:paypal", color: "#0070ba" },
|
|
55
|
+
x: { name: "X", icon: "simple-icons:x", color: "#000" }
|
|
56
|
+
};
|
|
57
|
+
function we(e) {
|
|
58
|
+
return Y[e]?.name || e;
|
|
59
|
+
}
|
|
60
|
+
function Re(e) {
|
|
61
|
+
return Y[e]?.icon || "mdi:account";
|
|
62
|
+
}
|
|
63
|
+
function Ue(e) {
|
|
64
|
+
return Y[e]?.color || "#666";
|
|
65
|
+
}
|
|
66
|
+
function Me(e, o = "Continue with {provider}") {
|
|
67
|
+
return o.replace("{provider}", we(e));
|
|
68
|
+
}
|
|
69
|
+
const $ = {
|
|
70
|
+
minLength: 8,
|
|
71
|
+
requireUppercase: !0,
|
|
72
|
+
requireLowercase: !0,
|
|
73
|
+
requireNumbers: !0,
|
|
74
|
+
requireSymbols: !1
|
|
75
|
+
};
|
|
76
|
+
function Ne(e) {
|
|
77
|
+
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
|
|
78
|
+
}
|
|
79
|
+
function _e(e = 32) {
|
|
80
|
+
const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
81
|
+
let s = "";
|
|
82
|
+
for (let a = 0; a < e; a++)
|
|
83
|
+
s += o.charAt(Math.floor(Math.random() * o.length));
|
|
84
|
+
return s;
|
|
85
|
+
}
|
|
86
|
+
function Ve(e, o, s, a = [], c = {}) {
|
|
87
|
+
const r = {
|
|
88
|
+
google: "https://accounts.google.com/oauth/authorize",
|
|
89
|
+
github: "https://github.com/login/oauth/authorize",
|
|
90
|
+
apple: "https://appleid.apple.com/auth/authorize",
|
|
91
|
+
facebook: "https://www.facebook.com/v18.0/dialog/oauth",
|
|
92
|
+
twitter: "https://twitter.com/i/oauth2/authorize",
|
|
93
|
+
microsoft: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
|
|
94
|
+
discord: "https://discord.com/api/oauth2/authorize",
|
|
95
|
+
linkedin: "https://www.linkedin.com/oauth/v2/authorization",
|
|
96
|
+
instagram: "https://api.instagram.com/oauth/authorize",
|
|
97
|
+
tiktok: "https://www.tiktok.com/v2/auth/authorize",
|
|
98
|
+
snapchat: "https://accounts.snapchat.com/accounts/oauth2/authorize",
|
|
99
|
+
reddit: "https://www.reddit.com/api/v1/authorize",
|
|
100
|
+
pinterest: "https://api.pinterest.com/oauth/",
|
|
101
|
+
twitch: "https://id.twitch.tv/oauth2/authorize",
|
|
102
|
+
steam: "https://steamcommunity.com/oauth/authorize",
|
|
103
|
+
epic: "https://auth.epicgames.com/authorize",
|
|
104
|
+
playstation: "https://auth.api.sonyentertainmentnetwork.com/oauth/authorize",
|
|
105
|
+
xbox: "https://login.live.com/oauth20_authorize.srf",
|
|
106
|
+
whatsapp: "https://web.whatsapp.com/oauth/authorize",
|
|
107
|
+
wechat: "https://open.weixin.qq.com/connect/qrconnect",
|
|
108
|
+
amazon: "https://www.amazon.com/ap/oa",
|
|
109
|
+
yahoo: "https://api.login.yahoo.com/oauth2/request_auth",
|
|
110
|
+
paypal: "https://www.paypal.com/signin/authorize",
|
|
111
|
+
x: "https://api.twitter.com/oauth2/authorize"
|
|
112
|
+
}, u = {
|
|
113
|
+
google: ["openid", "email", "profile"],
|
|
114
|
+
github: ["user:email"],
|
|
115
|
+
apple: ["email", "name"],
|
|
116
|
+
facebook: ["email"],
|
|
117
|
+
twitter: ["users.read"],
|
|
118
|
+
microsoft: ["openid", "email", "profile"],
|
|
119
|
+
discord: ["identify", "email"],
|
|
120
|
+
linkedin: ["r_liteprofile", "r_emailaddress"],
|
|
121
|
+
instagram: ["user_profile", "user_media"],
|
|
122
|
+
tiktok: ["user.info.basic", "user.external.id"],
|
|
123
|
+
snapchat: ["user.info.basic", "user.external.id"],
|
|
124
|
+
reddit: ["identity", "email"],
|
|
125
|
+
pinterest: ["read_public", "read_relationships"],
|
|
126
|
+
twitch: ["openid", "email", "profile"],
|
|
127
|
+
steam: ["openid", "email", "profile"],
|
|
128
|
+
epic: ["openid", "email", "profile"],
|
|
129
|
+
playstation: ["openid", "email", "profile"],
|
|
130
|
+
xbox: ["openid", "email", "profile"],
|
|
131
|
+
whatsapp: ["openid", "email", "profile"],
|
|
132
|
+
wechat: ["openid", "email", "profile"],
|
|
133
|
+
amazon: ["openid", "email", "profile"],
|
|
134
|
+
yahoo: ["openid", "email", "profile"],
|
|
135
|
+
paypal: ["openid", "email", "profile"],
|
|
136
|
+
x: ["openid", "email", "profile"]
|
|
137
|
+
}, n = r[e];
|
|
138
|
+
if (!n)
|
|
139
|
+
throw new Error(`Unsupported provider: ${e}`);
|
|
140
|
+
const m = a.length > 0 ? a : u[e], i = _e(), h = new URLSearchParams({
|
|
141
|
+
client_id: o,
|
|
142
|
+
redirect_uri: s,
|
|
143
|
+
scope: m.join(" "),
|
|
144
|
+
state: i,
|
|
145
|
+
response_type: "code",
|
|
146
|
+
...c
|
|
147
|
+
});
|
|
148
|
+
return `${n}?${h.toString()}`;
|
|
149
|
+
}
|
|
150
|
+
function De(e, o, s, a) {
|
|
151
|
+
const c = window.open(
|
|
152
|
+
e,
|
|
153
|
+
`${o}_login`,
|
|
154
|
+
"width=500,height=600,scrollbars=yes,resizable=yes"
|
|
155
|
+
);
|
|
156
|
+
if (!c) {
|
|
157
|
+
a?.(new Error("Failed to open popup window"));
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
const r = setInterval(() => {
|
|
161
|
+
c.closed && (clearInterval(r), a?.(new Error("Login cancelled")));
|
|
162
|
+
}, 1e3), u = (n) => {
|
|
163
|
+
n.origin === window.location.origin && (n.data.type === "SOCIAL_LOGIN_SUCCESS" ? (clearInterval(r), c.close(), window.removeEventListener("message", u), s?.(n.data.result)) : n.data.type === "SOCIAL_LOGIN_ERROR" && (clearInterval(r), c.close(), window.removeEventListener("message", u), a?.(new Error(n.data.error))));
|
|
164
|
+
};
|
|
165
|
+
window.addEventListener("message", u);
|
|
166
|
+
}
|
|
167
|
+
function Fe(e) {
|
|
168
|
+
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
|
+
function Oe() {
|
|
171
|
+
return typeof window < "u" && typeof document < "u";
|
|
172
|
+
}
|
|
173
|
+
function Z({
|
|
174
|
+
task: e,
|
|
175
|
+
message: o,
|
|
176
|
+
onStart: s,
|
|
177
|
+
onEnd: a
|
|
178
|
+
}) {
|
|
179
|
+
return async (c) => {
|
|
180
|
+
s?.();
|
|
181
|
+
const r = await de({
|
|
182
|
+
task: e != null ? () => e(c) : async () => null,
|
|
183
|
+
errorMessage: o,
|
|
184
|
+
errorPath: ["root"],
|
|
185
|
+
validation: (u) => u != null ? te.invalid({ message: u }) : te.valid
|
|
186
|
+
});
|
|
187
|
+
return a?.(), r;
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
function J(e = $, o) {
|
|
191
|
+
const s = o ?? f;
|
|
192
|
+
let a = C();
|
|
193
|
+
return e.minLength && (a = a.min(
|
|
194
|
+
e.minLength,
|
|
195
|
+
(s.passwordMinLength ?? f.passwordMinLength)(
|
|
196
|
+
e.minLength
|
|
197
|
+
)
|
|
198
|
+
)), e.requireUppercase && (a = a.regex(
|
|
199
|
+
/[A-Z]/,
|
|
200
|
+
s.passwordRequireUppercase ?? f.passwordRequireUppercase
|
|
201
|
+
)), e.requireLowercase && (a = a.regex(
|
|
202
|
+
/[a-z]/,
|
|
203
|
+
s.passwordRequireLowercase ?? f.passwordRequireLowercase
|
|
204
|
+
)), e.requireNumbers && (a = a.regex(
|
|
205
|
+
/[0-9]/,
|
|
206
|
+
s.passwordRequireNumber ?? f.passwordRequireNumber
|
|
207
|
+
)), e.requireSymbols && (a = a.regex(
|
|
208
|
+
/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/,
|
|
209
|
+
s.passwordRequireSpecialChar ?? f.passwordRequireSpecialChar
|
|
210
|
+
)), e.customValidation && (a = a.refine((c) => e.customValidation(c))), a;
|
|
211
|
+
}
|
|
212
|
+
function N(e) {
|
|
213
|
+
const o = e ?? f;
|
|
214
|
+
return C().min(1, o.emailRequired ?? f.emailRequired).email(o.invalidEmail ?? f.invalidEmail);
|
|
215
|
+
}
|
|
216
|
+
const re = N();
|
|
217
|
+
function K(e, o) {
|
|
218
|
+
const s = o ?? f, a = e ? J(e, o) : C().refine(
|
|
219
|
+
(c) => c.length > 0 ? null : s.passwordRequired ?? f.passwordRequired
|
|
220
|
+
);
|
|
221
|
+
return H({
|
|
222
|
+
email: N(o),
|
|
223
|
+
password: a,
|
|
224
|
+
rememberMe: F().default(!1)
|
|
225
|
+
}).schema();
|
|
226
|
+
}
|
|
227
|
+
function Q(e = $, o, s) {
|
|
228
|
+
const a = s ?? f, c = J(e, s), r = o?.showNameField !== !1, u = o?.showConfirmPassword !== !1, n = o?.showAcceptTermsAndConditions !== !1, m = {
|
|
229
|
+
name: r ? C().min(1, a.nameRequired ?? f.nameRequired).optional() : C().optional(),
|
|
230
|
+
email: N(s),
|
|
231
|
+
password: c,
|
|
232
|
+
// Always require confirmPassword as string to match SignUpData interface
|
|
233
|
+
// When not shown, it should accept any value (including empty string)
|
|
234
|
+
confirmPassword: u ? C().min(
|
|
235
|
+
1,
|
|
236
|
+
a.confirmPasswordRequired ?? f.confirmPasswordRequired
|
|
237
|
+
) : C(),
|
|
238
|
+
// Accept any string value when not shown
|
|
239
|
+
acceptTerms: n ? F().refine(
|
|
240
|
+
(h) => h === !0,
|
|
241
|
+
a.acceptTermsRequired ?? f.acceptTermsRequired
|
|
242
|
+
) : F().default(!0)
|
|
243
|
+
// Default to true when not shown
|
|
244
|
+
}, i = H(m);
|
|
245
|
+
return u ? i.refine(
|
|
246
|
+
(h) => h.password === h.confirmPassword ? null : a.passwordsDoNotMatch ?? f.passwordsDoNotMatch,
|
|
247
|
+
{ path: ["confirmPassword"] }
|
|
248
|
+
).schema() : i.schema();
|
|
249
|
+
}
|
|
250
|
+
const ie = H({
|
|
251
|
+
email: re
|
|
252
|
+
}).schema(), We = K(), Ge = Q(), He = {
|
|
253
|
+
signIn: K,
|
|
254
|
+
signUp: Q,
|
|
255
|
+
resetPassword: () => ie
|
|
256
|
+
};
|
|
257
|
+
function je(e, o) {
|
|
258
|
+
const s = o ?? f, c = (o ? N(o) : re).validate(e);
|
|
259
|
+
return c.success ? null : c.errors[0]?.message || (s.invalidEmailAddress ?? f.invalidEmailAddress);
|
|
260
|
+
}
|
|
261
|
+
function Xe(e, o = $, s) {
|
|
262
|
+
const a = s ?? f, r = J(o, s).validate(e);
|
|
263
|
+
return r.success ? null : r.errors[0]?.message || (a.invalidPassword ?? f.invalidPassword);
|
|
264
|
+
}
|
|
265
|
+
function ee(e, o = $) {
|
|
266
|
+
const s = {
|
|
267
|
+
length: e.length >= (o.minLength || 8),
|
|
268
|
+
uppercase: /[A-Z]/.test(e),
|
|
269
|
+
lowercase: /[a-z]/.test(e),
|
|
270
|
+
numbers: /[0-9]/.test(e),
|
|
271
|
+
symbols: /[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(e),
|
|
272
|
+
custom: o.customValidation ? o.customValidation(e) === null : e.length > 0
|
|
273
|
+
// For consistency, fail if password is empty
|
|
274
|
+
}, a = [
|
|
275
|
+
!0,
|
|
276
|
+
// length is always enabled
|
|
277
|
+
o.requireUppercase,
|
|
278
|
+
o.requireLowercase,
|
|
279
|
+
o.requireNumbers,
|
|
280
|
+
o.requireSymbols,
|
|
281
|
+
!!o.customValidation
|
|
282
|
+
].filter(Boolean).length, c = [
|
|
283
|
+
s.length,
|
|
284
|
+
o.requireUppercase ? s.uppercase : null,
|
|
285
|
+
o.requireLowercase ? s.lowercase : null,
|
|
286
|
+
o.requireNumbers ? s.numbers : null,
|
|
287
|
+
o.requireSymbols ? s.symbols : null,
|
|
288
|
+
o.customValidation ? s.custom : null
|
|
289
|
+
].filter((n) => n === !0).length, r = a > 0 ? Math.round(c / a * 100) : 0;
|
|
290
|
+
let u;
|
|
291
|
+
return r < 40 ? u = "weak" : r < 60 ? u = "fair" : r < 80 ? u = "good" : u = "strong", { strength: u, score: r, checks: s };
|
|
292
|
+
}
|
|
293
|
+
const ce = () => le({
|
|
294
|
+
key: "bui_auth_email",
|
|
295
|
+
defaultValue: null
|
|
296
|
+
});
|
|
297
|
+
function Le({
|
|
298
|
+
onSignIn: e,
|
|
299
|
+
passwordRules: o,
|
|
300
|
+
labels: s,
|
|
301
|
+
showRememberMe: a
|
|
302
|
+
}) {
|
|
303
|
+
const c = U(!1), r = ce(), u = K(o), n = G({
|
|
304
|
+
schema: u,
|
|
305
|
+
onSubmit: Z({
|
|
306
|
+
task: e,
|
|
307
|
+
message: "Reset password failed",
|
|
308
|
+
onStart: () => {
|
|
309
|
+
c.set(!0), n.controller.disable();
|
|
310
|
+
},
|
|
311
|
+
onEnd: () => {
|
|
312
|
+
c.set(!1), n.controller.enable();
|
|
313
|
+
}
|
|
314
|
+
}),
|
|
315
|
+
initialValue: {
|
|
316
|
+
email: "",
|
|
317
|
+
password: ""
|
|
318
|
+
}
|
|
319
|
+
}), { controller: m, submit: i } = n;
|
|
320
|
+
c.on(m.setDisabled);
|
|
321
|
+
const h = m.field("email"), L = m.field("password");
|
|
322
|
+
return r.on((v) => {
|
|
323
|
+
v != null && h.change(v);
|
|
324
|
+
}), h.signal.on((v) => {
|
|
325
|
+
r.value != null && (r.value = v);
|
|
326
|
+
}), q(
|
|
327
|
+
x,
|
|
328
|
+
(v) => (
|
|
329
|
+
// Email/Password form
|
|
330
|
+
l.form(
|
|
331
|
+
t.class("bc-auth-form__form"),
|
|
332
|
+
E.submit(i),
|
|
333
|
+
T(
|
|
334
|
+
t.class("bc-auth-form__fields"),
|
|
335
|
+
W(
|
|
336
|
+
m.error,
|
|
337
|
+
(k) => X(
|
|
338
|
+
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
339
|
+
l.div(k)
|
|
340
|
+
)
|
|
341
|
+
),
|
|
342
|
+
// Email field
|
|
343
|
+
A(j, {
|
|
344
|
+
controller: h,
|
|
345
|
+
label: g(s?.emailLabel, v.$.emailLabel)
|
|
346
|
+
}),
|
|
347
|
+
// Password field
|
|
348
|
+
A(O, {
|
|
349
|
+
controller: L,
|
|
350
|
+
label: g(s?.passwordLabel, v.$.passwordLabel)
|
|
351
|
+
}),
|
|
352
|
+
// Remember me checkbox
|
|
353
|
+
_(
|
|
354
|
+
a ?? !0,
|
|
355
|
+
() => l.div(
|
|
356
|
+
t.class("bc-auth-form__remember-me"),
|
|
357
|
+
l.label(
|
|
358
|
+
t.class("bc-auth-form__checkbox-label"),
|
|
359
|
+
ne({
|
|
360
|
+
value: r.map((k) => k != null),
|
|
361
|
+
after: l.span(
|
|
362
|
+
g(s?.rememberMeLabel, v.$.rememberMeLabel)
|
|
363
|
+
),
|
|
364
|
+
onChange: (k) => {
|
|
365
|
+
k ? r.value = h.signal.value ?? "" : r.value = null;
|
|
366
|
+
}
|
|
367
|
+
})
|
|
368
|
+
)
|
|
369
|
+
)
|
|
370
|
+
)
|
|
371
|
+
),
|
|
372
|
+
// Submit button
|
|
373
|
+
M(
|
|
374
|
+
{
|
|
375
|
+
type: "submit",
|
|
376
|
+
variant: "filled",
|
|
377
|
+
color: "primary",
|
|
378
|
+
loading: c,
|
|
379
|
+
disabled: m.disabledOrHasErrors
|
|
380
|
+
},
|
|
381
|
+
t.class("bc-auth-form__submit"),
|
|
382
|
+
g(s?.signInButton, v.$.signInButton)
|
|
383
|
+
)
|
|
384
|
+
)
|
|
385
|
+
)
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
function ve({
|
|
389
|
+
password: e,
|
|
390
|
+
rules: o = $,
|
|
391
|
+
showLabel: s = !0,
|
|
392
|
+
className: a
|
|
393
|
+
}) {
|
|
394
|
+
const c = b(e)((i) => !i || i.length === 0 ? {
|
|
395
|
+
strength: "weak",
|
|
396
|
+
score: 0,
|
|
397
|
+
checks: {
|
|
398
|
+
length: !1,
|
|
399
|
+
uppercase: !1,
|
|
400
|
+
lowercase: !1,
|
|
401
|
+
numbers: !1,
|
|
402
|
+
symbols: !1,
|
|
403
|
+
custom: !1
|
|
404
|
+
}
|
|
405
|
+
} : ee(i, o)), r = c.map((i) => i.strength), u = c.map((i) => i.score), n = c.map((i) => i.checks), m = b(
|
|
406
|
+
r,
|
|
407
|
+
a
|
|
408
|
+
)((i, h) => [
|
|
409
|
+
"bc-password-strength",
|
|
410
|
+
`bc-password-strength--${i}`,
|
|
411
|
+
h
|
|
412
|
+
].filter(Boolean).join(" "));
|
|
413
|
+
return l.div(
|
|
414
|
+
t.class(m),
|
|
415
|
+
// Strength bar
|
|
416
|
+
l.div(
|
|
417
|
+
t.class("bc-password-strength__bar"),
|
|
418
|
+
l.div(
|
|
419
|
+
t.class("bc-password-strength__fill"),
|
|
420
|
+
t.style(u.map((i) => `width: ${i}%`))
|
|
421
|
+
)
|
|
422
|
+
),
|
|
423
|
+
// Strength label (optional)
|
|
424
|
+
_(
|
|
425
|
+
s,
|
|
426
|
+
() => q(
|
|
427
|
+
x,
|
|
428
|
+
(i) => l.div(
|
|
429
|
+
t.class("bc-password-strength__label"),
|
|
430
|
+
b(
|
|
431
|
+
r,
|
|
432
|
+
i
|
|
433
|
+
)((h, L) => {
|
|
434
|
+
switch (h) {
|
|
435
|
+
case "weak":
|
|
436
|
+
return L.passwordStrengthWeak;
|
|
437
|
+
case "fair":
|
|
438
|
+
return L.passwordStrengthFair;
|
|
439
|
+
case "good":
|
|
440
|
+
return L.passwordStrengthGood;
|
|
441
|
+
case "strong":
|
|
442
|
+
return L.passwordStrengthStrong;
|
|
443
|
+
default:
|
|
444
|
+
return L.passwordStrengthWeak;
|
|
445
|
+
}
|
|
446
|
+
})
|
|
447
|
+
)
|
|
448
|
+
)
|
|
449
|
+
),
|
|
450
|
+
// Requirements checklist
|
|
451
|
+
l.div(
|
|
452
|
+
t.class("bc-password-strength__requirements"),
|
|
453
|
+
// Length requirement
|
|
454
|
+
_(
|
|
455
|
+
o.minLength !== void 0,
|
|
456
|
+
() => l.div(
|
|
457
|
+
t.class("bc-password-strength__requirement"),
|
|
458
|
+
t.class(
|
|
459
|
+
b(n)(
|
|
460
|
+
(i) => i.length ? "bc-password-strength__requirement--met" : ""
|
|
461
|
+
)
|
|
462
|
+
),
|
|
463
|
+
l.span(
|
|
464
|
+
t.class("bc-password-strength__requirement-icon"),
|
|
465
|
+
b(n)((i) => i.length ? "✓" : "○")
|
|
466
|
+
),
|
|
467
|
+
l.span(
|
|
468
|
+
t.class("bc-password-strength__requirement-text"),
|
|
469
|
+
`At least ${o.minLength} characters`
|
|
470
|
+
)
|
|
471
|
+
)
|
|
472
|
+
),
|
|
473
|
+
// Uppercase requirement
|
|
474
|
+
_(
|
|
475
|
+
o.requireUppercase === !0,
|
|
476
|
+
() => l.div(
|
|
477
|
+
t.class("bc-password-strength__requirement"),
|
|
478
|
+
t.class(
|
|
479
|
+
b(n)(
|
|
480
|
+
(i) => i.uppercase ? "bc-password-strength__requirement--met" : ""
|
|
481
|
+
)
|
|
482
|
+
),
|
|
483
|
+
l.span(
|
|
484
|
+
t.class("bc-password-strength__requirement-icon"),
|
|
485
|
+
b(n)((i) => i.uppercase ? "✓" : "○")
|
|
486
|
+
),
|
|
487
|
+
l.span(
|
|
488
|
+
t.class("bc-password-strength__requirement-text"),
|
|
489
|
+
"One uppercase letter"
|
|
490
|
+
)
|
|
491
|
+
)
|
|
492
|
+
),
|
|
493
|
+
// Lowercase requirement
|
|
494
|
+
_(
|
|
495
|
+
o.requireLowercase === !0,
|
|
496
|
+
() => l.div(
|
|
497
|
+
t.class("bc-password-strength__requirement"),
|
|
498
|
+
t.class(
|
|
499
|
+
b(n)(
|
|
500
|
+
(i) => i.lowercase ? "bc-password-strength__requirement--met" : ""
|
|
501
|
+
)
|
|
502
|
+
),
|
|
503
|
+
l.span(
|
|
504
|
+
t.class("bc-password-strength__requirement-icon"),
|
|
505
|
+
b(n)((i) => i.lowercase ? "✓" : "○")
|
|
506
|
+
),
|
|
507
|
+
l.span(
|
|
508
|
+
t.class("bc-password-strength__requirement-text"),
|
|
509
|
+
"One lowercase letter"
|
|
510
|
+
)
|
|
511
|
+
)
|
|
512
|
+
),
|
|
513
|
+
// Numbers requirement
|
|
514
|
+
_(
|
|
515
|
+
o.requireNumbers === !0,
|
|
516
|
+
() => l.div(
|
|
517
|
+
t.class("bc-password-strength__requirement"),
|
|
518
|
+
t.class(
|
|
519
|
+
b(n)(
|
|
520
|
+
(i) => i.numbers ? "bc-password-strength__requirement--met" : ""
|
|
521
|
+
)
|
|
522
|
+
),
|
|
523
|
+
l.span(
|
|
524
|
+
t.class("bc-password-strength__requirement-icon"),
|
|
525
|
+
b(n)((i) => i.numbers ? "✓" : "○")
|
|
526
|
+
),
|
|
527
|
+
l.span(
|
|
528
|
+
t.class("bc-password-strength__requirement-text"),
|
|
529
|
+
"One number"
|
|
530
|
+
)
|
|
531
|
+
)
|
|
532
|
+
),
|
|
533
|
+
// Symbols requirement
|
|
534
|
+
_(
|
|
535
|
+
o.requireSymbols === !0,
|
|
536
|
+
() => l.div(
|
|
537
|
+
t.class("bc-password-strength__requirement"),
|
|
538
|
+
t.class(
|
|
539
|
+
b(n)(
|
|
540
|
+
(i) => i.symbols ? "bc-password-strength__requirement--met" : ""
|
|
541
|
+
)
|
|
542
|
+
),
|
|
543
|
+
l.span(
|
|
544
|
+
t.class("bc-password-strength__requirement-icon"),
|
|
545
|
+
b(n)((i) => i.symbols ? "✓" : "○")
|
|
546
|
+
),
|
|
547
|
+
l.span(
|
|
548
|
+
t.class("bc-password-strength__requirement-text"),
|
|
549
|
+
"One special character"
|
|
550
|
+
)
|
|
551
|
+
)
|
|
552
|
+
)
|
|
553
|
+
)
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
function Ye({
|
|
557
|
+
password: e,
|
|
558
|
+
rules: o = $,
|
|
559
|
+
className: s
|
|
560
|
+
}) {
|
|
561
|
+
const a = b(e)((n) => !n || n.length === 0 ? { strength: "weak", score: 0 } : ee(n, o)), c = a.map((n) => n.strength), r = a.map((n) => n.score), u = b(
|
|
562
|
+
c,
|
|
563
|
+
s
|
|
564
|
+
)((n, m) => [
|
|
565
|
+
"bc-password-strength-bar",
|
|
566
|
+
`bc-password-strength-bar--${n}`,
|
|
567
|
+
m
|
|
568
|
+
].filter(Boolean).join(" "));
|
|
569
|
+
return l.div(
|
|
570
|
+
t.class(u),
|
|
571
|
+
l.div(
|
|
572
|
+
t.class("bc-password-strength-bar__fill"),
|
|
573
|
+
t.style(r.map((n) => `width: ${n}%`))
|
|
574
|
+
)
|
|
575
|
+
);
|
|
576
|
+
}
|
|
577
|
+
function Ze({
|
|
578
|
+
password: e,
|
|
579
|
+
rules: o = $,
|
|
580
|
+
className: s
|
|
581
|
+
}) {
|
|
582
|
+
const a = b(e)((r) => !r || r.length === 0 ? "weak" : ee(r, o).strength), c = b(
|
|
583
|
+
a,
|
|
584
|
+
s
|
|
585
|
+
)((r, u) => [
|
|
586
|
+
"bc-password-strength-text",
|
|
587
|
+
`bc-password-strength-text--${r}`,
|
|
588
|
+
u
|
|
589
|
+
].filter(Boolean).join(" "));
|
|
590
|
+
return z(
|
|
591
|
+
q(
|
|
592
|
+
x,
|
|
593
|
+
(r) => l.span(
|
|
594
|
+
t.class(c),
|
|
595
|
+
b(
|
|
596
|
+
a,
|
|
597
|
+
r
|
|
598
|
+
)((u, n) => {
|
|
599
|
+
switch (u) {
|
|
600
|
+
case "weak":
|
|
601
|
+
return n.passwordStrengthWeak;
|
|
602
|
+
case "fair":
|
|
603
|
+
return n.passwordStrengthFair;
|
|
604
|
+
case "good":
|
|
605
|
+
return n.passwordStrengthGood;
|
|
606
|
+
case "strong":
|
|
607
|
+
return n.passwordStrengthStrong;
|
|
608
|
+
default:
|
|
609
|
+
return n.passwordStrengthWeak;
|
|
610
|
+
}
|
|
611
|
+
})
|
|
612
|
+
)
|
|
613
|
+
)
|
|
614
|
+
);
|
|
615
|
+
}
|
|
616
|
+
function ke({
|
|
617
|
+
passwordRules: e,
|
|
618
|
+
labels: o,
|
|
619
|
+
initialEmail: s,
|
|
620
|
+
initialName: a,
|
|
621
|
+
showPasswordStrength: c,
|
|
622
|
+
onSignUp: r,
|
|
623
|
+
showNameField: u,
|
|
624
|
+
showConfirmPassword: n,
|
|
625
|
+
showAcceptTermsAndConditions: m,
|
|
626
|
+
termsAndConditions: i
|
|
627
|
+
}) {
|
|
628
|
+
const h = U(!1), L = e || $, v = Q(L, {
|
|
629
|
+
showNameField: u !== !1,
|
|
630
|
+
showConfirmPassword: n !== !1,
|
|
631
|
+
showAcceptTermsAndConditions: m !== !1
|
|
632
|
+
}), k = G({
|
|
633
|
+
schema: v,
|
|
634
|
+
onSubmit: Z({
|
|
635
|
+
task: r != null ? (w) => r({
|
|
636
|
+
email: w.email,
|
|
637
|
+
password: w.password,
|
|
638
|
+
name: w.name,
|
|
639
|
+
acceptTerms: w.acceptTerms
|
|
640
|
+
}) : void 0,
|
|
641
|
+
message: "Reset password failed",
|
|
642
|
+
onStart: () => {
|
|
643
|
+
h.set(!0), k.controller.disable();
|
|
644
|
+
},
|
|
645
|
+
onEnd: () => {
|
|
646
|
+
h.set(!1), k.controller.enable();
|
|
647
|
+
}
|
|
648
|
+
}),
|
|
649
|
+
initialValue: {
|
|
650
|
+
name: a ?? "",
|
|
651
|
+
email: s ?? "",
|
|
652
|
+
password: "",
|
|
653
|
+
confirmPassword: "",
|
|
654
|
+
acceptTerms: !1
|
|
655
|
+
}
|
|
656
|
+
}), { controller: S, submit: V } = k;
|
|
657
|
+
h.on(S.setDisabled);
|
|
658
|
+
const B = S.field("name"), P = S.field("email"), R = S.field("password"), D = S.field("confirmPassword"), I = S.field("acceptTerms");
|
|
659
|
+
return q(
|
|
660
|
+
x,
|
|
661
|
+
(w) => (
|
|
662
|
+
// Registration form
|
|
663
|
+
l.form(
|
|
664
|
+
t.class("bc-auth-form__form"),
|
|
665
|
+
E.submit(V),
|
|
666
|
+
T(
|
|
667
|
+
t.class("bc-auth-form__fields"),
|
|
668
|
+
W(
|
|
669
|
+
S.error,
|
|
670
|
+
(y) => X(
|
|
671
|
+
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
672
|
+
l.div(y)
|
|
673
|
+
)
|
|
674
|
+
),
|
|
675
|
+
// Name field (optional)
|
|
676
|
+
_(
|
|
677
|
+
u !== !1,
|
|
678
|
+
() => A(ge, {
|
|
679
|
+
controller: B.transform(
|
|
680
|
+
(y) => y ?? "",
|
|
681
|
+
(y) => y === "" ? void 0 : y
|
|
682
|
+
),
|
|
683
|
+
label: g(o?.nameLabel, w.$.nameLabel)
|
|
684
|
+
})
|
|
685
|
+
),
|
|
686
|
+
// Email field
|
|
687
|
+
A(j, {
|
|
688
|
+
controller: P,
|
|
689
|
+
label: g(o?.emailLabel, w.$.emailLabel)
|
|
690
|
+
}),
|
|
691
|
+
// Password field
|
|
692
|
+
A(O, {
|
|
693
|
+
controller: R,
|
|
694
|
+
label: g(o?.passwordLabel, w.$.passwordLabel)
|
|
695
|
+
}),
|
|
696
|
+
// Password strength indicator
|
|
697
|
+
_(
|
|
698
|
+
c ?? !1,
|
|
699
|
+
() => ve({
|
|
700
|
+
password: R.signal,
|
|
701
|
+
rules: L,
|
|
702
|
+
showLabel: !0
|
|
703
|
+
})
|
|
704
|
+
),
|
|
705
|
+
// Confirm password field
|
|
706
|
+
_(
|
|
707
|
+
n ?? !1,
|
|
708
|
+
() => A(O, {
|
|
709
|
+
controller: D,
|
|
710
|
+
label: g(
|
|
711
|
+
o?.confirmPasswordLabel,
|
|
712
|
+
w.$.confirmPasswordLabel
|
|
713
|
+
)
|
|
714
|
+
})
|
|
715
|
+
),
|
|
716
|
+
// Terms acceptance checkbox
|
|
717
|
+
_(
|
|
718
|
+
m ?? !1,
|
|
719
|
+
() => l.div(
|
|
720
|
+
t.class("bc-auth-form__terms"),
|
|
721
|
+
l.label(
|
|
722
|
+
t.class("bc-auth-form__checkbox-label"),
|
|
723
|
+
ne({
|
|
724
|
+
value: I.signal.map((y) => y ?? !1),
|
|
725
|
+
onChange: (y) => I.change(y)
|
|
726
|
+
}),
|
|
727
|
+
l.span(
|
|
728
|
+
i || g(o?.acceptTermsLabel, w.$.acceptTermsLabel)
|
|
729
|
+
)
|
|
730
|
+
),
|
|
731
|
+
_(
|
|
732
|
+
I.errorVisible,
|
|
733
|
+
() => l.div(
|
|
734
|
+
t.class("bc-auth-form__field-error"),
|
|
735
|
+
I.error.map((y) => y || "")
|
|
736
|
+
)
|
|
737
|
+
)
|
|
738
|
+
)
|
|
739
|
+
)
|
|
740
|
+
),
|
|
741
|
+
// Submit button
|
|
742
|
+
M(
|
|
743
|
+
{
|
|
744
|
+
type: "submit",
|
|
745
|
+
variant: "filled",
|
|
746
|
+
color: "primary",
|
|
747
|
+
loading: h,
|
|
748
|
+
disabled: S.disabledOrHasErrors
|
|
749
|
+
},
|
|
750
|
+
t.class("bc-auth-form__submit"),
|
|
751
|
+
g(o?.signUpButton, w.$.signUpButton)
|
|
752
|
+
)
|
|
753
|
+
)
|
|
754
|
+
)
|
|
755
|
+
);
|
|
756
|
+
}
|
|
757
|
+
function ye({
|
|
758
|
+
onResetPassword: e,
|
|
759
|
+
labels: o = {}
|
|
760
|
+
}) {
|
|
761
|
+
const s = ce(), a = U(!1), c = G({
|
|
762
|
+
schema: ie,
|
|
763
|
+
onSubmit: Z({
|
|
764
|
+
task: e,
|
|
765
|
+
message: "Reset password failed",
|
|
766
|
+
onStart: () => {
|
|
767
|
+
a.set(!0), c.controller.disable();
|
|
768
|
+
},
|
|
769
|
+
onEnd: () => {
|
|
770
|
+
a.set(!1), c.controller.enable();
|
|
771
|
+
}
|
|
772
|
+
}),
|
|
773
|
+
initialValue: {
|
|
774
|
+
email: ""
|
|
775
|
+
}
|
|
776
|
+
}), { controller: r, submit: u } = c;
|
|
777
|
+
a.on(r.setDisabled);
|
|
778
|
+
const n = r.field("email");
|
|
779
|
+
return s.on((m) => {
|
|
780
|
+
m != null && n.change(m);
|
|
781
|
+
}), q(
|
|
782
|
+
x,
|
|
783
|
+
(m) => (
|
|
784
|
+
// Reset password form
|
|
785
|
+
l.form(
|
|
786
|
+
t.class("bc-auth-form__form"),
|
|
787
|
+
W(
|
|
788
|
+
r.error,
|
|
789
|
+
(i) => X(
|
|
790
|
+
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
791
|
+
l.div(i)
|
|
792
|
+
)
|
|
793
|
+
),
|
|
794
|
+
// Description
|
|
795
|
+
l.p(
|
|
796
|
+
t.class("bc-auth-form__description"),
|
|
797
|
+
g(o?.resetPasswordDescription, m.$.resetPasswordDescription)
|
|
798
|
+
),
|
|
799
|
+
E.submit(u),
|
|
800
|
+
T(
|
|
801
|
+
t.class("bc-auth-form__fields"),
|
|
802
|
+
// Email field
|
|
803
|
+
A(j, {
|
|
804
|
+
controller: n,
|
|
805
|
+
label: g(o?.emailLabel, m.$.emailLabel)
|
|
806
|
+
})
|
|
807
|
+
),
|
|
808
|
+
// Submit button
|
|
809
|
+
M(
|
|
810
|
+
{
|
|
811
|
+
loading: a,
|
|
812
|
+
type: "submit",
|
|
813
|
+
variant: "filled",
|
|
814
|
+
color: "primary",
|
|
815
|
+
disabled: r.disabledOrHasErrors
|
|
816
|
+
},
|
|
817
|
+
t.class("bc-auth-form__submit"),
|
|
818
|
+
g(o?.resetPasswordButton, m.$.resetPasswordButton)
|
|
819
|
+
)
|
|
820
|
+
)
|
|
821
|
+
)
|
|
822
|
+
);
|
|
823
|
+
}
|
|
824
|
+
function d({
|
|
825
|
+
provider: e,
|
|
826
|
+
onClick: o,
|
|
827
|
+
size: s = "md",
|
|
828
|
+
name: a,
|
|
829
|
+
icon: c,
|
|
830
|
+
color: r,
|
|
831
|
+
flow: u,
|
|
832
|
+
labels: n
|
|
833
|
+
}) {
|
|
834
|
+
return M(
|
|
835
|
+
{
|
|
836
|
+
type: "button",
|
|
837
|
+
variant: "filled",
|
|
838
|
+
size: s,
|
|
839
|
+
color: r,
|
|
840
|
+
onClick: async () => {
|
|
841
|
+
if (o)
|
|
842
|
+
try {
|
|
843
|
+
u === "popup" ? await o() : await o();
|
|
844
|
+
} catch (i) {
|
|
845
|
+
console.error(
|
|
846
|
+
`Social login error for ${e} (${u || "redirect"} flow):`,
|
|
847
|
+
i
|
|
848
|
+
);
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
roundedness: "full"
|
|
852
|
+
},
|
|
853
|
+
t.class("bc-social-login-button"),
|
|
854
|
+
t.class(
|
|
855
|
+
b(e)((i) => `bc-social-login-button--${i}`)
|
|
856
|
+
),
|
|
857
|
+
l.span(
|
|
858
|
+
t.class("bc-social-login-button__inner"),
|
|
859
|
+
l.span(
|
|
860
|
+
t.class("bc-social-login-button__icon"),
|
|
861
|
+
fe({ icon: c, size: s }, t.class("bc-social-login-button__icon-inner"))
|
|
862
|
+
),
|
|
863
|
+
q(
|
|
864
|
+
x,
|
|
865
|
+
(i) => l.span(
|
|
866
|
+
t.class("bc-social-login-button__label"),
|
|
867
|
+
me(
|
|
868
|
+
g(n?.continueWithProvider, i.$.continueWithProvider)
|
|
869
|
+
)(a)
|
|
870
|
+
)
|
|
871
|
+
)
|
|
872
|
+
)
|
|
873
|
+
);
|
|
874
|
+
}
|
|
875
|
+
function Se({
|
|
876
|
+
providers: e,
|
|
877
|
+
onProviderClick: o,
|
|
878
|
+
size: s = "md",
|
|
879
|
+
className: a
|
|
880
|
+
}) {
|
|
881
|
+
return T(
|
|
882
|
+
t.class("bc-social-login-buttons"),
|
|
883
|
+
t.class(a),
|
|
884
|
+
ue(
|
|
885
|
+
e,
|
|
886
|
+
(c) => d({
|
|
887
|
+
provider: c.$.provider,
|
|
888
|
+
flow: c.$.flow,
|
|
889
|
+
color: c.map(
|
|
890
|
+
({ provider: r }) => p[r].color
|
|
891
|
+
),
|
|
892
|
+
name: c.map(({ provider: r }) => p[r].name),
|
|
893
|
+
icon: c.map(({ provider: r }) => p[r].icon),
|
|
894
|
+
onClick: async () => {
|
|
895
|
+
o && await o(c.$.provider.value);
|
|
896
|
+
},
|
|
897
|
+
size: s
|
|
898
|
+
})
|
|
899
|
+
)
|
|
900
|
+
);
|
|
901
|
+
}
|
|
902
|
+
const p = {
|
|
903
|
+
// Core
|
|
904
|
+
google: {
|
|
905
|
+
name: "Google",
|
|
906
|
+
icon: "logos:google-icon",
|
|
907
|
+
color: "red"
|
|
908
|
+
},
|
|
909
|
+
github: {
|
|
910
|
+
name: "GitHub",
|
|
911
|
+
icon: "logos:github-icon",
|
|
912
|
+
color: "black"
|
|
913
|
+
},
|
|
914
|
+
apple: {
|
|
915
|
+
name: "Apple",
|
|
916
|
+
icon: "logos:apple",
|
|
917
|
+
color: "stone"
|
|
918
|
+
// using stone to differentiate from GitHub/X
|
|
919
|
+
},
|
|
920
|
+
facebook: {
|
|
921
|
+
name: "Facebook",
|
|
922
|
+
icon: "logos:facebook",
|
|
923
|
+
color: "blue"
|
|
924
|
+
},
|
|
925
|
+
twitter: {
|
|
926
|
+
name: "Twitter",
|
|
927
|
+
icon: "logos:twitter",
|
|
928
|
+
color: "sky"
|
|
929
|
+
},
|
|
930
|
+
x: {
|
|
931
|
+
name: "X",
|
|
932
|
+
icon: "logos:x",
|
|
933
|
+
color: "zinc"
|
|
934
|
+
// avoids duplicate black
|
|
935
|
+
},
|
|
936
|
+
microsoft: {
|
|
937
|
+
name: "Microsoft",
|
|
938
|
+
icon: "logos:microsoft-icon",
|
|
939
|
+
color: "amber"
|
|
940
|
+
},
|
|
941
|
+
discord: {
|
|
942
|
+
name: "Discord",
|
|
943
|
+
icon: "logos:discord-icon",
|
|
944
|
+
color: "indigo"
|
|
945
|
+
},
|
|
946
|
+
linkedin: {
|
|
947
|
+
name: "LinkedIn",
|
|
948
|
+
icon: "logos:linkedin-icon",
|
|
949
|
+
color: "cyan"
|
|
950
|
+
},
|
|
951
|
+
// Social / Media
|
|
952
|
+
instagram: {
|
|
953
|
+
name: "Instagram",
|
|
954
|
+
icon: "logos:instagram-icon",
|
|
955
|
+
color: "fuchsia"
|
|
956
|
+
},
|
|
957
|
+
tiktok: {
|
|
958
|
+
name: "TikTok",
|
|
959
|
+
icon: "logos:tiktok-icon",
|
|
960
|
+
color: "teal"
|
|
961
|
+
},
|
|
962
|
+
snapchat: {
|
|
963
|
+
name: "Snapchat",
|
|
964
|
+
icon: "simple-icons:snapchat",
|
|
965
|
+
color: "yellow"
|
|
966
|
+
},
|
|
967
|
+
reddit: {
|
|
968
|
+
name: "Reddit",
|
|
969
|
+
icon: "logos:reddit-icon",
|
|
970
|
+
color: "orange"
|
|
971
|
+
},
|
|
972
|
+
pinterest: {
|
|
973
|
+
name: "Pinterest",
|
|
974
|
+
icon: "logos:pinterest",
|
|
975
|
+
color: "rose"
|
|
976
|
+
},
|
|
977
|
+
// Gaming / Entertainment
|
|
978
|
+
twitch: {
|
|
979
|
+
name: "Twitch",
|
|
980
|
+
icon: "logos:twitch",
|
|
981
|
+
color: "purple"
|
|
982
|
+
},
|
|
983
|
+
steam: {
|
|
984
|
+
name: "Steam",
|
|
985
|
+
icon: "logos:steam",
|
|
986
|
+
color: "slate"
|
|
987
|
+
},
|
|
988
|
+
epic: {
|
|
989
|
+
name: "Epic Games",
|
|
990
|
+
icon: "simple-icons:epicgames",
|
|
991
|
+
color: "neutral"
|
|
992
|
+
},
|
|
993
|
+
playstation: {
|
|
994
|
+
name: "PlayStation",
|
|
995
|
+
icon: "simple-icons:playstation",
|
|
996
|
+
color: "violet"
|
|
997
|
+
},
|
|
998
|
+
xbox: {
|
|
999
|
+
name: "Xbox",
|
|
1000
|
+
icon: "simple-icons:xbox",
|
|
1001
|
+
color: "green"
|
|
1002
|
+
},
|
|
1003
|
+
// Messaging
|
|
1004
|
+
whatsapp: {
|
|
1005
|
+
name: "WhatsApp",
|
|
1006
|
+
icon: "logos:whatsapp-icon",
|
|
1007
|
+
color: "emerald"
|
|
1008
|
+
},
|
|
1009
|
+
wechat: {
|
|
1010
|
+
name: "WeChat",
|
|
1011
|
+
icon: "simple-icons:wechat",
|
|
1012
|
+
color: "lime"
|
|
1013
|
+
},
|
|
1014
|
+
// Other Identity
|
|
1015
|
+
amazon: {
|
|
1016
|
+
name: "Amazon",
|
|
1017
|
+
icon: "simple-icons:amazon",
|
|
1018
|
+
color: "red"
|
|
1019
|
+
// distinct warm tone (not used elsewhere here)
|
|
1020
|
+
},
|
|
1021
|
+
yahoo: {
|
|
1022
|
+
name: "Yahoo",
|
|
1023
|
+
icon: "logos:yahoo",
|
|
1024
|
+
color: "rose"
|
|
1025
|
+
// unique variation for Yahoo
|
|
1026
|
+
},
|
|
1027
|
+
paypal: {
|
|
1028
|
+
name: "PayPal",
|
|
1029
|
+
icon: "logos:paypal",
|
|
1030
|
+
color: "blue"
|
|
1031
|
+
// distinct deep blue tone (not Facebook’s exact blue)
|
|
1032
|
+
}
|
|
1033
|
+
}, Je = (e) => d({
|
|
1034
|
+
...e,
|
|
1035
|
+
...p.google,
|
|
1036
|
+
provider: "google"
|
|
1037
|
+
}), Ke = (e) => d({
|
|
1038
|
+
...e,
|
|
1039
|
+
...p.github,
|
|
1040
|
+
provider: "github"
|
|
1041
|
+
}), Qe = (e) => d({
|
|
1042
|
+
...e,
|
|
1043
|
+
...p.apple,
|
|
1044
|
+
provider: "apple"
|
|
1045
|
+
}), eo = (e) => d({
|
|
1046
|
+
...e,
|
|
1047
|
+
...p.facebook,
|
|
1048
|
+
provider: "facebook"
|
|
1049
|
+
}), oo = (e) => d({
|
|
1050
|
+
...e,
|
|
1051
|
+
...p.x,
|
|
1052
|
+
provider: "x"
|
|
1053
|
+
}), to = (e) => d({
|
|
1054
|
+
...e,
|
|
1055
|
+
...p.twitter,
|
|
1056
|
+
provider: "twitter"
|
|
1057
|
+
}), ao = (e) => d({
|
|
1058
|
+
...e,
|
|
1059
|
+
...p.microsoft,
|
|
1060
|
+
provider: "microsoft"
|
|
1061
|
+
}), so = (e) => d({
|
|
1062
|
+
...e,
|
|
1063
|
+
...p.discord,
|
|
1064
|
+
provider: "discord"
|
|
1065
|
+
}), no = (e) => d({
|
|
1066
|
+
...e,
|
|
1067
|
+
...p.linkedin,
|
|
1068
|
+
provider: "linkedin"
|
|
1069
|
+
}), ro = (e) => d({
|
|
1070
|
+
...e,
|
|
1071
|
+
...p.instagram,
|
|
1072
|
+
provider: "instagram"
|
|
1073
|
+
}), io = (e) => d({
|
|
1074
|
+
...e,
|
|
1075
|
+
...p.tiktok,
|
|
1076
|
+
provider: "tiktok"
|
|
1077
|
+
}), co = (e) => d({
|
|
1078
|
+
...e,
|
|
1079
|
+
...p.snapchat,
|
|
1080
|
+
provider: "snapchat"
|
|
1081
|
+
}), lo = (e) => d({
|
|
1082
|
+
...e,
|
|
1083
|
+
...p.reddit,
|
|
1084
|
+
provider: "reddit"
|
|
1085
|
+
}), mo = (e) => d({
|
|
1086
|
+
...e,
|
|
1087
|
+
...p.pinterest,
|
|
1088
|
+
provider: "pinterest"
|
|
1089
|
+
}), uo = (e) => d({
|
|
1090
|
+
...e,
|
|
1091
|
+
...p.twitch,
|
|
1092
|
+
provider: "twitch"
|
|
1093
|
+
}), po = (e) => d({
|
|
1094
|
+
...e,
|
|
1095
|
+
...p.steam,
|
|
1096
|
+
provider: "steam"
|
|
1097
|
+
}), ho = (e) => d({
|
|
1098
|
+
...e,
|
|
1099
|
+
...p.epic,
|
|
1100
|
+
provider: "epic"
|
|
1101
|
+
}), go = (e) => d({
|
|
1102
|
+
...e,
|
|
1103
|
+
...p.playstation,
|
|
1104
|
+
provider: "playstation"
|
|
1105
|
+
}), fo = (e) => d({
|
|
1106
|
+
...e,
|
|
1107
|
+
...p.xbox,
|
|
1108
|
+
provider: "xbox"
|
|
1109
|
+
}), bo = (e) => d({
|
|
1110
|
+
...e,
|
|
1111
|
+
...p.whatsapp,
|
|
1112
|
+
provider: "whatsapp"
|
|
1113
|
+
}), wo = (e) => d({
|
|
1114
|
+
...e,
|
|
1115
|
+
...p.wechat,
|
|
1116
|
+
provider: "wechat"
|
|
1117
|
+
}), _o = (e) => d({
|
|
1118
|
+
...e,
|
|
1119
|
+
...p.amazon,
|
|
1120
|
+
provider: "amazon"
|
|
1121
|
+
}), Lo = (e) => d({
|
|
1122
|
+
...e,
|
|
1123
|
+
...p.yahoo,
|
|
1124
|
+
provider: "yahoo"
|
|
1125
|
+
}), vo = (e) => d({
|
|
1126
|
+
...e,
|
|
1127
|
+
...p.paypal,
|
|
1128
|
+
provider: "paypal"
|
|
1129
|
+
});
|
|
1130
|
+
function ae({
|
|
1131
|
+
providers: e,
|
|
1132
|
+
onSocialLogin: o
|
|
1133
|
+
}) {
|
|
1134
|
+
return T(
|
|
1135
|
+
Se({
|
|
1136
|
+
providers: e,
|
|
1137
|
+
onProviderClick: o
|
|
1138
|
+
})
|
|
1139
|
+
);
|
|
1140
|
+
}
|
|
1141
|
+
function Pe({
|
|
1142
|
+
mode: e,
|
|
1143
|
+
socialProviders: o,
|
|
1144
|
+
initialName: s,
|
|
1145
|
+
initialEmail: a,
|
|
1146
|
+
passwordRules: c,
|
|
1147
|
+
showRememberMe: r,
|
|
1148
|
+
showSocialDivider: u,
|
|
1149
|
+
showPasswordStrength: n,
|
|
1150
|
+
labels: m,
|
|
1151
|
+
onSignIn: i,
|
|
1152
|
+
onSignUp: h,
|
|
1153
|
+
onResetPassword: L,
|
|
1154
|
+
onModeChange: v,
|
|
1155
|
+
onSocialLogin: k,
|
|
1156
|
+
showContainer: S
|
|
1157
|
+
}, ...V) {
|
|
1158
|
+
const B = e != null ? oe.deriveProp(e) : U("signin");
|
|
1159
|
+
return B.on((P) => v?.(P)), q(x, (P) => {
|
|
1160
|
+
function R() {
|
|
1161
|
+
const w = g(m?.hasAccountLink, P.$.hasAccountLink);
|
|
1162
|
+
return l.button(
|
|
1163
|
+
t.type("button"),
|
|
1164
|
+
t.class("bc-auth-form__link"),
|
|
1165
|
+
E.click(() => B.set("signin")),
|
|
1166
|
+
w
|
|
1167
|
+
);
|
|
1168
|
+
}
|
|
1169
|
+
function D() {
|
|
1170
|
+
return l.button(
|
|
1171
|
+
t.type("button"),
|
|
1172
|
+
t.class("bc-auth-form__link"),
|
|
1173
|
+
E.click(() => B.set("signup")),
|
|
1174
|
+
g(m?.noAccountLink, P.$.noAccountLink)
|
|
1175
|
+
);
|
|
1176
|
+
}
|
|
1177
|
+
function I() {
|
|
1178
|
+
return l.button(
|
|
1179
|
+
t.type("button"),
|
|
1180
|
+
t.class("bc-auth-form__link"),
|
|
1181
|
+
E.click(() => B.set("reset-password")),
|
|
1182
|
+
g(m?.forgotPasswordLink, P.$.forgotPasswordLink)
|
|
1183
|
+
);
|
|
1184
|
+
}
|
|
1185
|
+
return l.div(
|
|
1186
|
+
be({
|
|
1187
|
+
"bc-auth-container": !0,
|
|
1188
|
+
"bc-auth-container--styled": oe.map(S ?? !0, (w) => w)
|
|
1189
|
+
}),
|
|
1190
|
+
t.class(B.map((w) => `bc-auth-container--${w}`)),
|
|
1191
|
+
t.class("bc-auth-form"),
|
|
1192
|
+
pe(B, {
|
|
1193
|
+
signin: () => z(
|
|
1194
|
+
l.h2(
|
|
1195
|
+
t.class("bc-auth-form__title"),
|
|
1196
|
+
g(m?.signInTitle, P.$.signInTitle)
|
|
1197
|
+
),
|
|
1198
|
+
o != null ? z(
|
|
1199
|
+
ae({
|
|
1200
|
+
providers: o,
|
|
1201
|
+
onSocialLogin: k
|
|
1202
|
+
}),
|
|
1203
|
+
_(u ?? !1, se)
|
|
1204
|
+
) : null,
|
|
1205
|
+
Le({
|
|
1206
|
+
onSignIn: i,
|
|
1207
|
+
showRememberMe: r,
|
|
1208
|
+
passwordRules: c,
|
|
1209
|
+
labels: {
|
|
1210
|
+
emailLabel: m?.emailLabel,
|
|
1211
|
+
passwordLabel: m?.passwordLabel,
|
|
1212
|
+
rememberMeLabel: m?.rememberMeLabel,
|
|
1213
|
+
signInButton: m?.signInButton,
|
|
1214
|
+
forgotPasswordLink: m?.forgotPasswordLink,
|
|
1215
|
+
noAccountLink: m?.noAccountLink
|
|
1216
|
+
}
|
|
1217
|
+
}),
|
|
1218
|
+
T(
|
|
1219
|
+
t.class("bc-auth-form__footer"),
|
|
1220
|
+
D(),
|
|
1221
|
+
I()
|
|
1222
|
+
)
|
|
1223
|
+
),
|
|
1224
|
+
signup: () => z(
|
|
1225
|
+
l.h2(
|
|
1226
|
+
t.class("bc-auth-form__title"),
|
|
1227
|
+
g(m?.signUpTitle, P.$.signUpTitle)
|
|
1228
|
+
),
|
|
1229
|
+
o != null ? z(
|
|
1230
|
+
ae({
|
|
1231
|
+
providers: o,
|
|
1232
|
+
onSocialLogin: k
|
|
1233
|
+
}),
|
|
1234
|
+
_(u ?? !1, se)
|
|
1235
|
+
) : null,
|
|
1236
|
+
ke({
|
|
1237
|
+
labels: {
|
|
1238
|
+
nameLabel: m?.nameLabel,
|
|
1239
|
+
emailLabel: m?.emailLabel,
|
|
1240
|
+
passwordLabel: m?.passwordLabel,
|
|
1241
|
+
confirmPasswordLabel: m?.confirmPasswordLabel,
|
|
1242
|
+
acceptTermsLabel: m?.acceptTermsLabel,
|
|
1243
|
+
signUpButton: m?.signUpButton,
|
|
1244
|
+
hasAccountLink: m?.hasAccountLink
|
|
1245
|
+
},
|
|
1246
|
+
initialEmail: a,
|
|
1247
|
+
initialName: s,
|
|
1248
|
+
onSignUp: h,
|
|
1249
|
+
passwordRules: c,
|
|
1250
|
+
showPasswordStrength: n
|
|
1251
|
+
}),
|
|
1252
|
+
T(t.class("bc-auth-form__footer"), R())
|
|
1253
|
+
),
|
|
1254
|
+
"reset-password": () => z(
|
|
1255
|
+
l.h2(
|
|
1256
|
+
t.class("bc-auth-form__title"),
|
|
1257
|
+
g(m?.resetPasswordTitle, P.$.resetPasswordTitle)
|
|
1258
|
+
),
|
|
1259
|
+
ye({
|
|
1260
|
+
labels: {
|
|
1261
|
+
backToSignInLink: m?.backToSignInLink,
|
|
1262
|
+
emailLabel: m?.emailLabel,
|
|
1263
|
+
resetPasswordButton: m?.resetPasswordButton,
|
|
1264
|
+
resetPasswordDescription: m?.resetPasswordDescription
|
|
1265
|
+
},
|
|
1266
|
+
onResetPassword: L
|
|
1267
|
+
}),
|
|
1268
|
+
T(t.class("bc-auth-form__footer"), R())
|
|
1269
|
+
)
|
|
1270
|
+
}),
|
|
1271
|
+
...V
|
|
1272
|
+
);
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1275
|
+
function ko(e) {
|
|
1276
|
+
return he(
|
|
1277
|
+
{
|
|
1278
|
+
size: "sm",
|
|
1279
|
+
dismissable: !0,
|
|
1280
|
+
showCloseButton: !0
|
|
1281
|
+
},
|
|
1282
|
+
(o, s) => e(
|
|
1283
|
+
(a) => o({
|
|
1284
|
+
body: Pe({ showContainer: !1, ...a }),
|
|
1285
|
+
header: q(
|
|
1286
|
+
x,
|
|
1287
|
+
(c) => g(a.modalTitle, c.$.authenticationTitle)
|
|
1288
|
+
)
|
|
1289
|
+
})
|
|
1290
|
+
)
|
|
1291
|
+
);
|
|
1292
|
+
}
|
|
1293
|
+
function se({
|
|
1294
|
+
labels: e,
|
|
1295
|
+
className: o
|
|
1296
|
+
} = {}) {
|
|
1297
|
+
return l.div(
|
|
1298
|
+
t.class("bc-auth-divider"),
|
|
1299
|
+
t.class(o),
|
|
1300
|
+
l.div(t.class("bc-auth-divider__line")),
|
|
1301
|
+
q(
|
|
1302
|
+
x,
|
|
1303
|
+
(s) => l.span(
|
|
1304
|
+
t.class("bc-auth-divider__text"),
|
|
1305
|
+
g(e?.text, s.$.orDivider)
|
|
1306
|
+
)
|
|
1307
|
+
),
|
|
1308
|
+
l.div(t.class("bc-auth-divider__line"))
|
|
1309
|
+
);
|
|
1310
|
+
}
|
|
1311
|
+
export {
|
|
1312
|
+
Ue as $,
|
|
1313
|
+
Pe as A,
|
|
1314
|
+
mo as B,
|
|
1315
|
+
uo as C,
|
|
1316
|
+
so as D,
|
|
1317
|
+
po as E,
|
|
1318
|
+
eo as F,
|
|
1319
|
+
Je as G,
|
|
1320
|
+
ho as H,
|
|
1321
|
+
ro as I,
|
|
1322
|
+
go as J,
|
|
1323
|
+
fo as K,
|
|
1324
|
+
no as L,
|
|
1325
|
+
ao as M,
|
|
1326
|
+
wo as N,
|
|
1327
|
+
_o as O,
|
|
1328
|
+
ve as P,
|
|
1329
|
+
vo as Q,
|
|
1330
|
+
ye as R,
|
|
1331
|
+
Le as S,
|
|
1332
|
+
to as T,
|
|
1333
|
+
ae as U,
|
|
1334
|
+
Y as V,
|
|
1335
|
+
bo as W,
|
|
1336
|
+
oo as X,
|
|
1337
|
+
Lo as Y,
|
|
1338
|
+
we as Z,
|
|
1339
|
+
Re as _,
|
|
1340
|
+
ko as a,
|
|
1341
|
+
Me as a0,
|
|
1342
|
+
$ as a1,
|
|
1343
|
+
Ne as a2,
|
|
1344
|
+
_e as a3,
|
|
1345
|
+
Ve as a4,
|
|
1346
|
+
De as a5,
|
|
1347
|
+
Fe as a6,
|
|
1348
|
+
Oe as a7,
|
|
1349
|
+
Z as a8,
|
|
1350
|
+
se as b,
|
|
1351
|
+
Ye as c,
|
|
1352
|
+
Ze as d,
|
|
1353
|
+
J as e,
|
|
1354
|
+
N as f,
|
|
1355
|
+
re as g,
|
|
1356
|
+
K as h,
|
|
1357
|
+
Q as i,
|
|
1358
|
+
We as j,
|
|
1359
|
+
Ge as k,
|
|
1360
|
+
He as l,
|
|
1361
|
+
Xe as m,
|
|
1362
|
+
ee as n,
|
|
1363
|
+
ke as o,
|
|
1364
|
+
d as p,
|
|
1365
|
+
Se as q,
|
|
1366
|
+
ie as r,
|
|
1367
|
+
p as s,
|
|
1368
|
+
Ke as t,
|
|
1369
|
+
ce as u,
|
|
1370
|
+
je as v,
|
|
1371
|
+
Qe as w,
|
|
1372
|
+
io as x,
|
|
1373
|
+
co as y,
|
|
1374
|
+
lo as z
|
|
1375
|
+
};
|