@ozdao/martyrs 0.2.472 → 0.2.474
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Media-DW8RLbfM.js → Media-_vz04tII.js} +1 -1
- package/dist/{Media-y_TX6us_.mjs → Media-sGk7Bp9b.mjs} +1 -1
- package/dist/_virtual/index.cjs +1 -1
- package/dist/_virtual/index.js +1 -1
- package/dist/auth.server.js +6 -2
- package/dist/auth.server.mjs +6 -2
- package/dist/authJwt-CELQKF2s.js +82 -0
- package/dist/authJwt-DnXu3BFq.mjs +83 -0
- package/dist/builder.js +7 -4
- package/dist/builder.mjs +7 -4
- package/dist/chats.server.js +1 -1
- package/dist/chats.server.mjs +1 -1
- package/dist/community.server.js +4 -4
- package/dist/community.server.mjs +4 -4
- package/dist/events.server.js +4 -4
- package/dist/events.server.mjs +4 -4
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +3 -3
- package/dist/gallery.server.mjs +3 -3
- package/dist/{globals.abac-DT0VjfaZ.js → globals.abac-Bn-4tbX8.js} +110 -16
- package/dist/{globals.abac-CvmZM8XG.mjs → globals.abac-DZpTRxKR.mjs} +110 -16
- package/dist/globals.server.js +70 -10
- package/dist/globals.server.mjs +70 -10
- package/dist/{globals.verifier-C_VZYebB.mjs → globals.verifier-BdJxc8-8.mjs} +34 -0
- package/dist/{globals.verifier-ChDpCdy_.js → globals.verifier-CKYpYfQl.js} +34 -0
- package/dist/{index-CVXl1rB5.js → index-BOmxJQ5W.js} +7 -86
- package/dist/{index-Df8vtZx7.mjs → index-C_Fw0Umg.mjs} +7 -86
- package/dist/{main-CgmHzhq5.mjs → main-CqMtW7Hq.mjs} +274 -276
- package/dist/{main-CCfQH-Dd.js → main-CsGkbSyK.js} +2 -2
- package/dist/martyrs/src/components/Button/{Button.vue.cjs → Button.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Button/Button.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Button/{Button.vue.js → Button.vue2.js} +2 -2
- package/dist/martyrs/src/components/Button/{Button.vue.cjs.map → Button.vue2.js.map} +1 -1
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.cjs → Dropdown.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js.map → Dropdown.vue.cjs.map} +1 -1
- package/dist/martyrs/src/components/Dropdown/{Dropdown.vue2.js → Dropdown.vue.js} +2 -2
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue.js.map +1 -0
- package/dist/martyrs/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/martyrs/src/components/Feed/Feed.vue.js +1 -1
- package/dist/martyrs/src/components/Menu/{Menu.vue2.cjs → Menu.vue.cjs} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.cjs.map +1 -0
- package/dist/martyrs/src/components/Menu/{Menu.vue2.js → Menu.vue.js} +2 -2
- package/dist/martyrs/src/components/Menu/Menu.vue.js.map +1 -0
- package/dist/martyrs/src/components/Select/Select.vue.cjs +4 -4
- package/dist/martyrs/src/components/Select/Select.vue.cjs.map +1 -1
- package/dist/martyrs/src/components/Select/Select.vue.js +4 -4
- package/dist/martyrs/src/components/Select/Select.vue.js.map +1 -1
- package/dist/martyrs/src/components/Tab/{Tab.vue.cjs → Tab.vue2.cjs} +2 -2
- package/dist/martyrs/src/components/Tab/Tab.vue2.cjs.map +1 -0
- package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
- package/dist/martyrs/src/components/Tab/{Tab.vue.cjs.map → Tab.vue2.js.map} +1 -1
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.cjs +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/Profile.vue.js +3 -3
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.cjs +2 -2
- package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.cjs +1 -1
- package/dist/martyrs/src/modules/auth/views/components/sections/ProfileEditCredentials.vue.js +1 -1
- package/dist/martyrs/src/modules/community/community.client.js +27 -27
- package/dist/martyrs/src/modules/community/community.client.js.map +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/martyrs/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs +3 -4
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js +3 -4
- package/dist/martyrs/src/modules/community/components/sections/HotPosts.vue.js.map +1 -1
- package/dist/martyrs/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/martyrs/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.cjs +1 -1
- package/dist/martyrs/src/modules/events/components/sections/EventsHot.vue.js +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.cjs +2 -0
- package/dist/martyrs/src/modules/globals/globals.client.cjs.map +1 -1
- package/dist/martyrs/src/modules/globals/globals.client.js +3 -1
- package/dist/martyrs/src/modules/globals/globals.client.js.map +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/CardHeader.vue.js +2 -2
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/blocks/PopupDateSelector.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/layouts/Client.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/Navigation.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/components/sections/SectionPageTitle.vue.js +1 -1
- package/dist/martyrs/src/modules/globals/views/utils/vue-app-renderer.cjs +1 -1
- package/dist/martyrs/src/modules/globals/views/utils/vue-app-renderer.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs +89 -28
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js +90 -29
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreate.vue.js.map +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- package/dist/martyrs/src/modules/orders/store/shopcart.cjs +1 -0
- package/dist/martyrs/src/modules/orders/store/shopcart.cjs.map +1 -1
- package/dist/martyrs/src/modules/orders/store/shopcart.js +1 -0
- package/dist/martyrs/src/modules/orders/store/shopcart.js.map +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Members.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organization.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
- package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
- package/dist/martyrs/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs +21 -2
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +21 -2
- package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs +3 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +3 -2
- package/dist/martyrs/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs +4 -4
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +4 -4
- package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/martyrs/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.cjs +2 -2
- package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +2 -2
- package/dist/martyrs/src/modules/products/store/categories.cjs +2 -0
- package/dist/martyrs/src/modules/products/store/categories.cjs.map +1 -1
- package/dist/martyrs/src/modules/products/store/categories.js +2 -0
- package/dist/martyrs/src/modules/products/store/categories.js.map +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/GanttChart.vue.js +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.cjs +1 -1
- package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/martyrs/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/layouts/Spots.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.cjs +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/Map.vue.js +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs +32 -26
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +32 -26
- package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js.map +1 -1
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs +807 -0
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.cjs.map +1 -0
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js +807 -0
- package/dist/martyrs/src/modules/spots/components/sections/WorktimeEdit.vue.js.map +1 -0
- package/dist/martyrs/src/modules/spots/store/spots.cjs +4 -1
- package/dist/martyrs/src/modules/spots/store/spots.cjs.map +1 -1
- package/dist/martyrs/src/modules/spots/store/spots.js +4 -1
- package/dist/martyrs/src/modules/spots/store/spots.js.map +1 -1
- package/dist/martyrs.cjs.js +1 -1
- package/dist/martyrs.css +1 -1
- package/dist/martyrs.es.js +1 -1
- package/dist/{martyrs → node_modules/.pnpm/@vue_server-renderer@3.5.13_vue@3.5.13_typescript@5.8.3_}/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.cjs +1 -1
- package/dist/node_modules/.pnpm/@vue_server-renderer@3.5.13_vue@3.5.13_typescript@5.8.3_/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.cjs.map +1 -0
- package/dist/{martyrs → node_modules/.pnpm/@vue_server-renderer@3.5.13_vue@3.5.13_typescript@5.8.3_}/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +1 -1
- package/dist/node_modules/.pnpm/@vue_server-renderer@3.5.13_vue@3.5.13_typescript@5.8.3_/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +1 -0
- package/dist/node_modules/.pnpm/@vue_shared@3.5.13/node_modules/@vue/shared/dist/shared.esm-bundler.cjs.map +1 -0
- package/dist/node_modules/.pnpm/@vue_shared@3.5.13/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/native.cjs +6 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/native.cjs.map +1 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/native.js +6 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
- package/dist/{martyrs → node_modules/.pnpm/uuid@11.1.0}/node_modules/uuid/dist/esm-browser/rng.cjs +4 -4
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.cjs.map +1 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.js +15 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/rng.js.map +1 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.cjs +11 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.cjs.map +1 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.js +11 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.cjs +21 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.cjs.map +1 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js +21 -0
- package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js.map +1 -0
- package/dist/notifications.server.js +1 -1
- package/dist/notifications.server.mjs +1 -1
- package/dist/orders.server.js +5 -4
- package/dist/orders.server.mjs +5 -4
- package/dist/organizations.server.js +120 -47
- package/dist/organizations.server.mjs +120 -47
- package/dist/{ownership.schema-C0w02Vw1.mjs → ownership.schema-CNCotD3D.mjs} +10 -4
- package/dist/{ownership.schema-Ck2H9clB.js → ownership.schema-MxfJlPtq.js} +10 -4
- package/dist/products.server.js +415 -149
- package/dist/products.server.mjs +415 -149
- package/dist/{profile.schema-h61hhB2w.js → profile.schema-BLSuV_VC.js} +0 -4
- package/dist/{profile.schema-kP_zKXNt.mjs → profile.schema-BRuvQ7QV.mjs} +0 -4
- package/dist/{queryProcessor-CWnMIe2U.mjs → queryProcessor-CVKI651_.mjs} +62 -8
- package/dist/{queryProcessor-D6GuKfTV.js → queryProcessor-DSUqSk3I.js} +62 -8
- package/dist/rents.server.js +4 -4
- package/dist/rents.server.mjs +4 -4
- package/dist/spots.server.js +162 -8
- package/dist/spots.server.mjs +162 -8
- package/dist/style.css +27 -4
- package/dist/wallet.server.js +2 -2
- package/dist/wallet.server.mjs +2 -2
- package/package.json +1 -1
- package/src/builder/rspack/rspack.config.base.js +1 -1
- package/src/builder/rspack/rspack.config.client.js +13 -5
- package/src/components/Select/Select.vue +4 -2
- package/src/modules/auth/models/user.model.js +4 -1
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/globals/controllers/classes/globals.abac.js +148 -23
- package/src/modules/globals/controllers/classes/globals.validator.js +37 -0
- package/src/modules/globals/controllers/classes/globals.verifier.js +2 -0
- package/src/modules/globals/controllers/policies/globals.policies.js +91 -74
- package/src/modules/globals/controllers/utils/queryProcessor.js +59 -11
- package/src/modules/globals/globals.client.js +3 -0
- package/src/modules/globals/models/schemas/ownership.schema.js +11 -6
- package/src/modules/globals/models/schemas/profile.schema.js +0 -4
- package/src/modules/music/components/layouts/MusicLayout.vue +10 -58
- package/src/modules/music/components/pages/MusicHome.vue +5 -5
- package/src/modules/orders/components/pages/OrderCreate.vue +85 -12
- package/src/modules/orders/controllers/orders.controller.js +3 -0
- package/src/modules/orders/store/shopcart.js +1 -0
- package/src/modules/organizations/models/schemas/accesses.schema.js +18 -0
- package/src/modules/organizations/policies/organizations.policies.js +117 -61
- package/src/modules/products/components/pages/CategoryEdit.vue +27 -2
- package/src/modules/products/components/pages/Product.vue +1 -0
- package/src/modules/products/components/pages/ProductEdit.vue +2 -2
- package/src/modules/products/controllers/categories.controller.js +297 -133
- package/src/modules/products/middlewares/categories.verifier.js +177 -0
- package/src/modules/products/models/category.model.js +12 -14
- package/src/modules/products/routes/categories.routes.js +50 -11
- package/src/modules/products/store/categories.js +2 -0
- package/src/modules/spots/components/pages/SpotEdit.vue +21 -17
- package/src/modules/spots/components/sections/WorktimeEdit.vue +840 -0
- package/src/modules/spots/controllers/queries/getIsOpenNowStage.js +109 -0
- package/src/modules/spots/controllers/spots.controller.js +2 -1
- package/src/modules/spots/models/spot.model.js +59 -13
- package/src/modules/spots/store/spots.js +4 -1
- package/dist/martyrs/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.cjs.map +0 -1
- package/dist/martyrs/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js.map +0 -1
- package/dist/martyrs/node_modules/@vue/shared/dist/shared.esm-bundler.cjs.map +0 -1
- package/dist/martyrs/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +0 -1
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/regex.cjs +0 -5
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/regex.cjs.map +0 -1
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/regex.js +0 -5
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/regex.js.map +0 -1
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/rng.cjs.map +0 -1
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/rng.js +0 -15
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/stringify.cjs +0 -17
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/stringify.cjs.map +0 -1
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/stringify.js +0 -17
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/v4.cjs +0 -13
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/v4.cjs.map +0 -1
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/v4.js +0 -13
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/validate.cjs +0 -8
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/validate.cjs.map +0 -1
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/validate.js +0 -8
- package/dist/martyrs/node_modules/uuid/dist/esm-browser/validate.js.map +0 -1
- package/dist/martyrs/src/components/Button/Button.vue.js.map +0 -1
- package/dist/martyrs/src/components/Dropdown/Dropdown.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.cjs.map +0 -1
- package/dist/martyrs/src/components/Menu/Menu.vue2.js.map +0 -1
- package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
- package/src/modules/products/middlewares/index.js +0 -11
- package/src/modules/products/middlewares/verifyCategory.js +0 -25
- /package/dist/{martyrs → node_modules/.pnpm/@vue_shared@3.5.13}/node_modules/@vue/shared/dist/shared.esm-bundler.cjs +0 -0
- /package/dist/{martyrs → node_modules/.pnpm/@vue_shared@3.5.13}/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -0
- /package/dist/{martyrs/node_modules → node_modules}/fast-deep-equal/index.cjs +0 -0
- /package/dist/{martyrs/node_modules → node_modules}/fast-deep-equal/index.cjs.map +0 -0
- /package/dist/{martyrs/node_modules → node_modules}/fast-deep-equal/index.js +0 -0
- /package/dist/{martyrs/node_modules → node_modules}/fast-deep-equal/index.js.map +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const Tab = require("../../../../../components/Tab/Tab.
|
|
4
|
+
const Tab = require("../../../../../components/Tab/Tab.vue2.cjs");
|
|
5
5
|
const Feed = require("../../../../../components/Feed/Feed.vue.cjs");
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const GanttChart = require("./GanttChart.vue.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, createElementBlock, openBlock, createElementVNode, createVNode, unref, toDisplayString, withCtx } from "vue";
|
|
2
|
-
import _sfc_main$1 from "../../../../../components/Tab/Tab.
|
|
2
|
+
import _sfc_main$1 from "../../../../../components/Tab/Tab.vue2.js";
|
|
3
3
|
import _sfc_main$2 from "../../../../../components/Feed/Feed.vue.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import GanttChart from "./GanttChart.vue.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const Popup = require("../../../../components/Popup/Popup.vue.cjs");
|
|
5
|
-
const Button = require("../../../../components/Button/Button.
|
|
5
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
|
6
6
|
const Select = require("../../../../components/Select/Select.vue.cjs");
|
|
7
7
|
const reports = require("../../store/reports.cjs");
|
|
8
8
|
const _sfc_main = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, ref, createElementBlock, openBlock, renderSlot, createVNode, withCtx, createElementVNode, createTextVNode } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../../../../components/Popup/Popup.vue.js";
|
|
3
|
-
import _sfc_main$2 from "../../../../components/Button/Button.
|
|
3
|
+
import _sfc_main$2 from "../../../../components/Button/Button.vue2.js";
|
|
4
4
|
import Select from "../../../../components/Select/Select.vue.js";
|
|
5
5
|
import { actions } from "../../store/reports.js";
|
|
6
6
|
const _sfc_main = {
|
|
@@ -5,7 +5,7 @@ const vueRouter = require("vue-router");
|
|
|
5
5
|
const vueI18n = require("vue-i18n");
|
|
6
6
|
;/* empty css */
|
|
7
7
|
;/* empty css */
|
|
8
|
-
;/* empty css
|
|
8
|
+
;/* empty css */
|
|
9
9
|
const globals = require("../../../globals/views/store/globals.cjs");
|
|
10
10
|
const categories = require("../../../products/store/categories.cjs");
|
|
11
11
|
const marketplace = require("../../../marketplace/views/store/marketplace.cjs");
|
|
@@ -3,7 +3,7 @@ import { useRoute, useRouter } from "vue-router";
|
|
|
3
3
|
import { useI18n } from "vue-i18n";
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
/* empty css
|
|
6
|
+
/* empty css */
|
|
7
7
|
import { state as state$1 } from "../../../globals/views/store/globals.js";
|
|
8
8
|
import { actions, state as state$2 } from "../../../products/store/categories.js";
|
|
9
9
|
import { state } from "../../../marketplace/views/store/marketplace.js";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
5
|
const index = require("../../../../../../node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.cjs");
|
|
6
|
-
const Button = require("../../../../components/Button/Button.
|
|
6
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
|
7
7
|
const organizations = require("../../../organizations/store/organizations.cjs");
|
|
8
8
|
const globals = require("../../../globals/views/store/globals.cjs");
|
|
9
9
|
const marketplace = require("../../../marketplace/views/store/marketplace.cjs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, onMounted, createElementBlock, openBlock, createElementVNode, createVNode, withCtx, createTextVNode } from "vue";
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import { Loader } from "../../../../../../node_modules/.pnpm/@googlemaps_js-api-loader@1.16.8/node_modules/@googlemaps/js-api-loader/dist/index.js";
|
|
4
|
-
import _sfc_main$1 from "../../../../components/Button/Button.
|
|
4
|
+
import _sfc_main$1 from "../../../../components/Button/Button.vue2.js";
|
|
5
5
|
import { actions, state as state$2 } from "../../../organizations/store/organizations.js";
|
|
6
6
|
import { state } from "../../../globals/views/store/globals.js";
|
|
7
7
|
import { state as state$1 } from "../../../marketplace/views/store/marketplace.js";
|
|
@@ -4,14 +4,15 @@ const vue = require("vue");
|
|
|
4
4
|
const vueRouter = require("vue-router");
|
|
5
5
|
const Block = require("../../../../components/Block/Block.vue.cjs");
|
|
6
6
|
const UploadImage = require("../../../../components/UploadImage/UploadImage.vue.cjs");
|
|
7
|
-
;/* empty css
|
|
7
|
+
;/* empty css */
|
|
8
8
|
const Field = require("../../../../components/Field/Field.vue.cjs");
|
|
9
9
|
const Select = require("../../../../components/Select/Select.vue.cjs");
|
|
10
10
|
const Checkbox = require("../../../../components/Checkbox/Checkbox.vue.cjs");
|
|
11
11
|
const Address = require("../../../../components/Address/Address.vue2.cjs");
|
|
12
12
|
const LocationMarker = require("../../../../components/LocationMarker/LocationMarker.vue2.cjs");
|
|
13
|
-
const Button = require("../../../../components/Button/Button.
|
|
13
|
+
const Button = require("../../../../components/Button/Button.vue2.cjs");
|
|
14
14
|
;/* empty css */
|
|
15
|
+
const WorktimeEdit = require("../sections/WorktimeEdit.vue.cjs");
|
|
15
16
|
const spots = require("../../store/spots.cjs");
|
|
16
17
|
const _hoisted_1 = { class: "for-transition w-100 cols-1 pd-thin gap-thin" };
|
|
17
18
|
const _hoisted_2 = { class: "mn-r-auto" };
|
|
@@ -57,7 +58,7 @@ const _sfc_main = {
|
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
function redirectTo() {
|
|
60
|
-
router.push({ name: "Organization", params: { _id: route.params._id } });
|
|
61
|
+
router.push({ name: "Organization", query: { tab: "spots" }, params: { _id: route.params._id } });
|
|
61
62
|
}
|
|
62
63
|
async function onDelete() {
|
|
63
64
|
await spots.actions.delete(
|
|
@@ -78,7 +79,7 @@ const _sfc_main = {
|
|
|
78
79
|
callback: redirectTo,
|
|
79
80
|
class: "bg-main"
|
|
80
81
|
}, {
|
|
81
|
-
default: vue.withCtx(() => _cache[
|
|
82
|
+
default: vue.withCtx(() => _cache[13] || (_cache[13] = [
|
|
82
83
|
vue.createTextVNode(" Save Spot ")
|
|
83
84
|
])),
|
|
84
85
|
_: 1
|
|
@@ -118,19 +119,27 @@ const _sfc_main = {
|
|
|
118
119
|
}, null, 8, ["field", "validation"])
|
|
119
120
|
])
|
|
120
121
|
]),
|
|
122
|
+
vue.createVNode(Field.default, {
|
|
123
|
+
field: spots.state.spot.minorder,
|
|
124
|
+
"onUpdate:field": _cache[3] || (_cache[3] = ($event) => spots.state.spot.minorder = $event),
|
|
125
|
+
label: "Min.order",
|
|
126
|
+
placeholder: "Enter minimum order value",
|
|
127
|
+
class: "bg-white radius-small mn-b-small pd-small",
|
|
128
|
+
validation: _ctx.organizationName
|
|
129
|
+
}, null, 8, ["field", "validation"]),
|
|
121
130
|
vue.createVNode(Select.default, {
|
|
122
131
|
select: spots.state.spot.status,
|
|
123
|
-
"onUpdate:select": _cache[
|
|
132
|
+
"onUpdate:select": _cache[4] || (_cache[4] = ($event) => spots.state.spot.status = $event),
|
|
124
133
|
label: "Status",
|
|
125
134
|
options: [
|
|
126
135
|
"unpublished",
|
|
127
136
|
"published",
|
|
128
137
|
"archivied"
|
|
129
138
|
],
|
|
130
|
-
placeholder: "
|
|
139
|
+
placeholder: "Status",
|
|
131
140
|
class: "pos-relative w-100 mn-b-small bg-white radius-small pd-medium"
|
|
132
141
|
}, null, 8, ["select"]),
|
|
133
|
-
_cache[
|
|
142
|
+
_cache[14] || (_cache[14] = vue.createElementVNode("p", { class: "p-medium mn-b-small" }, "Please the available delivery options:", -1)),
|
|
134
143
|
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(["pickup", "courier", "post"], (option) => {
|
|
135
144
|
return vue.createVNode(Checkbox.default, {
|
|
136
145
|
label: option,
|
|
@@ -138,10 +147,10 @@ const _sfc_main = {
|
|
|
138
147
|
value: option,
|
|
139
148
|
class: "w-100 mn-b-small bg-white radius-small pd-small",
|
|
140
149
|
radio: spots.state.spot.delivery,
|
|
141
|
-
"onUpdate:radio": _cache[
|
|
150
|
+
"onUpdate:radio": _cache[5] || (_cache[5] = (event) => spots.state.spot.delivery = event)
|
|
142
151
|
}, null, 8, ["label", "value", "radio"]);
|
|
143
152
|
}), 64)),
|
|
144
|
-
_cache[
|
|
153
|
+
_cache[15] || (_cache[15] = vue.createElementVNode("p", { class: "p-medium mn-b-small" }, "Please select the available payment methods:", -1)),
|
|
145
154
|
(vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(["cash", "bank transfer", "crypto"], (option) => {
|
|
146
155
|
return vue.createVNode(Checkbox.default, {
|
|
147
156
|
label: option,
|
|
@@ -149,7 +158,7 @@ const _sfc_main = {
|
|
|
149
158
|
value: option,
|
|
150
159
|
class: "w-100 mn-b-small bg-white radius-small pd-small",
|
|
151
160
|
radio: spots.state.spot.payment,
|
|
152
|
-
"onUpdate:radio": _cache[
|
|
161
|
+
"onUpdate:radio": _cache[6] || (_cache[6] = (event) => spots.state.spot.payment = event)
|
|
153
162
|
}, null, 8, ["label", "value", "radio"]);
|
|
154
163
|
}), 64))
|
|
155
164
|
]),
|
|
@@ -170,10 +179,10 @@ const _sfc_main = {
|
|
|
170
179
|
label: "Address",
|
|
171
180
|
placeholder: "Enter delivery address",
|
|
172
181
|
class: "bg-white pd-small radius-tl-medium radius-tr-medium",
|
|
173
|
-
"onUpdate:location": _cache[
|
|
182
|
+
"onUpdate:location": _cache[7] || (_cache[7] = (newLocation) => {
|
|
174
183
|
spots.state.spot.location = newLocation;
|
|
175
184
|
}),
|
|
176
|
-
"onUpdate:address": _cache[
|
|
185
|
+
"onUpdate:address": _cache[8] || (_cache[8] = (newAddress) => {
|
|
177
186
|
spots.state.spot.address = newAddress;
|
|
178
187
|
})
|
|
179
188
|
}, null, 8, ["apiKey", "address", "location", "locale"]),
|
|
@@ -183,29 +192,26 @@ const _sfc_main = {
|
|
|
183
192
|
location: spots.state.spot.location,
|
|
184
193
|
locale: _ctx.$i18n.locale,
|
|
185
194
|
class: "h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden",
|
|
186
|
-
"onUpdate:location": _cache[
|
|
195
|
+
"onUpdate:location": _cache[9] || (_cache[9] = (newLocation) => {
|
|
187
196
|
spots.state.spot.location = newLocation;
|
|
188
197
|
}),
|
|
189
|
-
"onUpdate:address": _cache[
|
|
198
|
+
"onUpdate:address": _cache[10] || (_cache[10] = (newAddress) => {
|
|
190
199
|
spots.state.spot.address = newAddress;
|
|
191
200
|
})
|
|
192
201
|
}, null, 8, ["apiKey", "address", "location", "locale"]),
|
|
193
|
-
|
|
202
|
+
vue.createVNode(WorktimeEdit.default, {
|
|
203
|
+
worktime: spots.state.spot.worktime,
|
|
204
|
+
"onUpdate:worktime": _cache[11] || (_cache[11] = ($event) => spots.state.spot.worktime = $event),
|
|
205
|
+
class: "mn-b-small"
|
|
206
|
+
}, null, 8, ["worktime"]),
|
|
207
|
+
_cache[16] || (_cache[16] = vue.createElementVNode("p", { class: "mn-b-small p-medium" }, "Options:", -1)),
|
|
194
208
|
vue.createVNode(Checkbox.default, {
|
|
195
209
|
label: "Hide address",
|
|
196
210
|
name: "address",
|
|
197
211
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
|
198
212
|
radio: (_a = spots.state.spot.position) == null ? void 0 : _a.hide,
|
|
199
|
-
"onUpdate:radio": _cache[
|
|
200
|
-
}, null, 8, ["radio"])
|
|
201
|
-
vue.createVNode(Field.default, {
|
|
202
|
-
field: spots.state.spot.minorder,
|
|
203
|
-
"onUpdate:field": _cache[11] || (_cache[11] = ($event) => spots.state.spot.minorder = $event),
|
|
204
|
-
label: "Min.order",
|
|
205
|
-
placeholder: "Enter minimum order value",
|
|
206
|
-
class: "bg-white radius-small pd-medium",
|
|
207
|
-
validation: _ctx.organizationName
|
|
208
|
-
}, null, 8, ["field", "validation"])
|
|
213
|
+
"onUpdate:radio": _cache[12] || (_cache[12] = (event) => spots.state.spot.position.hide = event)
|
|
214
|
+
}, null, 8, ["radio"])
|
|
209
215
|
];
|
|
210
216
|
}),
|
|
211
217
|
_: 1
|
|
@@ -216,7 +222,7 @@ const _sfc_main = {
|
|
|
216
222
|
callback: redirectDash,
|
|
217
223
|
class: "w-100 bg-light"
|
|
218
224
|
}, {
|
|
219
|
-
default: vue.withCtx(() => _cache[
|
|
225
|
+
default: vue.withCtx(() => _cache[17] || (_cache[17] = [
|
|
220
226
|
vue.createTextVNode("Delete Spot")
|
|
221
227
|
])),
|
|
222
228
|
_: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpotEdit.vue.cjs","sources":["../../../../../../../src/modules/spots/components/pages/SpotEdit.vue"],"sourcesContent":["<template>\n <div class=\"for-transition w-100 cols-1 pd-thin gap-thin\">\n\n\n <Block class=\"flex-nowrap flex-v-center flex\">\n \n <h1 class=\"mn-r-auto\">\n {{ route.params.spot ? spots.state.spot.profile.name : 'Create Spot' }}\n </h1>\n\n <Button \n :submit=\"onSubmit\" \n :callback=\"redirectTo\"\n class=\"bg-main\"\n >\n Save Spot\n </Button>\n </Block>\n \n\n <div class=\"cols-2 gap-thin\"
|
|
1
|
+
{"version":3,"file":"SpotEdit.vue.cjs","sources":["../../../../../../../src/modules/spots/components/pages/SpotEdit.vue"],"sourcesContent":["<template>\n <div class=\"for-transition w-100 cols-1 pd-thin gap-thin\">\n\n\n <Block class=\"flex-nowrap flex-v-center flex\">\n \n <h1 class=\"mn-r-auto\">\n {{ route.params.spot ? spots.state.spot.profile.name : 'Create Spot' }}\n </h1>\n\n <Button \n :submit=\"onSubmit\" \n :callback=\"redirectTo\"\n class=\"bg-main\"\n >\n Save Spot\n </Button>\n </Block>\n \n\n <div class=\"cols-2 gap-thin\"> \n <Block\n title=\"Profile\"\n class=\"mn-b-semi\"\n >\n <div class=\"gap-small mn-b-small cols-2-fit-content\">\n <UploadImage \n v-model:photo=\"spots.state.spot.profile.photo\"\n :uploadPath=\"'organizations/' + spots.state.spot.name + '/avatars'\"\n class=\"aspect-1x1 w-8r o-hidden radius-extra\" \n />\n\n <div class=\"w-100\">\n <Field \n v-model:field=\"spots.state.spot.profile.name\" \n label=\"Name\" \n placeholder=\"Spot Name\" \n class=\"mn-b-small bg-white radius-small pd-medium\"\n :validation=\"organizationName\" \n />\n <Field \n v-model:field=\"spots.state.spot.profile.description\" \n label=\"Description\" \n placeholder=\"Spot description (max 120 symbols)\" \n class=\"bg-white radius-small pd-medium\"\n :validation=\"organizationName\" \n /> \n </div>\n </div>\n\n <Field \n v-model:field=\"spots.state.spot.minorder\" \n label=\"Min.order\" \n placeholder=\"Enter minimum order value\" \n class=\"bg-white radius-small mn-b-small pd-small\"\n :validation=\"organizationName\" \n /> \n\n <Select \n v-model:select=\"spots.state.spot.status\"\n label=\"Status\"\n :options=\"[\n 'unpublished', \n 'published',\n 'archivied'\n ]\"\n placeholder=\"Status\"\n class=\"pos-relative w-100 mn-b-small bg-white radius-small pd-medium\"\n />\n\n <p class=\"p-medium mn-b-small\">Please the available delivery options:</p>\n\n <Checkbox \n v-for=\"option in ['pickup','courier','post']\"\n :label=\"option\"\n name=\"Delivery\"\n :value=\"option\"\n class=\"w-100 mn-b-small bg-white radius-small pd-small\"\n :radio=\"spots.state.spot.delivery\"\n @update:radio=\"event => spots.state.spot.delivery = event\"\n />\n\n <p class=\"p-medium mn-b-small\">Please select the available payment methods:</p>\n \n <Checkbox \n v-for=\"option in ['cash','bank transfer','crypto']\"\n :label=\"option\"\n name=\"Payment\"\n :value=\"option\"\n class=\"w-100 mn-b-small bg-white radius-small pd-small\"\n :radio=\"spots.state.spot.payment\"\n @update:radio=\"event => spots.state.spot.payment = event\"\n />\n </Block>\n\n <Block\n title=\"Location\"\n class=\"pos-relative\"\n >\n <Address\n :apiKey=\"GOOGLE_MAPS_API_KEY\" \n :address=\"spots.state.spot.address\" \n :location=\"spots.state.spot.location\" \n :locale=\"$i18n.locale\" \n label=\"Address\" \n placeholder=\"Enter delivery address\" \n class=\"\n bg-white pd-small radius-tl-medium radius-tr-medium \n \"\n @update:location=\"newLocation => {\n spots.state.spot.location = newLocation;\n }\"\n @update:address=\"newAddress => {\n spots.state.spot.address = newAddress;\n }\"\n />\n <LocationMarker \n :apiKey=\"GOOGLE_MAPS_API_KEY\" \n\n :address=\"spots.state.spot.address\" \n :location=\"spots.state.spot.location\" \n :locale=\"$i18n.locale\"\n \n class=\"h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden\"\n @update:location=\"newLocation => {\n spots.state.spot.location = newLocation;\n }\"\n @update:address=\"newAddress => {\n spots.state.spot.address = newAddress;\n }\"\n />\n \n <WorktimeEdit \n v-model:worktime=\"spots.state.spot.worktime\"\n class=\"mn-b-small\"\n />\n\n <p class=\"mn-b-small p-medium\">Options:</p>\n <Checkbox \n :label=\"'Hide address'\"\n name=\"address\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"spots.state.spot.position?.hide\"\n @update:radio=\"event => spots.state.spot.position.hide = event\"\n />\n\n </Block>\n\n </div>\n\n <Button :submit=\"onDelete\" :callback=\"redirectDash\" class=\"w-100 bg-light\">Delete Spot</Button>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted } from \"vue\";\nimport { useRoute, useRouter } from \"vue-router\";\n\nimport Block from '@martyrs/src/components/Block/Block.vue';\nimport UploadImage from '@martyrs/src/components/UploadImage/UploadImage.vue';\n\nimport Tab from \"@martyrs/src/components/Tab/Tab.vue\";\nimport Field from \"@martyrs/src/components/Field/Field.vue\";\nimport Select from \"@martyrs/src/components/Select/Select.vue\";\nimport Checkbox from \"@martyrs/src/components/Checkbox/Checkbox.vue\";\nimport Address from \"@martyrs/src/components/Address/Address.vue\";\nimport LocationMarker from \"@martyrs/src/components/LocationMarker/LocationMarker.vue\";\nimport Button from \"@martyrs/src/components/Button/Button.vue\";\nimport Popup from \"@martyrs/src/components/Popup/Popup.vue\";\n\nimport WorktimeEdit from \"../sections/WorktimeEdit.vue\"; \n\nimport * as spots from \"@martyrs/src/modules/spots/store/spots\";\n\nconst router = useRouter();\nconst route = useRoute();\nconst tabOrganization = ref(\"details\");\nconst showAddNew = ref(false);\n\nonMounted(async () => {\n await fetchData();\n})\n\nasync function fetchData() {\n\n if (route.params.spot) await spots.actions.readOne(route.params.spot);\n\n const lng = spots.state.spot.location?.coordinates[0]\n const lat = spots.state.spot.location?.coordinates[1]\n\n spots.state.spot.location = {\n lat: lat || 1,\n lng: lng || 1\n }\n}\n\nasync function onSubmit() {\n\n spots.state.spot.location = {\n type: 'Point',\n coordinates: [spots.state.spot.location.lng, spots.state.spot.location.lat]\n }\n\n\n if (route.params.spot) {\n await spots.actions.update(\n route.params._id,\n spots.state.spot\n );\n }\n if (!route.params.spot) {\n await spots.actions.create(\n route.params._id,\n spots.state.spot\n );\n }\n}\n\nfunction redirectTo() {\n // router.replace({ name: \"Spot\", params: { _id: route.params._id, spot: spots.state.spot._id } });\n router.push({ name: \"Organization\", query: { tab: 'spots' }, params: { _id: route.params._id }});\n}\n\nasync function onDelete() {\n await spots.actions.delete(\n route.params._id,\n spots.state.spot\n );\n}\n\nfunction redirectDash() {\n router.push({ name: \"Organization\", params: { _id: route.params._id }});\n}\n</script>\n\n<style scoped>\n</style>"],"names":["useRouter","useRoute","ref","onMounted","spots.actions","spots.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA8KA,UAAM,SAASA,UAAAA,UAAW;AAC1B,UAAM,QAAQC,UAAAA,SAAU;AACAC,QAAAA,IAAI,SAAS;AAClBA,QAAAA,IAAI,KAAK;AAE5BC,QAAAA,UAAU,YAAY;AACpB,YAAM,UAAW;AAAA,IACnB,CAAC;AAED,mBAAe,YAAY;;AAEzB,UAAI,MAAM,OAAO,KAAM,OAAMC,MAAa,QAAC,QAAQ,MAAM,OAAO,IAAI;AAEpE,YAAM,OAAMC,WAAW,MAAC,KAAK,aAAjBA,mBAA2B,YAAY;AACnD,YAAM,OAAMA,WAAW,MAAC,KAAK,aAAjBA,mBAA2B,YAAY;AAEnDA,YAAW,MAAC,KAAK,WAAW;AAAA,QAC1B,KAAK,OAAO;AAAA,QACZ,KAAK,OAAO;AAAA,MAChB;AAAA,IACA;AAEA,mBAAe,WAAW;AAExBA,YAAW,MAAC,KAAK,WAAW;AAAA,QAC1B,MAAM;AAAA,QACN,aAAa,CAACA,MAAW,MAAC,KAAK,SAAS,KAAKA,MAAW,MAAC,KAAK,SAAS,GAAG;AAAA,MAC9E;AAGE,UAAI,MAAM,OAAO,MAAM;AACrB,cAAMD,MAAa,QAAC;AAAA,UAClB,MAAM,OAAO;AAAA,UACbC,YAAY;AAAA,QACb;AAAA,MACL;AACE,UAAI,CAAC,MAAM,OAAO,MAAM;AACtB,cAAMD,MAAa,QAAC;AAAA,UAClB,MAAM,OAAO;AAAA,UACbC,YAAY;AAAA,QACb;AAAA,MACL;AAAA,IACA;AAEA,aAAS,aAAa;AAEnB,aAAO,KAAK,EAAE,MAAM,gBAAiB,OAAO,EAAE,KAAK,QAAO,GAAI,QAAQ,EAAE,KAAK,MAAM,OAAO,IAAG,EAAE,CAAC;AAAA,IACnG;AAEA,mBAAe,WAAW;AACxB,YAAMD,MAAa,QAAC;AAAA,QAClB,MAAM,OAAO;AAAA,QACbC,YAAY;AAAA,MACb;AAAA,IACH;AAEA,aAAS,eAAe;AACtB,aAAO,KAAK,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAK,MAAM,OAAO,IAAK,EAAA,CAAC;AAAA,IACxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,14 +2,15 @@ import { ref, onMounted, createElementBlock, openBlock, createVNode, createEleme
|
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import _sfc_main$1 from "../../../../components/Block/Block.vue.js";
|
|
4
4
|
import _sfc_main$3 from "../../../../components/UploadImage/UploadImage.vue.js";
|
|
5
|
-
/* empty css
|
|
5
|
+
/* empty css */
|
|
6
6
|
import Field from "../../../../components/Field/Field.vue.js";
|
|
7
7
|
import Select from "../../../../components/Select/Select.vue.js";
|
|
8
8
|
import _sfc_main$4 from "../../../../components/Checkbox/Checkbox.vue.js";
|
|
9
9
|
import _sfc_main$5 from "../../../../components/Address/Address.vue2.js";
|
|
10
10
|
import _sfc_main$6 from "../../../../components/LocationMarker/LocationMarker.vue2.js";
|
|
11
|
-
import _sfc_main$2 from "../../../../components/Button/Button.
|
|
11
|
+
import _sfc_main$2 from "../../../../components/Button/Button.vue2.js";
|
|
12
12
|
/* empty css */
|
|
13
|
+
import WorktimeEdit from "../sections/WorktimeEdit.vue.js";
|
|
13
14
|
import { actions, state } from "../../store/spots.js";
|
|
14
15
|
const _hoisted_1 = { class: "for-transition w-100 cols-1 pd-thin gap-thin" };
|
|
15
16
|
const _hoisted_2 = { class: "mn-r-auto" };
|
|
@@ -55,7 +56,7 @@ const _sfc_main = {
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
function redirectTo() {
|
|
58
|
-
router.push({ name: "Organization", params: { _id: route.params._id } });
|
|
59
|
+
router.push({ name: "Organization", query: { tab: "spots" }, params: { _id: route.params._id } });
|
|
59
60
|
}
|
|
60
61
|
async function onDelete() {
|
|
61
62
|
await actions.delete(
|
|
@@ -76,7 +77,7 @@ const _sfc_main = {
|
|
|
76
77
|
callback: redirectTo,
|
|
77
78
|
class: "bg-main"
|
|
78
79
|
}, {
|
|
79
|
-
default: withCtx(() => _cache[
|
|
80
|
+
default: withCtx(() => _cache[13] || (_cache[13] = [
|
|
80
81
|
createTextVNode(" Save Spot ")
|
|
81
82
|
])),
|
|
82
83
|
_: 1
|
|
@@ -116,19 +117,27 @@ const _sfc_main = {
|
|
|
116
117
|
}, null, 8, ["field", "validation"])
|
|
117
118
|
])
|
|
118
119
|
]),
|
|
120
|
+
createVNode(Field, {
|
|
121
|
+
field: state.spot.minorder,
|
|
122
|
+
"onUpdate:field": _cache[3] || (_cache[3] = ($event) => state.spot.minorder = $event),
|
|
123
|
+
label: "Min.order",
|
|
124
|
+
placeholder: "Enter minimum order value",
|
|
125
|
+
class: "bg-white radius-small mn-b-small pd-small",
|
|
126
|
+
validation: _ctx.organizationName
|
|
127
|
+
}, null, 8, ["field", "validation"]),
|
|
119
128
|
createVNode(Select, {
|
|
120
129
|
select: state.spot.status,
|
|
121
|
-
"onUpdate:select": _cache[
|
|
130
|
+
"onUpdate:select": _cache[4] || (_cache[4] = ($event) => state.spot.status = $event),
|
|
122
131
|
label: "Status",
|
|
123
132
|
options: [
|
|
124
133
|
"unpublished",
|
|
125
134
|
"published",
|
|
126
135
|
"archivied"
|
|
127
136
|
],
|
|
128
|
-
placeholder: "
|
|
137
|
+
placeholder: "Status",
|
|
129
138
|
class: "pos-relative w-100 mn-b-small bg-white radius-small pd-medium"
|
|
130
139
|
}, null, 8, ["select"]),
|
|
131
|
-
_cache[
|
|
140
|
+
_cache[14] || (_cache[14] = createElementVNode("p", { class: "p-medium mn-b-small" }, "Please the available delivery options:", -1)),
|
|
132
141
|
(openBlock(), createElementBlock(Fragment, null, renderList(["pickup", "courier", "post"], (option) => {
|
|
133
142
|
return createVNode(_sfc_main$4, {
|
|
134
143
|
label: option,
|
|
@@ -136,10 +145,10 @@ const _sfc_main = {
|
|
|
136
145
|
value: option,
|
|
137
146
|
class: "w-100 mn-b-small bg-white radius-small pd-small",
|
|
138
147
|
radio: state.spot.delivery,
|
|
139
|
-
"onUpdate:radio": _cache[
|
|
148
|
+
"onUpdate:radio": _cache[5] || (_cache[5] = (event) => state.spot.delivery = event)
|
|
140
149
|
}, null, 8, ["label", "value", "radio"]);
|
|
141
150
|
}), 64)),
|
|
142
|
-
_cache[
|
|
151
|
+
_cache[15] || (_cache[15] = createElementVNode("p", { class: "p-medium mn-b-small" }, "Please select the available payment methods:", -1)),
|
|
143
152
|
(openBlock(), createElementBlock(Fragment, null, renderList(["cash", "bank transfer", "crypto"], (option) => {
|
|
144
153
|
return createVNode(_sfc_main$4, {
|
|
145
154
|
label: option,
|
|
@@ -147,7 +156,7 @@ const _sfc_main = {
|
|
|
147
156
|
value: option,
|
|
148
157
|
class: "w-100 mn-b-small bg-white radius-small pd-small",
|
|
149
158
|
radio: state.spot.payment,
|
|
150
|
-
"onUpdate:radio": _cache[
|
|
159
|
+
"onUpdate:radio": _cache[6] || (_cache[6] = (event) => state.spot.payment = event)
|
|
151
160
|
}, null, 8, ["label", "value", "radio"]);
|
|
152
161
|
}), 64))
|
|
153
162
|
]),
|
|
@@ -168,10 +177,10 @@ const _sfc_main = {
|
|
|
168
177
|
label: "Address",
|
|
169
178
|
placeholder: "Enter delivery address",
|
|
170
179
|
class: "bg-white pd-small radius-tl-medium radius-tr-medium",
|
|
171
|
-
"onUpdate:location": _cache[
|
|
180
|
+
"onUpdate:location": _cache[7] || (_cache[7] = (newLocation) => {
|
|
172
181
|
state.spot.location = newLocation;
|
|
173
182
|
}),
|
|
174
|
-
"onUpdate:address": _cache[
|
|
183
|
+
"onUpdate:address": _cache[8] || (_cache[8] = (newAddress) => {
|
|
175
184
|
state.spot.address = newAddress;
|
|
176
185
|
})
|
|
177
186
|
}, null, 8, ["apiKey", "address", "location", "locale"]),
|
|
@@ -181,29 +190,26 @@ const _sfc_main = {
|
|
|
181
190
|
location: state.spot.location,
|
|
182
191
|
locale: _ctx.$i18n.locale,
|
|
183
192
|
class: "h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden",
|
|
184
|
-
"onUpdate:location": _cache[
|
|
193
|
+
"onUpdate:location": _cache[9] || (_cache[9] = (newLocation) => {
|
|
185
194
|
state.spot.location = newLocation;
|
|
186
195
|
}),
|
|
187
|
-
"onUpdate:address": _cache[
|
|
196
|
+
"onUpdate:address": _cache[10] || (_cache[10] = (newAddress) => {
|
|
188
197
|
state.spot.address = newAddress;
|
|
189
198
|
})
|
|
190
199
|
}, null, 8, ["apiKey", "address", "location", "locale"]),
|
|
191
|
-
|
|
200
|
+
createVNode(WorktimeEdit, {
|
|
201
|
+
worktime: state.spot.worktime,
|
|
202
|
+
"onUpdate:worktime": _cache[11] || (_cache[11] = ($event) => state.spot.worktime = $event),
|
|
203
|
+
class: "mn-b-small"
|
|
204
|
+
}, null, 8, ["worktime"]),
|
|
205
|
+
_cache[16] || (_cache[16] = createElementVNode("p", { class: "mn-b-small p-medium" }, "Options:", -1)),
|
|
192
206
|
createVNode(_sfc_main$4, {
|
|
193
207
|
label: "Hide address",
|
|
194
208
|
name: "address",
|
|
195
209
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
|
196
210
|
radio: (_a = state.spot.position) == null ? void 0 : _a.hide,
|
|
197
|
-
"onUpdate:radio": _cache[
|
|
198
|
-
}, null, 8, ["radio"])
|
|
199
|
-
createVNode(Field, {
|
|
200
|
-
field: state.spot.minorder,
|
|
201
|
-
"onUpdate:field": _cache[11] || (_cache[11] = ($event) => state.spot.minorder = $event),
|
|
202
|
-
label: "Min.order",
|
|
203
|
-
placeholder: "Enter minimum order value",
|
|
204
|
-
class: "bg-white radius-small pd-medium",
|
|
205
|
-
validation: _ctx.organizationName
|
|
206
|
-
}, null, 8, ["field", "validation"])
|
|
211
|
+
"onUpdate:radio": _cache[12] || (_cache[12] = (event) => state.spot.position.hide = event)
|
|
212
|
+
}, null, 8, ["radio"])
|
|
207
213
|
];
|
|
208
214
|
}),
|
|
209
215
|
_: 1
|
|
@@ -214,7 +220,7 @@ const _sfc_main = {
|
|
|
214
220
|
callback: redirectDash,
|
|
215
221
|
class: "w-100 bg-light"
|
|
216
222
|
}, {
|
|
217
|
-
default: withCtx(() => _cache[
|
|
223
|
+
default: withCtx(() => _cache[17] || (_cache[17] = [
|
|
218
224
|
createTextVNode("Delete Spot")
|
|
219
225
|
])),
|
|
220
226
|
_: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpotEdit.vue.js","sources":["../../../../../../../src/modules/spots/components/pages/SpotEdit.vue"],"sourcesContent":["<template>\n <div class=\"for-transition w-100 cols-1 pd-thin gap-thin\">\n\n\n <Block class=\"flex-nowrap flex-v-center flex\">\n \n <h1 class=\"mn-r-auto\">\n {{ route.params.spot ? spots.state.spot.profile.name : 'Create Spot' }}\n </h1>\n\n <Button \n :submit=\"onSubmit\" \n :callback=\"redirectTo\"\n class=\"bg-main\"\n >\n Save Spot\n </Button>\n </Block>\n \n\n <div class=\"cols-2 gap-thin\"
|
|
1
|
+
{"version":3,"file":"SpotEdit.vue.js","sources":["../../../../../../../src/modules/spots/components/pages/SpotEdit.vue"],"sourcesContent":["<template>\n <div class=\"for-transition w-100 cols-1 pd-thin gap-thin\">\n\n\n <Block class=\"flex-nowrap flex-v-center flex\">\n \n <h1 class=\"mn-r-auto\">\n {{ route.params.spot ? spots.state.spot.profile.name : 'Create Spot' }}\n </h1>\n\n <Button \n :submit=\"onSubmit\" \n :callback=\"redirectTo\"\n class=\"bg-main\"\n >\n Save Spot\n </Button>\n </Block>\n \n\n <div class=\"cols-2 gap-thin\"> \n <Block\n title=\"Profile\"\n class=\"mn-b-semi\"\n >\n <div class=\"gap-small mn-b-small cols-2-fit-content\">\n <UploadImage \n v-model:photo=\"spots.state.spot.profile.photo\"\n :uploadPath=\"'organizations/' + spots.state.spot.name + '/avatars'\"\n class=\"aspect-1x1 w-8r o-hidden radius-extra\" \n />\n\n <div class=\"w-100\">\n <Field \n v-model:field=\"spots.state.spot.profile.name\" \n label=\"Name\" \n placeholder=\"Spot Name\" \n class=\"mn-b-small bg-white radius-small pd-medium\"\n :validation=\"organizationName\" \n />\n <Field \n v-model:field=\"spots.state.spot.profile.description\" \n label=\"Description\" \n placeholder=\"Spot description (max 120 symbols)\" \n class=\"bg-white radius-small pd-medium\"\n :validation=\"organizationName\" \n /> \n </div>\n </div>\n\n <Field \n v-model:field=\"spots.state.spot.minorder\" \n label=\"Min.order\" \n placeholder=\"Enter minimum order value\" \n class=\"bg-white radius-small mn-b-small pd-small\"\n :validation=\"organizationName\" \n /> \n\n <Select \n v-model:select=\"spots.state.spot.status\"\n label=\"Status\"\n :options=\"[\n 'unpublished', \n 'published',\n 'archivied'\n ]\"\n placeholder=\"Status\"\n class=\"pos-relative w-100 mn-b-small bg-white radius-small pd-medium\"\n />\n\n <p class=\"p-medium mn-b-small\">Please the available delivery options:</p>\n\n <Checkbox \n v-for=\"option in ['pickup','courier','post']\"\n :label=\"option\"\n name=\"Delivery\"\n :value=\"option\"\n class=\"w-100 mn-b-small bg-white radius-small pd-small\"\n :radio=\"spots.state.spot.delivery\"\n @update:radio=\"event => spots.state.spot.delivery = event\"\n />\n\n <p class=\"p-medium mn-b-small\">Please select the available payment methods:</p>\n \n <Checkbox \n v-for=\"option in ['cash','bank transfer','crypto']\"\n :label=\"option\"\n name=\"Payment\"\n :value=\"option\"\n class=\"w-100 mn-b-small bg-white radius-small pd-small\"\n :radio=\"spots.state.spot.payment\"\n @update:radio=\"event => spots.state.spot.payment = event\"\n />\n </Block>\n\n <Block\n title=\"Location\"\n class=\"pos-relative\"\n >\n <Address\n :apiKey=\"GOOGLE_MAPS_API_KEY\" \n :address=\"spots.state.spot.address\" \n :location=\"spots.state.spot.location\" \n :locale=\"$i18n.locale\" \n label=\"Address\" \n placeholder=\"Enter delivery address\" \n class=\"\n bg-white pd-small radius-tl-medium radius-tr-medium \n \"\n @update:location=\"newLocation => {\n spots.state.spot.location = newLocation;\n }\"\n @update:address=\"newAddress => {\n spots.state.spot.address = newAddress;\n }\"\n />\n <LocationMarker \n :apiKey=\"GOOGLE_MAPS_API_KEY\" \n\n :address=\"spots.state.spot.address\" \n :location=\"spots.state.spot.location\" \n :locale=\"$i18n.locale\"\n \n class=\"h-20r mn-b-small radius-bl-medium radius-br-medium o-hidden\"\n @update:location=\"newLocation => {\n spots.state.spot.location = newLocation;\n }\"\n @update:address=\"newAddress => {\n spots.state.spot.address = newAddress;\n }\"\n />\n \n <WorktimeEdit \n v-model:worktime=\"spots.state.spot.worktime\"\n class=\"mn-b-small\"\n />\n\n <p class=\"mn-b-small p-medium\">Options:</p>\n <Checkbox \n :label=\"'Hide address'\"\n name=\"address\"\n class=\"w-100 mn-r-small bg-white radius-small pd-small\"\n :radio=\"spots.state.spot.position?.hide\"\n @update:radio=\"event => spots.state.spot.position.hide = event\"\n />\n\n </Block>\n\n </div>\n\n <Button :submit=\"onDelete\" :callback=\"redirectDash\" class=\"w-100 bg-light\">Delete Spot</Button>\n </div>\n</template>\n\n<script setup>\nimport { ref, onMounted } from \"vue\";\nimport { useRoute, useRouter } from \"vue-router\";\n\nimport Block from '@martyrs/src/components/Block/Block.vue';\nimport UploadImage from '@martyrs/src/components/UploadImage/UploadImage.vue';\n\nimport Tab from \"@martyrs/src/components/Tab/Tab.vue\";\nimport Field from \"@martyrs/src/components/Field/Field.vue\";\nimport Select from \"@martyrs/src/components/Select/Select.vue\";\nimport Checkbox from \"@martyrs/src/components/Checkbox/Checkbox.vue\";\nimport Address from \"@martyrs/src/components/Address/Address.vue\";\nimport LocationMarker from \"@martyrs/src/components/LocationMarker/LocationMarker.vue\";\nimport Button from \"@martyrs/src/components/Button/Button.vue\";\nimport Popup from \"@martyrs/src/components/Popup/Popup.vue\";\n\nimport WorktimeEdit from \"../sections/WorktimeEdit.vue\"; \n\nimport * as spots from \"@martyrs/src/modules/spots/store/spots\";\n\nconst router = useRouter();\nconst route = useRoute();\nconst tabOrganization = ref(\"details\");\nconst showAddNew = ref(false);\n\nonMounted(async () => {\n await fetchData();\n})\n\nasync function fetchData() {\n\n if (route.params.spot) await spots.actions.readOne(route.params.spot);\n\n const lng = spots.state.spot.location?.coordinates[0]\n const lat = spots.state.spot.location?.coordinates[1]\n\n spots.state.spot.location = {\n lat: lat || 1,\n lng: lng || 1\n }\n}\n\nasync function onSubmit() {\n\n spots.state.spot.location = {\n type: 'Point',\n coordinates: [spots.state.spot.location.lng, spots.state.spot.location.lat]\n }\n\n\n if (route.params.spot) {\n await spots.actions.update(\n route.params._id,\n spots.state.spot\n );\n }\n if (!route.params.spot) {\n await spots.actions.create(\n route.params._id,\n spots.state.spot\n );\n }\n}\n\nfunction redirectTo() {\n // router.replace({ name: \"Spot\", params: { _id: route.params._id, spot: spots.state.spot._id } });\n router.push({ name: \"Organization\", query: { tab: 'spots' }, params: { _id: route.params._id }});\n}\n\nasync function onDelete() {\n await spots.actions.delete(\n route.params._id,\n spots.state.spot\n );\n}\n\nfunction redirectDash() {\n router.push({ name: \"Organization\", params: { _id: route.params._id }});\n}\n</script>\n\n<style scoped>\n</style>"],"names":["spots.actions","spots.state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA8KA,UAAM,SAAS,UAAW;AAC1B,UAAM,QAAQ,SAAU;AACA,QAAI,SAAS;AAClB,QAAI,KAAK;AAE5B,cAAU,YAAY;AACpB,YAAM,UAAW;AAAA,IACnB,CAAC;AAED,mBAAe,YAAY;;AAEzB,UAAI,MAAM,OAAO,KAAM,OAAMA,QAAc,QAAQ,MAAM,OAAO,IAAI;AAEpE,YAAM,OAAMC,WAAY,KAAK,aAAjBA,mBAA2B,YAAY;AACnD,YAAM,OAAMA,WAAY,KAAK,aAAjBA,mBAA2B,YAAY;AAEnDA,YAAY,KAAK,WAAW;AAAA,QAC1B,KAAK,OAAO;AAAA,QACZ,KAAK,OAAO;AAAA,MAChB;AAAA,IACA;AAEA,mBAAe,WAAW;AAExBA,YAAY,KAAK,WAAW;AAAA,QAC1B,MAAM;AAAA,QACN,aAAa,CAACA,MAAY,KAAK,SAAS,KAAKA,MAAY,KAAK,SAAS,GAAG;AAAA,MAC9E;AAGE,UAAI,MAAM,OAAO,MAAM;AACrB,cAAMD,QAAc;AAAA,UAClB,MAAM,OAAO;AAAA,UACbC,MAAY;AAAA,QACb;AAAA,MACL;AACE,UAAI,CAAC,MAAM,OAAO,MAAM;AACtB,cAAMD,QAAc;AAAA,UAClB,MAAM,OAAO;AAAA,UACbC,MAAY;AAAA,QACb;AAAA,MACL;AAAA,IACA;AAEA,aAAS,aAAa;AAEnB,aAAO,KAAK,EAAE,MAAM,gBAAiB,OAAO,EAAE,KAAK,QAAO,GAAI,QAAQ,EAAE,KAAK,MAAM,OAAO,IAAG,EAAE,CAAC;AAAA,IACnG;AAEA,mBAAe,WAAW;AACxB,YAAMD,QAAc;AAAA,QAClB,MAAM,OAAO;AAAA,QACbC,MAAY;AAAA,MACb;AAAA,IACH;AAEA,aAAS,eAAe;AACtB,aAAO,KAAK,EAAE,MAAM,gBAAgB,QAAQ,EAAE,KAAK,MAAM,OAAO,IAAK,EAAA,CAAC;AAAA,IACxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|