@ozdao/prometheus-framework 0.1.36 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-568b55bb.js +1 -0
- package/dist/BackofficeGallery-b4105137.mjs +306 -0
- package/dist/BlockTags-8cddaef7.js +1 -0
- package/dist/BlockTags-ee310572.mjs +853 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Button-7643c9aa.js +1 -0
- package/dist/Button-9e1a9284.mjs +226 -0
- package/dist/ButtonToggleMembership-15f149cb.js +1 -0
- package/dist/ButtonToggleMembership-3bb9139e.mjs +90 -0
- package/dist/CardBlogpost-38016b80.mjs +246 -0
- package/dist/CardBlogpost-cc208f93.js +1 -0
- package/dist/CardOrganization-d93c9bdb.js +1 -0
- package/dist/CardOrganization-e920be73.mjs +234 -0
- package/dist/CardProduct-92affca1.js +1 -0
- package/dist/CardProduct-fca53299.mjs +193 -0
- package/dist/Checkbox-5dbe7b23.mjs +62 -0
- package/dist/Checkbox-76f09248.js +1 -0
- package/dist/Chips-9d81b215.mjs +214 -0
- package/dist/Chips-d47704e6.js +1 -0
- package/dist/Community-87522a04.mjs +132 -0
- package/dist/Community-aef23aee.js +1 -0
- package/dist/Dashboard-91d73bc5.js +1 -0
- package/dist/Dashboard-ea9035bc.mjs +152 -0
- package/dist/Dropdown-31115457.js +1 -0
- package/dist/Dropdown-cab3605b.mjs +146 -0
- package/dist/EULA-aba6a807.js +1 -0
- package/dist/EditOrder-94bbebff.mjs +221 -0
- package/dist/EditOrder-c070d474.js +1 -0
- package/dist/EmptyState-d65bab5b.js +1 -0
- package/dist/EmptyState-e404b05d.mjs +36 -0
- package/dist/Events-cdfbca78.js +1 -0
- package/dist/Events-e9dd58f7.mjs +123 -0
- package/dist/Feed-22464fcd.js +1 -0
- package/dist/Feed-6e96d3dd.mjs +124 -0
- package/dist/Feed-793b3eef.mjs +146 -0
- package/dist/Feed-7b80704d.mjs +361 -0
- package/dist/Feed-98b47c6f.js +1 -0
- package/dist/Feed-b30ef609.js +1 -0
- package/dist/Feed-c5d4390a.js +1 -0
- package/dist/Feed-d114330c.mjs +112 -0
- package/dist/Field-e2a43424.js +1 -0
- package/dist/Field-e5ad88d3.mjs +75 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
- package/dist/IconChevronRight-a55f838e.js +1 -0
- package/dist/IconChevronRight-fae9d012.mjs +28 -0
- package/dist/IconCommunity-468dc457.mjs +65 -0
- package/dist/IconCommunity-b339e806.js +1 -0
- package/dist/IconCross-5bf93179.js +1 -0
- package/dist/IconCross-84cb1292.mjs +28 -0
- package/dist/IconEdit-9edfd74d.mjs +21 -0
- package/dist/IconEdit-c0469b45.js +1 -0
- package/dist/Image-245c003d.mjs +480 -0
- package/dist/Image-35d31936.js +9 -0
- package/dist/LabelGooglePlay-24feb437.mjs +31 -0
- package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
- package/dist/LeftoverAdd-08d9fb54.mjs +228 -0
- package/dist/LeftoverAdd-fc673884.js +1 -0
- package/dist/Leftovers-296c0042.js +1 -0
- package/dist/Leftovers-685d9f19.mjs +136 -0
- package/dist/Loader-21f016da.js +1 -0
- package/dist/Loader-cd422786.mjs +41 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Members-2cb2ff58.mjs +114 -0
- package/dist/Members-85534d1f.js +1 -0
- package/dist/Menu-b5d6a0c7.js +1 -0
- package/dist/Menu-dd7645c1.mjs +13 -0
- package/dist/MenuItem-56ae7f94.js +1 -0
- package/dist/MenuItem-6296d02f.mjs +63 -0
- package/dist/Orders-b64e8cb9.js +1 -0
- package/dist/Orders-ff30db05.mjs +75 -0
- package/dist/Organizations-0cb37d68.js +1 -0
- package/dist/Organizations-d6ef2113.mjs +73 -0
- package/dist/Payments-53e5fecf.js +1 -0
- package/dist/Payments-82e545e1.mjs +87 -0
- package/dist/PlaceholderUserpic-47f6f319.js +1 -0
- package/dist/Popup-0915427c.mjs +74 -0
- package/dist/Popup-795f5c88.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Product-5994a8c9.mjs +653 -0
- package/dist/Product-68fa1e9e.js +7 -0
- package/dist/ProductEdit-64207814.mjs +296 -0
- package/dist/ProductEdit-a434240f.js +1 -0
- package/dist/ProductsBackoffice-0c93f9b6.js +1 -0
- package/dist/ProductsBackoffice-3d987c60.mjs +86 -0
- package/dist/ProfileBlogposts-0b81d964.js +1 -0
- package/dist/ProfileBlogposts-b59992cf.mjs +79 -0
- package/dist/ProfileEvents-3f7ca2c1.js +1 -0
- package/dist/ProfileEvents-bbdd62e7.mjs +70 -0
- package/dist/ProfileOrganizations-4734c02e.mjs +73 -0
- package/dist/ProfileOrganizations-d55ee487.js +1 -0
- package/dist/Publics-0762210a.js +1 -0
- package/dist/Publics-660e851c.mjs +45 -0
- package/dist/SelectMulti-58704d69.mjs +1038 -0
- package/dist/SelectMulti-c25765cf.js +1 -0
- package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
- package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
- package/dist/SkeletonEvent-8690422d.mjs +16 -0
- package/dist/SkeletonEvent-eb284de8.js +1 -0
- package/dist/SkeletonEventShort-6c9e3940.js +1 -0
- package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
- package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
- package/dist/SkeletonOrganization-8690422d.mjs +16 -0
- package/dist/Socials-31c06635.mjs +74 -0
- package/dist/Socials-cceaeaf2.js +1 -0
- package/dist/Tab-054b61f7.mjs +46 -0
- package/dist/Tab-2c1e4224.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/addMembersQuantity-7147aa4a.js +89 -0
- package/dist/addMembersQuantity-eac999f0.mjs +90 -0
- package/dist/auth-06d35b82.js +7 -0
- package/dist/auth-ec618cb3.mjs +627 -0
- package/dist/auth.client.cjs +7 -7
- package/dist/auth.client.js +22 -19
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/auth.validation-0ce9e326.js +1 -0
- package/dist/auth.validation-ba3606bf.mjs +24 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +235 -59
- package/dist/categories-82b28618.js +1 -0
- package/dist/categories-df3240a7.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +233 -227
- package/dist/community.server.js +217 -189
- package/dist/community.server.mjs +217 -189
- package/dist/components/Field/Field.vue.d.ts +58 -2
- package/dist/components/Field/Field.vue.d.ts.map +1 -1
- package/dist/components/UploadImage/UploadImage.vue.d.ts +1 -1
- package/dist/dribbble-8e8e169b.js +1 -0
- package/dist/dribbble-ae37c2ac.mjs +127 -0
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +1793 -1888
- package/dist/events.server.js +100 -210
- package/dist/events.server.mjs +100 -210
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/icons.client.cjs +1 -0
- package/dist/icons.client.js +84 -0
- package/dist/inputs.validation-d7cef32b.js +1 -0
- package/dist/inputs.validation-db65277a.mjs +83 -0
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +40 -64
- package/dist/leftovers-66951de6.js +1 -0
- package/dist/leftovers-be37c7a5.mjs +67 -0
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +7 -4
- package/dist/mailing-76895d59.mjs +50 -0
- package/dist/mailing-9659b3c4.js +49 -0
- package/dist/main.css +1 -1
- package/dist/memberships-12210953.mjs +68 -0
- package/dist/memberships-393765d8.js +1 -0
- package/dist/metadata.schema-147f9902.mjs +212 -0
- package/dist/metadata.schema-93397f9f.js +211 -0
- package/dist/metadata.schema-a539dd65.mjs +210 -0
- package/dist/metadata.schema-e4fe5c57.js +209 -0
- package/dist/modules/community/components/blocks/FooterBlogpost.vue.d.ts +1 -1
- package/dist/modules/community/components/sections/Feed.vue.d.ts +4 -3
- package/dist/modules/events/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/events/components/sections/List.vue.d.ts +3 -3
- package/dist/modules/globals/components/blocks/CardFooter.vue.d.ts +8 -0
- package/dist/modules/globals/components/blocks/CardHeader.vue.d.ts +15 -0
- package/dist/modules/globals/components/sections/Feed.vue.d.ts +69 -0
- package/dist/modules/orders/components/pages/EditOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Favorites.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/History.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Orders.vue.d.ts +2 -0
- package/dist/modules/orders/components/pages/ViewOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/sections/Form.vue.d.ts +1 -0
- package/dist/modules/organizations/components/blocks/CardDepartment.vue.d.ts +7 -0
- package/dist/modules/organizations/components/blocks/User.vue.d.ts +1 -1
- package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +1 -1
- package/dist/modules/organizations/components/pages/Members.vue.d.ts +2 -0
- package/dist/modules/organizations/components/sections/Department2.vue.d.ts +7 -0
- package/dist/modules/organizations/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/organizations/components/sections/FeedDepartments.vue.d.ts +8 -0
- package/dist/modules/payments/components/pages/Payments.vue.d.ts +2 -0
- package/dist/modules/products/components/blocks/CardLeftover.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/CardPosition.vue.d.ts +11 -0
- package/dist/modules/products/components/blocks/CardProduct.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/LeftoverPositions.vue.d.ts +0 -1
- package/dist/modules/products/components/pages/ProductsBackoffice.vue.d.ts +2 -0
- package/dist/modules/products/components/sections/FilterProducts.vue.d.ts +9 -0
- package/dist/modules/products/components/sections/SortProducts.vue.d.ts +10 -0
- package/dist/modules/reports/components/sections/FormReport.vue.d.ts +3 -3
- package/dist/modules/spots/components/blocks/CardSpot.vue.d.ts +7 -0
- package/dist/modules/spots/components/blocks/SpotMemberModify.vue.d.ts +11 -0
- package/dist/modules/spots/components/blocks/SpotSub.vue.d.ts +6 -0
- package/dist/modules/spots/components/pages/Spot.vue.d.ts +7 -0
- package/dist/modules/spots/components/pages/SpotEdit.vue.d.ts +2 -0
- package/dist/modules/spots/components/sections/Feed.vue.d.ts +8 -0
- package/dist/modules/spots/components/sections/PlaceModify.vue.d.ts +9 -0
- package/dist/modules/spots/components/sections/Places.vue.d.ts +9 -0
- package/dist/modules/wallet/components/pages/Wallet.vue.d.ts +2 -0
- package/dist/orders-13c10d49.mjs +85 -0
- package/dist/orders-37f041aa.js +1 -0
- package/dist/organizations-4d18a2e2.js +1 -0
- package/dist/organizations-6ed907e3.mjs +122 -0
- package/dist/organizations.client-01593e4d.js +3 -0
- package/dist/organizations.client-1b9fa66e.mjs +2997 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +75 -51
- package/dist/organizations.server.js +9 -20
- package/dist/organizations.server.mjs +9 -20
- package/dist/products-7960bbd4.js +1 -0
- package/dist/products-bf5783aa.mjs +108 -0
- package/dist/prometheus-framework.cjs.js +17 -17
- package/dist/prometheus-framework.es.js +771 -758
- package/dist/states.validation-03f7cd49.js +1 -0
- package/dist/states.validation-50e3a5a0.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +212 -256
- package/dist/users.server.js +1 -1
- package/dist/users.server.mjs +1 -1
- package/package.json +5 -1
- package/src/components/Field/Field.vue +34 -9
- package/src/components/SelectMulti/SelectMulti.vue +18 -22
- package/src/modules/auth/store/auth.js +34 -15
- package/src/modules/backoffice/components/pages/Dashboard.vue +91 -0
- package/src/modules/backoffice/router/admin.js +0 -28
- package/src/modules/backoffice/router/backoffice.js +131 -4
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/pages/Blog.vue +1 -0
- package/src/modules/community/components/sections/Comments.vue +1 -1
- package/src/modules/community/components/sections/Feed.vue +6 -0
- package/src/modules/community/controllers/blog.controller.js +129 -285
- package/src/modules/community/controllers/reactions.controller.js +2 -0
- package/src/modules/community/controllers/utils/queryProcessor.js +56 -0
- package/src/modules/community/controllers/utils/queryProcessorReactions.js +63 -0
- package/src/modules/community/store/blogposts.js +5 -5
- package/src/modules/events/components/blocks/CardEvent.vue +2 -3
- package/src/modules/events/components/pages/Events.vue +4 -4
- package/src/modules/events/components/sections/Feed.vue +4 -4
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +8 -6
- package/src/modules/events/controllers/utils/queryProcessor.js +111 -1
- package/src/modules/events/models/event.model.js +0 -4
- package/src/modules/events/store/events.js +5 -7
- package/src/{components/CardHeader → modules/globals/components/blocks}/CardHeader.vue +31 -4
- package/src/modules/globals/components/sections/Feed.vue +136 -0
- package/src/modules/globals/controllers/utils/queryProcessor.js +19 -117
- package/src/modules/globals/models/engagement.schema.js +29 -25
- package/src/modules/globals/utils/mailing.js +1 -1
- package/src/modules/icons/icons.client.js +51 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/marketplace/components/pages/Catalog.vue +3 -4
- package/src/modules/marketplace/router/marketplace.js +0 -11
- package/src/modules/middlewares/client/auth.validation.js +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -2
- package/src/modules/orders/components/pages/EditOrder.vue +238 -0
- package/src/modules/{backoffice → orders}/components/pages/Favorites.vue +2 -2
- package/src/modules/orders/components/pages/Order.vue +28 -34
- package/src/modules/orders/components/pages/Orders.vue +90 -0
- package/src/modules/{backoffice/components/pages/History.vue → orders/components/pages/ViewOrder.vue} +0 -8
- package/src/modules/orders/components/sections/Form.vue +52 -34
- package/src/modules/orders/controllers/orders.controller.js +102 -72
- package/src/modules/orders/models/order.model.js +30 -22
- package/src/modules/orders/router/orders.router.js +30 -0
- package/src/modules/orders/routes/orders.routes.js +23 -13
- package/src/modules/orders/store/orders.js +67 -40
- package/src/modules/organizations/components/{sections/Department.vue → blocks/CardDepartment.vue} +1 -10
- package/src/modules/organizations/components/blocks/CardOrganization.vue +13 -9
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +3 -3
- package/src/modules/organizations/components/{sections/MembersTab.vue → pages/Members.vue} +23 -8
- package/src/modules/organizations/components/pages/Organization.vue +80 -46
- package/src/modules/organizations/components/pages/Organizations.vue +45 -90
- package/src/modules/organizations/components/sections/{StructureTab.vue → FeedDepartments.vue} +5 -5
- package/src/modules/organizations/components/sections/Organizations.vue +1 -2
- package/src/modules/organizations/components/sections/Publics.vue +3 -2
- package/src/modules/organizations/controllers/organizations.controller.js +8 -21
- package/src/modules/organizations/controllers/organizations.new.controller.js +372 -0
- package/src/modules/organizations/controllers/utils/addUserStatusFields.js +53 -48
- package/src/modules/organizations/controllers/utils/queryProcessor.js +87 -0
- package/src/modules/organizations/controllers/utils/queryProcessorOrganizations.js +25 -0
- package/src/modules/organizations/organizations.client.js +42 -46
- package/src/modules/organizations/router/departments.router.js +29 -0
- package/src/modules/organizations/router/members.router.js +19 -0
- package/src/modules/organizations/router/organizations.js +12 -88
- package/src/modules/organizations/router/organizations.router.js +38 -0
- package/src/modules/organizations/router/products.router.js +24 -0
- package/src/modules/organizations/store/departments.js +108 -0
- package/src/modules/{backoffice/components/admin/Orders.vue → payments/components/pages/Payments.vue} +0 -15
- package/src/modules/products/components/blocks/{Leftover.vue → CardLeftover.vue} +21 -12
- package/src/modules/products/components/blocks/CardPosition.vue +84 -0
- package/src/modules/products/components/blocks/LeftoverPositions.vue +65 -136
- package/src/modules/products/components/pages/LeftoverAdd.vue +133 -88
- package/src/modules/products/components/pages/Leftovers.vue +91 -64
- package/src/modules/products/components/pages/Product.vue +3 -3
- package/src/modules/products/components/pages/Products.vue +42 -263
- package/src/modules/products/components/pages/ProductsBackoffice.vue +92 -0
- package/src/modules/products/components/sections/FilterProducts.vue +180 -0
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +18 -3
- package/src/modules/products/components/sections/SortProducts.vue +76 -0
- package/src/modules/products/controllers/leftovers.controller.js +51 -45
- package/src/modules/products/controllers/modifications.controller.js +66 -0
- package/src/modules/products/controllers/products.controller.js +67 -111
- package/src/modules/products/models/leftover.model.js +12 -9
- package/src/modules/products/models/product.model.js +1 -0
- package/src/modules/products/router/products.router.js +46 -0
- package/src/modules/products/routes/products.routes.js +4 -9
- package/src/modules/products/store/leftovers.js +56 -59
- package/src/modules/products/store/products.js +21 -22
- package/src/modules/spots/components/blocks/CardSpot.vue +104 -0
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +92 -0
- package/src/modules/spots/components/blocks/SpotSub.vue +24 -0
- package/src/modules/spots/components/pages/Map.vue +2 -2
- package/src/modules/spots/components/pages/Spot.vue +107 -0
- package/src/modules/spots/components/pages/SpotEdit.vue +319 -0
- package/src/modules/spots/components/sections/Feed.vue +64 -0
- package/src/modules/spots/controllers/spots.controller.js +83 -0
- package/src/modules/spots/models/spot.model.js +72 -0
- package/src/modules/spots/router/spots.js +34 -1
- package/src/modules/spots/routes/spots.routes.js +31 -0
- package/src/modules/spots/store/spots.js +15 -15
- package/src/modules/users/components/pages/Profile.vue +2 -3
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/styles/components/block.scss +2 -4
- package/src/modules/backoffice/components/admin/LeftoverAdd.vue +0 -157
- package/src/modules/backoffice/components/admin/Leftovers.vue +0 -119
- package/src/modules/backoffice/components/admin/Order.vue +0 -199
- package/src/modules/backoffice/components/admin/Product.vue +0 -28
- package/src/modules/backoffice/components/admin/Products.vue +0 -82
- package/src/modules/backoffice/components/pages/Organizations.vue +0 -104
- package/src/modules/community/controllers/blog.new.controller.js +0 -290
- package/src/modules/organizations/components/blocks/DepartmentSubDepartmentModify.vue +0 -92
- package/src/modules/organizations/components/elements/ButtonFollow.vue +0 -84
- package/src/modules/organizations/components/pages/OrganizationsAccount.vue +0 -110
- package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +0 -18
- /package/src/{components/CardFooter → modules/globals/components/blocks}/CardFooter.vue +0 -0
- /package/src/modules/{orders/controllers → payments/controller}/payments.controller.js +0 -0
- /package/src/modules/{orders → payments}/routes/payments.routes.js +0 -0
- /package/src/modules/{orders → payments}/store/payments.js +0 -0
- /package/src/modules/products/components/blocks/{ProductCard.vue → CardProduct.vue} +0 -0
- /package/src/modules/{organizations → spots}/components/sections/PlaceModify.vue +0 -0
- /package/src/modules/{organizations → spots}/components/sections/Places.vue +0 -0
- /package/src/modules/{backoffice → wallet}/components/pages/Wallet.vue +0 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),B=require("./categories-82b28618.js"),V=require("vue-router"),E=require("vue-i18n"),S=require("./carousel.es-cdfb392c.js"),b=require("./CardProduct-92affca1.js"),f=require("./products-7960bbd4.js"),I=require("./Loader-21f016da.js"),w=require("./_plugin-vue_export-helper-f246444f.js"),M=require("./Popup-795f5c88.js"),L=require("./IconEdit-c0469b45.js");require("./auth-06d35b82.js");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./index-b41aac19.js");require("./vuex.esm-bundler-685cf29f.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./IconCross-5bf93179.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");/**
|
2
|
+
* vue-meta v3.0.0-alpha.10
|
3
|
+
* (c) 2022
|
4
|
+
* - Pim (@pimlie)
|
5
|
+
* - All the amazing contributors
|
6
|
+
* @license MIT
|
7
|
+
*/const q=t=>t!==null&&typeof t=="object";function $(t,o,n){for(const a in o)a in n?q(t[a])?$(t[a],o[a],n[a]):o[a]!==n[a]&&(t[a]=o[a]):t[a]=o[a];for(const a in n)o&&a in o||delete t[a]}function x(t){if(t||(t=e.getCurrentInstance()||void 0),t)return t.appContext.config.globalProperties.$metaManager}function P(t,o){const n=e.getCurrentInstance()||void 0;if(!o&&n&&(o=x(n)),!o)throw new Error("No manager or current instance");e.isProxy(t)&&(e.watch(t,(s,r)=>{$(a.meta,s,r)}),t=t.value);const a=o.addMeta(t,n);return a}e.defineComponent({name:"Metainfo",inheritAttrs:!1,setup:(t,{slots:o})=>()=>{const n=x();if(n)return n.render({slots:o})}});const T={id:"popularProducts",class:"pd-thin"},D={class:"bg-grey radius-big pd-t-big pd-b-big"},R={class:"mn-semi t-center title"},z={class:""},O={__name:"PopularProducts",async setup(t){let o,n;V.useRouter(),[o,n]=e.withAsyncContext(()=>f.actions.read({limit:10})),await o,n();const a={messages:{en:{title:"Explore Hot Products 🔥",subtitle:"We attach great importance to high quality and customer satisfaction"},ru:{title:"Самое Горячее 🔥",subtitle:"Мы придаем большое значение высокому качеству товаров и удовлетворенности клиентов"}}},{t:s}=E.useI18n(a),r=e.ref(null),m={320:{itemsToShow:1},640:{itemsToShow:3},1024:{itemsToShow:3}};return e.onMounted(async()=>{setTimeout(()=>{r.value.updateSlideWidth()},500)}),(d,i)=>(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",D,[e.createElementVNode("div",R,[e.createElementVNode("h2",z,e.toDisplayString(e.unref(s)("title")),1)]),e.createVNode(e.unref(S.Carousel),{ref_key:"myCarousel",ref:r,"items-to-show":3,transition:330,wrapAround:!0,autoplay:3e3,pauseAutoplayOnHover:!0,breakpoints:m},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.state.all,(l,u,h)=>(e.openBlock(),e.createBlock(e.unref(S.Slide),{class:"pd-thin",key:u},{default:e.withCtx(()=>[e.createVNode(b._sfc_main,{class:"carousel__item h-100 w-100",product:l},null,8,["product"])]),_:2},1024))),128))]),_:1},512)])]))}};const F={class:"product-360-viewer"},H=e.createStaticVNode('<svg class="pos-absolute z-index-2 pos-b-0 pd-small" width="73" height="50" viewBox="0 0 73 50" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-6accd1fb><path d="M42.5934 17.2017C42.5934 20.8208 39.8428 23.7544 36.45 23.7544C33.0573 23.7544 30.3066 20.8208 30.3066 17.2017C30.3066 13.5826 33.0573 10.6484 36.45 10.6484C39.8428 10.6484 42.5934 13.5826 42.5934 17.2017Z" fill="black" fill-opacity="0.1" data-v-6accd1fb></path><path d="M22.5953 29.4883H50.3053C53.7389 29.4883 56.5197 26.778 56.5197 23.4405V10.8396C56.5197 7.49996 53.739 4.79176 50.3053 4.79176H48.8712C48.2747 2.05313 45.7826 0 42.7962 0H30.1063C27.1179 0 24.6257 2.053 24.0313 4.78967H22.5971C19.1656 4.78967 16.3828 7.49788 16.3828 10.8375V23.4384C16.3807 26.778 19.1634 29.4882 22.595 29.4882L22.5953 29.4883ZM36.449 8.31471C41.4535 8.31471 45.5123 12.2648 45.5123 17.1352C45.5123 22.0062 41.4535 25.9582 36.449 25.9582C31.4445 25.9582 27.3856 22.0081 27.3856 17.1377C27.3856 12.2673 31.4445 8.31471 36.449 8.31471ZM20.9092 9.32597H24.0182C24.9472 9.32597 25.7019 10.0584 25.7019 10.9625C25.7019 11.8686 24.9493 12.6011 24.0182 12.6011H20.9092C19.9823 12.6011 19.2254 11.8707 19.2254 10.9625C19.2275 10.0604 19.9822 9.32597 20.9092 9.32597Z" fill="black" fill-opacity="0.1" data-v-6accd1fb></path><path d="M58.8645 12.2878C58.8645 12.2878 77.1839 21.8549 65.5604 32.0445C63.6718 33.6967 55.2747 38.9138 42.5947 39.9368V45.0519C50.0424 44.2514 61.7635 41.887 68.4037 34.9253C82.5323 20.1097 58.8657 12.2871 58.8657 12.2871L58.8645 12.2878Z" fill="black" fill-opacity="0.1" data-v-6accd1fb></path><path d="M37.6664 41.209L29.1818 35.5097C28.077 34.7658 27.1702 35.2358 27.1702 36.5516V39.5855C16.2598 38.0408 9.07761 33.565 7.35125 32.0517C-4.2894 21.858 14.0557 12.2871 14.0557 12.2871C14.0557 12.2871 -9.64257 20.1134 4.5039 34.9343C10.2723 40.9769 19.8619 43.5552 27.1712 44.656V44.952V48.5701C27.1712 49.8901 28.078 50.3554 29.1827 49.6141L37.6673 43.9127C38.7757 43.1683 38.7757 41.9525 37.6673 41.2092L37.6664 41.209Z" fill="black" fill-opacity="0.1" data-v-6accd1fb></path></svg>',1),A={key:0,class:"h-100 w-100 transition-ease"},Z=["src"],j={__name:"Images360",props:{imagePath:{type:String,required:!0},imageCount:{type:Number,default:36},autoRotateSpeed:{type:Number,default:100}},setup(t){const o=t,n=e.ref(0),a=e.ref(!1),s=e.ref(0),r=e.ref(0);e.ref(!0);const m=async()=>{const p=[];for(let _=1;_<=o.imageCount;_++){const v=new Image;v.src=`${o.imagePath}/${_}.jpg`;try{await v.decode(),r.value++}catch(N){console.warn(`Failed to decode ${o.imagePath}/${_}.jpg:`,N)}p.push(v)}return p},d=e.computed(()=>Math.round(r.value/o.imageCount*100)),i=e.ref([]),l=e.ref(""),u=e.ref(null);e.watch(n,p=>{l.value=i.value[p]||""});function h(p){a.value=!0,s.value=p.clientX||p.touches[0].clientX}function C(p){if(!a.value)return;const _=p.clientX||p.touches[0].clientX,v=_-s.value;if(Math.abs(v)>=5){const N=v>0?1:-1;n.value=(n.value+N)%o.imageCount,n.value<0&&(n.value=o.imageCount-1),s.value=_}}function y(){a.value=!1}let g=null;const k=()=>{i.value=[]};return e.onMounted(async()=>{i.value=await m(),l.value=i.value[0]||""}),e.onUnmounted(()=>{clearInterval(g),k()}),(p,_)=>(e.openBlock(),e.createElementBlock("div",F,[H,e.createVNode(e.Transition,{name:"scale5",css:!u.value,appear:""},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("div",A,[l.value?(e.openBlock(),e.createElementBlock("img",{key:l.value,class:"h-100 w-100 transition-ease",src:(p.FILE_SERVER_URL||"")+l.value.src,alt:"360 product view",onMousedown:h,onMousemove:C,onMouseup:y,onMouseleave:y,onTouchstart:h,onTouchmove:C,onTouchend:y,onDragstart:_[0]||(_[0]=e.withModifiers(()=>{},["prevent"]))},null,40,Z)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["css"]),e.createVNode(e.Transition,{name:"scale5"},{default:e.withCtx(()=>[l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(I.Loader,{key:0,progress:e.unref(d),class:"center z-index-5"},null,8,["progress"]))]),_:1})]))}},X=w._export_sfc(j,[["__scopeId","data-v-6accd1fb"]]);const U=["src"],W={__name:"Magnifier",props:{imageSrc:String,zoomFactor:{type:Number,default:2}},setup(t){const o=t,n=e.ref(!1),a=e.ref({});function s(u){const h=u.target.getBoundingClientRect(),C=u.clientX-h.left,y=u.clientY-h.top,g=100,k=Math.max(0,Math.min(C-g/2,h.width-g)),p=Math.max(0,Math.min(y-g/2,h.height-g));a.value={left:`${k}px`,top:`${p}px`,backgroundPosition:`-${k*o.zoomFactor}px -${p*o.zoomFactor}px`,backgroundImage:`url(${o.imageSrc})`,backgroundSize:`${h.width*o.zoomFactor}px ${h.height*o.zoomFactor}px`}}function r(u){n.value=!0,s(u)}function m(){n.value=!1}function d(u){u.preventDefault(),n.value=!0,s(u.touches[0])}function i(u){u.preventDefault(),s(u.touches[0])}function l(){n.value=!1}return(u,h)=>(e.openBlock(),e.createElementBlock("div",{class:"w-100 image-container",onMousemove:r,onMouseleave:m,onTouchstart:d,onTouchmove:i,onTouchend:l},[e.createElementVNode("img",{src:(u.FILE_SERVER_URL||"")+t.imageSrc,class:"w-100"},null,8,U),n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"zoom-lens",style:e.normalizeStyle(a.value)},null,4)):e.createCommentVNode("",!0)],32))}},J=w._export_sfc(W,[["__scopeId","data-v-c3815eaf"]]);const Y={class:"product-images"},G={class:"no-responsive cols-4 thumbnails"},Q=["src","onClick"],K={__name:"ImagesThumbnails",props:{images:{type:Array,required:!0}},setup(t){const o=e.ref(!1),n=e.ref(0),a=r=>{n.value=r,o.value=!0},s=()=>{o.value=!1};return(r,m)=>(e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.images,(d,i)=>(e.openBlock(),e.createElementBlock("img",{key:i,src:(r.FILE_SERVER_URL||"")+d,onClick:l=>a(i),class:"radius-medium bg-white o-hidden thumbnail"},null,8,Q))),128))]),e.createVNode(M._sfc_main,{onClosePopup:s,isPopupOpen:o.value,class:"radius-medium o-hidden"},{default:e.withCtx(()=>[e.createVNode(J,{imageSrc:r.path+t.images[n.value],class:"magnifier z-index-4"},null,8,["imageSrc"])]),_:1},8,["isPopupOpen"])]))}},ee=w._export_sfc(K,[["__scopeId","data-v-732c99c3"]]),c=e.reactive({items:[],currentState:!1}),te={toggleShopcart(){c.currentState=!c.currentState},setShopcart(){try{localStorage.getItem("shopcart")&&(c.items=JSON.parse(localStorage.getItem("shopcart")))}catch(t){throw console.error(t),t}},addProductToCart(t){const o=c.items.find(n=>n._id===t._id);o?o.quantity++:c.items.push({_id:t._id,images:t.images,name:t.name,price:t.price,quantity:1}),localStorage.setItem("shopcart",JSON.stringify(c.items))},removeProduct(t){const o=c.items.find(a=>a._id===t),n=c.items.indexOf(o);n>-1&&(c.items.splice(n,1),localStorage.setItem("shopcart",JSON.stringify(c.items)))},decrementItemQuantity(t){const o=c.items.find(a=>a._id===t),n=c.items.indexOf(o);n>-1&&(o.quantity--,o.quantity<1&&c.items.splice(n,1),localStorage.setItem("shopcart",JSON.stringify(c.items)))},incrementItemQuantity(t){const o=c.items.find(n=>n._id===t);o&&(o.quantity++,localStorage.setItem("shopcart",JSON.stringify(c.items)))},resetShopcart({state:t}){t.items=[],localStorage.removeItem("shopcart")}};e.computed(()=>Number(c.items.reduce((t,o)=>t+o.price*o.quantity,0))),e.computed(()=>Number(c.items.reduce((t,o)=>t+o.quantity,0))),e.computed(()=>Number(c.currentState));e.watch(c,(t,o)=>{});const oe={class:"cols-2-1_2 gap-big product-data-wrapper"},ne={class:"flex-nowrap flex-column flex"},ae={class:"h-100 bg-white radius-medium o-hidden"},se=["src"],re={key:2,width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"h-100 w-100",style:{"object-fit":"cover"}},ce=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),ie=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),le=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),de=e.createElementVNode("path",{fill:"#00ff88",d:"M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"},null,-1),ue=[ce,ie,le,de],me={class:"h-100 flex-justify flex col"},pe={key:0,class:"t-main t-semi p-big"},he={class:"w-100 h1-product mn-thin"},_e={key:1,class:"mn-semi"},fe={key:2,class:"w-100 mn-medium t-transp"},ge={key:3,class:"w-100 mn-medium t-transp"},ve={class:"cols-2 w-100 gap-small mn-semi"},ye={class:"w-100 pd-small radius-small bg-white product-information"},Ce={class:"t-demi"},ke={class:"max-w-33rem mobile-w-100 t-white gap-small cols-2"},Ve=["disabled"],Ee={__name:"SectionProduct",props:{product:{type:Object,required:!0},recommendation:{type:String}},setup(t){const o=t,n=e.computed(()=>o.product.images),a={messages:{en:{airecommend:"AI Recommends You",description:"",addtoorder:"Add to order",fastorder:"Fast Order"},ru:{airecommend:"AI Рекомендует вам",description:"",addtoorder:"Добавить в корзину",fastorder:"Быстрый заказ"}}},{t:s}=E.useI18n(a);function r(d){return!(d.quantity>0)}function m(d){te.addProductToCart(d)}return(d,i)=>(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ne,[e.createElementVNode("div",ae,[t.product&&t.product.image3d?(e.openBlock(),e.createBlock(X,{key:0,class:"h-100 w-100",imagePath:`/assets/images/products/${t.product.image3d}`,imageCount:36},null,8,["imagePath"])):e.createCommentVNode("",!0),e.unref(n)[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("img",{key:1,class:"h-100 w-100",style:{"object-fit":"cover"},src:(d.FILE_SERVER_URL||"")+e.unref(n)[0]},null,8,se)):e.createCommentVNode("",!0),!e.unref(n)[0]&&!t.product.image3d?(e.openBlock(),e.createElementBlock("svg",re,ue)):e.createCommentVNode("",!0)]),e.unref(n).length>1?(e.openBlock(),e.createBlock(ee,{key:0,images:e.unref(n),class:"mn-t-medium"},null,8,["images"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",me,[e.createVNode(L.IconEdit,{onClick:i[0]||(i[0]=l=>d.$router.push({name:"ProductEdit",params:{_id:t.product.organization,product:t.product._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"}),t.recommendation?(e.openBlock(),e.createElementBlock("h2",pe,e.toDisplayString(e.unref(s)("airecommend")),1)):e.createCommentVNode("",!0),e.createElementVNode("h1",he,e.toDisplayString(t.product.name),1),e.createVNode(b._sfc_main$1,{product:t.product,size:"big",class:"mn-semi"},null,8,["product"]),t.recommendation?(e.openBlock(),e.createElementBlock("h3",_e,e.toDisplayString(t.recommendation),1)):e.createCommentVNode("",!0),t.product.description&&!t.product.localization&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",fe,e.toDisplayString(t.product.description),1)):e.createCommentVNode("",!0),t.product.localization&&t.product.localization.length>1&&!t.recommendation?(e.openBlock(),e.createElementBlock("p",ge,e.toDisplayString(e.unref(s)("description")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ve,[t.product.information.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.product.information,l=>(e.openBlock(),e.createElementBlock("div",ye,[e.createElementVNode("p",Ce,e.toDisplayString(l.name),1),e.createElementVNode("p",null,e.toDisplayString(l.value),1)]))),256)):e.createCommentVNode("",!0)]),e.createElementVNode("div",ke,[e.createElementVNode("button",{disabled:r(t.product),onClick:i[1]||(i[1]=l=>m(t.product)),class:"w-100 mn-r-small bg-main button"},e.toDisplayString(e.unref(s)("addtoorder")),9,Ve)])])]))}};const Ne={class:"pd-t-zero pd-thin"},we={class:"bg-black t-white radius-big footer"},Se={id:"top-footer",class:"cols-3 section"},be={href:"mailto:hello@weeder.delivery",class:"w-100 radius-small contact col"},$e={class:"t-transp"},xe={class:"h4 mn-small"},Be=e.createElementVNode("div",{class:"store-buttons"},null,-1),Ie={href:"https://t.me/weeder_support",target:"_blank",class:"w-100 radius-small contact col"},Me={class:"h4 mn-small"},Le=e.createElementVNode("div",{class:"socials flex-nojustify flex"},[e.createElementVNode("a",{class:"mn-r-small",href:"https://t.me/weederdelivery",target:"_blank"}),e.createElementVNode("a",{class:"mn-r-small",href:"https://t.me/weederdelivery",target:"_blank"}),e.createElementVNode("a",{class:"mn-r-small",href:"https://t.me/weederdelivery",target:"_blank"})],-1),qe={class:"cols-3 section"},Pe={class:"lh-semi nav-footer col"},Te={class:"mn-small t-semi h5"},De={class:"mn-medium ol"},Re=["innerHTML"],ze=e.createElementVNode("a",{href:"https://ozdao.dev",target:"_blank"},null,-1),Oe={class:"lh-semi nav-footer col"},Fe={class:"mn-small t-semi h5"},He={class:"lh-semi col"},Ae={class:"mn-small t-semi h5"},Ze=e.createElementVNode("div",{class:"mn-medium"},[e.createElementVNode("li",null,"Phuket,"),e.createElementVNode("li",null,"43 283 Soi Boathouse,"),e.createElementVNode("li",null,"Rawai")],-1),je={class:"pd-small t-center br-top-dark copyright"},Xe={__name:"Footer",async setup(t){let o,n;V.useRouter(),[o,n]=e.withAsyncContext(()=>f.actions.fetchCategories()),await o,n();const a={locale:"en",messages:{en:{store:"Online Store",information:"Information",description:"Weeder Delivery stocks a wide range of quality!",app:"Get Our App",adress:"Adress",support:"Get Online Support",socials:"Find Us in Socials",email:"Contact by email",time:"24 / 7 Seven days a week",copyright:"2022 © Weeder Delivery. Proudly created with OZ DAO.",pages:[],categories:[]},ru:{store:"Онлайн Каталог",information:"Информация",description:"Weeder Delivery предлагает широкий ассортимент качественных!",app:"Скачайте Наше Приложение",adress:"Адрес",support:"Онлайн Поддержка",socials:"Найдите Нас в Социальных Сетях",email:"Связаться по email",time:"24 / 7 без перерывов",copyright:"2022 © Weeder Delivery. С гордостью создано OZ DAO.",pages:[],categories:[]}}};f.state.all.forEach(r=>{r.localization.forEach(m=>{a.messages[m.locale].categories.push(m.text)})});const{t:s}=E.useI18n(a);return(r,m)=>(e.openBlock(),e.createElementBlock("div",Ne,[e.createElementVNode("footer",we,[e.createElementVNode("div",Se,[e.createElementVNode("a",be,[e.createElementVNode("p",$e,e.toDisplayString(e.unref(s)("description")),1)]),e.createElementVNode("div",{onClick:m[0]||(m[0]=d=>this.$router.push({name:"Home"})),class:"flex-v-center flex logo-link col"},[e.createElementVNode("p",xe,e.toDisplayString(e.unref(s)("app")),1),Be]),e.createElementVNode("a",Ie,[e.createElementVNode("p",Me,e.toDisplayString(e.unref(s)("socials")),1),Le])]),e.createElementVNode("div",qe,[e.createElementVNode("ul",Pe,[e.createElementVNode("li",Te,e.toDisplayString(e.unref(s)("store")),1),e.createElementVNode("div",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.state.all,(d,i)=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("span",{innerHTML:e.unref(s)("categories["+i+"]")},null,8,Re)]))),256))]),ze]),e.createElementVNode("ul",Oe,[e.createElementVNode("li",Fe,e.toDisplayString(e.unref(s)("information")),1)]),e.createElementVNode("ul",He,[e.createElementVNode("li",Ae,e.toDisplayString(e.unref(s)("email")),1),Ze])]),e.createElementVNode("p",je,e.toDisplayString(e.unref(s)("copyright")),1)])]))}};const Ue={__name:"Product",async setup(t){let o,n;const a=V.useRoute();V.useRouter(),[o,n]=e.withAsyncContext(()=>f.actions.read({_id:a.params.product})),await o,n(),a.meta.title.en=f.state.current.name,a.meta.title.ru=f.state.current.name;const s=e.computed(()=>f.state.current),r={messages:{en:{},ru:{}}},{t:m}=E.useI18n(r),d=e.computed(()=>({title:f.state.current.name,description:m("description")}));return P(d),e.onMounted(()=>{}),(i,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(B._sfc_main,{class:"section"}),e.createVNode(Ee,{product:e.unref(s),class:"section"},null,8,["product"]),e.createVNode(O),e.createVNode(Xe)]))}};exports.default=Ue;
|
@@ -0,0 +1,296 @@
|
|
1
|
+
import { toRefs as I, openBlock as n, createElementBlock as d, createTextVNode as C, toDisplayString as w, unref as e, createVNode as r, createElementVNode as t, createCommentVNode as k, createBlock as U, withCtx as z, Fragment as N, renderList as P, withAsyncContext as E } from "vue";
|
2
|
+
import { useRoute as B, useRouter as V } from "vue-router";
|
3
|
+
import { a as R, _ as D, s as j } from "./categories-df3240a7.mjs";
|
4
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
5
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
6
|
+
import { S as F } from "./Select-11ddabf5.mjs";
|
7
|
+
import { C as M } from "./Checkbox-5dbe7b23.mjs";
|
8
|
+
import { _ as L } from "./Button-9e1a9284.mjs";
|
9
|
+
import "vue-i18n";
|
10
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
11
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
12
|
+
import { F as h } from "./Field-e5ad88d3.mjs";
|
13
|
+
import { u as O } from "./vuex.esm-bundler-57d8b6ba.mjs";
|
14
|
+
import { V as T } from "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
15
|
+
import { _ as q } from "./UploadImageMultiple-cb6c7188.mjs";
|
16
|
+
import { s as l, a as $ } from "./products-bf5783aa.mjs";
|
17
|
+
import "./globals-96ba60e4.mjs";
|
18
|
+
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
19
|
+
import "./auth-ec618cb3.mjs";
|
20
|
+
import "./index-a661083c.mjs";
|
21
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
22
|
+
const G = { class: "mn-big flex-column flex" }, H = {
|
23
|
+
__name: "EditProductInfo",
|
24
|
+
props: {
|
25
|
+
product: Object
|
26
|
+
},
|
27
|
+
setup(u) {
|
28
|
+
const c = u, o = O();
|
29
|
+
return I(c), (s, i) => (n(), d("div", G, [
|
30
|
+
C(w(e(o).products.current) + " ", 1),
|
31
|
+
r(F, {
|
32
|
+
options: [
|
33
|
+
"unpublished",
|
34
|
+
"published",
|
35
|
+
"archivied"
|
36
|
+
],
|
37
|
+
select: e(o).products.state.current.status,
|
38
|
+
"onUpdate:select": i[0] || (i[0] = (a) => e(o).products.state.current.status = a),
|
39
|
+
placeholder: "Display product",
|
40
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
41
|
+
}, null, 8, ["select"]),
|
42
|
+
r(h, {
|
43
|
+
field: e(o).products.state.current.name,
|
44
|
+
"onUpdate:field": i[1] || (i[1] = (a) => e(o).products.state.current.name = a),
|
45
|
+
placeholder: "Введите название",
|
46
|
+
class: "w-100 mn-small bg-white radius-small pd-medium"
|
47
|
+
}, null, 8, ["field"]),
|
48
|
+
r(h, {
|
49
|
+
field: e(o).products.state.current.price,
|
50
|
+
"onUpdate:field": i[2] || (i[2] = (a) => e(o).products.state.current.price = a),
|
51
|
+
placeholder: "Введите цену",
|
52
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
53
|
+
type: "number"
|
54
|
+
}, null, 8, ["field"]),
|
55
|
+
r(h, {
|
56
|
+
field: e(o).products.state.current.description,
|
57
|
+
"onUpdate:field": i[3] || (i[3] = (a) => e(o).products.state.current.description = a),
|
58
|
+
placeholder: "Введите описание",
|
59
|
+
class: "w-100 mn-small bg-white radius-small pd-medium",
|
60
|
+
type: "textarea"
|
61
|
+
}, null, 8, ["field"])
|
62
|
+
]));
|
63
|
+
}
|
64
|
+
}, J = { class: "mn-big" }, K = { class: "mn-small flex-nowrap flex" }, Q = { class: "mn-r-thin" }, W = { class: "flex-column flex" }, X = {
|
65
|
+
key: 0,
|
66
|
+
class: "w-100 mn-small"
|
67
|
+
}, Y = ["onClick"], Z = /* @__PURE__ */ t("svg", {
|
68
|
+
class: "i-small",
|
69
|
+
fill: "none",
|
70
|
+
height: "20",
|
71
|
+
viewBox: "0 0 20 20",
|
72
|
+
width: "20",
|
73
|
+
xmlns: "http://www.w3.org/2000/svg"
|
74
|
+
}, [
|
75
|
+
/* @__PURE__ */ t("path", {
|
76
|
+
"clip-rule": "evenodd",
|
77
|
+
d: "m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",
|
78
|
+
fill: "#8a8a8a",
|
79
|
+
"fill-rule": "evenodd"
|
80
|
+
})
|
81
|
+
], -1), ee = [
|
82
|
+
Z
|
83
|
+
], S = {
|
84
|
+
__name: "EditParameters",
|
85
|
+
props: {
|
86
|
+
items: {
|
87
|
+
type: Array,
|
88
|
+
default: () => []
|
89
|
+
},
|
90
|
+
title: String,
|
91
|
+
addButtonLabel: String,
|
92
|
+
emptyMessage: String,
|
93
|
+
keyName: String,
|
94
|
+
valueName: String
|
95
|
+
},
|
96
|
+
emits: ["add-info", "delete-info"],
|
97
|
+
setup(u, { emit: c }) {
|
98
|
+
const o = u;
|
99
|
+
function s() {
|
100
|
+
c("add-info", {});
|
101
|
+
}
|
102
|
+
function i(m) {
|
103
|
+
c("delete-info", m);
|
104
|
+
}
|
105
|
+
const { items: a, title: _, emptyMessage: f, addButtonLabel: y, keyName: g, valueName: b } = I(o);
|
106
|
+
return (m, A) => (n(), d("div", J, [
|
107
|
+
t("div", K, [
|
108
|
+
t("h5", Q, w(e(_)), 1),
|
109
|
+
t("button", {
|
110
|
+
onClick: s,
|
111
|
+
class: "i-small pd-thin button-delete button"
|
112
|
+
}, "+")
|
113
|
+
]),
|
114
|
+
t("div", W, [
|
115
|
+
e(a).length == 0 ? (n(), d("p", X, w(e(f)), 1)) : k("", !0),
|
116
|
+
e(a).length == 0 ? (n(), U(L, {
|
117
|
+
key: 1,
|
118
|
+
onClick: s,
|
119
|
+
class: "button"
|
120
|
+
}, {
|
121
|
+
default: z(() => [
|
122
|
+
C(w(e(y)), 1)
|
123
|
+
]),
|
124
|
+
_: 1
|
125
|
+
})) : k("", !0),
|
126
|
+
(n(!0), d(N, null, P(e(a), (p, x) => (n(), d("div", {
|
127
|
+
class: "mn-medium w-100 flex-nowrap flex",
|
128
|
+
key: x
|
129
|
+
}, [
|
130
|
+
r(h, {
|
131
|
+
field: p[e(g)],
|
132
|
+
"onUpdate:field": (v) => p[e(g)] = v,
|
133
|
+
placeholder: "Название параметра",
|
134
|
+
class: "w-100 mn-r-small bg-white radius-small pd-medium"
|
135
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
136
|
+
r(h, {
|
137
|
+
field: p[e(b)],
|
138
|
+
"onUpdate:field": (v) => p[e(b)] = v,
|
139
|
+
placeholder: "Значение параметра",
|
140
|
+
class: "w-100 bg-white radius-small pd-medium"
|
141
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
142
|
+
t("button", {
|
143
|
+
onClick: (v) => i(x),
|
144
|
+
class: "mn-l-small button"
|
145
|
+
}, ee, 8, Y)
|
146
|
+
]))), 128))
|
147
|
+
])
|
148
|
+
]));
|
149
|
+
}
|
150
|
+
}, te = {
|
151
|
+
key: 0,
|
152
|
+
class: "mn-big"
|
153
|
+
}, se = { class: "flex-column block" }, oe = ["src"], ae = ["onClick"], le = {
|
154
|
+
__name: "EditProductImages",
|
155
|
+
props: {
|
156
|
+
product: Object
|
157
|
+
},
|
158
|
+
setup(u) {
|
159
|
+
function c(s) {
|
160
|
+
console.log(s), console.log(l.current.images), l.current.images.push(...s);
|
161
|
+
}
|
162
|
+
function o(s) {
|
163
|
+
l.current.images.splice(s, 1);
|
164
|
+
}
|
165
|
+
return (s, i) => (n(), d("div", null, [
|
166
|
+
u.product.images.length < 1 ? (n(), d("p", te, " The product doesn't have any images yet. ")) : k("", !0),
|
167
|
+
r(e(T), {
|
168
|
+
class: "cols-4 dragArea list-group w-full",
|
169
|
+
list: u.product.images,
|
170
|
+
sort: !0,
|
171
|
+
onChange: s.log
|
172
|
+
}, {
|
173
|
+
default: z(() => [
|
174
|
+
(n(!0), d(N, null, P(u.product.images, (a, _) => (n(), d("div", se, [
|
175
|
+
t("img", {
|
176
|
+
class: "w-100 mn-small",
|
177
|
+
src: (s.FILE_SERVER_URL || "") + a
|
178
|
+
}, null, 8, oe),
|
179
|
+
t("a", {
|
180
|
+
onClick: (f) => o(_),
|
181
|
+
class: "w-100 br-grey br-solid br-1px button"
|
182
|
+
}, "Удалить", 8, ae)
|
183
|
+
]))), 256))
|
184
|
+
]),
|
185
|
+
_: 1
|
186
|
+
}, 8, ["list", "onChange"]),
|
187
|
+
r(q, {
|
188
|
+
"onUpdate:images": c,
|
189
|
+
uploadPath: "organizations/" + s.$route.params._id + "/products",
|
190
|
+
class: "mn-t-semi pd-small w-100 button bg-main"
|
191
|
+
}, null, 8, ["uploadPath"])
|
192
|
+
]));
|
193
|
+
}
|
194
|
+
};
|
195
|
+
const ne = { class: "for-transition w-100" }, re = { class: "pd-b-zero pd-t-zero pd-thin" }, ie = { class: "pd-thin" }, de = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, ce = {
|
196
|
+
key: 0,
|
197
|
+
class: "mn-r-auto"
|
198
|
+
}, ue = {
|
199
|
+
key: 1,
|
200
|
+
class: "mn-r-auto"
|
201
|
+
}, me = { class: "flex-nowrap flex pd-thin" }, pe = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, _e = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, he = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Profile", -1), fe = { class: "mn-semi" }, ge = /* @__PURE__ */ t("h5", null, "Categories", -1), be = { class: "" }, ve = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, we = /* @__PURE__ */ t("h3", { class: "mn-semi" }, "Images", -1), Oe = {
|
202
|
+
__name: "ProductEdit",
|
203
|
+
async setup(u) {
|
204
|
+
let c, o;
|
205
|
+
const s = B(), i = V();
|
206
|
+
[c, o] = E(() => R.fetchCategories()), await c, o(), s.params.product && ([c, o] = E(() => $.read({ _id: s.params.product })), await c, o());
|
207
|
+
function a() {
|
208
|
+
l.current.information.push({ name: "", value: "" });
|
209
|
+
}
|
210
|
+
function _(m) {
|
211
|
+
l.current.information.splice(m, 1);
|
212
|
+
}
|
213
|
+
function f() {
|
214
|
+
l.current.localization.push({ locale: "", text: "" });
|
215
|
+
}
|
216
|
+
function y(m) {
|
217
|
+
l.current.localization.splice(m, 1);
|
218
|
+
}
|
219
|
+
function g() {
|
220
|
+
s.params.product ? $.update(s.params.product, l.current) : $.create(s.params._id, l.current);
|
221
|
+
}
|
222
|
+
function b() {
|
223
|
+
i.push({ name: "ProductEdit", params: { _id: s.params._id, product: l.current._id } });
|
224
|
+
}
|
225
|
+
return (m, A) => (n(), d("div", ne, [
|
226
|
+
t("div", re, [
|
227
|
+
r(D, { class: "pd-medium bg-grey radius-big" })
|
228
|
+
]),
|
229
|
+
t("div", ie, [
|
230
|
+
t("header", de, [
|
231
|
+
e(s).params.product ? (n(), d("h1", ce, "Edit Product")) : (n(), d("h1", ue, "Create Product")),
|
232
|
+
t("section", me, [
|
233
|
+
r(L, {
|
234
|
+
submit: g,
|
235
|
+
callback: b
|
236
|
+
}, {
|
237
|
+
default: z(() => [
|
238
|
+
C("Save Product")
|
239
|
+
]),
|
240
|
+
_: 1
|
241
|
+
})
|
242
|
+
])
|
243
|
+
])
|
244
|
+
]),
|
245
|
+
t("div", pe, [
|
246
|
+
t("div", _e, [
|
247
|
+
he,
|
248
|
+
r(H, {
|
249
|
+
product: l.current
|
250
|
+
}, null, 8, ["product"]),
|
251
|
+
t("div", fe, [
|
252
|
+
ge,
|
253
|
+
(n(!0), d(N, null, P(j.all, (p, x) => (n(), U(M, {
|
254
|
+
label: p.name,
|
255
|
+
name: "categories",
|
256
|
+
value: p.url,
|
257
|
+
class: "w-100 mn-t-small bg-white radius-small pd-small",
|
258
|
+
radio: l.current.category
|
259
|
+
}, null, 8, ["label", "value", "radio"]))), 256))
|
260
|
+
]),
|
261
|
+
r(S, {
|
262
|
+
items: l.current.information,
|
263
|
+
title: "Parameters",
|
264
|
+
emptyMessage: "No parameters",
|
265
|
+
addButtonLabel: "Add parameter",
|
266
|
+
keyName: "name",
|
267
|
+
valueName: "value",
|
268
|
+
onAddInfo: a,
|
269
|
+
onDeleteInfo: _
|
270
|
+
}, null, 8, ["items"]),
|
271
|
+
r(S, {
|
272
|
+
items: l.current.localization,
|
273
|
+
title: "Localization",
|
274
|
+
emptyMessage: "No localizations",
|
275
|
+
addButtonLabel: "Add localization",
|
276
|
+
keyName: "locale",
|
277
|
+
valueName: "text",
|
278
|
+
onAddInfo: f,
|
279
|
+
onDeleteInfo: y
|
280
|
+
}, null, 8, ["items"])
|
281
|
+
]),
|
282
|
+
t("div", be, [
|
283
|
+
t("div", ve, [
|
284
|
+
we,
|
285
|
+
r(le, {
|
286
|
+
product: l.current
|
287
|
+
}, null, 8, ["product"])
|
288
|
+
])
|
289
|
+
])
|
290
|
+
])
|
291
|
+
]));
|
292
|
+
}
|
293
|
+
};
|
294
|
+
export {
|
295
|
+
Oe as default
|
296
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),N=require("vue-router"),b=require("./categories-82b28618.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");const V=require("./Select-3ca5ab39.js"),y=require("./Checkbox-76f09248.js"),v=require("./Button-7643c9aa.js");require("vue-i18n");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const u=require("./Field-e2a43424.js"),B=require("./vuex.esm-bundler-685cf29f.js"),w=require("./vue-draggable-next.esm-bundler-21a209c6.js"),x=require("./UploadImageMultiple-eddaac87.js"),n=require("./products-7960bbd4.js");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./auth-06d35b82.js");require("./index-b41aac19.js");require("./_plugin-vue_export-helper-f246444f.js");const q={class:"mn-big flex-column flex"},C={__name:"EditProductInfo",props:{product:Object},setup(s){const a=s,o=B.useStore();return e.toRefs(a),(t,l)=>(e.openBlock(),e.createElementBlock("div",q,[e.createTextVNode(e.toDisplayString(e.unref(o).products.current)+" ",1),e.createVNode(V.Select,{options:["unpublished","published","archivied"],select:e.unref(o).products.state.current.status,"onUpdate:select":l[0]||(l[0]=r=>e.unref(o).products.state.current.status=r),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(u.Field,{field:e.unref(o).products.state.current.name,"onUpdate:field":l[1]||(l[1]=r=>e.unref(o).products.state.current.name=r),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(u.Field,{field:e.unref(o).products.state.current.price,"onUpdate:field":l[2]||(l[2]=r=>e.unref(o).products.state.current.price=r),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(u.Field,{field:e.unref(o).products.state.current.description,"onUpdate:field":l[3]||(l[3]=r=>e.unref(o).products.state.current.description=r),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}},$={class:"mn-big"},S={class:"mn-small flex-nowrap flex"},z={class:"mn-r-thin"},P={class:"flex-column flex"},I={key:0,class:"w-100 mn-small"},L=["onClick"],U=e.createElementVNode("svg",{class:"i-small",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),A=[U],k={__name:"EditParameters",props:{items:{type:Array,default:()=>[]},title:String,addButtonLabel:String,emptyMessage:String,keyName:String,valueName:String},emits:["add-info","delete-info"],setup(s,{emit:a}){const o=s;function t(){a("add-info",{})}function l(c){a("delete-info",c)}const{items:r,title:d,emptyMessage:m,addButtonLabel:h,keyName:p,valueName:f}=e.toRefs(o);return(c,E)=>(e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("div",S,[e.createElementVNode("h5",z,e.toDisplayString(e.unref(d)),1),e.createElementVNode("button",{onClick:t,class:"i-small pd-thin button-delete button"},"+")]),e.createElementVNode("div",P,[e.unref(r).length==0?(e.openBlock(),e.createElementBlock("p",I,e.toDisplayString(e.unref(m)),1)):e.createCommentVNode("",!0),e.unref(r).length==0?(e.openBlock(),e.createBlock(v._sfc_main,{key:1,onClick:t,class:"button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(h)),1)]),_:1})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(i,g)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-medium w-100 flex-nowrap flex",key:g},[e.createVNode(u.Field,{field:i[e.unref(p)],"onUpdate:field":_=>i[e.unref(p)]=_,placeholder:"Название параметра",class:"w-100 mn-r-small bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(u.Field,{field:i[e.unref(f)],"onUpdate:field":_=>i[e.unref(f)]=_,placeholder:"Значение параметра",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:_=>l(g),class:"mn-l-small button"},A,8,L)]))),128))])]))}},F={key:0,class:"mn-big"},D={class:"flex-column block"},R=["src"],M=["onClick"],T={__name:"EditProductImages",props:{product:Object},setup(s){function a(t){console.log(t),console.log(n.state.current.images),n.state.current.images.push(...t)}function o(t){n.state.current.images.splice(t,1)}return(t,l)=>(e.openBlock(),e.createElementBlock("div",null,[s.product.images.length<1?(e.openBlock(),e.createElementBlock("p",F," The product doesn't have any images yet. ")):e.createCommentVNode("",!0),e.createVNode(e.unref(w.VueDraggableNext),{class:"cols-4 dragArea list-group w-full",list:s.product.images,sort:!0,onChange:t.log},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.product.images,(r,d)=>(e.openBlock(),e.createElementBlock("div",D,[e.createElementVNode("img",{class:"w-100 mn-small",src:(t.FILE_SERVER_URL||"")+r},null,8,R),e.createElementVNode("a",{onClick:m=>o(d),class:"w-100 br-grey br-solid br-1px button"},"Удалить",8,M)]))),256))]),_:1},8,["list","onChange"]),e.createVNode(x._sfc_main,{"onUpdate:images":a,uploadPath:"organizations/"+t.$route.params._id+"/products",class:"mn-t-semi pd-small w-100 button bg-main"},null,8,["uploadPath"])]))}};const j={class:"for-transition w-100"},O={class:"pd-b-zero pd-t-zero pd-thin"},G={class:"pd-thin"},H={class:"flex-nowrap flex bg-grey pd-medium radius-big"},J={key:0,class:"mn-r-auto"},K={key:1,class:"mn-r-auto"},Q={class:"flex-nowrap flex pd-thin"},W={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},X={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},Y=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),Z={class:"mn-semi"},ee=e.createElementVNode("h5",null,"Categories",-1),te={class:""},oe={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},ne=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),re={__name:"ProductEdit",async setup(s){let a,o;const t=N.useRoute(),l=N.useRouter();[a,o]=e.withAsyncContext(()=>b.actions.fetchCategories()),await a,o(),t.params.product&&([a,o]=e.withAsyncContext(()=>n.actions.read({_id:t.params.product})),await a,o());function r(){n.state.current.information.push({name:"",value:""})}function d(c){n.state.current.information.splice(c,1)}function m(){n.state.current.localization.push({locale:"",text:""})}function h(c){n.state.current.localization.splice(c,1)}function p(){t.params.product?n.actions.update(t.params.product,n.state.current):n.actions.create(t.params._id,n.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:t.params._id,product:n.state.current._id}})}return(c,E)=>(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",O,[e.createVNode(b._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",G,[e.createElementVNode("header",H,[e.unref(t).params.product?(e.openBlock(),e.createElementBlock("h1",J,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",K,"Create Product")),e.createElementVNode("section",Q,[e.createVNode(v._sfc_main,{submit:p,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",W,[e.createElementVNode("div",X,[Y,e.createVNode(C,{product:n.state.current},null,8,["product"]),e.createElementVNode("div",Z,[ee,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.state.all,(i,g)=>(e.openBlock(),e.createBlock(y.Checkbox,{label:i.name,name:"categories",value:i.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:n.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(k,{items:n.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:r,onDeleteInfo:d},null,8,["items"]),e.createVNode(k,{items:n.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:m,onDeleteInfo:h},null,8,["items"])]),e.createElementVNode("div",te,[e.createElementVNode("div",oe,[ne,e.createVNode(T,{product:n.state.current},null,8,["product"])])])])]))}};exports.default=re;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("vue-router"),s=require("./products-7960bbd4.js"),c=require("./Feed-98b47c6f.js"),d=require("./CardProduct-92affca1.js"),m=require("./Tab-2c1e4224.js");require("./auth-06d35b82.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./SkeletonEvent-eb284de8.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./vuex.esm-bundler-685cf29f.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const p={class:"mn-medium flex-v-center flex-nowrap flex"},q=e.createElementVNode("h2",{class:"mn-r-medium"},"Products",-1),b={__name:"ProductsBackoffice",setup(_){const r=i.useRoute(),l=i.useRouter(),u=e.ref(r.query.tab?r.query.tab:"posts");return r.query.tab=u.value,e.watch(u,a=>{l.replace({query:{...r.query,tab:a}})}),e.onMounted(async()=>{await s.actions.fetchProducts()}),(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",p,[q,e.createElementVNode("button",{onClick:o[0]||(o[0]=t=>a.$router.push({name:"AddProduct"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createVNode(m._sfc_main,{selected:u.value,"onUpdate:selected":o[1]||(o[1]=t=>u.value=t),tabs:[{name:"All",value:"all"},{name:"Published",value:"published"},{name:"Unpublished",value:"unpublished"},{name:"Archivied",value:"archivied"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(c._sfc_main,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:t=>s.actions.read(t),state:s.state},options:{limit:15,organization:e.unref(r).params._id,status:u.value}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createBlock(d._sfc_main,{key:n._id,product:n,onClick:h=>a.$router.push({name:"Product Organization",params:{_id:e.unref(r).params._id,product:n._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])],64))}};exports.default=b;
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { ref as _, watch as f, onMounted as h, openBlock as i, createElementBlock as u, Fragment as l, createElementVNode as n, createVNode as m, unref as d, withCtx as b, renderList as v, createBlock as y } from "vue";
|
2
|
+
import { useRoute as g, useRouter as k } from "vue-router";
|
3
|
+
import { a as c, s as P } from "./products-bf5783aa.mjs";
|
4
|
+
import { _ as $ } from "./Feed-d114330c.mjs";
|
5
|
+
import { _ as q } from "./CardProduct-fca53299.mjs";
|
6
|
+
import { _ as w } from "./Tab-054b61f7.mjs";
|
7
|
+
import "./auth-ec618cb3.mjs";
|
8
|
+
import "./index-a661083c.mjs";
|
9
|
+
import "./globals-96ba60e4.mjs";
|
10
|
+
import "vue-i18n";
|
11
|
+
import "./SkeletonEvent-8690422d.mjs";
|
12
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
13
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
14
|
+
import "./EmptyState-e404b05d.mjs";
|
15
|
+
import "./vuex.esm-bundler-57d8b6ba.mjs";
|
16
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
17
|
+
const C = { class: "mn-medium flex-v-center flex-nowrap flex" }, x = /* @__PURE__ */ n("h2", { class: "mn-r-medium" }, "Products", -1), K = {
|
18
|
+
__name: "ProductsBackoffice",
|
19
|
+
setup(B) {
|
20
|
+
const e = g(), p = k(), r = _(e.query.tab ? e.query.tab : "posts");
|
21
|
+
return e.query.tab = r.value, f(r, (o) => {
|
22
|
+
p.replace({ query: { ...e.query, tab: o } });
|
23
|
+
}), h(async () => {
|
24
|
+
await c.fetchProducts();
|
25
|
+
}), (o, a) => (i(), u(l, null, [
|
26
|
+
n("header", C, [
|
27
|
+
x,
|
28
|
+
n("button", {
|
29
|
+
onClick: a[0] || (a[0] = (t) => o.$router.push({
|
30
|
+
name: "AddProduct"
|
31
|
+
})),
|
32
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
33
|
+
}, " + ")
|
34
|
+
]),
|
35
|
+
m(w, {
|
36
|
+
selected: r.value,
|
37
|
+
"onUpdate:selected": a[1] || (a[1] = (t) => r.value = t),
|
38
|
+
tabs: [
|
39
|
+
{ name: "All", value: "all" },
|
40
|
+
{ name: "Published", value: "published" },
|
41
|
+
{ name: "Unpublished", value: "unpublished" },
|
42
|
+
{ name: "Archivied", value: "archivied" }
|
43
|
+
],
|
44
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
45
|
+
}, null, 8, ["selected"]),
|
46
|
+
m($, {
|
47
|
+
states: {
|
48
|
+
empty: {
|
49
|
+
title: "No Products Found",
|
50
|
+
description: "Currently, there are no products available."
|
51
|
+
}
|
52
|
+
},
|
53
|
+
store: {
|
54
|
+
read: (t) => c.read(t),
|
55
|
+
state: P
|
56
|
+
},
|
57
|
+
options: {
|
58
|
+
limit: 15,
|
59
|
+
organization: d(e).params._id,
|
60
|
+
status: r.value
|
61
|
+
// user: user
|
62
|
+
}
|
63
|
+
}, {
|
64
|
+
default: b(({
|
65
|
+
items: t
|
66
|
+
}) => [
|
67
|
+
(i(!0), u(l, null, v(t, (s) => (i(), y(q, {
|
68
|
+
key: s._id,
|
69
|
+
product: s,
|
70
|
+
onClick: (A) => o.$router.push({
|
71
|
+
name: "Product Organization",
|
72
|
+
params: {
|
73
|
+
_id: d(e).params._id,
|
74
|
+
product: s._id
|
75
|
+
}
|
76
|
+
})
|
77
|
+
}, null, 8, ["product", "onClick"]))), 128))
|
78
|
+
]),
|
79
|
+
_: 1
|
80
|
+
}, 8, ["states", "store", "options"])
|
81
|
+
], 64));
|
82
|
+
}
|
83
|
+
};
|
84
|
+
export {
|
85
|
+
K as default
|
86
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("vue-router"),d=require("./Tab-2c1e4224.js"),a=require("./Feed-c5d4390a.js"),u=require("./auth-06d35b82.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader-21f016da.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./_plugin-vue_export-helper-f246444f.js");require("./EmptyState-d65bab5b.js");require("./CardBlogpost-cc208f93.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");require("./Chips-d47704e6.js");require("./PlaceholderUserpic-47f6f319.js");require("./Dropdown-31115457.js");require("./Popup-795f5c88.js");require("./IconCross-5bf93179.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./click-outside-0b0727d1.js");require("./memberships-393765d8.js");require("./IconEdit-c0469b45.js");const m={class:"pd-thin"},q={class:"mn-medium flex-v-center flex-nowrap flex"},p=e.createElementVNode("h2",{class:"mn-r-medium"},"Posts",-1),_={__name:"ProfileBlogposts",setup(f){const r=n.useRoute(),l=n.useRouter();let c=r.query.tab?r.query.tab:"posts";const t=e.ref(c);return r.query.tab=t.value,e.watch(t,s=>{l.replace({query:{...r.query,tab:s}})}),(s,o)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",q,[p,u.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:o[0]||(o[0]=i=>s.$router.push({name:"Create BlogPost"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),u.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createBlock(d._sfc_main,{key:0,selected:t.value,"onUpdate:selected":o[1]||(o[1]=i=>t.value=i),tabs:[{name:"My posts",value:"posts"},{name:"Drafts",value:"drafts"},{name:"Following",value:"following"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"])):e.createCommentVNode("",!0),t.value==="posts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:1,user:u.state.user._id,creator:e.unref(r).params._id},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="drafts"?(e.openBlock(),e.createBlock(a._sfc_main,{key:2,user:u.state.user._id,creator:e.unref(r).params._id,status:"draft"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="following"?(e.openBlock(),e.createBlock(a._sfc_main,{key:3,user:u.state.user._id,following:e.unref(r).params._id},null,8,["user","following"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import { ref as f, watch as g, openBlock as t, createElementBlock as n, createElementVNode as d, unref as o, createCommentVNode as s, createBlock as m } from "vue";
|
2
|
+
import { useRoute as v, useRouter as b } from "vue-router";
|
3
|
+
import { _ as y } from "./Tab-054b61f7.mjs";
|
4
|
+
import { _ as l } from "./Feed-6e96d3dd.mjs";
|
5
|
+
import { s as a } from "./auth-ec618cb3.mjs";
|
6
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
+
import "./Loader-cd422786.mjs";
|
8
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
9
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
10
|
+
import "./EmptyState-e404b05d.mjs";
|
11
|
+
import "./CardBlogpost-38016b80.mjs";
|
12
|
+
import "./index-a661083c.mjs";
|
13
|
+
import "./globals-96ba60e4.mjs";
|
14
|
+
import "vue-i18n";
|
15
|
+
import "./Chips-9d81b215.mjs";
|
16
|
+
import "./PlaceholderUserpic-14c6ea7e.mjs";
|
17
|
+
import "./Dropdown-cab3605b.mjs";
|
18
|
+
import "./Popup-0915427c.mjs";
|
19
|
+
import "./IconCross-84cb1292.mjs";
|
20
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
21
|
+
import "./Button-9e1a9284.mjs";
|
22
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
23
|
+
import "./Select-11ddabf5.mjs";
|
24
|
+
import "./reports-79cd9459.mjs";
|
25
|
+
import "./click-outside-6101836c.mjs";
|
26
|
+
import "./memberships-12210953.mjs";
|
27
|
+
import "./IconEdit-9edfd74d.mjs";
|
28
|
+
const h = { class: "pd-thin" }, k = { class: "mn-medium flex-v-center flex-nowrap flex" }, w = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, "Posts", -1), X = {
|
29
|
+
__name: "ProfileBlogposts",
|
30
|
+
setup(q) {
|
31
|
+
const e = v(), c = b();
|
32
|
+
let _ = e.query.tab ? e.query.tab : "posts";
|
33
|
+
const r = f(_);
|
34
|
+
return e.query.tab = r.value, g(r, (u) => {
|
35
|
+
c.replace({ query: { ...e.query, tab: u } });
|
36
|
+
}), (u, i) => (t(), n("div", h, [
|
37
|
+
d("header", k, [
|
38
|
+
w,
|
39
|
+
a.user._id === o(e).params._id ? (t(), n("button", {
|
40
|
+
key: 0,
|
41
|
+
onClick: i[0] || (i[0] = (p) => u.$router.push({
|
42
|
+
name: "Create BlogPost"
|
43
|
+
})),
|
44
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
45
|
+
}, " + ")) : s("", !0)
|
46
|
+
]),
|
47
|
+
a.user._id === o(e).params._id ? (t(), m(y, {
|
48
|
+
key: 0,
|
49
|
+
selected: r.value,
|
50
|
+
"onUpdate:selected": i[1] || (i[1] = (p) => r.value = p),
|
51
|
+
tabs: [
|
52
|
+
{ name: "My posts", value: "posts" },
|
53
|
+
{ name: "Drafts", value: "drafts" },
|
54
|
+
{ name: "Following", value: "following" }
|
55
|
+
],
|
56
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
57
|
+
}, null, 8, ["selected"])) : s("", !0),
|
58
|
+
r.value === "posts" ? (t(), m(l, {
|
59
|
+
key: 1,
|
60
|
+
user: a.user._id,
|
61
|
+
creator: o(e).params._id
|
62
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
63
|
+
r.value === "drafts" ? (t(), m(l, {
|
64
|
+
key: 2,
|
65
|
+
user: a.user._id,
|
66
|
+
creator: o(e).params._id,
|
67
|
+
status: "draft"
|
68
|
+
}, null, 8, ["user", "creator"])) : s("", !0),
|
69
|
+
r.value === "following" ? (t(), m(l, {
|
70
|
+
key: 3,
|
71
|
+
user: a.user._id,
|
72
|
+
following: o(e).params._id
|
73
|
+
}, null, 8, ["user", "following"])) : s("", !0)
|
74
|
+
]));
|
75
|
+
}
|
76
|
+
};
|
77
|
+
export {
|
78
|
+
X as default
|
79
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("vue-router"),d=require("./Tab-2c1e4224.js"),c=require("./Feed-22464fcd.js"),a=require("./auth-06d35b82.js");require("./Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./EmptyState-d65bab5b.js");require("./Chips-d47704e6.js");require("./PlaceholderUserpic-47f6f319.js");require("./_plugin-vue_export-helper-f246444f.js");require("./Dropdown-31115457.js");require("./Popup-795f5c88.js");require("vue-i18n");require("./IconCross-5bf93179.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button-7643c9aa.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Select-3ca5ab39.js");require("./reports-270f69df.js");require("./globals-928eb13c.js");require("./index-b41aac19.js");require("./click-outside-0b0727d1.js");require("./memberships-393765d8.js");require("./IconEdit-c0469b45.js");require("./SkeletonEvent-eb284de8.js");const q={class:"pd-thin"},m={class:"mn-medium flex-v-center flex-nowrap flex"},p=e.createElementVNode("h2",{class:"mn-r-medium"}," Events ",-1),_={__name:"ProfileEvents",setup(v){const r=o.useRoute(),i=o.useRouter();let l=r.query.tab?r.query.tab:"owner";const t=e.ref(l);return r.query.tab=t.value,e.watch(t,n=>{i.replace({query:{...r.query,tab:n}})}),(n,u)=>(e.openBlock(),e.createElementBlock("div",q,[e.createElementVNode("header",m,[p,a.state.user._id===e.unref(r).params._id?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u[0]||(u[0]=s=>e.unref(i).push({name:"Create Event"})),class:"radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")):e.createCommentVNode("",!0)]),e.createVNode(d._sfc_main,{selected:t.value,"onUpdate:selected":u[1]||(u[1]=s=>t.value=s),tabs:[{name:"My",value:"owner"},{name:"Participant",value:"participant"}],class:"mn-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),t.value==="owner"?(e.openBlock(),e.createBlock(c._sfc_main,{key:0,user:a.state.user._id,creator:e.unref(r).params._id,sortOrder:"asc"},null,8,["user","creator"])):e.createCommentVNode("",!0),t.value==="participant"?(e.openBlock(),e.createBlock(c._sfc_main,{key:1,user:a.state.user._id,participant:e.unref(r).params._id,sortOrder:"desc"},null,8,["user","participant"])):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { ref as f, watch as v, openBlock as o, createElementBlock as u, createElementVNode as d, unref as a, createCommentVNode as i, createVNode as b, createBlock as c } from "vue";
|
2
|
+
import { useRoute as y, useRouter as h } from "vue-router";
|
3
|
+
import { _ as k } from "./Tab-054b61f7.mjs";
|
4
|
+
import { _ as l } from "./Feed-7b80704d.mjs";
|
5
|
+
import { s } from "./auth-ec618cb3.mjs";
|
6
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
7
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
8
|
+
import "./EmptyState-e404b05d.mjs";
|
9
|
+
import "./Chips-9d81b215.mjs";
|
10
|
+
import "./PlaceholderUserpic-14c6ea7e.mjs";
|
11
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
12
|
+
import "./Dropdown-cab3605b.mjs";
|
13
|
+
import "./Popup-0915427c.mjs";
|
14
|
+
import "vue-i18n";
|
15
|
+
import "./IconCross-84cb1292.mjs";
|
16
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
17
|
+
import "./Button-9e1a9284.mjs";
|
18
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
19
|
+
import "./Select-11ddabf5.mjs";
|
20
|
+
import "./reports-79cd9459.mjs";
|
21
|
+
import "./globals-96ba60e4.mjs";
|
22
|
+
import "./index-a661083c.mjs";
|
23
|
+
import "./click-outside-6101836c.mjs";
|
24
|
+
import "./memberships-12210953.mjs";
|
25
|
+
import "./IconEdit-9edfd74d.mjs";
|
26
|
+
import "./SkeletonEvent-8690422d.mjs";
|
27
|
+
const g = { class: "pd-thin" }, w = { class: "mn-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ d("h2", { class: "mn-r-medium" }, " Events ", -1), X = {
|
28
|
+
__name: "ProfileEvents",
|
29
|
+
setup(x) {
|
30
|
+
const e = y(), m = h();
|
31
|
+
let _ = e.query.tab ? e.query.tab : "owner";
|
32
|
+
const r = f(_);
|
33
|
+
return e.query.tab = r.value, v(r, (n) => {
|
34
|
+
m.replace({ query: { ...e.query, tab: n } });
|
35
|
+
}), (n, t) => (o(), u("div", g, [
|
36
|
+
d("header", w, [
|
37
|
+
q,
|
38
|
+
s.user._id === a(e).params._id ? (o(), u("button", {
|
39
|
+
key: 0,
|
40
|
+
onClick: t[0] || (t[0] = (p) => a(m).push({ name: "Create Event" })),
|
41
|
+
class: "radius-100p i-big hover-scale-1 cursor-pointer t-white bg-second"
|
42
|
+
}, " + ")) : i("", !0)
|
43
|
+
]),
|
44
|
+
b(k, {
|
45
|
+
selected: r.value,
|
46
|
+
"onUpdate:selected": t[1] || (t[1] = (p) => r.value = p),
|
47
|
+
tabs: [
|
48
|
+
{ name: "My", value: "owner" },
|
49
|
+
{ name: "Participant", value: "participant" }
|
50
|
+
],
|
51
|
+
class: "mn-small o-hidden h5 radius-big bg-grey"
|
52
|
+
}, null, 8, ["selected"]),
|
53
|
+
r.value === "owner" ? (o(), c(l, {
|
54
|
+
key: 0,
|
55
|
+
user: s.user._id,
|
56
|
+
creator: a(e).params._id,
|
57
|
+
sortOrder: "asc"
|
58
|
+
}, null, 8, ["user", "creator"])) : i("", !0),
|
59
|
+
r.value === "participant" ? (o(), c(l, {
|
60
|
+
key: 1,
|
61
|
+
user: s.user._id,
|
62
|
+
participant: a(e).params._id,
|
63
|
+
sortOrder: "desc"
|
64
|
+
}, null, 8, ["user", "participant"])) : i("", !0)
|
65
|
+
]));
|
66
|
+
}
|
67
|
+
};
|
68
|
+
export {
|
69
|
+
X as default
|
70
|
+
};
|