@tempots/beatui 0.17.0 → 0.19.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/README.md +15 -34
- package/dist/2019-CfIF9XVA.cjs +1 -0
- package/dist/2019-D0n7sHsB.js +164 -0
- package/dist/2020-BkXWq9F8.js +192 -0
- package/dist/2020-D1ziwonq.cjs +1 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/apl-B2DGVGxc.js +76 -0
- package/dist/apl-M-DNMvvR.cjs +1 -0
- package/dist/ar-BsUm-TCn.cjs +1 -0
- package/dist/{ar-D5jeVM2s.js → ar-CMndb3tf.js} +24 -18
- package/dist/ar-DYmDITuw.cjs +1 -0
- package/dist/asciiarmor-2LVJmxlE.js +34 -0
- package/dist/asciiarmor-BMx3XVjX.cjs +1 -0
- package/dist/asn1-OOsVM4yU.cjs +1 -0
- package/dist/asn1-jKiBa2Ya.js +95 -0
- package/dist/asterisk-B1QUaW1C.cjs +1 -0
- package/dist/asterisk-DS281yxp.js +271 -0
- package/dist/auth/index.cjs.js +1 -0
- package/dist/auth/index.es.js +1331 -0
- package/dist/beatui.css +1 -1
- package/dist/brainfuck-BjUlYKdF.cjs +1 -0
- package/dist/brainfuck-C_p9pTT8.js +34 -0
- package/dist/clike-BEMIzMUI.cjs +1 -0
- package/dist/clike-DGTaUp48.js +620 -0
- package/dist/clojure-Ap_IXD2I.cjs +1 -0
- package/dist/clojure-CCKyeQKf.js +800 -0
- package/dist/cmake-C4D5_VmS.cjs +1 -0
- package/dist/cmake-CuaCgAKt.js +28 -0
- package/dist/cobol-BlTKFDRj.js +72 -0
- package/dist/cobol-Du-cT2hr.cjs +1 -0
- package/dist/coffeescript-BVCvwO8I.js +179 -0
- package/dist/coffeescript-DDFAj2ea.cjs +1 -0
- package/dist/commonlisp-CXBBRCTx.cjs +1 -0
- package/dist/commonlisp-D_kxz07b.js +75 -0
- package/dist/crystal-D309uH6_.js +217 -0
- package/dist/crystal-DAFWRDbh.cjs +1 -0
- package/dist/css-BkF-NPzE.js +1553 -0
- package/dist/css-DzFJyRJ8.cjs +1 -0
- package/dist/cypher-BMq4Fwjl.js +68 -0
- package/dist/cypher-BN0-oCze.cjs +1 -0
- package/dist/d-BHsqGcfm.cjs +1 -0
- package/dist/d-BZcgY6La.js +127 -0
- package/dist/de-BUFLEyKr.cjs +1 -0
- package/dist/{de-QCsvvABM.js → de-Cgy7XJBg.js} +25 -19
- package/dist/de-ClQgQrXM.cjs +1 -0
- package/dist/diff-CemTHKfk.cjs +1 -0
- package/dist/diff-Cg9d_RX2.js +18 -0
- package/dist/dockerfile-BBTH3voH.cjs +1 -0
- package/dist/dockerfile-DIy8NleC.js +194 -0
- package/dist/dtd-ChoVQPwv.cjs +1 -0
- package/dist/dtd-CtLokQ-U.js +84 -0
- package/dist/dylan-QYeExnWK.js +234 -0
- package/dist/dylan-apTQIgUA.cjs +1 -0
- package/dist/ebnf-DUPDuY4r.js +78 -0
- package/dist/ebnf-LYmLy17h.cjs +1 -0
- package/dist/ecl-C7WNQq7-.cjs +1 -0
- package/dist/ecl-CiXN-g_D.js +121 -0
- package/dist/eiffel-BJThA8RG.cjs +1 -0
- package/dist/eiffel-yQhjl4T1.js +110 -0
- package/dist/elm-CNT9vbN0.js +108 -0
- package/dist/elm-CcXP9T36.cjs +1 -0
- package/dist/erlang-B6mpcObI.cjs +1 -0
- package/dist/erlang-CFOYdy9e.js +487 -0
- package/dist/es-BN5Mihv0.cjs +1 -0
- package/dist/es-BxBeTRCv.cjs +1 -0
- package/dist/{es-QPLFaGbp.js → es-j0qszDAW.js} +23 -17
- package/dist/fa-BUQvM0nj.cjs +1 -0
- package/dist/{fa-DQmCKW-7.js → fa-COUp2ofv.js} +24 -16
- package/dist/fa-DxPseW3g.cjs +1 -0
- package/dist/factor-B-tsx9yW.cjs +1 -0
- package/dist/factor-DDOC7X6P.js +65 -0
- package/dist/fcl-BzAKklXo.cjs +1 -0
- package/dist/fcl-CPC2WYrI.js +103 -0
- package/dist/forth-BmxRyE9S.js +60 -0
- package/dist/forth-CPAzyZ_n.cjs +1 -0
- package/dist/fortran-9bvPyrOW.js +442 -0
- package/dist/fortran-DHiTlGV1.cjs +1 -0
- package/dist/{fr-MvvOUdq6.js → fr-B5Ar6QcE.js} +26 -20
- package/dist/fr-Cdyopuz3.cjs +1 -0
- package/dist/fr-CwvsJDIZ.cjs +1 -0
- package/dist/gas-BiPtGF2E.cjs +1 -0
- package/dist/gas-cpmYfFX2.js +183 -0
- package/dist/gherkin-CJuwpceU.js +34 -0
- package/dist/gherkin-Djo7Y51D.cjs +1 -0
- package/dist/groovy-BMVITiCm.cjs +1 -0
- package/dist/groovy-DZeT_VM-.js +146 -0
- package/dist/haskell-Bvt3Qq1t.js +375 -0
- package/dist/haskell-CngODaW-.cjs +1 -0
- package/dist/haxe-70NVW1pR.js +359 -0
- package/dist/haxe-Dyk-piTh.cjs +1 -0
- package/dist/{he-BgUKFv6v.js → he-D5HTHvKh.js} +24 -18
- package/dist/he-DarDNPn0.cjs +1 -0
- package/dist/he-HZvvmFUB.cjs +1 -0
- package/dist/{hi-BJXdbCIZ.js → hi-Bcc7iEXp.js} +24 -18
- package/dist/hi-Cnr1RtgA.cjs +1 -0
- package/dist/hi-tATwsXJ6.cjs +1 -0
- package/dist/http-BkLifcnL.cjs +1 -0
- package/dist/http-D9LttvKF.js +44 -0
- package/dist/idl-B6TRFYjl.js +947 -0
- package/dist/idl-FmHDmsE-.cjs +1 -0
- package/dist/index-2DKUYRWr.js +226 -0
- package/dist/index-85k3bgcY.cjs +1 -0
- package/dist/index-B-d5blto.js +302 -0
- package/dist/index-B16dbwxM.cjs +1 -0
- package/dist/index-B2079wM-.js +921 -0
- package/dist/index-B66rNs5i.cjs +2 -0
- package/dist/index-BF4pXHo-.js +270 -0
- package/dist/index-BJfVmi_X.js +612 -0
- package/dist/index-BUKtbimR.cjs +6 -0
- package/dist/index-BYk56bqR.cjs +13 -0
- package/dist/index-BZHMnjr6.cjs +1 -0
- package/dist/index-Bg1QLlyj.js +552 -0
- package/dist/index-BguvTLHu.cjs +1 -0
- package/dist/index-BirEb-BA.js +8285 -0
- package/dist/index-By8a3eg5.cjs +1 -0
- package/dist/index-C4UzgyIA.cjs +1 -0
- package/dist/index-C9XAXTDx.cjs +1 -0
- package/dist/index-CFo2nnaI.js +342 -0
- package/dist/index-CHgx0rFt.js +76 -0
- package/dist/index-CIfx_bs7.cjs +7 -0
- package/dist/index-CKRuo2DB.js +960 -0
- package/dist/index-CRfUh74G.cjs +1 -0
- package/dist/index-CUs1c8a9.js +309 -0
- package/dist/index-CoBM7UvE.js +157 -0
- package/dist/index-Cohec4rB.cjs +1 -0
- package/dist/index-D-Rzl363.cjs +1 -0
- package/dist/index-D0-d-xdJ.js +953 -0
- package/dist/index-DC4nzG_w.js +554 -0
- package/dist/index-DD-MOsCa.js +59 -0
- package/dist/index-DD8_efWr.cjs +1 -0
- package/dist/index-DJ-avKHU.js +138 -0
- package/dist/index-DSvEBuy-.cjs +3 -0
- package/dist/index-DV7tB1MN.cjs +1 -0
- package/dist/index-DXFKCiah.cjs +8 -0
- package/dist/index-DYIv5X6N.js +289 -0
- package/dist/index-Dben4dbo.js +1874 -0
- package/dist/index-DgUJYXoy.cjs +1 -0
- package/dist/index-DjNMMz5-.cjs +1 -0
- package/dist/index-DxG_avr8.cjs +1 -0
- package/dist/index-FEy4Hwnx.cjs +1 -0
- package/dist/index-_OaxQJX1.js +74 -0
- package/dist/index-dV4F3c70.js +136 -0
- package/dist/index-dsitEt8M.cjs +1 -0
- package/dist/index-faGepKVA.js +94 -0
- package/dist/index-kk6qFeC5.cjs +1 -0
- package/dist/index-rWglN8IQ.js +1307 -0
- package/dist/index-tuwLQMCb.js +251 -0
- package/dist/index-ykojBEwT.js +101 -0
- package/dist/index.cjs.js +143 -0
- package/dist/index.es.js +4456 -7705
- package/dist/index.esm-8xolKogd.cjs +1 -0
- package/dist/index.esm-CSotgpVw.js +4959 -0
- package/dist/it-B7KeOLBm.cjs +1 -0
- package/dist/it-BmFag7j0.cjs +1 -0
- package/dist/{it-Bu7Sjs-g.js → it-CTCKFU5g.js} +24 -18
- package/dist/ja-0ldomgID.cjs +1 -0
- package/dist/{ja-DrXpNYfH.js → ja-BGoETTZv.js} +23 -15
- package/dist/ja-Dj-bAKLf.cjs +1 -0
- package/dist/javascript-C2yteZeJ.js +691 -0
- package/dist/javascript-DngSGg_0.cjs +1 -0
- package/dist/jinja2-DnB6dQmV.js +154 -0
- package/dist/jinja2-wbVbDTNi.cjs +1 -0
- package/dist/json-schema/index.cjs.js +1 -0
- package/dist/json-schema/index.es.js +37 -0
- package/dist/julia-DA67Qw9E.cjs +1 -0
- package/dist/julia-DpvXAuO6.js +241 -0
- package/dist/ko-BomUE-yQ.cjs +1 -0
- package/dist/ko-C4WEkArz.cjs +1 -0
- package/dist/{ko-BmkxLoBO.js → ko-xHeRs9LU.js} +22 -14
- package/dist/link-portal-Cr2l9f3k.js +9 -0
- package/dist/link-portal-_tiDFZqh.cjs +1 -0
- package/dist/livescript-Bg3URadp.cjs +1 -0
- package/dist/livescript-CanGTf8u.js +272 -0
- package/dist/lua-CIsxjGwi.cjs +1 -0
- package/dist/lua-XplVlWi_.js +217 -0
- package/dist/markdown/index.cjs.js +2 -0
- package/dist/markdown/index.es.js +422 -0
- package/dist/markdown.css +39 -0
- package/dist/mathematica-BG089QIc.cjs +1 -0
- package/dist/mathematica-jaRHnSxC.js +35 -0
- package/dist/mbox-BctzC1hL.js +76 -0
- package/dist/mbox-CySolFFZ.cjs +1 -0
- package/dist/milkdown/index.cjs.js +1 -0
- package/dist/milkdown/index.es.js +4 -0
- package/dist/milkdown-input-BbbZJGDl.js +62376 -0
- package/dist/milkdown-input-C-Muq7PQ.cjs +941 -0
- package/dist/milkdown-url-BKbqhNCO.js +4 -0
- package/dist/milkdown-url-BLgXPmZR.cjs +1 -0
- package/dist/milkdown.css +1903 -0
- package/dist/mirc-BfqEffzk.cjs +1 -0
- package/dist/mirc-CFBPAOaF.js +72 -0
- package/dist/mllike-BSnXJBGA.js +272 -0
- package/dist/mllike-QUjwI6zq.cjs +1 -0
- package/dist/modal-nbZW44XS.js +614 -0
- package/dist/modal-wbG_oGOr.cjs +1 -0
- package/dist/modelica-B6Zhcb-M.cjs +1 -0
- package/dist/modelica-vUgVs--1.js +93 -0
- package/dist/monaco/index.cjs.js +2 -0
- package/dist/monaco/index.es.js +269 -0
- package/dist/monaco.css +14 -0
- package/dist/mscgen-BToym4Bs.cjs +1 -0
- package/dist/mscgen-Cpl0NYLN.js +104 -0
- package/dist/mumps-CQoS1kWX.js +25 -0
- package/dist/mumps-wfyQdxSu.cjs +1 -0
- package/dist/nginx-CwqyBUfA.cjs +1 -0
- package/dist/nginx-zDPm3Z74.js +89 -0
- package/dist/nl-D-y231ZO.cjs +1 -0
- package/dist/nl-Dr-l6zUy.cjs +1 -0
- package/dist/{nl-DC5KbcZ1.js → nl-ey2Li7DF.js} +24 -18
- package/dist/notice-CIPcSfD5.js +2432 -0
- package/dist/notice-Cq02YHoN.cjs +1 -0
- package/dist/nsis-DPj2fUaP.cjs +1 -0
- package/dist/nsis-fePjrhq7.js +62 -0
- package/dist/ntriples-CsNjv2QF.js +79 -0
- package/dist/ntriples-DgwJmozm.cjs +1 -0
- package/dist/octave-1pkKrgAA.cjs +1 -0
- package/dist/octave-C8PmmSRH.js +143 -0
- package/dist/oz-BXOZCt0U.cjs +1 -0
- package/dist/oz-Ce8aN8oE.js +151 -0
- package/dist/pascal-De0D6mP7.js +77 -0
- package/dist/pascal-DtY2LEkJ.cjs +1 -0
- package/dist/perl-B4bSCe1C.js +915 -0
- package/dist/perl-CVDWbEju.cjs +1 -0
- package/dist/pig-D24Z8EXi.js +54 -0
- package/dist/pig-DMByOrnr.cjs +1 -0
- package/dist/pl-BK0i_yvq.cjs +1 -0
- package/dist/{pl-BJJ-Grej.js → pl-Bf0QaCGx.js} +27 -21
- package/dist/pl-G6e4Mybr.cjs +1 -0
- package/dist/powershell-BaoYaFvj.cjs +1 -0
- package/dist/powershell-DkYVfTzP.js +249 -0
- package/dist/preprocess-CvkqwVNt.cjs +3 -0
- package/dist/preprocess-D898zxsP.js +2295 -0
- package/dist/properties-DXHJZ3WE.cjs +1 -0
- package/dist/properties-Dn9wna3M.js +26 -0
- package/dist/protobuf-BKhXdfH6.cjs +1 -0
- package/dist/protobuf-BPIjwpzm.js +49 -0
- package/dist/pt-CD2Eqazl.cjs +1 -0
- package/dist/{pt-DH8tH7fr.js → pt-D-_KxA9g.js} +26 -20
- package/dist/pt-oBMmVYcu.cjs +1 -0
- package/dist/pug-CwAQJzGR.js +248 -0
- package/dist/pug-kEfRDOiF.cjs +1 -0
- package/dist/puppet-8mAyuMbW.cjs +1 -0
- package/dist/puppet-nyd4dhjf.js +45 -0
- package/dist/python-BkR3uSy8.js +313 -0
- package/dist/python-D-iU6WXz.cjs +1 -0
- package/dist/q-BPQ45Nxu.cjs +1 -0
- package/dist/q-DXjKs-tC.js +83 -0
- package/dist/r-LKEuhEGI.js +104 -0
- package/dist/r-r2_EZsON.cjs +1 -0
- package/dist/rpm-IznJm2Xc.js +57 -0
- package/dist/rpm-YK81m3qU.cjs +1 -0
- package/dist/ru-CKh2xgqC.cjs +1 -0
- package/dist/ru-CtxMmoa6.cjs +1 -0
- package/dist/{ru-DoNk8aVN.js → ru-Dzbl29K2.js} +29 -21
- package/dist/ruby-CcYfvIk6.js +228 -0
- package/dist/ruby-Cn1sFkZF.cjs +1 -0
- package/dist/sas-7E8yHoCW.js +105 -0
- package/dist/sas-DAGcJy94.cjs +1 -0
- package/dist/scheme-B0ZrbojV.cjs +1 -0
- package/dist/scheme-DjibxsNh.js +124 -0
- package/dist/shell-BMYo43V6.cjs +1 -0
- package/dist/shell-C0C2sNA_.js +182 -0
- package/dist/sieve-Bwz7vjP5.js +72 -0
- package/dist/sieve-CIYW-b_H.cjs +1 -0
- package/dist/simple-mode-B0dvCdAA.js +89 -0
- package/dist/simple-mode-BIKNPBes.cjs +1 -0
- package/dist/smalltalk-Bhddl2pB.js +48 -0
- package/dist/smalltalk-CSslY-3i.cjs +1 -0
- package/dist/solr-A1kSnAwJ.cjs +1 -0
- package/dist/solr-BNlsLglM.js +41 -0
- package/dist/sparql-DnHMBLLY.cjs +1 -0
- package/dist/sparql-FarWu_Gb.js +197 -0
- package/dist/spreadsheet-B7_BK8hB.cjs +1 -0
- package/dist/spreadsheet-C-cy4P5N.js +49 -0
- package/dist/sql-9VmIWHrZ.cjs +1 -0
- package/dist/sql-CfG5lQ3l.js +282 -0
- package/dist/stex-B4wyjEnp.cjs +1 -0
- package/dist/stex-Du4h4KAU.js +129 -0
- package/dist/styles-url-B-d6aezR.cjs +1 -0
- package/dist/styles-url-B4WGMvfi.js +4 -0
- package/dist/styles-url-CZUL_YRT.cjs +1 -0
- package/dist/styles-url-DpP5gepF.js +4 -0
- package/dist/stylus-CAdqWld3.js +250 -0
- package/dist/stylus-D6GYOT3Z.cjs +1 -0
- package/dist/swift-DGw6Cgu8.cjs +1 -0
- package/dist/swift-DSxqR9R6.js +230 -0
- package/dist/tcl-ByLXbQFo.cjs +1 -0
- package/dist/tcl-xfoLljhY.js +81 -0
- package/dist/textile-D1AWE-pc.js +295 -0
- package/dist/textile-iryw-lTw.cjs +1 -0
- package/dist/theme-CJVt8QIc.js +34 -0
- package/dist/theme-YS3sFklH.cjs +1 -0
- package/dist/tiddlywiki-5wqsXtSk.js +155 -0
- package/dist/tiddlywiki-D8IJz1k7.cjs +1 -0
- package/dist/tiki-C5p5KSQK.cjs +1 -0
- package/dist/tiki-__Kn3CeS.js +181 -0
- package/dist/timer-CcMCjYrq.cjs +1 -0
- package/dist/timer-CkgWORR9.js +42 -0
- package/dist/toml-3ZsH_4Qa.cjs +1 -0
- package/dist/toml-BHiuTcfn.js +49 -0
- package/dist/tr-BbpC5gzM.cjs +1 -0
- package/dist/tr-CgJ8uhZu.cjs +1 -0
- package/dist/{tr-BD5Li2rQ.js → tr-yMHT8n7z.js} +24 -18
- package/dist/translations-CXE8Z_Ac.cjs +1 -0
- package/dist/translations-DBtfTNnM.js +2005 -0
- package/dist/translations-DbN-OSLv.js +47 -0
- package/dist/translations-EQ1qPZ0_.cjs +2 -0
- package/dist/troff-D-3QCOYN.cjs +1 -0
- package/dist/troff-D2UO-fKf.js +35 -0
- package/dist/ttcn-Bsa4sfRm.js +123 -0
- package/dist/ttcn-C2MXAqcM.cjs +1 -0
- package/dist/ttcn-cfg-BYqcMRxC.cjs +1 -0
- package/dist/ttcn-cfg-Bac_acMi.js +88 -0
- package/dist/turtle-DSJNatSv.cjs +1 -0
- package/dist/turtle-xwJUxoPV.js +80 -0
- package/dist/types/auth/index.d.ts +1 -0
- package/dist/types/beatui-i18n/default.d.ts +8 -1
- package/dist/types/beatui-i18n/locales/en.d.ts +8 -1
- package/dist/types/beatui-i18n/translations.d.ts +8 -1
- package/dist/types/components/auth/auth-divider.d.ts +2 -2
- package/dist/types/components/auth/index.d.ts +8 -6
- package/dist/types/components/auth/password-strength-indicator.d.ts +4 -4
- package/dist/types/components/auth/reset-password-form.d.ts +2 -2
- package/dist/types/components/auth/signin-form.d.ts +2 -2
- package/dist/types/components/auth/signup-form.d.ts +2 -2
- package/dist/types/components/auth/social-login-button.d.ts +27 -27
- package/dist/types/components/auth/types.d.ts +11 -13
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/button/close-button.d.ts +15 -0
- package/dist/types/components/button/index.d.ts +1 -0
- package/dist/types/components/data/tag.d.ts +3 -2
- package/dist/types/components/form/control/control-factory.d.ts +24 -0
- package/dist/types/components/form/control/date-utils.d.ts +6 -0
- package/dist/types/components/form/control/index.d.ts +3 -22
- package/dist/types/components/form/control/list-control.d.ts +23 -14
- package/dist/types/components/form/controller/controller.d.ts +20 -1
- package/dist/types/components/form/controller/index.d.ts +2 -0
- package/dist/types/components/form/controller/union-controller.d.ts +53 -0
- package/dist/types/components/form/controller/utils.d.ts +4 -0
- package/dist/types/components/form/input/appearance-selector.d.ts +2 -1
- package/dist/types/components/form/input/base64-input.d.ts +10 -0
- package/dist/types/components/form/input/base64s-input.d.ts +12 -0
- package/dist/types/components/form/input/bigint-input.d.ts +9 -0
- package/dist/types/components/form/input/color-input.d.ts +8 -1
- package/dist/types/components/form/input/combobox-input.d.ts +16 -0
- package/dist/types/components/form/input/combobox-tags-input.d.ts +16 -0
- package/dist/types/components/form/input/dropdown-base.d.ts +19 -0
- package/dist/types/components/form/input/dropdown-input.d.ts +14 -0
- package/dist/types/components/form/input/duration-input.d.ts +3 -0
- package/dist/types/components/form/input/duration-mask.d.ts +12 -0
- package/dist/types/components/form/input/editable-text.d.ts +2 -1
- package/dist/types/components/form/input/file-input.d.ts +3 -4
- package/dist/types/components/form/input/files-input.d.ts +12 -0
- package/dist/types/components/form/input/index.d.ts +42 -2
- package/dist/types/components/form/input/input-container.d.ts +2 -3
- package/dist/types/components/form/input/input-options.d.ts +0 -13
- package/dist/types/components/form/input/input-wrapper.d.ts +1 -1
- package/dist/types/components/form/input/instant-input.d.ts +3 -0
- package/dist/types/components/form/input/lazy-native-select.d.ts +1 -1
- package/dist/types/components/form/input/list-input.d.ts +14 -0
- package/dist/types/components/form/input/mask-input.d.ts +94 -0
- package/dist/types/components/form/input/native-select.d.ts +4 -23
- package/dist/types/components/form/input/nullable-base64-input.d.ts +8 -0
- package/dist/types/components/form/input/nullable-bigint-input.d.ts +9 -0
- package/dist/types/components/form/input/nullable-duration-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-email-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-instant-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-mask-input.d.ts +5 -0
- package/dist/types/components/form/input/nullable-number-input.d.ts +9 -0
- package/dist/types/components/form/input/nullable-password-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-plain-date-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-month-day-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-time-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-rating-input.d.ts +14 -0
- package/dist/types/components/form/input/nullable-url-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-utils.d.ts +2 -0
- package/dist/types/components/form/input/nullable-uuid-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-zoned-date-time-input.d.ts +3 -0
- package/dist/types/components/form/input/option.d.ts +38 -0
- package/dist/types/components/form/input/plain-date-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-date-time-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-month-day-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-time-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-year-month-input.d.ts +3 -0
- package/dist/types/components/form/input/rating-input.d.ts +15 -0
- package/dist/types/components/form/input/segmented-input.d.ts +10 -0
- package/dist/types/components/form/input/select-tags-input.d.ts +20 -0
- package/dist/types/components/form/input/slider-input.d.ts +15 -0
- package/dist/types/components/form/input/tag-utils.d.ts +11 -0
- package/dist/types/components/form/input/url-input.d.ts +2 -0
- package/dist/types/components/form/input/uuid-input.d.ts +2 -0
- package/dist/types/components/form/input/zoned-date-time-input.d.ts +3 -0
- package/dist/types/components/form/schema/custom-validation.d.ts +1 -1
- package/dist/types/components/form/use-form.d.ts +11 -4
- package/dist/types/components/json-schema/ajv-utils.d.ts +121 -0
- package/dist/types/components/json-schema/cache-management.d.ts +148 -0
- package/dist/types/components/json-schema/containers/container-layouts.d.ts +66 -0
- package/dist/types/components/json-schema/controls/any-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/array-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/boolean-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/composition-controls.d.ts +24 -0
- package/dist/types/components/json-schema/controls/composition-shared.d.ts +34 -0
- package/dist/types/components/json-schema/controls/enum-const-controls.d.ts +17 -0
- package/dist/types/components/json-schema/controls/generic-control.d.ts +18 -0
- package/dist/types/components/json-schema/controls/null-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/number-controls.d.ts +17 -0
- package/dist/types/components/json-schema/controls/object-control.d.ts +12 -0
- package/dist/types/components/json-schema/controls/object-helpers.d.ts +31 -0
- package/dist/types/components/json-schema/controls/presence-toggle.d.ts +12 -0
- package/dist/types/components/json-schema/controls/schema-banners.d.ts +14 -0
- package/dist/types/components/json-schema/controls/schema-wrapper.d.ts +7 -0
- package/dist/types/components/json-schema/controls/shared-utils.d.ts +16 -0
- package/dist/types/components/json-schema/controls/string-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/type-utils.d.ts +27 -0
- package/dist/types/components/json-schema/controls/union-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls.d.ts +11 -0
- package/dist/types/components/json-schema/discriminator/discriminator-utils.d.ts +57 -0
- package/dist/types/components/json-schema/index.d.ts +5 -0
- package/dist/types/components/json-schema/json-schema-form.d.ts +79 -0
- package/dist/types/components/json-schema/oneof-branch-detection.d.ts +35 -0
- package/dist/types/components/json-schema/ref-utils.d.ts +18 -0
- package/dist/types/components/json-schema/schema-context.d.ts +185 -0
- package/dist/types/components/json-schema/validation/async-validation.d.ts +113 -0
- package/dist/types/components/json-schema/validation/conditional-validation.d.ts +75 -0
- package/dist/types/components/json-schema/validation/cross-field-validation.d.ts +71 -0
- package/dist/types/components/json-schema/validation/error-aggregation.d.ts +84 -0
- package/dist/types/components/json-schema/validation/performance-optimization.d.ts +120 -0
- package/dist/types/components/json-schema/validator.d.ts +10 -0
- package/dist/types/components/json-schema/visibility/visibility-evaluation.d.ts +77 -0
- package/dist/types/components/json-schema/visibility/visibility-wrapper.d.ts +56 -0
- package/dist/types/components/json-schema/widgets/enhanced-widgets.d.ts +70 -0
- package/dist/types/components/json-schema/widgets/string-controls.d.ts +8 -0
- package/dist/types/components/json-schema/widgets/string-detection.d.ts +3 -0
- package/dist/types/components/json-schema/widgets/string-type.d.ts +62 -0
- package/dist/types/components/json-schema/widgets/utils.d.ts +45 -0
- package/dist/types/components/json-schema/widgets/widget-composition.d.ts +144 -0
- package/dist/types/components/json-schema/widgets/widget-customization.d.ts +120 -0
- package/dist/types/components/layout/index.d.ts +1 -0
- package/dist/types/components/layout/nine-slice-scroll-view.d.ts +21 -0
- package/dist/types/components/layout/scrollable-panel.d.ts +1 -1
- package/dist/types/components/milkdown/milkdown-input.d.ts +15 -0
- package/dist/types/components/milkdown/milkdown-url.d.ts +2 -0
- package/dist/types/components/misc/index.d.ts +3 -0
- package/dist/types/components/misc/link-portal.d.ts +11 -0
- package/dist/types/components/misc/notice.d.ts +15 -0
- package/dist/types/components/misc/style-portal.d.ts +10 -0
- package/dist/types/components/monaco/monaco-editor-input.d.ts +12 -0
- package/dist/types/components/navigation/flyout.d.ts +2 -2
- package/dist/types/components/navigation/index.d.ts +1 -0
- package/dist/types/components/navigation/menu.d.ts +7 -7
- package/dist/types/components/navigation/toolbar/index.d.ts +1 -0
- package/dist/types/components/navigation/toolbar/toolbar.d.ts +17 -0
- package/dist/types/components/overlay/drawer.d.ts +2 -2
- package/dist/types/components/overlay/modal.d.ts +3 -3
- package/dist/types/components/overlay/tooltip.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/json-schema/index.d.ts +1 -0
- package/dist/types/markdown/extensions.d.ts +8 -0
- package/dist/types/markdown/index.d.ts +17 -0
- package/dist/types/markdown/styles-url.d.ts +2 -0
- package/dist/types/markdown/styles.d.ts +2 -0
- package/dist/types/milkdown/index.d.ts +1 -0
- package/dist/types/milkdown/styles.d.ts +2 -0
- package/dist/types/monaco/index.d.ts +3 -0
- package/dist/types/monaco/lazy-loader.d.ts +5 -0
- package/dist/types/monaco/styles-url.d.ts +2 -0
- package/dist/types/monaco/styles.d.ts +2 -0
- package/dist/types/monaco/types.d.ts +14 -0
- package/dist/types/styles/base-url.d.ts +2 -0
- package/dist/types/styles/base.d.ts +2 -0
- package/dist/types/temporal/index.d.ts +3 -0
- package/dist/types/temporal/runtime.d.ts +2 -0
- package/dist/types/temporal/types.d.ts +10 -0
- package/dist/types/temporal/with-temporal.d.ts +3 -0
- package/dist/types/tokens/colors.d.ts +12 -1
- package/dist/types/utils/focus-trap.d.ts +4 -4
- package/dist/{ur-CUvRCu9R.js → ur-CdQA0epV.js} +24 -18
- package/dist/ur-DvqAg9gW.cjs +1 -0
- package/dist/ur-kkik6-_r.cjs +1 -0
- package/dist/vb-c2kQGd6-.js +74 -0
- package/dist/vb-qzHzzvyB.cjs +1 -0
- package/dist/vbscript-1f_Dhg5H.js +324 -0
- package/dist/vbscript-CWm8v9tE.cjs +1 -0
- package/dist/velocity-D3_yAIp3.cjs +1 -0
- package/dist/velocity-DJd0pTTC.js +96 -0
- package/dist/verilog-BOhLNmQo.cjs +1 -0
- package/dist/verilog-CiS1jyi5.js +262 -0
- package/dist/vhdl-CMFbi8Im.cjs +1 -0
- package/dist/vhdl-T9HkrbI2.js +106 -0
- package/dist/vi-1xtFXJc0.cjs +1 -0
- package/dist/{vi-BXI6n5F3.js → vi-A8UmZU3L.js} +26 -20
- package/dist/vi-D5R3YcU0.cjs +1 -0
- package/dist/webidl-CWb_flNk.cjs +1 -0
- package/dist/webidl-CjfDENEo.js +155 -0
- package/dist/xquery-BUQdORAS.js +422 -0
- package/dist/xquery-Cjw5fRnG.cjs +1 -0
- package/dist/yacas-C0absKBh.js +73 -0
- package/dist/yacas-urx_N5C8.cjs +1 -0
- package/dist/z80-CsG3CM6M.cjs +1 -0
- package/dist/z80-Pki2zAjW.js +61 -0
- package/dist/zh-CCGXcj5r.cjs +1 -0
- package/dist/{zh-DyIbx84k.js → zh-D0nnvX8T.js} +23 -15
- package/dist/zh-DC_SsXdk.cjs +1 -0
- package/package.json +57 -8
- package/dist/index.umd.js +0 -100
- package/dist/types/components/form/control/combobox-control.d.ts +0 -11
- package/dist/types/components/form/control/control-input-wrapper.d.ts +0 -7
- package/dist/types/components/form/control/control-options.d.ts +0 -20
- package/dist/types/components/form/control/date-control.d.ts +0 -3
- package/dist/types/components/form/control/date-time-control.d.ts +0 -3
- package/dist/types/components/form/control/email-control.d.ts +0 -3
- package/dist/types/components/form/control/file-control.d.ts +0 -13
- package/dist/types/components/form/control/lazy-native-select-control.d.ts +0 -16
- package/dist/types/components/form/control/native-select-control.d.ts +0 -9
- package/dist/types/components/form/control/nullable-date-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-date-time-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-string-date-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-string-date-time-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-text-area-control.d.ts +0 -7
- package/dist/types/components/form/control/nullable-text-control.d.ts +0 -3
- package/dist/types/components/form/control/number-control.d.ts +0 -9
- package/dist/types/components/form/control/password-control.d.ts +0 -3
- package/dist/types/components/form/control/segmented-control.d.ts +0 -10
- package/dist/types/components/form/control/string-date-control.d.ts +0 -3
- package/dist/types/components/form/control/tags-control.d.ts +0 -3
- package/dist/types/components/form/control/text-area-control.d.ts +0 -7
- package/dist/types/components/form/control/text-control.d.ts +0 -8
- package/dist/types/components/form/input/combobox.d.ts +0 -39
|
@@ -0,0 +1,1331 @@
|
|
|
1
|
+
import { localStorageProp as ro, prop as U, Use as S, html as m, OnDispose as O, attr as n, on as T, When as L, coalesce as g, computedOf as f, bind as so, ForEach as ao, Value as J, OneOfValue as io, Fragment as A } from "@tempots/dom";
|
|
2
|
+
import { t as co, b as K, u as W, S as q, c as eo, d as $, P as G, E as N, a as V, T as uo, G as mo, I as lo } from "../translations-DBtfTNnM.js";
|
|
3
|
+
import { s as I, o as E, b as R, M as po } from "../modal-nbZW44XS.js";
|
|
4
|
+
import { AuthI18n as x } from "../translations-DbN-OSLv.js";
|
|
5
|
+
import { classes as ho } from "@tempots/ui";
|
|
6
|
+
const M = {
|
|
7
|
+
google: { name: "Google", icon: "logos:google-icon", color: "#4285f4" },
|
|
8
|
+
github: { name: "GitHub", icon: "logos:github-icon", color: "#333" },
|
|
9
|
+
apple: { name: "Apple", icon: "logos:apple", color: "#000" },
|
|
10
|
+
facebook: { name: "Facebook", icon: "logos:facebook", color: "#1877f2" },
|
|
11
|
+
twitter: { name: "Twitter", icon: "logos:twitter", color: "#1da1f2" },
|
|
12
|
+
microsoft: {
|
|
13
|
+
name: "Microsoft",
|
|
14
|
+
icon: "logos:microsoft-icon",
|
|
15
|
+
color: "#00a4ef"
|
|
16
|
+
},
|
|
17
|
+
discord: { name: "Discord", icon: "logos:discord-icon", color: "#5865f2" },
|
|
18
|
+
linkedin: { name: "LinkedIn", icon: "logos:linkedin-icon", color: "#0077b5" },
|
|
19
|
+
instagram: {
|
|
20
|
+
name: "Instagram",
|
|
21
|
+
icon: "logos:instagram-icon",
|
|
22
|
+
color: "#e4405f"
|
|
23
|
+
},
|
|
24
|
+
tiktok: { name: "TikTok", icon: "logos:tiktok-icon", color: "#000" },
|
|
25
|
+
snapchat: { name: "Snapchat", icon: "logos:snapchat-icon", color: "#fffc00" },
|
|
26
|
+
reddit: { name: "Reddit", icon: "logos:reddit-icon", color: "#ff4500" },
|
|
27
|
+
pinterest: {
|
|
28
|
+
name: "Pinterest",
|
|
29
|
+
icon: "logos:pinterest-icon",
|
|
30
|
+
color: "#bd081c"
|
|
31
|
+
},
|
|
32
|
+
twitch: { name: "Twitch", icon: "logos:twitch", color: "#9146ff" },
|
|
33
|
+
steam: { name: "Steam", icon: "logos:steam-icon", color: "#000" },
|
|
34
|
+
epic: {
|
|
35
|
+
name: "Epic Games",
|
|
36
|
+
icon: "simple-icons:epicgames",
|
|
37
|
+
color: "#313131"
|
|
38
|
+
},
|
|
39
|
+
playstation: {
|
|
40
|
+
name: "PlayStation",
|
|
41
|
+
icon: "logos:playstation-icon",
|
|
42
|
+
color: "#003791"
|
|
43
|
+
},
|
|
44
|
+
xbox: { name: "Xbox", icon: "logos:xbox-icon", color: "#107c10" },
|
|
45
|
+
whatsapp: { name: "WhatsApp", icon: "logos:whatsapp-icon", color: "#25d366" },
|
|
46
|
+
wechat: { name: "WeChat", icon: "logos:wechat-icon", color: "#1aad19" },
|
|
47
|
+
amazon: { name: "Amazon", icon: "logos:amazon-icon", color: "#ff9900" },
|
|
48
|
+
yahoo: { name: "Yahoo", icon: "logos:yahoo-icon", color: "#720e9e" },
|
|
49
|
+
paypal: { name: "PayPal", icon: "logos:paypal", color: "#0070ba" },
|
|
50
|
+
x: { name: "X", icon: "simple-icons:x", color: "#000" }
|
|
51
|
+
};
|
|
52
|
+
function go(o) {
|
|
53
|
+
var e;
|
|
54
|
+
return ((e = M[o]) == null ? void 0 : e.name) || o;
|
|
55
|
+
}
|
|
56
|
+
function Bo(o) {
|
|
57
|
+
var e;
|
|
58
|
+
return ((e = M[o]) == null ? void 0 : e.icon) || "mdi:account";
|
|
59
|
+
}
|
|
60
|
+
function $o(o) {
|
|
61
|
+
var e;
|
|
62
|
+
return ((e = M[o]) == null ? void 0 : e.color) || "#666";
|
|
63
|
+
}
|
|
64
|
+
function Io(o, e = "Continue with {provider}") {
|
|
65
|
+
return e.replace("{provider}", go(o));
|
|
66
|
+
}
|
|
67
|
+
const B = {
|
|
68
|
+
minLength: 8,
|
|
69
|
+
requireUppercase: !0,
|
|
70
|
+
requireLowercase: !0,
|
|
71
|
+
requireNumbers: !0,
|
|
72
|
+
requireSymbols: !1
|
|
73
|
+
};
|
|
74
|
+
function To(o) {
|
|
75
|
+
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o);
|
|
76
|
+
}
|
|
77
|
+
function fo(o = 32) {
|
|
78
|
+
const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
79
|
+
let r = "";
|
|
80
|
+
for (let a = 0; a < o; a++)
|
|
81
|
+
r += e.charAt(Math.floor(Math.random() * e.length));
|
|
82
|
+
return r;
|
|
83
|
+
}
|
|
84
|
+
function Ao(o, e, r, a = [], c = {}) {
|
|
85
|
+
const i = {
|
|
86
|
+
google: "https://accounts.google.com/oauth/authorize",
|
|
87
|
+
github: "https://github.com/login/oauth/authorize",
|
|
88
|
+
apple: "https://appleid.apple.com/auth/authorize",
|
|
89
|
+
facebook: "https://www.facebook.com/v18.0/dialog/oauth",
|
|
90
|
+
twitter: "https://twitter.com/i/oauth2/authorize",
|
|
91
|
+
microsoft: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
|
|
92
|
+
discord: "https://discord.com/api/oauth2/authorize",
|
|
93
|
+
linkedin: "https://www.linkedin.com/oauth/v2/authorization",
|
|
94
|
+
instagram: "https://api.instagram.com/oauth/authorize",
|
|
95
|
+
tiktok: "https://www.tiktok.com/v2/auth/authorize",
|
|
96
|
+
snapchat: "https://accounts.snapchat.com/accounts/oauth2/authorize",
|
|
97
|
+
reddit: "https://www.reddit.com/api/v1/authorize",
|
|
98
|
+
pinterest: "https://api.pinterest.com/oauth/",
|
|
99
|
+
twitch: "https://id.twitch.tv/oauth2/authorize",
|
|
100
|
+
steam: "https://steamcommunity.com/oauth/authorize",
|
|
101
|
+
epic: "https://auth.epicgames.com/authorize",
|
|
102
|
+
playstation: "https://auth.api.sonyentertainmentnetwork.com/oauth/authorize",
|
|
103
|
+
xbox: "https://login.live.com/oauth20_authorize.srf",
|
|
104
|
+
whatsapp: "https://web.whatsapp.com/oauth/authorize",
|
|
105
|
+
wechat: "https://open.weixin.qq.com/connect/qrconnect",
|
|
106
|
+
amazon: "https://www.amazon.com/ap/oa",
|
|
107
|
+
yahoo: "https://api.login.yahoo.com/oauth2/request_auth",
|
|
108
|
+
paypal: "https://www.paypal.com/signin/authorize",
|
|
109
|
+
x: "https://api.twitter.com/oauth2/authorize"
|
|
110
|
+
}, t = {
|
|
111
|
+
google: ["openid", "email", "profile"],
|
|
112
|
+
github: ["user:email"],
|
|
113
|
+
apple: ["email", "name"],
|
|
114
|
+
facebook: ["email"],
|
|
115
|
+
twitter: ["users.read"],
|
|
116
|
+
microsoft: ["openid", "email", "profile"],
|
|
117
|
+
discord: ["identify", "email"],
|
|
118
|
+
linkedin: ["r_liteprofile", "r_emailaddress"],
|
|
119
|
+
instagram: ["user_profile", "user_media"],
|
|
120
|
+
tiktok: ["user.info.basic", "user.external.id"],
|
|
121
|
+
snapchat: ["user.info.basic", "user.external.id"],
|
|
122
|
+
reddit: ["identity", "email"],
|
|
123
|
+
pinterest: ["read_public", "read_relationships"],
|
|
124
|
+
twitch: ["openid", "email", "profile"],
|
|
125
|
+
steam: ["openid", "email", "profile"],
|
|
126
|
+
epic: ["openid", "email", "profile"],
|
|
127
|
+
playstation: ["openid", "email", "profile"],
|
|
128
|
+
xbox: ["openid", "email", "profile"],
|
|
129
|
+
whatsapp: ["openid", "email", "profile"],
|
|
130
|
+
wechat: ["openid", "email", "profile"],
|
|
131
|
+
amazon: ["openid", "email", "profile"],
|
|
132
|
+
yahoo: ["openid", "email", "profile"],
|
|
133
|
+
paypal: ["openid", "email", "profile"],
|
|
134
|
+
x: ["openid", "email", "profile"]
|
|
135
|
+
}, s = i[o];
|
|
136
|
+
if (!s)
|
|
137
|
+
throw new Error(`Unsupported provider: ${o}`);
|
|
138
|
+
const l = a.length > 0 ? a : t[o], u = fo(), w = new URLSearchParams({
|
|
139
|
+
client_id: e,
|
|
140
|
+
redirect_uri: r,
|
|
141
|
+
scope: l.join(" "),
|
|
142
|
+
state: u,
|
|
143
|
+
response_type: "code",
|
|
144
|
+
...c
|
|
145
|
+
});
|
|
146
|
+
return `${s}?${w.toString()}`;
|
|
147
|
+
}
|
|
148
|
+
function zo(o, e, r, a) {
|
|
149
|
+
const c = window.open(
|
|
150
|
+
o,
|
|
151
|
+
`${e}_login`,
|
|
152
|
+
"width=500,height=600,scrollbars=yes,resizable=yes"
|
|
153
|
+
);
|
|
154
|
+
if (!c) {
|
|
155
|
+
a == null || a(new Error("Failed to open popup window"));
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
const i = setInterval(() => {
|
|
159
|
+
c.closed && (clearInterval(i), a == null || a(new Error("Login cancelled")));
|
|
160
|
+
}, 1e3), t = (s) => {
|
|
161
|
+
s.origin === window.location.origin && (s.data.type === "SOCIAL_LOGIN_SUCCESS" ? (clearInterval(i), c.close(), window.removeEventListener("message", t), r == null || r(s.data.result)) : s.data.type === "SOCIAL_LOGIN_ERROR" && (clearInterval(i), c.close(), window.removeEventListener("message", t), a == null || a(new Error(s.data.error))));
|
|
162
|
+
};
|
|
163
|
+
window.addEventListener("message", t);
|
|
164
|
+
}
|
|
165
|
+
function Co(o) {
|
|
166
|
+
return o instanceof Error ? o.message : typeof o == "string" ? o : o && typeof o == "object" && "message" in o ? String(o.message) : "An unexpected error occurred";
|
|
167
|
+
}
|
|
168
|
+
function Uo() {
|
|
169
|
+
return typeof window < "u" && typeof document < "u";
|
|
170
|
+
}
|
|
171
|
+
function H({
|
|
172
|
+
task: o,
|
|
173
|
+
message: e,
|
|
174
|
+
onStart: r,
|
|
175
|
+
onEnd: a
|
|
176
|
+
}) {
|
|
177
|
+
return async (c) => {
|
|
178
|
+
r == null || r();
|
|
179
|
+
const i = await co({
|
|
180
|
+
task: o != null ? () => o(c) : async () => null,
|
|
181
|
+
errorMessage: e,
|
|
182
|
+
errorPath: ["root"],
|
|
183
|
+
validation: (t) => t != null ? K.invalid({ message: t }) : K.valid
|
|
184
|
+
});
|
|
185
|
+
return a == null || a(), i;
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
function j(o = B) {
|
|
189
|
+
let e = I();
|
|
190
|
+
return o.minLength && (e = e.min(
|
|
191
|
+
o.minLength,
|
|
192
|
+
`Password must be at least ${o.minLength} characters`
|
|
193
|
+
)), o.requireUppercase && (e = e.regex(
|
|
194
|
+
/[A-Z]/,
|
|
195
|
+
"Password must contain at least one uppercase letter"
|
|
196
|
+
)), o.requireLowercase && (e = e.regex(
|
|
197
|
+
/[a-z]/,
|
|
198
|
+
"Password must contain at least one lowercase letter"
|
|
199
|
+
)), o.requireNumbers && (e = e.regex(
|
|
200
|
+
/[0-9]/,
|
|
201
|
+
"Password must contain at least one number"
|
|
202
|
+
)), o.requireSymbols && (e = e.regex(
|
|
203
|
+
/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,
|
|
204
|
+
"Password must contain at least one special character"
|
|
205
|
+
)), o.customValidation && (e = e.refine((r) => o.customValidation(r))), e;
|
|
206
|
+
}
|
|
207
|
+
const F = I().min(1, "Email is required").email("Please enter a valid email address");
|
|
208
|
+
function X(o) {
|
|
209
|
+
const e = o ? j(o) : I().refine(
|
|
210
|
+
(r) => r.length > 0 ? null : "Password is required"
|
|
211
|
+
);
|
|
212
|
+
return E({
|
|
213
|
+
email: F,
|
|
214
|
+
password: e,
|
|
215
|
+
rememberMe: R().default(!1)
|
|
216
|
+
}).schema();
|
|
217
|
+
}
|
|
218
|
+
function Y(o = B, e) {
|
|
219
|
+
const r = j(o), a = (e == null ? void 0 : e.showNameField) !== !1, c = (e == null ? void 0 : e.showConfirmPassword) !== !1, i = (e == null ? void 0 : e.showAcceptTermsAndConditions) !== !1, t = {
|
|
220
|
+
name: a ? I().min(1, "Name is required").optional() : I().optional(),
|
|
221
|
+
email: F,
|
|
222
|
+
password: r,
|
|
223
|
+
// Always require confirmPassword as string to match SignUpData interface
|
|
224
|
+
// When not shown, it should accept any value (including empty string)
|
|
225
|
+
confirmPassword: c ? I().min(1, "Please confirm your password") : I(),
|
|
226
|
+
// Accept any string value when not shown
|
|
227
|
+
acceptTerms: i ? R().refine(
|
|
228
|
+
(l) => l === !0,
|
|
229
|
+
"You must accept the terms and conditions"
|
|
230
|
+
) : R().default(!0)
|
|
231
|
+
// Default to true when not shown
|
|
232
|
+
}, s = E(t);
|
|
233
|
+
return c ? s.refine(
|
|
234
|
+
(l) => l.password === l.confirmPassword ? null : "Passwords don't match",
|
|
235
|
+
{ path: ["confirmPassword"] }
|
|
236
|
+
).schema() : s.schema();
|
|
237
|
+
}
|
|
238
|
+
const to = E({
|
|
239
|
+
email: F
|
|
240
|
+
}).schema(), Oo = X(), Vo = Y(), Fo = {
|
|
241
|
+
signIn: X,
|
|
242
|
+
signUp: Y,
|
|
243
|
+
resetPassword: () => to
|
|
244
|
+
};
|
|
245
|
+
function Do(o) {
|
|
246
|
+
var r;
|
|
247
|
+
const e = F.validate(o);
|
|
248
|
+
return e.success ? null : ((r = e.errors[0]) == null ? void 0 : r.message) || "Invalid email";
|
|
249
|
+
}
|
|
250
|
+
function Go(o, e = B) {
|
|
251
|
+
var c;
|
|
252
|
+
const a = j(e).validate(o);
|
|
253
|
+
return a.success ? null : ((c = a.errors[0]) == null ? void 0 : c.message) || "Invalid password";
|
|
254
|
+
}
|
|
255
|
+
function Z(o, e = B) {
|
|
256
|
+
const r = {
|
|
257
|
+
length: o.length >= (e.minLength || 8),
|
|
258
|
+
uppercase: /[A-Z]/.test(o),
|
|
259
|
+
lowercase: /[a-z]/.test(o),
|
|
260
|
+
numbers: /[0-9]/.test(o),
|
|
261
|
+
symbols: /[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(o),
|
|
262
|
+
custom: e.customValidation ? e.customValidation(o) === null : o.length > 0
|
|
263
|
+
// For consistency, fail if password is empty
|
|
264
|
+
}, a = [
|
|
265
|
+
!0,
|
|
266
|
+
// length is always enabled
|
|
267
|
+
e.requireUppercase,
|
|
268
|
+
e.requireLowercase,
|
|
269
|
+
e.requireNumbers,
|
|
270
|
+
e.requireSymbols,
|
|
271
|
+
!!e.customValidation
|
|
272
|
+
].filter(Boolean).length, c = [
|
|
273
|
+
r.length,
|
|
274
|
+
e.requireUppercase ? r.uppercase : null,
|
|
275
|
+
e.requireLowercase ? r.lowercase : null,
|
|
276
|
+
e.requireNumbers ? r.numbers : null,
|
|
277
|
+
e.requireSymbols ? r.symbols : null,
|
|
278
|
+
e.customValidation ? r.custom : null
|
|
279
|
+
].filter((s) => s === !0).length, i = a > 0 ? Math.round(c / a * 100) : 0;
|
|
280
|
+
let t;
|
|
281
|
+
return i < 40 ? t = "weak" : i < 60 ? t = "fair" : i < 80 ? t = "good" : t = "strong", { strength: t, score: i, checks: r };
|
|
282
|
+
}
|
|
283
|
+
const no = () => ro({
|
|
284
|
+
key: "bui_auth_email",
|
|
285
|
+
defaultValue: null
|
|
286
|
+
});
|
|
287
|
+
function wo({
|
|
288
|
+
onSignIn: o,
|
|
289
|
+
passwordRules: e,
|
|
290
|
+
labels: r,
|
|
291
|
+
showRememberMe: a
|
|
292
|
+
}) {
|
|
293
|
+
const c = U(!1), i = no(), t = X(e), s = W({
|
|
294
|
+
schema: t,
|
|
295
|
+
submit: H({
|
|
296
|
+
task: o != null ? (h) => o({
|
|
297
|
+
email: h.email,
|
|
298
|
+
password: h.password
|
|
299
|
+
}) : void 0,
|
|
300
|
+
message: "Reset password failed",
|
|
301
|
+
onStart: () => {
|
|
302
|
+
c.set(!0), s.controller.disable();
|
|
303
|
+
},
|
|
304
|
+
onEnd: () => {
|
|
305
|
+
c.set(!1), s.controller.enable();
|
|
306
|
+
}
|
|
307
|
+
}),
|
|
308
|
+
initialValue: {
|
|
309
|
+
email: "",
|
|
310
|
+
password: ""
|
|
311
|
+
}
|
|
312
|
+
}), { controller: l, onSubmit: u } = s;
|
|
313
|
+
c.on(l.setDisabled);
|
|
314
|
+
const w = l.field("email"), _ = l.field("password");
|
|
315
|
+
return i.on((h) => {
|
|
316
|
+
h != null && w.change(h);
|
|
317
|
+
}), w.value.on((h) => {
|
|
318
|
+
i.value != null && (i.value = h);
|
|
319
|
+
}), S(
|
|
320
|
+
x,
|
|
321
|
+
(h) => (
|
|
322
|
+
// Email/Password form
|
|
323
|
+
m.form(
|
|
324
|
+
O(l.dispose, i.dispose, c.dispose),
|
|
325
|
+
n.class("bc-auth-form__form"),
|
|
326
|
+
T.submit(u),
|
|
327
|
+
q(
|
|
328
|
+
n.class("bc-auth-form__fields"),
|
|
329
|
+
// Email field
|
|
330
|
+
$(N, {
|
|
331
|
+
controller: w,
|
|
332
|
+
label: g(r == null ? void 0 : r.emailLabel, h.$.emailLabel)
|
|
333
|
+
}),
|
|
334
|
+
// Password field
|
|
335
|
+
$(G, {
|
|
336
|
+
controller: _,
|
|
337
|
+
label: g(r == null ? void 0 : r.passwordLabel, h.$.passwordLabel)
|
|
338
|
+
}),
|
|
339
|
+
// Remember me checkbox
|
|
340
|
+
L(
|
|
341
|
+
a ?? !0,
|
|
342
|
+
() => m.div(
|
|
343
|
+
n.class("bc-auth-form__remember-me"),
|
|
344
|
+
m.label(
|
|
345
|
+
n.class("bc-auth-form__checkbox-label"),
|
|
346
|
+
eo({
|
|
347
|
+
value: i.map((k) => k != null),
|
|
348
|
+
after: m.span(
|
|
349
|
+
g(r == null ? void 0 : r.rememberMeLabel, h.$.rememberMeLabel)
|
|
350
|
+
),
|
|
351
|
+
onChange: (k) => {
|
|
352
|
+
k ? i.value = w.value.value ?? "" : i.value = null;
|
|
353
|
+
}
|
|
354
|
+
})
|
|
355
|
+
)
|
|
356
|
+
)
|
|
357
|
+
)
|
|
358
|
+
),
|
|
359
|
+
// Submit button
|
|
360
|
+
V(
|
|
361
|
+
{
|
|
362
|
+
type: "submit",
|
|
363
|
+
variant: "filled",
|
|
364
|
+
color: "primary",
|
|
365
|
+
loading: c,
|
|
366
|
+
disabled: l.disabledOrHasErrors
|
|
367
|
+
},
|
|
368
|
+
n.class("bc-auth-form__submit"),
|
|
369
|
+
g(r == null ? void 0 : r.signInButton, h.$.signInButton)
|
|
370
|
+
)
|
|
371
|
+
)
|
|
372
|
+
)
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
function _o({
|
|
376
|
+
password: o,
|
|
377
|
+
rules: e = B,
|
|
378
|
+
showLabel: r = !0,
|
|
379
|
+
className: a
|
|
380
|
+
}) {
|
|
381
|
+
const c = f(o)((u) => !u || u.length === 0 ? {
|
|
382
|
+
strength: "weak",
|
|
383
|
+
score: 0,
|
|
384
|
+
checks: {
|
|
385
|
+
length: !1,
|
|
386
|
+
uppercase: !1,
|
|
387
|
+
lowercase: !1,
|
|
388
|
+
numbers: !1,
|
|
389
|
+
symbols: !1,
|
|
390
|
+
custom: !1
|
|
391
|
+
}
|
|
392
|
+
} : Z(u, e)), i = c.map((u) => u.strength), t = c.map((u) => u.score), s = c.map((u) => u.checks), l = f(
|
|
393
|
+
i,
|
|
394
|
+
a
|
|
395
|
+
)((u, w) => [
|
|
396
|
+
"bc-password-strength",
|
|
397
|
+
`bc-password-strength--${u}`,
|
|
398
|
+
w
|
|
399
|
+
].filter(Boolean).join(" "));
|
|
400
|
+
return m.div(
|
|
401
|
+
n.class(l),
|
|
402
|
+
// Strength bar
|
|
403
|
+
m.div(
|
|
404
|
+
n.class("bc-password-strength__bar"),
|
|
405
|
+
m.div(
|
|
406
|
+
n.class("bc-password-strength__fill"),
|
|
407
|
+
n.style(t.map((u) => `width: ${u}%`))
|
|
408
|
+
)
|
|
409
|
+
),
|
|
410
|
+
// Strength label (optional)
|
|
411
|
+
L(
|
|
412
|
+
r,
|
|
413
|
+
() => S(
|
|
414
|
+
x,
|
|
415
|
+
(u) => m.div(
|
|
416
|
+
n.class("bc-password-strength__label"),
|
|
417
|
+
f(
|
|
418
|
+
i,
|
|
419
|
+
u
|
|
420
|
+
)((w, _) => {
|
|
421
|
+
switch (w) {
|
|
422
|
+
case "weak":
|
|
423
|
+
return _.passwordStrengthWeak;
|
|
424
|
+
case "fair":
|
|
425
|
+
return _.passwordStrengthFair;
|
|
426
|
+
case "good":
|
|
427
|
+
return _.passwordStrengthGood;
|
|
428
|
+
case "strong":
|
|
429
|
+
return _.passwordStrengthStrong;
|
|
430
|
+
default:
|
|
431
|
+
return _.passwordStrengthWeak;
|
|
432
|
+
}
|
|
433
|
+
})
|
|
434
|
+
)
|
|
435
|
+
)
|
|
436
|
+
),
|
|
437
|
+
// Requirements checklist
|
|
438
|
+
m.div(
|
|
439
|
+
n.class("bc-password-strength__requirements"),
|
|
440
|
+
// Length requirement
|
|
441
|
+
L(
|
|
442
|
+
e.minLength !== void 0,
|
|
443
|
+
() => m.div(
|
|
444
|
+
n.class("bc-password-strength__requirement"),
|
|
445
|
+
n.class(
|
|
446
|
+
f(s)(
|
|
447
|
+
(u) => u.length ? "bc-password-strength__requirement--met" : ""
|
|
448
|
+
)
|
|
449
|
+
),
|
|
450
|
+
m.span(
|
|
451
|
+
n.class("bc-password-strength__requirement-icon"),
|
|
452
|
+
f(s)((u) => u.length ? "✓" : "○")
|
|
453
|
+
),
|
|
454
|
+
m.span(
|
|
455
|
+
n.class("bc-password-strength__requirement-text"),
|
|
456
|
+
`At least ${e.minLength} characters`
|
|
457
|
+
)
|
|
458
|
+
)
|
|
459
|
+
),
|
|
460
|
+
// Uppercase requirement
|
|
461
|
+
L(
|
|
462
|
+
e.requireUppercase === !0,
|
|
463
|
+
() => m.div(
|
|
464
|
+
n.class("bc-password-strength__requirement"),
|
|
465
|
+
n.class(
|
|
466
|
+
f(s)(
|
|
467
|
+
(u) => u.uppercase ? "bc-password-strength__requirement--met" : ""
|
|
468
|
+
)
|
|
469
|
+
),
|
|
470
|
+
m.span(
|
|
471
|
+
n.class("bc-password-strength__requirement-icon"),
|
|
472
|
+
f(s)((u) => u.uppercase ? "✓" : "○")
|
|
473
|
+
),
|
|
474
|
+
m.span(
|
|
475
|
+
n.class("bc-password-strength__requirement-text"),
|
|
476
|
+
"One uppercase letter"
|
|
477
|
+
)
|
|
478
|
+
)
|
|
479
|
+
),
|
|
480
|
+
// Lowercase requirement
|
|
481
|
+
L(
|
|
482
|
+
e.requireLowercase === !0,
|
|
483
|
+
() => m.div(
|
|
484
|
+
n.class("bc-password-strength__requirement"),
|
|
485
|
+
n.class(
|
|
486
|
+
f(s)(
|
|
487
|
+
(u) => u.lowercase ? "bc-password-strength__requirement--met" : ""
|
|
488
|
+
)
|
|
489
|
+
),
|
|
490
|
+
m.span(
|
|
491
|
+
n.class("bc-password-strength__requirement-icon"),
|
|
492
|
+
f(s)((u) => u.lowercase ? "✓" : "○")
|
|
493
|
+
),
|
|
494
|
+
m.span(
|
|
495
|
+
n.class("bc-password-strength__requirement-text"),
|
|
496
|
+
"One lowercase letter"
|
|
497
|
+
)
|
|
498
|
+
)
|
|
499
|
+
),
|
|
500
|
+
// Numbers requirement
|
|
501
|
+
L(
|
|
502
|
+
e.requireNumbers === !0,
|
|
503
|
+
() => m.div(
|
|
504
|
+
n.class("bc-password-strength__requirement"),
|
|
505
|
+
n.class(
|
|
506
|
+
f(s)(
|
|
507
|
+
(u) => u.numbers ? "bc-password-strength__requirement--met" : ""
|
|
508
|
+
)
|
|
509
|
+
),
|
|
510
|
+
m.span(
|
|
511
|
+
n.class("bc-password-strength__requirement-icon"),
|
|
512
|
+
f(s)((u) => u.numbers ? "✓" : "○")
|
|
513
|
+
),
|
|
514
|
+
m.span(
|
|
515
|
+
n.class("bc-password-strength__requirement-text"),
|
|
516
|
+
"One number"
|
|
517
|
+
)
|
|
518
|
+
)
|
|
519
|
+
),
|
|
520
|
+
// Symbols requirement
|
|
521
|
+
L(
|
|
522
|
+
e.requireSymbols === !0,
|
|
523
|
+
() => m.div(
|
|
524
|
+
n.class("bc-password-strength__requirement"),
|
|
525
|
+
n.class(
|
|
526
|
+
f(s)(
|
|
527
|
+
(u) => u.symbols ? "bc-password-strength__requirement--met" : ""
|
|
528
|
+
)
|
|
529
|
+
),
|
|
530
|
+
m.span(
|
|
531
|
+
n.class("bc-password-strength__requirement-icon"),
|
|
532
|
+
f(s)((u) => u.symbols ? "✓" : "○")
|
|
533
|
+
),
|
|
534
|
+
m.span(
|
|
535
|
+
n.class("bc-password-strength__requirement-text"),
|
|
536
|
+
"One special character"
|
|
537
|
+
)
|
|
538
|
+
)
|
|
539
|
+
)
|
|
540
|
+
)
|
|
541
|
+
);
|
|
542
|
+
}
|
|
543
|
+
function Ro({
|
|
544
|
+
password: o,
|
|
545
|
+
rules: e = B,
|
|
546
|
+
className: r
|
|
547
|
+
}) {
|
|
548
|
+
const a = f(o)((s) => !s || s.length === 0 ? { strength: "weak", score: 0 } : Z(s, e)), c = a.map((s) => s.strength), i = a.map((s) => s.score), t = f(
|
|
549
|
+
c,
|
|
550
|
+
r
|
|
551
|
+
)((s, l) => [
|
|
552
|
+
"bc-password-strength-bar",
|
|
553
|
+
`bc-password-strength-bar--${s}`,
|
|
554
|
+
l
|
|
555
|
+
].filter(Boolean).join(" "));
|
|
556
|
+
return m.div(
|
|
557
|
+
n.class(t),
|
|
558
|
+
m.div(
|
|
559
|
+
n.class("bc-password-strength-bar__fill"),
|
|
560
|
+
n.style(i.map((s) => `width: ${s}%`))
|
|
561
|
+
)
|
|
562
|
+
);
|
|
563
|
+
}
|
|
564
|
+
function Wo({
|
|
565
|
+
password: o,
|
|
566
|
+
rules: e = B,
|
|
567
|
+
className: r
|
|
568
|
+
}) {
|
|
569
|
+
const a = f(o)((i) => !i || i.length === 0 ? "weak" : Z(i, e).strength), c = f(
|
|
570
|
+
a,
|
|
571
|
+
r
|
|
572
|
+
)((i, t) => [
|
|
573
|
+
"bc-password-strength-text",
|
|
574
|
+
`bc-password-strength-text--${i}`,
|
|
575
|
+
t
|
|
576
|
+
].filter(Boolean).join(" "));
|
|
577
|
+
return S(
|
|
578
|
+
x,
|
|
579
|
+
(i) => m.span(
|
|
580
|
+
n.class(c),
|
|
581
|
+
f(
|
|
582
|
+
a,
|
|
583
|
+
i
|
|
584
|
+
)((t, s) => {
|
|
585
|
+
switch (t) {
|
|
586
|
+
case "weak":
|
|
587
|
+
return s.passwordStrengthWeak;
|
|
588
|
+
case "fair":
|
|
589
|
+
return s.passwordStrengthFair;
|
|
590
|
+
case "good":
|
|
591
|
+
return s.passwordStrengthGood;
|
|
592
|
+
case "strong":
|
|
593
|
+
return s.passwordStrengthStrong;
|
|
594
|
+
default:
|
|
595
|
+
return s.passwordStrengthWeak;
|
|
596
|
+
}
|
|
597
|
+
})
|
|
598
|
+
)
|
|
599
|
+
);
|
|
600
|
+
}
|
|
601
|
+
function Lo({
|
|
602
|
+
passwordRules: o,
|
|
603
|
+
labels: e,
|
|
604
|
+
showPasswordStrength: r,
|
|
605
|
+
onSignUp: a,
|
|
606
|
+
showNameField: c,
|
|
607
|
+
showConfirmPassword: i,
|
|
608
|
+
showAcceptTermsAndConditions: t,
|
|
609
|
+
termsAndConditions: s
|
|
610
|
+
}) {
|
|
611
|
+
const l = U(!1), u = o || B, w = Y(u, {
|
|
612
|
+
showNameField: c !== !1,
|
|
613
|
+
showConfirmPassword: i !== !1,
|
|
614
|
+
showAcceptTermsAndConditions: t !== !1
|
|
615
|
+
}), _ = W({
|
|
616
|
+
schema: w,
|
|
617
|
+
submit: H({
|
|
618
|
+
task: a != null ? (y) => a({
|
|
619
|
+
email: y.email,
|
|
620
|
+
password: y.password,
|
|
621
|
+
name: y.name
|
|
622
|
+
}) : void 0,
|
|
623
|
+
message: "Reset password failed",
|
|
624
|
+
onStart: () => {
|
|
625
|
+
l.set(!0), _.controller.disable();
|
|
626
|
+
},
|
|
627
|
+
onEnd: () => {
|
|
628
|
+
l.set(!1), _.controller.enable();
|
|
629
|
+
}
|
|
630
|
+
}),
|
|
631
|
+
initialValue: {
|
|
632
|
+
name: "",
|
|
633
|
+
email: "",
|
|
634
|
+
password: "",
|
|
635
|
+
confirmPassword: "",
|
|
636
|
+
acceptTerms: !1
|
|
637
|
+
}
|
|
638
|
+
}), { controller: h, onSubmit: k } = _;
|
|
639
|
+
l.on(h.setDisabled);
|
|
640
|
+
const v = h.field("name"), z = h.field("email"), C = h.field("password"), D = h.field("confirmPassword"), b = h.field("acceptTerms");
|
|
641
|
+
return S(
|
|
642
|
+
x,
|
|
643
|
+
(y) => (
|
|
644
|
+
// Registration form
|
|
645
|
+
m.form(
|
|
646
|
+
O(h.dispose, l.dispose),
|
|
647
|
+
n.class("bc-auth-form__form"),
|
|
648
|
+
T.submit(k),
|
|
649
|
+
q(
|
|
650
|
+
n.class("bc-auth-form__fields"),
|
|
651
|
+
// Name field (optional)
|
|
652
|
+
L(
|
|
653
|
+
c !== !1,
|
|
654
|
+
() => $(uo, {
|
|
655
|
+
controller: v.transform(
|
|
656
|
+
(P) => P ?? "",
|
|
657
|
+
(P) => P === "" ? void 0 : P
|
|
658
|
+
),
|
|
659
|
+
label: g(e == null ? void 0 : e.nameLabel, y.$.nameLabel)
|
|
660
|
+
})
|
|
661
|
+
),
|
|
662
|
+
// Email field
|
|
663
|
+
$(N, {
|
|
664
|
+
controller: z,
|
|
665
|
+
label: g(e == null ? void 0 : e.emailLabel, y.$.emailLabel)
|
|
666
|
+
}),
|
|
667
|
+
// Password field
|
|
668
|
+
$(G, {
|
|
669
|
+
controller: C,
|
|
670
|
+
label: g(e == null ? void 0 : e.passwordLabel, y.$.passwordLabel)
|
|
671
|
+
}),
|
|
672
|
+
// Password strength indicator
|
|
673
|
+
L(
|
|
674
|
+
r ?? !1,
|
|
675
|
+
() => _o({
|
|
676
|
+
password: C.value,
|
|
677
|
+
rules: u,
|
|
678
|
+
showLabel: !0
|
|
679
|
+
})
|
|
680
|
+
),
|
|
681
|
+
// Confirm password field
|
|
682
|
+
L(
|
|
683
|
+
i ?? !1,
|
|
684
|
+
() => $(G, {
|
|
685
|
+
controller: D,
|
|
686
|
+
label: g(
|
|
687
|
+
e == null ? void 0 : e.confirmPasswordLabel,
|
|
688
|
+
y.$.confirmPasswordLabel
|
|
689
|
+
)
|
|
690
|
+
})
|
|
691
|
+
),
|
|
692
|
+
// Terms acceptance checkbox
|
|
693
|
+
L(
|
|
694
|
+
t ?? !1,
|
|
695
|
+
() => m.div(
|
|
696
|
+
n.class("bc-auth-form__terms"),
|
|
697
|
+
m.label(
|
|
698
|
+
n.class("bc-auth-form__checkbox-label"),
|
|
699
|
+
eo({
|
|
700
|
+
value: b.value.map((P) => P ?? !1),
|
|
701
|
+
onChange: (P) => b.change(P)
|
|
702
|
+
}),
|
|
703
|
+
m.span(
|
|
704
|
+
s || g(e == null ? void 0 : e.acceptTermsLabel, y.$.acceptTermsLabel)
|
|
705
|
+
)
|
|
706
|
+
),
|
|
707
|
+
L(
|
|
708
|
+
b.errorVisible,
|
|
709
|
+
() => m.div(
|
|
710
|
+
n.class("bc-auth-form__field-error"),
|
|
711
|
+
b.error.map((P) => P || "")
|
|
712
|
+
)
|
|
713
|
+
)
|
|
714
|
+
)
|
|
715
|
+
)
|
|
716
|
+
),
|
|
717
|
+
// Submit button
|
|
718
|
+
V(
|
|
719
|
+
{
|
|
720
|
+
type: "submit",
|
|
721
|
+
variant: "filled",
|
|
722
|
+
color: "primary",
|
|
723
|
+
loading: l,
|
|
724
|
+
disabled: h.disabledOrHasErrors
|
|
725
|
+
},
|
|
726
|
+
n.class("bc-auth-form__submit"),
|
|
727
|
+
g(e == null ? void 0 : e.signUpButton, y.$.signUpButton)
|
|
728
|
+
)
|
|
729
|
+
)
|
|
730
|
+
)
|
|
731
|
+
);
|
|
732
|
+
}
|
|
733
|
+
function ko({
|
|
734
|
+
onResetPassword: o,
|
|
735
|
+
labels: e = {}
|
|
736
|
+
}) {
|
|
737
|
+
const r = no(), a = U(!1), c = W({
|
|
738
|
+
schema: to,
|
|
739
|
+
submit: H({
|
|
740
|
+
task: o,
|
|
741
|
+
message: "Reset password failed",
|
|
742
|
+
onStart: () => {
|
|
743
|
+
a.set(!0), c.controller.disable();
|
|
744
|
+
},
|
|
745
|
+
onEnd: () => {
|
|
746
|
+
a.set(!1), c.controller.enable();
|
|
747
|
+
}
|
|
748
|
+
}),
|
|
749
|
+
initialValue: {
|
|
750
|
+
email: ""
|
|
751
|
+
}
|
|
752
|
+
}), { controller: i, onSubmit: t } = c;
|
|
753
|
+
a.on(i.setDisabled);
|
|
754
|
+
const s = i.field("email");
|
|
755
|
+
return r.on((l) => {
|
|
756
|
+
l != null && s.change(l);
|
|
757
|
+
}), S(
|
|
758
|
+
x,
|
|
759
|
+
(l) => (
|
|
760
|
+
// Reset password form
|
|
761
|
+
m.form(
|
|
762
|
+
O(i.dispose, r.dispose, a.dispose),
|
|
763
|
+
n.class("bc-auth-form__form"),
|
|
764
|
+
// Description
|
|
765
|
+
m.p(
|
|
766
|
+
n.class("bc-auth-form__description"),
|
|
767
|
+
g(e == null ? void 0 : e.resetPasswordDescription, l.$.resetPasswordDescription)
|
|
768
|
+
),
|
|
769
|
+
T.submit(t),
|
|
770
|
+
q(
|
|
771
|
+
n.class("bc-auth-form__fields"),
|
|
772
|
+
// Email field
|
|
773
|
+
$(N, {
|
|
774
|
+
controller: s,
|
|
775
|
+
label: g(e == null ? void 0 : e.emailLabel, l.$.emailLabel)
|
|
776
|
+
})
|
|
777
|
+
),
|
|
778
|
+
// Submit button
|
|
779
|
+
V(
|
|
780
|
+
{
|
|
781
|
+
loading: a,
|
|
782
|
+
type: "submit",
|
|
783
|
+
variant: "filled",
|
|
784
|
+
color: "primary",
|
|
785
|
+
disabled: i.disabledOrHasErrors
|
|
786
|
+
},
|
|
787
|
+
n.class("bc-auth-form__submit"),
|
|
788
|
+
g(e == null ? void 0 : e.resetPasswordButton, l.$.resetPasswordButton)
|
|
789
|
+
)
|
|
790
|
+
)
|
|
791
|
+
)
|
|
792
|
+
);
|
|
793
|
+
}
|
|
794
|
+
function p({
|
|
795
|
+
provider: o,
|
|
796
|
+
onClick: e,
|
|
797
|
+
size: r = "md",
|
|
798
|
+
name: a,
|
|
799
|
+
icon: c,
|
|
800
|
+
color: i,
|
|
801
|
+
flow: t,
|
|
802
|
+
labels: s
|
|
803
|
+
}) {
|
|
804
|
+
return V(
|
|
805
|
+
{
|
|
806
|
+
type: "button",
|
|
807
|
+
variant: "filled",
|
|
808
|
+
size: r,
|
|
809
|
+
color: i,
|
|
810
|
+
onClick: async () => {
|
|
811
|
+
if (e)
|
|
812
|
+
try {
|
|
813
|
+
t === "popup" ? await e() : await e();
|
|
814
|
+
} catch (u) {
|
|
815
|
+
console.error(
|
|
816
|
+
`Social login error for ${o} (${t || "redirect"} flow):`,
|
|
817
|
+
u
|
|
818
|
+
);
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
roundedness: "full"
|
|
822
|
+
},
|
|
823
|
+
n.class("bc-social-login-button"),
|
|
824
|
+
n.class(
|
|
825
|
+
f(o)((u) => `bc-social-login-button--${u}`)
|
|
826
|
+
),
|
|
827
|
+
mo(
|
|
828
|
+
n.class("bu-items-center bu-w-full"),
|
|
829
|
+
lo({ icon: c, size: r }, n.class("bu-bg-white bu-rounded-full bu-p-2")),
|
|
830
|
+
// Button text or custom children
|
|
831
|
+
S(
|
|
832
|
+
x,
|
|
833
|
+
(u) => m.span(
|
|
834
|
+
n.class(
|
|
835
|
+
"bu-flex-grow bu-flex bu-items-center bu-align-center bu-text-center bu-px-4"
|
|
836
|
+
),
|
|
837
|
+
so(
|
|
838
|
+
g(s == null ? void 0 : s.continueWithProvider, u.$.continueWithProvider)
|
|
839
|
+
)(a)
|
|
840
|
+
)
|
|
841
|
+
)
|
|
842
|
+
)
|
|
843
|
+
);
|
|
844
|
+
}
|
|
845
|
+
function vo({
|
|
846
|
+
providers: o,
|
|
847
|
+
onProviderClick: e,
|
|
848
|
+
size: r = "md",
|
|
849
|
+
className: a
|
|
850
|
+
}) {
|
|
851
|
+
return q(
|
|
852
|
+
n.class("bc-social-login-buttons bu-gap-2 bu-px-8"),
|
|
853
|
+
n.class(a),
|
|
854
|
+
ao(
|
|
855
|
+
o,
|
|
856
|
+
(c) => p({
|
|
857
|
+
provider: c.$.provider,
|
|
858
|
+
flow: c.$.flow,
|
|
859
|
+
color: c.map(
|
|
860
|
+
({ provider: i }) => d[i].color
|
|
861
|
+
),
|
|
862
|
+
name: c.map(({ provider: i }) => d[i].name),
|
|
863
|
+
icon: c.map(({ provider: i }) => d[i].icon),
|
|
864
|
+
onClick: async () => {
|
|
865
|
+
e && await e(c.$.provider.value);
|
|
866
|
+
},
|
|
867
|
+
size: r
|
|
868
|
+
})
|
|
869
|
+
)
|
|
870
|
+
);
|
|
871
|
+
}
|
|
872
|
+
const d = {
|
|
873
|
+
// Core
|
|
874
|
+
google: {
|
|
875
|
+
name: "Google",
|
|
876
|
+
icon: "logos:google-icon",
|
|
877
|
+
color: "red"
|
|
878
|
+
},
|
|
879
|
+
github: {
|
|
880
|
+
name: "GitHub",
|
|
881
|
+
icon: "logos:github-icon",
|
|
882
|
+
color: "black"
|
|
883
|
+
},
|
|
884
|
+
apple: {
|
|
885
|
+
name: "Apple",
|
|
886
|
+
icon: "logos:apple",
|
|
887
|
+
color: "stone"
|
|
888
|
+
// using stone to differentiate from GitHub/X
|
|
889
|
+
},
|
|
890
|
+
facebook: {
|
|
891
|
+
name: "Facebook",
|
|
892
|
+
icon: "logos:facebook",
|
|
893
|
+
color: "blue"
|
|
894
|
+
},
|
|
895
|
+
twitter: {
|
|
896
|
+
name: "Twitter",
|
|
897
|
+
icon: "logos:twitter",
|
|
898
|
+
color: "sky"
|
|
899
|
+
},
|
|
900
|
+
x: {
|
|
901
|
+
name: "X",
|
|
902
|
+
icon: "logos:x",
|
|
903
|
+
color: "zinc"
|
|
904
|
+
// avoids duplicate black
|
|
905
|
+
},
|
|
906
|
+
microsoft: {
|
|
907
|
+
name: "Microsoft",
|
|
908
|
+
icon: "logos:microsoft-icon",
|
|
909
|
+
color: "amber"
|
|
910
|
+
},
|
|
911
|
+
discord: {
|
|
912
|
+
name: "Discord",
|
|
913
|
+
icon: "logos:discord-icon",
|
|
914
|
+
color: "indigo"
|
|
915
|
+
},
|
|
916
|
+
linkedin: {
|
|
917
|
+
name: "LinkedIn",
|
|
918
|
+
icon: "logos:linkedin-icon",
|
|
919
|
+
color: "cyan"
|
|
920
|
+
},
|
|
921
|
+
// Social / Media
|
|
922
|
+
instagram: {
|
|
923
|
+
name: "Instagram",
|
|
924
|
+
icon: "logos:instagram-icon",
|
|
925
|
+
color: "fuchsia"
|
|
926
|
+
},
|
|
927
|
+
tiktok: {
|
|
928
|
+
name: "TikTok",
|
|
929
|
+
icon: "logos:tiktok-icon",
|
|
930
|
+
color: "teal"
|
|
931
|
+
},
|
|
932
|
+
snapchat: {
|
|
933
|
+
name: "Snapchat",
|
|
934
|
+
icon: "streamline-logos:snapchat-logo-solid",
|
|
935
|
+
color: "yellow"
|
|
936
|
+
},
|
|
937
|
+
reddit: {
|
|
938
|
+
name: "Reddit",
|
|
939
|
+
icon: "logos:reddit-icon",
|
|
940
|
+
color: "orange"
|
|
941
|
+
},
|
|
942
|
+
pinterest: {
|
|
943
|
+
name: "Pinterest",
|
|
944
|
+
icon: "logos:pinterest",
|
|
945
|
+
color: "rose"
|
|
946
|
+
},
|
|
947
|
+
// Gaming / Entertainment
|
|
948
|
+
twitch: {
|
|
949
|
+
name: "Twitch",
|
|
950
|
+
icon: "logos:twitch",
|
|
951
|
+
color: "purple"
|
|
952
|
+
},
|
|
953
|
+
steam: {
|
|
954
|
+
name: "Steam",
|
|
955
|
+
icon: "logos:steam",
|
|
956
|
+
color: "slate"
|
|
957
|
+
},
|
|
958
|
+
epic: {
|
|
959
|
+
name: "Epic Games",
|
|
960
|
+
icon: "streamline-logos:epic-games-logo-solid",
|
|
961
|
+
color: "neutral"
|
|
962
|
+
},
|
|
963
|
+
playstation: {
|
|
964
|
+
name: "PlayStation",
|
|
965
|
+
icon: "streamline-logos:playstation-logo-solid",
|
|
966
|
+
color: "violet"
|
|
967
|
+
},
|
|
968
|
+
xbox: {
|
|
969
|
+
name: "Xbox",
|
|
970
|
+
icon: "streamline-logos:xbox-live-logo-solid",
|
|
971
|
+
color: "green"
|
|
972
|
+
},
|
|
973
|
+
// Messaging
|
|
974
|
+
whatsapp: {
|
|
975
|
+
name: "WhatsApp",
|
|
976
|
+
icon: "logos:whatsapp-icon",
|
|
977
|
+
color: "emerald"
|
|
978
|
+
},
|
|
979
|
+
wechat: {
|
|
980
|
+
name: "WeChat",
|
|
981
|
+
icon: "streamline-logos:wechat-logo",
|
|
982
|
+
color: "lime"
|
|
983
|
+
},
|
|
984
|
+
// Other Identity
|
|
985
|
+
amazon: {
|
|
986
|
+
name: "Amazon",
|
|
987
|
+
icon: "streamline-logos:amazon-logo-solid",
|
|
988
|
+
color: "red"
|
|
989
|
+
// distinct warm tone (not used elsewhere here)
|
|
990
|
+
},
|
|
991
|
+
yahoo: {
|
|
992
|
+
name: "Yahoo",
|
|
993
|
+
icon: "logos:yahoo",
|
|
994
|
+
color: "rose"
|
|
995
|
+
// unique variation for Yahoo
|
|
996
|
+
},
|
|
997
|
+
paypal: {
|
|
998
|
+
name: "PayPal",
|
|
999
|
+
icon: "logos:paypal",
|
|
1000
|
+
color: "blue"
|
|
1001
|
+
// distinct deep blue tone (not Facebook’s exact blue)
|
|
1002
|
+
}
|
|
1003
|
+
}, No = (o) => p({
|
|
1004
|
+
...o,
|
|
1005
|
+
...d.google,
|
|
1006
|
+
provider: "google"
|
|
1007
|
+
}), Eo = (o) => p({
|
|
1008
|
+
...o,
|
|
1009
|
+
...d.github,
|
|
1010
|
+
provider: "github"
|
|
1011
|
+
}), Mo = (o) => p({
|
|
1012
|
+
...o,
|
|
1013
|
+
...d.apple,
|
|
1014
|
+
provider: "apple"
|
|
1015
|
+
}), Ho = (o) => p({
|
|
1016
|
+
...o,
|
|
1017
|
+
...d.facebook,
|
|
1018
|
+
provider: "facebook"
|
|
1019
|
+
}), jo = (o) => p({
|
|
1020
|
+
...o,
|
|
1021
|
+
...d.x,
|
|
1022
|
+
provider: "x"
|
|
1023
|
+
}), Xo = (o) => p({
|
|
1024
|
+
...o,
|
|
1025
|
+
...d.twitter,
|
|
1026
|
+
provider: "twitter"
|
|
1027
|
+
}), Yo = (o) => p({
|
|
1028
|
+
...o,
|
|
1029
|
+
...d.microsoft,
|
|
1030
|
+
provider: "microsoft"
|
|
1031
|
+
}), Zo = (o) => p({
|
|
1032
|
+
...o,
|
|
1033
|
+
...d.discord,
|
|
1034
|
+
provider: "discord"
|
|
1035
|
+
}), Jo = (o) => p({
|
|
1036
|
+
...o,
|
|
1037
|
+
...d.linkedin,
|
|
1038
|
+
provider: "linkedin"
|
|
1039
|
+
}), Ko = (o) => p({
|
|
1040
|
+
...o,
|
|
1041
|
+
...d.instagram,
|
|
1042
|
+
provider: "instagram"
|
|
1043
|
+
}), Qo = (o) => p({
|
|
1044
|
+
...o,
|
|
1045
|
+
...d.tiktok,
|
|
1046
|
+
provider: "tiktok"
|
|
1047
|
+
}), oe = (o) => p({
|
|
1048
|
+
...o,
|
|
1049
|
+
...d.snapchat,
|
|
1050
|
+
provider: "snapchat"
|
|
1051
|
+
}), ee = (o) => p({
|
|
1052
|
+
...o,
|
|
1053
|
+
...d.reddit,
|
|
1054
|
+
provider: "reddit"
|
|
1055
|
+
}), te = (o) => p({
|
|
1056
|
+
...o,
|
|
1057
|
+
...d.pinterest,
|
|
1058
|
+
provider: "pinterest"
|
|
1059
|
+
}), ne = (o) => p({
|
|
1060
|
+
...o,
|
|
1061
|
+
...d.twitch,
|
|
1062
|
+
provider: "twitch"
|
|
1063
|
+
}), re = (o) => p({
|
|
1064
|
+
...o,
|
|
1065
|
+
...d.steam,
|
|
1066
|
+
provider: "steam"
|
|
1067
|
+
}), se = (o) => p({
|
|
1068
|
+
...o,
|
|
1069
|
+
...d.epic,
|
|
1070
|
+
provider: "epic"
|
|
1071
|
+
}), ae = (o) => p({
|
|
1072
|
+
...o,
|
|
1073
|
+
...d.playstation,
|
|
1074
|
+
provider: "playstation"
|
|
1075
|
+
}), ie = (o) => p({
|
|
1076
|
+
...o,
|
|
1077
|
+
...d.xbox,
|
|
1078
|
+
provider: "xbox"
|
|
1079
|
+
}), ce = (o) => p({
|
|
1080
|
+
...o,
|
|
1081
|
+
...d.whatsapp,
|
|
1082
|
+
provider: "whatsapp"
|
|
1083
|
+
}), ue = (o) => p({
|
|
1084
|
+
...o,
|
|
1085
|
+
...d.wechat,
|
|
1086
|
+
provider: "wechat"
|
|
1087
|
+
}), me = (o) => p({
|
|
1088
|
+
...o,
|
|
1089
|
+
...d.amazon,
|
|
1090
|
+
provider: "amazon"
|
|
1091
|
+
}), le = (o) => p({
|
|
1092
|
+
...o,
|
|
1093
|
+
...d.yahoo,
|
|
1094
|
+
provider: "yahoo"
|
|
1095
|
+
}), de = (o) => p({
|
|
1096
|
+
...o,
|
|
1097
|
+
...d.paypal,
|
|
1098
|
+
provider: "paypal"
|
|
1099
|
+
});
|
|
1100
|
+
function Q({ providers: o }) {
|
|
1101
|
+
return q(
|
|
1102
|
+
vo({
|
|
1103
|
+
providers: o
|
|
1104
|
+
})
|
|
1105
|
+
);
|
|
1106
|
+
}
|
|
1107
|
+
function bo({
|
|
1108
|
+
mode: o,
|
|
1109
|
+
socialProviders: e,
|
|
1110
|
+
passwordRules: r,
|
|
1111
|
+
showRememberMe: a,
|
|
1112
|
+
showSocialDivider: c,
|
|
1113
|
+
showPasswordStrength: i,
|
|
1114
|
+
labels: t,
|
|
1115
|
+
onSignIn: s,
|
|
1116
|
+
onSignUp: l,
|
|
1117
|
+
onResetPassword: u,
|
|
1118
|
+
onModeChange: w,
|
|
1119
|
+
// onSocialLogin,
|
|
1120
|
+
showContainer: _
|
|
1121
|
+
}, ...h) {
|
|
1122
|
+
const k = o != null ? J.deriveProp(o) : U("signin");
|
|
1123
|
+
return k.on((v) => w == null ? void 0 : w(v)), S(x, (v) => {
|
|
1124
|
+
function z() {
|
|
1125
|
+
const b = g(t == null ? void 0 : t.hasAccountLink, v.$.hasAccountLink);
|
|
1126
|
+
return m.button(
|
|
1127
|
+
n.type("button"),
|
|
1128
|
+
n.class("bc-auth-form__link"),
|
|
1129
|
+
T.click(() => k.set("signin")),
|
|
1130
|
+
b
|
|
1131
|
+
);
|
|
1132
|
+
}
|
|
1133
|
+
function C() {
|
|
1134
|
+
return m.button(
|
|
1135
|
+
n.type("button"),
|
|
1136
|
+
n.class("bc-auth-form__link"),
|
|
1137
|
+
T.click(() => k.set("signup")),
|
|
1138
|
+
g(t == null ? void 0 : t.noAccountLink, v.$.noAccountLink)
|
|
1139
|
+
);
|
|
1140
|
+
}
|
|
1141
|
+
function D() {
|
|
1142
|
+
return m.button(
|
|
1143
|
+
n.type("button"),
|
|
1144
|
+
n.class("bc-auth-form__link"),
|
|
1145
|
+
T.click(() => k.set("reset-password")),
|
|
1146
|
+
g(t == null ? void 0 : t.forgotPasswordLink, v.$.forgotPasswordLink)
|
|
1147
|
+
);
|
|
1148
|
+
}
|
|
1149
|
+
return m.div(
|
|
1150
|
+
ho({
|
|
1151
|
+
"bc-auth-container": !0,
|
|
1152
|
+
"bc-auth-container--styled": J.map(_ ?? !0, (b) => b)
|
|
1153
|
+
}),
|
|
1154
|
+
n.class(k.map((b) => `bc-auth-container--${b}`)),
|
|
1155
|
+
n.class("bc-auth-form"),
|
|
1156
|
+
O(k.dispose),
|
|
1157
|
+
io(k, {
|
|
1158
|
+
signin: () => A(
|
|
1159
|
+
m.h2(
|
|
1160
|
+
n.class("bc-auth-form__title"),
|
|
1161
|
+
g(t == null ? void 0 : t.signInTitle, v.$.signInTitle)
|
|
1162
|
+
),
|
|
1163
|
+
e != null ? A(
|
|
1164
|
+
Q({ providers: e }),
|
|
1165
|
+
L(c ?? !1, oo)
|
|
1166
|
+
) : null,
|
|
1167
|
+
wo({
|
|
1168
|
+
onSignIn: s,
|
|
1169
|
+
showRememberMe: a,
|
|
1170
|
+
passwordRules: r,
|
|
1171
|
+
labels: {
|
|
1172
|
+
emailLabel: t == null ? void 0 : t.emailLabel,
|
|
1173
|
+
passwordLabel: t == null ? void 0 : t.passwordLabel,
|
|
1174
|
+
rememberMeLabel: t == null ? void 0 : t.rememberMeLabel,
|
|
1175
|
+
signInButton: t == null ? void 0 : t.signInButton,
|
|
1176
|
+
forgotPasswordLink: t == null ? void 0 : t.forgotPasswordLink,
|
|
1177
|
+
noAccountLink: t == null ? void 0 : t.noAccountLink
|
|
1178
|
+
}
|
|
1179
|
+
}),
|
|
1180
|
+
q(
|
|
1181
|
+
n.class("bc-auth-form__footer"),
|
|
1182
|
+
C(),
|
|
1183
|
+
D()
|
|
1184
|
+
)
|
|
1185
|
+
),
|
|
1186
|
+
signup: () => A(
|
|
1187
|
+
m.h2(
|
|
1188
|
+
n.class("bc-auth-form__title"),
|
|
1189
|
+
g(t == null ? void 0 : t.signUpTitle, v.$.signUpTitle)
|
|
1190
|
+
),
|
|
1191
|
+
e != null ? A(
|
|
1192
|
+
Q({ providers: e }),
|
|
1193
|
+
L(c ?? !1, oo)
|
|
1194
|
+
) : null,
|
|
1195
|
+
Lo({
|
|
1196
|
+
labels: {
|
|
1197
|
+
nameLabel: t == null ? void 0 : t.nameLabel,
|
|
1198
|
+
emailLabel: t == null ? void 0 : t.emailLabel,
|
|
1199
|
+
passwordLabel: t == null ? void 0 : t.passwordLabel,
|
|
1200
|
+
confirmPasswordLabel: t == null ? void 0 : t.confirmPasswordLabel,
|
|
1201
|
+
acceptTermsLabel: t == null ? void 0 : t.acceptTermsLabel,
|
|
1202
|
+
signUpButton: t == null ? void 0 : t.signUpButton,
|
|
1203
|
+
hasAccountLink: t == null ? void 0 : t.hasAccountLink
|
|
1204
|
+
},
|
|
1205
|
+
onSignUp: l,
|
|
1206
|
+
passwordRules: r,
|
|
1207
|
+
showPasswordStrength: i
|
|
1208
|
+
}),
|
|
1209
|
+
q(n.class("bc-auth-form__footer"), z())
|
|
1210
|
+
),
|
|
1211
|
+
"reset-password": () => A(
|
|
1212
|
+
m.h2(
|
|
1213
|
+
n.class("bc-auth-form__title"),
|
|
1214
|
+
g(t == null ? void 0 : t.resetPasswordTitle, v.$.resetPasswordTitle)
|
|
1215
|
+
),
|
|
1216
|
+
ko({
|
|
1217
|
+
labels: {
|
|
1218
|
+
backToSignInLink: t == null ? void 0 : t.backToSignInLink,
|
|
1219
|
+
emailLabel: t == null ? void 0 : t.emailLabel,
|
|
1220
|
+
resetPasswordButton: t == null ? void 0 : t.resetPasswordButton,
|
|
1221
|
+
resetPasswordDescription: t == null ? void 0 : t.resetPasswordDescription
|
|
1222
|
+
},
|
|
1223
|
+
onResetPassword: u
|
|
1224
|
+
}),
|
|
1225
|
+
q(n.class("bc-auth-form__footer"), z())
|
|
1226
|
+
)
|
|
1227
|
+
}),
|
|
1228
|
+
...h
|
|
1229
|
+
);
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
function pe(o) {
|
|
1233
|
+
return po(
|
|
1234
|
+
{
|
|
1235
|
+
size: "sm",
|
|
1236
|
+
dismissable: !0,
|
|
1237
|
+
showCloseButton: !0
|
|
1238
|
+
},
|
|
1239
|
+
(e, r) => o(
|
|
1240
|
+
(a) => e({
|
|
1241
|
+
body: bo({ showContainer: !1, ...a }),
|
|
1242
|
+
header: S(
|
|
1243
|
+
x,
|
|
1244
|
+
(c) => g(a.modalTitle, c.$.authenticationTitle)
|
|
1245
|
+
)
|
|
1246
|
+
})
|
|
1247
|
+
)
|
|
1248
|
+
);
|
|
1249
|
+
}
|
|
1250
|
+
function oo({
|
|
1251
|
+
labels: o,
|
|
1252
|
+
className: e
|
|
1253
|
+
} = {}) {
|
|
1254
|
+
return m.div(
|
|
1255
|
+
n.class("bc-auth-divider"),
|
|
1256
|
+
n.class(e),
|
|
1257
|
+
m.div(n.class("bc-auth-divider__line")),
|
|
1258
|
+
S(
|
|
1259
|
+
x,
|
|
1260
|
+
(r) => m.span(
|
|
1261
|
+
n.class("bc-auth-divider__text"),
|
|
1262
|
+
g(o == null ? void 0 : o.text, r.$.orDivider)
|
|
1263
|
+
)
|
|
1264
|
+
),
|
|
1265
|
+
m.div(n.class("bc-auth-divider__line"))
|
|
1266
|
+
);
|
|
1267
|
+
}
|
|
1268
|
+
export {
|
|
1269
|
+
me as AmazonLoginButton,
|
|
1270
|
+
Mo as AppleLoginButton,
|
|
1271
|
+
bo as AuthContainer,
|
|
1272
|
+
oo as AuthDivider,
|
|
1273
|
+
pe as AuthModal,
|
|
1274
|
+
Zo as DiscordLoginButton,
|
|
1275
|
+
se as EpicLoginButton,
|
|
1276
|
+
Ho as FacebookLoginButton,
|
|
1277
|
+
Eo as GitHubLoginButton,
|
|
1278
|
+
No as GoogleLoginButton,
|
|
1279
|
+
Ko as InstagramLoginButton,
|
|
1280
|
+
Jo as LinkedInLoginButton,
|
|
1281
|
+
Yo as MicrosoftLoginButton,
|
|
1282
|
+
Ro as PasswordStrengthBar,
|
|
1283
|
+
_o as PasswordStrengthIndicator,
|
|
1284
|
+
Wo as PasswordStrengthText,
|
|
1285
|
+
de as PayPalLoginButton,
|
|
1286
|
+
te as PinterestLoginButton,
|
|
1287
|
+
ae as PlayStationLoginButton,
|
|
1288
|
+
ee as RedditLoginButton,
|
|
1289
|
+
ko as ResetPasswordForm,
|
|
1290
|
+
wo as SignInForm,
|
|
1291
|
+
Lo as SignUpForm,
|
|
1292
|
+
oe as SnapchatLoginButton,
|
|
1293
|
+
p as SocialLoginButton,
|
|
1294
|
+
vo as SocialLoginButtons,
|
|
1295
|
+
Q as SocialProviders,
|
|
1296
|
+
re as SteamLoginButton,
|
|
1297
|
+
Qo as TiktokLoginButton,
|
|
1298
|
+
ne as TwitchLoginButton,
|
|
1299
|
+
Xo as TwitterLoginButton,
|
|
1300
|
+
ue as WeChatLoginButton,
|
|
1301
|
+
ce as WhatsAppLoginButton,
|
|
1302
|
+
jo as XLoginButtin,
|
|
1303
|
+
ie as XboxLoginButton,
|
|
1304
|
+
le as YahooLoginButton,
|
|
1305
|
+
Fo as authSchemas,
|
|
1306
|
+
Z as calculatePasswordStrength,
|
|
1307
|
+
j as createPasswordSchema,
|
|
1308
|
+
X as createSignInSchema,
|
|
1309
|
+
Y as createSignUpSchema,
|
|
1310
|
+
Ao as createSocialLoginUrl,
|
|
1311
|
+
B as defaultPasswordRules,
|
|
1312
|
+
Oo as defaultSignInSchema,
|
|
1313
|
+
Vo as defaultSignUpSchema,
|
|
1314
|
+
F as emailSchema,
|
|
1315
|
+
Co as formatAuthError,
|
|
1316
|
+
go as formatProviderName,
|
|
1317
|
+
Io as formatSocialLoginText,
|
|
1318
|
+
fo as generateRandomString,
|
|
1319
|
+
$o as getProviderColor,
|
|
1320
|
+
Bo as getProviderIcon,
|
|
1321
|
+
Uo as isBrowser,
|
|
1322
|
+
To as isValidEmail,
|
|
1323
|
+
zo as openSocialLoginPopup,
|
|
1324
|
+
M as providerInfo,
|
|
1325
|
+
H as requestToControllerValidation,
|
|
1326
|
+
to as resetPasswordSchema,
|
|
1327
|
+
d as socialProviderInfo,
|
|
1328
|
+
no as useAuthEmailProp,
|
|
1329
|
+
Do as validateEmail,
|
|
1330
|
+
Go as validatePassword
|
|
1331
|
+
};
|