@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/events.server.mjs
CHANGED
@@ -1,154 +1,10 @@
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-83b1d755.mjs";
|
2
2
|
import require$$0 from "mongoose";
|
3
|
+
import { q as queryProcessor$2, c as common_schema, e as engagement_schema, o as ownership_schema, m as metadata_schema } from "./metadata.schema-a539dd65.mjs";
|
3
4
|
import { s as server$1 } from "./index-fa8d5df4.mjs";
|
4
|
-
import { c as common_schema, e as engagement_schema, o as ownership_schema, m as metadata_schema } from "./metadata.schema-7f36e829.mjs";
|
5
5
|
import "jsonwebtoken";
|
6
6
|
import "mongodb";
|
7
|
-
const ObjectId$1 = require$$0.Types.ObjectId;
|
8
|
-
function getTicketsLookupStage() {
|
9
|
-
return {
|
10
|
-
$lookup: {
|
11
|
-
from: "tickets",
|
12
|
-
localField: "_id",
|
13
|
-
foreignField: "target",
|
14
|
-
as: "tickets",
|
15
|
-
pipeline: [{
|
16
|
-
$lookup: {
|
17
|
-
from: "users",
|
18
|
-
localField: "user",
|
19
|
-
foreignField: "_id",
|
20
|
-
as: "user"
|
21
|
-
}
|
22
|
-
}, {
|
23
|
-
$unwind: { path: "$user", preserveNullAndEmptyArrays: true }
|
24
|
-
}]
|
25
|
-
}
|
26
|
-
};
|
27
|
-
}
|
28
|
-
function getParticipantsPhotosStage() {
|
29
|
-
return {
|
30
|
-
$addFields: {
|
31
|
-
participantsPhotos: {
|
32
|
-
$map: {
|
33
|
-
input: "$tickets",
|
34
|
-
as: "ticket",
|
35
|
-
in: "$$ticket.user.profile.photo"
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}
|
39
|
-
};
|
40
|
-
}
|
41
|
-
function getNumberOfTicketsStage() {
|
42
|
-
return {
|
43
|
-
$addFields: {
|
44
|
-
numberOfTickets: { $size: "$tickets" }
|
45
|
-
}
|
46
|
-
};
|
47
|
-
}
|
48
|
-
function getHasTicketStage(user) {
|
49
|
-
if (user) {
|
50
|
-
return [{
|
51
|
-
$addFields: {
|
52
|
-
hasTicket: {
|
53
|
-
$in: [new ObjectId$1(user), "$tickets.user._id"]
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}];
|
57
|
-
} else {
|
58
|
-
return [];
|
59
|
-
}
|
60
|
-
}
|
61
|
-
function getProjectStage() {
|
62
|
-
return {
|
63
|
-
$project: {
|
64
|
-
_id: 1,
|
65
|
-
url: 1,
|
66
|
-
cover: 1,
|
67
|
-
name: 1,
|
68
|
-
status: 1,
|
69
|
-
description: 1,
|
70
|
-
content: 1,
|
71
|
-
owner: 1,
|
72
|
-
creator: 1,
|
73
|
-
tags: 1,
|
74
|
-
date: 1,
|
75
|
-
numberOfTickets: 1,
|
76
|
-
participantsPhotos: 1,
|
77
|
-
hasTicket: 1,
|
78
|
-
tickets: 1,
|
79
|
-
createdAt: 1
|
80
|
-
}
|
81
|
-
};
|
82
|
-
}
|
83
|
-
function getParticipantStages(participantQuery) {
|
84
|
-
const participantId = participantQuery ? new ObjectId$1(participantQuery) : null;
|
85
|
-
let stages = [];
|
86
|
-
if (participantId) {
|
87
|
-
stages.push({
|
88
|
-
$addFields: {
|
89
|
-
"participantTickets": {
|
90
|
-
$filter: {
|
91
|
-
input: "$tickets",
|
92
|
-
as: "ticket",
|
93
|
-
cond: { $eq: ["$$ticket.user._id", participantId] }
|
94
|
-
}
|
95
|
-
}
|
96
|
-
}
|
97
|
-
});
|
98
|
-
stages.push({
|
99
|
-
$match: {
|
100
|
-
"participantTickets.0": { $exists: true }
|
101
|
-
}
|
102
|
-
});
|
103
|
-
}
|
104
|
-
return stages;
|
105
|
-
}
|
106
|
-
var queryProcessor$2 = {
|
107
|
-
getTicketsLookupStage,
|
108
|
-
getParticipantsPhotosStage,
|
109
|
-
getNumberOfTicketsStage,
|
110
|
-
getHasTicketStage,
|
111
|
-
getProjectStage,
|
112
|
-
getParticipantStages
|
113
|
-
};
|
114
7
|
const ObjectId = require$$0.Types.ObjectId;
|
115
|
-
function getBasicOptions(query) {
|
116
|
-
const { _id, url, owner, creator } = query;
|
117
|
-
const conditions = [];
|
118
|
-
if (_id) {
|
119
|
-
conditions.push({ _id: new ObjectId(_id) });
|
120
|
-
}
|
121
|
-
if (url) {
|
122
|
-
conditions.push({ url });
|
123
|
-
}
|
124
|
-
if (owner) {
|
125
|
-
conditions.push({ "owner.target": new ObjectId(owner) });
|
126
|
-
}
|
127
|
-
if (creator) {
|
128
|
-
conditions.push({ "creator.target": new ObjectId(creator) });
|
129
|
-
}
|
130
|
-
if (conditions.length > 0) {
|
131
|
-
return [{ $match: { $and: conditions } }];
|
132
|
-
} else {
|
133
|
-
return [];
|
134
|
-
}
|
135
|
-
}
|
136
|
-
function getSortingOptions(query) {
|
137
|
-
const sortParam = query.sortParam || "date.start";
|
138
|
-
const sortOrder = query.sortOrder || "desc";
|
139
|
-
let sort = {
|
140
|
-
[sortParam]: sortOrder === "desc" ? -1 : 1,
|
141
|
-
"_id": 1
|
142
|
-
};
|
143
|
-
return [{ $sort: sort }];
|
144
|
-
}
|
145
|
-
function getPaginationOptions(query) {
|
146
|
-
let pagination = {
|
147
|
-
skip: parseInt(query.skip) || 0,
|
148
|
-
limit: parseInt(query.limit) || 20
|
149
|
-
};
|
150
|
-
return [{ $skip: pagination.skip }, { $limit: pagination.limit }];
|
151
|
-
}
|
152
8
|
function getDateConditions(date) {
|
153
9
|
if (date) {
|
154
10
|
const dateString = date.toString();
|
@@ -208,14 +64,14 @@ function getPeriodConditions(period, periodStart, periodEnd) {
|
|
208
64
|
return [];
|
209
65
|
}
|
210
66
|
}
|
211
|
-
function
|
67
|
+
function getPhaseConditions(phase) {
|
212
68
|
const now = /* @__PURE__ */ new Date();
|
213
69
|
const todayStart = new Date(now.getTime());
|
214
70
|
todayStart.setHours(0, 0, 0, 0);
|
215
71
|
const todayEnd = new Date(now.getTime());
|
216
72
|
todayEnd.setHours(23, 59, 59, 999);
|
217
73
|
let matchConditions = [];
|
218
|
-
switch (
|
74
|
+
switch (phase) {
|
219
75
|
case "finished":
|
220
76
|
matchConditions.push({ "date.start": { $lt: now } });
|
221
77
|
break;
|
@@ -236,79 +92,114 @@ function getStatusConditions(status) {
|
|
236
92
|
return [];
|
237
93
|
}
|
238
94
|
}
|
239
|
-
function
|
95
|
+
function getTicketsLookupStage() {
|
240
96
|
return {
|
241
97
|
$lookup: {
|
242
|
-
from: "
|
243
|
-
localField: "
|
244
|
-
foreignField: "
|
245
|
-
as: "
|
98
|
+
from: "tickets",
|
99
|
+
localField: "_id",
|
100
|
+
foreignField: "target",
|
101
|
+
as: "tickets",
|
102
|
+
pipeline: [{
|
103
|
+
$lookup: {
|
104
|
+
from: "users",
|
105
|
+
localField: "user",
|
106
|
+
foreignField: "_id",
|
107
|
+
as: "user"
|
108
|
+
}
|
109
|
+
}, {
|
110
|
+
$unwind: { path: "$user", preserveNullAndEmptyArrays: true }
|
111
|
+
}]
|
246
112
|
}
|
247
113
|
};
|
248
114
|
}
|
249
|
-
function
|
115
|
+
function getParticipantsPhotosStage() {
|
250
116
|
return {
|
251
|
-
$
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
117
|
+
$addFields: {
|
118
|
+
participantsPhotos: {
|
119
|
+
$map: {
|
120
|
+
input: "$tickets",
|
121
|
+
as: "ticket",
|
122
|
+
in: "$$ticket.user.profile.photo"
|
123
|
+
}
|
124
|
+
}
|
256
125
|
}
|
257
126
|
};
|
258
127
|
}
|
259
|
-
function
|
128
|
+
function getNumberOfTicketsStage() {
|
260
129
|
return {
|
261
|
-
$
|
262
|
-
|
263
|
-
localField: "owner.target",
|
264
|
-
foreignField: "_id",
|
265
|
-
as: "ownerUser"
|
130
|
+
$addFields: {
|
131
|
+
numberOfTickets: { $size: "$tickets" }
|
266
132
|
}
|
267
133
|
};
|
268
134
|
}
|
269
|
-
function
|
135
|
+
function getHasTicketStage(user) {
|
136
|
+
if (user) {
|
137
|
+
return [{
|
138
|
+
$addFields: {
|
139
|
+
hasTicket: {
|
140
|
+
$in: [new ObjectId(user), "$tickets.user._id"]
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}];
|
144
|
+
} else {
|
145
|
+
return [];
|
146
|
+
}
|
147
|
+
}
|
148
|
+
function getProjectStage() {
|
270
149
|
return {
|
271
|
-
$
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
150
|
+
$project: {
|
151
|
+
_id: 1,
|
152
|
+
url: 1,
|
153
|
+
cover: 1,
|
154
|
+
name: 1,
|
155
|
+
phase: 1,
|
156
|
+
description: 1,
|
157
|
+
content: 1,
|
158
|
+
owner: 1,
|
159
|
+
creator: 1,
|
160
|
+
tags: 1,
|
161
|
+
date: 1,
|
162
|
+
numberOfTickets: 1,
|
163
|
+
participantsPhotos: 1,
|
164
|
+
hasTicket: 1,
|
165
|
+
tickets: 1,
|
166
|
+
createdAt: 1
|
276
167
|
}
|
277
168
|
};
|
278
169
|
}
|
279
|
-
function
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
{ $arrayElemAt: ["$ownerUser", 0] },
|
293
|
-
{ $arrayElemAt: ["$ownerOrganization", 0] }
|
294
|
-
]
|
170
|
+
function getParticipantStages(participantQuery) {
|
171
|
+
const participantId = participantQuery ? new ObjectId(participantQuery) : null;
|
172
|
+
let stages = [];
|
173
|
+
if (participantId) {
|
174
|
+
stages.push({
|
175
|
+
$addFields: {
|
176
|
+
"participantTickets": {
|
177
|
+
$filter: {
|
178
|
+
input: "$tickets",
|
179
|
+
as: "ticket",
|
180
|
+
cond: { $eq: ["$$ticket.user._id", participantId] }
|
181
|
+
}
|
182
|
+
}
|
295
183
|
}
|
296
|
-
}
|
297
|
-
|
184
|
+
});
|
185
|
+
stages.push({
|
186
|
+
$match: {
|
187
|
+
"participantTickets.0": { $exists: true }
|
188
|
+
}
|
189
|
+
});
|
190
|
+
}
|
191
|
+
return stages;
|
298
192
|
}
|
299
193
|
var queryProcessor$1 = {
|
300
|
-
getBasicOptions,
|
301
|
-
getSortingOptions,
|
302
|
-
getPaginationOptions,
|
303
194
|
getDateConditions,
|
304
|
-
|
195
|
+
getPhaseConditions,
|
305
196
|
getPeriodConditions,
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
197
|
+
getTicketsLookupStage,
|
198
|
+
getParticipantsPhotosStage,
|
199
|
+
getNumberOfTicketsStage,
|
200
|
+
getHasTicketStage,
|
201
|
+
getProjectStage,
|
202
|
+
getParticipantStages
|
312
203
|
};
|
313
204
|
function createFriendlyURL$1(str) {
|
314
205
|
if (typeof str !== "string") {
|
@@ -322,8 +213,8 @@ function createFriendlyURL$1(str) {
|
|
322
213
|
}
|
323
214
|
var seoFriendlyUrl = createFriendlyURL$1;
|
324
215
|
require$$0.Types.ObjectId;
|
325
|
-
const queryProcessor = queryProcessor$
|
326
|
-
const queryProcessorGlobals = queryProcessor$
|
216
|
+
const queryProcessor = queryProcessor$1;
|
217
|
+
const queryProcessorGlobals = queryProcessor$2;
|
327
218
|
const createFriendlyURL = seoFriendlyUrl;
|
328
219
|
const middlewareFactory = (db) => {
|
329
220
|
db.ticket;
|
@@ -335,16 +226,16 @@ const middlewareFactory = (db) => {
|
|
335
226
|
...queryProcessorGlobals.getBasicOptions(
|
336
227
|
req.query
|
337
228
|
),
|
338
|
-
...
|
229
|
+
...queryProcessor.getDateConditions(
|
339
230
|
req.query.date
|
340
231
|
),
|
341
|
-
...
|
232
|
+
...queryProcessor.getPeriodConditions(
|
342
233
|
req.query.period,
|
343
234
|
req.query.periodStart,
|
344
235
|
req.query.periodEnd
|
345
236
|
),
|
346
|
-
...
|
347
|
-
req.query.
|
237
|
+
...queryProcessor.getPhaseConditions(
|
238
|
+
req.query.phase
|
348
239
|
),
|
349
240
|
// Tickets and Participants
|
350
241
|
queryProcessor.getTicketsLookupStage(),
|
@@ -367,10 +258,12 @@ const middlewareFactory = (db) => {
|
|
367
258
|
queryProcessor.getProjectStage(),
|
368
259
|
// Pagination
|
369
260
|
...queryProcessorGlobals.getSortingOptions(
|
370
|
-
req.query
|
261
|
+
req.query.sortParam,
|
262
|
+
req.query.sortOrder
|
371
263
|
),
|
372
264
|
...queryProcessorGlobals.getPaginationOptions(
|
373
|
-
req.query
|
265
|
+
req.query.skip,
|
266
|
+
req.query.limit
|
374
267
|
)
|
375
268
|
];
|
376
269
|
try {
|
@@ -672,12 +565,9 @@ var event_model = (db) => {
|
|
672
565
|
"date.end": -1
|
673
566
|
});
|
674
567
|
applyCommonSchema(EventSchema);
|
675
|
-
applyEngagementSchema(EventSchema
|
568
|
+
applyEngagementSchema(EventSchema);
|
676
569
|
applyOwnershipSchema(EventSchema, db);
|
677
570
|
applyMetadataSchema(EventSchema);
|
678
|
-
EventSchema.post("aggregate", async function(docs) {
|
679
|
-
console.log(EventSchema);
|
680
|
-
});
|
681
571
|
const Event = db.mongoose.model("Event", EventSchema);
|
682
572
|
return Event;
|
683
573
|
};
|
package/dist/globals.server.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
const _commonjsHelpers = require("./_commonjsHelpers-3b53548e.js");
|
3
3
|
const require$$0 = require("sitemap");
|
4
4
|
const require$$1 = require("zlib");
|
5
|
-
const mailing$1 = require("./mailing-
|
5
|
+
const mailing$1 = require("./mailing-9659b3c4.js");
|
6
6
|
require("dotenv");
|
7
7
|
require("nodemailer");
|
8
8
|
require("axios");
|
package/dist/globals.server.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-83b1d755.mjs";
|
2
2
|
import require$$0 from "sitemap";
|
3
3
|
import require$$1 from "zlib";
|
4
|
-
import { m as mailing$1 } from "./mailing-
|
4
|
+
import { m as mailing$1 } from "./mailing-76895d59.mjs";
|
5
5
|
import "dotenv";
|
6
6
|
import "nodemailer";
|
7
7
|
import "axios";
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./PlaceholderUserpic-47f6f319.js"),l=require("./LabelGooglePlay-f80e5ff0.js"),i=require("./IconCross-5bf93179.js"),h=require("./IconChevronRight-a55f838e.js"),_=require("./IconEdit-c0469b45.js"),a=require("./SkeletonEventShort-6c9e3940.js"),d=require("./SkeletonBlogpost-95db0fa9.js"),u=require("./SkeletonOrganization-5c09cfc5.js"),g=require("./SkeletonEvent-eb284de8.js"),e=require("vue"),t=require("./_plugin-vue_export-helper-f246444f.js"),o=require("./dribbble-8e8e169b.js"),n=require("./IconCommunity-b339e806.js"),v={},m={fill:"none",height:"40",viewBox:"0 0 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg"},p=e.createElementVNode("path",{d:"m39.5494 28.7878c-.0507-.103-.0942-.1912-.1377-.2648-.6888-1.2576-2.0083-2.8095-3.9513-4.6408l-.0435-.0441-.0218-.0221-.0217-.0221h-.0218c-.8845-.8531-1.4428-1.4268-1.6748-1.721-.4277-.5589-.522-1.1253-.29-1.6989.1668-.434.7903-1.3533 1.8633-2.7507.5655-.7428 1.015-1.3386 1.3485-1.7872 2.3853-3.2214 3.4221-5.2807 3.1031-6.17066l-.1233-.20593c-.0797-.12503-.2972-.24271-.638-.34567-.348-.10297-.7902-.12503-1.3267-.05149l-5.9596.04413c-.0943-.03677-.232-.02942-.4133.00736-.1813.04413-.2683.06619-.2683.06619l-.1015.05148-.0797.0662c-.0725.04412-.145.11767-.2248.22064-.0797.10297-.1522.228-.203.36774-.6525 1.69161-1.3847 3.26551-2.2185 4.72171-.5075.8679-.9788 1.6181-1.4065 2.258-.4278.6398-.783 1.1032-1.073 1.4047-.2901.3016-.5511.5443-.7903.7208-.232.1838-.4133.2574-.5365.228-.1233-.0294-.2393-.0589-.3553-.0809-.1957-.1251-.348-.2942-.464-.5149-.116-.2206-.1957-.4927-.2392-.8163-.0435-.331-.0653-.6105-.0725-.8532-.0073-.2353 0-.5737.0072-1.0076.0145-.4339.0218-.7281.0218-.8826 0-.5295.0072-1.1105.029-1.7357.0217-.6251.0362-1.1179.0507-1.4783s.0218-.7502.0218-1.1547-.0218-.72076-.0725-.95611c-.0508-.228-.1233-.45599-.2175-.66928-.0943-.21329-.2393-.38245-.4278-.50748-.1885-.11768-.4205-.21329-.696-.28684-.7323-.16915-1.6603-.25741-2.7913-.27212-2.5666-.02942-4.2123.13974-4.9446.50748-.29.15445-.551.36038-.783.63251-.2465.3089-.2828.47806-.1015.50747.8265.12503 1.4138.42657 1.7618.90467l.1232.25c.0943.1839.1958.5075.29.9635.0943.4634.1595.9708.1885 1.5298.0653 1.0223.0653 1.8975 0 2.6256-.0725.7282-.1377 1.2945-.1957 1.699-.0653.4045-.1523.7355-.2828.9855-.1232.2501-.2102.4045-.2465.4634-.0435.0588-.0725.0882-.1015.1029-.1812.0662-.3625.103-.5582.103-.1958 0-.4278-.0956-.7033-.2942s-.5655-.4633-.8555-.809c-.2973-.3457-.6308-.8237-1.0078-1.4415-.3698-.6178-.7613-1.346-1.16-2.1844l-.3335-.6104c-.2103-.3898-.49303-.9635-.84829-1.7137-.3625-.7502-.67426-1.471-.94976-2.177-.10875-.2942-.27551-.51484-.50026-.66929l-.1015-.06619c-.06525-.05884-.18126-.11768-.33351-.17652-.15225-.06619-.31175-.11032-.47851-.13974l-5.6696.04413c-.580007 0-.971514.13239-1.181767.39716l-.0797516.12503c-.058001.09561-.0797514.20593-.0797514.36038 0 .15444.0435008.34564.123252.56634.826515 1.9784 1.732778 3.8759 2.704298 5.7146s1.81978 3.3097 2.53754 4.4276c.71777 1.1179 1.45003 2.177 2.19679 3.1699.74677.9929 1.23977 1.6327 1.47903 1.9122.23925.2795.43501.4928.57276.6325l.51473.5075c.3335.3383.8193.7355 1.4573 1.2062.6453.4707 1.3558.934 2.1315 1.39.7831.456 1.6893.8238 2.7188 1.1106 1.0368.2868 2.0446.4045 3.0233.3457h2.3781c.4857-.0441.8482-.1986 1.0948-.4634l.0797-.1029c.058-.0809.1088-.2133.1523-.3898.0507-.1766.0725-.3678.0725-.5811-.0145-.6031.029-1.1473.1377-1.6254.1015-.4854.2175-.8458.3553-1.0885.1305-.2427.2827-.4486.4422-.6178.1668-.1691.2828-.2721.3553-.3015.0652-.0368.1232-.0589.1667-.0736.3335-.1103.7178 0 1.1673.3236.4495.331.87.7355 1.2615 1.2209.3915.4855.8628 1.0223 1.4211 1.6254.551.6031 1.0367 1.0518 1.45 1.346l.4132.25c.2755.1692.638.3236 1.0803.4634.4423.1397.8265.1765 1.16.1029l5.2999-.0809c.522 0 .9352-.0882 1.218-.2647.29-.1766.464-.3678.5147-.5811.058-.2133.058-.4486.0073-.7134-.0435-.2721-.0943-.456-.1378-.5663z",fill:"#fff"},null,-1),f=[p];function I(c,r){return e.openBlock(),e.createElementBlock("svg",m,f)}const k=t._export_sfc(v,[["render",I]]),w={},C={fill:"none",height:"40",viewBox:"0 0 40 40",width:"40",xmlns:"http://www.w3.org/2000/svg"},b=e.createElementVNode("path",{d:"m33.8716 34.0867h-5.8864v-9.2823c0-2.2133-.0442-5.0622-3.0702-5.0622-3.068 0-3.5362 2.4089-3.5362 4.9v9.4445h-5.8886v-19.0867h5.6544v2.6h.0773c.7908-1.4978 2.7124-3.0822 5.5838-3.0822 5.9637 0 7.0681 3.9511 7.0681 9.0911v10.4778zm-25.02986-21.6978c-.44937.0006-.89443-.0881-1.30967-.2609s-.7925-.4264-1.11014-.7461c-.31765-.3198-.56944-.6995-.74093-1.1174-.17149-.41791-.25932-.86573-.25845-1.31783.00044-.68037.2014-1.34533.57746-1.91079.37607-.56546.91036-1.00603 1.5353-1.26599s1.31247-.32763 1.97564-.19447c.66315.13317 1.27225.46119 1.75005.94259.4779.48141.8032 1.09457.9347 1.76195s.0633 1.359-.1959 1.98744c-.2592.6284-.6978 1.1654-1.2603 1.543s-1.22372.5789-1.89997.5785zm2.95096 21.6978h-5.9041v-19.0867h5.9063v19.0867zm25.0276-34.0867h-33.88483c-1.62566 0-2.93547 1.28889-2.93547 2.88222v34.23558c0 1.5933 1.31201 2.8822 2.93326 2.8822h33.87824c1.6212 0 2.9465-1.2889 2.9465-2.8822v-34.23558c0-1.59333-1.3253-2.88222-2.9465-2.88222h.0066z",fill:"#fff"},null,-1),S=[b];function E(c,r){return e.openBlock(),e.createElementBlock("svg",C,S)}const q=t._export_sfc(w,[["render",E]]),x={},B={width:"21",height:"14",viewBox:"0 0 21 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$=e.createElementVNode("path",{d:"M19.6758 2.64453C19.4648 1.80078 18.7969 1.13281 17.9883 0.921875C16.4766 0.5 10.5 0.5 10.5 0.5C10.5 0.5 4.48828 0.5 2.97656 0.921875C2.16797 1.13281 1.5 1.80078 1.28906 2.64453C0.867188 4.12109 0.867188 7.28516 0.867188 7.28516C0.867188 7.28516 0.867188 10.4141 1.28906 11.9258C1.5 12.7695 2.16797 13.4023 2.97656 13.6133C4.48828 14 10.5 14 10.5 14C10.5 14 16.4766 14 17.9883 13.6133C18.7969 13.4023 19.4648 12.7695 19.6758 11.9258C20.0977 10.4141 20.0977 7.28516 20.0977 7.28516C20.0977 7.28516 20.0977 4.12109 19.6758 2.64453ZM8.53125 10.1328V4.4375L13.5234 7.28516L8.53125 10.1328Z",fill:"white"},null,-1),L=[$];function y(c,r){return e.openBlock(),e.createElementBlock("svg",B,L)}const z=t._export_sfc(x,[["render",y]]);exports.PlaceholderUserpic=s.PlaceholderUserpic;exports.LabelAppStore=l.LabelAppStore;exports.LabelGooglePlay=l.LabelGooglePlay;exports.IconCross=i.IconCross;exports.IconChevronRight=h.IconChevronRight;exports.IconEdit=_.IconEdit;exports.SkeletonEventShort=a.SkeletonEventShort;exports.SkeletonBlogpost=d.SkeletonBlogpost;exports.SkeletonOrganization=u.SkeletonOrganization;exports.SkeletonEvent=g.SkeletonEvent;exports.Dribbble=o.IconDribble;exports.Facebook=o.IconFacebook;exports.Instagram=o.IconInstagram;exports.Line=o.IconLine;exports.Reddit=o.IconReddit;exports.Telegram=o.IconTelegram;exports.Twitter=o.IconTwitter;exports.IconCommunity=n.IconCommunity;exports.IconEvents=n.IconEvents;exports.IconGroups=n.IconGroups;exports.Linkedin=q;exports.Vk=k;exports.Youtube=z;
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import { P as z } from "./PlaceholderUserpic-14c6ea7e.mjs";
|
2
|
+
import { L as E, a as y } from "./LabelGooglePlay-24feb437.mjs";
|
3
|
+
import { I as V } from "./IconCross-84cb1292.mjs";
|
4
|
+
import { I as M } from "./IconChevronRight-fae9d012.mjs";
|
5
|
+
import { I as T } from "./IconEdit-9edfd74d.mjs";
|
6
|
+
import { S as A } from "./SkeletonEventShort-f030e56f.mjs";
|
7
|
+
import { S as F } from "./SkeletonBlogpost-e0621af7.mjs";
|
8
|
+
import { S as O } from "./SkeletonOrganization-8690422d.mjs";
|
9
|
+
import { S as Y } from "./SkeletonEvent-8690422d.mjs";
|
10
|
+
import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
|
11
|
+
import { _ as s } from "./_plugin-vue_export-helper-dad06003.mjs";
|
12
|
+
import { f as q, a as H, b as J, e as K, d as Q, I as W, c as X } from "./dribbble-ae37c2ac.mjs";
|
13
|
+
import { I as e1, a as t1, b as s1 } from "./IconCommunity-468dc457.mjs";
|
14
|
+
const r = {}, l = {
|
15
|
+
fill: "none",
|
16
|
+
height: "40",
|
17
|
+
viewBox: "0 0 40 40",
|
18
|
+
width: "40",
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
20
|
+
}, a = /* @__PURE__ */ t("path", {
|
21
|
+
d: "m39.5494 28.7878c-.0507-.103-.0942-.1912-.1377-.2648-.6888-1.2576-2.0083-2.8095-3.9513-4.6408l-.0435-.0441-.0218-.0221-.0217-.0221h-.0218c-.8845-.8531-1.4428-1.4268-1.6748-1.721-.4277-.5589-.522-1.1253-.29-1.6989.1668-.434.7903-1.3533 1.8633-2.7507.5655-.7428 1.015-1.3386 1.3485-1.7872 2.3853-3.2214 3.4221-5.2807 3.1031-6.17066l-.1233-.20593c-.0797-.12503-.2972-.24271-.638-.34567-.348-.10297-.7902-.12503-1.3267-.05149l-5.9596.04413c-.0943-.03677-.232-.02942-.4133.00736-.1813.04413-.2683.06619-.2683.06619l-.1015.05148-.0797.0662c-.0725.04412-.145.11767-.2248.22064-.0797.10297-.1522.228-.203.36774-.6525 1.69161-1.3847 3.26551-2.2185 4.72171-.5075.8679-.9788 1.6181-1.4065 2.258-.4278.6398-.783 1.1032-1.073 1.4047-.2901.3016-.5511.5443-.7903.7208-.232.1838-.4133.2574-.5365.228-.1233-.0294-.2393-.0589-.3553-.0809-.1957-.1251-.348-.2942-.464-.5149-.116-.2206-.1957-.4927-.2392-.8163-.0435-.331-.0653-.6105-.0725-.8532-.0073-.2353 0-.5737.0072-1.0076.0145-.4339.0218-.7281.0218-.8826 0-.5295.0072-1.1105.029-1.7357.0217-.6251.0362-1.1179.0507-1.4783s.0218-.7502.0218-1.1547-.0218-.72076-.0725-.95611c-.0508-.228-.1233-.45599-.2175-.66928-.0943-.21329-.2393-.38245-.4278-.50748-.1885-.11768-.4205-.21329-.696-.28684-.7323-.16915-1.6603-.25741-2.7913-.27212-2.5666-.02942-4.2123.13974-4.9446.50748-.29.15445-.551.36038-.783.63251-.2465.3089-.2828.47806-.1015.50747.8265.12503 1.4138.42657 1.7618.90467l.1232.25c.0943.1839.1958.5075.29.9635.0943.4634.1595.9708.1885 1.5298.0653 1.0223.0653 1.8975 0 2.6256-.0725.7282-.1377 1.2945-.1957 1.699-.0653.4045-.1523.7355-.2828.9855-.1232.2501-.2102.4045-.2465.4634-.0435.0588-.0725.0882-.1015.1029-.1812.0662-.3625.103-.5582.103-.1958 0-.4278-.0956-.7033-.2942s-.5655-.4633-.8555-.809c-.2973-.3457-.6308-.8237-1.0078-1.4415-.3698-.6178-.7613-1.346-1.16-2.1844l-.3335-.6104c-.2103-.3898-.49303-.9635-.84829-1.7137-.3625-.7502-.67426-1.471-.94976-2.177-.10875-.2942-.27551-.51484-.50026-.66929l-.1015-.06619c-.06525-.05884-.18126-.11768-.33351-.17652-.15225-.06619-.31175-.11032-.47851-.13974l-5.6696.04413c-.580007 0-.971514.13239-1.181767.39716l-.0797516.12503c-.058001.09561-.0797514.20593-.0797514.36038 0 .15444.0435008.34564.123252.56634.826515 1.9784 1.732778 3.8759 2.704298 5.7146s1.81978 3.3097 2.53754 4.4276c.71777 1.1179 1.45003 2.177 2.19679 3.1699.74677.9929 1.23977 1.6327 1.47903 1.9122.23925.2795.43501.4928.57276.6325l.51473.5075c.3335.3383.8193.7355 1.4573 1.2062.6453.4707 1.3558.934 2.1315 1.39.7831.456 1.6893.8238 2.7188 1.1106 1.0368.2868 2.0446.4045 3.0233.3457h2.3781c.4857-.0441.8482-.1986 1.0948-.4634l.0797-.1029c.058-.0809.1088-.2133.1523-.3898.0507-.1766.0725-.3678.0725-.5811-.0145-.6031.029-1.1473.1377-1.6254.1015-.4854.2175-.8458.3553-1.0885.1305-.2427.2827-.4486.4422-.6178.1668-.1691.2828-.2721.3553-.3015.0652-.0368.1232-.0589.1667-.0736.3335-.1103.7178 0 1.1673.3236.4495.331.87.7355 1.2615 1.2209.3915.4855.8628 1.0223 1.4211 1.6254.551.6031 1.0367 1.0518 1.45 1.346l.4132.25c.2755.1692.638.3236 1.0803.4634.4423.1397.8265.1765 1.16.1029l5.2999-.0809c.522 0 .9352-.0882 1.218-.2647.29-.1766.464-.3678.5147-.5811.058-.2133.058-.4486.0073-.7134-.0435-.2721-.0943-.456-.1378-.5663z",
|
22
|
+
fill: "#fff"
|
23
|
+
}, null, -1), i = [
|
24
|
+
a
|
25
|
+
];
|
26
|
+
function h(c, n) {
|
27
|
+
return o(), e("svg", l, i);
|
28
|
+
}
|
29
|
+
const k = /* @__PURE__ */ s(r, [["render", h]]), _ = {}, f = {
|
30
|
+
fill: "none",
|
31
|
+
height: "40",
|
32
|
+
viewBox: "0 0 40 40",
|
33
|
+
width: "40",
|
34
|
+
xmlns: "http://www.w3.org/2000/svg"
|
35
|
+
}, m = /* @__PURE__ */ t("path", {
|
36
|
+
d: "m33.8716 34.0867h-5.8864v-9.2823c0-2.2133-.0442-5.0622-3.0702-5.0622-3.068 0-3.5362 2.4089-3.5362 4.9v9.4445h-5.8886v-19.0867h5.6544v2.6h.0773c.7908-1.4978 2.7124-3.0822 5.5838-3.0822 5.9637 0 7.0681 3.9511 7.0681 9.0911v10.4778zm-25.02986-21.6978c-.44937.0006-.89443-.0881-1.30967-.2609s-.7925-.4264-1.11014-.7461c-.31765-.3198-.56944-.6995-.74093-1.1174-.17149-.41791-.25932-.86573-.25845-1.31783.00044-.68037.2014-1.34533.57746-1.91079.37607-.56546.91036-1.00603 1.5353-1.26599s1.31247-.32763 1.97564-.19447c.66315.13317 1.27225.46119 1.75005.94259.4779.48141.8032 1.09457.9347 1.76195s.0633 1.359-.1959 1.98744c-.2592.6284-.6978 1.1654-1.2603 1.543s-1.22372.5789-1.89997.5785zm2.95096 21.6978h-5.9041v-19.0867h5.9063v19.0867zm25.0276-34.0867h-33.88483c-1.62566 0-2.93547 1.28889-2.93547 2.88222v34.23558c0 1.5933 1.31201 2.8822 2.93326 2.8822h33.87824c1.6212 0 2.9465-1.2889 2.9465-2.8822v-34.23558c0-1.59333-1.3253-2.88222-2.9465-2.88222h.0066z",
|
37
|
+
fill: "#fff"
|
38
|
+
}, null, -1), d = [
|
39
|
+
m
|
40
|
+
];
|
41
|
+
function p(c, n) {
|
42
|
+
return o(), e("svg", f, d);
|
43
|
+
}
|
44
|
+
const b = /* @__PURE__ */ s(_, [["render", p]]), v = {}, x = {
|
45
|
+
width: "21",
|
46
|
+
height: "14",
|
47
|
+
viewBox: "0 0 21 14",
|
48
|
+
fill: "none",
|
49
|
+
xmlns: "http://www.w3.org/2000/svg"
|
50
|
+
}, w = /* @__PURE__ */ t("path", {
|
51
|
+
d: "M19.6758 2.64453C19.4648 1.80078 18.7969 1.13281 17.9883 0.921875C16.4766 0.5 10.5 0.5 10.5 0.5C10.5 0.5 4.48828 0.5 2.97656 0.921875C2.16797 1.13281 1.5 1.80078 1.28906 2.64453C0.867188 4.12109 0.867188 7.28516 0.867188 7.28516C0.867188 7.28516 0.867188 10.4141 1.28906 11.9258C1.5 12.7695 2.16797 13.4023 2.97656 13.6133C4.48828 14 10.5 14 10.5 14C10.5 14 16.4766 14 17.9883 13.6133C18.7969 13.4023 19.4648 12.7695 19.6758 11.9258C20.0977 10.4141 20.0977 7.28516 20.0977 7.28516C20.0977 7.28516 20.0977 4.12109 19.6758 2.64453ZM8.53125 10.1328V4.4375L13.5234 7.28516L8.53125 10.1328Z",
|
52
|
+
fill: "white"
|
53
|
+
}, null, -1), g = [
|
54
|
+
w
|
55
|
+
];
|
56
|
+
function u(c, n) {
|
57
|
+
return o(), e("svg", x, g);
|
58
|
+
}
|
59
|
+
const S = /* @__PURE__ */ s(v, [["render", u]]);
|
60
|
+
export {
|
61
|
+
q as Dribbble,
|
62
|
+
H as Facebook,
|
63
|
+
M as IconChevronRight,
|
64
|
+
e1 as IconCommunity,
|
65
|
+
V as IconCross,
|
66
|
+
T as IconEdit,
|
67
|
+
t1 as IconEvents,
|
68
|
+
s1 as IconGroups,
|
69
|
+
J as Instagram,
|
70
|
+
E as LabelAppStore,
|
71
|
+
y as LabelGooglePlay,
|
72
|
+
K as Line,
|
73
|
+
b as Linkedin,
|
74
|
+
z as PlaceholderUserpic,
|
75
|
+
Q as Reddit,
|
76
|
+
F as SkeletonBlogpost,
|
77
|
+
Y as SkeletonEvent,
|
78
|
+
A as SkeletonEventShort,
|
79
|
+
O as SkeletonOrganization,
|
80
|
+
W as Telegram,
|
81
|
+
X as Twitter,
|
82
|
+
k as Vk,
|
83
|
+
S as Youtube
|
84
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const a=require("./globals-928eb13c.js"),n={ru:{validation:{length:"Содержимое должно быть не менее 1 символа.",maxLength:"Содержимое не должно превышать {maxLength} символов.",phone:"Неверный формат номера",email:"Неверный формат email",password:{minLength:"Пароль должен быть больше 8 символов",lowercase:"Должен быть символ в нижнем регистре",uppercase:"Должен быть символ в верхнем регистре",number:"Должна быть 1 цифра",specialChar:"Должен быть 1 специальный символ"}}},en:{validation:{length:"Content must be at least 1 character long.",maxLength:"Content should not exceed {maxLength} characters.",phone:"Invalid number format",email:"Invalid email format",password:{minLength:"Password must be longer than 8 characters",lowercase:"Must contain a lowercase character",uppercase:"Must contain an uppercase character",number:"Must contain at least 1 digit",specialChar:"Must contain at least 1 special character"}}}};a.i18n.global.mergeLocaleMessage("ru",n.ru);a.i18n.global.mergeLocaleMessage("en",n.en);function o(e){return console.log(e),console.log(e.valid),e.valid?{status:!0,message:null}:{status:!1,message:a.i18n.global.t("validation.phone")}}function r(e){return/^[\w-\.]+@([\w-]+\.)+[\w-]{2,12}$/.test(e)?{status:!0,message:null}:{status:!1,message:a.i18n.global.t("validation.email")}}function u(e){return e.length<8?{status:!1,message:a.i18n.global.t("validation.password.minLength")}:{status:!0,message:null}}async function c(e,t,s,i){if(s){const l=t(s);if(!l.status)throw e.value=l,setTimeout(()=>{e.value=null},3e3),new Error(i)}else throw e.value={status:!1,message:a.i18n.global.t("validation.length")},setTimeout(()=>{e.value=null},3e3),new Error(a.i18n.global.t("validation.length"))}exports.validateEmail=r;exports.validateInputs=c;exports.validatePassword=u;exports.validatePhone=o;
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { i as e } from "./globals-96ba60e4.mjs";
|
2
|
+
const n = {
|
3
|
+
ru: {
|
4
|
+
validation: {
|
5
|
+
length: "Содержимое должно быть не менее 1 символа.",
|
6
|
+
maxLength: "Содержимое не должно превышать {maxLength} символов.",
|
7
|
+
phone: "Неверный формат номера",
|
8
|
+
email: "Неверный формат email",
|
9
|
+
password: {
|
10
|
+
minLength: "Пароль должен быть больше 8 символов",
|
11
|
+
lowercase: "Должен быть символ в нижнем регистре",
|
12
|
+
uppercase: "Должен быть символ в верхнем регистре",
|
13
|
+
number: "Должна быть 1 цифра",
|
14
|
+
specialChar: "Должен быть 1 специальный символ"
|
15
|
+
}
|
16
|
+
}
|
17
|
+
},
|
18
|
+
en: {
|
19
|
+
validation: {
|
20
|
+
length: "Content must be at least 1 character long.",
|
21
|
+
maxLength: "Content should not exceed {maxLength} characters.",
|
22
|
+
phone: "Invalid number format",
|
23
|
+
email: "Invalid email format",
|
24
|
+
password: {
|
25
|
+
minLength: "Password must be longer than 8 characters",
|
26
|
+
lowercase: "Must contain a lowercase character",
|
27
|
+
uppercase: "Must contain an uppercase character",
|
28
|
+
number: "Must contain at least 1 digit",
|
29
|
+
specialChar: "Must contain at least 1 special character"
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
};
|
34
|
+
e.global.mergeLocaleMessage("ru", n.ru);
|
35
|
+
e.global.mergeLocaleMessage("en", n.en);
|
36
|
+
function i(a) {
|
37
|
+
return console.log(a), console.log(a.valid), a.valid ? {
|
38
|
+
status: !0,
|
39
|
+
message: null
|
40
|
+
} : {
|
41
|
+
status: !1,
|
42
|
+
message: e.global.t("validation.phone")
|
43
|
+
};
|
44
|
+
}
|
45
|
+
function u(a) {
|
46
|
+
return /^[\w-\.]+@([\w-]+\.)+[\w-]{2,12}$/.test(a) ? {
|
47
|
+
status: !0,
|
48
|
+
message: null
|
49
|
+
} : {
|
50
|
+
status: !1,
|
51
|
+
message: e.global.t("validation.email")
|
52
|
+
};
|
53
|
+
}
|
54
|
+
function c(a) {
|
55
|
+
return a.length < 8 ? {
|
56
|
+
status: !1,
|
57
|
+
message: e.global.t("validation.password.minLength")
|
58
|
+
} : {
|
59
|
+
status: !0,
|
60
|
+
message: null
|
61
|
+
};
|
62
|
+
}
|
63
|
+
async function g(a, t, s, o) {
|
64
|
+
if (s) {
|
65
|
+
const l = t(s);
|
66
|
+
if (!l.status)
|
67
|
+
throw a.value = l, setTimeout(() => {
|
68
|
+
a.value = null;
|
69
|
+
}, 3e3), new Error(o);
|
70
|
+
} else
|
71
|
+
throw a.value = {
|
72
|
+
status: !1,
|
73
|
+
message: e.global.t("validation.length")
|
74
|
+
}, setTimeout(() => {
|
75
|
+
a.value = null;
|
76
|
+
}, 3e3), new Error(e.global.t("validation.length"));
|
77
|
+
}
|
78
|
+
export {
|
79
|
+
c as a,
|
80
|
+
i as b,
|
81
|
+
u as c,
|
82
|
+
g as v
|
83
|
+
};
|