@ozdao/martyrs 0.2.482 → 0.2.483
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Media-JBERcJWj.js → Media-C57G7rnE.js} +1 -1
- package/dist/{Media-p7Q8ZAQM.cjs → Media-DjnpKS62.cjs} +1 -1
- package/dist/_virtual/_commonjsHelpers.cjs +2 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +2 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/index2.cjs +8 -0
- package/dist/_virtual/index2.cjs.map +1 -0
- package/dist/_virtual/index2.js +8 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.cjs +5 -0
- package/dist/_virtual/index3.cjs.map +1 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/{main-AtCVQKF9.js → main-CXQqAVVb.js} +2002 -1937
- package/dist/main-De5X_RUk.cjs +11 -0
- package/dist/martyrs/src/components/Button/{Button.vue2.cjs → Button.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Button/{Button.vue2.js.map → Button.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Button/{Button.vue2.js → Button.vue.js} +2 -2
- package/dist/martyrs/src/components/Button/Button.vue.js.map +1 -0
- package/dist/martyrs/src/components/Chips/{Chips.vue2.cjs → Chips.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Chips/{Chips.vue2.js → Chips.vue.js} +2 -2
- package/dist/martyrs/src/components/Chips/Chips.vue.js.map +1 -0
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.cjs +141 -113
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.js +142 -114
- package/dist/martyrs/src/components/FieldPhone/FieldPhone.vue.js.map +1 -1
- package/dist/martyrs/src/components/Popup/{Popup.vue2.cjs → Popup.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Popup/{Popup.vue2.js.map → Popup.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Popup/{Popup.vue2.js → Popup.vue.js} +2 -2
- package/dist/martyrs/src/components/Popup/Popup.vue.js.map +1 -0
- package/dist/martyrs/src/components/Status/Status.vue.cjs +11 -5
- package/dist/martyrs/src/components/Status/Status.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Status/Status.vue.js +13 -7
- package/dist/martyrs/src/components/Status/Status.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +6 -4
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +6 -4
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditAccount.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEditProfile.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +17 -39
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js +18 -40
- package/dist/martyrs/src/modules/auth/views/components/sections/SliderFeatures.vue.js.map +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterCode.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterCode.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterPassword.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/EnterPassword.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/ResetPassword.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/ResetPassword.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignIn.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignIn.json.js +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignUp.json.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/localization/SignUp.json.js +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +3 -3
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +3 -3
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/martyrs/src/modules/globals/globals.client.cjs +11 -0
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +11 -0
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- package/dist/martyrs/src/modules/globals/locales/en.cjs +24 -0
- package/dist/martyrs/src/modules/globals/locales/en.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/locales/en.js +24 -0
- package/dist/martyrs/src/modules/globals/locales/en.js.map +1 -0
- package/dist/martyrs/src/modules/globals/locales/ru.cjs +24 -0
- package/dist/martyrs/src/modules/globals/locales/ru.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/locales/ru.js +24 -0
- package/dist/martyrs/src/modules/globals/locales/ru.js.map +1 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs +71 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.cjs.map +1 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js +71 -0
- package/dist/martyrs/src/modules/globals/views/classes/globals.i18n.js.map +1 -0
- package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/AlertDialog.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupAuth.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +51 -45
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +51 -45
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/store/globals.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/views/store/globals.js.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs +52 -58
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js +52 -58
- package/dist/martyrs/src/modules/marketplace/views/components/layouts/Marketplace.vue.js.map +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.cjs +1 -1
- package/dist/martyrs/src/modules/notifications/components/elements/NotificationBadge.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +2 -2
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductDiscounts.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/blocks/ProductImages.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/pages/LeftoverEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +3 -3
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +3 -3
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditAttributes.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditDiscounts.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditIngredients.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditRecommended.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +2 -2
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductConfigurator.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs +2 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js +2 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsPopular.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/ProductsRecommended.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/RentsEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +2 -2
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.cjs +3 -3
- package/dist/martyrs/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
- package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.cjs +1 -1
- package/dist/martyrs/src/modules/wallet/views/localization/wallet.json.js +1 -1
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.cjs +1 -1
- package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
- package/dist/node_modules/lodash.merge/index.cjs +689 -0
- package/dist/node_modules/lodash.merge/index.cjs.map +1 -0
- package/dist/node_modules/lodash.merge/index.js +689 -0
- package/dist/node_modules/lodash.merge/index.js.map +1 -0
- package/dist/style.css +53 -75
- package/package.json +1 -1
- package/src/components/FieldPhone/FieldPhone.vue +337 -238
- package/src/components/Status/Status.vue +10 -7
- package/src/modules/auth/views/components/layouts/Auth.vue +1 -1
- package/src/modules/auth/views/components/sections/SliderFeatures.vue +13 -79
- package/src/modules/auth/views/localization/EnterCode.json +2 -2
- package/src/modules/auth/views/localization/EnterPassword.json +2 -2
- package/src/modules/auth/views/localization/ResetPassword.json +2 -2
- package/src/modules/auth/views/localization/SignIn.json +2 -2
- package/src/modules/auth/views/localization/SignUp.json +2 -2
- package/src/modules/globals/globals.client.js +15 -1
- package/src/modules/globals/locales/en.js +21 -0
- package/src/modules/globals/locales/index.js +8 -0
- package/src/modules/globals/locales/ru.js +21 -0
- package/src/modules/globals/views/classes/globals.i18n.js +84 -0
- package/src/modules/globals/views/components/layouts/Client.vue +43 -40
- package/src/modules/globals/views/components/partials/Footer.vue +162 -162
- package/src/modules/globals/views/store/globals.js +0 -40
- package/src/modules/marketplace/views/components/layouts/Marketplace.vue +34 -38
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/sections/ProductsPopular.vue +3 -2
- package/src/modules/wallet/views/localization/wallet.json +2 -2
- package/dist/main-B-we7C0w.cjs +0 -11
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Chips/Chips.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Popup/Popup.vue2.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +0 -194
- package/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +0 -194
- package/dist/node_modules/.pnpm/embla-carousel-autoplay@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +0 -43
- package/dist/node_modules/.pnpm/embla-carousel-vue@8.6.0_vue@3.5.13_typescript@5.8.3_/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +0 -1630
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs.map +0 -1
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +0 -1630
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const Loader = require("../Loader/Loader.vue2.cjs");
|
|
5
|
-
;/* empty css
|
|
5
|
+
;/* empty css */
|
|
6
6
|
const _hoisted_1 = ["disabled"];
|
|
7
7
|
const _hoisted_2 = {
|
|
8
8
|
key: 2,
|
|
@@ -128,4 +128,4 @@ const _sfc_main = {
|
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
exports.default = _sfc_main;
|
|
131
|
-
//# sourceMappingURL=Button.
|
|
131
|
+
//# sourceMappingURL=Button.vue.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.
|
|
1
|
+
{"version":3,"file":"Button.vue.cjs","sources":["../../../../../src/components/Button/Button.vue"],"sourcesContent":["<script setup>\n\timport { ref } from 'vue'\n\n\timport Loader from '@martyrs/src/components/Loader/Loader.vue'\n\n\tconst props = defineProps({\n\t\tsubmit: {\n\t\t\ttype: Function,\n\t\t\tdefault: async () => { console.log('Button click.') }\n\t\t},\n\t\ttext: {\n\t\t\ttype: Object,\n\t\t\tdefault: (textComponent) => {\n\t\t\t\treturn textComponent = {\n\t\t\t\t\t...textComponent.text,\n\t\t\t\t\tsuccess: '✔',\n\t\t\t\t\terror: '✖'\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tcounter: {\n\t type: Object\n\t },\n\t\tcallback: {\n\t\t\ttype: Function,\n\t\t\tdefault: async () => { console.log('Button callback.') }\n\t\t},\n\t\tcallbackDelay: {\n\t\t\ttype: Number,\n\t\t\tdefault: 750\n\t\t},\n\t\tshowSucces: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true\n\t\t},\n\t\tshowLoader: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true\n\t\t},\n\t\tvalidation: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t})\t\n\n\tconst emits = defineEmits(['error'])\n\n\tconst button = ref(null);\n\tconst error = ref(null);\n\tconst loading = ref(false);\n\tconst finished = ref(false);\n\n\tasync function Submit() {\n\t\t\tconsole.log('click')\n\t\t\t\n\t button.value.style['pointer-events'] = 'none';\n\t error.value = null;\n\t loading.value = true;\n\n\t // Функция для сброса состояния кнопки.\n\t const resetButton = () => {\n if (button.value) {\n // button.value.classList.replace('bg-second', 'bg-main');\n button.value.style.pointerEvents = 'auto';\n loading.value = false;\n finished.value = false;\n error.value = null;\n }\n\t };\n\n\t try {\n await props.submit();\n\n button.value.classList.replace('bg-main', 'bg-second');\n\n loading.value = false;\n\n // Используем функцию сброса состояния кнопки здесь.\n if (props.showSucces) { \n\t\t\t\t\tfinished.value = true;\n setTimeout(resetButton, 500);\n } else {\n resetButton();\n }\n\n // Если есть callback, мы также установим таймер для его вызова.\n if (props.callback) setTimeout(() => props.callback(), props.callbackDelay);\n\n\t } catch (err) {\n \t\temits('error',err)\n // Если возникла ошибка, мы изменяем стили и устанавливаем сообщение об ошибке.\n button.value.classList.replace('bg-main', 'bg-fourth-nano');\n error.value = props.error;\n \n // После задержки снова сбрасываем состояние кнопки.\n setTimeout(() => {\n resetButton();\n // Так как класс кнопки был изменен, вернем его в исходное состояние.\n button.value.classList.replace('bg-fourth-nano', 'bg-main');\n }, 1330);\n\t }\n\t}\n\n</script>\n\n<template>\n\t<button @click.stop=\"Submit\" :disabled=\"validation\" ref=\"button\" class=\"button\">\n\t\t<transition name=\"FromTop\" >\n\t\t\t<!-- Slot -->\n\t\t\t<template v-if=\"!loading && !error && !finished || !showLoader\"><slot></slot></template>\n\t\t\t<!-- Loading Circle Animation -->\n\t\t\t<template v-else-if=\"loading && !error && showLoader\"><Loader class=\"pos-relative pos-t-0 pos-l-0 loading\"/></template>\n\t\t\t<!-- <Loader v-else-if=\"loading && !error && showLoader\"/> -->\n\t\t\t<!-- Success -->\n\t\t\t<span v-else-if=\"finished && showSucces\" class=\"t-semi t-center w-100 loading t-black\">{{text.success}}</span>\n\t\t\t<!-- Error if not finished -->\n\t\t\t<span v-else-if=\"error\" class=\"t-center w-100 error\">{{ error }}</span>\n\t\t</transition>\n\t\t<!-- Counter -->\n\t\t<div v-if=\"counter\" class=\"button-counter flex-center\"><span>{{counter}}</span></div> \n\n\t</button> \n</template>\n\n\n<style lang=\"scss\">\n\t.FromTop-enter-active,\n\t.FromTop-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.FromTop-enter-from,\n\t.FromTop-leave-to {\n\t\tposition: absolute;\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\n\tbutton[disabled] {\n\t\topacity: 0.75 !important;\n\t \tpointer-events: none !important;\n\t \tcursor: default !important;\n\t \tcolor: rgba(var(--dark), 0.33) !important;\n\t\tbackground: rgba(var(--light), 1) !important; \n\t}\n\n\ta.button {\n\t\t\ttext-box: trim-both cap alphabetic;\n\t}\n\n\t.button {\n\t\tdisplay: flex;\n\n\t\tpadding: 0.5rem;\n\t\tborder-radius: 3rem;\n\t\ttext-box: trim-both cap alphabetic;\n\n\t\ttransform: scale(1);\n\t\topacity: 1;\n\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\t\n\t\tcolor: black;\n\t\ttext-align: center;\n\t\ttext-transform: uppercase;\n\t\tfont-size: 1rem;\n\t\tletter-spacing: 5%;\n\n\t\ttransition: all 0.33s ease;\n\t \n\t\t&:hover {\n\t\t\tcursor: pointer;\n\t\t\topacity: 0.9;\n\t\t}\n\n\t\t&:active {\n\t\t\ttransform: scale(0.95);\n\t\t}\n\n\t\t&-small {\n\t\t\tpadding: 0.75rem;\n\t\t\tborder-radius: 0.5rem;\n\t\t\theight: fit-content;\n\t\t}\n\n\t\t.button-counter {\n\t\t\tposition: absolute;\n\t\t\tright: -8px;\n\t bottom: -8px;\n\t background: yellow;\n\t height: 16px;\n\t border-radius: 16px;\n\t width: 16px;\n\t font-weight: 500;\n\t text-align: center;\n\t line-height: 16px;\n\t font-size: 10px;\n\t\t}\n\t}\n</style>"],"names":["ref"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKC,UAAM,QAAQ;AAwCd,UAAM,QAAQ;AAEd,UAAM,SAASA,IAAG,IAAC,IAAI;AACvB,UAAM,QAAQA,IAAG,IAAC,IAAI;AACtB,UAAM,UAAUA,IAAG,IAAC,KAAK;AACzB,UAAM,WAAWA,IAAG,IAAC,KAAK;AAE1B,mBAAe,SAAS;AACtB,cAAQ,IAAI,OAAO;AAEjB,aAAO,MAAM,MAAM,gBAAgB,IAAI;AACvC,YAAM,QAAQ;AACd,cAAQ,QAAQ;AAGhB,YAAM,cAAc,MAAM;AACvB,YAAI,OAAO,OAAO;AAEhB,iBAAO,MAAM,MAAM,gBAAgB;AACnC,kBAAQ,QAAQ;AAChB,mBAAS,QAAQ;AACjB,gBAAM,QAAQ;AAAA,QACxB;AAAA,MACM;AAED,UAAI;AACD,cAAM,MAAM,OAAQ;AAEpB,eAAO,MAAM,UAAU,QAAQ,WAAW,WAAW;AAErD,gBAAQ,QAAQ;AAGhB,YAAI,MAAM,YAAY;AACzB,mBAAS,QAAQ;AACZ,qBAAW,aAAa,GAAG;AAAA,QACrC,OAAe;AACL,sBAAa;AAAA,QACvB;AAGQ,YAAI,MAAM,SAAU,YAAW,MAAM,MAAM,SAAU,GAAE,MAAM,aAAa;AAAA,MAE5E,SAAQ,KAAK;AACb,cAAM,SAAQ,GAAG;AAEf,eAAO,MAAM,UAAU,QAAQ,WAAW,gBAAgB;AAC1D,cAAM,QAAQ,MAAM;AAGpB,mBAAW,MAAM;AACf,sBAAa;AAEb,iBAAO,MAAM,UAAU,QAAQ,kBAAkB,SAAS;AAAA,QAC3D,GAAE,IAAI;AAAA,MACf;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, createElementBlock, openBlock, withModifiers, createVNode, createCommentVNode, Transition, withCtx, renderSlot, createBlock, toDisplayString, createElementVNode } from "vue";
|
|
2
2
|
import Loader from "../Loader/Loader.vue2.js";
|
|
3
|
-
/* empty css
|
|
3
|
+
/* empty css */
|
|
4
4
|
const _hoisted_1 = ["disabled"];
|
|
5
5
|
const _hoisted_2 = {
|
|
6
6
|
key: 2,
|
|
@@ -128,4 +128,4 @@ const _sfc_main = {
|
|
|
128
128
|
export {
|
|
129
129
|
_sfc_main as default
|
|
130
130
|
};
|
|
131
|
-
//# sourceMappingURL=Button.
|
|
131
|
+
//# sourceMappingURL=Button.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.vue.js","sources":["../../../../../src/components/Button/Button.vue"],"sourcesContent":["<script setup>\n\timport { ref } from 'vue'\n\n\timport Loader from '@martyrs/src/components/Loader/Loader.vue'\n\n\tconst props = defineProps({\n\t\tsubmit: {\n\t\t\ttype: Function,\n\t\t\tdefault: async () => { console.log('Button click.') }\n\t\t},\n\t\ttext: {\n\t\t\ttype: Object,\n\t\t\tdefault: (textComponent) => {\n\t\t\t\treturn textComponent = {\n\t\t\t\t\t...textComponent.text,\n\t\t\t\t\tsuccess: '✔',\n\t\t\t\t\terror: '✖'\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tcounter: {\n\t type: Object\n\t },\n\t\tcallback: {\n\t\t\ttype: Function,\n\t\t\tdefault: async () => { console.log('Button callback.') }\n\t\t},\n\t\tcallbackDelay: {\n\t\t\ttype: Number,\n\t\t\tdefault: 750\n\t\t},\n\t\tshowSucces: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true\n\t\t},\n\t\tshowLoader: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true\n\t\t},\n\t\tvalidation: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t})\t\n\n\tconst emits = defineEmits(['error'])\n\n\tconst button = ref(null);\n\tconst error = ref(null);\n\tconst loading = ref(false);\n\tconst finished = ref(false);\n\n\tasync function Submit() {\n\t\t\tconsole.log('click')\n\t\t\t\n\t button.value.style['pointer-events'] = 'none';\n\t error.value = null;\n\t loading.value = true;\n\n\t // Функция для сброса состояния кнопки.\n\t const resetButton = () => {\n if (button.value) {\n // button.value.classList.replace('bg-second', 'bg-main');\n button.value.style.pointerEvents = 'auto';\n loading.value = false;\n finished.value = false;\n error.value = null;\n }\n\t };\n\n\t try {\n await props.submit();\n\n button.value.classList.replace('bg-main', 'bg-second');\n\n loading.value = false;\n\n // Используем функцию сброса состояния кнопки здесь.\n if (props.showSucces) { \n\t\t\t\t\tfinished.value = true;\n setTimeout(resetButton, 500);\n } else {\n resetButton();\n }\n\n // Если есть callback, мы также установим таймер для его вызова.\n if (props.callback) setTimeout(() => props.callback(), props.callbackDelay);\n\n\t } catch (err) {\n \t\temits('error',err)\n // Если возникла ошибка, мы изменяем стили и устанавливаем сообщение об ошибке.\n button.value.classList.replace('bg-main', 'bg-fourth-nano');\n error.value = props.error;\n \n // После задержки снова сбрасываем состояние кнопки.\n setTimeout(() => {\n resetButton();\n // Так как класс кнопки был изменен, вернем его в исходное состояние.\n button.value.classList.replace('bg-fourth-nano', 'bg-main');\n }, 1330);\n\t }\n\t}\n\n</script>\n\n<template>\n\t<button @click.stop=\"Submit\" :disabled=\"validation\" ref=\"button\" class=\"button\">\n\t\t<transition name=\"FromTop\" >\n\t\t\t<!-- Slot -->\n\t\t\t<template v-if=\"!loading && !error && !finished || !showLoader\"><slot></slot></template>\n\t\t\t<!-- Loading Circle Animation -->\n\t\t\t<template v-else-if=\"loading && !error && showLoader\"><Loader class=\"pos-relative pos-t-0 pos-l-0 loading\"/></template>\n\t\t\t<!-- <Loader v-else-if=\"loading && !error && showLoader\"/> -->\n\t\t\t<!-- Success -->\n\t\t\t<span v-else-if=\"finished && showSucces\" class=\"t-semi t-center w-100 loading t-black\">{{text.success}}</span>\n\t\t\t<!-- Error if not finished -->\n\t\t\t<span v-else-if=\"error\" class=\"t-center w-100 error\">{{ error }}</span>\n\t\t</transition>\n\t\t<!-- Counter -->\n\t\t<div v-if=\"counter\" class=\"button-counter flex-center\"><span>{{counter}}</span></div> \n\n\t</button> \n</template>\n\n\n<style lang=\"scss\">\n\t.FromTop-enter-active,\n\t.FromTop-leave-active {\n\t\ttransform: translateY(0);\n\t\topacity: 1;\n\t\ttransition: all 0.5s ease; \n\t\t\n\t}\n\t.FromTop-enter-from,\n\t.FromTop-leave-to {\n\t\tposition: absolute;\n\t\ttransform: translateY(-1rem);\n\t\topacity: 0;\n\t\ttransition: all 0.5s ease;\n\t}\n\n\tbutton[disabled] {\n\t\topacity: 0.75 !important;\n\t \tpointer-events: none !important;\n\t \tcursor: default !important;\n\t \tcolor: rgba(var(--dark), 0.33) !important;\n\t\tbackground: rgba(var(--light), 1) !important; \n\t}\n\n\ta.button {\n\t\t\ttext-box: trim-both cap alphabetic;\n\t}\n\n\t.button {\n\t\tdisplay: flex;\n\n\t\tpadding: 0.5rem;\n\t\tborder-radius: 3rem;\n\t\ttext-box: trim-both cap alphabetic;\n\n\t\ttransform: scale(1);\n\t\topacity: 1;\n\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\t\n\t\tcolor: black;\n\t\ttext-align: center;\n\t\ttext-transform: uppercase;\n\t\tfont-size: 1rem;\n\t\tletter-spacing: 5%;\n\n\t\ttransition: all 0.33s ease;\n\t \n\t\t&:hover {\n\t\t\tcursor: pointer;\n\t\t\topacity: 0.9;\n\t\t}\n\n\t\t&:active {\n\t\t\ttransform: scale(0.95);\n\t\t}\n\n\t\t&-small {\n\t\t\tpadding: 0.75rem;\n\t\t\tborder-radius: 0.5rem;\n\t\t\theight: fit-content;\n\t\t}\n\n\t\t.button-counter {\n\t\t\tposition: absolute;\n\t\t\tright: -8px;\n\t bottom: -8px;\n\t background: yellow;\n\t height: 16px;\n\t border-radius: 16px;\n\t width: 16px;\n\t font-weight: 500;\n\t text-align: center;\n\t line-height: 16px;\n\t font-size: 10px;\n\t\t}\n\t}\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKC,UAAM,QAAQ;AAwCd,UAAM,QAAQ;AAEd,UAAM,SAAS,IAAI,IAAI;AACvB,UAAM,QAAQ,IAAI,IAAI;AACtB,UAAM,UAAU,IAAI,KAAK;AACzB,UAAM,WAAW,IAAI,KAAK;AAE1B,mBAAe,SAAS;AACtB,cAAQ,IAAI,OAAO;AAEjB,aAAO,MAAM,MAAM,gBAAgB,IAAI;AACvC,YAAM,QAAQ;AACd,cAAQ,QAAQ;AAGhB,YAAM,cAAc,MAAM;AACvB,YAAI,OAAO,OAAO;AAEhB,iBAAO,MAAM,MAAM,gBAAgB;AACnC,kBAAQ,QAAQ;AAChB,mBAAS,QAAQ;AACjB,gBAAM,QAAQ;AAAA,QACxB;AAAA,MACM;AAED,UAAI;AACD,cAAM,MAAM,OAAQ;AAEpB,eAAO,MAAM,UAAU,QAAQ,WAAW,WAAW;AAErD,gBAAQ,QAAQ;AAGhB,YAAI,MAAM,YAAY;AACzB,mBAAS,QAAQ;AACZ,qBAAW,aAAa,GAAG;AAAA,QACrC,OAAe;AACL,sBAAa;AAAA,QACvB;AAGQ,YAAI,MAAM,SAAU,YAAW,MAAM,MAAM,SAAU,GAAE,MAAM,aAAa;AAAA,MAE5E,SAAQ,KAAK;AACb,cAAM,SAAQ,GAAG;AAEf,eAAO,MAAM,UAAU,QAAQ,WAAW,gBAAgB;AAC1D,cAAM,QAAQ,MAAM;AAGpB,mBAAW,MAAM;AACf,sBAAa;AAEb,iBAAO,MAAM,UAAU,QAAQ,kBAAkB,SAAS;AAAA,QAC3D,GAAE,IAAI;AAAA,MACf;AAAA,IACA;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
;/* empty css
|
|
4
|
+
;/* empty css */
|
|
5
5
|
const _hoisted_1 = { class: "font-main" };
|
|
6
6
|
const _hoisted_2 = {
|
|
7
7
|
key: 1,
|
|
@@ -27,4 +27,4 @@ const _sfc_main = {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
exports.default = _sfc_main;
|
|
30
|
-
//# sourceMappingURL=Chips.
|
|
30
|
+
//# sourceMappingURL=Chips.vue.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chips.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, renderSlot, Fragment, renderList, normalizeClass, toDisplayString } from "vue";
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */
|
|
3
3
|
const _hoisted_1 = { class: "font-main" };
|
|
4
4
|
const _hoisted_2 = {
|
|
5
5
|
key: 1,
|
|
@@ -27,4 +27,4 @@ const _sfc_main = {
|
|
|
27
27
|
export {
|
|
28
28
|
_sfc_main as default
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=Chips.
|
|
30
|
+
//# sourceMappingURL=Chips.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chips.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -8,10 +8,7 @@ const parsePhoneNumber = require("../../../node_modules/.pnpm/libphonenumber-js@
|
|
|
8
8
|
const _hoisted_1 = ["tabindex"];
|
|
9
9
|
const _hoisted_2 = { class: "flex-nowrap flex flex-v-center p-medium vti__selection" };
|
|
10
10
|
const _hoisted_3 = ["innerHTML"];
|
|
11
|
-
const _hoisted_4 =
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "vti__country-code"
|
|
14
|
-
};
|
|
11
|
+
const _hoisted_4 = ["placeholder", "disabled", "size"];
|
|
15
12
|
const _hoisted_5 = ["onClick", "onMousemove"];
|
|
16
13
|
const _hoisted_6 = ["innerHTML"];
|
|
17
14
|
const _hoisted_7 = { key: 1 };
|
|
@@ -33,71 +30,50 @@ const _sfc_main = {
|
|
|
33
30
|
badInputStyle: { type: [String, Array, Object], default: "" },
|
|
34
31
|
goodInputStyle: { type: [String, Array, Object], default: "" },
|
|
35
32
|
allCountries: { type: Array, default: () => allCountries.default },
|
|
36
|
-
autoFormat: { type: Boolean, default:
|
|
33
|
+
autoFormat: { type: Boolean, default: true },
|
|
37
34
|
validation: { type: [Boolean, Object], default: false },
|
|
38
|
-
customValidate: { type: [Boolean, RegExp], default:
|
|
39
|
-
defaultCountry: { type: String, default:
|
|
40
|
-
disabled: { type: Boolean, default:
|
|
41
|
-
autoDefaultCountry: { type: Boolean, default:
|
|
35
|
+
customValidate: { type: [Boolean, RegExp], default: false },
|
|
36
|
+
defaultCountry: { type: String, default: "" },
|
|
37
|
+
disabled: { type: Boolean, default: false },
|
|
38
|
+
autoDefaultCountry: { type: Boolean, default: true },
|
|
42
39
|
ignoredCountries: { type: Array, default: () => [] },
|
|
43
|
-
invalidMsg: { type: String, default:
|
|
44
|
-
mode: { type: String, default:
|
|
40
|
+
invalidMsg: { type: String, default: "" },
|
|
41
|
+
mode: { type: String, default: "auto" },
|
|
45
42
|
onlyCountries: { type: Array, default: () => [] },
|
|
46
43
|
preferredCountries: { type: Array, default: () => [] },
|
|
47
|
-
validCharactersOnly: { type: Boolean, default:
|
|
48
|
-
rootClass: { type: [String, Array, Object], default:
|
|
49
|
-
inputClass: { type: [String, Array, Object], default:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return "";
|
|
57
|
-
} },
|
|
58
|
-
dropdownStyle: { type: [String, Array, Object], default: () => {
|
|
59
|
-
return "";
|
|
60
|
-
} },
|
|
61
|
-
listStyle: { type: [String, Array, Object], default: () => {
|
|
62
|
-
return "";
|
|
63
|
-
} },
|
|
64
|
-
inputStyle: { type: [String, Array, Object], default: () => {
|
|
65
|
-
return "";
|
|
66
|
-
} },
|
|
67
|
-
inputId: { type: [String, Array, Object], default: () => {
|
|
68
|
-
return "";
|
|
69
|
-
} },
|
|
70
|
-
Placeholder: { type: [String, Object, Function], default: () => {
|
|
71
|
-
return "";
|
|
72
|
-
} },
|
|
44
|
+
validCharactersOnly: { type: Boolean, default: false },
|
|
45
|
+
rootClass: { type: [String, Array, Object], default: "" },
|
|
46
|
+
inputClass: { type: [String, Array, Object], default: "" },
|
|
47
|
+
rootStyle: { type: [String, Array, Object], default: "" },
|
|
48
|
+
dropdownStyle: { type: [String, Array, Object], default: "" },
|
|
49
|
+
listStyle: { type: [String, Array, Object], default: "" },
|
|
50
|
+
inputStyle: { type: [String, Array, Object], default: "" },
|
|
51
|
+
inputId: { type: [String, Array, Object], default: "" },
|
|
52
|
+
Placeholder: { type: [String, Object, Function], default: "" },
|
|
73
53
|
dropdownOptions: {
|
|
74
54
|
type: Object,
|
|
75
|
-
default: () => {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
};
|
|
82
|
-
}
|
|
55
|
+
default: () => ({
|
|
56
|
+
showDialCodeInList: true,
|
|
57
|
+
showDialCodeInSelection: false,
|
|
58
|
+
showFlags: true,
|
|
59
|
+
tabindex: 0
|
|
60
|
+
})
|
|
83
61
|
},
|
|
84
62
|
inputOptions: {
|
|
85
63
|
type: Object,
|
|
86
|
-
default: () => {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
};
|
|
100
|
-
}
|
|
64
|
+
default: () => ({
|
|
65
|
+
autocomplete: "on",
|
|
66
|
+
autofocus: false,
|
|
67
|
+
id: "",
|
|
68
|
+
maxlength: 25,
|
|
69
|
+
name: "telephone",
|
|
70
|
+
placeholder: "Enter a phone number",
|
|
71
|
+
readonly: false,
|
|
72
|
+
required: false,
|
|
73
|
+
tabindex: 0,
|
|
74
|
+
type: "tel",
|
|
75
|
+
styleClasses: ""
|
|
76
|
+
})
|
|
101
77
|
}
|
|
102
78
|
},
|
|
103
79
|
emits: [
|
|
@@ -116,14 +92,10 @@ const _sfc_main = {
|
|
|
116
92
|
let vClickOutside = clickOutside.default;
|
|
117
93
|
const props = __props;
|
|
118
94
|
const emits = __emit;
|
|
119
|
-
vue.ref(
|
|
120
|
-
vue.ref(5);
|
|
121
|
-
vue.reactive({
|
|
122
|
-
action: null,
|
|
123
|
-
amount: null
|
|
124
|
-
});
|
|
125
|
-
const phone = vue.ref(props.modelValue ? props.modelValue : "");
|
|
95
|
+
const phone = vue.ref(props.modelValue || "");
|
|
126
96
|
const activeCountryCode = vue.ref("");
|
|
97
|
+
const dialCodeInput = vue.ref("");
|
|
98
|
+
const dialCodeFilter = vue.ref("");
|
|
127
99
|
const open = vue.ref(false);
|
|
128
100
|
const finishMounted = vue.ref(false);
|
|
129
101
|
const selectedIndex = vue.ref(null);
|
|
@@ -134,7 +106,7 @@ const _sfc_main = {
|
|
|
134
106
|
const rootElement = vue.ref(null);
|
|
135
107
|
const list = vue.ref(null);
|
|
136
108
|
const input = vue.ref(null);
|
|
137
|
-
vue.onMounted(
|
|
109
|
+
vue.onMounted(() => {
|
|
138
110
|
if (props.modelValue) {
|
|
139
111
|
phone.value = props.modelValue;
|
|
140
112
|
}
|
|
@@ -144,6 +116,9 @@ const _sfc_main = {
|
|
|
144
116
|
if (!phone.value && ((_a = props.inputOptions) == null ? void 0 : _a.showDialCode) && activeCountryCode.value) {
|
|
145
117
|
phone.value = `+${activeCountryCode.value}`;
|
|
146
118
|
}
|
|
119
|
+
if (activeCountry.value && props.dropdownOptions.showDialCodeInSelection) {
|
|
120
|
+
dialCodeInput.value = `+${activeCountry.value.dialCode}`;
|
|
121
|
+
}
|
|
147
122
|
emits("validate", phoneObject.value);
|
|
148
123
|
}).catch(console.error).then(() => {
|
|
149
124
|
finishMounted.value = true;
|
|
@@ -169,18 +144,30 @@ const _sfc_main = {
|
|
|
169
144
|
return props.mode;
|
|
170
145
|
});
|
|
171
146
|
const filteredCountries = vue.computed(() => {
|
|
147
|
+
let countries = props.allCountries;
|
|
172
148
|
if (props.onlyCountries && props.onlyCountries.length) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
149
|
+
countries = countries.filter(
|
|
150
|
+
({ iso2 }) => props.onlyCountries.includes(iso2.toUpperCase())
|
|
151
|
+
);
|
|
152
|
+
} else if (props.ignoredCountries && props.ignoredCountries.length) {
|
|
153
|
+
countries = countries.filter(
|
|
177
154
|
({ iso2 }) => !props.ignoredCountries.includes(iso2.toUpperCase()) && !props.ignoredCountries.includes(iso2.toLowerCase())
|
|
178
155
|
);
|
|
179
156
|
}
|
|
180
|
-
|
|
157
|
+
if (dialCodeFilter.value) {
|
|
158
|
+
const filterValue = dialCodeFilter.value.replace("+", "");
|
|
159
|
+
countries = countries.filter(
|
|
160
|
+
(country) => country.dialCode.startsWith(filterValue)
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
return countries;
|
|
181
164
|
});
|
|
182
|
-
const
|
|
183
|
-
const preferredCountries = getCountries(props.preferredCountries).
|
|
165
|
+
const filteredAndSortedCountries = vue.computed(() => {
|
|
166
|
+
const preferredCountries = getCountries(props.preferredCountries).filter((country) => {
|
|
167
|
+
if (!dialCodeFilter.value) return true;
|
|
168
|
+
const filterValue = dialCodeFilter.value.replace("+", "");
|
|
169
|
+
return country.dialCode.startsWith(filterValue);
|
|
170
|
+
}).map((country) => ({ ...country, preferred: true }));
|
|
184
171
|
return [...preferredCountries, ...filteredCountries.value];
|
|
185
172
|
});
|
|
186
173
|
const phoneObject = vue.computed(() => {
|
|
@@ -231,6 +218,7 @@ const _sfc_main = {
|
|
|
231
218
|
if (newValue == null ? void 0 : newValue.iso2) {
|
|
232
219
|
emits("country-changed", newValue);
|
|
233
220
|
resetPlaceholder();
|
|
221
|
+
dialCodeInput.value = `+${newValue.dialCode}`;
|
|
234
222
|
}
|
|
235
223
|
});
|
|
236
224
|
vue.watch(() => phoneObject.value.countryCode, (newValue) => {
|
|
@@ -271,14 +259,35 @@ const _sfc_main = {
|
|
|
271
259
|
emits("close");
|
|
272
260
|
}
|
|
273
261
|
});
|
|
274
|
-
function
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
262
|
+
function onDialCodeInput() {
|
|
263
|
+
if (!dialCodeInput.value.startsWith("+")) {
|
|
264
|
+
dialCodeInput.value = "+" + dialCodeInput.value.replace(/^\+*/, "");
|
|
265
|
+
}
|
|
266
|
+
dialCodeInput.value = dialCodeInput.value.replace(/[^\+\d]/g, "");
|
|
267
|
+
const plusCount = (dialCodeInput.value.match(/\+/g) || []).length;
|
|
268
|
+
if (plusCount > 1) {
|
|
269
|
+
dialCodeInput.value = "+" + dialCodeInput.value.replace(/\+/g, "");
|
|
270
|
+
}
|
|
271
|
+
dialCodeFilter.value = dialCodeInput.value;
|
|
272
|
+
open.value = true;
|
|
273
|
+
const exactMatch = filteredCountries.value.find(
|
|
274
|
+
(country) => `+${country.dialCode}` === dialCodeInput.value
|
|
275
|
+
);
|
|
276
|
+
if (exactMatch && filteredAndSortedCountries.value.length === 1) {
|
|
277
|
+
choose(exactMatch);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
function onDialCodeBlur() {
|
|
281
|
+
setTimeout(() => {
|
|
282
|
+
if (!dialCodeInput.value && activeCountry.value) {
|
|
283
|
+
dialCodeInput.value = `+${activeCountry.value.dialCode}`;
|
|
279
284
|
}
|
|
280
|
-
|
|
281
|
-
|
|
285
|
+
}, 200);
|
|
286
|
+
}
|
|
287
|
+
function openDropdown() {
|
|
288
|
+
if (!props.disabled) {
|
|
289
|
+
open.value = true;
|
|
290
|
+
}
|
|
282
291
|
}
|
|
283
292
|
function setCaretPosition(ctrl, pos) {
|
|
284
293
|
if (ctrl.setSelectionRange) {
|
|
@@ -309,7 +318,13 @@ const _sfc_main = {
|
|
|
309
318
|
}
|
|
310
319
|
const fallbackCountry = props.preferredCountries[0] || filteredCountries.value[0];
|
|
311
320
|
if (props.autoDefaultCountry) {
|
|
312
|
-
|
|
321
|
+
fetch("https://ip2c.org/s").then((response) => response.text()).then((response) => {
|
|
322
|
+
const result = (response || "").toString();
|
|
323
|
+
if (!result || result[0] !== "1") {
|
|
324
|
+
throw new Error("unable to fetch the country");
|
|
325
|
+
}
|
|
326
|
+
return result.substr(2, 2);
|
|
327
|
+
}).then((res) => {
|
|
313
328
|
choose(res || activeCountryCode.value);
|
|
314
329
|
}).catch((error) => {
|
|
315
330
|
console.warn(error);
|
|
@@ -336,19 +351,26 @@ const _sfc_main = {
|
|
|
336
351
|
return { highlighted, "last-preferred": lastPreferred, preferred };
|
|
337
352
|
}
|
|
338
353
|
function choose(country) {
|
|
339
|
-
var _a
|
|
354
|
+
var _a;
|
|
340
355
|
let parsedCountry = typeof country === "string" ? findCountry(country) : country;
|
|
341
356
|
if (!parsedCountry) return;
|
|
342
357
|
if (((_a = phone.value) == null ? void 0 : _a[0]) === "+" && parsedCountry.iso2 && phoneObject.value.nationalNumber) {
|
|
343
358
|
activeCountryCode.value = parsedCountry.iso2;
|
|
344
|
-
phone.value = parsePhoneNumber.parsePhoneNumber(
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
359
|
+
phone.value = parsePhoneNumber.parsePhoneNumber(
|
|
360
|
+
phoneObject.value.nationalNumber,
|
|
361
|
+
parsedCountry.iso2
|
|
362
|
+
).formatInternational();
|
|
363
|
+
} else {
|
|
364
|
+
activeCountryCode.value = parsedCountry.iso2;
|
|
350
365
|
}
|
|
351
|
-
|
|
366
|
+
dialCodeInput.value = `+${parsedCountry.dialCode}`;
|
|
367
|
+
dialCodeFilter.value = "";
|
|
368
|
+
open.value = false;
|
|
369
|
+
vue.nextTick(() => {
|
|
370
|
+
if (input.value) {
|
|
371
|
+
input.value.focus();
|
|
372
|
+
}
|
|
373
|
+
});
|
|
352
374
|
emitInput(phone.value);
|
|
353
375
|
}
|
|
354
376
|
function cleanInvalidCharacters() {
|
|
@@ -404,18 +426,15 @@ const _sfc_main = {
|
|
|
404
426
|
function onSpace() {
|
|
405
427
|
emits("space");
|
|
406
428
|
}
|
|
407
|
-
function toggleDropdown() {
|
|
408
|
-
if (props.disabled) return;
|
|
409
|
-
open.value = !open.value;
|
|
410
|
-
}
|
|
411
429
|
function clickedOutside() {
|
|
412
430
|
open.value = false;
|
|
431
|
+
dialCodeFilter.value = "";
|
|
413
432
|
}
|
|
414
433
|
function keyboardNav(e) {
|
|
415
434
|
if (e.keyCode === 40) {
|
|
416
435
|
e.preventDefault();
|
|
417
436
|
open.value = true;
|
|
418
|
-
selectedIndex.value = selectedIndex.value === null ? 0 : Math.min(
|
|
437
|
+
selectedIndex.value = selectedIndex.value === null ? 0 : Math.min(filteredAndSortedCountries.value.length - 1, selectedIndex.value + 1);
|
|
419
438
|
vue.nextTick(() => {
|
|
420
439
|
const selEle = list.value.children[selectedIndex.value];
|
|
421
440
|
if (selEle.offsetTop + selEle.clientHeight > list.value.scrollTop + list.value.clientHeight) {
|
|
@@ -425,7 +444,7 @@ const _sfc_main = {
|
|
|
425
444
|
} else if (e.keyCode === 38) {
|
|
426
445
|
e.preventDefault();
|
|
427
446
|
open.value = true;
|
|
428
|
-
selectedIndex.value = selectedIndex.value === null ?
|
|
447
|
+
selectedIndex.value = selectedIndex.value === null ? filteredAndSortedCountries.value.length - 1 : Math.max(0, selectedIndex.value - 1);
|
|
429
448
|
vue.nextTick(() => {
|
|
430
449
|
const selEle = list.value.children[selectedIndex.value];
|
|
431
450
|
if (selEle.offsetTop < list.value.scrollTop) {
|
|
@@ -435,17 +454,17 @@ const _sfc_main = {
|
|
|
435
454
|
} else if (e.keyCode === 13) {
|
|
436
455
|
e.preventDefault();
|
|
437
456
|
if (selectedIndex.value !== null) {
|
|
438
|
-
choose(
|
|
457
|
+
choose(filteredAndSortedCountries.value[selectedIndex.value]);
|
|
439
458
|
}
|
|
440
|
-
open.value = !open.value;
|
|
441
459
|
} else {
|
|
460
|
+
if (e.target.classList.contains("vti__country-code-input")) return;
|
|
442
461
|
typeToFindInput.value += e.key;
|
|
443
462
|
clearTimeout(typeToFindTimer);
|
|
444
463
|
typeToFindTimer = setTimeout(() => {
|
|
445
464
|
typeToFindInput.value = "";
|
|
446
465
|
}, 700);
|
|
447
466
|
vue.nextTick(() => {
|
|
448
|
-
const typedCountryI =
|
|
467
|
+
const typedCountryI = filteredAndSortedCountries.value.slice(props.preferredCountries.length).findIndex((c) => c.name.toLowerCase().startsWith(typeToFindInput.value));
|
|
449
468
|
if (typedCountryI >= 0) {
|
|
450
469
|
selectedIndex.value = props.preferredCountries.length + typedCountryI;
|
|
451
470
|
const selEle = list.value.children[selectedIndex.value];
|
|
@@ -458,7 +477,7 @@ const _sfc_main = {
|
|
|
458
477
|
}
|
|
459
478
|
}
|
|
460
479
|
function reset() {
|
|
461
|
-
selectedIndex.value =
|
|
480
|
+
selectedIndex.value = filteredAndSortedCountries.value.map((c) => c.iso2).indexOf(activeCountryCode.value);
|
|
462
481
|
open.value = false;
|
|
463
482
|
}
|
|
464
483
|
function setDropdownPosition() {
|
|
@@ -467,6 +486,7 @@ const _sfc_main = {
|
|
|
467
486
|
dropdownOpenDirection.value = hasEnoughSpaceBelow ? "below" : "above";
|
|
468
487
|
}
|
|
469
488
|
return (_ctx, _cache) => {
|
|
489
|
+
var _a, _b;
|
|
470
490
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
471
491
|
vue.createElementVNode("div", {
|
|
472
492
|
class: vue.normalizeClass([[
|
|
@@ -476,10 +496,7 @@ const _sfc_main = {
|
|
|
476
496
|
{ "bg-fourth-nano": __props.validation },
|
|
477
497
|
{ disabled: __props.disabled }
|
|
478
498
|
], "vue3-reactive-tel-input"]),
|
|
479
|
-
style: vue.normalizeStyle([
|
|
480
|
-
__props.rootStyle,
|
|
481
|
-
styles.value
|
|
482
|
-
]),
|
|
499
|
+
style: vue.normalizeStyle([__props.rootStyle, styles.value]),
|
|
483
500
|
ref_key: "rootElement",
|
|
484
501
|
ref: rootElement
|
|
485
502
|
}, [
|
|
@@ -487,11 +504,7 @@ const _sfc_main = {
|
|
|
487
504
|
class: vue.normalizeClass([["vti__dropdown", { open: open.value }], "br-solid br-black-transp br-1px radius-thin"]),
|
|
488
505
|
style: vue.normalizeStyle([__props.dropdownStyle]),
|
|
489
506
|
tabindex: __props.dropdownOptions.tabindex,
|
|
490
|
-
onKeydown: [
|
|
491
|
-
keyboardNav,
|
|
492
|
-
vue.withKeys(reset, ["esc"])
|
|
493
|
-
],
|
|
494
|
-
onClick: toggleDropdown
|
|
507
|
+
onKeydown: vue.withKeys(reset, ["esc"])
|
|
495
508
|
}, [
|
|
496
509
|
vue.createElementVNode("span", _hoisted_2, [
|
|
497
510
|
__props.dropdownOptions.showFlags ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -499,7 +512,22 @@ const _sfc_main = {
|
|
|
499
512
|
innerHTML: activeCountryFlag.value,
|
|
500
513
|
class: "mn-r-nano"
|
|
501
514
|
}, null, 8, _hoisted_3)) : vue.createCommentVNode("", true),
|
|
502
|
-
__props.dropdownOptions.showDialCodeInSelection ?
|
|
515
|
+
__props.dropdownOptions.showDialCodeInSelection ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
516
|
+
key: 1,
|
|
517
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dialCodeInput.value = $event),
|
|
518
|
+
onInput: onDialCodeInput,
|
|
519
|
+
onFocus: openDropdown,
|
|
520
|
+
onBlur: onDialCodeBlur,
|
|
521
|
+
onKeydown: keyboardNav,
|
|
522
|
+
type: "text",
|
|
523
|
+
class: "vti__country-code-input",
|
|
524
|
+
placeholder: `+${((_a = activeCountry.value) == null ? void 0 : _a.dialCode) || ""}`,
|
|
525
|
+
disabled: __props.disabled,
|
|
526
|
+
size: Math.max((((_b = dialCodeInput.value) == null ? void 0 : _b.length) || 0) + 1, 3),
|
|
527
|
+
maxlength: "5"
|
|
528
|
+
}, null, 40, _hoisted_4)), [
|
|
529
|
+
[vue.vModelText, dialCodeInput.value]
|
|
530
|
+
]) : vue.createCommentVNode("", true)
|
|
503
531
|
]),
|
|
504
532
|
vue.withDirectives(vue.createElementVNode("ul", {
|
|
505
533
|
ref_key: "list",
|
|
@@ -507,7 +535,7 @@ const _sfc_main = {
|
|
|
507
535
|
class: vue.normalizeClass(["bs-black radius-small vti__dropdown-list", dropdownOpenDirection.value]),
|
|
508
536
|
style: vue.normalizeStyle([__props.listStyle])
|
|
509
537
|
}, [
|
|
510
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
538
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(filteredAndSortedCountries.value, (pb, index) => {
|
|
511
539
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
512
540
|
class: vue.normalizeClass(["flex-nowrap flex w-max", ["vti__dropdown-item", getItemClass(index, pb.iso2)]]),
|
|
513
541
|
key: pb.iso2 + (pb.preferred ? "-preferred" : ""),
|
|
@@ -530,7 +558,7 @@ const _sfc_main = {
|
|
|
530
558
|
[vue.unref(vClickOutside), clickedOutside]
|
|
531
559
|
]),
|
|
532
560
|
vue.withDirectives(vue.createElementVNode("input", {
|
|
533
|
-
"onUpdate:modelValue": _cache[
|
|
561
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => phone.value = $event),
|
|
534
562
|
inputmode: "numeric",
|
|
535
563
|
pattern: "\\d*",
|
|
536
564
|
ref_key: "input",
|