@ozdao/prometheus-framework 0.2.188 → 0.2.189
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/builder.js +6 -3
- package/dist/builder.mjs +6 -3
- package/dist/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.cjs +1 -0
- package/dist/node_modules/@unhead/vue/dist/shared/vue.cf295fb1.js +26 -0
- package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs +1 -0
- package/dist/node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js +26 -0
- package/dist/node_modules/unhead/dist/index.cjs +1 -0
- package/dist/node_modules/unhead/dist/index.js +7 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +73 -42
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +34 -10
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/classes/globals.store.js +72 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockFilter.vue.js +57 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +35 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSorting.vue.js +75 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +194 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.js +38 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +66 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Empty.vue.js +16 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +54 -0
- package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.js +7 -0
- package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/mixins/mixins.js +47 -0
- package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/router/scrollBehavior.js +18 -0
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/views/store/globals.js +83 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.backoffice.router.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/router/orders.router.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/applications.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/backoffice.router.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Page.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/pages/Pages.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/router/pages.router.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.cjs +1 -1
- package/dist/prometheus-framework/src/modules/pages/views/store/pages.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/spots/router/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/router/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/builder/modes/ssr.dev.js +4 -1
- package/src/builder/templates/page.js +1 -1
- package/src/builder/webpack/webpack.config.base.js +2 -1
- package/src/builder/webpack/webpack.config.spa.js +0 -1
- package/src/components/Feed/Feed.vue +5 -5
- package/src/components/Sidebar/Sidebar.vue +1 -1
- package/src/modules/auth/controllers/services/twofa.service.js +1 -1
- package/src/modules/auth/views/components/pages/EnterCode.vue +1 -1
- package/src/modules/auth/views/store/auth.js +1 -1
- package/src/modules/auth/views/store/twofa.js +1 -1
- package/src/modules/auth/views/validations/inputs.validation.js +1 -1
- package/src/modules/backoffice/router/backoffice.js +1 -1
- package/src/modules/chats/controllers/chats.controller.js +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/pages/BlogPost.vue +63 -2
- package/src/modules/community/components/sections/Comment.vue +1 -1
- package/src/modules/community/models/blogpost.model.js +4 -4
- package/src/modules/community/store/blogposts.js +1 -1
- package/src/modules/community/store/reactions.js +1 -1
- package/src/modules/events/components/blocks/CardEvent.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +1 -1
- package/src/modules/events/controllers/tickets.controller.js +1 -1
- package/src/modules/events/models/event.model.js +4 -4
- package/src/modules/events/store/events.js +1 -1
- package/src/modules/events/store/tickets.js +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +2 -2
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -2
- package/src/modules/gallery/models/photo.model.js +3 -3
- package/src/modules/gallery/store/gallery.js +1 -1
- package/src/modules/globals/{services → controllers/classes}/globals.crud.js +2 -2
- package/src/modules/globals/globals.client.js +78 -8
- package/src/modules/globals/globals.server.js +3 -3
- package/src/modules/globals/models/{metadata.schema.js → schemas/metadata.schema.js} +1 -1
- package/src/modules/globals/{services → views/classes}/globals.store.js +1 -1
- package/src/modules/globals/{components → views/components}/blocks/BlockSorting.vue +1 -1
- package/src/modules/globals/views/components/layouts/App.vue +83 -0
- package/src/modules/globals/{components → views/components}/layouts/Client.vue +8 -8
- package/src/modules/globals/{components → views/components}/partials/Header.vue +1 -1
- package/src/modules/globals/views/middlewares/localization.js +16 -0
- package/src/modules/integrations/stripe/controllers/webhooks/stripe.webhook.js +2 -2
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +1 -1
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/marketplace/router/marketplace.js +1 -1
- package/src/modules/orders/components/pages/Order.vue +1 -1
- package/src/modules/orders/components/pages/OrderBackoffice.vue +2 -2
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +2 -2
- package/src/modules/orders/components/pages/Orders.vue +2 -2
- package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
- package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
- package/src/modules/orders/controllers/applications.controller.js +1 -1
- package/src/modules/orders/controllers/orders.controller.js +1 -1
- package/src/modules/orders/models/customer.model.js +3 -3
- package/src/modules/orders/models/order.model.js +1 -1
- package/src/modules/orders/orders.server.js +1 -1
- package/src/modules/orders/router/orders.backoffice.router.js +1 -1
- package/src/modules/orders/router/orders.router.js +1 -1
- package/src/modules/orders/store/applications.js +1 -1
- package/src/modules/orders/store/customers.store.js +1 -1
- package/src/modules/orders/store/orders.js +1 -1
- package/src/modules/orders/store/shopcart.js +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +2 -2
- package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
- package/src/modules/organizations/controllers/invites.controller.js +1 -1
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/invite.model.js +2 -2
- package/src/modules/organizations/models/organization.model.js +1 -1
- package/src/modules/organizations/router/backoffice.router.js +1 -1
- package/src/modules/organizations/router/organizations.js +1 -1
- package/src/modules/organizations/store/departments.js +1 -1
- package/src/modules/organizations/store/invites.js +1 -1
- package/src/modules/organizations/store/memberships.js +1 -1
- package/src/modules/organizations/store/organizations.js +1 -1
- package/src/modules/pages/pages.server.js +1 -1
- package/src/modules/pages/views/components/pages/Page.vue +1 -1
- package/src/modules/pages/views/components/pages/PageEdit.vue +1 -1
- package/src/modules/pages/views/components/pages/Pages.vue +2 -2
- package/src/modules/pages/views/components/partials/SidebarPages.vue +1 -1
- package/src/modules/pages/views/router/pages.backoffice.router.js +1 -1
- package/src/modules/pages/views/router/pages.router.js +1 -1
- package/src/modules/pages/views/store/pages.js +1 -1
- package/src/modules/pages/views/store/pages.store.js +1 -1
- package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
- package/src/modules/products/components/pages/EditLeftover.vue +1 -1
- package/src/modules/products/components/pages/ProductEdit.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +1 -1
- package/src/modules/products/models/leftover.model.js +1 -1
- package/src/modules/products/store/categories.js +1 -1
- package/src/modules/products/store/leftovers.js +1 -1
- package/src/modules/products/store/products.js +1 -1
- package/src/modules/projects/store/projects.js +1 -1
- package/src/modules/reports/store/reports.js +1 -1
- package/src/modules/spots/components/layouts/Spots.vue +1 -1
- package/src/modules/spots/components/pages/Map.vue +1 -1
- package/src/modules/spots/router/spots.js +1 -1
- package/src/modules/spots/spots.server.js +1 -1
- package/src/modules/spots/store/spots.js +1 -1
- package/src/modules/users/models/user.model.js +3 -3
- package/src/modules/wallet/controllers/routes/payments.routes.js +1 -1
- package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
- package/src/modules/wallet/views/store/payments.store.js +1 -1
- package/src/modules/wallet/views/store/wallet.store.js +1 -1
- package/src/modules/globals/router/routerGuards.js +0 -29
- /package/src/modules/globals/{services → controllers/classes}/globals.cache.js +0 -0
- /package/src/modules/globals/{services → controllers/classes}/globals.logger.js +0 -0
- /package/src/modules/globals/{services → controllers/classes}/globals.observer.js +0 -0
- /package/src/modules/globals/{services → controllers/classes}/globals.webhook.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/mailing.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/parseCookie.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/seo-friendly-url.js +0 -0
- /package/src/modules/globals/{utils → controllers/utils}/sitemap.js +0 -0
- /package/src/modules/globals/models/{common.schema.js → schemas/common.schema.js} +0 -0
- /package/src/modules/globals/models/{credentials.schema.js → schemas/credentials.schema.js} +0 -0
- /package/src/modules/globals/models/{engagement.schema.js → schemas/engagement.schema.js} +0 -0
- /package/src/modules/globals/models/{ownership.schema.js → schemas/ownership.schema.js} +0 -0
- /package/src/modules/globals/models/{profile.schema.js → schemas/profile.schema.js} +0 -0
- /package/src/modules/globals/models/{socials.schema.js → schemas/socials.schema.js} +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/BlockFilter.vue +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/BlockSearch.vue +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/CardFooter.vue +0 -0
- /package/src/modules/globals/{components → views/components}/blocks/CardHeader.vue +0 -0
- /package/src/modules/globals/{components → views/components}/elements/ButtonDate.vue +0 -0
- /package/src/modules/globals/{components → views/components}/elements/ButtonSort.vue +0 -0
- /package/src/modules/globals/{components → views/components}/layouts/Empty.vue +0 -0
- /package/src/modules/globals/{components → views/components}/pages/401.vue +0 -0
- /package/src/modules/globals/{components → views/components}/pages/404.vue +0 -0
- /package/src/modules/globals/{components → views/components}/partials/BottomNavigation.vue +0 -0
- /package/src/modules/globals/{components → views/components}/partials/Footer.vue +0 -0
- /package/src/modules/globals/{components → views/components}/partials/Navigation.vue +0 -0
- /package/src/modules/globals/{components → views/components}/partials/NavigationBar.vue +0 -0
- /package/src/modules/globals/{components → views/components}/sections/SectionPageTitle.vue +0 -0
- /package/src/modules/globals/{components → views/components}/sections/Title.vue +0 -0
- /package/src/modules/globals/{components → views/components}/sections/Walkthrough.vue +0 -0
- /package/src/modules/globals/{localization → views/localization}/get-browser-locale.js +0 -0
- /package/src/modules/globals/{mixins → views/mixins}/mixins.js +0 -0
- /package/src/modules/globals/{router → views/router}/scrollBehavior.js +0 -0
- /package/src/modules/globals/{store → views/store}/globals.js +0 -0
package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js
ADDED
@@ -0,0 +1,194 @@
|
|
1
|
+
import { resolveComponent as S, openBlock as t, createElementBlock as s, createElementVNode as c, withModifiers as y, createCommentVNode as o, createBlock as b, toDisplayString as d, withCtx as w, createTextVNode as U, Fragment as k, renderList as F, normalizeStyle as D, normalizeClass as L } from "vue";
|
2
|
+
import { useRouter as T } from "vue-router";
|
3
|
+
import V from "../../../../icons/placeholders/PlaceholderUserpic.vue.js";
|
4
|
+
import A from "../../../../reports/components/sections/FormReport.vue.js";
|
5
|
+
import B from "../../../../../components/Tooltip/Tooltip.vue2.js";
|
6
|
+
import N from "../../../../../components/Dropdown/Dropdown.vue.js";
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
9
|
+
import "../../../../auth/views/store/auth.js";
|
10
|
+
import "../../../../organizations/store/memberships.js";
|
11
|
+
import O from "../../../../icons/navigation/IconEllipsis.vue.js";
|
12
|
+
const j = {
|
13
|
+
key: 0,
|
14
|
+
class: "pd-b-zero"
|
15
|
+
}, H = { class: "w-100 flex-v-center flex-nojustify flex" }, J = { class: "w-100 flex-nowrap flex-v-center flex" }, q = ["src"], G = {
|
16
|
+
key: 2,
|
17
|
+
class: "t-semi"
|
18
|
+
}, K = {
|
19
|
+
key: 1,
|
20
|
+
class: "mn-l-micro mn-r-micro"
|
21
|
+
}, Q = {
|
22
|
+
key: 2,
|
23
|
+
class: "pos-relative"
|
24
|
+
}, W = { key: 3 }, X = { class: "d-block mn-l-auto flex-nowrap flex flex-v-center" }, Y = {
|
25
|
+
key: 0,
|
26
|
+
class: "w-4r pos-relative i-thin"
|
27
|
+
}, Z = {
|
28
|
+
style: {
|
29
|
+
position: "absolute",
|
30
|
+
top: "0px",
|
31
|
+
right: "0px"
|
32
|
+
},
|
33
|
+
class: "br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"
|
34
|
+
}, _ = ["src"], ee = { class: "bg-black flex-column flex gap-thin pd-thin radius-small" }, te = /* @__PURE__ */ c("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), re = ["onClick"], be = {
|
35
|
+
__name: "CardHeader",
|
36
|
+
props: [
|
37
|
+
"user",
|
38
|
+
"entity",
|
39
|
+
"entityType",
|
40
|
+
"date",
|
41
|
+
"dateFormatted",
|
42
|
+
"owner",
|
43
|
+
"creator",
|
44
|
+
"members",
|
45
|
+
"membersPhotos",
|
46
|
+
"type",
|
47
|
+
"actions"
|
48
|
+
],
|
49
|
+
setup(e) {
|
50
|
+
T();
|
51
|
+
function I(i) {
|
52
|
+
const n = /* @__PURE__ */ new Date(), x = new Date(i), f = Math.abs(n - x), g = Math.floor(f / 1e3), l = Math.floor(g / 60), u = Math.floor(l / 60), m = Math.floor(u / 24), h = Math.floor(m / 7);
|
53
|
+
return h > 0 ? `${h} week${h > 1 ? "s" : ""} ago` : m > 0 ? `${m} day${m > 1 ? "s" : ""} ago` : u > 0 ? `${u} hour${u > 1 ? "s" : ""} ago` : l > 0 ? `${l} minute${l > 1 ? "s" : ""} ago` : "Just now";
|
54
|
+
}
|
55
|
+
return (i, n) => {
|
56
|
+
var f, g, l, u, m, h, $, v, p, C, z, E, R, M, P;
|
57
|
+
const x = S("router-link");
|
58
|
+
return e.owner ? (t(), s("header", j, [
|
59
|
+
c("div", H, [
|
60
|
+
c("div", J, [
|
61
|
+
((l = (g = (f = e.owner.target) == null ? void 0 : f.profile) == null ? void 0 : g.photo) == null ? void 0 : l.length) > 0 && e.type !== "short" ? (t(), s("img", {
|
62
|
+
key: 0,
|
63
|
+
src: (i.FILE_SERVER_URL || "") + e.owner.target.profile.photo,
|
64
|
+
class: "radius-medium object-fit-cover mn-r-thin i-thin",
|
65
|
+
onClick: n[0] || (n[0] = y((r) => i.$router.push({
|
66
|
+
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
67
|
+
params: {
|
68
|
+
_id: e.owner.target._id
|
69
|
+
}
|
70
|
+
}), ["stop"]))
|
71
|
+
}, null, 8, q)) : o("", !0),
|
72
|
+
!((m = (u = e.owner.target) == null ? void 0 : u.profile) != null && m.photo) && e.type !== "short" ? (t(), b(V, {
|
73
|
+
key: 1,
|
74
|
+
class: "radius-medium mn-r-thin i-thin",
|
75
|
+
onClick: n[1] || (n[1] = y((r) => i.$router.push({
|
76
|
+
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
77
|
+
params: {
|
78
|
+
_id: e.owner.target._id
|
79
|
+
}
|
80
|
+
}), ["stop"]))
|
81
|
+
})) : o("", !0),
|
82
|
+
e.type !== "short" ? (t(), s("span", G, [
|
83
|
+
c("span", {
|
84
|
+
onClick: n[2] || (n[2] = y((r) => i.$router.push({
|
85
|
+
name: e.owner.type === "user" ? "User Profile" : "Organization",
|
86
|
+
params: {
|
87
|
+
_id: e.owner.target._id
|
88
|
+
}
|
89
|
+
}), ["stop"]))
|
90
|
+
}, d((($ = (h = e.owner.target) == null ? void 0 : h.profile) == null ? void 0 : $.name) || ((v = e.creator.target) == null ? void 0 : v.username) || "Anonymous"), 1),
|
91
|
+
!e.creator.hidden && ((C = (p = e.owner.target) == null ? void 0 : p.profile) == null ? void 0 : C.name) !== ((E = (z = e.creator.target) == null ? void 0 : z.profile) == null ? void 0 : E.name) ? (t(), s("span", {
|
92
|
+
key: 0,
|
93
|
+
onClick: n[3] || (n[3] = y((r) => {
|
94
|
+
var a;
|
95
|
+
return i.$router.push({
|
96
|
+
name: "User Profile",
|
97
|
+
params: {
|
98
|
+
_id: (a = e.creator.target) == null ? void 0 : a._id
|
99
|
+
}
|
100
|
+
});
|
101
|
+
}, ["stop"]))
|
102
|
+
}, " · by " + d(((M = (R = e.creator.target) == null ? void 0 : R.profile) == null ? void 0 : M.name) || ((P = e.creator.target) == null ? void 0 : P.username) || "Anonymous"), 1)) : o("", !0),
|
103
|
+
e.date ? (t(), s("span", K, "·")) : o("", !0),
|
104
|
+
e.date ? (t(), s("span", Q, [
|
105
|
+
e.date ? (t(), b(B, {
|
106
|
+
key: 0,
|
107
|
+
text: i.formatDate(e.date)
|
108
|
+
}, {
|
109
|
+
default: w(() => [
|
110
|
+
U(d(I(e.date)), 1)
|
111
|
+
]),
|
112
|
+
_: 1
|
113
|
+
}, 8, ["text"])) : o("", !0)
|
114
|
+
])) : o("", !0),
|
115
|
+
e.dateFormatted ? (t(), s("span", W, " · " + d(e.dateFormatted), 1)) : o("", !0)
|
116
|
+
])) : o("", !0),
|
117
|
+
c("div", X, [
|
118
|
+
e.members ? (t(), s("div", Y, [
|
119
|
+
c("span", Z, d(e.members), 1),
|
120
|
+
(t(!0), s(k, null, F(e.membersPhotos.slice(0, 2), (r, a) => (t(), s(k, null, [
|
121
|
+
r ? (t(), s("img", {
|
122
|
+
key: a,
|
123
|
+
src: (i.FILE_SERVER_URL || "") + r,
|
124
|
+
style: D({
|
125
|
+
position: "absolute",
|
126
|
+
top: "0px",
|
127
|
+
right: a * 20 + 20 + "%",
|
128
|
+
zIndex: 1 - a
|
129
|
+
}),
|
130
|
+
class: "br-solid br-2px br-white i-thin bg-light radius-big"
|
131
|
+
}, null, 12, _)) : (t(), b(V, {
|
132
|
+
key: 1,
|
133
|
+
style: D({
|
134
|
+
position: "absolute",
|
135
|
+
top: "0px",
|
136
|
+
right: a * 20 + 20 + "%",
|
137
|
+
zIndex: 1 - a
|
138
|
+
}),
|
139
|
+
class: "br-solid br-2px br-white i-thin bg-light radius-big"
|
140
|
+
}, null, 8, ["style"]))
|
141
|
+
], 64))), 256))
|
142
|
+
])) : o("", !0)
|
143
|
+
]),
|
144
|
+
e.type !== "short" && e.user ? (t(), b(N, {
|
145
|
+
key: 3,
|
146
|
+
label: { component: O, class: "t-transp i-regular" },
|
147
|
+
align: "right",
|
148
|
+
class: "cursor-pointer z-index-2"
|
149
|
+
}, {
|
150
|
+
default: w(() => [
|
151
|
+
c("section", ee, [
|
152
|
+
e.user !== e.creator.target._id ? (t(), b(A, {
|
153
|
+
key: 0,
|
154
|
+
user: e.user,
|
155
|
+
type: e.entityType,
|
156
|
+
target: e.entity._id,
|
157
|
+
text: "Report",
|
158
|
+
class: "w-100"
|
159
|
+
}, {
|
160
|
+
default: w(() => [
|
161
|
+
te
|
162
|
+
]),
|
163
|
+
_: 1
|
164
|
+
}, 8, ["user", "type", "target"])) : o("", !0),
|
165
|
+
e.actions && e.actions.length > 0 ? (t(!0), s(k, { key: 1 }, F(e.actions, (r) => (t(), s(k, null, [
|
166
|
+
r.to ? (t(), b(x, {
|
167
|
+
key: r.to,
|
168
|
+
to: r.to,
|
169
|
+
class: L(r.class || "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")
|
170
|
+
}, {
|
171
|
+
default: w(() => [
|
172
|
+
U(d(r.label), 1)
|
173
|
+
]),
|
174
|
+
_: 2
|
175
|
+
}, 1032, ["to", "class"])) : o("", !0),
|
176
|
+
r.method ? (t(), s("button", {
|
177
|
+
key: 1,
|
178
|
+
onClick: r.method,
|
179
|
+
class: L(r.class || "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button")
|
180
|
+
}, d(r.label), 11, re)) : o("", !0)
|
181
|
+
], 64))), 256)) : o("", !0)
|
182
|
+
])
|
183
|
+
]),
|
184
|
+
_: 1
|
185
|
+
}, 8, ["label"])) : o("", !0)
|
186
|
+
])
|
187
|
+
])
|
188
|
+
])) : o("", !0);
|
189
|
+
};
|
190
|
+
}
|
191
|
+
};
|
192
|
+
export {
|
193
|
+
be as default
|
194
|
+
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),C=require("../../../../icons/navigation/IconCalendar.vue.cjs"),M={class:"t-semi"},T={__name:"ButtonDate",props:{action:{type:Function},date:{type:Object}},setup(i){const d=i,{action:c,date:p}=t.toRefs(d),f=t.computed(()=>m(p.value)),D=()=>{c.value&&c.value()};function m(r){const e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],{start:s,end:n}=r;if(s===null&&n===null)return"All Time";const a=new Date(s),l=a.getUTCDate(),u=e[a.getUTCMonth()],g=a.getUTCFullYear();if(!n)return`${l} ${u} ${g}`;const o=new Date(n),h=o.getUTCDate(),_=e[o.getUTCMonth()],v=o.getUTCFullYear();return`${l} ${u} - ${h} ${_} ${v}`}return(r,e)=>(t.openBlock(),t.createElementBlock("div",{onClick:D,class:"cursor-pointer flex-center flex"},[t.createVNode(C.default,{class:"w-1r mn-r-thin h-auto"}),t.createElementVNode("span",M,t.toDisplayString(f.value),1)]))}};exports.default=T;
|
package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonDate.vue.js
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
import { toRefs as g, computed as C, openBlock as T, createElementBlock as v, createVNode as y, createElementVNode as M, toDisplayString as U } from "vue";
|
2
|
+
import k from "../../../../icons/navigation/IconCalendar.vue.js";
|
3
|
+
const x = { class: "t-semi" }, w = {
|
4
|
+
__name: "ButtonDate",
|
5
|
+
props: {
|
6
|
+
action: {
|
7
|
+
type: Function
|
8
|
+
},
|
9
|
+
date: {
|
10
|
+
type: Object
|
11
|
+
}
|
12
|
+
},
|
13
|
+
setup(u) {
|
14
|
+
const i = u, { action: o, date: p } = g(i), m = C(() => f(p.value)), d = () => {
|
15
|
+
o.value && o.value();
|
16
|
+
};
|
17
|
+
function f(c) {
|
18
|
+
const t = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], { start: r, end: e } = c;
|
19
|
+
if (r === null && e === null)
|
20
|
+
return "All Time";
|
21
|
+
const n = new Date(r), s = n.getUTCDate(), l = t[n.getUTCMonth()], D = n.getUTCFullYear();
|
22
|
+
if (!e)
|
23
|
+
return `${s} ${l} ${D}`;
|
24
|
+
const a = new Date(e), h = a.getUTCDate(), _ = t[a.getUTCMonth()], $ = a.getUTCFullYear();
|
25
|
+
return `${s} ${l} - ${h} ${_} ${$}`;
|
26
|
+
}
|
27
|
+
return (c, t) => (T(), v("div", {
|
28
|
+
onClick: d,
|
29
|
+
class: "cursor-pointer flex-center flex"
|
30
|
+
}, [
|
31
|
+
y(k, { class: "w-1r mn-r-thin h-auto" }),
|
32
|
+
M("span", x, U(m.value), 1)
|
33
|
+
]));
|
34
|
+
}
|
35
|
+
};
|
36
|
+
export {
|
37
|
+
w as default
|
38
|
+
};
|
package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../icons/navigation/IconSort.vue.cjs"),l={__name:"ButtonSort",props:{action:{type:Function},order:{type:String,required:!0}},setup(r){const o=r,{action:t,order:c}=e.toRefs(o),n=()=>{t.value&&t.value()};return(s,a)=>(e.openBlock(),e.createElementBlock("div",{onClick:n,class:"cursor-pointer t-center t-black radius-small flex-center flex aspect-1x1"},[e.createVNode(u.default,{order:e.unref(c),class:"w-100 h-auto"},null,8,["order"])]))}};exports.default=l;
|
package/dist/prometheus-framework/src/modules/globals/views/components/elements/ButtonSort.vue.js
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
import { toRefs as n, openBlock as a, createElementBlock as s, createVNode as l, unref as i } from "vue";
|
2
|
+
import u from "../../../../icons/navigation/IconSort.vue.js";
|
3
|
+
const _ = {
|
4
|
+
__name: "ButtonSort",
|
5
|
+
props: {
|
6
|
+
action: {
|
7
|
+
type: Function
|
8
|
+
},
|
9
|
+
order: {
|
10
|
+
type: String,
|
11
|
+
required: !0
|
12
|
+
}
|
13
|
+
},
|
14
|
+
setup(r) {
|
15
|
+
const t = r, { action: e, order: o } = n(t), c = () => {
|
16
|
+
e.value && e.value();
|
17
|
+
};
|
18
|
+
return (p, d) => (a(), s("div", {
|
19
|
+
onClick: c,
|
20
|
+
class: "cursor-pointer t-center t-black radius-small flex-center flex aspect-1x1"
|
21
|
+
}, [
|
22
|
+
l(u, {
|
23
|
+
order: i(o),
|
24
|
+
class: "w-100 h-auto"
|
25
|
+
}, null, 8, ["order"])
|
26
|
+
]));
|
27
|
+
}
|
28
|
+
};
|
29
|
+
export {
|
30
|
+
_ as default
|
31
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),g=require("../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.cjs"),v=require("vue-i18n"),w=require("vue-router"),i="https://weeder.delivery",f={__name:"App",props:{messages:{type:Object,required:!0}},setup(l){const u=l,{t:e,locale:_}=v.useI18n({messages:u.messages}),c=t.computed(()=>s(`${i}${o.path}`)),o=w.useRoute(),d=["en","ru"];function s(r){return r.endsWith("/")?r.slice(0,-1):r}const p=t.computed(()=>({title:e("meta.title"),description:e("meta.description"),meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"},{hid:"description",name:"description",content:e("meta.description")},{hid:"keywords",name:"keywords",content:e("meta.keywords")},{hid:"og:title",property:"og:title",content:e("meta.og.title")},{hid:"og:description",property:"og:description",content:e("meta.og.description")},{hid:"og:image",property:"og:image",content:i+"/favicon/cover.jpg"},{hid:"og:url",property:"og:url",content:c.value},{hid:"twitter:title",name:"twitter:title",content:e("meta.twitter.title")},{hid:"twitter:description",name:"twitter:description",content:e("meta.twitter.description")},{hid:"twitter:image",name:"twitter:image",content:i+"/favicon/cover.jpg"},{hid:"twitter:card",name:"twitter:card",content:e("meta.twitter.card")}],link:[{hid:"canonical",rel:"canonical",href:c.value},...m.value],htmlAttrs:{lang:e("meta.htmlAttrs.lang")}})),m=t.computed(()=>d.map(r=>{let n=o.path;console.log(o),o.params.locale?n=n.replace(`/${o.params.locale}`,`/${r}`):n=`/${r}${n}`;const a=s(`${i}${n}`);return{hid:"alternate",rel:"alternate",hreflang:r,href:a}}));return g.u(p.value),(r,n)=>{const a=t.resolveComponent("router-view");return t.openBlock(),t.createBlock(a,null,{default:t.withCtx(({Component:h})=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h)))]),_:1})}}};exports.default=f;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import { computed as a, resolveComponent as f, openBlock as l, createBlock as m, withCtx as v, resolveDynamicComponent as _ } from "vue";
|
2
|
+
import { u as y } from "../../../../../../../node_modules/@unhead/vue/dist/shared/vue.f36acd1f.js";
|
3
|
+
import { useI18n as k } from "vue-i18n";
|
4
|
+
import { useRoute as $ } from "vue-router";
|
5
|
+
const o = "https://weeder.delivery", B = {
|
6
|
+
__name: "App",
|
7
|
+
props: {
|
8
|
+
messages: {
|
9
|
+
type: Object,
|
10
|
+
required: !0
|
11
|
+
}
|
12
|
+
},
|
13
|
+
setup(p) {
|
14
|
+
const d = p, { t, locale: A } = k({
|
15
|
+
messages: d.messages
|
16
|
+
}), c = a(() => s(`${o}${n.path}`)), n = $(), u = ["en", "ru"];
|
17
|
+
function s(e) {
|
18
|
+
return e.endsWith("/") ? e.slice(0, -1) : e;
|
19
|
+
}
|
20
|
+
const h = a(() => ({
|
21
|
+
title: t("meta.title"),
|
22
|
+
description: t("meta.description"),
|
23
|
+
meta: [
|
24
|
+
{ charset: "utf-8" },
|
25
|
+
{ name: "viewport", content: "width=device-width, initial-scale=1, shrink-to-fit=no" },
|
26
|
+
{ hid: "description", name: "description", content: t("meta.description") },
|
27
|
+
{ hid: "keywords", name: "keywords", content: t("meta.keywords") },
|
28
|
+
{ hid: "og:title", property: "og:title", content: t("meta.og.title") },
|
29
|
+
{ hid: "og:description", property: "og:description", content: t("meta.og.description") },
|
30
|
+
{ hid: "og:image", property: "og:image", content: o + "/favicon/cover.jpg" },
|
31
|
+
{ hid: "og:url", property: "og:url", content: c.value },
|
32
|
+
{ hid: "twitter:title", name: "twitter:title", content: t("meta.twitter.title") },
|
33
|
+
{ hid: "twitter:description", name: "twitter:description", content: t("meta.twitter.description") },
|
34
|
+
{ hid: "twitter:image", name: "twitter:image", content: o + "/favicon/cover.jpg" },
|
35
|
+
{ hid: "twitter:card", name: "twitter:card", content: t("meta.twitter.card") }
|
36
|
+
],
|
37
|
+
link: [
|
38
|
+
{ hid: "canonical", rel: "canonical", href: c.value },
|
39
|
+
...g.value
|
40
|
+
],
|
41
|
+
htmlAttrs: { lang: t("meta.htmlAttrs.lang") }
|
42
|
+
})), g = a(() => u.map((e) => {
|
43
|
+
let r = n.path;
|
44
|
+
console.log(n), n.params.locale ? r = r.replace(`/${n.params.locale}`, `/${e}`) : r = `/${e}${r}`;
|
45
|
+
const i = s(`${o}${r}`);
|
46
|
+
return {
|
47
|
+
hid: "alternate",
|
48
|
+
rel: "alternate",
|
49
|
+
hreflang: e,
|
50
|
+
href: i
|
51
|
+
};
|
52
|
+
}));
|
53
|
+
return y(h.value), (e, r) => {
|
54
|
+
const i = f("router-view");
|
55
|
+
return l(), m(i, null, {
|
56
|
+
default: v(({ Component: w }) => [
|
57
|
+
(l(), m(_(w)))
|
58
|
+
]),
|
59
|
+
_: 1
|
60
|
+
});
|
61
|
+
};
|
62
|
+
}
|
63
|
+
};
|
64
|
+
export {
|
65
|
+
B as default
|
66
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../../../../_virtual/_plugin-vue_export-helper.cjs"),n={};function c(l,_){const t=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(t,null,{default:e.withCtx(({Component:o,route:i})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o)))]),_:1})}const u=r.default(n,[["render",c]]);exports.default=u;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { resolveComponent as n, openBlock as e, createBlock as o, withCtx as c, resolveDynamicComponent as _ } from "vue";
|
2
|
+
import m from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
3
|
+
const l = {};
|
4
|
+
function p(s, u) {
|
5
|
+
const t = n("router-view");
|
6
|
+
return e(), o(t, null, {
|
7
|
+
default: c(({ Component: r, route: a }) => [
|
8
|
+
(e(), o(_(r)))
|
9
|
+
]),
|
10
|
+
_: 1
|
11
|
+
});
|
12
|
+
}
|
13
|
+
const d = /* @__PURE__ */ m(l, [["render", p]]);
|
14
|
+
export {
|
15
|
+
d as default
|
16
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../../components/Tab/Tab.vue2.cjs"),i={class:"pd-medium flex-v-center flex-nowrap flex"},u={class:"mn-r-auto"},d=["onClick"],m={__name:"SectionPageTitle",props:{title:String,actions:Array,tabs:Array,tabs_current:[Object,String]},emits:["update:tabs_current"],setup(r,{emit:l}){const n=l,s=o=>{n("update:tabs_current",o)};return(o,b)=>{const a=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("header",i,[e.createElementVNode("h1",u,e.toDisplayString(r.title),1),r.actions&&r.actions.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.actions,t=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.to?(e.openBlock(),e.createBlock(a,{key:t.to,to:t.to,class:e.normalizeClass(t.class||"radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:2},1032,["to","class"])):e.createCommentVNode("",!0),t.method?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:t.method,class:e.normalizeClass(t.class||"radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex")},e.toDisplayString(t.label),11,d)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0)]),r.tabs?(e.openBlock(),e.createBlock(c.default,{key:0,selected:r.tabs_current,"onUpdate:selected":s,tabs:r.tabs,class:"br-t br-solid br-black-transp-10 w-100 t-nowrap o-scroll h5"},null,8,["selected","tabs"])):e.createCommentVNode("",!0)])}}};exports.default=m;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { resolveComponent as p, openBlock as r, createElementBlock as s, createElementVNode as o, toDisplayString as n, Fragment as c, renderList as f, createBlock as i, normalizeClass as u, withCtx as x, createTextVNode as k, createCommentVNode as a } from "vue";
|
2
|
+
import _ from "../../../../../components/Tab/Tab.vue2.js";
|
3
|
+
const g = { class: "pd-medium flex-v-center flex-nowrap flex" }, y = { class: "mn-r-auto" }, C = ["onClick"], B = {
|
4
|
+
__name: "SectionPageTitle",
|
5
|
+
props: {
|
6
|
+
title: String,
|
7
|
+
actions: Array,
|
8
|
+
tabs: Array,
|
9
|
+
tabs_current: [Object, String]
|
10
|
+
},
|
11
|
+
emits: [
|
12
|
+
"update:tabs_current"
|
13
|
+
],
|
14
|
+
setup(t, { emit: d }) {
|
15
|
+
const m = d, b = (l) => {
|
16
|
+
m("update:tabs_current", l);
|
17
|
+
};
|
18
|
+
return (l, w) => {
|
19
|
+
const h = p("router-link");
|
20
|
+
return r(), s("div", null, [
|
21
|
+
o("header", g, [
|
22
|
+
o("h1", y, n(t.title), 1),
|
23
|
+
t.actions && t.actions.length > 0 ? (r(!0), s(c, { key: 0 }, f(t.actions, (e) => (r(), s(c, null, [
|
24
|
+
e.to ? (r(), i(h, {
|
25
|
+
key: e.to,
|
26
|
+
to: e.to,
|
27
|
+
class: u(e.class || "radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex")
|
28
|
+
}, {
|
29
|
+
default: x(() => [
|
30
|
+
k(n(e.label), 1)
|
31
|
+
]),
|
32
|
+
_: 2
|
33
|
+
}, 1032, ["to", "class"])) : a("", !0),
|
34
|
+
e.method ? (r(), s("button", {
|
35
|
+
key: 1,
|
36
|
+
onClick: e.method,
|
37
|
+
class: u(e.class || "radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex")
|
38
|
+
}, n(e.label), 11, C)) : a("", !0)
|
39
|
+
], 64))), 256)) : a("", !0)
|
40
|
+
]),
|
41
|
+
t.tabs ? (r(), i(_, {
|
42
|
+
key: 0,
|
43
|
+
selected: t.tabs_current,
|
44
|
+
"onUpdate:selected": b,
|
45
|
+
tabs: t.tabs,
|
46
|
+
class: "br-t br-solid br-black-transp-10 w-100 t-nowrap o-scroll h5"
|
47
|
+
}, null, 8, ["selected", "tabs"])) : a("", !0)
|
48
|
+
]);
|
49
|
+
};
|
50
|
+
}
|
51
|
+
};
|
52
|
+
export {
|
53
|
+
B as default
|
54
|
+
};
|
package/dist/prometheus-framework/src/modules/globals/views/localization/get-browser-locale.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function o(t={}){const n={...{countryCodeOnly:!1},...t},e=navigator.languages!==void 0?navigator.languages[0]:navigator.language;return e?n.countryCodeOnly?e.trim().split(/-|_/)[0]:e.trim():void 0}exports.default=o;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function m(){const y=t=>t?(t.includes("ROLE_ADMIN")?t.includes("ROLE_ADMIN"):!1)===!0:!1,d=(t,l,s,i)=>{const r=i.find(a=>a.organization===t);if(!r)return!1;const n=r.rights[l];return n?n[s]===!0:!1},u=()=>"฿",f=t=>{const l=u();return`${t.toFixed(2).replace(".",",").replace(/\B(?=(\d{3})+(?!\d))/g," ")} ${l}`},g=(t,l={})=>{var s=new Date(t),i=s.getFullYear().toString(),e=(s.getMonth()+1).toString(),r=s.getDate().toString(),n=s.getHours().toString(),a=s.getMinutes().toString(),o={dateOnly:l.dateOnly||!1,timeOnly:l.timeOnly||!1,dayMonth:l.dayMonth||!1,dayTime:l.dayTime||!1,monthYear:l.monthYear||!1,yearOnly:l.yearOnly||!1,custom:l.custom||""};return o.dateOnly?i+"."+(e[1]?e:"0"+e[0])+"."+(r[1]?r:"0"+r[0]):o.timeOnly?(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0]):o.dayMonth?(r[1]?r:"0"+r[0])+"."+(e[1]?e:"0"+e[0]):o.dayTime?(r[1]?r:"0"+r[0])+" в "+(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0]):o.monthYear?(e[1]?e:"0"+e[0])+"."+i:o.yearOnly?i:o.custom?o.custom.replace("yyyy",i).replace("mm",e[1]?e:"0"+e[0]).replace("dd",r[1]?r:"0"+r[0]).replace("hh",n[1]?n:"0"+n[0]).replace("min",a[1]?a:"0"+a[0]):(n[1]?n:"0"+n[0])+":"+(a[1]?a:"0"+a[0])+", "+i+"."+(e[1]?e:"0"+e[0])+"."+(r[1]?r:"0"+r[0])},c=t=>(t||(t=""),t.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9-]/g,""));return{isAdmin:y,hasAccess:d,returnCurrency:u,formatPrice:f,formatDate:g,normalizeUrlParam:c,joinArrayToUrl:t=>t.join("/"),getMarketplaceLink:(t,l,s,i)=>{let e=l?c(l):"",r=s?c(s):"",n=i?c(i):"",a="/marketplace";return a+=e?`/${e}`:"",a+=e&&r?`/${r}`:"",a+=e&&r&&n?`/${n}`:"",t&&t.length&&(a+=`?categories=${t.join(",")}`),a},getSpotsLink:(t,l,s)=>{let i=t?c(t):"",e=l?c(l):"",r=s?c(s):"",n="/spots";return n+=i?`/${i}`:"",n+=i&&e?`/${e}`:"",n+=i&&e&&r?`/${r}`:"",n}}}const h={methods:m()};exports.globalMixins=h;exports.useGlobalMixins=m;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
function g() {
|
2
|
+
const m = (t) => t ? (t.includes("ROLE_ADMIN") ? t.includes("ROLE_ADMIN") : !1) === !0 : !1, y = (t, l, i, s) => {
|
3
|
+
const r = s.find((a) => a.organization === t);
|
4
|
+
if (!r)
|
5
|
+
return !1;
|
6
|
+
const n = r.rights[l];
|
7
|
+
return n ? n[i] === !0 : !1;
|
8
|
+
}, u = () => "฿", d = (t) => {
|
9
|
+
const l = u();
|
10
|
+
return `${t.toFixed(2).replace(".", ",").replace(/\B(?=(\d{3})+(?!\d))/g, " ")} ${l}`;
|
11
|
+
}, f = (t, l = {}) => {
|
12
|
+
var i = new Date(t), s = i.getFullYear().toString(), e = (i.getMonth() + 1).toString(), r = i.getDate().toString(), n = i.getHours().toString(), a = i.getMinutes().toString(), c = {
|
13
|
+
dateOnly: l.dateOnly || !1,
|
14
|
+
timeOnly: l.timeOnly || !1,
|
15
|
+
dayMonth: l.dayMonth || !1,
|
16
|
+
dayTime: l.dayTime || !1,
|
17
|
+
monthYear: l.monthYear || !1,
|
18
|
+
yearOnly: l.yearOnly || !1,
|
19
|
+
custom: l.custom || ""
|
20
|
+
};
|
21
|
+
return c.dateOnly ? s + "." + (e[1] ? e : "0" + e[0]) + "." + (r[1] ? r : "0" + r[0]) : c.timeOnly ? (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) : c.dayMonth ? (r[1] ? r : "0" + r[0]) + "." + (e[1] ? e : "0" + e[0]) : c.dayTime ? (r[1] ? r : "0" + r[0]) + " в " + (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) : c.monthYear ? (e[1] ? e : "0" + e[0]) + "." + s : c.yearOnly ? s : c.custom ? c.custom.replace("yyyy", s).replace("mm", e[1] ? e : "0" + e[0]).replace("dd", r[1] ? r : "0" + r[0]).replace("hh", n[1] ? n : "0" + n[0]).replace("min", a[1] ? a : "0" + a[0]) : (n[1] ? n : "0" + n[0]) + ":" + (a[1] ? a : "0" + a[0]) + ", " + s + "." + (e[1] ? e : "0" + e[0]) + "." + (r[1] ? r : "0" + r[0]);
|
22
|
+
}, o = (t) => (t || (t = ""), t.toLowerCase().replace(/ /g, "-").replace(/[^a-z0-9-]/g, ""));
|
23
|
+
return {
|
24
|
+
isAdmin: m,
|
25
|
+
hasAccess: y,
|
26
|
+
returnCurrency: u,
|
27
|
+
formatPrice: d,
|
28
|
+
formatDate: f,
|
29
|
+
normalizeUrlParam: o,
|
30
|
+
joinArrayToUrl: (t) => t.join("/"),
|
31
|
+
getMarketplaceLink: (t, l, i, s) => {
|
32
|
+
let e = l ? o(l) : "", r = i ? o(i) : "", n = s ? o(s) : "", a = "/marketplace";
|
33
|
+
return a += e ? `/${e}` : "", a += e && r ? `/${r}` : "", a += e && r && n ? `/${n}` : "", t && t.length && (a += `?categories=${t.join(",")}`), a;
|
34
|
+
},
|
35
|
+
getSpotsLink: (t, l, i) => {
|
36
|
+
let s = t ? o(t) : "", e = l ? o(l) : "", r = i ? o(i) : "", n = "/spots";
|
37
|
+
return n += s ? `/${s}` : "", n += s && e ? `/${e}` : "", n += s && e && r ? `/${r}` : "", n;
|
38
|
+
}
|
39
|
+
};
|
40
|
+
}
|
41
|
+
const O = {
|
42
|
+
methods: g()
|
43
|
+
};
|
44
|
+
export {
|
45
|
+
O as globalMixins,
|
46
|
+
g as useGlobalMixins
|
47
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});async function n(o,c,l){if(o.hash){const e=async(t,r)=>document.querySelector(t)||new Promise((s,u)=>{if(r>50)return s();setTimeout(()=>{s(e(t,++r||1))},1e3)});if(o.hash){let t=await e(o.hash),r=await e("#screen");return"scrollBehavior"in document.documentElement.style?r.scrollTo({top:t.offsetTop,behavior:"smooth"}):r.scrollTo(0,t.offsetTop)}}else return o.matched.some(e=>e.meta.scrollTo)?{top:m.meta.scrollTo.top,left:m.meta.scrollTo.left}:l?{savedPosition:l}:{top:0}}exports.default=n;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
async function a(o, n, l) {
|
2
|
+
if (o.hash) {
|
3
|
+
const e = async (t, r) => document.querySelector(t) || new Promise((s, c) => {
|
4
|
+
if (r > 50)
|
5
|
+
return s();
|
6
|
+
setTimeout(() => {
|
7
|
+
s(e(t, ++r || 1));
|
8
|
+
}, 1e3);
|
9
|
+
});
|
10
|
+
if (o.hash) {
|
11
|
+
let t = await e(o.hash), r = await e("#screen");
|
12
|
+
return "scrollBehavior" in document.documentElement.style ? r.scrollTo({ top: t.offsetTop, behavior: "smooth" }) : r.scrollTo(0, t.offsetTop);
|
13
|
+
}
|
14
|
+
} else return o.matched.some((e) => e.meta.scrollTo) ? { top: m.meta.scrollTo.top, left: m.meta.scrollTo.left } : l ? { savedPosition: l } : { top: 0 };
|
15
|
+
}
|
16
|
+
export {
|
17
|
+
a as default
|
18
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),n=l.reactive({loading:!1,isOpenLocationPopup:!1,isOpenSidebar:!1,position:null,search:null,theme:{darkmode:!1},error:{status:"",headers:"",data:"",show:"",name:"",message:""}}),a={setLoading(e){n.loading=e},toggleTheme(){let e=document.querySelector(":root");n.theme.darkmode=!n.theme.darkmode,e.classList.toggle("dark-theme");const o=["--white","--light","--grey","--dark","--black"];n.theme.originalColors||(n.theme.originalColors={},o.forEach(t=>{const s=getComputedStyle(document.documentElement).getPropertyValue(t).trim();n.theme.originalColors[t]=s})),m(o,n.theme.originalColors)},add(e,o){const t=e.findIndex(s=>s._id===o._id);t===-1?e.push(o):e[t]=o},update(e,o){const t=e.findIndex(s=>s._id===o._id);t===-1?e.push(o):Object.assign(e[t],o)},delete(e,o){const t=e.findIndex(s=>s._id===o._id);t!==-1&&e.splice(t,1)},increment(e,o){console.log(e),console.log(o);const t=e.find(s=>s._id===o._id);t&&t.quantity++},decrement(e,o){const t=e.find(r=>r._id===o._id),s=e.indexOf(t);s>-1&&(t.quantity--,t.quantity<1&&e.splice(s,1))},reset(e){}};function c(e){var t;let o;o=e,(t=e==null?void 0:e.response)!=null&&t.data&&(o=e.response.data),e&&o.errorCode?n.error.message=i18n.global.t(`errors.${o.errorCode}`):n.error.message=o.message||"Unknown error",n.error.show=!0,setTimeout(()=>n.error.show=!1,3e3)}function m(e,o){e.forEach(t=>{const s=o[t],r=s.split(",").map(Number);let d;t==="--white"?d=r.map(i=>255-i/1.075):t==="--black"?d=r.map(i=>255-i):t==="--grey"?d=r.map(i=>255-i*2):d=r.map(i=>255-i/1.075),document.documentElement.style.setProperty(t,n.theme.darkmode?d.join(", "):s)})}exports.actions=a;exports.setError=c;exports.state=n;
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { reactive as l } from "vue";
|
2
|
+
const n = l({
|
3
|
+
loading: !1,
|
4
|
+
isOpenLocationPopup: !1,
|
5
|
+
isOpenSidebar: !1,
|
6
|
+
position: null,
|
7
|
+
search: null,
|
8
|
+
theme: {
|
9
|
+
darkmode: !1
|
10
|
+
},
|
11
|
+
error: {
|
12
|
+
status: "",
|
13
|
+
headers: "",
|
14
|
+
data: "",
|
15
|
+
show: "",
|
16
|
+
name: "",
|
17
|
+
message: ""
|
18
|
+
}
|
19
|
+
}), m = {
|
20
|
+
setLoading(e) {
|
21
|
+
n.loading = e;
|
22
|
+
},
|
23
|
+
// Black/White Theme
|
24
|
+
toggleTheme() {
|
25
|
+
let e = document.querySelector(":root");
|
26
|
+
n.theme.darkmode = !n.theme.darkmode, e.classList.toggle("dark-theme");
|
27
|
+
const o = [
|
28
|
+
"--white",
|
29
|
+
"--light",
|
30
|
+
"--grey",
|
31
|
+
"--dark",
|
32
|
+
"--black"
|
33
|
+
];
|
34
|
+
n.theme.originalColors || (n.theme.originalColors = {}, o.forEach((t) => {
|
35
|
+
const s = getComputedStyle(document.documentElement).getPropertyValue(t).trim();
|
36
|
+
n.theme.originalColors[t] = s;
|
37
|
+
})), a(o, n.theme.originalColors);
|
38
|
+
},
|
39
|
+
add(e, o) {
|
40
|
+
const t = e.findIndex((s) => s._id === o._id);
|
41
|
+
t === -1 ? e.push(o) : e[t] = o;
|
42
|
+
},
|
43
|
+
update(e, o) {
|
44
|
+
const t = e.findIndex((s) => s._id === o._id);
|
45
|
+
t === -1 ? e.push(o) : Object.assign(e[t], o);
|
46
|
+
},
|
47
|
+
delete(e, o) {
|
48
|
+
const t = e.findIndex((s) => s._id === o._id);
|
49
|
+
t !== -1 && e.splice(t, 1);
|
50
|
+
},
|
51
|
+
increment(e, o) {
|
52
|
+
console.log(e), console.log(o);
|
53
|
+
const t = e.find(
|
54
|
+
(s) => s._id === o._id
|
55
|
+
);
|
56
|
+
t && t.quantity++;
|
57
|
+
},
|
58
|
+
decrement(e, o) {
|
59
|
+
const t = e.find(
|
60
|
+
(d) => d._id === o._id
|
61
|
+
), s = e.indexOf(t);
|
62
|
+
s > -1 && (t.quantity--, t.quantity < 1 && e.splice(s, 1));
|
63
|
+
},
|
64
|
+
reset(e) {
|
65
|
+
}
|
66
|
+
};
|
67
|
+
function f(e) {
|
68
|
+
var t;
|
69
|
+
let o;
|
70
|
+
o = e, (t = e == null ? void 0 : e.response) != null && t.data && (o = e.response.data), e && o.errorCode ? n.error.message = i18n.global.t(`errors.${o.errorCode}`) : n.error.message = o.message || "Unknown error", n.error.show = !0, setTimeout(() => n.error.show = !1, 3e3);
|
71
|
+
}
|
72
|
+
function a(e, o) {
|
73
|
+
e.forEach((t) => {
|
74
|
+
const s = o[t], d = s.split(",").map(Number);
|
75
|
+
let r;
|
76
|
+
t === "--white" ? r = d.map((i) => 255 - i / 1.075) : t === "--black" ? r = d.map((i) => 255 - i) : t === "--grey" ? r = d.map((i) => 255 - i * 2) : r = d.map((i) => 255 - i / 1.075), document.documentElement.style.setProperty(t, n.theme.darkmode ? r.join(", ") : s);
|
77
|
+
});
|
78
|
+
}
|
79
|
+
export {
|
80
|
+
m as actions,
|
81
|
+
f as setError,
|
82
|
+
n as state
|
83
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-i18n"),p=require("../../localization/SubscribeNewsletter.json.cjs"),b=require("../../../../components/FieldBig/FieldBig.vue.cjs"),l=require("../../../globals/store/globals.cjs"),m=require("../../../orders/store/applications.cjs"),n=require("../../../auth/views/validations/inputs.validation.cjs");;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),v=r=>(e.pushScopeId("data-v-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-i18n"),p=require("../../localization/SubscribeNewsletter.json.cjs"),b=require("../../../../components/FieldBig/FieldBig.vue.cjs"),l=require("../../../globals/views/store/globals.cjs"),m=require("../../../orders/store/applications.cjs"),n=require("../../../auth/views/validations/inputs.validation.cjs");;/* empty css */const _=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),v=r=>(e.pushScopeId("data-v-4a28df5c"),r=r(),e.popScopeId(),r),g={class:"pd-thin"},f={class:"pos-relative o-hidden t-black bg-main pd-big radius-big"},h={class:"pos-relative z-index-1"},w={class:"t-center z-index-1 mn-b-big"},N={class:"mn-l-auto mn-r-auto mn-b-medium"},S={class:"t-transp p-big"},E={class:"z-index-1 w-100 flex-nowrap flex"},y=v(()=>e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-b-50-negative pos-r-0 z-index-0 grid"},[e.createElementVNode("div",{class:"spiral"})],-1)),V={__name:"SubscribeNewsletter",setup(r){const{t:a}=u.useI18n({useScope:"global",...p.default});let s=e.ref(""),c=e.ref(!1);async function d(){try{await n.validateInputs(c,n.validateEmail,s.value,"Wrong email")}catch{return l.setError({response:{status:"Invalid Email",data:{message:"The email address entered is invalid. Please provide a valid email address."}}}),!1}gtag("event","subscribe_newsletter",{event_category:"conversion",event_label:"Subscribe Newsletter"});try{let t={type:"newsletter",contacts:{email:s.value}};const i=await m.create(t);return Promise.resolve(i.data)}catch(t){return console.log(t),l.setError(t),Promise.reject(t)}}return(t,i)=>(e.openBlock(),e.createElementBlock("section",g,[e.createElementVNode("div",f,[e.createElementVNode("div",h,[e.createElementVNode("header",w,[e.createElementVNode("h2",N,e.toDisplayString(e.unref(a)("SubscribeNewsletter.title")),1),e.createElementVNode("p",S,e.toDisplayString(e.unref(a)("SubscribeNewsletter.subtitle")),1)]),e.createElementVNode("div",E,[e.createVNode(b.default,{input:e.unref(s),typingSpeed:75,loopTyping:!1,enableTyping:!1,placeholder:e.unref(a)("SubscribeNewsletter.placeholder"),action:e.unref(a)("SubscribeNewsletter.action"),"onUpdate:input":i[0]||(i[0]=o=>e.isRef(s)?s.value=o:s=o),onAction:d,class:"mn-l-auto mn-r-auto bg-white t-black w-100 w-max-30r"},null,8,["input","placeholder","action"])])]),y])]))}},q=_.default(V,[["__scopeId","data-v-4a28df5c"]]);exports.default=q;
|