@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
package/dist/community.client.js
CHANGED
@@ -1,68 +1,83 @@
|
|
1
|
-
import { resolveComponent as
|
2
|
-
import { useRoute as
|
3
|
-
import { S as
|
4
|
-
import { s as M, r as W, c as
|
5
|
-
import {
|
6
|
-
import { s as w } from "./auth-
|
7
|
-
import { _ as
|
8
|
-
import {
|
9
|
-
import { _ as
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import { _ as
|
13
|
-
import {
|
14
|
-
import
|
15
|
-
import {
|
1
|
+
import { resolveComponent as X, openBlock as i, createElementBlock as m, createElementVNode as a, createVNode as g, normalizeClass as B, unref as u, createCommentVNode as h, withCtx as k, Transition as J, createBlock as I, resolveDynamicComponent as G, ref as _, onMounted as F, computed as L, createTextVNode as T, TransitionGroup as A, Fragment as E, renderList as H, mergeProps as Y, watch as Z, toDisplayString as z, watchEffect as ee, isRef as Q, pushScopeId as te, popScopeId as se } from "vue";
|
2
|
+
import { useRoute as O, useRouter as N } from "vue-router";
|
3
|
+
import { S as oe } from "./Select-11ddabf5.mjs";
|
4
|
+
import { s as M, r as W, c as ae, u as V, b as q, a as ne, _ as le } from "./CardBlogpost-38016b80.mjs";
|
5
|
+
import { d as ps, e as ms } from "./CardBlogpost-38016b80.mjs";
|
6
|
+
import { s as w } from "./auth-ec618cb3.mjs";
|
7
|
+
import { _ as re, a as ie, b as ue, c as ce } from "./Image-245c003d.mjs";
|
8
|
+
import { _ as pe } from "./Popup-0915427c.mjs";
|
9
|
+
import { _ as me } from "./BlockTags-ee310572.mjs";
|
10
|
+
import { C as de } from "./Checkbox-5dbe7b23.mjs";
|
11
|
+
import { S as ge } from "./SelectMulti-58704d69.mjs";
|
12
|
+
import { _ as _e } from "./Button-9e1a9284.mjs";
|
13
|
+
import { a as fe } from "./organizations-6ed907e3.mjs";
|
14
|
+
import "./Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
15
|
+
import { _ as he } from "./EmptyState-e404b05d.mjs";
|
16
|
+
import { S as ve } from "./SkeletonBlogpost-e0621af7.mjs";
|
17
|
+
import { _ as be } from "./Publics-660e851c.mjs";
|
18
|
+
import { useI18n as ye } from "vue-i18n";
|
16
19
|
import "./globals-96ba60e4.mjs";
|
17
|
-
import
|
20
|
+
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
21
|
+
import { _ as K } from "./Feed-6e96d3dd.mjs";
|
22
|
+
import { F as we } from "./Field-e5ad88d3.mjs";
|
23
|
+
import { _ as xe } from "./_plugin-vue_export-helper-dad06003.mjs";
|
24
|
+
import { r as gs } from "./Chips-9d81b215.mjs";
|
18
25
|
import "./index-a661083c.mjs";
|
26
|
+
import "./IconEdit-9edfd74d.mjs";
|
19
27
|
import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
|
28
|
+
import "./IconCross-84cb1292.mjs";
|
29
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
30
|
+
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
31
|
+
import "./CardOrganization-e920be73.mjs";
|
32
|
+
import "./ButtonToggleMembership-3bb9139e.mjs";
|
33
|
+
import "./memberships-12210953.mjs";
|
34
|
+
import "./Loader-cd422786.mjs";
|
35
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
36
|
+
import "./PlaceholderUserpic-14c6ea7e.mjs";
|
37
|
+
import "./Dropdown-cab3605b.mjs";
|
20
38
|
import "./reports-79cd9459.mjs";
|
21
39
|
import "./click-outside-6101836c.mjs";
|
22
|
-
|
23
|
-
import "./CardOrganization-26714a5e.mjs";
|
24
|
-
import "./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs";
|
25
|
-
const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, Pe = { class: "flex-v-center flex-nowrap flex t-left" }, Ce = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), Te = { class: "w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex" }, Se = { class: "" }, Be = {
|
40
|
+
const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, Pe = { class: "flex-v-center flex-nowrap flex t-left" }, Ce = /* @__PURE__ */ a("span", { class: "" }, "Topics for ", -1), Te = { class: "w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex" }, Se = { class: "" }, Be = {
|
26
41
|
__name: "Community",
|
27
42
|
setup(p) {
|
28
|
-
const n =
|
29
|
-
return (e,
|
30
|
-
const d =
|
43
|
+
const n = O(), s = N();
|
44
|
+
return (e, o) => {
|
45
|
+
const d = X("router-view");
|
31
46
|
return i(), m("div", $e, [
|
32
|
-
|
33
|
-
|
47
|
+
a("header", ke, [
|
48
|
+
a("h2", Pe, [
|
34
49
|
Ce,
|
35
|
-
g(
|
50
|
+
g(oe, {
|
36
51
|
options: ["today", "week", "month", "year"],
|
37
52
|
select: M.filter.period,
|
38
|
-
"onUpdate:select":
|
53
|
+
"onUpdate:select": o[0] || (o[0] = (t) => M.filter.period = t),
|
39
54
|
placeholder: "Select type",
|
40
55
|
class: "w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"
|
41
56
|
}, null, 8, ["select"])
|
42
57
|
])
|
43
58
|
]),
|
44
|
-
|
45
|
-
|
46
|
-
class: B([{ "t-white bg-black":
|
47
|
-
onClick:
|
59
|
+
a("ul", Te, [
|
60
|
+
a("li", {
|
61
|
+
class: B([{ "t-white bg-black": u(n).params.category === "featured" }, "t-medium pd-thin radius-small"]),
|
62
|
+
onClick: o[1] || (o[1] = (t) => u(s).push({ name: "Blog" }))
|
48
63
|
}, "👑 Featured", 2),
|
49
|
-
|
50
|
-
class: B([{ "t-white bg-black":
|
51
|
-
onClick:
|
64
|
+
a("li", {
|
65
|
+
class: B([{ "t-white bg-black": u(n).params.category === "popular" }, "t-medium pd-thin radius-small"]),
|
66
|
+
onClick: o[2] || (o[2] = (t) => u(s).push({ name: "Blog", params: { category: "popular" } }))
|
52
67
|
}, "🔥 Popular", 2),
|
53
|
-
|
54
|
-
class: B([{ "t-white bg-black":
|
55
|
-
onClick:
|
68
|
+
a("li", {
|
69
|
+
class: B([{ "t-white bg-black": u(n).params.category === "new" }, "t-medium pd-thin radius-small"]),
|
70
|
+
onClick: o[3] || (o[3] = (t) => u(s).push({ name: "Blog", params: { category: "new" } }))
|
56
71
|
}, "🆕 New", 2),
|
57
72
|
w.user._id ? (i(), m("li", {
|
58
73
|
key: 0,
|
59
|
-
class: B([{ "t-white bg-black":
|
60
|
-
onClick:
|
61
|
-
}, "👥 Following", 2)) :
|
74
|
+
class: B([{ "t-white bg-black": u(n).params.category === "following" }, "t-medium pd-thin radius-small"]),
|
75
|
+
onClick: o[4] || (o[4] = (t) => u(s).push({ name: "Blog", params: { category: "following" } }))
|
76
|
+
}, "👥 Following", 2)) : h("", !0)
|
62
77
|
]),
|
63
|
-
|
78
|
+
a("section", Se, [
|
64
79
|
g(d, null, {
|
65
|
-
default: k(({ Component: t, route:
|
80
|
+
default: k(({ Component: t, route: f }) => [
|
66
81
|
g(J, {
|
67
82
|
name: "scaleIn",
|
68
83
|
mode: "out-in"
|
@@ -70,7 +85,7 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
70
85
|
default: k(() => [
|
71
86
|
(i(), I(G(t), {
|
72
87
|
ref: "page",
|
73
|
-
key:
|
88
|
+
key: f.query
|
74
89
|
}))
|
75
90
|
]),
|
76
91
|
_: 2
|
@@ -85,10 +100,10 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
85
100
|
}, Ie = { class: "pd-thin" }, Me = {
|
86
101
|
key: 0,
|
87
102
|
class: "h-100 w-100 bg-grey pd-big radius-big"
|
88
|
-
}, Fe = { class: "w-full h-full" },
|
103
|
+
}, Fe = { class: "w-full h-full" }, ze = {
|
89
104
|
key: 1,
|
90
105
|
class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
|
91
|
-
},
|
106
|
+
}, Oe = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, je = /* @__PURE__ */ a("h3", { class: "mn-small" }, "Final Touches", -1), De = /* @__PURE__ */ a("h5", { class: "mn-thin" }, "Add to public:", -1), Ne = {
|
92
107
|
key: 0,
|
93
108
|
class: "mn-thin"
|
94
109
|
}, Ue = {
|
@@ -97,15 +112,15 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
97
112
|
}, Le = {
|
98
113
|
__name: "CreateBlogPost",
|
99
114
|
setup(p) {
|
100
|
-
const n =
|
101
|
-
let e = _(null),
|
115
|
+
const n = O(), s = N();
|
116
|
+
let e = _(null), o = _(null);
|
102
117
|
const d = _([]), t = _(null);
|
103
118
|
F(async () => {
|
104
119
|
if (n.params.url) {
|
105
|
-
const
|
106
|
-
e.value =
|
120
|
+
const c = await W({ user: w.user._id, url: n.params.url });
|
121
|
+
e.value = c.pop();
|
107
122
|
} else
|
108
|
-
|
123
|
+
ae(), e.value = M.current;
|
109
124
|
e.value.owner || (e.value.owner = {
|
110
125
|
target: w.user._id,
|
111
126
|
type: "user"
|
@@ -118,25 +133,25 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
118
133
|
name: e.value.owner.target.profile.name,
|
119
134
|
photo: e.value.owner.target.profile.photo
|
120
135
|
});
|
121
|
-
const r = await
|
136
|
+
const r = await fe.read({
|
122
137
|
user: w.user._id,
|
123
138
|
postable: w.user._id,
|
124
139
|
limit: 100
|
125
140
|
});
|
126
|
-
console.log(r),
|
127
|
-
name:
|
128
|
-
_id:
|
129
|
-
photo:
|
141
|
+
console.log(r), o.value = r.map((c) => ({
|
142
|
+
name: c.profile.name,
|
143
|
+
_id: c._id,
|
144
|
+
photo: c.profile.photo
|
130
145
|
}));
|
131
146
|
});
|
132
|
-
const
|
147
|
+
const f = _(""), l = _([
|
133
148
|
{ text: "story" },
|
134
149
|
{ text: "news" },
|
135
150
|
{ text: "guide" },
|
136
151
|
{ text: "discussion" },
|
137
152
|
{ text: "photos" }
|
138
153
|
]);
|
139
|
-
L(() => l.value.filter((r) => r.text.toLowerCase().includes(
|
154
|
+
L(() => l.value.filter((r) => r.text.toLowerCase().includes(f.value.toLowerCase()))), L(() => l.value.filter((r) => !d.value.some((c) => c.text === r.text)));
|
140
155
|
const v = _(!1);
|
141
156
|
function P() {
|
142
157
|
v.value = !0;
|
@@ -145,7 +160,7 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
145
160
|
v.value = !1;
|
146
161
|
}
|
147
162
|
function S() {
|
148
|
-
d.value.length > 0 && d.value.map((r) => r.text), e.value.status = "draft", n.params.url ?
|
163
|
+
d.value.length > 0 && d.value.map((r) => r.text), e.value.status = "draft", n.params.url ? V(e.value).then((r) => {
|
149
164
|
s.push({ name: "BlogPost", params: { url: r.url } });
|
150
165
|
}).catch((r) => {
|
151
166
|
console.log(r);
|
@@ -155,11 +170,11 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
155
170
|
console.log(r);
|
156
171
|
});
|
157
172
|
}
|
158
|
-
function
|
173
|
+
function j() {
|
159
174
|
t.value && (e.value.owner = {
|
160
175
|
target: t.value._id,
|
161
176
|
type: "organization"
|
162
|
-
}), t.value || (e.value.creator.hidden = !1), t.value || (e.value.organization = e.value.creator), e.value.status = "published", console.log(e.value), n.params.url ?
|
177
|
+
}), t.value || (e.value.creator.hidden = !1), t.value || (e.value.organization = e.value.creator), e.value.status = "published", console.log(e.value), n.params.url ? V(e.value).then((r) => {
|
163
178
|
s.push({ name: "BlogPost", params: { url: r.url } });
|
164
179
|
}).catch((r) => {
|
165
180
|
console.log(r);
|
@@ -169,62 +184,62 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
169
184
|
console.log(r);
|
170
185
|
});
|
171
186
|
}
|
172
|
-
function
|
173
|
-
confirm("Are you sure you want to delete this post?") &&
|
187
|
+
function D() {
|
188
|
+
confirm("Are you sure you want to delete this post?") && ne(e.value._id).then((r) => {
|
174
189
|
s.push({ name: "User Blogposts", params: { _id: e.value.creator.target._id } });
|
175
190
|
}).catch((r) => {
|
176
191
|
console.log(r);
|
177
192
|
});
|
178
193
|
}
|
179
|
-
return (r,
|
180
|
-
|
181
|
-
|
182
|
-
g(
|
183
|
-
prop:
|
194
|
+
return (r, c) => (i(), m("article", Ie, [
|
195
|
+
u(e) ? (i(), m("section", Me, [
|
196
|
+
a("div", Fe, [
|
197
|
+
g(re, {
|
198
|
+
prop: u(e),
|
184
199
|
content: "name",
|
185
200
|
placeholder: "Enter post title",
|
186
201
|
class: "h2"
|
187
202
|
}, null, 8, ["prop"])
|
188
203
|
]),
|
189
|
-
g(
|
190
|
-
content:
|
191
|
-
onUpdate:
|
204
|
+
g(ie, {
|
205
|
+
content: u(e).content,
|
206
|
+
onUpdate: c[0] || (c[0] = (b) => u(e).content = b)
|
192
207
|
}, null, 8, ["content"])
|
193
|
-
])) :
|
194
|
-
|
195
|
-
|
196
|
-
|
208
|
+
])) : h("", !0),
|
209
|
+
u(e) ? (i(), m("section", ze, [
|
210
|
+
a("div", Oe, [
|
211
|
+
u(n).params.url ? (i(), m("a", {
|
197
212
|
key: 0,
|
198
|
-
onClick:
|
213
|
+
onClick: c[1] || (c[1] = (b) => D()),
|
199
214
|
class: "mn-r-auto bg-red t-white t-black button"
|
200
|
-
}, "Delete")) :
|
201
|
-
|
202
|
-
onClick:
|
215
|
+
}, "Delete")) : h("", !0),
|
216
|
+
a("a", {
|
217
|
+
onClick: c[2] || (c[2] = (b) => S()),
|
203
218
|
class: "mn-l-auto bg-white t-black button"
|
204
219
|
}, "To Drafts"),
|
205
|
-
|
206
|
-
onClick:
|
220
|
+
a("a", {
|
221
|
+
onClick: c[3] || (c[3] = (b) => P()),
|
207
222
|
class: "mn-l-thin bg-black t-white button"
|
208
223
|
}, "Publish")
|
209
224
|
])
|
210
|
-
])) :
|
211
|
-
g(
|
225
|
+
])) : h("", !0),
|
226
|
+
g(pe, {
|
212
227
|
title: "Добавить участника",
|
213
228
|
onClosePopup: $,
|
214
229
|
isPopupOpen: v.value,
|
215
230
|
class: "w-m-33r t-left pd-big bg-white radius-big"
|
216
231
|
}, {
|
217
232
|
default: k(() => [
|
218
|
-
Oe,
|
219
|
-
g(ge, {
|
220
|
-
onTagsChanged: u[4] || (u[4] = (b) => c(e).tags = b),
|
221
|
-
tags: c(e).tags
|
222
|
-
}, null, 8, ["tags"]),
|
223
233
|
je,
|
224
|
-
g(
|
234
|
+
g(me, {
|
235
|
+
onTagsChanged: c[4] || (c[4] = (b) => u(e).tags = b),
|
236
|
+
tags: u(e).tags
|
237
|
+
}, null, 8, ["tags"]),
|
238
|
+
De,
|
239
|
+
g(ge, {
|
225
240
|
modelValue: t.value,
|
226
|
-
"onUpdate:modelValue":
|
227
|
-
options:
|
241
|
+
"onUpdate:modelValue": c[5] || (c[5] = (b) => t.value = b),
|
242
|
+
options: u(o),
|
228
243
|
multiple: !1,
|
229
244
|
taggable: !1,
|
230
245
|
placeholder: "Type to search or add tag",
|
@@ -232,18 +247,18 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
232
247
|
"track-by": "_id",
|
233
248
|
class: "mn-medium bg-grey radius-medium pd-small"
|
234
249
|
}, null, 8, ["modelValue", "options"]),
|
235
|
-
t.value ? (i(), m("h5",
|
250
|
+
t.value ? (i(), m("h5", Ne, "Options:")) : h("", !0),
|
236
251
|
t.value ? (i(), m("div", Ue, [
|
237
|
-
g(
|
252
|
+
g(de, {
|
238
253
|
label: "Hide Author",
|
239
|
-
radio:
|
240
|
-
"onUpdate:radio":
|
254
|
+
radio: u(e).creator.hidden,
|
255
|
+
"onUpdate:radio": c[6] || (c[6] = (b) => u(e).creator.hidden = b),
|
241
256
|
name: "prices",
|
242
257
|
class: "w-100"
|
243
258
|
}, null, 8, ["radio"])
|
244
|
-
])) :
|
245
|
-
g(
|
246
|
-
submit:
|
259
|
+
])) : h("", !0),
|
260
|
+
g(_e, {
|
261
|
+
submit: j,
|
247
262
|
callback: r.redirectTo,
|
248
263
|
class: "w-100 bg-black t-white"
|
249
264
|
}, {
|
@@ -260,54 +275,44 @@ const $e = { class: "min-h-100vh pd-thin" }, ke = { class: "mn-thin flex-v-cente
|
|
260
275
|
}, R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
261
276
|
__proto__: null,
|
262
277
|
default: Le
|
263
|
-
}, Symbol.toStringTag, { value: "Module" })), Ae = {}, Ee = {
|
264
|
-
width: "100%",
|
265
|
-
height: "20rem",
|
266
|
-
xmlns: "http://www.w3.org/2000/svg"
|
267
|
-
}, Ve = /* @__PURE__ */ Z('<rect x="0" y="0" rx="5" ry="5" width="100%" height="100%" fill="rgb(var(--grey))"></rect><rect x="15" y="15" rx="4" ry="4" width="40%" height="20" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="45" rx="5" ry="5" width="70%" height="50" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="110" rx="3" ry="3" width="90%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="15" y="130" rx="3" ry="3" width="70%" height="6" fill="rgba(var(--black),0.05)"></rect><rect x="-25%" y="0" width="25%" height="100%" fill="#fff" mask="url(#myMask)" opacity="0.3"><animate attributeName="x" from="-25%" to="100%" dur="2s" repeatCount="indefinite"></animate></rect>', 6), He = [
|
268
|
-
Ve
|
269
|
-
];
|
270
|
-
function qe(p, n) {
|
271
|
-
return i(), m("svg", Ee, He);
|
272
|
-
}
|
273
|
-
const Re = /* @__PURE__ */ X(Ae, [["render", qe]]), Je = { class: "pd-thin" }, Ge = {
|
278
|
+
}, Symbol.toStringTag, { value: "Module" })), Ae = { class: "pd-thin" }, Ee = {
|
274
279
|
__name: "BlogPost",
|
275
280
|
setup(p) {
|
276
|
-
const n =
|
281
|
+
const n = O(), s = _(null), e = _(!0);
|
277
282
|
F(async () => {
|
278
283
|
e.value = !0;
|
279
284
|
const t = await W({ user: w.user._id, url: n.params.url });
|
280
285
|
s.value = t[0], e.value = !1;
|
281
286
|
});
|
282
|
-
const
|
287
|
+
const o = {
|
283
288
|
Textarea: "p",
|
284
289
|
H2: "h2",
|
285
290
|
Bullets: "p",
|
286
291
|
Caption: "p",
|
287
|
-
ImageUpload:
|
292
|
+
ImageUpload: ce
|
288
293
|
};
|
289
294
|
function d(t) {
|
290
295
|
return t.type === "Textarea" ? { innerHTML: t.content, class: "p-medium" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
|
291
296
|
}
|
292
|
-
return (t,
|
297
|
+
return (t, f) => (i(), m("section", Ae, [
|
293
298
|
g(A, {
|
294
299
|
tag: "ul",
|
295
300
|
name: "fade",
|
296
301
|
class: "o-hidden bg-grey radius-big"
|
297
302
|
}, {
|
298
303
|
default: k(() => [
|
299
|
-
e.value ? (i(), m(E, { key: 0 },
|
304
|
+
e.value ? (i(), m(E, { key: 0 }, H(3, (l) => g(ve, { key: l })), 64)) : h("", !0)
|
300
305
|
]),
|
301
306
|
_: 1
|
302
307
|
}),
|
303
308
|
g(J, { name: "fade" }, {
|
304
309
|
default: k(() => [
|
305
|
-
!e.value && !s.value ? (i(), I(
|
310
|
+
!e.value && !s.value ? (i(), I(he, {
|
306
311
|
key: 0,
|
307
312
|
title: "No Blogpost Found",
|
308
313
|
description: "Currently, there are no blogposts available. Please check back later.",
|
309
314
|
class: "pd-medium mn-thin bg-grey radius-big"
|
310
|
-
})) :
|
315
|
+
})) : h("", !0)
|
311
316
|
]),
|
312
317
|
_: 1
|
313
318
|
}),
|
@@ -317,9 +322,9 @@ const Re = /* @__PURE__ */ X(Ae, [["render", qe]]), Je = { class: "pd-thin" }, G
|
|
317
322
|
class: "container"
|
318
323
|
}, {
|
319
324
|
default: k(() => [
|
320
|
-
!e.value && s.value ? (i(), I(
|
325
|
+
!e.value && s.value ? (i(), I(le, {
|
321
326
|
key: 0,
|
322
|
-
onClick:
|
327
|
+
onClick: f[0] || (f[0] = (l) => t.$router.push({ name: "Blogpost", params: { url: s.value.url } })),
|
323
328
|
blogpost: s.value,
|
324
329
|
user: w.user._id,
|
325
330
|
type: "blogpostPage",
|
@@ -328,76 +333,77 @@ const Re = /* @__PURE__ */ X(Ae, [["render", qe]]), Je = { class: "pd-thin" }, G
|
|
328
333
|
}])
|
329
334
|
}, {
|
330
335
|
default: k(() => [
|
331
|
-
|
332
|
-
s.value && s.value.content ? (i(!0), m(E, { key: 0 },
|
336
|
+
a("section", null, [
|
337
|
+
s.value && s.value.content ? (i(!0), m(E, { key: 0 }, H(s.value.content, (l, v) => (i(), I(G(o[l.type]), Y({
|
333
338
|
key: v,
|
334
339
|
index: v,
|
335
340
|
component: l,
|
336
341
|
prop: l,
|
337
342
|
class: l.class,
|
338
343
|
content: "content"
|
339
|
-
}, d(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) :
|
344
|
+
}, d(l), { class: "mn-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : h("", !0)
|
340
345
|
])
|
341
346
|
]),
|
342
347
|
_: 1
|
343
|
-
}, 8, ["blogpost", "user", "class"])) :
|
344
|
-
g(
|
345
|
-
!e.value && s.value ? (i(), I(
|
348
|
+
}, 8, ["blogpost", "user", "class"])) : h("", !0),
|
349
|
+
g(be, { class: "mn-small" }),
|
350
|
+
!e.value && s.value ? (i(), I(ue, {
|
346
351
|
key: 1,
|
347
352
|
type: "blogpost",
|
348
353
|
target: s.value._id,
|
349
354
|
owner: w.user._id
|
350
|
-
}, null, 8, ["target", "owner"])) :
|
355
|
+
}, null, 8, ["target", "owner"])) : h("", !0)
|
351
356
|
]),
|
352
357
|
_: 1
|
353
358
|
})
|
354
359
|
]));
|
355
360
|
}
|
356
|
-
},
|
361
|
+
}, He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
357
362
|
__proto__: null,
|
358
|
-
default:
|
359
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
363
|
+
default: Ee
|
364
|
+
}, Symbol.toStringTag, { value: "Module" })), Ve = {
|
360
365
|
__name: "Blog",
|
361
366
|
setup(p) {
|
362
|
-
const n =
|
367
|
+
const n = O(), s = N();
|
363
368
|
return n.params.category || (n.params.category = "featured"), F(() => {
|
364
369
|
if (n.query) {
|
365
|
-
const e = n.query,
|
370
|
+
const e = n.query, o = {
|
366
371
|
tags: e.tags ? e.tags.split(",") : [],
|
367
372
|
period: e.period ? e.period : "week"
|
368
373
|
};
|
369
|
-
M.filter =
|
374
|
+
M.filter = o;
|
370
375
|
}
|
371
|
-
}),
|
376
|
+
}), Z(() => M.filter, (e, o) => {
|
372
377
|
const d = { ...n.query };
|
373
|
-
Object.keys(
|
374
|
-
d[
|
378
|
+
Object.keys(o).forEach((f) => {
|
379
|
+
d[f] && delete d[f];
|
375
380
|
});
|
376
381
|
const t = Object.fromEntries(
|
377
|
-
Object.entries(e).filter(([
|
382
|
+
Object.entries(e).filter(([f, l]) => Array.isArray(l) && l.length > 0 || typeof l == "string" && l).map(([f, l]) => [f, Array.isArray(l) ? l.join(",") : l])
|
378
383
|
);
|
379
384
|
Object.assign(d, t), s.replace({ query: d });
|
380
|
-
}, { deep: !0 }), (e,
|
385
|
+
}, { deep: !0 }), (e, o) => (i(), m("section", null, [
|
381
386
|
g(K, {
|
382
|
-
category:
|
387
|
+
category: u(n).params.category,
|
383
388
|
user: w.user._id,
|
384
|
-
period:
|
385
|
-
|
389
|
+
period: u(n).query.period,
|
390
|
+
following: u(n).params.category === "following" ? w.user._id : null
|
391
|
+
}, null, 8, ["category", "user", "period", "following"])
|
386
392
|
]));
|
387
393
|
}
|
388
|
-
},
|
394
|
+
}, qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
389
395
|
__proto__: null,
|
390
|
-
default:
|
391
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
396
|
+
default: Ve
|
397
|
+
}, Symbol.toStringTag, { value: "Module" })), Re = { class: "w-100 cols-4 t-left flex-nowrap flex" }, Je = {
|
392
398
|
key: 0,
|
393
399
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
394
|
-
},
|
400
|
+
}, Ge = /* @__PURE__ */ a("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), Qe = { class: "t-semi uppercase" }, We = /* @__PURE__ */ a("br", null, null, -1), Ke = {
|
395
401
|
key: 1,
|
396
402
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
397
|
-
},
|
403
|
+
}, Xe = /* @__PURE__ */ a("p", { class: "h4 i-medium mn-r-small" }, "💬", -1), Ye = { class: "t-semi uppercase" }, Ze = /* @__PURE__ */ a("br", null, null, -1), et = {
|
398
404
|
key: 2,
|
399
405
|
class: "w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"
|
400
|
-
},
|
406
|
+
}, tt = /* @__PURE__ */ a("p", { class: "h4 i-medium mn-r-small" }, "👍", -1), st = { class: "t-semi uppercase" }, ot = /* @__PURE__ */ a("br", null, null, -1), as = {
|
401
407
|
__name: "Activity",
|
402
408
|
props: {
|
403
409
|
likes: Number,
|
@@ -405,34 +411,34 @@ const Re = /* @__PURE__ */ X(Ae, [["render", qe]]), Je = { class: "pd-thin" }, G
|
|
405
411
|
subscriptions: Number
|
406
412
|
},
|
407
413
|
setup(p) {
|
408
|
-
return (n, s) => (i(), m("section",
|
409
|
-
p.likes ? (i(), m("div",
|
410
|
-
|
411
|
-
|
412
|
-
T(
|
413
|
-
|
414
|
+
return (n, s) => (i(), m("section", Re, [
|
415
|
+
p.likes ? (i(), m("div", Je, [
|
416
|
+
Ge,
|
417
|
+
a("span", Qe, [
|
418
|
+
T(z(p.likes), 1),
|
419
|
+
We,
|
414
420
|
T("likes")
|
415
421
|
])
|
416
|
-
])) :
|
417
|
-
p.comments ? (i(), m("div",
|
418
|
-
|
419
|
-
|
420
|
-
T(
|
421
|
-
|
422
|
+
])) : h("", !0),
|
423
|
+
p.comments ? (i(), m("div", Ke, [
|
424
|
+
Xe,
|
425
|
+
a("span", Ye, [
|
426
|
+
T(z(p.comments), 1),
|
427
|
+
Ze,
|
422
428
|
T("comments")
|
423
429
|
])
|
424
|
-
])) :
|
425
|
-
p.subscriptions ? (i(), m("div",
|
426
|
-
|
427
|
-
|
428
|
-
T(
|
429
|
-
|
430
|
+
])) : h("", !0),
|
431
|
+
p.subscriptions ? (i(), m("div", et, [
|
432
|
+
tt,
|
433
|
+
a("span", st, [
|
434
|
+
T(z(p.subscriptions), 1),
|
435
|
+
ot,
|
430
436
|
T("subscriptions")
|
431
437
|
])
|
432
|
-
])) :
|
438
|
+
])) : h("", !0)
|
433
439
|
]));
|
434
440
|
}
|
435
|
-
},
|
441
|
+
}, at = { class: "pd-thin radius-extra flex-nowrap flex" }, nt = ["innerHTML"], lt = {
|
436
442
|
__name: "FieldBig",
|
437
443
|
props: {
|
438
444
|
input: String,
|
@@ -465,90 +471,90 @@ const Re = /* @__PURE__ */ X(Ae, [["render", qe]]), Je = { class: "pd-thin" }, G
|
|
465
471
|
},
|
466
472
|
emits: ["update:input", "action"],
|
467
473
|
setup(p, { emit: n }) {
|
468
|
-
const s = p, { t: e, locale:
|
469
|
-
let d = _(0), t = _(s.input),
|
470
|
-
function
|
474
|
+
const s = p, { t: e, locale: o } = ye();
|
475
|
+
let d = _(0), t = _(s.input), f = _(s.placeholder), l = _(s.enableTyping), v = _(null), P = _(""), $ = _(!0), S = null;
|
476
|
+
function j() {
|
471
477
|
n("action");
|
472
478
|
}
|
473
|
-
function
|
479
|
+
function D(x) {
|
474
480
|
n("update:input", x), P.value = x;
|
475
481
|
}
|
476
482
|
function r() {
|
477
|
-
d.value = (d.value + 1) % s.placeholderTexts[
|
483
|
+
d.value = (d.value + 1) % s.placeholderTexts[o.value].length;
|
478
484
|
}
|
479
|
-
function
|
480
|
-
l.value = !1, clearInterval(v.value),
|
485
|
+
function c() {
|
486
|
+
l.value = !1, clearInterval(v.value), f.value = s.placeholder, P.value || (t.value = "");
|
481
487
|
}
|
482
488
|
function b() {
|
483
|
-
!P.value && s.enableTyping && (l.value = !0,
|
489
|
+
!P.value && s.enableTyping && (l.value = !0, f.value = "", U());
|
484
490
|
}
|
485
491
|
function U() {
|
486
|
-
let x = s.placeholderTexts[
|
492
|
+
let x = s.placeholderTexts[o.value][d.value], y = 0, C = !1;
|
487
493
|
S = setInterval(() => {
|
488
494
|
$.value = !$.value;
|
489
495
|
}, 200), v.value = setInterval(() => {
|
490
496
|
l.value && (C ? (t.value = t.value.slice(0, -1), t.value = x.substring(0, y) + ($.value && y % 2 ? "|" : ""), y--) : (t.value = x.substring(0, y) + ($.value && y % 2 ? "|" : ""), y++), y > x.length && s.loopTyping && setTimeout(() => {
|
491
497
|
C = !0, t.value = x.substring(0, y);
|
492
|
-
}, 333), y === 0 && C && (C = !1, r(), x = s.placeholderTexts[
|
498
|
+
}, 333), y === 0 && C && (C = !1, r(), x = s.placeholderTexts[o.value][d.value]));
|
493
499
|
}, s.typingSpeed);
|
494
500
|
}
|
495
501
|
return F(() => {
|
496
502
|
s.enableTyping && U();
|
497
|
-
}),
|
503
|
+
}), ee(() => {
|
498
504
|
l.value || (clearInterval(v.value), clearInterval(S));
|
499
|
-
}), (x, y) => (i(), m("div",
|
500
|
-
g(
|
501
|
-
field:
|
505
|
+
}), (x, y) => (i(), m("div", at, [
|
506
|
+
g(we, {
|
507
|
+
field: u(t),
|
502
508
|
"onUpdate:field": [
|
503
509
|
y[0] || (y[0] = (C) => Q(t) ? t.value = C : t = C),
|
504
|
-
|
510
|
+
D
|
505
511
|
],
|
506
|
-
placeholder:
|
512
|
+
placeholder: u(f),
|
507
513
|
onInput: r,
|
508
|
-
onFocus:
|
514
|
+
onFocus: c,
|
509
515
|
onBlur: b,
|
510
516
|
class: "w-100 pd-small p-big"
|
511
517
|
}, null, 8, ["field", "placeholder"]),
|
512
518
|
p.action ? (i(), m("button", {
|
513
519
|
key: 0,
|
514
|
-
onClick:
|
520
|
+
onClick: j,
|
515
521
|
class: "w-min hover_bg-white hover-t-black t-black bg-main button",
|
516
522
|
innerHTML: p.action
|
517
|
-
}, null, 8,
|
523
|
+
}, null, 8, nt)) : h("", !0)
|
518
524
|
]));
|
519
525
|
}
|
520
526
|
};
|
521
|
-
const
|
522
|
-
/* @__PURE__ */
|
523
|
-
/* @__PURE__ */
|
524
|
-
], -1),
|
525
|
-
/* @__PURE__ */
|
526
|
-
], -1),
|
527
|
+
const rt = { class: "pd-thin" }, it = { class: "o-hidden t-black bg-main pd-big radius-big" }, ut = /* @__PURE__ */ a("header", { class: "t-center z-index-1 mn-big" }, [
|
528
|
+
/* @__PURE__ */ a("h2", { class: "mn-l-auto mn-r-auto w-m-40r mn-medium" }, "Stay Updated with The Latest in Cannabis."),
|
529
|
+
/* @__PURE__ */ a("p", { class: "t-transp p-big" }, "Subscribe to our newsletter for news, insights, and more from the Weeder universe.")
|
530
|
+
], -1), ct = { class: "z-index-1 mn-big w-100 flex-nowrap flex" }, pt = /* @__PURE__ */ a("div", { class: "w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid" }, [
|
531
|
+
/* @__PURE__ */ a("div", { class: "spiral" })
|
532
|
+
], -1), ns = {
|
527
533
|
__name: "SubscribeNewsletter",
|
528
534
|
setup(p) {
|
529
535
|
let n = _("");
|
530
|
-
return (s, e) => (i(), m("section",
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
g(
|
535
|
-
input:
|
536
|
+
return (s, e) => (i(), m("section", rt, [
|
537
|
+
a("div", it, [
|
538
|
+
ut,
|
539
|
+
a("div", ct, [
|
540
|
+
g(lt, {
|
541
|
+
input: u(n),
|
536
542
|
typingSpeed: 75,
|
537
543
|
loopTyping: !1,
|
538
544
|
enableTyping: !1,
|
539
545
|
placeholder: "Please enter your email",
|
540
546
|
action: "Subscribe",
|
541
|
-
"onUpdate:input": e[0] || (e[0] = (
|
542
|
-
onAction: e[1] || (e[1] = (
|
547
|
+
"onUpdate:input": e[0] || (e[0] = (o) => Q(n) ? n.value = o : n = o),
|
548
|
+
onAction: e[1] || (e[1] = (o) => s.router.push({ name: "Product Recommmendation", query: { mood: s.mood } })),
|
543
549
|
class: "mn-l-auto mn-r-auto bg-white t-black w-50"
|
544
550
|
}, null, 8, ["input"])
|
545
551
|
]),
|
546
|
-
|
552
|
+
pt
|
547
553
|
])
|
548
554
|
]));
|
549
555
|
}
|
550
556
|
};
|
551
|
-
const
|
557
|
+
const mt = { class: "container container-joinus" }, dt = { class: "content" }, gt = { class: "h0 mn-big" }, _t = /* @__PURE__ */ a("p", { class: "w-m-33r t-center mn-small p-big" }, "Together, we're shaping the future of the globals cannabis community.", -1), ft = /* @__PURE__ */ a("button", { class: "bg-black t-white button" }, "Join Now", -1), ls = {
|
552
558
|
__name: "JoinUs",
|
553
559
|
setup(p) {
|
554
560
|
const n = _(120950), s = _([
|
@@ -562,7 +568,7 @@ const vt = { class: "container container-joinus" }, bt = { class: "content" }, y
|
|
562
568
|
setInterval(() => {
|
563
569
|
n.value += Math.floor(Math.random() * 5) + 1;
|
564
570
|
}, 330);
|
565
|
-
},
|
571
|
+
}, o = {
|
566
572
|
minSize: "6rem",
|
567
573
|
maxSize: "10rem",
|
568
574
|
minDuration: 5,
|
@@ -573,30 +579,30 @@ const vt = { class: "container container-joinus" }, bt = { class: "content" }, y
|
|
573
579
|
d(), e();
|
574
580
|
});
|
575
581
|
const d = () => {
|
576
|
-
s.value.forEach((t,
|
582
|
+
s.value.forEach((t, f) => {
|
577
583
|
let l = document.createElement("img");
|
578
584
|
l.src = t, l.classList.add("floating-image");
|
579
|
-
let v =
|
580
|
-
l.style.left = `${v + P}%`, l.style.animationDuration = `${Math.random() * (
|
581
|
-
const $ =
|
585
|
+
let v = o.spawnPoints[Math.floor(Math.random() * o.spawnPoints.length)], P = (Math.random() - 0.5) * 2 * 10;
|
586
|
+
l.style.left = `${v + P}%`, l.style.animationDuration = `${Math.random() * (o.maxDuration - o.minDuration) + o.minDuration}s`, document.querySelector(".container").appendChild(l), l.addEventListener("animationiteration", () => {
|
587
|
+
const $ = o.spawnPoints[Math.floor(Math.random() * o.spawnPoints.length)], S = (Math.random() - 0.5) * 2 * 10;
|
582
588
|
l.style.left = `${$ + S}%`;
|
583
589
|
});
|
584
590
|
});
|
585
591
|
};
|
586
|
-
return (t,
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
592
|
+
return (t, f) => (i(), m("div", mt, [
|
593
|
+
a("div", dt, [
|
594
|
+
a("span", gt, z(n.value.toLocaleString()), 1),
|
595
|
+
_t,
|
596
|
+
ft
|
591
597
|
])
|
592
598
|
]));
|
593
599
|
}
|
594
600
|
};
|
595
|
-
const
|
601
|
+
const ht = (p) => (te("data-v-2591cab6"), p = p(), se(), p), vt = { class: "community-feed" }, bt = /* @__PURE__ */ ht(() => /* @__PURE__ */ a("h2", { class: "w-m-75r mn-auto pd-t-big pd-b-big t-center" }, "Discover the Vibrant Community", -1)), yt = {
|
596
602
|
__name: "HotPosts",
|
597
603
|
setup(p) {
|
598
|
-
return (n, s) => (i(), m("section",
|
599
|
-
|
604
|
+
return (n, s) => (i(), m("section", vt, [
|
605
|
+
bt,
|
600
606
|
g(K, {
|
601
607
|
skip: 0,
|
602
608
|
limit: 3,
|
@@ -606,7 +612,7 @@ const $t = (p) => (ae("data-v-2591cab6"), p = p(), oe(), p), kt = { class: "comm
|
|
606
612
|
}, null, 8, ["user"])
|
607
613
|
]));
|
608
614
|
}
|
609
|
-
},
|
615
|
+
}, rs = /* @__PURE__ */ xe(yt, [["__scopeId", "data-v-2591cab6"]]), is = [
|
610
616
|
{
|
611
617
|
path: "community",
|
612
618
|
component: Be,
|
@@ -627,7 +633,7 @@ const $t = (p) => (ae("data-v-2591cab6"), p = p(), oe(), p), kt = { class: "comm
|
|
627
633
|
},
|
628
634
|
title_hide: !0
|
629
635
|
},
|
630
|
-
component: () => Promise.resolve().then(() =>
|
636
|
+
component: () => Promise.resolve().then(() => qe)
|
631
637
|
}]
|
632
638
|
},
|
633
639
|
{
|
@@ -651,7 +657,7 @@ const $t = (p) => (ae("data-v-2591cab6"), p = p(), oe(), p), kt = { class: "comm
|
|
651
657
|
ru: "Пост"
|
652
658
|
}
|
653
659
|
},
|
654
|
-
component: () => Promise.resolve().then(() =>
|
660
|
+
component: () => Promise.resolve().then(() => He)
|
655
661
|
},
|
656
662
|
{
|
657
663
|
path: "community/posts/:url/edit",
|
@@ -667,19 +673,19 @@ const $t = (p) => (ae("data-v-2591cab6"), p = p(), oe(), p), kt = { class: "comm
|
|
667
673
|
}
|
668
674
|
];
|
669
675
|
export {
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
676
|
+
as as Activity,
|
677
|
+
Ve as Blog,
|
678
|
+
Ee as BlogPost,
|
679
|
+
le as CardBlogpost,
|
680
|
+
ue as Comments,
|
675
681
|
Be as Community,
|
676
682
|
Le as CreateBlogPost,
|
677
683
|
K as Feed,
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
684
|
+
ps as FooterBlogpost,
|
685
|
+
rs as HotPosts,
|
686
|
+
ls as JoinUs,
|
687
|
+
ns as SubscribeNewsletter,
|
688
|
+
is as blogpostsRoutes,
|
689
|
+
ms as blogpostsStore,
|
690
|
+
gs as reactionsStore
|
685
691
|
};
|