@ozdao/prometheus-framework 0.1.36 → 0.1.37
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 +214 -258
- package/dist/users.server.js +1 -1
- package/dist/users.server.mjs +1 -1
- package/package.json +2 -119
- 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,234 @@
|
|
1
|
+
import { openBlock as n, createElementBlock as i, createCommentVNode as a, createElementVNode as e, createTextVNode as h, toDisplayString as o, ref as p, computed as d, unref as m, createVNode as y, Fragment as f, renderList as x, createBlock as v, withModifiers as z } from "vue";
|
2
|
+
import { useRouter as b } from "vue-router";
|
3
|
+
import { _ as $ } from "./ButtonToggleMembership-3bb9139e.mjs";
|
4
|
+
const _ = { class: "flex-stretch flex-nojustify flex-nowrap flex shop-cart-item" }, k = ["src"], L = {
|
5
|
+
key: 1,
|
6
|
+
width: "524",
|
7
|
+
height: "345",
|
8
|
+
viewBox: "0 0 524 345",
|
9
|
+
fill: "none",
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
11
|
+
class: "i-extra"
|
12
|
+
}, S = /* @__PURE__ */ e("rect", {
|
13
|
+
width: "524",
|
14
|
+
height: "345",
|
15
|
+
fill: "white"
|
16
|
+
}, null, -1), V = /* @__PURE__ */ e("rect", {
|
17
|
+
width: "524",
|
18
|
+
height: "345",
|
19
|
+
fill: "white"
|
20
|
+
}, null, -1), M = /* @__PURE__ */ e("circle", {
|
21
|
+
cx: "262",
|
22
|
+
cy: "172",
|
23
|
+
r: "56",
|
24
|
+
fill: "#00ff88",
|
25
|
+
"fill-opacity": "0.1"
|
26
|
+
}, null, -1), T = /* @__PURE__ */ e("path", {
|
27
|
+
fill: "#00ff88",
|
28
|
+
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"
|
29
|
+
}, null, -1), O = [
|
30
|
+
S,
|
31
|
+
V,
|
32
|
+
M,
|
33
|
+
T
|
34
|
+
], E = { class: "text-left" }, F = { class: "name" }, B = {
|
35
|
+
key: 0,
|
36
|
+
class: "t-transp"
|
37
|
+
}, R = {
|
38
|
+
key: 1,
|
39
|
+
class: "t-transp"
|
40
|
+
}, q = {
|
41
|
+
key: 2,
|
42
|
+
class: "t-transp"
|
43
|
+
}, H = { class: "t-main t-demi price mn-small" }, Z = { key: 0 }, N = {
|
44
|
+
key: 0,
|
45
|
+
class: "flex-nojustify flex"
|
46
|
+
}, U = { class: "flex-nowrap flex" }, j = /* @__PURE__ */ e("svg", {
|
47
|
+
fill: "none",
|
48
|
+
height: "20",
|
49
|
+
viewBox: "0 0 20 20",
|
50
|
+
width: "20",
|
51
|
+
xmlns: "http://www.w3.org/2000/svg"
|
52
|
+
}, [
|
53
|
+
/* @__PURE__ */ e("path", {
|
54
|
+
"clip-rule": "evenodd",
|
55
|
+
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",
|
56
|
+
fill: "#8a8a8a",
|
57
|
+
"fill-rule": "evenodd"
|
58
|
+
})
|
59
|
+
], -1), I = [
|
60
|
+
j
|
61
|
+
], D = {
|
62
|
+
__name: "CardOrderItem",
|
63
|
+
props: {
|
64
|
+
product: Object,
|
65
|
+
editable: String,
|
66
|
+
increase: Function,
|
67
|
+
decrease: Function,
|
68
|
+
remove: Function
|
69
|
+
},
|
70
|
+
setup(t) {
|
71
|
+
return b(), (r, s) => (n(), i("div", _, [
|
72
|
+
t.product.images[0] ? (n(), i("img", {
|
73
|
+
key: 0,
|
74
|
+
class: "bg-grey aspect-1x1",
|
75
|
+
src: (r.FILE_SERVER_URL || "") + t.product.images[0]
|
76
|
+
}, null, 8, k)) : a("", !0),
|
77
|
+
t.product.images[0] ? a("", !0) : (n(), i("svg", L, O)),
|
78
|
+
e("div", E, [
|
79
|
+
e("p", F, [
|
80
|
+
h(o(t.product.name) + " ", 1),
|
81
|
+
t.product.size ? (n(), i("span", B, ", " + o(t.product.size), 1)) : a("", !0),
|
82
|
+
typeof t.product.color == "string" && t.product.size ? (n(), i("span", R, ", ")) : a("", !0),
|
83
|
+
typeof t.product.color == "string" ? (n(), i("span", q, o(t.product.color), 1)) : a("", !0)
|
84
|
+
]),
|
85
|
+
e("p", H, [
|
86
|
+
t.editable ? (n(), i("span", Z, o(t.product.quantity) + " x ", 1)) : a("", !0),
|
87
|
+
h(o(t.product.price) + " " + o(r.returnCurrency()), 1)
|
88
|
+
]),
|
89
|
+
t.editable ? (n(), i("div", N, [
|
90
|
+
e("div", U, [
|
91
|
+
e("button", {
|
92
|
+
onClick: s[0] || (s[0] = (c) => t.decrease(t.product)),
|
93
|
+
class: "mn-r-thin bg-grey button-square button"
|
94
|
+
}, "-"),
|
95
|
+
e("button", {
|
96
|
+
onClick: s[1] || (s[1] = (c) => t.increase(t.product)),
|
97
|
+
class: "mn-r-thin bg-grey button-square button"
|
98
|
+
}, "+")
|
99
|
+
]),
|
100
|
+
e("button", {
|
101
|
+
onClick: s[2] || (s[2] = (c) => t.remove(t.product)),
|
102
|
+
class: "hover_br-transp hover_br-l-dark bg-transp button-square button"
|
103
|
+
}, I)
|
104
|
+
])) : a("", !0)
|
105
|
+
])
|
106
|
+
]));
|
107
|
+
}
|
108
|
+
}, P = {
|
109
|
+
key: 0,
|
110
|
+
class: "cursor-pointer t-second"
|
111
|
+
}, A = {
|
112
|
+
__name: "Text",
|
113
|
+
props: {
|
114
|
+
maxLen: { type: Number, required: !0 },
|
115
|
+
text: { type: String, required: !0 },
|
116
|
+
showToggleText: { type: Boolean, default: !1 }
|
117
|
+
},
|
118
|
+
setup(t) {
|
119
|
+
const r = t, s = p(!1), c = d(() => r.text.length > r.maxLen ? r.text.slice(0, r.maxLen) + "..." : r.text), u = d(() => r.text), l = () => {
|
120
|
+
s.value = !s.value;
|
121
|
+
}, g = d(() => s.value ? u.value : c.value), w = d(() => r.text.length > r.maxLen), C = d(() => s.value ? "Hide" : "Show more");
|
122
|
+
return (gt, ft) => (n(), i("span", {
|
123
|
+
onClick: l,
|
124
|
+
class: ""
|
125
|
+
}, [
|
126
|
+
h(o(m(g)) + " ", 1),
|
127
|
+
m(w) && t.showToggleText ? (n(), i("span", P, o(m(C)), 1)) : a("", !0)
|
128
|
+
]));
|
129
|
+
}
|
130
|
+
}, G = { class: "pd-medium flex-v-center flex-nowrap flex" }, J = ["src"], K = {
|
131
|
+
key: 1,
|
132
|
+
class: "h-4r w-4r radius-extra",
|
133
|
+
width: "42",
|
134
|
+
height: "42",
|
135
|
+
viewBox: "0 0 42 42",
|
136
|
+
fill: "none",
|
137
|
+
xmlns: "http://www.w3.org/2000/svg"
|
138
|
+
}, Q = /* @__PURE__ */ e("circle", {
|
139
|
+
fill: "rgb(var(--main))",
|
140
|
+
cx: "21",
|
141
|
+
cy: "21",
|
142
|
+
r: "21"
|
143
|
+
}, null, -1), W = /* @__PURE__ */ e("path", {
|
144
|
+
fill: "#242424",
|
145
|
+
"fill-opacity": "0.1",
|
146
|
+
"fill-rule": "evenodd",
|
147
|
+
"clip-rule": "evenodd",
|
148
|
+
d: "M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"
|
149
|
+
}, null, -1), X = [
|
150
|
+
Q,
|
151
|
+
W
|
152
|
+
], Y = { class: "flex-child-1 flex-child mn-l-small w-100" }, tt = { class: "h3 mn-r-semi mn-thin" }, et = {
|
153
|
+
key: 0,
|
154
|
+
class: "w-max star-container flex-v-center flex"
|
155
|
+
}, nt = { class: "mn-r-thin pd-r-thin pd-l-thin pd-micro radius-small t-semi uppercase bg-main p-small" }, it = ["src"], st = { class: "p-small t-semi mn-r-thin" }, ot = { class: "p-small" }, rt = { class: "mn-thin" }, at = {
|
156
|
+
key: 0,
|
157
|
+
class: "pd-medium"
|
158
|
+
}, lt = { class: "mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium" }, ct = { class: "t-black p-medium t-semi" }, dt = /* @__PURE__ */ e("span", { class: "mn-r-small" }, "30-60min", -1), ut = /* @__PURE__ */ e("span", { class: "mn-r-auto" }, "$50 min", -1), mt = { class: "d-block o-scroll flex-nowrap flex" }, ht = /* @__PURE__ */ e("button", { class: "flex-center flex-nowrap flex shop-cart-item pd-thin radius-medium w-15r bg-main button" }, "View menu", -1), wt = {
|
159
|
+
__name: "CardOrganization",
|
160
|
+
props: {
|
161
|
+
user: String,
|
162
|
+
organization: Object
|
163
|
+
},
|
164
|
+
emits: ["updateMembership"],
|
165
|
+
setup(t, { emit: r }) {
|
166
|
+
return b(), (s, c) => {
|
167
|
+
var u;
|
168
|
+
return n(), i("div", {
|
169
|
+
class: "bg-grey radius-big o-hidden",
|
170
|
+
onClick: c[1] || (c[1] = (l) => s.$router.push({ name: "Organization", params: { _id: t.organization._id } }))
|
171
|
+
}, [
|
172
|
+
e("div", G, [
|
173
|
+
t.organization.profile.photo && t.organization.profile.photo.length > 0 ? (n(), i("img", {
|
174
|
+
key: 0,
|
175
|
+
src: (s.FILE_SERVER_URL || "") + t.organization.profile.photo,
|
176
|
+
class: "h-4r w-4r radius-extra bg-white"
|
177
|
+
}, null, 8, J)) : (n(), i("svg", K, X)),
|
178
|
+
e("div", Y, [
|
179
|
+
e("p", tt, [
|
180
|
+
y(A, {
|
181
|
+
text: t.organization.profile.name ? t.organization.profile.name : "",
|
182
|
+
maxLen: 16
|
183
|
+
}, null, 8, ["text"])
|
184
|
+
]),
|
185
|
+
t.organization.ratingS ? (n(), i("div", et, [
|
186
|
+
e("span", nt, o(t.organization.types[0]), 1),
|
187
|
+
(n(), i(f, null, x(5, (l) => e("img", {
|
188
|
+
class: "i-small mn-r-thin",
|
189
|
+
src: l <= t.organization.rating.median ? "/icons/star.svg" : "/icons/star-stroke.svg"
|
190
|
+
}, null, 8, it)), 64)),
|
191
|
+
e("span", st, o(t.organization.rating.median), 1),
|
192
|
+
e("span", ot, "(" + o(t.organization.rating.amount) + ")", 1)
|
193
|
+
])) : a("", !0),
|
194
|
+
e("div", null, [
|
195
|
+
e("p", rt, o(t.organization.numberOfSubscribers) + " followers", 1),
|
196
|
+
(u = t.user) != null && u._id && t.organization.owner !== t.user._id ? (n(), v($, {
|
197
|
+
key: 0,
|
198
|
+
user: t.user._id,
|
199
|
+
type: "organization",
|
200
|
+
role: "subscriber",
|
201
|
+
target: t.organization._id,
|
202
|
+
status: t.organization.isSubscriber,
|
203
|
+
text: { create: "Follow", remove: "Unfollow" },
|
204
|
+
onUpdateMembership: c[0] || (c[0] = (l) => s.handleMembershipUpdate(l, "isSubscriber", "numberOfSubscribers")),
|
205
|
+
class: "w-min"
|
206
|
+
}, null, 8, ["user", "target", "status"])) : a("", !0)
|
207
|
+
])
|
208
|
+
])
|
209
|
+
]),
|
210
|
+
t.organization.products.length > 0 ? (n(), i("div", at, [
|
211
|
+
e("div", lt, [
|
212
|
+
e("p", ct, o(t.organization.products.length) + " items: ", 1),
|
213
|
+
dt,
|
214
|
+
ut
|
215
|
+
]),
|
216
|
+
e("div", mt, [
|
217
|
+
(n(!0), i(f, null, x(t.organization.products, (l) => (n(), v(D, {
|
218
|
+
onClick: z((g) => s.$router.push({ name: "Product Organization", params: { _id: t.organization._id, product: l._id } }), ["stop"]),
|
219
|
+
key: l._id,
|
220
|
+
editable: !1,
|
221
|
+
product: l,
|
222
|
+
class: "pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"
|
223
|
+
}, null, 8, ["onClick", "product"]))), 128)),
|
224
|
+
ht
|
225
|
+
])
|
226
|
+
])) : a("", !0)
|
227
|
+
]);
|
228
|
+
};
|
229
|
+
}
|
230
|
+
};
|
231
|
+
export {
|
232
|
+
wt as _,
|
233
|
+
A as a
|
234
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./vuex.esm-bundler-685cf29f.js"),s=require("vue-i18n");const a={key:0,class:"thc"},d={class:"t-bold t-white"},u=e.createElementVNode("p",{class:"t-white h6"},"THC",-1),m={key:0,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h=e.createElementVNode("path",{fill:"#FF0000",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),C=[h],w={key:1,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g=e.createElementVNode("path",{fill:"#FF0099",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),f=[g],k={key:2,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v=e.createElementVNode("path",{fill:"#EB00FF",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),p=[v],V={key:3,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_=e.createElementVNode("path",{fill:"#00FF29",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),B=[_],E={__name:"THC",props:{product:Object},setup(t){return(o,n)=>t.product.information[1]?(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("p",d,e.toDisplayString(t.product.information[1].value)+" %",1),u,Number(t.product.information[1].value)>=18?(e.openBlock(),e.createElementBlock("svg",m,C)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=18&&Number(t.product.information[1].value)>=14?(e.openBlock(),e.createElementBlock("svg",w,f)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=14&&Number(t.product.information[1].value)>=10?(e.openBlock(),e.createElementBlock("svg",k,p)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=10?(e.openBlock(),e.createElementBlock("svg",V,B)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}};const N={class:"price-tag radius-small"},y={key:0,class:"t-transp t-main p-medium line-through price"},i={__name:"Price",props:{product:Object,size:String},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("p",{class:e.normalizeClass({"t-main":t.product.sale,h4:!t.size,"h5 t-semi pd-thin":t.size==="small","h3 t-semi pd-small":t.size==="big"})},e.toDisplayString(t.product.price)+" "+e.toDisplayString(o.returnCurrency()),3),t.product.sale?(e.openBlock(),e.createElementBlock("p",y,e.toDisplayString(t.product.price/100*(100+t.product.sale))+" "+e.toDisplayString(o.returnCurrency()),1)):e.createCommentVNode("",!0)]))}};const L=["src"],b={key:1,class:"h-100 w-100",style:{"object-fit":"cover"},width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),x=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),A=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),z=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),S=[$,x,A,z],F={class:"pd-medium t-left product-card-content"},D={class:"mn-thin h4"},M={key:1,class:"mn-small t-transp p-small"},Z=e.createElementVNode("div",null,null,-1),H={__name:"CardProduct",props:["product"],setup(t){const o=t,n=r.useStore();return s.useI18n(),e.computed(()=>n.state.favorites.items.filter(function(c,l){if(c._id===o.product._id)return!0})),(c,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big product",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 h-100 square",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(c.FILE_SERVER_URL||"")+t.product.images[0],class:"w-100 h-100"},null,8,L)):(e.openBlock(),e.createElementBlock("svg",b,S)),t.product.information.length>0?(e.openBlock(),e.createBlock(E,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",F,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",D,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",M,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(i,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])]),Z],2))}};exports._sfc_main=H;exports._sfc_main$1=i;
|
@@ -0,0 +1,193 @@
|
|
1
|
+
import { openBlock as i, createElementBlock as o, createElementVNode as e, toDisplayString as c, createCommentVNode as n, normalizeClass as r, computed as a, createBlock as h, createVNode as m } from "vue";
|
2
|
+
import { u as C } from "./vuex.esm-bundler-57d8b6ba.mjs";
|
3
|
+
import { useI18n as w } from "vue-i18n";
|
4
|
+
const f = {
|
5
|
+
key: 0,
|
6
|
+
class: "thc"
|
7
|
+
}, g = { class: "t-bold t-white" }, v = /* @__PURE__ */ e("p", { class: "t-white h6" }, "THC", -1), _ = {
|
8
|
+
key: 0,
|
9
|
+
width: "60",
|
10
|
+
height: "66",
|
11
|
+
viewBox: "0 0 60 66",
|
12
|
+
fill: "none",
|
13
|
+
xmlns: "http://www.w3.org/2000/svg"
|
14
|
+
}, L = /* @__PURE__ */ e("path", {
|
15
|
+
fill: "#FF0000",
|
16
|
+
stroke: "white",
|
17
|
+
"stroke-width": "3",
|
18
|
+
d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
|
19
|
+
}, null, -1), p = [
|
20
|
+
L
|
21
|
+
], k = {
|
22
|
+
key: 1,
|
23
|
+
width: "60",
|
24
|
+
height: "66",
|
25
|
+
viewBox: "0 0 60 66",
|
26
|
+
fill: "none",
|
27
|
+
xmlns: "http://www.w3.org/2000/svg"
|
28
|
+
}, y = /* @__PURE__ */ e("path", {
|
29
|
+
fill: "#FF0099",
|
30
|
+
stroke: "white",
|
31
|
+
"stroke-width": "3",
|
32
|
+
d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
|
33
|
+
}, null, -1), b = [
|
34
|
+
y
|
35
|
+
], V = {
|
36
|
+
key: 2,
|
37
|
+
width: "60",
|
38
|
+
height: "66",
|
39
|
+
viewBox: "0 0 60 66",
|
40
|
+
fill: "none",
|
41
|
+
xmlns: "http://www.w3.org/2000/svg"
|
42
|
+
}, x = /* @__PURE__ */ e("path", {
|
43
|
+
fill: "#EB00FF",
|
44
|
+
stroke: "white",
|
45
|
+
"stroke-width": "3",
|
46
|
+
d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
|
47
|
+
}, null, -1), A = [
|
48
|
+
x
|
49
|
+
], $ = {
|
50
|
+
key: 3,
|
51
|
+
width: "60",
|
52
|
+
height: "66",
|
53
|
+
viewBox: "0 0 60 66",
|
54
|
+
fill: "none",
|
55
|
+
xmlns: "http://www.w3.org/2000/svg"
|
56
|
+
}, B = /* @__PURE__ */ e("path", {
|
57
|
+
fill: "#00FF29",
|
58
|
+
stroke: "white",
|
59
|
+
"stroke-width": "3",
|
60
|
+
d: "M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"
|
61
|
+
}, null, -1), F = [
|
62
|
+
B
|
63
|
+
], N = {
|
64
|
+
__name: "THC",
|
65
|
+
props: {
|
66
|
+
product: Object
|
67
|
+
},
|
68
|
+
setup(t) {
|
69
|
+
return (s, l) => t.product.information[1] ? (i(), o("div", f, [
|
70
|
+
e("p", g, c(t.product.information[1].value) + " %", 1),
|
71
|
+
v,
|
72
|
+
Number(t.product.information[1].value) >= 18 ? (i(), o("svg", _, p)) : n("", !0),
|
73
|
+
Number(t.product.information[1].value) <= 18 && Number(t.product.information[1].value) >= 14 ? (i(), o("svg", k, b)) : n("", !0),
|
74
|
+
Number(t.product.information[1].value) <= 14 && Number(t.product.information[1].value) >= 10 ? (i(), o("svg", V, A)) : n("", !0),
|
75
|
+
Number(t.product.information[1].value) <= 10 ? (i(), o("svg", $, F)) : n("", !0)
|
76
|
+
])) : n("", !0);
|
77
|
+
}
|
78
|
+
};
|
79
|
+
const M = { class: "price-tag radius-small" }, Z = {
|
80
|
+
key: 0,
|
81
|
+
class: "t-transp t-main p-medium line-through price"
|
82
|
+
}, z = {
|
83
|
+
__name: "Price",
|
84
|
+
props: {
|
85
|
+
product: Object,
|
86
|
+
size: String
|
87
|
+
},
|
88
|
+
setup(t) {
|
89
|
+
return (s, l) => (i(), o("div", M, [
|
90
|
+
e("p", {
|
91
|
+
class: r(
|
92
|
+
{
|
93
|
+
"t-main": t.product.sale,
|
94
|
+
h4: !t.size,
|
95
|
+
"h5 t-semi pd-thin": t.size === "small",
|
96
|
+
"h3 t-semi pd-small": t.size === "big"
|
97
|
+
}
|
98
|
+
)
|
99
|
+
}, c(t.product.price) + " " + c(s.returnCurrency()), 3),
|
100
|
+
t.product.sale ? (i(), o("p", Z, c(t.product.price / 100 * (100 + t.product.sale)) + " " + c(s.returnCurrency()), 1)) : n("", !0)
|
101
|
+
]));
|
102
|
+
}
|
103
|
+
};
|
104
|
+
const H = ["src"], E = {
|
105
|
+
key: 1,
|
106
|
+
class: "h-100 w-100",
|
107
|
+
style: { "object-fit": "cover" },
|
108
|
+
width: "524",
|
109
|
+
height: "345",
|
110
|
+
viewBox: "0 0 524 345",
|
111
|
+
fill: "none",
|
112
|
+
xmlns: "http://www.w3.org/2000/svg"
|
113
|
+
}, P = /* @__PURE__ */ e("rect", {
|
114
|
+
width: "524",
|
115
|
+
height: "345",
|
116
|
+
fill: "white"
|
117
|
+
}, null, -1), S = /* @__PURE__ */ e("rect", {
|
118
|
+
width: "524",
|
119
|
+
height: "345",
|
120
|
+
fill: "white"
|
121
|
+
}, null, -1), j = /* @__PURE__ */ e("circle", {
|
122
|
+
cx: "262",
|
123
|
+
cy: "172",
|
124
|
+
r: "56",
|
125
|
+
fill: "#00ff88",
|
126
|
+
"fill-opacity": "0.1"
|
127
|
+
}, null, -1), R = /* @__PURE__ */ e("path", {
|
128
|
+
fill: "#00ff88",
|
129
|
+
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"
|
130
|
+
}, null, -1), T = [
|
131
|
+
P,
|
132
|
+
S,
|
133
|
+
j,
|
134
|
+
R
|
135
|
+
], I = { class: "pd-medium t-left product-card-content" }, O = { class: "mn-thin h4" }, q = {
|
136
|
+
key: 1,
|
137
|
+
class: "mn-small t-transp p-small"
|
138
|
+
}, D = /* @__PURE__ */ e("div", null, null, -1), K = {
|
139
|
+
__name: "CardProduct",
|
140
|
+
props: ["product"],
|
141
|
+
setup(t) {
|
142
|
+
const s = t, l = C();
|
143
|
+
return w(), a(() => l.state.favorites.items.filter(function(d, u) {
|
144
|
+
if (d._id === s.product._id)
|
145
|
+
return !0;
|
146
|
+
})), (d, u) => (i(), o("div", {
|
147
|
+
class: r([
|
148
|
+
"radius-big product",
|
149
|
+
t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black t-white" : "bg-white"
|
150
|
+
])
|
151
|
+
}, [
|
152
|
+
e("div", {
|
153
|
+
class: r([
|
154
|
+
"o-hidden w-100 h-100 square",
|
155
|
+
t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black" : "bg-white"
|
156
|
+
])
|
157
|
+
}, [
|
158
|
+
t.product.images[0] ? (i(), o("img", {
|
159
|
+
key: 0,
|
160
|
+
src: (d.FILE_SERVER_URL || "") + t.product.images[0],
|
161
|
+
class: "w-100 h-100"
|
162
|
+
}, null, 8, H)) : (i(), o("svg", E, T)),
|
163
|
+
t.product.information.length > 0 ? (i(), h(N, {
|
164
|
+
key: 2,
|
165
|
+
product: t.product
|
166
|
+
}, null, 8, ["product"])) : n("", !0)
|
167
|
+
], 2),
|
168
|
+
e("div", I, [
|
169
|
+
t.product.information.length > 0 ? (i(), o("p", {
|
170
|
+
key: 0,
|
171
|
+
class: r([
|
172
|
+
"t-semi h6",
|
173
|
+
t.product.information[2] && t.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
|
174
|
+
])
|
175
|
+
}, c(t.product.information[0].value), 3)) : n("", !0),
|
176
|
+
e("p", O, c(t.product.name), 1),
|
177
|
+
t.product.description && !t.product.localization ? (i(), o("p", q, c(t.product.description.substring(0, 99)) + "... ", 1)) : n("", !0),
|
178
|
+
m(z, {
|
179
|
+
product: t.product,
|
180
|
+
size: "small",
|
181
|
+
class: r(
|
182
|
+
t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-third t-white" : ""
|
183
|
+
)
|
184
|
+
}, null, 8, ["product", "class"])
|
185
|
+
]),
|
186
|
+
D
|
187
|
+
], 2));
|
188
|
+
}
|
189
|
+
};
|
190
|
+
export {
|
191
|
+
K as _,
|
192
|
+
z as a
|
193
|
+
};
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { openBlock as d, createElementBlock as c, createElementVNode as t, toDisplayString as s, createCommentVNode as m, normalizeClass as o } from "vue";
|
2
|
+
import { _ as y } from "./_plugin-vue_export-helper-dad06003.mjs";
|
3
|
+
const h = { class: "flex-v-center flex-nowrap flex" }, f = {
|
4
|
+
key: 0,
|
5
|
+
class: "mn-r-auto t-transp mn-r-small"
|
6
|
+
}, v = ["name", "value", "checked"], x = {
|
7
|
+
__name: "Checkbox",
|
8
|
+
props: {
|
9
|
+
label: String,
|
10
|
+
name: String,
|
11
|
+
value: String,
|
12
|
+
radio: {
|
13
|
+
type: [Array, Boolean, Object],
|
14
|
+
default: () => []
|
15
|
+
}
|
16
|
+
},
|
17
|
+
emits: ["update:radio"],
|
18
|
+
setup(e, { emit: n }) {
|
19
|
+
const a = e, u = (r) => {
|
20
|
+
if (Array.isArray(a.radio)) {
|
21
|
+
let i = [...a.radio];
|
22
|
+
if (r.target.checked)
|
23
|
+
i.push(a.value);
|
24
|
+
else {
|
25
|
+
const l = i.indexOf(a.value);
|
26
|
+
l !== -1 && i.splice(l, 1);
|
27
|
+
}
|
28
|
+
n("update:radio", i);
|
29
|
+
} else
|
30
|
+
typeof a.radio == "boolean" && n("update:radio", r.target.checked);
|
31
|
+
};
|
32
|
+
return (r, i) => (d(), c("label", h, [
|
33
|
+
e.label ? (d(), c("div", f, [
|
34
|
+
t("span", null, s(e.label), 1)
|
35
|
+
])) : m("", !0),
|
36
|
+
t("input", {
|
37
|
+
onChange: u,
|
38
|
+
class: "round radiobutton",
|
39
|
+
type: "checkbox",
|
40
|
+
name: e.name,
|
41
|
+
value: e.value,
|
42
|
+
checked: Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
43
|
+
}, null, 40, v),
|
44
|
+
t("div", {
|
45
|
+
class: o(["transition-elastic pd-thin h-2r w-4r radius-extra", {
|
46
|
+
"bg-grey": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
|
47
|
+
"bg-main": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
48
|
+
}])
|
49
|
+
}, [
|
50
|
+
t("div", {
|
51
|
+
class: o(["transition-linear w-1r h-1r radius-extra h-100 bg-white", {
|
52
|
+
"mn-r-auto": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
|
53
|
+
"mn-l-auto": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
|
54
|
+
}])
|
55
|
+
}, null, 2)
|
56
|
+
], 2)
|
57
|
+
]));
|
58
|
+
}
|
59
|
+
}, g = /* @__PURE__ */ y(x, [["__scopeId", "data-v-f641f618"]]);
|
60
|
+
export {
|
61
|
+
g as C
|
62
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const a=require("vue"),c=require("./_plugin-vue_export-helper-f246444f.js");const o={class:"flex-v-center flex-nowrap flex"},u={key:0,class:"mn-r-auto t-transp mn-r-small"},s=["name","value","checked"],m={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]}},emits:["update:radio"],setup(e,{emit:n}){const t=e,d=i=>{if(Array.isArray(t.radio)){let r=[...t.radio];if(i.target.checked)r.push(t.value);else{const l=r.indexOf(t.value);l!==-1&&r.splice(l,1)}n("update:radio",r)}else typeof t.radio=="boolean"&&n("update:radio",i.target.checked)};return(i,r)=>(a.openBlock(),a.createElementBlock("label",o,[e.label?(a.openBlock(),a.createElementBlock("div",u,[a.createElementVNode("span",null,a.toDisplayString(e.label),1)])):a.createCommentVNode("",!0),a.createElementVNode("input",{onChange:d,class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:Array.isArray(e.radio)?e.radio.includes(e.value):e.radio},null,40,s),a.createElementVNode("div",{class:a.normalizeClass(["transition-elastic pd-thin h-2r w-4r radius-extra",{"bg-grey":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"bg-main":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},[a.createElementVNode("div",{class:a.normalizeClass(["transition-linear w-1r h-1r radius-extra h-100 bg-white",{"mn-r-auto":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"mn-l-auto":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},null,2)],2)]))}},y=c._export_sfc(m,[["__scopeId","data-v-f641f618"]]);exports.Checkbox=y;
|