@ozdao/prometheus-framework 0.2.187 → 0.2.189
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +35 -23
- package/dist/auth.server.mjs +35 -23
- package/dist/builder.js +6 -3
- package/dist/builder.mjs +6 -3
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/mailing-BQKyTI-q.js +77 -0
- package/dist/mailing-C3VD4l0h.mjs +78 -0
- package/dist/main-BVZtf9OG.js +92 -0
- package/dist/main-CbTw08vO.mjs +13584 -0
- 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/orders.server.js +162 -12
- package/dist/orders.server.mjs +162 -12
- package/dist/organizations.server.js +1 -1
- package/dist/organizations.server.mjs +1 -1
- 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/auth.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +41 -22
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +41 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +124 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +94 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +82 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +118 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +168 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +129 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/components/sections/SliderFeatures.vue.js +88 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/EnterCode.json.js +20 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/EnterPassword.json.js +26 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/ResetPassword.json.js +30 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/SignIn.json.js +38 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/localization/SignUp.json.js +32 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/middlewares/auth.validation.js +30 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/auth.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/router/auth.js +119 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/auth.js +176 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/store/twofa.js +31 -0
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.cjs +1 -0
- package/dist/prometheus-framework/src/modules/auth/views/validations/inputs.validation.js +45 -0
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.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/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +3 -4
- 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/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- 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/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.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/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +12 -13
- package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/FeaturedEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.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 +3 -3
- 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/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.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/localization/get-browser-locale.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/localization/get-browser-locale.js +7 -0
- package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/router/scrollBehavior.js +18 -0
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +38 -76
- 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/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +3 -3
- 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/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.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 +3 -4
- 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 +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- 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 +3 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/router/departments.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/departments.router.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/members.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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.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 +3 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +2 -3
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/router/categories.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/router/categories.router.js +1 -1
- package/dist/prometheus-framework/src/modules/products/router/leftovers.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/router/leftovers.router.js +1 -1
- package/dist/prometheus-framework/src/modules/products/router/products.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/router/products.router.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 +3 -4
- 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 +2 -2
- 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/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.js +3 -4
- 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/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/router/payments.router.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/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/tickets.controller-BWVUA-GR.js +401 -0
- package/dist/tickets.controller-ChVmHHnj.mjs +402 -0
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/dist/web-CK9TrlwB.js +1 -0
- package/dist/web-aOWHNbX1.mjs +54 -0
- 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/Breadcrumbs/Breadcrumbs.vue +0 -1
- package/src/components/Feed/Feed.vue +5 -5
- package/src/components/Sidebar/Sidebar.vue +2 -2
- package/src/modules/auth/auth.client.js +53 -28
- package/src/modules/auth/auth.server.js +32 -14
- package/src/modules/auth/{routes → controllers/routes}/auth.routes.js +3 -3
- package/src/modules/auth/{routes → controllers/routes}/twofa.routes.js +2 -2
- package/src/modules/auth/controllers/{auth.controller.js → services/auth.service.js} +2 -3
- package/src/modules/auth/controllers/{twofa.controller.js → services/twofa.service.js} +1 -1
- package/src/modules/auth/models/role.model.js +9 -8
- package/src/modules/auth/{components → views/components}/layouts/Auth.vue +3 -3
- package/src/modules/auth/{components → views/components}/pages/EnterCode.vue +4 -4
- package/src/modules/auth/{components → views/components}/pages/EnterPassword.vue +3 -3
- package/src/modules/auth/{components → views/components}/pages/Invite.vue +2 -2
- package/src/modules/auth/{components → views/components}/pages/ResetPassword.vue +4 -4
- package/src/modules/auth/{components → views/components}/pages/SignIn.vue +3 -3
- package/src/modules/auth/{components → views/components}/pages/SignUp.vue +4 -4
- package/src/modules/{middlewares/client → auth/views/middlewares}/auth.validation.js +20 -1
- package/src/modules/auth/views/router/auth.js +102 -0
- package/src/modules/auth/{store → views/store}/auth.js +1 -1
- package/src/modules/auth/{store → views/store}/twofa.js +1 -1
- package/src/modules/{middlewares/client → auth/views/validations}/inputs.validation.js +3 -6
- package/src/modules/backoffice/components/layouts/Backoffice.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +1 -1
- package/src/modules/backoffice/components/partials/Sidebar.vue +1 -1
- package/src/modules/backoffice/router/backoffice.js +2 -2
- package/src/modules/chats/controllers/chats.controller.js +1 -1
- package/src/modules/chats/routes/chats.routes.js +1 -1
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/layouts/Community.vue +1 -1
- package/src/modules/community/components/pages/Blog.vue +1 -1
- package/src/modules/community/components/pages/BlogPost.vue +64 -3
- package/src/modules/community/components/pages/Community.vue +1 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
- package/src/modules/community/components/sections/Comment.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/community/models/blogpost.model.js +4 -4
- package/src/modules/community/routes/blog.routes.js +1 -1
- 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/components/elements/ButtonJoin.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +1 -1
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Event.vue +1 -1
- package/src/modules/events/components/pages/Events.vue +1 -1
- package/src/modules/events/components/sections/FeaturedEvents.vue +1 -1
- 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/router/events.js +1 -1
- package/src/modules/events/routes/events.routes.js +1 -1
- package/src/modules/events/store/events.js +1 -1
- package/src/modules/events/store/tickets.js +1 -1
- package/src/modules/files/routes/files.routes.js +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +2 -2
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +3 -3
- package/src/modules/gallery/models/photo.model.js +3 -3
- package/src/modules/gallery/routes/gallery.routes.js +2 -2
- 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 +79 -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/globals/views/router/scrollBehavior.js +30 -0
- package/src/modules/globals/{store → views/store}/globals.js +3 -3
- package/src/modules/integrations/stripe/controllers/webhooks/stripe.webhook.js +2 -2
- package/src/modules/landing/components/sections/SubscribeNewsletter.vue +2 -2
- package/src/modules/legal/components/pages/Legal.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 +2 -2
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
- package/src/modules/orders/components/pages/Orders.vue +3 -3
- package/src/modules/orders/components/sections/FormAddCustomer.vue +3 -3
- 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 -2
- package/src/modules/orders/orders.server.js +4 -2
- 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/routes/applications.routes.js +2 -1
- package/src/modules/orders/routes/orders.routes.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/elements/ButtonToggleMembership.vue +1 -1
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +3 -3
- package/src/modules/organizations/components/pages/Organization.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationCreate.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationDetails.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +1 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/components/sections/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/Publics.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 +2 -2
- package/src/modules/organizations/router/departments.router.js +1 -1
- package/src/modules/organizations/router/members.router.js +1 -1
- package/src/modules/organizations/router/organizations.js +2 -2
- package/src/modules/organizations/routes/invites.routes.js +1 -1
- package/src/modules/organizations/store/departments.js +1 -1
- package/src/modules/organizations/store/invites.js +2 -2
- 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 +2 -2
- package/src/modules/pages/views/components/pages/PageEdit.vue +1 -1
- package/src/modules/pages/views/components/pages/Pages.vue +3 -3
- package/src/modules/pages/views/components/partials/SidebarPages.vue +2 -2
- 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 +2 -2
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/pages/ProductEdit.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +2 -2
- package/src/modules/products/models/leftover.model.js +1 -1
- package/src/modules/products/router/categories.router.js +1 -1
- package/src/modules/products/router/leftovers.router.js +1 -1
- package/src/modules/products/router/products.router.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 +2 -2
- package/src/modules/spots/spots.server.js +1 -1
- package/src/modules/spots/store/spots.js +1 -1
- package/src/modules/users/components/pages/Profile.vue +1 -1
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +2 -2
- package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
- package/src/modules/users/models/user.model.js +3 -3
- package/src/modules/users/router/users.js +1 -2
- package/src/modules/wallet/controllers/routes/payments.routes.js +2 -2
- package/src/modules/wallet/controllers/routes/rewards.routes.js +1 -1
- package/src/modules/wallet/views/components/pages/Payments.vue +1 -1
- package/src/modules/wallet/views/router/payments.router.js +1 -2
- 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/auth/router/auth.js +0 -111
- package/src/modules/globals/localization/methods/get-app-locales.js +0 -13
- package/src/modules/globals/localization/vue-i18n.js +0 -38
- package/src/modules/globals/localization/vue-i18n.singleton.js +0 -11
- package/src/modules/globals/router/routerGuards.js +0 -29
- package/src/modules/middlewares/client/states.validation.js +0 -23
- package/src/modules/middlewares/middlewares.client.js +0 -11
- package/src/modules/middlewares/middlewares.server.js +0 -18
- package/src/modules/orders/routes/backcalls.routes.js +0 -36
- package/src/modules/orders/routes/fastorders.routes.js +0 -32
- /package/src/modules/auth/{middlewares → controllers/middlewares}/authJwt.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/authSecret.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/index.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyAccesses.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyInvites.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/verifySignUp.js +0 -0
- /package/src/modules/auth/{middlewares → controllers/middlewares}/verifyUser.js +0 -0
- /package/src/modules/auth/{utils/server → controllers/utils}/verifyAppleIdToken.js +0 -0
- /package/src/modules/auth/{components → views/components}/sections/SliderFeatures.vue +0 -0
- /package/src/modules/auth/{localization → views/localization}/EnterCode.json +0 -0
- /package/src/modules/auth/{localization → views/localization}/EnterPassword.json +0 -0
- /package/src/modules/auth/{localization → views/localization}/ResetPassword.json +0 -0
- /package/src/modules/auth/{localization → views/localization}/SignIn.json +0 -0
- /package/src/modules/auth/{localization → views/localization}/SignUp.json +0 -0
- /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/methods → views/localization}/get-browser-locale.js +0 -0
- /package/src/modules/globals/{mixins → views/mixins}/mixins.js +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),f=require("../../../../unhead/dist/index.cjs");o.version.startsWith("3");function l(e){return typeof e=="function"?e():o.unref(e)}function r(e,c=""){if(e instanceof Promise)return e;const n=l(e);return!e||!n?n:Array.isArray(n)?n.map(t=>r(t,c)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([t,i])=>t==="titleTemplate"||t.startsWith("on")?[t,o.unref(i)]:[t,r(i,t)])):n}const a="usehead",s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},u="__unhead_injection_handler__";function d(){if(u in s)return s[u]();const e=o.inject(a);return!e&&process.env.NODE_ENV!=="production"&&console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results."),e||f.getActiveHead()}exports.h=a;exports.i=d;exports.r=r;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { version as u, unref as a, inject as c } from "vue";
|
2
|
+
import { getActiveHead as l } from "../../../../unhead/dist/index.js";
|
3
|
+
u.startsWith("3");
|
4
|
+
function d(e) {
|
5
|
+
return typeof e == "function" ? e() : a(e);
|
6
|
+
}
|
7
|
+
function r(e, f = "") {
|
8
|
+
if (e instanceof Promise)
|
9
|
+
return e;
|
10
|
+
const n = d(e);
|
11
|
+
return !e || !n ? n : Array.isArray(n) ? n.map((t) => r(t, f)) : typeof n == "object" ? Object.fromEntries(
|
12
|
+
Object.entries(n).map(([t, o]) => t === "titleTemplate" || t.startsWith("on") ? [t, a(o)] : [t, r(o, t)])
|
13
|
+
) : n;
|
14
|
+
}
|
15
|
+
const p = "usehead", i = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, s = "__unhead_injection_handler__";
|
16
|
+
function b() {
|
17
|
+
if (s in i)
|
18
|
+
return i[s]();
|
19
|
+
const e = c(p);
|
20
|
+
return !e && process.env.NODE_ENV !== "production" && console.warn("Unhead is missing Vue context, falling back to shared context. This may have unexpected results."), e || l();
|
21
|
+
}
|
22
|
+
export {
|
23
|
+
p as h,
|
24
|
+
b as i,
|
25
|
+
r
|
26
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./vue.cf295fb1.cjs");function f(r,n={}){const t=n.head||s.i();if(t)return t.ssr?t.push(r,n):v(t,r,n)}function v(r,n,t={}){const u=e.ref(!1),a=e.ref({});e.watchEffect(()=>{a.value=u.value?{}:s.r(n)});const c=r.push(a.value,t);return e.watch(a,o=>{c.patch(o)}),e.getCurrentInstance()&&(e.onBeforeUnmount(()=>{c.dispose()}),e.onDeactivated(()=>{u.value=!0}),e.onActivated(()=>{u.value=!1})),c}exports.u=f;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ref as u, watchEffect as o, watch as f, getCurrentInstance as d, onBeforeUnmount as v, onDeactivated as i, onActivated as l } from "vue";
|
2
|
+
import { i as h, r as m } from "./vue.cf295fb1.js";
|
3
|
+
function w(a, t = {}) {
|
4
|
+
const e = t.head || h();
|
5
|
+
if (e)
|
6
|
+
return e.ssr ? e.push(a, t) : p(e, a, t);
|
7
|
+
}
|
8
|
+
function p(a, t, e = {}) {
|
9
|
+
const n = u(!1), r = u({});
|
10
|
+
o(() => {
|
11
|
+
r.value = n.value ? {} : m(t);
|
12
|
+
});
|
13
|
+
const s = a.push(r.value, e);
|
14
|
+
return f(r, (c) => {
|
15
|
+
s.patch(c);
|
16
|
+
}), d() && (v(() => {
|
17
|
+
s.dispose();
|
18
|
+
}), i(() => {
|
19
|
+
n.value = !0;
|
20
|
+
}), l(() => {
|
21
|
+
n.value = !1;
|
22
|
+
})), s;
|
23
|
+
}
|
24
|
+
export {
|
25
|
+
w as u
|
26
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e;function t(){return e}exports.getActiveHead=t;
|
package/dist/orders.server.js
CHANGED
@@ -4,9 +4,10 @@ const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
|
4
4
|
const profile_schema = require("./profile.schema-CkOhhf37.js");
|
5
5
|
const credentials_schema = require("./credentials.schema-B-KD_ozQ.js");
|
6
6
|
const queryProcessor = require("./queryProcessor-iewDZq_f.js");
|
7
|
-
const mailing = require("./mailing-
|
7
|
+
const mailing = require("./mailing-BQKyTI-q.js");
|
8
8
|
const index = require("./index-oS9yx2Kv.js");
|
9
|
-
const require$$0 = require("
|
9
|
+
const require$$0 = require("axios");
|
10
|
+
const require$$0$1 = require("node-cache");
|
10
11
|
const applyOwnershipSchema$1 = ownership_schema.ownership_schema;
|
11
12
|
var order_model = (db) => {
|
12
13
|
const OrderSchema = new db.mongoose.Schema({
|
@@ -201,7 +202,7 @@ var application_model = (db) => {
|
|
201
202
|
return Application;
|
202
203
|
};
|
203
204
|
const queryProcessorGlobals = queryProcessor.queryProcessor;
|
204
|
-
const { sendChatMessageTelegram } = mailing.mailing;
|
205
|
+
const { sendChatMessageTelegram: sendChatMessageTelegram$1 } = mailing.mailing;
|
205
206
|
function formatPositions(positions) {
|
206
207
|
return positions.map((pos) => `🔹 ${pos.name} - Price: $${pos.price}, Quantity: ${pos.quantity}`).join("\n");
|
207
208
|
}
|
@@ -253,12 +254,12 @@ async function findOrCreateCustomer(Customer, customerInfo, orderOwner, orderCre
|
|
253
254
|
async function sendOrderMessage(orderData) {
|
254
255
|
try {
|
255
256
|
const formattedMessage = formatOrderMessage(orderData);
|
256
|
-
await sendChatMessageTelegram(process.env.TELEGRAM_BOT_USERS.split(","), formattedMessage);
|
257
|
+
await sendChatMessageTelegram$1(process.env.TELEGRAM_BOT_USERS.split(","), formattedMessage);
|
257
258
|
} catch (err) {
|
258
259
|
console.error(err);
|
259
260
|
}
|
260
261
|
}
|
261
|
-
const controllerFactory$
|
262
|
+
const controllerFactory$2 = (db) => {
|
262
263
|
const Order = db.order;
|
263
264
|
const Customer = db.customer;
|
264
265
|
const Leftover = db.leftover;
|
@@ -408,12 +409,12 @@ const controllerFactory$1 = (db) => {
|
|
408
409
|
deleteOrder
|
409
410
|
};
|
410
411
|
};
|
411
|
-
var orders_controller = controllerFactory$
|
412
|
-
const controllerFactory = orders_controller;
|
413
|
-
const middlewareFactoryAuth = index.middlewares;
|
412
|
+
var orders_controller = controllerFactory$2;
|
413
|
+
const controllerFactory$1 = orders_controller;
|
414
|
+
const middlewareFactoryAuth$1 = index.middlewares;
|
414
415
|
var orders_routes = function(app, db, origins, publicPath) {
|
415
|
-
const controller = controllerFactory(db);
|
416
|
-
middlewareFactoryAuth(db);
|
416
|
+
const controller = controllerFactory$1(db);
|
417
|
+
middlewareFactoryAuth$1(db);
|
417
418
|
app.post(
|
418
419
|
"/api/orders/create",
|
419
420
|
// [
|
@@ -440,7 +441,154 @@ var orders_routes = function(app, db, origins, publicPath) {
|
|
440
441
|
controller.deleteOrder
|
441
442
|
);
|
442
443
|
};
|
443
|
-
const
|
444
|
+
const axios = require$$0;
|
445
|
+
const { sendChatMessageTelegram } = mailing.mailing;
|
446
|
+
const middlewareFactory = (db) => {
|
447
|
+
const Application = db.application;
|
448
|
+
const read = async (req, res) => {
|
449
|
+
try {
|
450
|
+
const applications = await Application.find({});
|
451
|
+
if (!applications) {
|
452
|
+
return res.status(404).send({ message: "Applications not found." });
|
453
|
+
}
|
454
|
+
res.status(200).send(applications);
|
455
|
+
} catch (err) {
|
456
|
+
res.status(500).send({ message: err });
|
457
|
+
}
|
458
|
+
};
|
459
|
+
const create = async (req, res) => {
|
460
|
+
try {
|
461
|
+
const application = await Application.create(req.body);
|
462
|
+
if (!application) {
|
463
|
+
return res.status(404).send({ message: "Something wrong when creating application." });
|
464
|
+
}
|
465
|
+
try {
|
466
|
+
const messageSent = await sendChatMessageTelegram(process.env.TELEGRAM_BOT_USERS.split(","), `New application from ${req.body}`);
|
467
|
+
} catch (err) {
|
468
|
+
console.log(err);
|
469
|
+
}
|
470
|
+
res.status(200).send(application);
|
471
|
+
} catch (err) {
|
472
|
+
res.status(500).send({ message: err });
|
473
|
+
}
|
474
|
+
};
|
475
|
+
const update = async (req, res) => {
|
476
|
+
try {
|
477
|
+
const application = await Application.findOneAndUpdate({ _id: req.params._id }, req.body, { new: true });
|
478
|
+
if (!application) {
|
479
|
+
return res.status(404).send({ message: "Application not found." });
|
480
|
+
}
|
481
|
+
res.status(200).send(application);
|
482
|
+
} catch (err) {
|
483
|
+
res.status(500).send({ message: err });
|
484
|
+
}
|
485
|
+
};
|
486
|
+
const deleteMethod = async (req, res) => {
|
487
|
+
try {
|
488
|
+
const application = await Application.findOneAndDelete({ _id: req.params._id });
|
489
|
+
if (!application) {
|
490
|
+
return res.status(404).send({ message: "Something wrong when deleting application." });
|
491
|
+
}
|
492
|
+
res.status(200).send(application);
|
493
|
+
} catch (err) {
|
494
|
+
res.status(500).send({ message: err });
|
495
|
+
}
|
496
|
+
};
|
497
|
+
const get = async (req, res) => {
|
498
|
+
try {
|
499
|
+
const application = await Application.findOne({ url: req.params.url });
|
500
|
+
if (!application) {
|
501
|
+
return res.status(404).send({ message: "Application not found." });
|
502
|
+
}
|
503
|
+
res.status(200).send(application);
|
504
|
+
} catch (err) {
|
505
|
+
res.status(500).send({ message: err });
|
506
|
+
}
|
507
|
+
};
|
508
|
+
const handleTelegramWebhook = async (req, res) => {
|
509
|
+
const update2 = req.body;
|
510
|
+
if (update2.callback_query) {
|
511
|
+
const callbackQuery = update2.callback_query;
|
512
|
+
const callbackData = callbackQuery.data;
|
513
|
+
const [action, applicationId] = callbackData.split("_");
|
514
|
+
try {
|
515
|
+
let updatedApplication = null;
|
516
|
+
switch (action) {
|
517
|
+
case "confirm":
|
518
|
+
updatedApplication = await Application.findOneAndUpdate(
|
519
|
+
{ _id: applicationId },
|
520
|
+
{ status: "confirmed" },
|
521
|
+
{ new: true }
|
522
|
+
);
|
523
|
+
break;
|
524
|
+
case "lost":
|
525
|
+
updatedApplication = await Application.findOneAndUpdate(
|
526
|
+
{ _id: applicationId },
|
527
|
+
{ status: "lost" },
|
528
|
+
{ new: true }
|
529
|
+
);
|
530
|
+
break;
|
531
|
+
case "delete":
|
532
|
+
updatedApplication = await Application.findOneAndDelete({ _id: applicationId });
|
533
|
+
break;
|
534
|
+
}
|
535
|
+
if (!updatedApplication) {
|
536
|
+
console.log("Application not found or not updated.");
|
537
|
+
} else {
|
538
|
+
console.log("Application updated:", updatedApplication);
|
539
|
+
}
|
540
|
+
} catch (err) {
|
541
|
+
console.log("Error updating application:", err);
|
542
|
+
}
|
543
|
+
const queryId = callbackQuery.id;
|
544
|
+
const telegramToken = "6206215053:AAHYCYzpFZF9jDZC-TC03NSff8oo2ExqsSU";
|
545
|
+
axios.post(`https://api.telegram.org/bot${telegramToken}/answerCallbackQuery`, {
|
546
|
+
callback_query_id: queryId
|
547
|
+
});
|
548
|
+
}
|
549
|
+
res.sendStatus(200);
|
550
|
+
};
|
551
|
+
return {
|
552
|
+
read,
|
553
|
+
create,
|
554
|
+
update,
|
555
|
+
delete: deleteMethod,
|
556
|
+
handleTelegramWebhook,
|
557
|
+
get
|
558
|
+
};
|
559
|
+
};
|
560
|
+
var applications_controller = middlewareFactory;
|
561
|
+
const controllerFactory = applications_controller;
|
562
|
+
const middlewareFactoryAuth = index.middlewares;
|
563
|
+
var applications_routes = function(app, db, origins) {
|
564
|
+
const controller = controllerFactory(db);
|
565
|
+
middlewareFactoryAuth(db);
|
566
|
+
app.post(
|
567
|
+
"/applications",
|
568
|
+
controller.create
|
569
|
+
);
|
570
|
+
app.get(
|
571
|
+
"/applications",
|
572
|
+
controller.read
|
573
|
+
);
|
574
|
+
app.post(
|
575
|
+
"/applications/:_id",
|
576
|
+
controller.update
|
577
|
+
);
|
578
|
+
app.delete(
|
579
|
+
"/applications/:_id",
|
580
|
+
controller.delete
|
581
|
+
);
|
582
|
+
app.get(
|
583
|
+
"/applications/:_id",
|
584
|
+
controller.get
|
585
|
+
);
|
586
|
+
app.post(
|
587
|
+
"/applications/telegram-webhook",
|
588
|
+
controller.handleTelegramWebhook
|
589
|
+
);
|
590
|
+
};
|
591
|
+
const NodeCache = require$$0$1;
|
444
592
|
const stdTTL = 60 * 5;
|
445
593
|
let Cache$1 = class Cache {
|
446
594
|
constructor(ttlSeconds = stdTTL) {
|
@@ -597,6 +745,7 @@ const ModelCustomer = customer_model;
|
|
597
745
|
const ModelTestimonial = testimonial_model;
|
598
746
|
const ModelApplication = application_model;
|
599
747
|
const RoutesOrder = orders_routes;
|
748
|
+
const RoutesApplications = applications_routes;
|
600
749
|
const FactoryOrder = orders_controller;
|
601
750
|
const CRUD2 = globals_crud;
|
602
751
|
function initializeOrders(app, db, origins, publicPath) {
|
@@ -606,8 +755,9 @@ function initializeOrders(app, db, origins, publicPath) {
|
|
606
755
|
db.application = ModelApplication(db);
|
607
756
|
if (app) {
|
608
757
|
RoutesOrder(app, db);
|
758
|
+
RoutesApplications(app, db);
|
759
|
+
new CRUD2("/api/customers", app, db, db.customer);
|
609
760
|
}
|
610
|
-
new CRUD2("/api/customers", app, db, db.customer);
|
611
761
|
}
|
612
762
|
var orders_server = {
|
613
763
|
initialize: initializeOrders,
|
package/dist/orders.server.mjs
CHANGED
@@ -3,9 +3,10 @@ import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
|
3
3
|
import { p as profile_schema } from "./profile.schema-24ZpZQJe.mjs";
|
4
4
|
import { c as credentials_schema } from "./credentials.schema-C9dmNy7o.mjs";
|
5
5
|
import { q as queryProcessor } from "./queryProcessor-DQSFR9YA.mjs";
|
6
|
-
import { m as mailing } from "./mailing-
|
6
|
+
import { m as mailing } from "./mailing-C3VD4l0h.mjs";
|
7
7
|
import { m as middlewares } from "./index-DahVPg_G.mjs";
|
8
|
-
import require$$0 from "
|
8
|
+
import require$$0 from "axios";
|
9
|
+
import require$$0$1 from "node-cache";
|
9
10
|
const applyOwnershipSchema$1 = ownership_schema;
|
10
11
|
var order_model = (db) => {
|
11
12
|
const OrderSchema = new db.mongoose.Schema({
|
@@ -200,7 +201,7 @@ var application_model = (db) => {
|
|
200
201
|
return Application;
|
201
202
|
};
|
202
203
|
const queryProcessorGlobals = queryProcessor;
|
203
|
-
const { sendChatMessageTelegram } = mailing;
|
204
|
+
const { sendChatMessageTelegram: sendChatMessageTelegram$1 } = mailing;
|
204
205
|
function formatPositions(positions) {
|
205
206
|
return positions.map((pos) => `🔹 ${pos.name} - Price: $${pos.price}, Quantity: ${pos.quantity}`).join("\n");
|
206
207
|
}
|
@@ -252,12 +253,12 @@ async function findOrCreateCustomer(Customer, customerInfo, orderOwner, orderCre
|
|
252
253
|
async function sendOrderMessage(orderData) {
|
253
254
|
try {
|
254
255
|
const formattedMessage = formatOrderMessage(orderData);
|
255
|
-
await sendChatMessageTelegram(process.env.TELEGRAM_BOT_USERS.split(","), formattedMessage);
|
256
|
+
await sendChatMessageTelegram$1(process.env.TELEGRAM_BOT_USERS.split(","), formattedMessage);
|
256
257
|
} catch (err) {
|
257
258
|
console.error(err);
|
258
259
|
}
|
259
260
|
}
|
260
|
-
const controllerFactory$
|
261
|
+
const controllerFactory$2 = (db) => {
|
261
262
|
const Order = db.order;
|
262
263
|
const Customer = db.customer;
|
263
264
|
const Leftover = db.leftover;
|
@@ -407,12 +408,12 @@ const controllerFactory$1 = (db) => {
|
|
407
408
|
deleteOrder
|
408
409
|
};
|
409
410
|
};
|
410
|
-
var orders_controller = controllerFactory$
|
411
|
-
const controllerFactory = orders_controller;
|
412
|
-
const middlewareFactoryAuth = middlewares;
|
411
|
+
var orders_controller = controllerFactory$2;
|
412
|
+
const controllerFactory$1 = orders_controller;
|
413
|
+
const middlewareFactoryAuth$1 = middlewares;
|
413
414
|
var orders_routes = function(app, db, origins, publicPath) {
|
414
|
-
const controller = controllerFactory(db);
|
415
|
-
middlewareFactoryAuth(db);
|
415
|
+
const controller = controllerFactory$1(db);
|
416
|
+
middlewareFactoryAuth$1(db);
|
416
417
|
app.post(
|
417
418
|
"/api/orders/create",
|
418
419
|
// [
|
@@ -439,7 +440,154 @@ var orders_routes = function(app, db, origins, publicPath) {
|
|
439
440
|
controller.deleteOrder
|
440
441
|
);
|
441
442
|
};
|
442
|
-
const
|
443
|
+
const axios = require$$0;
|
444
|
+
const { sendChatMessageTelegram } = mailing;
|
445
|
+
const middlewareFactory = (db) => {
|
446
|
+
const Application = db.application;
|
447
|
+
const read = async (req, res) => {
|
448
|
+
try {
|
449
|
+
const applications = await Application.find({});
|
450
|
+
if (!applications) {
|
451
|
+
return res.status(404).send({ message: "Applications not found." });
|
452
|
+
}
|
453
|
+
res.status(200).send(applications);
|
454
|
+
} catch (err) {
|
455
|
+
res.status(500).send({ message: err });
|
456
|
+
}
|
457
|
+
};
|
458
|
+
const create = async (req, res) => {
|
459
|
+
try {
|
460
|
+
const application = await Application.create(req.body);
|
461
|
+
if (!application) {
|
462
|
+
return res.status(404).send({ message: "Something wrong when creating application." });
|
463
|
+
}
|
464
|
+
try {
|
465
|
+
const messageSent = await sendChatMessageTelegram(process.env.TELEGRAM_BOT_USERS.split(","), `New application from ${req.body}`);
|
466
|
+
} catch (err) {
|
467
|
+
console.log(err);
|
468
|
+
}
|
469
|
+
res.status(200).send(application);
|
470
|
+
} catch (err) {
|
471
|
+
res.status(500).send({ message: err });
|
472
|
+
}
|
473
|
+
};
|
474
|
+
const update = async (req, res) => {
|
475
|
+
try {
|
476
|
+
const application = await Application.findOneAndUpdate({ _id: req.params._id }, req.body, { new: true });
|
477
|
+
if (!application) {
|
478
|
+
return res.status(404).send({ message: "Application not found." });
|
479
|
+
}
|
480
|
+
res.status(200).send(application);
|
481
|
+
} catch (err) {
|
482
|
+
res.status(500).send({ message: err });
|
483
|
+
}
|
484
|
+
};
|
485
|
+
const deleteMethod = async (req, res) => {
|
486
|
+
try {
|
487
|
+
const application = await Application.findOneAndDelete({ _id: req.params._id });
|
488
|
+
if (!application) {
|
489
|
+
return res.status(404).send({ message: "Something wrong when deleting application." });
|
490
|
+
}
|
491
|
+
res.status(200).send(application);
|
492
|
+
} catch (err) {
|
493
|
+
res.status(500).send({ message: err });
|
494
|
+
}
|
495
|
+
};
|
496
|
+
const get = async (req, res) => {
|
497
|
+
try {
|
498
|
+
const application = await Application.findOne({ url: req.params.url });
|
499
|
+
if (!application) {
|
500
|
+
return res.status(404).send({ message: "Application not found." });
|
501
|
+
}
|
502
|
+
res.status(200).send(application);
|
503
|
+
} catch (err) {
|
504
|
+
res.status(500).send({ message: err });
|
505
|
+
}
|
506
|
+
};
|
507
|
+
const handleTelegramWebhook = async (req, res) => {
|
508
|
+
const update2 = req.body;
|
509
|
+
if (update2.callback_query) {
|
510
|
+
const callbackQuery = update2.callback_query;
|
511
|
+
const callbackData = callbackQuery.data;
|
512
|
+
const [action, applicationId] = callbackData.split("_");
|
513
|
+
try {
|
514
|
+
let updatedApplication = null;
|
515
|
+
switch (action) {
|
516
|
+
case "confirm":
|
517
|
+
updatedApplication = await Application.findOneAndUpdate(
|
518
|
+
{ _id: applicationId },
|
519
|
+
{ status: "confirmed" },
|
520
|
+
{ new: true }
|
521
|
+
);
|
522
|
+
break;
|
523
|
+
case "lost":
|
524
|
+
updatedApplication = await Application.findOneAndUpdate(
|
525
|
+
{ _id: applicationId },
|
526
|
+
{ status: "lost" },
|
527
|
+
{ new: true }
|
528
|
+
);
|
529
|
+
break;
|
530
|
+
case "delete":
|
531
|
+
updatedApplication = await Application.findOneAndDelete({ _id: applicationId });
|
532
|
+
break;
|
533
|
+
}
|
534
|
+
if (!updatedApplication) {
|
535
|
+
console.log("Application not found or not updated.");
|
536
|
+
} else {
|
537
|
+
console.log("Application updated:", updatedApplication);
|
538
|
+
}
|
539
|
+
} catch (err) {
|
540
|
+
console.log("Error updating application:", err);
|
541
|
+
}
|
542
|
+
const queryId = callbackQuery.id;
|
543
|
+
const telegramToken = "6206215053:AAHYCYzpFZF9jDZC-TC03NSff8oo2ExqsSU";
|
544
|
+
axios.post(`https://api.telegram.org/bot${telegramToken}/answerCallbackQuery`, {
|
545
|
+
callback_query_id: queryId
|
546
|
+
});
|
547
|
+
}
|
548
|
+
res.sendStatus(200);
|
549
|
+
};
|
550
|
+
return {
|
551
|
+
read,
|
552
|
+
create,
|
553
|
+
update,
|
554
|
+
delete: deleteMethod,
|
555
|
+
handleTelegramWebhook,
|
556
|
+
get
|
557
|
+
};
|
558
|
+
};
|
559
|
+
var applications_controller = middlewareFactory;
|
560
|
+
const controllerFactory = applications_controller;
|
561
|
+
const middlewareFactoryAuth = middlewares;
|
562
|
+
var applications_routes = function(app, db, origins) {
|
563
|
+
const controller = controllerFactory(db);
|
564
|
+
middlewareFactoryAuth(db);
|
565
|
+
app.post(
|
566
|
+
"/applications",
|
567
|
+
controller.create
|
568
|
+
);
|
569
|
+
app.get(
|
570
|
+
"/applications",
|
571
|
+
controller.read
|
572
|
+
);
|
573
|
+
app.post(
|
574
|
+
"/applications/:_id",
|
575
|
+
controller.update
|
576
|
+
);
|
577
|
+
app.delete(
|
578
|
+
"/applications/:_id",
|
579
|
+
controller.delete
|
580
|
+
);
|
581
|
+
app.get(
|
582
|
+
"/applications/:_id",
|
583
|
+
controller.get
|
584
|
+
);
|
585
|
+
app.post(
|
586
|
+
"/applications/telegram-webhook",
|
587
|
+
controller.handleTelegramWebhook
|
588
|
+
);
|
589
|
+
};
|
590
|
+
const NodeCache = require$$0$1;
|
443
591
|
const stdTTL = 60 * 5;
|
444
592
|
let Cache$1 = class Cache {
|
445
593
|
constructor(ttlSeconds = stdTTL) {
|
@@ -596,6 +744,7 @@ const ModelCustomer = customer_model;
|
|
596
744
|
const ModelTestimonial = testimonial_model;
|
597
745
|
const ModelApplication = application_model;
|
598
746
|
const RoutesOrder = orders_routes;
|
747
|
+
const RoutesApplications = applications_routes;
|
599
748
|
const FactoryOrder = orders_controller;
|
600
749
|
const CRUD2 = globals_crud;
|
601
750
|
function initializeOrders(app, db, origins, publicPath) {
|
@@ -605,8 +754,9 @@ function initializeOrders(app, db, origins, publicPath) {
|
|
605
754
|
db.application = ModelApplication(db);
|
606
755
|
if (app) {
|
607
756
|
RoutesOrder(app, db);
|
757
|
+
RoutesApplications(app, db);
|
758
|
+
new CRUD2("/api/customers", app, db, db.customer);
|
608
759
|
}
|
609
|
-
new CRUD2("/api/customers", app, db, db.customer);
|
610
760
|
}
|
611
761
|
var orders_server = {
|
612
762
|
initialize: initializeOrders,
|
@@ -8,7 +8,7 @@ const require$$0 = require("mongoose");
|
|
8
8
|
const require$$5 = require("@googlemaps/google-maps-services-js");
|
9
9
|
const addMembersQuantity$1 = require("./addMembersQuantity-B8UgqlUM.js");
|
10
10
|
const queryProcessor = require("./queryProcessor-iewDZq_f.js");
|
11
|
-
const mailing = require("./mailing-
|
11
|
+
const mailing = require("./mailing-BQKyTI-q.js");
|
12
12
|
const index = require("./index-oS9yx2Kv.js");
|
13
13
|
const engagement_schema = require("./engagement.schema-D-9md46B.js");
|
14
14
|
const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
@@ -7,7 +7,7 @@ import require$$0 from "mongoose";
|
|
7
7
|
import require$$5 from "@googlemaps/google-maps-services-js";
|
8
8
|
import { a as addUserStatusFields_1, b as addMembersQuantity_1 } from "./addMembersQuantity-BXp_LeQd.mjs";
|
9
9
|
import { q as queryProcessor } from "./queryProcessor-DQSFR9YA.mjs";
|
10
|
-
import { m as mailing } from "./mailing-
|
10
|
+
import { m as mailing } from "./mailing-C3VD4l0h.mjs";
|
11
11
|
import { m as middlewares } from "./index-DahVPg_G.mjs";
|
12
12
|
import { e as engagement_schema } from "./engagement.schema-CCdSLKd4.mjs";
|
13
13
|
import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");;/* empty css */const M=require("../EmptyState/EmptyState.vue.cjs"),B=require("../Dropdown/Dropdown.vue.cjs"),N=require("../DatePicker/Calendar.vue2.cjs"),x=require("../BottomSheet/BottomSheet.vue.cjs"),S=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),q=require("../../modules/globals/components/blocks/BlockSorting.vue.cjs"),E=require("../../modules/globals/components/blocks/BlockFilter.vue.cjs"),z=require("../../modules/globals/components/elements/ButtonSort.vue.cjs"),O=require("../../modules/globals/components/elements/ButtonDate.vue.cjs"),L=require("../../modules/icons/navigation/IconFilter.vue.cjs");;/* empty css */const F={key:0,class:"flex-nowrap flex gap-thin"},j={__name:"Feed",props:e.mergeModels({showLoadMore:{type:Boolean,default:!0},search:{type:[Boolean,Object],default:!1},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},external:{type:Boolean,default:!1},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},{search:{},searchModifiers:{},sort:{},sortModifiers:{},filter:{},filterModifiers:{},date:{},dateModifiers:{},items:{},itemsModifiers:{}}),emits:["update:search","update:sort","update:filter","update:date","update:items"],setup(s){const m=e.useModel(s,"search"),a=e.useModel(s,"sort"),o=e.useModel(s,"filter"),r=e.useModel(s,"date"),h=e.useModel(s,"items"),u=s,n=e.ref(h.value||[]),d=e.ref(!1);let p=e.ref(!0),b=e.ref(null),i=e.ref(u.options.skip?u.options.skip:0),v=e.ref(u.options.limit?u.options.limit:10),k=e.ref("");function C(t){k.value=t,i.value=0,v.value=10,f()}const y=async()=>{if(d.value){i.value+=v.value;const t=await u.store.read({skip:i.value,limit:v.value,search:k.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:a.value?a.value.param:null,sortOrder:a.value?a.value.order:null,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=[...n.value,...t],h.value&&(h.value=n.value)}},f=async()=>{const t=await u.store.read({skip:i.value,limit:v.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:a.value?a.value.param:null,sortOrder:a.value?a.value.order:null,search:k.value,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=t,h.value&&(h.value=n.value),p.value=!1};e.watch(()=>u.external,(t,l)=>{t!==l&&(i.value=0,f())},{deep:!0}),e.watch(()=>r.value,(t,l)=>{t!==l&&(i.value=0,f())},{deep:!0}),e.watch(()=>{var t;return(t=a.value)==null?void 0:t.order},(t,l)=>{t!==l&&(i.value=0,f())}),e.watch(()=>{var t;return(t=a.value)==null?void 0:t.param},(t,l)=>{t!==l&&(i.value=0,f())}),e.watch(()=>u.options,(t,l)=>{(t.organization!==l.organization||t.categories!==l.categories||t.prices!==l.prices||t.delivery!==l.delivery||t.search!==l.search||t.status!==l.status||t.hidden!==l.hidden||t.type!==l.type||t.tags!==l.tags||t.following!==l.following)&&(i.value=0,f())},{deep:!0});let g=null;return e.onMounted(async()=>{await f(),typeof window<"u"&&!u.showLoadMore&&(g=new IntersectionObserver(t=>{t.some(l=>l.isIntersecting)&&y()}),g.observe(b.value))}),e.onUnmounted(()=>{g&&g.disconnect()}),(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.value||r.value||a.value&&!a.value.hideButton?(e.openBlock(),e.createElementBlock("div",F,[m.value?(e.openBlock(),e.createBlock(S.default,{key:0,placeholder:m.value.placeholder||"Search...",class:e.normalizeClass(m.value.class||"bg-light"),onSearch:C},null,8,["placeholder","class"])):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:e.normalizeClass([o.value.class||"bg-light","flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100"])},[e.createVNode(L.default,{onClick:l[0]||(l[0]=()=>o.value.active=!o.value.active),class:"w-1r h-auto"})],2),o.value.active?(e.openBlock(),e.createBlock(x.default,{key:0,show:o.value.active,onToggle:l[2]||(l[2]=()=>o.value.active=!1),class:e.normalizeClass(["z-index-10 pos-fixed pos-t-0 pos-r-0",{"pos-t-0":o.value.active,"pos-t-100":!o.value.active}])},{default:e.withCtx(()=>[e.createVNode(E.default,{filter:o.value,"onUpdate:filter":l[1]||(l[1]=c=>o.value=c),options:o.value.options,class:"h-100 w-100 pd-small bg-light"},null,8,["filter","options"])]),_:1},8,["show","class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(B.default,{key:2,label:{component:O.default,props:{date:r.value}},class:e.normalizeClass([r.value.class||"bg-light","flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(N.default,{date:r.value,"onUpdate:date":l[3]||(l[3]=c=>r.value=c),locale:t.$i18n.locale,allowRange:!0,class:"radius-semi w-100 o-hidden bg-light"},null,8,["date","locale"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0),a.value&&!a.value.hideButton?(e.openBlock(),e.createBlock(B.default,{key:3,label:{component:z.default,props:{order:a.value.order},class:"w-1r"},class:e.normalizeClass([a.value.class||"bg-light","radius-extra aspect-1x1 h-100"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(q.default,{param:a.value.param,"onUpdate:param":l[4]||(l[4]=c=>a.value.param=c),order:a.value.order,"onUpdate:order":l[5]||(l[5]=c=>a.value.order=c),options:a.value.options,class:"h-100 pd-small radius-semi t-white bg-black"},null,8,["param","order","options"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:1,tag:"ul",name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(p)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(v),c=>(e.openBlock(),e.createBlock(w.default,{key:"skeleton-"+c,class:"mn-b-small radius-big o-hidden d-block"}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),!e.unref(p)&&n.value.length<1?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:2,tag:"ul",name:"feed"},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length<1?(e.openBlock(),e.createBlock(M.default,{key:0,title:s.states.empty.title,description:s.states.empty.description,action:s.states.empty.action,callback:s.states.empty.callback,class:"pd-medium mn-b-thin bg-light radius-big"},null,8,["title","description","action","callback"])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{tag:"ul",name:"feed",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:n.value}):e.createCommentVNode("",!0),s.showLoadMore&&d.value&&n.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y,class:"col-w-100 w-100 bg-main button"}," Load More ")):e.createCommentVNode("",!0),e.createElementVNode("div",{key:"sentinel",ref_key:"sentinel",ref:b,class:"sentinel"},null,512)]),_:3},8,["class"])],64))}};exports.default=j;
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");;/* empty css */const M=require("../EmptyState/EmptyState.vue.cjs"),B=require("../Dropdown/Dropdown.vue.cjs"),N=require("../DatePicker/Calendar.vue2.cjs"),x=require("../BottomSheet/BottomSheet.vue.cjs"),S=require("../../modules/globals/views/components/blocks/BlockSearch.vue.cjs"),q=require("../../modules/globals/views/components/blocks/BlockSorting.vue.cjs"),E=require("../../modules/globals/views/components/blocks/BlockFilter.vue.cjs"),z=require("../../modules/globals/views/components/elements/ButtonSort.vue.cjs"),O=require("../../modules/globals/views/components/elements/ButtonDate.vue.cjs"),L=require("../../modules/icons/navigation/IconFilter.vue.cjs");;/* empty css */const F={key:0,class:"flex-nowrap flex gap-thin"},j={__name:"Feed",props:e.mergeModels({showLoadMore:{type:Boolean,default:!0},search:{type:[Boolean,Object],default:!1},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},external:{type:Boolean,default:!1},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},{search:{},searchModifiers:{},sort:{},sortModifiers:{},filter:{},filterModifiers:{},date:{},dateModifiers:{},items:{},itemsModifiers:{}}),emits:["update:search","update:sort","update:filter","update:date","update:items"],setup(s){const m=e.useModel(s,"search"),a=e.useModel(s,"sort"),o=e.useModel(s,"filter"),r=e.useModel(s,"date"),h=e.useModel(s,"items"),u=s,n=e.ref(h.value||[]),d=e.ref(!1);let p=e.ref(!0),b=e.ref(null),i=e.ref(u.options.skip?u.options.skip:0),v=e.ref(u.options.limit?u.options.limit:10),k=e.ref("");function C(t){k.value=t,i.value=0,v.value=10,f()}const y=async()=>{if(d.value){i.value+=v.value;const t=await u.store.read({skip:i.value,limit:v.value,search:k.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:a.value?a.value.param:null,sortOrder:a.value?a.value.order:null,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=[...n.value,...t],h.value&&(h.value=n.value)}},f=async()=>{const t=await u.store.read({skip:i.value,limit:v.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:a.value?a.value.param:null,sortOrder:a.value?a.value.order:null,search:k.value,...u.options});t.length===0||t.length<v.value?d.value=!1:d.value=!0,n.value=t,h.value&&(h.value=n.value),p.value=!1};e.watch(()=>u.external,(t,l)=>{t!==l&&(i.value=0,f())},{deep:!0}),e.watch(()=>r.value,(t,l)=>{t!==l&&(i.value=0,f())},{deep:!0}),e.watch(()=>{var t;return(t=a.value)==null?void 0:t.order},(t,l)=>{t!==l&&(i.value=0,f())}),e.watch(()=>{var t;return(t=a.value)==null?void 0:t.param},(t,l)=>{t!==l&&(i.value=0,f())}),e.watch(()=>u.options,(t,l)=>{(t.organization!==l.organization||t.categories!==l.categories||t.prices!==l.prices||t.delivery!==l.delivery||t.search!==l.search||t.status!==l.status||t.hidden!==l.hidden||t.type!==l.type||t.tags!==l.tags||t.following!==l.following)&&(i.value=0,f())},{deep:!0});let g=null;return e.onMounted(async()=>{await f(),typeof window<"u"&&!u.showLoadMore&&(g=new IntersectionObserver(t=>{t.some(l=>l.isIntersecting)&&y()}),g.observe(b.value))}),e.onUnmounted(()=>{g&&g.disconnect()}),(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.value||r.value||a.value&&!a.value.hideButton?(e.openBlock(),e.createElementBlock("div",F,[m.value?(e.openBlock(),e.createBlock(S.default,{key:0,placeholder:m.value.placeholder||"Search...",class:e.normalizeClass(m.value.class||"bg-light"),onSearch:C},null,8,["placeholder","class"])):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:e.normalizeClass([o.value.class||"bg-light","flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100"])},[e.createVNode(L.default,{onClick:l[0]||(l[0]=()=>o.value.active=!o.value.active),class:"w-1r h-auto"})],2),o.value.active?(e.openBlock(),e.createBlock(x.default,{key:0,show:o.value.active,onToggle:l[2]||(l[2]=()=>o.value.active=!1),class:e.normalizeClass(["z-index-10 pos-fixed pos-t-0 pos-r-0",{"pos-t-0":o.value.active,"pos-t-100":!o.value.active}])},{default:e.withCtx(()=>[e.createVNode(E.default,{filter:o.value,"onUpdate:filter":l[1]||(l[1]=c=>o.value=c),options:o.value.options,class:"h-100 w-100 pd-small bg-light"},null,8,["filter","options"])]),_:1},8,["show","class"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(B.default,{key:2,label:{component:O.default,props:{date:r.value}},class:e.normalizeClass([r.value.class||"bg-light","flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(N.default,{date:r.value,"onUpdate:date":l[3]||(l[3]=c=>r.value=c),locale:t.$i18n.locale,allowRange:!0,class:"radius-semi w-100 o-hidden bg-light"},null,8,["date","locale"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0),a.value&&!a.value.hideButton?(e.openBlock(),e.createBlock(B.default,{key:3,label:{component:z.default,props:{order:a.value.order},class:"w-1r"},class:e.normalizeClass([a.value.class||"bg-light","radius-extra aspect-1x1 h-100"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(q.default,{param:a.value.param,"onUpdate:param":l[4]||(l[4]=c=>a.value.param=c),order:a.value.order,"onUpdate:order":l[5]||(l[5]=c=>a.value.order=c),options:a.value.options,class:"h-100 pd-small radius-semi t-white bg-black"},null,8,["param","order","options"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:1,tag:"ul",name:"scaleTransition"},{default:e.withCtx(()=>[e.unref(p)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(v),c=>(e.openBlock(),e.createBlock(w.default,{key:"skeleton-"+c,class:"mn-b-small radius-big o-hidden d-block"}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),!e.unref(p)&&n.value.length<1?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:2,tag:"ul",name:"feed"},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length<1?(e.openBlock(),e.createBlock(M.default,{key:0,title:s.states.empty.title,description:s.states.empty.description,action:s.states.empty.action,callback:s.states.empty.callback,class:"pd-medium mn-b-thin bg-light radius-big"},null,8,["title","description","action","callback"])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{tag:"ul",name:"feed",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:n.value}):e.createCommentVNode("",!0),s.showLoadMore&&d.value&&n.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:y,class:"col-w-100 w-100 bg-main button"}," Load More ")):e.createCommentVNode("",!0),e.createElementVNode("div",{key:"sentinel",ref_key:"sentinel",ref:b,class:"sentinel"},null,512)]),_:3},8,["class"])],64))}};exports.default=j;
|
@@ -5,11 +5,11 @@ import A from "../EmptyState/EmptyState.vue.js";
|
|
5
5
|
import z from "../Dropdown/Dropdown.vue.js";
|
6
6
|
import D from "../DatePicker/Calendar.vue2.js";
|
7
7
|
import H from "../BottomSheet/BottomSheet.vue.js";
|
8
|
-
import J from "../../modules/globals/components/blocks/BlockSearch.vue.js";
|
9
|
-
import K from "../../modules/globals/components/blocks/BlockSorting.vue.js";
|
10
|
-
import Q from "../../modules/globals/components/blocks/BlockFilter.vue.js";
|
11
|
-
import W from "../../modules/globals/components/elements/ButtonSort.vue.js";
|
12
|
-
import X from "../../modules/globals/components/elements/ButtonDate.vue.js";
|
8
|
+
import J from "../../modules/globals/views/components/blocks/BlockSearch.vue.js";
|
9
|
+
import K from "../../modules/globals/views/components/blocks/BlockSorting.vue.js";
|
10
|
+
import Q from "../../modules/globals/views/components/blocks/BlockFilter.vue.js";
|
11
|
+
import W from "../../modules/globals/views/components/elements/ButtonSort.vue.js";
|
12
|
+
import X from "../../modules/globals/views/components/elements/ButtonDate.vue.js";
|
13
13
|
import Y from "../../modules/icons/navigation/IconFilter.vue.js";
|
14
14
|
/* empty css */
|
15
15
|
const Z = {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./views/store/auth.cjs"),r=require("./views/store/twofa.cjs"),u=require("./views/router/auth.cjs"),s=require("./views/components/layouts/Auth.vue.cjs"),a=require("./views/components/pages/EnterCode.vue.cjs"),d=require("./views/components/pages/Invite.vue.cjs"),l=require("./views/components/pages/EnterPassword.vue.cjs"),c=require("./views/components/pages/ResetPassword.vue.cjs"),f=require("./views/components/pages/SignUp.vue.cjs"),q=require("./views/components/pages/SignIn.vue.cjs"),S=require("./views/components/sections/SliderFeatures.vue.cjs");function h(g,e,o,i={}){const n=i.route||"Home";o.addRoute(n,u.default),e.addStore("auth",t),e.addStore("twofa",r)}const w={initialize:h,views:{store:{storeAuth:t,storeTwofa:r},router:{routerAuth:u.default},components:{Auth:s.default,EnterCode:a.default,Invite:d.default,EnterPassword:l.default,ResetPassword:c.default,SignUp:f.default,SignIn:q.default,SliderFeatures:S.default}}};exports.default=w;
|