@tempots/beatui 0.82.1 → 0.83.3
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/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 +33 -32
- package/dist/{auth-divider-Wr-S16kF.js → auth-divider-C3_CgC0l.js} +589 -569
- package/dist/auth-divider-C4WTL71M.cjs +1 -0
- package/dist/beatui.css +5678 -1438
- package/dist/beatui.tailwind.css +5662 -1422
- package/dist/better-auth/index.cjs.js +1 -1
- package/dist/better-auth/index.es.js +18 -31
- 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-B9UNmUCh.cjs → duration-input-BJzKgI15.cjs} +1 -1
- package/dist/{duration-input-DqcJbxKD.js → duration-input-DaB6s0rL.js} +4 -4
- 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/{index-Bt7FYl80.cjs → index-Bm43lZqE.cjs} +2 -2
- package/dist/{index-05UbKOYe.cjs → index-C2_iX1um.cjs} +1 -1
- package/dist/{index-C2Lq1m45.js → index-C32iUFIr.js} +5 -5
- package/dist/{index-lYhXnu6I.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 +6220 -3084
- package/dist/input-container-CSi72GI1.cjs +1 -0
- package/dist/{input-container-DiCjOzR2.js → input-container-Nx0gMAzS.js} +86 -75
- 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 +191 -185
- 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 +679 -660
- 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 +31 -31
- package/dist/lexical/index.es.js +5248 -5221
- package/dist/lexical.css +5 -7
- package/dist/menu-CX72LaZ3.cjs +1 -0
- package/dist/menu-D_slbwl8.js +374 -0
- package/dist/{modal-v3u2Fpnd.js → modal-DaI1jH-X.js} +4 -4
- package/dist/{modal-I5srcntN.cjs → modal-kyZfvVZb.cjs} +1 -1
- 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-CLDdy1MW.cjs → notice-Bc1L4Zpr.cjs} +1 -1
- package/dist/{notice-BuZvdvZh.js → notice-Dz4nX57_.js} +4 -4
- package/dist/{oneof-branch-detection-Dt8ss9lc.js → oneof-branch-detection-BED_n2MT.js} +522 -519
- package/dist/{oneof-branch-detection-DsM1K5xc.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/{styles-url-B2dzXrYt.cjs → styles-url-CVCcF0ra.cjs} +1 -1
- package/dist/{styles-url-Cw_mxshe.js → styles-url-DUdp56Ts.js} +1 -1
- 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 +294 -410
- package/dist/text-input-8v79fzEy.cjs +1 -0
- package/dist/text-input-CPJzUC2r.js +45 -0
- package/dist/{toolbar-D994_E_s.js → toolbar-CjQG7l7X.js} +1 -1
- package/dist/{toolbar-x0_8lmKu.cjs → toolbar-D3ZsC0g_.cjs} +1 -1
- 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/components/authenticated.d.ts +2 -2
- package/dist/types/better-auth/components/better-auth-container.d.ts +1 -1
- package/dist/types/better-auth/components/better-auth-modal.d.ts +1 -1
- package/dist/types/better-auth/index.d.ts +13 -0
- package/dist/types/better-auth/provider.d.ts +33 -0
- package/dist/types/better-auth/types.d.ts +112 -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 +299 -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/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/deprecation-utils.d.ts +2 -3
- 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/code/language-selector.d.ts +2 -2
- package/dist/types/components/lexical/floating/block-handle.d.ts +2 -2
- package/dist/types/components/lexical/floating/floating-toolbar.d.ts +2 -2
- package/dist/types/components/lexical/floating/slash-command-palette.d.ts +2 -2
- package/dist/types/components/lexical/table/table-controls.d.ts +2 -2
- package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +2 -2
- package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +4 -2
- 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 +10 -0
- package/dist/types/components/prosemirror/etoolbar-group.d.ts +10 -0
- 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/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-B56E_x5Y.js → use-form-BurzbPVV.js} +190 -2
- package/dist/{use-form-Cnp3XQ5X.cjs → use-form-Uree6QFy.cjs} +1 -1
- 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-Ds9sicAg.js → widget-customization-0is7oTeP.js} +205 -204
- 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 +1 -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/auth-divider-BqZPH1-z.cjs +0 -1
- package/dist/de-BUFLEyKr.cjs +0 -1
- package/dist/de-WzsOu9Gn.cjs +0 -1
- package/dist/deep-merge-BYm0y62g.js +0 -1620
- package/dist/deep-merge-d7sf0xmN.cjs +0 -1
- package/dist/editor-toolbar-group--a-xgsJw.cjs +0 -1
- package/dist/editor-toolbar-group-CVpl5mxF.js +0 -31
- 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/input-container-C6qEIjcA.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/menu-CZzRsQP_.js +0 -372
- package/dist/menu-ClrU72xH.cjs +0 -1
- package/dist/nl-Bx2ACvr4.cjs +0 -1
- package/dist/nl-NuTdZO1s.js +0 -102
- 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-B3VBat1k.js +0 -44
- package/dist/text-input-Ds8e7Z1G.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-animated-toggle-ChycsEoj.js +0 -175
- package/dist/use-animated-toggle-DR6CyMac.cjs +0 -1
- 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-Dk7XcVly.cjs +0 -1
- package/dist/zh-CCGXcj5r.cjs +0 -1
- package/dist/zh-Cb1b8uik.cjs +0 -1
- package/dist/zh-Dn1UJiZa.js +0 -101
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { localStorageProp as
|
|
2
|
-
import { i as
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { P as
|
|
7
|
-
import { B as
|
|
8
|
-
import { T as
|
|
9
|
-
import { I as
|
|
10
|
-
import { classes as
|
|
11
|
-
const
|
|
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
12
|
google: { name: "Google", icon: "logos:google-icon", color: "#4285f4" },
|
|
13
13
|
github: { name: "GitHub", icon: "logos:github-icon", color: "#333" },
|
|
14
14
|
apple: { name: "Apple", icon: "logos:apple", color: "#000" },
|
|
@@ -54,17 +54,17 @@ const X = {
|
|
|
54
54
|
paypal: { name: "PayPal", icon: "logos:paypal", color: "#0070ba" },
|
|
55
55
|
x: { name: "X", icon: "simple-icons:x", color: "#000" }
|
|
56
56
|
};
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function we(e) {
|
|
58
|
+
return Y[e]?.name || e;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
return
|
|
60
|
+
function Re(e) {
|
|
61
|
+
return Y[e]?.icon || "mdi:account";
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return
|
|
63
|
+
function Ue(e) {
|
|
64
|
+
return Y[e]?.color || "#666";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return o.replace("{provider}",
|
|
66
|
+
function Me(e, o = "Continue with {provider}") {
|
|
67
|
+
return o.replace("{provider}", we(e));
|
|
68
68
|
}
|
|
69
69
|
const $ = {
|
|
70
70
|
minLength: 8,
|
|
@@ -73,18 +73,18 @@ const $ = {
|
|
|
73
73
|
requireNumbers: !0,
|
|
74
74
|
requireSymbols: !1
|
|
75
75
|
};
|
|
76
|
-
function
|
|
76
|
+
function Ne(e) {
|
|
77
77
|
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function _e(e = 32) {
|
|
80
80
|
const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
81
|
-
let
|
|
82
|
-
for (let
|
|
83
|
-
|
|
84
|
-
return
|
|
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
85
|
}
|
|
86
|
-
function
|
|
87
|
-
const
|
|
86
|
+
function Ve(e, o, s, a = [], c = {}) {
|
|
87
|
+
const r = {
|
|
88
88
|
google: "https://accounts.google.com/oauth/authorize",
|
|
89
89
|
github: "https://github.com/login/oauth/authorize",
|
|
90
90
|
apple: "https://appleid.apple.com/auth/authorize",
|
|
@@ -134,126 +134,136 @@ function Fe(e, o, c, m = [], l = {}) {
|
|
|
134
134
|
yahoo: ["openid", "email", "profile"],
|
|
135
135
|
paypal: ["openid", "email", "profile"],
|
|
136
136
|
x: ["openid", "email", "profile"]
|
|
137
|
-
},
|
|
138
|
-
if (!
|
|
137
|
+
}, n = r[e];
|
|
138
|
+
if (!n)
|
|
139
139
|
throw new Error(`Unsupported provider: ${e}`);
|
|
140
|
-
const
|
|
140
|
+
const m = a.length > 0 ? a : u[e], i = _e(), h = new URLSearchParams({
|
|
141
141
|
client_id: o,
|
|
142
|
-
redirect_uri:
|
|
143
|
-
scope:
|
|
144
|
-
state:
|
|
142
|
+
redirect_uri: s,
|
|
143
|
+
scope: m.join(" "),
|
|
144
|
+
state: i,
|
|
145
145
|
response_type: "code",
|
|
146
|
-
...
|
|
146
|
+
...c
|
|
147
147
|
});
|
|
148
|
-
return `${
|
|
148
|
+
return `${n}?${h.toString()}`;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
const
|
|
150
|
+
function De(e, o, s, a) {
|
|
151
|
+
const c = window.open(
|
|
152
152
|
e,
|
|
153
153
|
`${o}_login`,
|
|
154
154
|
"width=500,height=600,scrollbars=yes,resizable=yes"
|
|
155
155
|
);
|
|
156
|
-
if (!
|
|
157
|
-
|
|
156
|
+
if (!c) {
|
|
157
|
+
a?.(new Error("Failed to open popup window"));
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
}, 1e3), u = (
|
|
163
|
-
|
|
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
164
|
};
|
|
165
165
|
window.addEventListener("message", u);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function Fe(e) {
|
|
168
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
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Oe() {
|
|
171
171
|
return typeof window < "u" && typeof document < "u";
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function Z({
|
|
174
174
|
task: e,
|
|
175
175
|
message: o,
|
|
176
|
-
onStart:
|
|
177
|
-
onEnd:
|
|
176
|
+
onStart: s,
|
|
177
|
+
onEnd: a
|
|
178
178
|
}) {
|
|
179
|
-
return async (
|
|
180
|
-
|
|
181
|
-
const
|
|
182
|
-
task: e != null ? () => e(
|
|
179
|
+
return async (c) => {
|
|
180
|
+
s?.();
|
|
181
|
+
const r = await de({
|
|
182
|
+
task: e != null ? () => e(c) : async () => null,
|
|
183
183
|
errorMessage: o,
|
|
184
184
|
errorPath: ["root"],
|
|
185
|
-
validation: (u) => u != null ?
|
|
185
|
+
validation: (u) => u != null ? te.invalid({ message: u }) : te.valid
|
|
186
186
|
});
|
|
187
|
-
return
|
|
187
|
+
return a?.(), r;
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
function J(e = $, o) {
|
|
191
|
+
const s = o ?? f;
|
|
192
|
+
let a = C();
|
|
193
|
+
return e.minLength && (a = a.min(
|
|
193
194
|
e.minLength,
|
|
194
|
-
|
|
195
|
-
|
|
195
|
+
(s.passwordMinLength ?? f.passwordMinLength)(
|
|
196
|
+
e.minLength
|
|
197
|
+
)
|
|
198
|
+
)), e.requireUppercase && (a = a.regex(
|
|
196
199
|
/[A-Z]/,
|
|
197
|
-
|
|
198
|
-
)), e.requireLowercase && (
|
|
200
|
+
s.passwordRequireUppercase ?? f.passwordRequireUppercase
|
|
201
|
+
)), e.requireLowercase && (a = a.regex(
|
|
199
202
|
/[a-z]/,
|
|
200
|
-
|
|
201
|
-
)), e.requireNumbers && (
|
|
203
|
+
s.passwordRequireLowercase ?? f.passwordRequireLowercase
|
|
204
|
+
)), e.requireNumbers && (a = a.regex(
|
|
202
205
|
/[0-9]/,
|
|
203
|
-
|
|
204
|
-
)), e.requireSymbols && (
|
|
206
|
+
s.passwordRequireNumber ?? f.passwordRequireNumber
|
|
207
|
+
)), e.requireSymbols && (a = a.regex(
|
|
205
208
|
/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/,
|
|
206
|
-
|
|
207
|
-
)), e.customValidation && (
|
|
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);
|
|
208
215
|
}
|
|
209
|
-
const
|
|
210
|
-
function
|
|
211
|
-
const o = e ?
|
|
212
|
-
(c) => c.length > 0 ? null :
|
|
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
|
|
213
220
|
);
|
|
214
|
-
return
|
|
215
|
-
email:
|
|
216
|
-
password:
|
|
217
|
-
rememberMe:
|
|
221
|
+
return H({
|
|
222
|
+
email: N(o),
|
|
223
|
+
password: a,
|
|
224
|
+
rememberMe: F().default(!1)
|
|
218
225
|
}).schema();
|
|
219
226
|
}
|
|
220
|
-
function
|
|
221
|
-
const c =
|
|
222
|
-
name:
|
|
223
|
-
email:
|
|
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),
|
|
224
231
|
password: c,
|
|
225
232
|
// Always require confirmPassword as string to match SignUpData interface
|
|
226
233
|
// When not shown, it should accept any value (including empty string)
|
|
227
|
-
confirmPassword:
|
|
234
|
+
confirmPassword: u ? C().min(
|
|
235
|
+
1,
|
|
236
|
+
a.confirmPasswordRequired ?? f.confirmPasswordRequired
|
|
237
|
+
) : C(),
|
|
228
238
|
// Accept any string value when not shown
|
|
229
|
-
acceptTerms:
|
|
230
|
-
(
|
|
231
|
-
|
|
232
|
-
) :
|
|
239
|
+
acceptTerms: n ? F().refine(
|
|
240
|
+
(h) => h === !0,
|
|
241
|
+
a.acceptTermsRequired ?? f.acceptTermsRequired
|
|
242
|
+
) : F().default(!0)
|
|
233
243
|
// Default to true when not shown
|
|
234
|
-
},
|
|
235
|
-
return
|
|
236
|
-
(
|
|
244
|
+
}, i = H(m);
|
|
245
|
+
return u ? i.refine(
|
|
246
|
+
(h) => h.password === h.confirmPassword ? null : a.passwordsDoNotMatch ?? f.passwordsDoNotMatch,
|
|
237
247
|
{ path: ["confirmPassword"] }
|
|
238
|
-
).schema() :
|
|
248
|
+
).schema() : i.schema();
|
|
239
249
|
}
|
|
240
|
-
const
|
|
241
|
-
email:
|
|
242
|
-
}).schema(),
|
|
243
|
-
signIn:
|
|
244
|
-
signUp:
|
|
245
|
-
resetPassword: () =>
|
|
250
|
+
const ie = H({
|
|
251
|
+
email: re
|
|
252
|
+
}).schema(), We = K(), Ge = Q(), He = {
|
|
253
|
+
signIn: K,
|
|
254
|
+
signUp: Q,
|
|
255
|
+
resetPassword: () => ie
|
|
246
256
|
};
|
|
247
|
-
function
|
|
248
|
-
const o =
|
|
249
|
-
return
|
|
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);
|
|
250
260
|
}
|
|
251
|
-
function
|
|
252
|
-
const
|
|
253
|
-
return
|
|
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);
|
|
254
264
|
}
|
|
255
|
-
function
|
|
256
|
-
const
|
|
265
|
+
function ee(e, o = $) {
|
|
266
|
+
const s = {
|
|
257
267
|
length: e.length >= (o.minLength || 8),
|
|
258
268
|
uppercase: /[A-Z]/.test(e),
|
|
259
269
|
lowercase: /[a-z]/.test(e),
|
|
@@ -261,7 +271,7 @@ function Q(e, o = $) {
|
|
|
261
271
|
symbols: /[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(e),
|
|
262
272
|
custom: o.customValidation ? o.customValidation(e) === null : e.length > 0
|
|
263
273
|
// For consistency, fail if password is empty
|
|
264
|
-
},
|
|
274
|
+
}, a = [
|
|
265
275
|
!0,
|
|
266
276
|
// length is always enabled
|
|
267
277
|
o.requireUppercase,
|
|
@@ -269,90 +279,90 @@ function Q(e, o = $) {
|
|
|
269
279
|
o.requireNumbers,
|
|
270
280
|
o.requireSymbols,
|
|
271
281
|
!!o.customValidation
|
|
272
|
-
].filter(Boolean).length,
|
|
273
|
-
|
|
274
|
-
o.requireUppercase ?
|
|
275
|
-
o.requireLowercase ?
|
|
276
|
-
o.requireNumbers ?
|
|
277
|
-
o.requireSymbols ?
|
|
278
|
-
o.customValidation ?
|
|
279
|
-
].filter((
|
|
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;
|
|
280
290
|
let u;
|
|
281
|
-
return
|
|
291
|
+
return r < 40 ? u = "weak" : r < 60 ? u = "fair" : r < 80 ? u = "good" : u = "strong", { strength: u, score: r, checks: s };
|
|
282
292
|
}
|
|
283
|
-
const
|
|
293
|
+
const ce = () => le({
|
|
284
294
|
key: "bui_auth_email",
|
|
285
295
|
defaultValue: null
|
|
286
296
|
});
|
|
287
|
-
function
|
|
297
|
+
function Le({
|
|
288
298
|
onSignIn: e,
|
|
289
299
|
passwordRules: o,
|
|
290
|
-
labels:
|
|
291
|
-
showRememberMe:
|
|
300
|
+
labels: s,
|
|
301
|
+
showRememberMe: a
|
|
292
302
|
}) {
|
|
293
|
-
const
|
|
303
|
+
const c = U(!1), r = ce(), u = K(o), n = G({
|
|
294
304
|
schema: u,
|
|
295
|
-
onSubmit:
|
|
305
|
+
onSubmit: Z({
|
|
296
306
|
task: e,
|
|
297
307
|
message: "Reset password failed",
|
|
298
308
|
onStart: () => {
|
|
299
|
-
|
|
309
|
+
c.set(!0), n.controller.disable();
|
|
300
310
|
},
|
|
301
311
|
onEnd: () => {
|
|
302
|
-
|
|
312
|
+
c.set(!1), n.controller.enable();
|
|
303
313
|
}
|
|
304
314
|
}),
|
|
305
315
|
initialValue: {
|
|
306
316
|
email: "",
|
|
307
317
|
password: ""
|
|
308
318
|
}
|
|
309
|
-
}), { controller:
|
|
310
|
-
|
|
311
|
-
const
|
|
312
|
-
return
|
|
313
|
-
|
|
314
|
-
}),
|
|
315
|
-
|
|
316
|
-
}),
|
|
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(
|
|
317
327
|
x,
|
|
318
|
-
(
|
|
328
|
+
(v) => (
|
|
319
329
|
// Email/Password form
|
|
320
|
-
|
|
330
|
+
l.form(
|
|
321
331
|
t.class("bc-auth-form__form"),
|
|
322
|
-
|
|
323
|
-
|
|
332
|
+
E.submit(i),
|
|
333
|
+
T(
|
|
324
334
|
t.class("bc-auth-form__fields"),
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
(k) =>
|
|
335
|
+
W(
|
|
336
|
+
m.error,
|
|
337
|
+
(k) => X(
|
|
328
338
|
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
329
|
-
|
|
339
|
+
l.div(k)
|
|
330
340
|
)
|
|
331
341
|
),
|
|
332
342
|
// Email field
|
|
333
|
-
|
|
334
|
-
controller:
|
|
335
|
-
label:
|
|
343
|
+
A(j, {
|
|
344
|
+
controller: h,
|
|
345
|
+
label: g(s?.emailLabel, v.$.emailLabel)
|
|
336
346
|
}),
|
|
337
347
|
// Password field
|
|
338
|
-
|
|
339
|
-
controller:
|
|
340
|
-
label:
|
|
348
|
+
A(O, {
|
|
349
|
+
controller: L,
|
|
350
|
+
label: g(s?.passwordLabel, v.$.passwordLabel)
|
|
341
351
|
}),
|
|
342
352
|
// Remember me checkbox
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
() =>
|
|
353
|
+
_(
|
|
354
|
+
a ?? !0,
|
|
355
|
+
() => l.div(
|
|
346
356
|
t.class("bc-auth-form__remember-me"),
|
|
347
|
-
|
|
357
|
+
l.label(
|
|
348
358
|
t.class("bc-auth-form__checkbox-label"),
|
|
349
|
-
|
|
350
|
-
value:
|
|
351
|
-
after:
|
|
352
|
-
|
|
359
|
+
ne({
|
|
360
|
+
value: r.map((k) => k != null),
|
|
361
|
+
after: l.span(
|
|
362
|
+
g(s?.rememberMeLabel, v.$.rememberMeLabel)
|
|
353
363
|
),
|
|
354
364
|
onChange: (k) => {
|
|
355
|
-
k ?
|
|
365
|
+
k ? r.value = h.signal.value ?? "" : r.value = null;
|
|
356
366
|
}
|
|
357
367
|
})
|
|
358
368
|
)
|
|
@@ -360,28 +370,28 @@ function we({
|
|
|
360
370
|
)
|
|
361
371
|
),
|
|
362
372
|
// Submit button
|
|
363
|
-
|
|
373
|
+
M(
|
|
364
374
|
{
|
|
365
375
|
type: "submit",
|
|
366
376
|
variant: "filled",
|
|
367
377
|
color: "primary",
|
|
368
|
-
loading:
|
|
369
|
-
disabled:
|
|
378
|
+
loading: c,
|
|
379
|
+
disabled: m.disabledOrHasErrors
|
|
370
380
|
},
|
|
371
381
|
t.class("bc-auth-form__submit"),
|
|
372
|
-
|
|
382
|
+
g(s?.signInButton, v.$.signInButton)
|
|
373
383
|
)
|
|
374
384
|
)
|
|
375
385
|
)
|
|
376
386
|
);
|
|
377
387
|
}
|
|
378
|
-
function
|
|
388
|
+
function ve({
|
|
379
389
|
password: e,
|
|
380
390
|
rules: o = $,
|
|
381
|
-
showLabel:
|
|
382
|
-
className:
|
|
391
|
+
showLabel: s = !0,
|
|
392
|
+
className: a
|
|
383
393
|
}) {
|
|
384
|
-
const
|
|
394
|
+
const c = b(e)((i) => !i || i.length === 0 ? {
|
|
385
395
|
strength: "weak",
|
|
386
396
|
score: 0,
|
|
387
397
|
checks: {
|
|
@@ -392,149 +402,149 @@ function _e({
|
|
|
392
402
|
symbols: !1,
|
|
393
403
|
custom: !1
|
|
394
404
|
}
|
|
395
|
-
} :
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
)((
|
|
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) => [
|
|
399
409
|
"bc-password-strength",
|
|
400
|
-
`bc-password-strength--${
|
|
401
|
-
|
|
410
|
+
`bc-password-strength--${i}`,
|
|
411
|
+
h
|
|
402
412
|
].filter(Boolean).join(" "));
|
|
403
|
-
return
|
|
404
|
-
t.class(
|
|
413
|
+
return l.div(
|
|
414
|
+
t.class(m),
|
|
405
415
|
// Strength bar
|
|
406
|
-
|
|
416
|
+
l.div(
|
|
407
417
|
t.class("bc-password-strength__bar"),
|
|
408
|
-
|
|
418
|
+
l.div(
|
|
409
419
|
t.class("bc-password-strength__fill"),
|
|
410
|
-
t.style(u.map((
|
|
420
|
+
t.style(u.map((i) => `width: ${i}%`))
|
|
411
421
|
)
|
|
412
422
|
),
|
|
413
423
|
// Strength label (optional)
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
() =>
|
|
424
|
+
_(
|
|
425
|
+
s,
|
|
426
|
+
() => q(
|
|
417
427
|
x,
|
|
418
|
-
(
|
|
428
|
+
(i) => l.div(
|
|
419
429
|
t.class("bc-password-strength__label"),
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
)((
|
|
424
|
-
switch (
|
|
430
|
+
b(
|
|
431
|
+
r,
|
|
432
|
+
i
|
|
433
|
+
)((h, L) => {
|
|
434
|
+
switch (h) {
|
|
425
435
|
case "weak":
|
|
426
|
-
return
|
|
436
|
+
return L.passwordStrengthWeak;
|
|
427
437
|
case "fair":
|
|
428
|
-
return
|
|
438
|
+
return L.passwordStrengthFair;
|
|
429
439
|
case "good":
|
|
430
|
-
return
|
|
440
|
+
return L.passwordStrengthGood;
|
|
431
441
|
case "strong":
|
|
432
|
-
return
|
|
442
|
+
return L.passwordStrengthStrong;
|
|
433
443
|
default:
|
|
434
|
-
return
|
|
444
|
+
return L.passwordStrengthWeak;
|
|
435
445
|
}
|
|
436
446
|
})
|
|
437
447
|
)
|
|
438
448
|
)
|
|
439
449
|
),
|
|
440
450
|
// Requirements checklist
|
|
441
|
-
|
|
451
|
+
l.div(
|
|
442
452
|
t.class("bc-password-strength__requirements"),
|
|
443
453
|
// Length requirement
|
|
444
|
-
|
|
454
|
+
_(
|
|
445
455
|
o.minLength !== void 0,
|
|
446
|
-
() =>
|
|
456
|
+
() => l.div(
|
|
447
457
|
t.class("bc-password-strength__requirement"),
|
|
448
458
|
t.class(
|
|
449
|
-
|
|
450
|
-
(
|
|
459
|
+
b(n)(
|
|
460
|
+
(i) => i.length ? "bc-password-strength__requirement--met" : ""
|
|
451
461
|
)
|
|
452
462
|
),
|
|
453
|
-
|
|
463
|
+
l.span(
|
|
454
464
|
t.class("bc-password-strength__requirement-icon"),
|
|
455
|
-
|
|
465
|
+
b(n)((i) => i.length ? "✓" : "○")
|
|
456
466
|
),
|
|
457
|
-
|
|
467
|
+
l.span(
|
|
458
468
|
t.class("bc-password-strength__requirement-text"),
|
|
459
469
|
`At least ${o.minLength} characters`
|
|
460
470
|
)
|
|
461
471
|
)
|
|
462
472
|
),
|
|
463
473
|
// Uppercase requirement
|
|
464
|
-
|
|
474
|
+
_(
|
|
465
475
|
o.requireUppercase === !0,
|
|
466
|
-
() =>
|
|
476
|
+
() => l.div(
|
|
467
477
|
t.class("bc-password-strength__requirement"),
|
|
468
478
|
t.class(
|
|
469
|
-
|
|
470
|
-
(
|
|
479
|
+
b(n)(
|
|
480
|
+
(i) => i.uppercase ? "bc-password-strength__requirement--met" : ""
|
|
471
481
|
)
|
|
472
482
|
),
|
|
473
|
-
|
|
483
|
+
l.span(
|
|
474
484
|
t.class("bc-password-strength__requirement-icon"),
|
|
475
|
-
|
|
485
|
+
b(n)((i) => i.uppercase ? "✓" : "○")
|
|
476
486
|
),
|
|
477
|
-
|
|
487
|
+
l.span(
|
|
478
488
|
t.class("bc-password-strength__requirement-text"),
|
|
479
489
|
"One uppercase letter"
|
|
480
490
|
)
|
|
481
491
|
)
|
|
482
492
|
),
|
|
483
493
|
// Lowercase requirement
|
|
484
|
-
|
|
494
|
+
_(
|
|
485
495
|
o.requireLowercase === !0,
|
|
486
|
-
() =>
|
|
496
|
+
() => l.div(
|
|
487
497
|
t.class("bc-password-strength__requirement"),
|
|
488
498
|
t.class(
|
|
489
|
-
|
|
490
|
-
(
|
|
499
|
+
b(n)(
|
|
500
|
+
(i) => i.lowercase ? "bc-password-strength__requirement--met" : ""
|
|
491
501
|
)
|
|
492
502
|
),
|
|
493
|
-
|
|
503
|
+
l.span(
|
|
494
504
|
t.class("bc-password-strength__requirement-icon"),
|
|
495
|
-
|
|
505
|
+
b(n)((i) => i.lowercase ? "✓" : "○")
|
|
496
506
|
),
|
|
497
|
-
|
|
507
|
+
l.span(
|
|
498
508
|
t.class("bc-password-strength__requirement-text"),
|
|
499
509
|
"One lowercase letter"
|
|
500
510
|
)
|
|
501
511
|
)
|
|
502
512
|
),
|
|
503
513
|
// Numbers requirement
|
|
504
|
-
|
|
514
|
+
_(
|
|
505
515
|
o.requireNumbers === !0,
|
|
506
|
-
() =>
|
|
516
|
+
() => l.div(
|
|
507
517
|
t.class("bc-password-strength__requirement"),
|
|
508
518
|
t.class(
|
|
509
|
-
|
|
510
|
-
(
|
|
519
|
+
b(n)(
|
|
520
|
+
(i) => i.numbers ? "bc-password-strength__requirement--met" : ""
|
|
511
521
|
)
|
|
512
522
|
),
|
|
513
|
-
|
|
523
|
+
l.span(
|
|
514
524
|
t.class("bc-password-strength__requirement-icon"),
|
|
515
|
-
|
|
525
|
+
b(n)((i) => i.numbers ? "✓" : "○")
|
|
516
526
|
),
|
|
517
|
-
|
|
527
|
+
l.span(
|
|
518
528
|
t.class("bc-password-strength__requirement-text"),
|
|
519
529
|
"One number"
|
|
520
530
|
)
|
|
521
531
|
)
|
|
522
532
|
),
|
|
523
533
|
// Symbols requirement
|
|
524
|
-
|
|
534
|
+
_(
|
|
525
535
|
o.requireSymbols === !0,
|
|
526
|
-
() =>
|
|
536
|
+
() => l.div(
|
|
527
537
|
t.class("bc-password-strength__requirement"),
|
|
528
538
|
t.class(
|
|
529
|
-
|
|
530
|
-
(
|
|
539
|
+
b(n)(
|
|
540
|
+
(i) => i.symbols ? "bc-password-strength__requirement--met" : ""
|
|
531
541
|
)
|
|
532
542
|
),
|
|
533
|
-
|
|
543
|
+
l.span(
|
|
534
544
|
t.class("bc-password-strength__requirement-icon"),
|
|
535
|
-
|
|
545
|
+
b(n)((i) => i.symbols ? "✓" : "○")
|
|
536
546
|
),
|
|
537
|
-
|
|
547
|
+
l.span(
|
|
538
548
|
t.class("bc-password-strength__requirement-text"),
|
|
539
549
|
"One special character"
|
|
540
550
|
)
|
|
@@ -543,269 +553,269 @@ function _e({
|
|
|
543
553
|
)
|
|
544
554
|
);
|
|
545
555
|
}
|
|
546
|
-
function
|
|
556
|
+
function Ye({
|
|
547
557
|
password: e,
|
|
548
558
|
rules: o = $,
|
|
549
|
-
className:
|
|
559
|
+
className: s
|
|
550
560
|
}) {
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
)((
|
|
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) => [
|
|
555
565
|
"bc-password-strength-bar",
|
|
556
|
-
`bc-password-strength-bar--${
|
|
557
|
-
|
|
566
|
+
`bc-password-strength-bar--${n}`,
|
|
567
|
+
m
|
|
558
568
|
].filter(Boolean).join(" "));
|
|
559
|
-
return
|
|
569
|
+
return l.div(
|
|
560
570
|
t.class(u),
|
|
561
|
-
|
|
571
|
+
l.div(
|
|
562
572
|
t.class("bc-password-strength-bar__fill"),
|
|
563
|
-
t.style(
|
|
573
|
+
t.style(r.map((n) => `width: ${n}%`))
|
|
564
574
|
)
|
|
565
575
|
);
|
|
566
576
|
}
|
|
567
|
-
function
|
|
577
|
+
function Ze({
|
|
568
578
|
password: e,
|
|
569
579
|
rules: o = $,
|
|
570
|
-
className:
|
|
580
|
+
className: s
|
|
571
581
|
}) {
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
)((
|
|
582
|
+
const a = b(e)((r) => !r || r.length === 0 ? "weak" : ee(r, o).strength), c = b(
|
|
583
|
+
a,
|
|
584
|
+
s
|
|
585
|
+
)((r, u) => [
|
|
576
586
|
"bc-password-strength-text",
|
|
577
|
-
`bc-password-strength-text--${
|
|
587
|
+
`bc-password-strength-text--${r}`,
|
|
578
588
|
u
|
|
579
589
|
].filter(Boolean).join(" "));
|
|
580
|
-
return
|
|
581
|
-
|
|
590
|
+
return z(
|
|
591
|
+
q(
|
|
582
592
|
x,
|
|
583
|
-
(
|
|
584
|
-
t.class(
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
)((u,
|
|
593
|
+
(r) => l.span(
|
|
594
|
+
t.class(c),
|
|
595
|
+
b(
|
|
596
|
+
a,
|
|
597
|
+
r
|
|
598
|
+
)((u, n) => {
|
|
589
599
|
switch (u) {
|
|
590
600
|
case "weak":
|
|
591
|
-
return
|
|
601
|
+
return n.passwordStrengthWeak;
|
|
592
602
|
case "fair":
|
|
593
|
-
return
|
|
603
|
+
return n.passwordStrengthFair;
|
|
594
604
|
case "good":
|
|
595
|
-
return
|
|
605
|
+
return n.passwordStrengthGood;
|
|
596
606
|
case "strong":
|
|
597
|
-
return
|
|
607
|
+
return n.passwordStrengthStrong;
|
|
598
608
|
default:
|
|
599
|
-
return
|
|
609
|
+
return n.passwordStrengthWeak;
|
|
600
610
|
}
|
|
601
611
|
})
|
|
602
612
|
)
|
|
603
613
|
)
|
|
604
614
|
);
|
|
605
615
|
}
|
|
606
|
-
function
|
|
616
|
+
function ke({
|
|
607
617
|
passwordRules: e,
|
|
608
618
|
labels: o,
|
|
609
|
-
initialEmail:
|
|
610
|
-
initialName:
|
|
611
|
-
showPasswordStrength:
|
|
612
|
-
onSignUp:
|
|
619
|
+
initialEmail: s,
|
|
620
|
+
initialName: a,
|
|
621
|
+
showPasswordStrength: c,
|
|
622
|
+
onSignUp: r,
|
|
613
623
|
showNameField: u,
|
|
614
|
-
showConfirmPassword:
|
|
615
|
-
showAcceptTermsAndConditions:
|
|
616
|
-
termsAndConditions:
|
|
624
|
+
showConfirmPassword: n,
|
|
625
|
+
showAcceptTermsAndConditions: m,
|
|
626
|
+
termsAndConditions: i
|
|
617
627
|
}) {
|
|
618
|
-
const
|
|
628
|
+
const h = U(!1), L = e || $, v = Q(L, {
|
|
619
629
|
showNameField: u !== !1,
|
|
620
|
-
showConfirmPassword:
|
|
621
|
-
showAcceptTermsAndConditions:
|
|
622
|
-
}), k =
|
|
623
|
-
schema:
|
|
624
|
-
onSubmit:
|
|
625
|
-
task:
|
|
626
|
-
email:
|
|
627
|
-
password:
|
|
628
|
-
name:
|
|
629
|
-
acceptTerms:
|
|
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
|
|
630
640
|
}) : void 0,
|
|
631
641
|
message: "Reset password failed",
|
|
632
642
|
onStart: () => {
|
|
633
|
-
|
|
643
|
+
h.set(!0), k.controller.disable();
|
|
634
644
|
},
|
|
635
645
|
onEnd: () => {
|
|
636
|
-
|
|
646
|
+
h.set(!1), k.controller.enable();
|
|
637
647
|
}
|
|
638
648
|
}),
|
|
639
649
|
initialValue: {
|
|
640
|
-
name:
|
|
641
|
-
email:
|
|
650
|
+
name: a ?? "",
|
|
651
|
+
email: s ?? "",
|
|
642
652
|
password: "",
|
|
643
653
|
confirmPassword: "",
|
|
644
654
|
acceptTerms: !1
|
|
645
655
|
}
|
|
646
|
-
}), { controller:
|
|
647
|
-
|
|
648
|
-
const
|
|
649
|
-
return
|
|
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(
|
|
650
660
|
x,
|
|
651
|
-
(
|
|
661
|
+
(w) => (
|
|
652
662
|
// Registration form
|
|
653
|
-
|
|
663
|
+
l.form(
|
|
654
664
|
t.class("bc-auth-form__form"),
|
|
655
|
-
|
|
656
|
-
|
|
665
|
+
E.submit(V),
|
|
666
|
+
T(
|
|
657
667
|
t.class("bc-auth-form__fields"),
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
(
|
|
668
|
+
W(
|
|
669
|
+
S.error,
|
|
670
|
+
(y) => X(
|
|
661
671
|
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
662
|
-
|
|
672
|
+
l.div(y)
|
|
663
673
|
)
|
|
664
674
|
),
|
|
665
675
|
// Name field (optional)
|
|
666
|
-
|
|
676
|
+
_(
|
|
667
677
|
u !== !1,
|
|
668
|
-
() =>
|
|
669
|
-
controller:
|
|
670
|
-
(
|
|
671
|
-
(
|
|
678
|
+
() => A(ge, {
|
|
679
|
+
controller: B.transform(
|
|
680
|
+
(y) => y ?? "",
|
|
681
|
+
(y) => y === "" ? void 0 : y
|
|
672
682
|
),
|
|
673
|
-
label:
|
|
683
|
+
label: g(o?.nameLabel, w.$.nameLabel)
|
|
674
684
|
})
|
|
675
685
|
),
|
|
676
686
|
// Email field
|
|
677
|
-
|
|
678
|
-
controller:
|
|
679
|
-
label:
|
|
687
|
+
A(j, {
|
|
688
|
+
controller: P,
|
|
689
|
+
label: g(o?.emailLabel, w.$.emailLabel)
|
|
680
690
|
}),
|
|
681
691
|
// Password field
|
|
682
|
-
|
|
683
|
-
controller:
|
|
684
|
-
label:
|
|
692
|
+
A(O, {
|
|
693
|
+
controller: R,
|
|
694
|
+
label: g(o?.passwordLabel, w.$.passwordLabel)
|
|
685
695
|
}),
|
|
686
696
|
// Password strength indicator
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
() =>
|
|
690
|
-
password:
|
|
691
|
-
rules:
|
|
697
|
+
_(
|
|
698
|
+
c ?? !1,
|
|
699
|
+
() => ve({
|
|
700
|
+
password: R.signal,
|
|
701
|
+
rules: L,
|
|
692
702
|
showLabel: !0
|
|
693
703
|
})
|
|
694
704
|
),
|
|
695
705
|
// Confirm password field
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
() =>
|
|
699
|
-
controller:
|
|
700
|
-
label:
|
|
706
|
+
_(
|
|
707
|
+
n ?? !1,
|
|
708
|
+
() => A(O, {
|
|
709
|
+
controller: D,
|
|
710
|
+
label: g(
|
|
701
711
|
o?.confirmPasswordLabel,
|
|
702
|
-
|
|
712
|
+
w.$.confirmPasswordLabel
|
|
703
713
|
)
|
|
704
714
|
})
|
|
705
715
|
),
|
|
706
716
|
// Terms acceptance checkbox
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
() =>
|
|
717
|
+
_(
|
|
718
|
+
m ?? !1,
|
|
719
|
+
() => l.div(
|
|
710
720
|
t.class("bc-auth-form__terms"),
|
|
711
|
-
|
|
721
|
+
l.label(
|
|
712
722
|
t.class("bc-auth-form__checkbox-label"),
|
|
713
|
-
|
|
714
|
-
value:
|
|
715
|
-
onChange: (
|
|
723
|
+
ne({
|
|
724
|
+
value: I.signal.map((y) => y ?? !1),
|
|
725
|
+
onChange: (y) => I.change(y)
|
|
716
726
|
}),
|
|
717
|
-
|
|
718
|
-
|
|
727
|
+
l.span(
|
|
728
|
+
i || g(o?.acceptTermsLabel, w.$.acceptTermsLabel)
|
|
719
729
|
)
|
|
720
730
|
),
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
() =>
|
|
731
|
+
_(
|
|
732
|
+
I.errorVisible,
|
|
733
|
+
() => l.div(
|
|
724
734
|
t.class("bc-auth-form__field-error"),
|
|
725
|
-
|
|
735
|
+
I.error.map((y) => y || "")
|
|
726
736
|
)
|
|
727
737
|
)
|
|
728
738
|
)
|
|
729
739
|
)
|
|
730
740
|
),
|
|
731
741
|
// Submit button
|
|
732
|
-
|
|
742
|
+
M(
|
|
733
743
|
{
|
|
734
744
|
type: "submit",
|
|
735
745
|
variant: "filled",
|
|
736
746
|
color: "primary",
|
|
737
|
-
loading:
|
|
738
|
-
disabled:
|
|
747
|
+
loading: h,
|
|
748
|
+
disabled: S.disabledOrHasErrors
|
|
739
749
|
},
|
|
740
750
|
t.class("bc-auth-form__submit"),
|
|
741
|
-
|
|
751
|
+
g(o?.signUpButton, w.$.signUpButton)
|
|
742
752
|
)
|
|
743
753
|
)
|
|
744
754
|
)
|
|
745
755
|
);
|
|
746
756
|
}
|
|
747
|
-
function
|
|
757
|
+
function ye({
|
|
748
758
|
onResetPassword: e,
|
|
749
759
|
labels: o = {}
|
|
750
760
|
}) {
|
|
751
|
-
const
|
|
752
|
-
schema:
|
|
753
|
-
onSubmit:
|
|
761
|
+
const s = ce(), a = U(!1), c = G({
|
|
762
|
+
schema: ie,
|
|
763
|
+
onSubmit: Z({
|
|
754
764
|
task: e,
|
|
755
765
|
message: "Reset password failed",
|
|
756
766
|
onStart: () => {
|
|
757
|
-
|
|
767
|
+
a.set(!0), c.controller.disable();
|
|
758
768
|
},
|
|
759
769
|
onEnd: () => {
|
|
760
|
-
|
|
770
|
+
a.set(!1), c.controller.enable();
|
|
761
771
|
}
|
|
762
772
|
}),
|
|
763
773
|
initialValue: {
|
|
764
774
|
email: ""
|
|
765
775
|
}
|
|
766
|
-
}), { controller:
|
|
767
|
-
|
|
768
|
-
const
|
|
769
|
-
return
|
|
770
|
-
|
|
771
|
-
}),
|
|
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(
|
|
772
782
|
x,
|
|
773
|
-
(
|
|
783
|
+
(m) => (
|
|
774
784
|
// Reset password form
|
|
775
|
-
|
|
785
|
+
l.form(
|
|
776
786
|
t.class("bc-auth-form__form"),
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
(
|
|
787
|
+
W(
|
|
788
|
+
r.error,
|
|
789
|
+
(i) => X(
|
|
780
790
|
{ variant: "danger", tone: "prominent", role: "alert" },
|
|
781
|
-
|
|
791
|
+
l.div(i)
|
|
782
792
|
)
|
|
783
793
|
),
|
|
784
794
|
// Description
|
|
785
|
-
|
|
795
|
+
l.p(
|
|
786
796
|
t.class("bc-auth-form__description"),
|
|
787
|
-
|
|
797
|
+
g(o?.resetPasswordDescription, m.$.resetPasswordDescription)
|
|
788
798
|
),
|
|
789
|
-
|
|
790
|
-
|
|
799
|
+
E.submit(u),
|
|
800
|
+
T(
|
|
791
801
|
t.class("bc-auth-form__fields"),
|
|
792
802
|
// Email field
|
|
793
|
-
|
|
794
|
-
controller:
|
|
795
|
-
label:
|
|
803
|
+
A(j, {
|
|
804
|
+
controller: n,
|
|
805
|
+
label: g(o?.emailLabel, m.$.emailLabel)
|
|
796
806
|
})
|
|
797
807
|
),
|
|
798
808
|
// Submit button
|
|
799
|
-
|
|
809
|
+
M(
|
|
800
810
|
{
|
|
801
|
-
loading:
|
|
811
|
+
loading: a,
|
|
802
812
|
type: "submit",
|
|
803
813
|
variant: "filled",
|
|
804
814
|
color: "primary",
|
|
805
|
-
disabled:
|
|
815
|
+
disabled: r.disabledOrHasErrors
|
|
806
816
|
},
|
|
807
817
|
t.class("bc-auth-form__submit"),
|
|
808
|
-
|
|
818
|
+
g(o?.resetPasswordButton, m.$.resetPasswordButton)
|
|
809
819
|
)
|
|
810
820
|
)
|
|
811
821
|
)
|
|
@@ -814,27 +824,27 @@ function ke({
|
|
|
814
824
|
function d({
|
|
815
825
|
provider: e,
|
|
816
826
|
onClick: o,
|
|
817
|
-
size:
|
|
818
|
-
name:
|
|
819
|
-
icon:
|
|
820
|
-
color:
|
|
827
|
+
size: s = "md",
|
|
828
|
+
name: a,
|
|
829
|
+
icon: c,
|
|
830
|
+
color: r,
|
|
821
831
|
flow: u,
|
|
822
|
-
labels:
|
|
832
|
+
labels: n
|
|
823
833
|
}) {
|
|
824
|
-
return
|
|
834
|
+
return M(
|
|
825
835
|
{
|
|
826
836
|
type: "button",
|
|
827
837
|
variant: "filled",
|
|
828
|
-
size:
|
|
829
|
-
color:
|
|
838
|
+
size: s,
|
|
839
|
+
color: r,
|
|
830
840
|
onClick: async () => {
|
|
831
841
|
if (o)
|
|
832
842
|
try {
|
|
833
843
|
u === "popup" ? await o() : await o();
|
|
834
|
-
} catch (
|
|
844
|
+
} catch (i) {
|
|
835
845
|
console.error(
|
|
836
846
|
`Social login error for ${e} (${u || "redirect"} flow):`,
|
|
837
|
-
|
|
847
|
+
i
|
|
838
848
|
);
|
|
839
849
|
}
|
|
840
850
|
},
|
|
@@ -842,49 +852,49 @@ function d({
|
|
|
842
852
|
},
|
|
843
853
|
t.class("bc-social-login-button"),
|
|
844
854
|
t.class(
|
|
845
|
-
|
|
855
|
+
b(e)((i) => `bc-social-login-button--${i}`)
|
|
846
856
|
),
|
|
847
|
-
|
|
857
|
+
l.span(
|
|
848
858
|
t.class("bc-social-login-button__inner"),
|
|
849
|
-
|
|
859
|
+
l.span(
|
|
850
860
|
t.class("bc-social-login-button__icon"),
|
|
851
|
-
|
|
861
|
+
fe({ icon: c, size: s }, t.class("bc-social-login-button__icon-inner"))
|
|
852
862
|
),
|
|
853
|
-
|
|
863
|
+
q(
|
|
854
864
|
x,
|
|
855
|
-
(
|
|
865
|
+
(i) => l.span(
|
|
856
866
|
t.class("bc-social-login-button__label"),
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
)(
|
|
867
|
+
me(
|
|
868
|
+
g(n?.continueWithProvider, i.$.continueWithProvider)
|
|
869
|
+
)(a)
|
|
860
870
|
)
|
|
861
871
|
)
|
|
862
872
|
)
|
|
863
873
|
);
|
|
864
874
|
}
|
|
865
|
-
function
|
|
875
|
+
function Se({
|
|
866
876
|
providers: e,
|
|
867
877
|
onProviderClick: o,
|
|
868
|
-
size:
|
|
869
|
-
className:
|
|
878
|
+
size: s = "md",
|
|
879
|
+
className: a
|
|
870
880
|
}) {
|
|
871
|
-
return
|
|
881
|
+
return T(
|
|
872
882
|
t.class("bc-social-login-buttons"),
|
|
873
|
-
t.class(
|
|
874
|
-
|
|
883
|
+
t.class(a),
|
|
884
|
+
ue(
|
|
875
885
|
e,
|
|
876
|
-
(
|
|
877
|
-
provider:
|
|
878
|
-
flow:
|
|
879
|
-
color:
|
|
880
|
-
({ provider:
|
|
886
|
+
(c) => d({
|
|
887
|
+
provider: c.$.provider,
|
|
888
|
+
flow: c.$.flow,
|
|
889
|
+
color: c.map(
|
|
890
|
+
({ provider: r }) => p[r].color
|
|
881
891
|
),
|
|
882
|
-
name:
|
|
883
|
-
icon:
|
|
892
|
+
name: c.map(({ provider: r }) => p[r].name),
|
|
893
|
+
icon: c.map(({ provider: r }) => p[r].icon),
|
|
884
894
|
onClick: async () => {
|
|
885
|
-
o && await o(
|
|
895
|
+
o && await o(c.$.provider.value);
|
|
886
896
|
},
|
|
887
|
-
size:
|
|
897
|
+
size: s
|
|
888
898
|
})
|
|
889
899
|
)
|
|
890
900
|
);
|
|
@@ -1020,336 +1030,346 @@ const p = {
|
|
|
1020
1030
|
color: "blue"
|
|
1021
1031
|
// distinct deep blue tone (not Facebook’s exact blue)
|
|
1022
1032
|
}
|
|
1023
|
-
},
|
|
1033
|
+
}, Je = (e) => d({
|
|
1024
1034
|
...e,
|
|
1025
1035
|
...p.google,
|
|
1026
1036
|
provider: "google"
|
|
1027
|
-
}),
|
|
1037
|
+
}), Ke = (e) => d({
|
|
1028
1038
|
...e,
|
|
1029
1039
|
...p.github,
|
|
1030
1040
|
provider: "github"
|
|
1031
|
-
}),
|
|
1041
|
+
}), Qe = (e) => d({
|
|
1032
1042
|
...e,
|
|
1033
1043
|
...p.apple,
|
|
1034
1044
|
provider: "apple"
|
|
1035
|
-
}),
|
|
1045
|
+
}), eo = (e) => d({
|
|
1036
1046
|
...e,
|
|
1037
1047
|
...p.facebook,
|
|
1038
1048
|
provider: "facebook"
|
|
1039
|
-
}),
|
|
1049
|
+
}), oo = (e) => d({
|
|
1040
1050
|
...e,
|
|
1041
1051
|
...p.x,
|
|
1042
1052
|
provider: "x"
|
|
1043
|
-
}),
|
|
1053
|
+
}), to = (e) => d({
|
|
1044
1054
|
...e,
|
|
1045
1055
|
...p.twitter,
|
|
1046
1056
|
provider: "twitter"
|
|
1047
|
-
}),
|
|
1057
|
+
}), ao = (e) => d({
|
|
1048
1058
|
...e,
|
|
1049
1059
|
...p.microsoft,
|
|
1050
1060
|
provider: "microsoft"
|
|
1051
|
-
}),
|
|
1061
|
+
}), so = (e) => d({
|
|
1052
1062
|
...e,
|
|
1053
1063
|
...p.discord,
|
|
1054
1064
|
provider: "discord"
|
|
1055
|
-
}),
|
|
1065
|
+
}), no = (e) => d({
|
|
1056
1066
|
...e,
|
|
1057
1067
|
...p.linkedin,
|
|
1058
1068
|
provider: "linkedin"
|
|
1059
|
-
}),
|
|
1069
|
+
}), ro = (e) => d({
|
|
1060
1070
|
...e,
|
|
1061
1071
|
...p.instagram,
|
|
1062
1072
|
provider: "instagram"
|
|
1063
|
-
}),
|
|
1073
|
+
}), io = (e) => d({
|
|
1064
1074
|
...e,
|
|
1065
1075
|
...p.tiktok,
|
|
1066
1076
|
provider: "tiktok"
|
|
1067
|
-
}),
|
|
1077
|
+
}), co = (e) => d({
|
|
1068
1078
|
...e,
|
|
1069
1079
|
...p.snapchat,
|
|
1070
1080
|
provider: "snapchat"
|
|
1071
|
-
}),
|
|
1081
|
+
}), lo = (e) => d({
|
|
1072
1082
|
...e,
|
|
1073
1083
|
...p.reddit,
|
|
1074
1084
|
provider: "reddit"
|
|
1075
|
-
}),
|
|
1085
|
+
}), mo = (e) => d({
|
|
1076
1086
|
...e,
|
|
1077
1087
|
...p.pinterest,
|
|
1078
1088
|
provider: "pinterest"
|
|
1079
|
-
}),
|
|
1089
|
+
}), uo = (e) => d({
|
|
1080
1090
|
...e,
|
|
1081
1091
|
...p.twitch,
|
|
1082
1092
|
provider: "twitch"
|
|
1083
|
-
}),
|
|
1093
|
+
}), po = (e) => d({
|
|
1084
1094
|
...e,
|
|
1085
1095
|
...p.steam,
|
|
1086
1096
|
provider: "steam"
|
|
1087
|
-
}),
|
|
1097
|
+
}), ho = (e) => d({
|
|
1088
1098
|
...e,
|
|
1089
1099
|
...p.epic,
|
|
1090
1100
|
provider: "epic"
|
|
1091
|
-
}),
|
|
1101
|
+
}), go = (e) => d({
|
|
1092
1102
|
...e,
|
|
1093
1103
|
...p.playstation,
|
|
1094
1104
|
provider: "playstation"
|
|
1095
|
-
}),
|
|
1105
|
+
}), fo = (e) => d({
|
|
1096
1106
|
...e,
|
|
1097
1107
|
...p.xbox,
|
|
1098
1108
|
provider: "xbox"
|
|
1099
|
-
}),
|
|
1109
|
+
}), bo = (e) => d({
|
|
1100
1110
|
...e,
|
|
1101
1111
|
...p.whatsapp,
|
|
1102
1112
|
provider: "whatsapp"
|
|
1103
|
-
}),
|
|
1113
|
+
}), wo = (e) => d({
|
|
1104
1114
|
...e,
|
|
1105
1115
|
...p.wechat,
|
|
1106
1116
|
provider: "wechat"
|
|
1107
|
-
}),
|
|
1117
|
+
}), _o = (e) => d({
|
|
1108
1118
|
...e,
|
|
1109
1119
|
...p.amazon,
|
|
1110
1120
|
provider: "amazon"
|
|
1111
|
-
}),
|
|
1121
|
+
}), Lo = (e) => d({
|
|
1112
1122
|
...e,
|
|
1113
1123
|
...p.yahoo,
|
|
1114
1124
|
provider: "yahoo"
|
|
1115
|
-
}),
|
|
1125
|
+
}), vo = (e) => d({
|
|
1116
1126
|
...e,
|
|
1117
1127
|
...p.paypal,
|
|
1118
1128
|
provider: "paypal"
|
|
1119
1129
|
});
|
|
1120
|
-
function
|
|
1121
|
-
|
|
1122
|
-
|
|
1130
|
+
function ae({
|
|
1131
|
+
providers: e,
|
|
1132
|
+
onSocialLogin: o
|
|
1133
|
+
}) {
|
|
1134
|
+
return T(
|
|
1135
|
+
Se({
|
|
1123
1136
|
providers: e,
|
|
1124
1137
|
onProviderClick: o
|
|
1125
1138
|
})
|
|
1126
1139
|
);
|
|
1127
1140
|
}
|
|
1128
|
-
function
|
|
1141
|
+
function Pe({
|
|
1129
1142
|
mode: e,
|
|
1130
1143
|
socialProviders: o,
|
|
1131
|
-
initialName:
|
|
1132
|
-
initialEmail:
|
|
1133
|
-
passwordRules:
|
|
1134
|
-
showRememberMe:
|
|
1144
|
+
initialName: s,
|
|
1145
|
+
initialEmail: a,
|
|
1146
|
+
passwordRules: c,
|
|
1147
|
+
showRememberMe: r,
|
|
1135
1148
|
showSocialDivider: u,
|
|
1136
|
-
showPasswordStrength:
|
|
1137
|
-
labels:
|
|
1138
|
-
onSignIn:
|
|
1139
|
-
onSignUp:
|
|
1140
|
-
onResetPassword:
|
|
1141
|
-
onModeChange:
|
|
1149
|
+
showPasswordStrength: n,
|
|
1150
|
+
labels: m,
|
|
1151
|
+
onSignIn: i,
|
|
1152
|
+
onSignUp: h,
|
|
1153
|
+
onResetPassword: L,
|
|
1154
|
+
onModeChange: v,
|
|
1142
1155
|
onSocialLogin: k,
|
|
1143
|
-
showContainer:
|
|
1144
|
-
}, ...
|
|
1145
|
-
const
|
|
1146
|
-
return
|
|
1147
|
-
function
|
|
1148
|
-
const
|
|
1149
|
-
return
|
|
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(
|
|
1150
1163
|
t.type("button"),
|
|
1151
1164
|
t.class("bc-auth-form__link"),
|
|
1152
|
-
|
|
1153
|
-
|
|
1165
|
+
E.click(() => B.set("signin")),
|
|
1166
|
+
w
|
|
1154
1167
|
);
|
|
1155
1168
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1169
|
+
function D() {
|
|
1170
|
+
return l.button(
|
|
1158
1171
|
t.type("button"),
|
|
1159
1172
|
t.class("bc-auth-form__link"),
|
|
1160
|
-
|
|
1161
|
-
|
|
1173
|
+
E.click(() => B.set("signup")),
|
|
1174
|
+
g(m?.noAccountLink, P.$.noAccountLink)
|
|
1162
1175
|
);
|
|
1163
1176
|
}
|
|
1164
|
-
function
|
|
1165
|
-
return
|
|
1177
|
+
function I() {
|
|
1178
|
+
return l.button(
|
|
1166
1179
|
t.type("button"),
|
|
1167
1180
|
t.class("bc-auth-form__link"),
|
|
1168
|
-
|
|
1169
|
-
|
|
1181
|
+
E.click(() => B.set("reset-password")),
|
|
1182
|
+
g(m?.forgotPasswordLink, P.$.forgotPasswordLink)
|
|
1170
1183
|
);
|
|
1171
1184
|
}
|
|
1172
|
-
return
|
|
1173
|
-
|
|
1185
|
+
return l.div(
|
|
1186
|
+
be({
|
|
1174
1187
|
"bc-auth-container": !0,
|
|
1175
|
-
"bc-auth-container--styled":
|
|
1188
|
+
"bc-auth-container--styled": oe.map(S ?? !0, (w) => w)
|
|
1176
1189
|
}),
|
|
1177
|
-
t.class(
|
|
1190
|
+
t.class(B.map((w) => `bc-auth-container--${w}`)),
|
|
1178
1191
|
t.class("bc-auth-form"),
|
|
1179
|
-
|
|
1180
|
-
signin: () =>
|
|
1181
|
-
|
|
1192
|
+
pe(B, {
|
|
1193
|
+
signin: () => z(
|
|
1194
|
+
l.h2(
|
|
1182
1195
|
t.class("bc-auth-form__title"),
|
|
1183
|
-
|
|
1196
|
+
g(m?.signInTitle, P.$.signInTitle)
|
|
1184
1197
|
),
|
|
1185
|
-
o != null ?
|
|
1186
|
-
|
|
1187
|
-
|
|
1198
|
+
o != null ? z(
|
|
1199
|
+
ae({
|
|
1200
|
+
providers: o,
|
|
1201
|
+
onSocialLogin: k
|
|
1202
|
+
}),
|
|
1203
|
+
_(u ?? !1, se)
|
|
1188
1204
|
) : null,
|
|
1189
|
-
|
|
1190
|
-
onSignIn:
|
|
1191
|
-
showRememberMe:
|
|
1192
|
-
passwordRules:
|
|
1205
|
+
Le({
|
|
1206
|
+
onSignIn: i,
|
|
1207
|
+
showRememberMe: r,
|
|
1208
|
+
passwordRules: c,
|
|
1193
1209
|
labels: {
|
|
1194
|
-
emailLabel:
|
|
1195
|
-
passwordLabel:
|
|
1196
|
-
rememberMeLabel:
|
|
1197
|
-
signInButton:
|
|
1198
|
-
forgotPasswordLink:
|
|
1199
|
-
noAccountLink:
|
|
1210
|
+
emailLabel: m?.emailLabel,
|
|
1211
|
+
passwordLabel: m?.passwordLabel,
|
|
1212
|
+
rememberMeLabel: m?.rememberMeLabel,
|
|
1213
|
+
signInButton: m?.signInButton,
|
|
1214
|
+
forgotPasswordLink: m?.forgotPasswordLink,
|
|
1215
|
+
noAccountLink: m?.noAccountLink
|
|
1200
1216
|
}
|
|
1201
1217
|
}),
|
|
1202
|
-
|
|
1218
|
+
T(
|
|
1203
1219
|
t.class("bc-auth-form__footer"),
|
|
1204
|
-
|
|
1205
|
-
|
|
1220
|
+
D(),
|
|
1221
|
+
I()
|
|
1206
1222
|
)
|
|
1207
1223
|
),
|
|
1208
|
-
signup: () =>
|
|
1209
|
-
|
|
1224
|
+
signup: () => z(
|
|
1225
|
+
l.h2(
|
|
1210
1226
|
t.class("bc-auth-form__title"),
|
|
1211
|
-
|
|
1227
|
+
g(m?.signUpTitle, P.$.signUpTitle)
|
|
1212
1228
|
),
|
|
1213
|
-
o != null ?
|
|
1214
|
-
|
|
1215
|
-
|
|
1229
|
+
o != null ? z(
|
|
1230
|
+
ae({
|
|
1231
|
+
providers: o,
|
|
1232
|
+
onSocialLogin: k
|
|
1233
|
+
}),
|
|
1234
|
+
_(u ?? !1, se)
|
|
1216
1235
|
) : null,
|
|
1217
|
-
|
|
1236
|
+
ke({
|
|
1218
1237
|
labels: {
|
|
1219
|
-
nameLabel:
|
|
1220
|
-
emailLabel:
|
|
1221
|
-
passwordLabel:
|
|
1222
|
-
confirmPasswordLabel:
|
|
1223
|
-
acceptTermsLabel:
|
|
1224
|
-
signUpButton:
|
|
1225
|
-
hasAccountLink:
|
|
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
|
|
1226
1245
|
},
|
|
1227
|
-
initialEmail:
|
|
1228
|
-
initialName:
|
|
1229
|
-
onSignUp:
|
|
1230
|
-
passwordRules:
|
|
1231
|
-
showPasswordStrength:
|
|
1246
|
+
initialEmail: a,
|
|
1247
|
+
initialName: s,
|
|
1248
|
+
onSignUp: h,
|
|
1249
|
+
passwordRules: c,
|
|
1250
|
+
showPasswordStrength: n
|
|
1232
1251
|
}),
|
|
1233
|
-
|
|
1252
|
+
T(t.class("bc-auth-form__footer"), R())
|
|
1234
1253
|
),
|
|
1235
|
-
"reset-password": () =>
|
|
1236
|
-
|
|
1254
|
+
"reset-password": () => z(
|
|
1255
|
+
l.h2(
|
|
1237
1256
|
t.class("bc-auth-form__title"),
|
|
1238
|
-
|
|
1257
|
+
g(m?.resetPasswordTitle, P.$.resetPasswordTitle)
|
|
1239
1258
|
),
|
|
1240
|
-
|
|
1259
|
+
ye({
|
|
1241
1260
|
labels: {
|
|
1242
|
-
backToSignInLink:
|
|
1243
|
-
emailLabel:
|
|
1244
|
-
resetPasswordButton:
|
|
1245
|
-
resetPasswordDescription:
|
|
1261
|
+
backToSignInLink: m?.backToSignInLink,
|
|
1262
|
+
emailLabel: m?.emailLabel,
|
|
1263
|
+
resetPasswordButton: m?.resetPasswordButton,
|
|
1264
|
+
resetPasswordDescription: m?.resetPasswordDescription
|
|
1246
1265
|
},
|
|
1247
|
-
onResetPassword:
|
|
1266
|
+
onResetPassword: L
|
|
1248
1267
|
}),
|
|
1249
|
-
|
|
1268
|
+
T(t.class("bc-auth-form__footer"), R())
|
|
1250
1269
|
)
|
|
1251
1270
|
}),
|
|
1252
|
-
...
|
|
1271
|
+
...V
|
|
1253
1272
|
);
|
|
1254
1273
|
});
|
|
1255
1274
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return
|
|
1275
|
+
function ko(e) {
|
|
1276
|
+
return he(
|
|
1258
1277
|
{
|
|
1259
1278
|
size: "sm",
|
|
1260
1279
|
dismissable: !0,
|
|
1261
1280
|
showCloseButton: !0
|
|
1262
1281
|
},
|
|
1263
|
-
(o,
|
|
1264
|
-
(
|
|
1265
|
-
body:
|
|
1266
|
-
header:
|
|
1282
|
+
(o, s) => e(
|
|
1283
|
+
(a) => o({
|
|
1284
|
+
body: Pe({ showContainer: !1, ...a }),
|
|
1285
|
+
header: q(
|
|
1267
1286
|
x,
|
|
1268
|
-
(
|
|
1287
|
+
(c) => g(a.modalTitle, c.$.authenticationTitle)
|
|
1269
1288
|
)
|
|
1270
1289
|
})
|
|
1271
1290
|
)
|
|
1272
1291
|
);
|
|
1273
1292
|
}
|
|
1274
|
-
function
|
|
1293
|
+
function se({
|
|
1275
1294
|
labels: e,
|
|
1276
1295
|
className: o
|
|
1277
1296
|
} = {}) {
|
|
1278
|
-
return
|
|
1297
|
+
return l.div(
|
|
1279
1298
|
t.class("bc-auth-divider"),
|
|
1280
1299
|
t.class(o),
|
|
1281
|
-
|
|
1282
|
-
|
|
1300
|
+
l.div(t.class("bc-auth-divider__line")),
|
|
1301
|
+
q(
|
|
1283
1302
|
x,
|
|
1284
|
-
(
|
|
1303
|
+
(s) => l.span(
|
|
1285
1304
|
t.class("bc-auth-divider__text"),
|
|
1286
|
-
|
|
1305
|
+
g(e?.text, s.$.orDivider)
|
|
1287
1306
|
)
|
|
1288
1307
|
),
|
|
1289
|
-
|
|
1308
|
+
l.div(t.class("bc-auth-divider__line"))
|
|
1290
1309
|
);
|
|
1291
1310
|
}
|
|
1292
1311
|
export {
|
|
1293
1312
|
Ue as $,
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
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,
|
|
1304
1323
|
fo as K,
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1324
|
+
no as L,
|
|
1325
|
+
ao as M,
|
|
1326
|
+
wo as N,
|
|
1308
1327
|
_o as O,
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
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,
|
|
1336
1356
|
K as h,
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1357
|
+
Q as i,
|
|
1358
|
+
We as j,
|
|
1359
|
+
Ge as k,
|
|
1340
1360
|
He as l,
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1361
|
+
Xe as m,
|
|
1362
|
+
ee as n,
|
|
1363
|
+
ke as o,
|
|
1364
|
+
d as p,
|
|
1365
|
+
Se as q,
|
|
1366
|
+
ie as r,
|
|
1347
1367
|
p as s,
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
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
|
|
1355
1375
|
};
|