@wssto2/vue-core 0.1.0 → 0.3.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 +53 -9
- package/dist/AccessGate.vue_vue_type_script_setup_true_lang-DKX3PH2n.js +22 -0
- package/dist/AccountMenuItem.vue_vue_type_script_setup_true_lang-DIGqTLwd.js +76 -0
- package/dist/ActionRow.vue_vue_type_script_setup_true_lang-B7Lpfkf6.js +45 -0
- package/dist/Activity-DviO0VQ8.js +156 -0
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CKghARkW.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js} +48 -47
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-BZb4qKXo.js → AlertDialog.vue_vue_type_script_setup_true_lang-CJsMUIUg.js} +2 -2
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-B82bl36A.js → AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js} +4 -4
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js +51 -0
- package/dist/{Banner.vue_vue_type_script_setup_true_lang-n_wGPIIu.js → Banner.vue_vue_type_script_setup_true_lang-Cib_YYpr.js} +1 -1
- package/dist/{BottomDock.vue_vue_type_script_setup_true_lang-DhlMnPC2.js → BottomDock.vue_vue_type_script_setup_true_lang-CjN7xYEr.js} +1 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js +182 -0
- package/dist/Changes-DlT5mN9G.js +129 -0
- package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-CXILftEc.js +1481 -0
- package/dist/CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js +299 -0
- package/dist/DataTable.vue_vue_type_script_setup_true_lang-DSYgS9lC.js +52 -0
- package/dist/DateField.vue_vue_type_script_setup_true_lang-DMVjNsaM.js +1099 -0
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-Bx5O1RZJ.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-Cb3xJI1x.js} +1 -1
- package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-BeGpHMUP.js → EmptyState.vue_vue_type_script_setup_true_lang-C2ZYIT9F.js} +1 -1
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-DVgNBQ8p.js +276 -0
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js +136 -0
- package/dist/FormView.vue_vue_type_script_setup_true_lang-Bz2m3AtF.js +38 -0
- package/dist/General-BD-Hcz0a.js +145 -0
- package/dist/{Icon.vue_vue_type_script_lang-DtC4_mkz.js → Icon.vue_vue_type_script_lang-VvcV2Bzo.js} +46 -33
- package/dist/{IconTile.vue_vue_type_script_setup_true_lang-Csfv6Sel.js → IconTile.vue_vue_type_script_setup_true_lang-D7QgnUyN.js} +1 -1
- package/dist/KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js +35 -0
- package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-DH6EB8br.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-C2udmeEA.js} +2 -2
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-D44EHXQZ.js → Menu.vue_vue_type_script_setup_true_lang-BNAjx9tj.js} +61 -57
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DYQgaUtj.js → Modal.vue_vue_type_script_setup_true_lang-D7SwVPpL.js} +139 -129
- package/dist/NewRolePage-Dla4YnMs.js +42 -0
- package/dist/NoAccess.vue_vue_type_script_setup_true_lang-8m9cNptR.js +31 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-CYRg7Kfg.js +113 -0
- package/dist/OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js +95 -0
- package/dist/PageBar.vue_vue_type_script_setup_true_lang-Cfr5xsJx.js +47 -0
- package/dist/{Panel.vue_vue_type_script_setup_true_lang-BQmv3cLb.js → Panel.vue_vue_type_script_setup_true_lang-BCRxRK4D.js} +1 -1
- package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-DDVQXJRB.js → PhotoViewer.vue_vue_type_script_setup_true_lang-B3Q4dhqJ.js} +2 -2
- package/dist/Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js +125 -0
- package/dist/ProfilePage-OJMQ8cr8.js +691 -0
- package/dist/{ProgressTrack.vue_vue_type_script_setup_true_lang-1DDaNs2W.js → ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js} +2 -2
- package/dist/RecordHeader.vue_vue_type_script_setup_true_lang-DKsaKlAq.js +64 -0
- package/dist/ResourcePage.vue_vue_type_script_setup_true_lang-CJcKa9SW.js +173 -0
- package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-DuEPOmjI.js +299 -0
- package/dist/RolePage-bZzv_E4l.js +315 -0
- package/dist/RolesPage-BniZv0nB.js +115 -0
- package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +23 -0
- package/dist/SectionList.vue_vue_type_script_setup_true_lang-BKP_bge8.js +148 -0
- package/dist/SectionNavigator.vue_vue_type_script_setup_true_lang-BgGEGxSI.js +314 -0
- package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BZ9UdgA1.js +58 -0
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-BiGaEKBQ.js +422 -0
- package/dist/SessionList.vue_vue_type_script_setup_true_lang-DUQpr7gb.js +111 -0
- package/dist/Sessions-Co5-xdeb.js +96 -0
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-bHYzx7-J.js +142 -0
- package/dist/SignIn-BWwFbxki.js +140 -0
- package/dist/SignInPage-FnLtoi2q.js +60 -0
- package/dist/SignInTable.vue_vue_type_script_setup_true_lang-Dnx3T_42.js +79 -0
- package/dist/SignIns-3UcI64_h.js +66 -0
- package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-4I8m27ol.js +93 -0
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-BeGaydRr.js +155 -0
- package/dist/TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js +269 -0
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CU3KTKIJ.js +127 -0
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CSY_mMm1.js → Timestamp.vue_vue_type_script_setup_true_lang-1RJGKxbD.js} +1 -1
- package/dist/{Tooltip.vue_vue_type_script_setup_true_lang-BJWPVyfT.js → Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js} +1 -1
- package/dist/UserRecord-Ci8HfwbX.js +267 -0
- package/dist/UsersList-vEJ-cgkT.js +155 -0
- package/dist/ViewTabs.vue_vue_type_script_setup_true_lang-ByqTU2JT.js +28 -0
- package/dist/access/AddRoleDialog.vue.d.ts +19 -0
- package/dist/access/BindingRow.vue.d.ts +19 -0
- package/dist/access/EffectiveAccess.vue.d.ts +12 -0
- package/dist/access/NewRolePage.vue.d.ts +2 -0
- package/dist/access/PermissionTree.vue.d.ts +13 -0
- package/dist/access/PersonAccess.vue.d.ts +21 -0
- package/dist/access/ReplaceRoleDialog.vue.d.ts +17 -0
- package/dist/access/RoleCompareDialog.vue.d.ts +14 -0
- package/dist/access/RoleEditor.vue.d.ts +28 -0
- package/dist/access/RolePage.vue.d.ts +2 -0
- package/dist/access/RolesPage.vue.d.ts +2 -0
- package/dist/access/api.d.ts +26 -0
- package/dist/access/catalogue.d.ts +64 -0
- package/dist/access/context.d.ts +20 -0
- package/dist/access/effective.d.ts +42 -0
- package/dist/access/feature.d.ts +27 -0
- package/dist/access/index.d.ts +13 -0
- package/dist/access/index.js +15 -0
- package/dist/access/labels.d.ts +35 -0
- package/dist/access/refusals.d.ts +6 -0
- package/dist/access/routes.d.ts +45 -0
- package/dist/access/scopes.d.ts +20 -0
- package/dist/app/application.d.ts +5 -0
- package/dist/app/contributions.d.ts +1 -1
- package/dist/app/environment.d.ts +2 -0
- package/dist/app/feature.d.ts +8 -0
- package/dist/app/index.js +260 -294
- package/dist/bottomDock-BZEiOPYZ.js +12 -0
- package/dist/button/Button.vue.d.ts +3 -3
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +5 -3
- package/dist/button/shortcut.d.ts +28 -2
- package/dist/chrome-BS3xJcad.js +93 -0
- package/dist/client/client.d.ts +13 -0
- package/dist/client/index.d.ts +3 -1
- package/dist/client/index.js +19 -138
- package/dist/client/route.d.ts +59 -0
- package/dist/client-Bw0aM5Gu.js +147 -0
- package/dist/closeOverlays-CjVsIrpL.js +8 -0
- package/dist/collection/CollectionPage.vue.d.ts +1 -0
- package/dist/collection/CollectionRows.vue.d.ts +59 -0
- package/dist/collection/CollectionTable.vue.d.ts +1 -1
- package/dist/collection/DataTable.vue.d.ts +47 -0
- package/dist/collection/RowActions.vue.d.ts +19 -0
- package/dist/collection/columns.d.ts +2 -0
- package/dist/collection/http.d.ts +4 -2
- package/dist/collection/index.d.ts +4 -2
- package/dist/collection/index.js +87 -2299
- package/dist/collection/rowLayout.d.ts +10 -0
- package/dist/collection/slots.d.ts +6 -3
- package/dist/content/index.js +37 -66
- package/dist/contributions-CDDg3fKp.js +26 -0
- package/dist/controls/DateButton.vue.d.ts +1 -1
- package/dist/controls/PopupButton.vue.d.ts +1 -1
- package/dist/controls/index.js +11 -10
- package/dist/defineRoutes-BGAdiIrt.js +19 -0
- package/dist/describeError-Ctga6GcS.js +41 -0
- package/dist/dialogStack-DZZg55w0.js +31 -0
- package/dist/environment-Dva-SG8D.js +6 -0
- package/dist/{error-Bb_dr_Ay.js → error-CD7x0Jrz.js} +2 -2
- package/dist/feature-DdUAfyi4.js +25 -0
- package/dist/fieldMessages-C3Rpbktw.js +25 -0
- package/dist/form/CheckboxField.vue.d.ts +1 -1
- package/dist/form/CommandDialog.vue.d.ts +13 -2
- package/dist/form/DateField.vue.d.ts +1 -1
- package/dist/form/DateTimeField.vue.d.ts +1 -1
- package/dist/form/EditorPage.vue.d.ts +1 -1
- package/dist/form/Field.vue.d.ts +1 -1
- package/dist/form/FileField.vue.d.ts +1 -1
- package/dist/form/FormGroup.vue.d.ts +1 -1
- package/dist/form/FormGroupButton.vue.d.ts +1 -1
- package/dist/form/FormRow.vue.d.ts +1 -1
- package/dist/form/I18nField.vue.d.ts +3 -3
- package/dist/form/MoneyField.vue.d.ts +1 -1
- package/dist/form/MonthYearField.vue.d.ts +1 -1
- package/dist/form/MultiSelectField.vue.d.ts +4 -1
- package/dist/form/NumberCell.vue.d.ts +1 -1
- package/dist/form/NumberField.vue.d.ts +8 -2
- package/dist/form/OptionList.vue.d.ts +6 -2
- package/dist/form/OtpInput.vue.d.ts +2 -2
- package/dist/form/PhotoField.vue.d.ts +1 -1
- package/dist/form/SelectField.vue.d.ts +4 -1
- package/dist/form/SwitchField.vue.d.ts +1 -1
- package/dist/form/TextField.vue.d.ts +3 -3
- package/dist/form/TextareaField.vue.d.ts +3 -3
- package/dist/form/TimeField.vue.d.ts +1 -1
- package/dist/form/date/DatePickerSheet.vue.d.ts +1 -1
- package/dist/form/date/MonthYearPanel.vue.d.ts +1 -1
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +1273 -3509
- package/dist/form/suggestions.d.ts +11 -0
- package/dist/form/useOptions.d.ts +60 -0
- package/dist/guards-Cd1V28oG.js +51 -0
- package/dist/http-DGGSKWvU.js +193 -0
- package/dist/i18n/describeError.d.ts +31 -0
- package/dist/i18n/index.d.ts +307 -0
- package/dist/i18n/index.js +54 -52
- package/dist/icon/core.d.ts +13 -0
- package/dist/icon/index.js +1 -1
- package/dist/identity/ImpersonationBanner.vue.d.ts +2 -0
- package/dist/identity/LocaleSync.vue.d.ts +2 -0
- package/dist/identity/SessionExpiry.vue.d.ts +2 -0
- package/dist/identity/SignInAsButton.vue.d.ts +15 -0
- package/dist/identity/SignInPage.vue.d.ts +2 -0
- package/dist/identity/context.d.ts +7 -0
- package/dist/identity/feature.d.ts +16 -0
- package/dist/identity/fieldMessages.d.ts +15 -0
- package/dist/identity/index.d.ts +16 -0
- package/dist/identity/index.js +18 -0
- package/dist/identity/profile/DetailsPanel.vue.d.ts +11 -0
- package/dist/identity/profile/EmailChangeDialog.vue.d.ts +14 -0
- package/dist/identity/profile/EmailPanel.vue.d.ts +11 -0
- package/dist/identity/profile/PanelActions.vue.d.ts +17 -0
- package/dist/identity/profile/PasswordPanel.vue.d.ts +2 -0
- package/dist/identity/profile/ProfileMenuItem.vue.d.ts +2 -0
- package/dist/identity/profile/ProfilePage.vue.d.ts +2 -0
- package/dist/identity/profile/SessionsPanel.vue.d.ts +2 -0
- package/dist/identity/profile/SignInsPanel.vue.d.ts +2 -0
- package/dist/identity/profile/VerifyCode.vue.d.ts +49 -0
- package/dist/identity/profile/routes.d.ts +13 -0
- package/dist/identity/session.d.ts +30 -0
- package/dist/identity/shared/ActionRow.vue.d.ts +20 -0
- package/dist/identity/shared/ChangeFeed.vue.d.ts +11 -0
- package/dist/identity/shared/PageBar.vue.d.ts +12 -0
- package/dist/identity/shared/SectionIntro.vue.d.ts +16 -0
- package/dist/identity/shared/SessionList.vue.d.ts +19 -0
- package/dist/{phone/CountryFlag.vue.d.ts → identity/shared/SignInTable.vue.d.ts} +5 -4
- package/dist/identity/shared/ViewTabs.vue.d.ts +23 -0
- package/dist/identity/shared/signInEvents.d.ts +9 -0
- package/dist/identity/signIn.d.ts +27 -0
- package/dist/identity/useSignInForm.d.ts +20 -0
- package/dist/identity/user.d.ts +6 -0
- package/dist/identity/users/DeactivateDialog.vue.d.ts +18 -0
- package/dist/identity/users/NewUserDialog.vue.d.ts +9 -0
- package/dist/identity/users/SetPasswordDialog.vue.d.ts +16 -0
- package/dist/identity/users/UserRecord.vue.d.ts +2 -0
- package/dist/identity/users/UsersList.vue.d.ts +2 -0
- package/dist/identity/users/access.d.ts +4 -0
- package/dist/identity/users/context.d.ts +9 -0
- package/dist/identity/users/feature.d.ts +34 -0
- package/dist/identity/users/languages.d.ts +4 -0
- package/dist/identity/users/list.d.ts +8 -0
- package/dist/identity/users/person.d.ts +26 -0
- package/dist/identity/users/personSections.d.ts +22 -0
- package/dist/identity/users/routes.d.ts +22 -0
- package/dist/identity/users/sections/Activity.vue.d.ts +2 -0
- package/dist/identity/users/sections/Changes.vue.d.ts +2 -0
- package/dist/identity/users/sections/General.vue.d.ts +2 -0
- package/dist/identity/users/sections/Sessions.vue.d.ts +2 -0
- package/dist/identity/users/sections/SignIn.vue.d.ts +2 -0
- package/dist/identity/users/sections/SignIns.vue.d.ts +2 -0
- package/dist/identity/users/status.d.ts +4 -0
- package/dist/index-B2dbYZR9.js +706 -0
- package/dist/index-BAcl44SC.js +459 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/CountryFlag.vue.d.ts +10 -0
- package/dist/internal/languageName.d.ts +2 -0
- package/dist/keepAlive-WYQGRhuz.js +48 -0
- package/dist/languageName-CItV_SOv.js +11 -0
- package/dist/languages-BShG9LpE.js +10 -0
- package/dist/leaveGuard-Cc8yeLxM.js +72 -0
- package/dist/modal/Modal.vue.d.ts +4 -0
- package/dist/modal/ShortcutHelp.vue.d.ts +2 -0
- package/dist/modal/index.d.ts +2 -0
- package/dist/modal/index.js +64 -6
- package/dist/modal/placement.d.ts +22 -0
- package/dist/modules/access/entities.d.ts +112 -0
- package/dist/modules/access/routes.d.ts +67 -0
- package/dist/modules/access/schemas.d.ts +73 -0
- package/dist/modules/identity/entities.d.ts +150 -0
- package/dist/modules/identity/routes.d.ts +118 -0
- package/dist/modules/identity/schemas.d.ts +145 -0
- package/dist/{navigation-B33ikiCS.js → navigation-BPWa63ge.js} +21 -20
- package/dist/neighbors-D0WRBxXI.js +86 -0
- package/dist/{options-CjSz2dQK.js → options-BXkMR63B.js} +48 -49
- package/dist/overlay/AlertDialog.vue.d.ts +3 -3
- package/dist/overlay/Popover.vue.d.ts +4 -1
- package/dist/overlay/closeOverlays.d.ts +7 -0
- package/dist/overlay/dialogStack.d.ts +9 -0
- package/dist/overlay/index.d.ts +1 -1
- package/dist/overlay/index.js +20 -18
- package/dist/page/AdaptivePageShell.vue.d.ts +2 -2
- package/dist/page/ResourceHeader.vue.d.ts +2 -2
- package/dist/page/index.js +99 -457
- package/dist/phone/PhoneField.vue.d.ts +2 -2
- package/dist/phone/index.js +247 -540
- package/dist/platform/AccessGate.vue.d.ts +50 -0
- package/dist/platform/index.d.ts +4 -2
- package/dist/platform/index.js +38 -35
- package/dist/platform/platform.d.ts +2 -2
- package/dist/platform/session.d.ts +22 -1
- package/dist/platform-hunMqFdB.js +255 -0
- package/dist/resource/index.js +8 -248
- package/dist/routeResource-DstM0hvf.js +82 -0
- package/dist/router/guards.d.ts +7 -1
- package/dist/router/index.js +23 -37
- package/dist/router/navigation.d.ts +1 -1
- package/dist/rowLayout-BI7a3Kom.js +603 -0
- package/dist/sectionIndex-BS0ic5W7.js +86 -0
- package/dist/{sections-LtxV5Mtk.js → sections-BEqW1dOc.js} +1 -1
- package/dist/shell/AccountMenuItem.vue.d.ts +4 -1
- package/dist/shell/BackofficeShell.vue.d.ts +2 -2
- package/dist/shell/ShellBrand.vue.d.ts +1 -1
- package/dist/shell/backofficeShell.d.ts +1 -1
- package/dist/shell/identity.d.ts +1 -1
- package/dist/shell/index.js +476 -532
- package/dist/state/Badge.vue.d.ts +17 -10
- package/dist/state/ProgressTrack.vue.d.ts +1 -1
- package/dist/state/hue.d.ts +8 -0
- package/dist/state/index.d.ts +2 -0
- package/dist/state/index.js +34 -31
- package/dist/state/useLoad.d.ts +41 -0
- package/dist/status-C9aXR-Jb.js +33 -0
- package/dist/styles.css +1 -1
- package/dist/suggestions-BJAqOj4c.js +138 -0
- package/dist/testing/app.d.ts +61 -0
- package/dist/testing/async.d.ts +12 -0
- package/dist/testing/collection.d.ts +18 -0
- package/dist/testing/format.d.ts +9 -0
- package/dist/testing/i18n.d.ts +16 -0
- package/dist/testing/index.d.ts +14 -0
- package/dist/testing/index.js +178 -0
- package/dist/testing/media.d.ts +23 -0
- package/dist/testing/platform.d.ts +40 -0
- package/dist/testing/transport.d.ts +40 -0
- package/dist/toast-D9Z5To38.js +13 -0
- package/dist/useCommand-BgRwnYlV.js +135 -0
- package/dist/{useDialog-wmyNx2j_.js → useDialog-CXR3hN0G.js} +1 -1
- package/dist/useLoad-CYRVx6HW.js +39 -0
- package/dist/useResourceForm-Bgc9jMcu.js +52 -0
- package/dist/useSaveChrome-chi6D3HY.js +25 -0
- package/dist/useSheetDrag-OsD6Eb6I.js +72 -0
- package/package.json +26 -5
- package/src/styles/theme.css +60 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DKc6ugmr.js +0 -31
- package/dist/Button.vue_vue_type_script_setup_true_lang-3f0emVNU.js +0 -141
- package/dist/NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js +0 -78
- package/dist/SectionList.vue_vue_type_script_setup_true_lang-DGcKX_OJ.js +0 -230
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-SyFWE33A.js +0 -422
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-BLBD5ps8.js +0 -210
- package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-CGTuEnTv.js +0 -243
- package/dist/chrome-D9pwD6iS.js +0 -101
- package/dist/dialogStack-DiTG1rZc.js +0 -26
- package/dist/environment-D3nozt9a.js +0 -75
- package/dist/feature-DyDtyMLU.js +0 -47
- package/dist/platform-jqlKVJ2e.js +0 -244
- package/dist/toast-BTeX0r66.js +0 -129
- /package/dist/{phone → internal}/flagLoaders.d.ts +0 -0
package/dist/phone/index.js
CHANGED
|
@@ -1,378 +1,85 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { b as
|
|
4
|
-
import { c as
|
|
5
|
-
import { _ as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
AF: () => import("country-flag-icons/string/3x2/AF"),
|
|
14
|
-
AG: () => import("country-flag-icons/string/3x2/AG"),
|
|
15
|
-
AI: () => import("country-flag-icons/string/3x2/AI"),
|
|
16
|
-
AL: () => import("country-flag-icons/string/3x2/AL"),
|
|
17
|
-
AM: () => import("country-flag-icons/string/3x2/AM"),
|
|
18
|
-
AO: () => import("country-flag-icons/string/3x2/AO"),
|
|
19
|
-
AQ: () => import("country-flag-icons/string/3x2/AQ"),
|
|
20
|
-
AR: () => import("country-flag-icons/string/3x2/AR"),
|
|
21
|
-
AS: () => import("country-flag-icons/string/3x2/AS"),
|
|
22
|
-
AT: () => import("country-flag-icons/string/3x2/AT"),
|
|
23
|
-
AU: () => import("country-flag-icons/string/3x2/AU"),
|
|
24
|
-
AW: () => import("country-flag-icons/string/3x2/AW"),
|
|
25
|
-
AX: () => import("country-flag-icons/string/3x2/AX"),
|
|
26
|
-
AZ: () => import("country-flag-icons/string/3x2/AZ"),
|
|
27
|
-
BA: () => import("country-flag-icons/string/3x2/BA"),
|
|
28
|
-
BB: () => import("country-flag-icons/string/3x2/BB"),
|
|
29
|
-
BD: () => import("country-flag-icons/string/3x2/BD"),
|
|
30
|
-
BE: () => import("country-flag-icons/string/3x2/BE"),
|
|
31
|
-
BF: () => import("country-flag-icons/string/3x2/BF"),
|
|
32
|
-
BG: () => import("country-flag-icons/string/3x2/BG"),
|
|
33
|
-
BH: () => import("country-flag-icons/string/3x2/BH"),
|
|
34
|
-
BI: () => import("country-flag-icons/string/3x2/BI"),
|
|
35
|
-
BJ: () => import("country-flag-icons/string/3x2/BJ"),
|
|
36
|
-
BL: () => import("country-flag-icons/string/3x2/BL"),
|
|
37
|
-
BM: () => import("country-flag-icons/string/3x2/BM"),
|
|
38
|
-
BN: () => import("country-flag-icons/string/3x2/BN"),
|
|
39
|
-
BO: () => import("country-flag-icons/string/3x2/BO"),
|
|
40
|
-
BQ: () => import("country-flag-icons/string/3x2/BQ"),
|
|
41
|
-
BR: () => import("country-flag-icons/string/3x2/BR"),
|
|
42
|
-
BS: () => import("country-flag-icons/string/3x2/BS"),
|
|
43
|
-
BT: () => import("country-flag-icons/string/3x2/BT"),
|
|
44
|
-
BV: () => import("country-flag-icons/string/3x2/BV"),
|
|
45
|
-
BW: () => import("country-flag-icons/string/3x2/BW"),
|
|
46
|
-
BY: () => import("country-flag-icons/string/3x2/BY"),
|
|
47
|
-
BZ: () => import("country-flag-icons/string/3x2/BZ"),
|
|
48
|
-
CA: () => import("country-flag-icons/string/3x2/CA"),
|
|
49
|
-
CC: () => import("country-flag-icons/string/3x2/CC"),
|
|
50
|
-
CD: () => import("country-flag-icons/string/3x2/CD"),
|
|
51
|
-
CF: () => import("country-flag-icons/string/3x2/CF"),
|
|
52
|
-
CG: () => import("country-flag-icons/string/3x2/CG"),
|
|
53
|
-
CH: () => import("country-flag-icons/string/3x2/CH"),
|
|
54
|
-
CI: () => import("country-flag-icons/string/3x2/CI"),
|
|
55
|
-
CK: () => import("country-flag-icons/string/3x2/CK"),
|
|
56
|
-
CL: () => import("country-flag-icons/string/3x2/CL"),
|
|
57
|
-
CM: () => import("country-flag-icons/string/3x2/CM"),
|
|
58
|
-
CN: () => import("country-flag-icons/string/3x2/CN"),
|
|
59
|
-
CO: () => import("country-flag-icons/string/3x2/CO"),
|
|
60
|
-
CR: () => import("country-flag-icons/string/3x2/CR"),
|
|
61
|
-
CU: () => import("country-flag-icons/string/3x2/CU"),
|
|
62
|
-
CV: () => import("country-flag-icons/string/3x2/CV"),
|
|
63
|
-
CW: () => import("country-flag-icons/string/3x2/CW"),
|
|
64
|
-
CX: () => import("country-flag-icons/string/3x2/CX"),
|
|
65
|
-
CY: () => import("country-flag-icons/string/3x2/CY"),
|
|
66
|
-
CZ: () => import("country-flag-icons/string/3x2/CZ"),
|
|
67
|
-
DE: () => import("country-flag-icons/string/3x2/DE"),
|
|
68
|
-
DJ: () => import("country-flag-icons/string/3x2/DJ"),
|
|
69
|
-
DK: () => import("country-flag-icons/string/3x2/DK"),
|
|
70
|
-
DM: () => import("country-flag-icons/string/3x2/DM"),
|
|
71
|
-
DO: () => import("country-flag-icons/string/3x2/DO"),
|
|
72
|
-
DZ: () => import("country-flag-icons/string/3x2/DZ"),
|
|
73
|
-
EC: () => import("country-flag-icons/string/3x2/EC"),
|
|
74
|
-
EE: () => import("country-flag-icons/string/3x2/EE"),
|
|
75
|
-
EG: () => import("country-flag-icons/string/3x2/EG"),
|
|
76
|
-
EH: () => import("country-flag-icons/string/3x2/EH"),
|
|
77
|
-
ER: () => import("country-flag-icons/string/3x2/ER"),
|
|
78
|
-
ES: () => import("country-flag-icons/string/3x2/ES"),
|
|
79
|
-
ET: () => import("country-flag-icons/string/3x2/ET"),
|
|
80
|
-
EU: () => import("country-flag-icons/string/3x2/EU"),
|
|
81
|
-
FI: () => import("country-flag-icons/string/3x2/FI"),
|
|
82
|
-
FJ: () => import("country-flag-icons/string/3x2/FJ"),
|
|
83
|
-
FK: () => import("country-flag-icons/string/3x2/FK"),
|
|
84
|
-
FM: () => import("country-flag-icons/string/3x2/FM"),
|
|
85
|
-
FO: () => import("country-flag-icons/string/3x2/FO"),
|
|
86
|
-
FR: () => import("country-flag-icons/string/3x2/FR"),
|
|
87
|
-
GA: () => import("country-flag-icons/string/3x2/GA"),
|
|
88
|
-
GB: () => import("country-flag-icons/string/3x2/GB"),
|
|
89
|
-
GD: () => import("country-flag-icons/string/3x2/GD"),
|
|
90
|
-
GE: () => import("country-flag-icons/string/3x2/GE"),
|
|
91
|
-
GF: () => import("country-flag-icons/string/3x2/GF"),
|
|
92
|
-
GG: () => import("country-flag-icons/string/3x2/GG"),
|
|
93
|
-
GH: () => import("country-flag-icons/string/3x2/GH"),
|
|
94
|
-
GI: () => import("country-flag-icons/string/3x2/GI"),
|
|
95
|
-
GL: () => import("country-flag-icons/string/3x2/GL"),
|
|
96
|
-
GM: () => import("country-flag-icons/string/3x2/GM"),
|
|
97
|
-
GN: () => import("country-flag-icons/string/3x2/GN"),
|
|
98
|
-
GP: () => import("country-flag-icons/string/3x2/GP"),
|
|
99
|
-
GQ: () => import("country-flag-icons/string/3x2/GQ"),
|
|
100
|
-
GR: () => import("country-flag-icons/string/3x2/GR"),
|
|
101
|
-
GS: () => import("country-flag-icons/string/3x2/GS"),
|
|
102
|
-
GT: () => import("country-flag-icons/string/3x2/GT"),
|
|
103
|
-
GU: () => import("country-flag-icons/string/3x2/GU"),
|
|
104
|
-
GW: () => import("country-flag-icons/string/3x2/GW"),
|
|
105
|
-
GY: () => import("country-flag-icons/string/3x2/GY"),
|
|
106
|
-
HK: () => import("country-flag-icons/string/3x2/HK"),
|
|
107
|
-
HM: () => import("country-flag-icons/string/3x2/HM"),
|
|
108
|
-
HN: () => import("country-flag-icons/string/3x2/HN"),
|
|
109
|
-
HR: () => import("country-flag-icons/string/3x2/HR"),
|
|
110
|
-
HT: () => import("country-flag-icons/string/3x2/HT"),
|
|
111
|
-
HU: () => import("country-flag-icons/string/3x2/HU"),
|
|
112
|
-
IC: () => import("country-flag-icons/string/3x2/IC"),
|
|
113
|
-
ID: () => import("country-flag-icons/string/3x2/ID"),
|
|
114
|
-
IE: () => import("country-flag-icons/string/3x2/IE"),
|
|
115
|
-
IL: () => import("country-flag-icons/string/3x2/IL"),
|
|
116
|
-
IM: () => import("country-flag-icons/string/3x2/IM"),
|
|
117
|
-
IN: () => import("country-flag-icons/string/3x2/IN"),
|
|
118
|
-
IO: () => import("country-flag-icons/string/3x2/IO"),
|
|
119
|
-
IQ: () => import("country-flag-icons/string/3x2/IQ"),
|
|
120
|
-
IR: () => import("country-flag-icons/string/3x2/IR"),
|
|
121
|
-
IS: () => import("country-flag-icons/string/3x2/IS"),
|
|
122
|
-
IT: () => import("country-flag-icons/string/3x2/IT"),
|
|
123
|
-
JE: () => import("country-flag-icons/string/3x2/JE"),
|
|
124
|
-
JM: () => import("country-flag-icons/string/3x2/JM"),
|
|
125
|
-
JO: () => import("country-flag-icons/string/3x2/JO"),
|
|
126
|
-
JP: () => import("country-flag-icons/string/3x2/JP"),
|
|
127
|
-
KE: () => import("country-flag-icons/string/3x2/KE"),
|
|
128
|
-
KG: () => import("country-flag-icons/string/3x2/KG"),
|
|
129
|
-
KH: () => import("country-flag-icons/string/3x2/KH"),
|
|
130
|
-
KI: () => import("country-flag-icons/string/3x2/KI"),
|
|
131
|
-
KM: () => import("country-flag-icons/string/3x2/KM"),
|
|
132
|
-
KN: () => import("country-flag-icons/string/3x2/KN"),
|
|
133
|
-
KP: () => import("country-flag-icons/string/3x2/KP"),
|
|
134
|
-
KR: () => import("country-flag-icons/string/3x2/KR"),
|
|
135
|
-
KW: () => import("country-flag-icons/string/3x2/KW"),
|
|
136
|
-
KY: () => import("country-flag-icons/string/3x2/KY"),
|
|
137
|
-
KZ: () => import("country-flag-icons/string/3x2/KZ"),
|
|
138
|
-
LA: () => import("country-flag-icons/string/3x2/LA"),
|
|
139
|
-
LB: () => import("country-flag-icons/string/3x2/LB"),
|
|
140
|
-
LC: () => import("country-flag-icons/string/3x2/LC"),
|
|
141
|
-
LI: () => import("country-flag-icons/string/3x2/LI"),
|
|
142
|
-
LK: () => import("country-flag-icons/string/3x2/LK"),
|
|
143
|
-
LR: () => import("country-flag-icons/string/3x2/LR"),
|
|
144
|
-
LS: () => import("country-flag-icons/string/3x2/LS"),
|
|
145
|
-
LT: () => import("country-flag-icons/string/3x2/LT"),
|
|
146
|
-
LU: () => import("country-flag-icons/string/3x2/LU"),
|
|
147
|
-
LV: () => import("country-flag-icons/string/3x2/LV"),
|
|
148
|
-
LY: () => import("country-flag-icons/string/3x2/LY"),
|
|
149
|
-
MA: () => import("country-flag-icons/string/3x2/MA"),
|
|
150
|
-
MC: () => import("country-flag-icons/string/3x2/MC"),
|
|
151
|
-
MD: () => import("country-flag-icons/string/3x2/MD"),
|
|
152
|
-
ME: () => import("country-flag-icons/string/3x2/ME"),
|
|
153
|
-
MF: () => import("country-flag-icons/string/3x2/MF"),
|
|
154
|
-
MG: () => import("country-flag-icons/string/3x2/MG"),
|
|
155
|
-
MH: () => import("country-flag-icons/string/3x2/MH"),
|
|
156
|
-
MK: () => import("country-flag-icons/string/3x2/MK"),
|
|
157
|
-
ML: () => import("country-flag-icons/string/3x2/ML"),
|
|
158
|
-
MM: () => import("country-flag-icons/string/3x2/MM"),
|
|
159
|
-
MN: () => import("country-flag-icons/string/3x2/MN"),
|
|
160
|
-
MO: () => import("country-flag-icons/string/3x2/MO"),
|
|
161
|
-
MP: () => import("country-flag-icons/string/3x2/MP"),
|
|
162
|
-
MQ: () => import("country-flag-icons/string/3x2/MQ"),
|
|
163
|
-
MR: () => import("country-flag-icons/string/3x2/MR"),
|
|
164
|
-
MS: () => import("country-flag-icons/string/3x2/MS"),
|
|
165
|
-
MT: () => import("country-flag-icons/string/3x2/MT"),
|
|
166
|
-
MU: () => import("country-flag-icons/string/3x2/MU"),
|
|
167
|
-
MV: () => import("country-flag-icons/string/3x2/MV"),
|
|
168
|
-
MW: () => import("country-flag-icons/string/3x2/MW"),
|
|
169
|
-
MX: () => import("country-flag-icons/string/3x2/MX"),
|
|
170
|
-
MY: () => import("country-flag-icons/string/3x2/MY"),
|
|
171
|
-
MZ: () => import("country-flag-icons/string/3x2/MZ"),
|
|
172
|
-
NA: () => import("country-flag-icons/string/3x2/NA"),
|
|
173
|
-
NC: () => import("country-flag-icons/string/3x2/NC"),
|
|
174
|
-
NE: () => import("country-flag-icons/string/3x2/NE"),
|
|
175
|
-
NF: () => import("country-flag-icons/string/3x2/NF"),
|
|
176
|
-
NG: () => import("country-flag-icons/string/3x2/NG"),
|
|
177
|
-
NI: () => import("country-flag-icons/string/3x2/NI"),
|
|
178
|
-
NL: () => import("country-flag-icons/string/3x2/NL"),
|
|
179
|
-
NO: () => import("country-flag-icons/string/3x2/NO"),
|
|
180
|
-
NP: () => import("country-flag-icons/string/3x2/NP"),
|
|
181
|
-
NR: () => import("country-flag-icons/string/3x2/NR"),
|
|
182
|
-
NU: () => import("country-flag-icons/string/3x2/NU"),
|
|
183
|
-
NZ: () => import("country-flag-icons/string/3x2/NZ"),
|
|
184
|
-
OM: () => import("country-flag-icons/string/3x2/OM"),
|
|
185
|
-
PA: () => import("country-flag-icons/string/3x2/PA"),
|
|
186
|
-
PE: () => import("country-flag-icons/string/3x2/PE"),
|
|
187
|
-
PF: () => import("country-flag-icons/string/3x2/PF"),
|
|
188
|
-
PG: () => import("country-flag-icons/string/3x2/PG"),
|
|
189
|
-
PH: () => import("country-flag-icons/string/3x2/PH"),
|
|
190
|
-
PK: () => import("country-flag-icons/string/3x2/PK"),
|
|
191
|
-
PL: () => import("country-flag-icons/string/3x2/PL"),
|
|
192
|
-
PM: () => import("country-flag-icons/string/3x2/PM"),
|
|
193
|
-
PN: () => import("country-flag-icons/string/3x2/PN"),
|
|
194
|
-
PR: () => import("country-flag-icons/string/3x2/PR"),
|
|
195
|
-
PS: () => import("country-flag-icons/string/3x2/PS"),
|
|
196
|
-
PT: () => import("country-flag-icons/string/3x2/PT"),
|
|
197
|
-
PW: () => import("country-flag-icons/string/3x2/PW"),
|
|
198
|
-
PY: () => import("country-flag-icons/string/3x2/PY"),
|
|
199
|
-
QA: () => import("country-flag-icons/string/3x2/QA"),
|
|
200
|
-
RE: () => import("country-flag-icons/string/3x2/RE"),
|
|
201
|
-
RO: () => import("country-flag-icons/string/3x2/RO"),
|
|
202
|
-
RS: () => import("country-flag-icons/string/3x2/RS"),
|
|
203
|
-
RU: () => import("country-flag-icons/string/3x2/RU"),
|
|
204
|
-
RW: () => import("country-flag-icons/string/3x2/RW"),
|
|
205
|
-
SA: () => import("country-flag-icons/string/3x2/SA"),
|
|
206
|
-
SB: () => import("country-flag-icons/string/3x2/SB"),
|
|
207
|
-
SC: () => import("country-flag-icons/string/3x2/SC"),
|
|
208
|
-
SD: () => import("country-flag-icons/string/3x2/SD"),
|
|
209
|
-
SE: () => import("country-flag-icons/string/3x2/SE"),
|
|
210
|
-
SG: () => import("country-flag-icons/string/3x2/SG"),
|
|
211
|
-
SH: () => import("country-flag-icons/string/3x2/SH"),
|
|
212
|
-
SI: () => import("country-flag-icons/string/3x2/SI"),
|
|
213
|
-
SJ: () => import("country-flag-icons/string/3x2/SJ"),
|
|
214
|
-
SK: () => import("country-flag-icons/string/3x2/SK"),
|
|
215
|
-
SL: () => import("country-flag-icons/string/3x2/SL"),
|
|
216
|
-
SM: () => import("country-flag-icons/string/3x2/SM"),
|
|
217
|
-
SN: () => import("country-flag-icons/string/3x2/SN"),
|
|
218
|
-
SO: () => import("country-flag-icons/string/3x2/SO"),
|
|
219
|
-
SR: () => import("country-flag-icons/string/3x2/SR"),
|
|
220
|
-
SS: () => import("country-flag-icons/string/3x2/SS"),
|
|
221
|
-
ST: () => import("country-flag-icons/string/3x2/ST"),
|
|
222
|
-
SV: () => import("country-flag-icons/string/3x2/SV"),
|
|
223
|
-
SX: () => import("country-flag-icons/string/3x2/SX"),
|
|
224
|
-
SY: () => import("country-flag-icons/string/3x2/SY"),
|
|
225
|
-
SZ: () => import("country-flag-icons/string/3x2/SZ"),
|
|
226
|
-
TA: () => import("country-flag-icons/string/3x2/TA"),
|
|
227
|
-
TC: () => import("country-flag-icons/string/3x2/TC"),
|
|
228
|
-
TD: () => import("country-flag-icons/string/3x2/TD"),
|
|
229
|
-
TF: () => import("country-flag-icons/string/3x2/TF"),
|
|
230
|
-
TG: () => import("country-flag-icons/string/3x2/TG"),
|
|
231
|
-
TH: () => import("country-flag-icons/string/3x2/TH"),
|
|
232
|
-
TJ: () => import("country-flag-icons/string/3x2/TJ"),
|
|
233
|
-
TK: () => import("country-flag-icons/string/3x2/TK"),
|
|
234
|
-
TL: () => import("country-flag-icons/string/3x2/TL"),
|
|
235
|
-
TM: () => import("country-flag-icons/string/3x2/TM"),
|
|
236
|
-
TN: () => import("country-flag-icons/string/3x2/TN"),
|
|
237
|
-
TO: () => import("country-flag-icons/string/3x2/TO"),
|
|
238
|
-
TR: () => import("country-flag-icons/string/3x2/TR"),
|
|
239
|
-
TT: () => import("country-flag-icons/string/3x2/TT"),
|
|
240
|
-
TV: () => import("country-flag-icons/string/3x2/TV"),
|
|
241
|
-
TW: () => import("country-flag-icons/string/3x2/TW"),
|
|
242
|
-
TZ: () => import("country-flag-icons/string/3x2/TZ"),
|
|
243
|
-
UA: () => import("country-flag-icons/string/3x2/UA"),
|
|
244
|
-
UG: () => import("country-flag-icons/string/3x2/UG"),
|
|
245
|
-
UM: () => import("country-flag-icons/string/3x2/UM"),
|
|
246
|
-
US: () => import("country-flag-icons/string/3x2/US"),
|
|
247
|
-
UY: () => import("country-flag-icons/string/3x2/UY"),
|
|
248
|
-
UZ: () => import("country-flag-icons/string/3x2/UZ"),
|
|
249
|
-
VA: () => import("country-flag-icons/string/3x2/VA"),
|
|
250
|
-
VC: () => import("country-flag-icons/string/3x2/VC"),
|
|
251
|
-
VE: () => import("country-flag-icons/string/3x2/VE"),
|
|
252
|
-
VG: () => import("country-flag-icons/string/3x2/VG"),
|
|
253
|
-
VI: () => import("country-flag-icons/string/3x2/VI"),
|
|
254
|
-
VN: () => import("country-flag-icons/string/3x2/VN"),
|
|
255
|
-
VU: () => import("country-flag-icons/string/3x2/VU"),
|
|
256
|
-
WF: () => import("country-flag-icons/string/3x2/WF"),
|
|
257
|
-
WS: () => import("country-flag-icons/string/3x2/WS"),
|
|
258
|
-
XA: () => import("country-flag-icons/string/3x2/XA"),
|
|
259
|
-
XC: () => import("country-flag-icons/string/3x2/XC"),
|
|
260
|
-
XK: () => import("country-flag-icons/string/3x2/XK"),
|
|
261
|
-
XO: () => import("country-flag-icons/string/3x2/XO"),
|
|
262
|
-
YE: () => import("country-flag-icons/string/3x2/YE"),
|
|
263
|
-
YT: () => import("country-flag-icons/string/3x2/YT"),
|
|
264
|
-
ZA: () => import("country-flag-icons/string/3x2/ZA"),
|
|
265
|
-
ZM: () => import("country-flag-icons/string/3x2/ZM"),
|
|
266
|
-
ZW: () => import("country-flag-icons/string/3x2/ZW")
|
|
267
|
-
}, Ht = ["data-country"], Zt = ["src"], mt = /* @__PURE__ */ at({
|
|
268
|
-
__name: "CountryFlag",
|
|
269
|
-
props: {
|
|
270
|
-
country: {}
|
|
271
|
-
},
|
|
272
|
-
setup(e) {
|
|
273
|
-
const i = e, o = L("holder"), r = dt(null), a = E(typeof IntersectionObserver > "u");
|
|
274
|
-
let y = null;
|
|
275
|
-
async function d(f) {
|
|
276
|
-
const c = Wt[f];
|
|
277
|
-
if (!c) return void (r.value = null);
|
|
278
|
-
const { default: S } = await c();
|
|
279
|
-
f === i.country && (r.value = `data:image/svg+xml,${encodeURIComponent(S)}`);
|
|
280
|
-
}
|
|
281
|
-
return Ct(() => {
|
|
282
|
-
a.value || !o.value || (y = new IntersectionObserver((f) => {
|
|
283
|
-
f.some((c) => c.isIntersecting) && (a.value = !0, y?.disconnect());
|
|
284
|
-
}), y.observe(o.value));
|
|
285
|
-
}), ft(() => y?.disconnect()), j([() => i.country, a], ([f, c]) => {
|
|
286
|
-
r.value = null, c && d(f);
|
|
287
|
-
}, { immediate: !0 }), (f, c) => (g(), _("span", {
|
|
288
|
-
ref_key: "holder",
|
|
289
|
-
ref: o,
|
|
290
|
-
class: "inline-block h-3.5 w-5 shrink-0 overflow-hidden rounded-xs bg-fill-strong ring-1 ring-border-separator",
|
|
291
|
-
"data-test": "flag",
|
|
292
|
-
"data-country": i.country
|
|
293
|
-
}, [
|
|
294
|
-
r.value ? (g(), _("img", {
|
|
295
|
-
key: 0,
|
|
296
|
-
src: r.value,
|
|
297
|
-
alt: "",
|
|
298
|
-
class: "size-full object-cover",
|
|
299
|
-
draggable: "false"
|
|
300
|
-
}, null, 8, Zt)) : K("", !0)
|
|
301
|
-
], 8, Ht));
|
|
302
|
-
}
|
|
303
|
-
}), pt = ["HR", "BA", "SI", "RS"], zt = 15;
|
|
304
|
-
function bt(e) {
|
|
305
|
-
return Ut.country_calling_codes[e]?.[0];
|
|
1
|
+
import { defineComponent as fe, useModel as me, useTemplateRef as F, ref as B, computed as g, watch as ne, nextTick as A, openBlock as w, createElementBlock as $, createElementVNode as f, normalizeClass as P, unref as i, createVNode as M, toDisplayString as T, normalizeStyle as ge, Fragment as ee, renderList as le, createCommentVNode as J, withModifiers as xe, withDirectives as we, vModelText as _e, mergeModels as ae, inject as ke, shallowRef as Ce, onBeforeUnmount as $e, createBlock as De, mergeProps as Me, createSlots as Te, withCtx as se, createTextVNode as Se, renderSlot as Ne, mergeDefaults as Ie } from "vue";
|
|
2
|
+
import { useI18n as pe } from "vue-i18n";
|
|
3
|
+
import { b as Pe } from "../controlSurface-t7OEFESJ.js";
|
|
4
|
+
import { c as ie, a as Ve, g as Oe, _ as Re, f as Ee, b as Be } from "../options-BXkMR63B.js";
|
|
5
|
+
import { _ as q } from "../Icon.vue_vue_type_script_lang-VvcV2Bzo.js";
|
|
6
|
+
import { _ as ue } from "../CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js";
|
|
7
|
+
import { u as ze } from "../anchored-Cj4--8dT.js";
|
|
8
|
+
import { AsYouType as L, validatePhoneNumberLength as Fe, parsePhoneNumberFromString as ve, getCountries as qe, getCountryCallingCode as Ae } from "libphonenumber-js/max";
|
|
9
|
+
import Le from "libphonenumber-js/max/metadata";
|
|
10
|
+
const ce = ["HR", "BA", "SI", "RS"], We = 15;
|
|
11
|
+
function he(t) {
|
|
12
|
+
return Le.country_calling_codes[t]?.[0];
|
|
306
13
|
}
|
|
307
|
-
const W = (
|
|
308
|
-
function
|
|
309
|
-
const o = `+${
|
|
310
|
-
return new
|
|
14
|
+
const W = (t) => Ae(t), de = (t) => `+${W(t)}`, te = () => qe();
|
|
15
|
+
function Ke(t, a) {
|
|
16
|
+
const o = `+${t}`;
|
|
17
|
+
return new L().input(`${o}${a}`).slice(o.length).trim();
|
|
311
18
|
}
|
|
312
|
-
function
|
|
313
|
-
const r = o.slice(0, Math.max(0,
|
|
314
|
-
return r === "" ? { country:
|
|
19
|
+
function re(t, a, o) {
|
|
20
|
+
const r = o.slice(0, Math.max(0, We - a.length));
|
|
21
|
+
return r === "" ? { country: t, e164: "", text: "" } : { country: t, e164: `+${a}${r}`, text: Ke(a, r) };
|
|
315
22
|
}
|
|
316
|
-
function
|
|
317
|
-
const o =
|
|
23
|
+
function oe(t, a) {
|
|
24
|
+
const o = t.trim().replace(/^00(?=\d)/, "+");
|
|
318
25
|
if (o.startsWith("+")) {
|
|
319
|
-
const
|
|
320
|
-
|
|
321
|
-
const
|
|
322
|
-
if (!
|
|
323
|
-
const
|
|
324
|
-
return
|
|
26
|
+
const l = new L();
|
|
27
|
+
l.input(o);
|
|
28
|
+
const x = l.getCallingCode();
|
|
29
|
+
if (!x) return { country: a, e164: "", text: o.replace(/[^\d+]/g, "") };
|
|
30
|
+
const p = l.getCountry() ?? (W(a) === x ? a : he(x) ?? a);
|
|
31
|
+
return re(p, x, l.getNumber()?.nationalNumber ?? "");
|
|
325
32
|
}
|
|
326
|
-
const r = new
|
|
327
|
-
return r.input(o.replace(/\D/g, "")),
|
|
33
|
+
const r = new L(a);
|
|
34
|
+
return r.input(o.replace(/\D/g, "")), re(a, W(a), r.getNumber()?.nationalNumber ?? "");
|
|
328
35
|
}
|
|
329
|
-
function
|
|
330
|
-
return
|
|
36
|
+
function Ue(t, a) {
|
|
37
|
+
return re(a, W(a), t.text.replace(/\D/g, ""));
|
|
331
38
|
}
|
|
332
|
-
function
|
|
333
|
-
return
|
|
39
|
+
function je(t) {
|
|
40
|
+
return t.startsWith("+") ? new L().input(t) : t;
|
|
334
41
|
}
|
|
335
|
-
const
|
|
336
|
-
function
|
|
337
|
-
const
|
|
338
|
-
return o ?
|
|
42
|
+
const He = { MOBILE: "mobile", FIXED_LINE: "landline", TOLL_FREE: "toll_free", PREMIUM_RATE: "premium_rate", VOIP: "voip" };
|
|
43
|
+
function Ge(t) {
|
|
44
|
+
const a = t ? ve(t) : void 0, o = a?.isValid() ? a.getType() : void 0;
|
|
45
|
+
return o ? He[o] : void 0;
|
|
339
46
|
}
|
|
340
|
-
function
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
const o =
|
|
344
|
-
return
|
|
47
|
+
function Xe(t) {
|
|
48
|
+
const a = new L();
|
|
49
|
+
a.input(t);
|
|
50
|
+
const o = a.getCallingCode();
|
|
51
|
+
return a.getCountry() ?? (o ? he(o) : void 0);
|
|
345
52
|
}
|
|
346
|
-
function
|
|
347
|
-
if (
|
|
348
|
-
const
|
|
349
|
-
return o === "TOO_SHORT" ? { kind: "too_short", country:
|
|
53
|
+
function ye(t) {
|
|
54
|
+
if (t === "") return null;
|
|
55
|
+
const a = Xe(t), o = Fe(t);
|
|
56
|
+
return o === "TOO_SHORT" ? { kind: "too_short", country: a } : o === "TOO_LONG" ? { kind: "too_long", country: a } : o !== void 0 ? { kind: "invalid", country: a } : ve(t)?.isValid() ? null : { kind: "invalid", country: a };
|
|
350
57
|
}
|
|
351
|
-
const
|
|
352
|
-
function
|
|
58
|
+
const Ct = (t) => ye(t) === null;
|
|
59
|
+
function be(t, a) {
|
|
353
60
|
try {
|
|
354
|
-
return new Intl.DisplayNames([
|
|
61
|
+
return new Intl.DisplayNames([a], { type: "region" }).of(t) ?? t;
|
|
355
62
|
} catch {
|
|
356
|
-
return
|
|
63
|
+
return t;
|
|
357
64
|
}
|
|
358
65
|
}
|
|
359
|
-
function
|
|
360
|
-
const r =
|
|
66
|
+
function Ye(t, a, o) {
|
|
67
|
+
const r = ie(t.trim());
|
|
361
68
|
if (r === "") return o;
|
|
362
|
-
const
|
|
363
|
-
return o.filter((
|
|
69
|
+
const l = r.replace(/\D/g, ""), x = new Intl.DisplayNames([a], { type: "region" }), p = (h) => ie(x.of(h) ?? h), _ = r.startsWith("+") || /^\d+$/.test(r);
|
|
70
|
+
return o.filter((h) => _ ? W(h).startsWith(l) : p(h).includes(r) || h.toLowerCase() === r);
|
|
364
71
|
}
|
|
365
|
-
const
|
|
72
|
+
const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tabular-nums" }, Ze = ["id", "aria-label"], et = {
|
|
366
73
|
key: 0,
|
|
367
74
|
role: "presentation",
|
|
368
75
|
class: "px-2 pb-1 pt-1.5 text-caption font-semibold uppercase text-content-disabled"
|
|
369
|
-
},
|
|
76
|
+
}, tt = ["id", "aria-selected", "data-country", "onMouseenter", "onClick"], ot = { class: "shrink-0 tabular-nums text-content-muted" }, nt = {
|
|
370
77
|
key: 0,
|
|
371
78
|
class: "px-3 py-2 text-footnote text-content-muted",
|
|
372
79
|
role: "status"
|
|
373
|
-
},
|
|
80
|
+
}, at = { class: "border-t border-border-separator px-3 py-2" }, rt = ["aria-controls", "aria-activedescendant", "aria-label", "placeholder"], lt = /* @__PURE__ */ fe({
|
|
374
81
|
__name: "CountryPicker",
|
|
375
|
-
props: /* @__PURE__ */
|
|
82
|
+
props: /* @__PURE__ */ ae({
|
|
376
83
|
id: {},
|
|
377
84
|
common: {},
|
|
378
85
|
disabled: { type: Boolean },
|
|
@@ -381,158 +88,158 @@ const ee = ["id", "disabled", "aria-label", "aria-expanded"], oe = { class: "tab
|
|
|
381
88
|
modelValue: { required: !0 },
|
|
382
89
|
modelModifiers: {}
|
|
383
90
|
}),
|
|
384
|
-
emits: /* @__PURE__ */
|
|
385
|
-
setup(
|
|
386
|
-
const r =
|
|
387
|
-
const
|
|
388
|
-
for (const
|
|
389
|
-
return
|
|
390
|
-
}),
|
|
391
|
-
const
|
|
392
|
-
if (
|
|
393
|
-
const
|
|
394
|
-
return [{ title: null, countries: [...
|
|
91
|
+
emits: /* @__PURE__ */ ae(["picked"], ["update:modelValue"]),
|
|
92
|
+
setup(t, { expose: a, emit: o }) {
|
|
93
|
+
const r = t, l = me(t, "modelValue"), x = o, { t: p, locale: _ } = pe(), h = F("root"), V = F("trigger"), k = F("panel"), K = F("search"), C = B(!1), v = B(""), d = B(0), O = g(() => {
|
|
94
|
+
const e = /* @__PURE__ */ new Map();
|
|
95
|
+
for (const s of te()) e.set(s, be(s, _.value));
|
|
96
|
+
return e;
|
|
97
|
+
}), S = (e) => O.value.get(e) ?? e, D = g(() => {
|
|
98
|
+
const e = r.common.filter((c) => O.value.has(c));
|
|
99
|
+
if (v.value.trim() !== "") {
|
|
100
|
+
const c = Ye(v.value, _.value, te());
|
|
101
|
+
return [{ title: null, countries: [...c.filter((n) => e.includes(n)), ...c.filter((n) => !e.includes(n))] }];
|
|
395
102
|
}
|
|
396
|
-
const
|
|
397
|
-
return [{ title:
|
|
398
|
-
}),
|
|
399
|
-
reference: () =>
|
|
103
|
+
const s = te().filter((c) => !e.includes(c)).sort((c, n) => S(c).localeCompare(S(n), _.value));
|
|
104
|
+
return [{ title: p("core.form.phone.common"), countries: e }, { title: p("core.form.phone.all"), countries: s }].filter((c) => c.countries.length > 0);
|
|
105
|
+
}), y = g(() => D.value.flatMap((e) => e.countries)), z = g(() => D.value.map((e, s) => D.value.slice(0, s).reduce((c, n) => c + n.countries.length, 0))), U = (e) => `${r.id}-country-${e}`, { style: Q } = ze(k, {
|
|
106
|
+
reference: () => V.value,
|
|
400
107
|
placement: () => "bottom-start",
|
|
401
108
|
offset: 4,
|
|
402
109
|
padding: 8,
|
|
403
|
-
fit: (
|
|
404
|
-
|
|
110
|
+
fit: (e, s) => {
|
|
111
|
+
e.style.width = "min(20rem, calc(100vw - 1rem))", e.style.maxHeight = `${Math.max(200, Math.min(380, s.height))}px`;
|
|
405
112
|
}
|
|
406
113
|
});
|
|
407
|
-
async function
|
|
408
|
-
r.disabled ||
|
|
114
|
+
async function j() {
|
|
115
|
+
r.disabled || C.value || (v.value = "", d.value = Math.max(0, y.value.indexOf(l.value)), C.value = !0, await A(), K.value?.focus());
|
|
409
116
|
}
|
|
410
|
-
function
|
|
411
|
-
|
|
117
|
+
function N(e) {
|
|
118
|
+
C.value = !1, e && V.value?.focus();
|
|
412
119
|
}
|
|
413
|
-
function
|
|
414
|
-
|
|
120
|
+
function R(e) {
|
|
121
|
+
l.value = e, x("picked", e), N(!1);
|
|
415
122
|
}
|
|
416
|
-
|
|
417
|
-
function
|
|
418
|
-
|
|
123
|
+
ne(v, () => d.value = 0), ne(d, () => void A(() => k.value?.querySelector("[aria-selected='true']")?.scrollIntoView?.({ block: "nearest" })));
|
|
124
|
+
function H(e) {
|
|
125
|
+
C.value && !h.value?.contains(e.relatedTarget) && N(!1);
|
|
419
126
|
}
|
|
420
|
-
function
|
|
421
|
-
if (
|
|
422
|
-
|
|
423
|
-
else if (
|
|
424
|
-
|
|
425
|
-
else if (
|
|
426
|
-
|
|
427
|
-
const
|
|
428
|
-
|
|
127
|
+
function G(e) {
|
|
128
|
+
if (e.key === "Escape")
|
|
129
|
+
e.stopPropagation(), e.preventDefault(), N(!0);
|
|
130
|
+
else if (e.key === "ArrowDown" || e.key === "ArrowUp")
|
|
131
|
+
e.preventDefault(), d.value = Math.min(Math.max(d.value + (e.key === "ArrowDown" ? 1 : -1), 0), y.value.length - 1);
|
|
132
|
+
else if (e.key === "Enter") {
|
|
133
|
+
e.preventDefault();
|
|
134
|
+
const s = y.value[d.value];
|
|
135
|
+
s && R(s);
|
|
429
136
|
}
|
|
430
137
|
}
|
|
431
|
-
function
|
|
432
|
-
(
|
|
138
|
+
function E(e) {
|
|
139
|
+
(e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), j());
|
|
433
140
|
}
|
|
434
|
-
return
|
|
141
|
+
return a({ focus: () => V.value?.focus() }), (e, s) => (w(), $("div", {
|
|
435
142
|
ref_key: "root",
|
|
436
|
-
ref:
|
|
143
|
+
ref: h,
|
|
437
144
|
class: "shrink-0",
|
|
438
|
-
onFocusout:
|
|
145
|
+
onFocusout: H
|
|
439
146
|
}, [
|
|
440
|
-
|
|
147
|
+
f("button", {
|
|
441
148
|
id: `${r.id}-country`,
|
|
442
149
|
ref_key: "trigger",
|
|
443
|
-
ref:
|
|
150
|
+
ref: V,
|
|
444
151
|
type: "button",
|
|
445
152
|
disabled: r.disabled,
|
|
446
|
-
"aria-label":
|
|
153
|
+
"aria-label": i(p)("core.form.phone.country", { country: S(l.value) }),
|
|
447
154
|
"aria-haspopup": "listbox",
|
|
448
|
-
"aria-expanded":
|
|
155
|
+
"aria-expanded": C.value,
|
|
449
156
|
"data-test": "country-button",
|
|
450
|
-
class:
|
|
451
|
-
onClick:
|
|
452
|
-
onKeydown:
|
|
157
|
+
class: P(["flex h-full min-h-8 cursor-pointer items-center gap-1.5 whitespace-nowrap text-body font-medium text-content-strong focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus disabled:cursor-not-allowed compact:border-r compact:border-border-separator", r.surface]),
|
|
158
|
+
onClick: s[0] || (s[0] = (c) => C.value ? N(!0) : j()),
|
|
159
|
+
onKeydown: E
|
|
453
160
|
}, [
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
161
|
+
M(ue, { country: l.value }, null, 8, ["country"]),
|
|
162
|
+
f("span", Qe, T(i(de)(l.value)), 1),
|
|
163
|
+
M(i(q), {
|
|
457
164
|
name: "arrowDownSLine",
|
|
458
165
|
size: 14,
|
|
459
166
|
class: "text-content-muted"
|
|
460
167
|
})
|
|
461
|
-
], 42,
|
|
462
|
-
|
|
168
|
+
], 42, Je),
|
|
169
|
+
C.value ? (w(), $("div", {
|
|
463
170
|
key: 0,
|
|
464
171
|
ref_key: "panel",
|
|
465
|
-
ref:
|
|
466
|
-
style:
|
|
172
|
+
ref: k,
|
|
173
|
+
style: ge(i(Q)),
|
|
467
174
|
"data-test": "country-list",
|
|
468
175
|
class: "z-1000 flex flex-col overflow-hidden rounded-menu bg-surface-overlay shadow-float"
|
|
469
176
|
}, [
|
|
470
|
-
|
|
177
|
+
f("div", {
|
|
471
178
|
id: `${r.id}-countries`,
|
|
472
179
|
role: "listbox",
|
|
473
|
-
"aria-label":
|
|
180
|
+
"aria-label": i(p)("core.form.phone.countries"),
|
|
474
181
|
class: "min-h-0 flex-1 overflow-y-auto p-2"
|
|
475
182
|
}, [
|
|
476
|
-
(
|
|
477
|
-
key:
|
|
183
|
+
(w(!0), $(ee, null, le(D.value, (c, n) => (w(), $(ee, {
|
|
184
|
+
key: c.title ?? "found"
|
|
478
185
|
}, [
|
|
479
|
-
|
|
480
|
-
(
|
|
481
|
-
id:
|
|
186
|
+
c.title ? (w(), $("p", et, T(c.title), 1)) : J("", !0),
|
|
187
|
+
(w(!0), $(ee, null, le(c.countries, (u, b) => (w(), $("div", {
|
|
188
|
+
id: U(u),
|
|
482
189
|
key: u,
|
|
483
190
|
role: "option",
|
|
484
|
-
"aria-selected": (
|
|
191
|
+
"aria-selected": (z.value[n] ?? 0) + b === d.value,
|
|
485
192
|
"data-test": "country-option",
|
|
486
193
|
"data-country": u,
|
|
487
|
-
class:
|
|
488
|
-
onMousedown:
|
|
194
|
+
class: P(["flex cursor-pointer items-center gap-2.5 rounded-control px-2 py-2 text-body", (z.value[n] ?? 0) + b === d.value ? "bg-tint-soft" : "hover:bg-fill"]),
|
|
195
|
+
onMousedown: s[1] || (s[1] = xe(() => {
|
|
489
196
|
}, ["prevent"])),
|
|
490
|
-
onMouseenter: (
|
|
491
|
-
onClick: (
|
|
197
|
+
onMouseenter: (m) => d.value = (z.value[n] ?? 0) + b,
|
|
198
|
+
onClick: (m) => R(u)
|
|
492
199
|
}, [
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
class:
|
|
496
|
-
},
|
|
497
|
-
|
|
498
|
-
], 42,
|
|
200
|
+
M(ue, { country: u }, null, 8, ["country"]),
|
|
201
|
+
f("span", {
|
|
202
|
+
class: P(["min-w-0 flex-1 truncate text-content-strong", u === l.value ? "font-semibold" : ""])
|
|
203
|
+
}, T(S(u)), 3),
|
|
204
|
+
f("span", ot, T(i(de)(u)), 1)
|
|
205
|
+
], 42, tt))), 128))
|
|
499
206
|
], 64))), 128)),
|
|
500
|
-
|
|
501
|
-
], 8,
|
|
502
|
-
|
|
503
|
-
|
|
207
|
+
y.value.length === 0 ? (w(), $("p", nt, T(i(p)("core.form.phone.no_match")), 1)) : J("", !0)
|
|
208
|
+
], 8, Ze),
|
|
209
|
+
f("div", at, [
|
|
210
|
+
we(f("input", {
|
|
504
211
|
ref_key: "search",
|
|
505
|
-
ref:
|
|
506
|
-
"onUpdate:modelValue":
|
|
212
|
+
ref: K,
|
|
213
|
+
"onUpdate:modelValue": s[2] || (s[2] = (c) => v.value = c),
|
|
507
214
|
type: "text",
|
|
508
215
|
role: "combobox",
|
|
509
216
|
autocomplete: "off",
|
|
510
217
|
"aria-autocomplete": "list",
|
|
511
218
|
"aria-expanded": "true",
|
|
512
219
|
"aria-controls": `${r.id}-countries`,
|
|
513
|
-
"aria-activedescendant":
|
|
514
|
-
"aria-label":
|
|
515
|
-
placeholder:
|
|
220
|
+
"aria-activedescendant": y.value[d.value] ? U(y.value[d.value]) : void 0,
|
|
221
|
+
"aria-label": i(p)("core.form.phone.search"),
|
|
222
|
+
placeholder: i(p)("core.form.phone.search"),
|
|
516
223
|
"data-test": "country-search",
|
|
517
224
|
class: "block w-full border-0 bg-transparent p-0 text-body text-content-strong placeholder:text-content-muted focus:outline-none focus:ring-0",
|
|
518
|
-
onKeydown:
|
|
519
|
-
}, null, 40,
|
|
520
|
-
[
|
|
225
|
+
onKeydown: G
|
|
226
|
+
}, null, 40, rt), [
|
|
227
|
+
[_e, v.value]
|
|
521
228
|
])
|
|
522
229
|
])
|
|
523
|
-
], 4)) :
|
|
230
|
+
], 4)) : J("", !0)
|
|
524
231
|
], 544));
|
|
525
232
|
}
|
|
526
|
-
}),
|
|
233
|
+
}), st = Symbol("vue-core.phoneDefaults"), it = { class: "w-full min-w-0" }, ut = ["id", "value", "name", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], ct = {
|
|
527
234
|
key: 0,
|
|
528
235
|
class: "mt-1.5 flex items-center gap-1.5 text-footnote text-status-success-content",
|
|
529
236
|
"data-test": "phone-kind"
|
|
530
|
-
},
|
|
237
|
+
}, dt = ["href", "aria-label", "title"], ft = ["href", "aria-label", "title"], mt = ["aria-label", "title"], pt = {
|
|
531
238
|
class: "sr-only",
|
|
532
239
|
role: "status"
|
|
533
|
-
},
|
|
240
|
+
}, $t = /* @__PURE__ */ fe({
|
|
534
241
|
__name: "PhoneField",
|
|
535
|
-
props: /* @__PURE__ */
|
|
242
|
+
props: /* @__PURE__ */ ae(/* @__PURE__ */ Ie({
|
|
536
243
|
label: {},
|
|
537
244
|
hint: {},
|
|
538
245
|
error: {},
|
|
@@ -546,89 +253,89 @@ const ee = ["id", "disabled", "aria-label", "aria-expanded"], oe = { class: "tab
|
|
|
546
253
|
commonCountries: {},
|
|
547
254
|
placeholder: {},
|
|
548
255
|
width: {}
|
|
549
|
-
}, { ...
|
|
256
|
+
}, { ...Be, defaultCountry: void 0, commonCountries: void 0, placeholder: void 0, width: "lg" }), {
|
|
550
257
|
modelValue: { default: "" },
|
|
551
258
|
modelModifiers: {}
|
|
552
259
|
}),
|
|
553
260
|
emits: ["update:modelValue"],
|
|
554
|
-
setup(
|
|
555
|
-
const o =
|
|
556
|
-
let
|
|
557
|
-
function
|
|
558
|
-
|
|
261
|
+
setup(t, { expose: a }) {
|
|
262
|
+
const o = t, r = me(t, "modelValue"), { t: l, locale: x } = pe(), p = ke(st, {}), _ = !!Ve(), h = Oe("text", () => o.error || R.value ? "error" : o.disabled ? "locked" : "rest"), V = g(() => _ ? Pe(o.width) : "w-full"), k = F("input"), K = g(() => o.defaultCountry ?? p.defaultCountry ?? (o.commonCountries ?? p.commonCountries ?? ce)[0] ?? "HR"), C = g(() => o.commonCountries ?? p.commonCountries ?? ce), v = Ce(K.value), d = B("");
|
|
263
|
+
let O = null;
|
|
264
|
+
function S(n) {
|
|
265
|
+
v.value = n.country, d.value = n.text;
|
|
559
266
|
}
|
|
560
|
-
|
|
561
|
-
n !==
|
|
267
|
+
ne(() => r.value, (n) => {
|
|
268
|
+
n !== O && (O = null, S(oe(n, v.value)));
|
|
562
269
|
}, { immediate: !0 });
|
|
563
|
-
function
|
|
564
|
-
|
|
270
|
+
function D(n) {
|
|
271
|
+
S(n), O = n.e164, r.value = n.e164;
|
|
565
272
|
}
|
|
566
|
-
const
|
|
567
|
-
async function
|
|
568
|
-
await
|
|
569
|
-
const u =
|
|
273
|
+
const y = (n) => n.replace(/\D/g, "").length;
|
|
274
|
+
async function z(n) {
|
|
275
|
+
await A();
|
|
276
|
+
const u = k.value;
|
|
570
277
|
if (!u || document.activeElement !== u) return;
|
|
571
|
-
u.value =
|
|
572
|
-
let
|
|
573
|
-
for (;
|
|
574
|
-
u.setSelectionRange(
|
|
278
|
+
u.value = d.value;
|
|
279
|
+
let b = 0, m = 0;
|
|
280
|
+
for (; m < d.value.length && b < n; ) /\d/.test(d.value[m++] ?? "") && b++;
|
|
281
|
+
u.setSelectionRange(m, m);
|
|
575
282
|
}
|
|
576
|
-
function
|
|
577
|
-
const u = n.target,
|
|
578
|
-
let
|
|
283
|
+
function U(n) {
|
|
284
|
+
const u = n.target, b = u.selectionStart ?? u.value.length;
|
|
285
|
+
let m = u.value, I = y(m.slice(0, b));
|
|
579
286
|
const X = n.inputType ?? "";
|
|
580
|
-
if (X.startsWith("delete") &&
|
|
581
|
-
const
|
|
582
|
-
|
|
287
|
+
if (X.startsWith("delete") && y(m) === y(d.value) && y(m) > 0) {
|
|
288
|
+
const Z = m.replace(/\D/g, ""), Y = X === "deleteContentForward" ? I : I - 1;
|
|
289
|
+
Y >= 0 && Y < Z.length && (m = (m.trimStart().startsWith("+") ? "+" : "") + Z.slice(0, Y) + Z.slice(Y + 1), I = Math.max(0, I - (X === "deleteContentForward" ? 0 : 1)));
|
|
583
290
|
}
|
|
584
|
-
|
|
291
|
+
D(oe(m, v.value)), z(I);
|
|
585
292
|
}
|
|
586
293
|
function Q(n) {
|
|
587
294
|
const u = n.clipboardData?.getData("text")?.trim() ?? "";
|
|
588
|
-
/^(\+|00)\d/.test(u) && (n.preventDefault(),
|
|
295
|
+
/^(\+|00)\d/.test(u) && (n.preventDefault(), D(oe(u, v.value)), A(() => k.value?.setSelectionRange(d.value.length, d.value.length)));
|
|
589
296
|
}
|
|
590
|
-
function
|
|
591
|
-
|
|
297
|
+
function j(n) {
|
|
298
|
+
D(Ue({ country: v.value, e164: r.value, text: d.value }, n)), A(() => k.value?.focus());
|
|
592
299
|
}
|
|
593
|
-
const
|
|
594
|
-
const n =
|
|
300
|
+
const N = B(!1), R = g(() => N.value && r.value !== "" ? ye(r.value) : null), H = g(() => {
|
|
301
|
+
const n = R.value;
|
|
595
302
|
if (n)
|
|
596
|
-
return n.country ?
|
|
597
|
-
}),
|
|
598
|
-
let
|
|
599
|
-
async function
|
|
303
|
+
return n.country ? l(`core.form.phone.${n.kind}`, { country: be(n.country, x.value) }) : l("core.form.phone.invalid_any");
|
|
304
|
+
}), G = g(() => r.value !== "" && !R.value ? Ge(r.value) : void 0), E = g(() => je(r.value)), e = B(!1);
|
|
305
|
+
let s = null;
|
|
306
|
+
async function c() {
|
|
600
307
|
try {
|
|
601
|
-
await navigator.clipboard.writeText(
|
|
308
|
+
await navigator.clipboard.writeText(E.value);
|
|
602
309
|
} catch {
|
|
603
310
|
return;
|
|
604
311
|
}
|
|
605
|
-
|
|
312
|
+
e.value = !0, s && clearTimeout(s), s = setTimeout(() => e.value = !1, 1800);
|
|
606
313
|
}
|
|
607
|
-
return
|
|
608
|
-
value: r.value === "" ? null :
|
|
314
|
+
return $e(() => s && clearTimeout(s)), a({ focus: () => k.value?.focus() }), (n, u) => (w(), De(Re, Me({ ...i(Ee)(o), error: o.error ?? H.value }, {
|
|
315
|
+
value: r.value === "" ? null : E.value,
|
|
609
316
|
"value-style": "numeric"
|
|
610
|
-
}),
|
|
611
|
-
default:
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
class:
|
|
317
|
+
}), Te({
|
|
318
|
+
default: se(({ id: b, describedby: m, invalid: I }) => [
|
|
319
|
+
f("div", it, [
|
|
320
|
+
f("div", {
|
|
321
|
+
class: P(["flex items-stretch gap-1.5", V.value])
|
|
615
322
|
}, [
|
|
616
|
-
|
|
617
|
-
id:
|
|
618
|
-
"model-value":
|
|
619
|
-
common:
|
|
323
|
+
M(lt, {
|
|
324
|
+
id: b,
|
|
325
|
+
"model-value": v.value,
|
|
326
|
+
common: C.value,
|
|
620
327
|
disabled: o.disabled,
|
|
621
|
-
surface: `${
|
|
622
|
-
onPicked:
|
|
328
|
+
surface: `${i(h)} px-2.5`,
|
|
329
|
+
onPicked: j
|
|
623
330
|
}, null, 8, ["id", "model-value", "common", "disabled", "surface"]),
|
|
624
|
-
|
|
625
|
-
class:
|
|
331
|
+
f("div", {
|
|
332
|
+
class: P(["min-w-0 flex-1", i(h)])
|
|
626
333
|
}, [
|
|
627
|
-
|
|
628
|
-
id:
|
|
334
|
+
f("input", {
|
|
335
|
+
id: b,
|
|
629
336
|
ref_key: "input",
|
|
630
|
-
ref:
|
|
631
|
-
value:
|
|
337
|
+
ref: k,
|
|
338
|
+
value: d.value,
|
|
632
339
|
type: "tel",
|
|
633
340
|
inputmode: "tel",
|
|
634
341
|
autocomplete: "tel-national",
|
|
@@ -637,80 +344,80 @@ const ee = ["id", "disabled", "aria-label", "aria-expanded"], oe = { class: "tab
|
|
|
637
344
|
disabled: o.disabled,
|
|
638
345
|
required: o.required,
|
|
639
346
|
"aria-required": o.required || void 0,
|
|
640
|
-
"aria-invalid":
|
|
641
|
-
"aria-describedby":
|
|
347
|
+
"aria-invalid": I || void 0,
|
|
348
|
+
"aria-describedby": m,
|
|
642
349
|
"data-test": "phone-input",
|
|
643
350
|
class: "block w-full min-w-0 border-0 bg-transparent px-0 py-1 text-body tabular-nums text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
|
|
644
|
-
onInput:
|
|
351
|
+
onInput: U,
|
|
645
352
|
onPaste: Q,
|
|
646
|
-
onBlur: u[0] || (u[0] = (X) =>
|
|
647
|
-
}, null, 40,
|
|
353
|
+
onBlur: u[0] || (u[0] = (X) => N.value = !0)
|
|
354
|
+
}, null, 40, ut)
|
|
648
355
|
], 2)
|
|
649
356
|
], 2),
|
|
650
|
-
|
|
651
|
-
|
|
357
|
+
G.value && !(o.error ?? H.value) ? (w(), $("p", ct, [
|
|
358
|
+
M(i(q), {
|
|
652
359
|
name: "checkCustom",
|
|
653
360
|
size: 14,
|
|
654
361
|
class: "shrink-0"
|
|
655
362
|
}),
|
|
656
|
-
|
|
657
|
-
])) :
|
|
363
|
+
Se(" " + T(i(l)(`core.form.phone.kind_${G.value}`)), 1)
|
|
364
|
+
])) : J("", !0)
|
|
658
365
|
])
|
|
659
366
|
]),
|
|
660
367
|
_: 2
|
|
661
368
|
}, [
|
|
662
369
|
r.value !== "" ? {
|
|
663
370
|
name: "readonly",
|
|
664
|
-
fn:
|
|
665
|
-
|
|
666
|
-
class:
|
|
371
|
+
fn: se(() => [
|
|
372
|
+
f("div", {
|
|
373
|
+
class: P(["flex w-full min-w-0 flex-wrap items-center gap-x-2 gap-y-1.5", _ ? "justify-end" : ""]),
|
|
667
374
|
"data-test": "phone-read"
|
|
668
375
|
}, [
|
|
669
|
-
|
|
670
|
-
class:
|
|
671
|
-
},
|
|
672
|
-
|
|
376
|
+
f("span", {
|
|
377
|
+
class: P(["flex-auto whitespace-nowrap text-body tabular-nums text-content-strong", _ ? "text-right" : ""])
|
|
378
|
+
}, T(E.value), 3),
|
|
379
|
+
f("a", {
|
|
673
380
|
href: `tel:${r.value}`,
|
|
674
|
-
"aria-label":
|
|
675
|
-
title:
|
|
381
|
+
"aria-label": i(l)("core.form.phone.call"),
|
|
382
|
+
title: i(l)("core.form.phone.call"),
|
|
676
383
|
"data-test": "phone-call",
|
|
677
384
|
class: "flex size-9 shrink-0 items-center justify-center rounded-full bg-tint-soft text-content-link transition-colors duration-motion-fast hover:bg-fill focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus"
|
|
678
385
|
}, [
|
|
679
|
-
|
|
386
|
+
M(i(q), {
|
|
680
387
|
name: "phone",
|
|
681
388
|
size: 18
|
|
682
389
|
})
|
|
683
|
-
], 8,
|
|
684
|
-
|
|
390
|
+
], 8, dt),
|
|
391
|
+
f("a", {
|
|
685
392
|
href: `sms:${r.value}`,
|
|
686
|
-
"aria-label":
|
|
687
|
-
title:
|
|
393
|
+
"aria-label": i(l)("core.form.phone.message"),
|
|
394
|
+
title: i(l)("core.form.phone.message"),
|
|
688
395
|
"data-test": "phone-message",
|
|
689
396
|
class: "flex size-9 shrink-0 items-center justify-center rounded-full bg-tint-soft text-content-link transition-colors duration-motion-fast hover:bg-fill focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus"
|
|
690
397
|
}, [
|
|
691
|
-
|
|
398
|
+
M(i(q), {
|
|
692
399
|
name: "message",
|
|
693
400
|
size: 18
|
|
694
401
|
})
|
|
695
|
-
], 8,
|
|
696
|
-
|
|
402
|
+
], 8, ft),
|
|
403
|
+
Ne(n.$slots, "actions", {
|
|
697
404
|
number: r.value,
|
|
698
|
-
formatted:
|
|
405
|
+
formatted: E.value
|
|
699
406
|
}),
|
|
700
|
-
|
|
407
|
+
f("button", {
|
|
701
408
|
type: "button",
|
|
702
|
-
"aria-label":
|
|
703
|
-
title:
|
|
409
|
+
"aria-label": i(l)("core.form.phone.copy"),
|
|
410
|
+
title: i(l)("core.form.phone.copy"),
|
|
704
411
|
"data-test": "phone-copy",
|
|
705
412
|
class: "flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full bg-fill text-content-strong transition-colors duration-motion-fast hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
|
|
706
|
-
onClick:
|
|
413
|
+
onClick: c
|
|
707
414
|
}, [
|
|
708
|
-
|
|
709
|
-
name:
|
|
415
|
+
M(i(q), {
|
|
416
|
+
name: e.value ? "checkCustom" : "copy",
|
|
710
417
|
size: 18
|
|
711
418
|
}, null, 8, ["name"])
|
|
712
|
-
], 8,
|
|
713
|
-
|
|
419
|
+
], 8, mt),
|
|
420
|
+
f("span", pt, T(e.value ? i(l)("core.form.phone.copied") : ""), 1)
|
|
714
421
|
], 2)
|
|
715
422
|
]),
|
|
716
423
|
key: "0"
|
|
@@ -719,14 +426,14 @@ const ee = ["id", "disabled", "aria-label", "aria-expanded"], oe = { class: "tab
|
|
|
719
426
|
}
|
|
720
427
|
});
|
|
721
428
|
export {
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
429
|
+
ce as COMMON_COUNTRIES,
|
|
430
|
+
$t as PhoneField,
|
|
431
|
+
be as countryName,
|
|
432
|
+
de as dialCode,
|
|
433
|
+
je as formatInternational,
|
|
434
|
+
Ct as isValidPhone,
|
|
435
|
+
Xe as phoneCountry,
|
|
436
|
+
st as phoneDefaultsKey,
|
|
437
|
+
Ge as phoneKind,
|
|
438
|
+
ye as phoneProblem
|
|
732
439
|
};
|