@ozdao/prometheus-framework 0.1.36 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-568b55bb.js +1 -0
- package/dist/BackofficeGallery-b4105137.mjs +306 -0
- package/dist/BlockTags-8cddaef7.js +1 -0
- package/dist/BlockTags-ee310572.mjs +853 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Button-7643c9aa.js +1 -0
- package/dist/Button-9e1a9284.mjs +226 -0
- package/dist/ButtonToggleMembership-15f149cb.js +1 -0
- package/dist/ButtonToggleMembership-3bb9139e.mjs +90 -0
- package/dist/CardBlogpost-38016b80.mjs +246 -0
- package/dist/CardBlogpost-cc208f93.js +1 -0
- package/dist/CardOrganization-d93c9bdb.js +1 -0
- package/dist/CardOrganization-e920be73.mjs +234 -0
- package/dist/CardProduct-92affca1.js +1 -0
- package/dist/CardProduct-fca53299.mjs +193 -0
- package/dist/Checkbox-5dbe7b23.mjs +62 -0
- package/dist/Checkbox-76f09248.js +1 -0
- package/dist/Chips-9d81b215.mjs +214 -0
- package/dist/Chips-d47704e6.js +1 -0
- package/dist/Community-87522a04.mjs +132 -0
- package/dist/Community-aef23aee.js +1 -0
- package/dist/Dashboard-91d73bc5.js +1 -0
- package/dist/Dashboard-ea9035bc.mjs +152 -0
- package/dist/Dropdown-31115457.js +1 -0
- package/dist/Dropdown-cab3605b.mjs +146 -0
- package/dist/EULA-aba6a807.js +1 -0
- package/dist/EditOrder-94bbebff.mjs +221 -0
- package/dist/EditOrder-c070d474.js +1 -0
- package/dist/EmptyState-d65bab5b.js +1 -0
- package/dist/EmptyState-e404b05d.mjs +36 -0
- package/dist/Events-cdfbca78.js +1 -0
- package/dist/Events-e9dd58f7.mjs +123 -0
- package/dist/Feed-22464fcd.js +1 -0
- package/dist/Feed-6e96d3dd.mjs +124 -0
- package/dist/Feed-793b3eef.mjs +146 -0
- package/dist/Feed-7b80704d.mjs +361 -0
- package/dist/Feed-98b47c6f.js +1 -0
- package/dist/Feed-b30ef609.js +1 -0
- package/dist/Feed-c5d4390a.js +1 -0
- package/dist/Feed-d114330c.mjs +112 -0
- package/dist/Field-e2a43424.js +1 -0
- package/dist/Field-e5ad88d3.mjs +75 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
- package/dist/IconChevronRight-a55f838e.js +1 -0
- package/dist/IconChevronRight-fae9d012.mjs +28 -0
- package/dist/IconCommunity-468dc457.mjs +65 -0
- package/dist/IconCommunity-b339e806.js +1 -0
- package/dist/IconCross-5bf93179.js +1 -0
- package/dist/IconCross-84cb1292.mjs +28 -0
- package/dist/IconEdit-9edfd74d.mjs +21 -0
- package/dist/IconEdit-c0469b45.js +1 -0
- package/dist/Image-245c003d.mjs +480 -0
- package/dist/Image-35d31936.js +9 -0
- package/dist/LabelGooglePlay-24feb437.mjs +31 -0
- package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
- package/dist/LeftoverAdd-08d9fb54.mjs +228 -0
- package/dist/LeftoverAdd-fc673884.js +1 -0
- package/dist/Leftovers-296c0042.js +1 -0
- package/dist/Leftovers-685d9f19.mjs +136 -0
- package/dist/Loader-21f016da.js +1 -0
- package/dist/Loader-cd422786.mjs +41 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Members-2cb2ff58.mjs +114 -0
- package/dist/Members-85534d1f.js +1 -0
- package/dist/Menu-b5d6a0c7.js +1 -0
- package/dist/Menu-dd7645c1.mjs +13 -0
- package/dist/MenuItem-56ae7f94.js +1 -0
- package/dist/MenuItem-6296d02f.mjs +63 -0
- package/dist/Orders-b64e8cb9.js +1 -0
- package/dist/Orders-ff30db05.mjs +75 -0
- package/dist/Organizations-0cb37d68.js +1 -0
- package/dist/Organizations-d6ef2113.mjs +73 -0
- package/dist/Payments-53e5fecf.js +1 -0
- package/dist/Payments-82e545e1.mjs +87 -0
- package/dist/PlaceholderUserpic-47f6f319.js +1 -0
- package/dist/Popup-0915427c.mjs +74 -0
- package/dist/Popup-795f5c88.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Product-5994a8c9.mjs +653 -0
- package/dist/Product-68fa1e9e.js +7 -0
- package/dist/ProductEdit-64207814.mjs +296 -0
- package/dist/ProductEdit-a434240f.js +1 -0
- package/dist/ProductsBackoffice-0c93f9b6.js +1 -0
- package/dist/ProductsBackoffice-3d987c60.mjs +86 -0
- package/dist/ProfileBlogposts-0b81d964.js +1 -0
- package/dist/ProfileBlogposts-b59992cf.mjs +79 -0
- package/dist/ProfileEvents-3f7ca2c1.js +1 -0
- package/dist/ProfileEvents-bbdd62e7.mjs +70 -0
- package/dist/ProfileOrganizations-4734c02e.mjs +73 -0
- package/dist/ProfileOrganizations-d55ee487.js +1 -0
- package/dist/Publics-0762210a.js +1 -0
- package/dist/Publics-660e851c.mjs +45 -0
- package/dist/SelectMulti-58704d69.mjs +1038 -0
- package/dist/SelectMulti-c25765cf.js +1 -0
- package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
- package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
- package/dist/SkeletonEvent-8690422d.mjs +16 -0
- package/dist/SkeletonEvent-eb284de8.js +1 -0
- package/dist/SkeletonEventShort-6c9e3940.js +1 -0
- package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
- package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
- package/dist/SkeletonOrganization-8690422d.mjs +16 -0
- package/dist/Socials-31c06635.mjs +74 -0
- package/dist/Socials-cceaeaf2.js +1 -0
- package/dist/Tab-054b61f7.mjs +46 -0
- package/dist/Tab-2c1e4224.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/addMembersQuantity-7147aa4a.js +89 -0
- package/dist/addMembersQuantity-eac999f0.mjs +90 -0
- package/dist/auth-06d35b82.js +7 -0
- package/dist/auth-ec618cb3.mjs +627 -0
- package/dist/auth.client.cjs +7 -7
- package/dist/auth.client.js +22 -19
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/auth.validation-0ce9e326.js +1 -0
- package/dist/auth.validation-ba3606bf.mjs +24 -0
- package/dist/backoffice.client.cjs +1 -1
- package/dist/backoffice.client.js +235 -59
- package/dist/categories-82b28618.js +1 -0
- package/dist/categories-df3240a7.mjs +122 -0
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +233 -227
- package/dist/community.server.js +217 -189
- package/dist/community.server.mjs +217 -189
- package/dist/components/Field/Field.vue.d.ts +58 -2
- package/dist/components/Field/Field.vue.d.ts.map +1 -1
- package/dist/components/UploadImage/UploadImage.vue.d.ts +1 -1
- package/dist/dribbble-8e8e169b.js +1 -0
- package/dist/dribbble-ae37c2ac.mjs +127 -0
- package/dist/events.client.cjs +2 -2
- package/dist/events.client.js +1793 -1888
- package/dist/events.server.js +100 -210
- package/dist/events.server.mjs +100 -210
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/icons.client.cjs +1 -0
- package/dist/icons.client.js +84 -0
- package/dist/inputs.validation-d7cef32b.js +1 -0
- package/dist/inputs.validation-db65277a.mjs +83 -0
- package/dist/landing.client.cjs +1 -1
- package/dist/landing.client.js +40 -64
- package/dist/leftovers-66951de6.js +1 -0
- package/dist/leftovers-be37c7a5.mjs +67 -0
- package/dist/legal.client.cjs +1 -1
- package/dist/legal.client.js +7 -4
- package/dist/mailing-76895d59.mjs +50 -0
- package/dist/mailing-9659b3c4.js +49 -0
- package/dist/main.css +1 -1
- package/dist/memberships-12210953.mjs +68 -0
- package/dist/memberships-393765d8.js +1 -0
- package/dist/metadata.schema-147f9902.mjs +212 -0
- package/dist/metadata.schema-93397f9f.js +211 -0
- package/dist/metadata.schema-a539dd65.mjs +210 -0
- package/dist/metadata.schema-e4fe5c57.js +209 -0
- package/dist/modules/community/components/blocks/FooterBlogpost.vue.d.ts +1 -1
- package/dist/modules/community/components/sections/Feed.vue.d.ts +4 -3
- package/dist/modules/events/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/events/components/sections/List.vue.d.ts +3 -3
- package/dist/modules/globals/components/blocks/CardFooter.vue.d.ts +8 -0
- package/dist/modules/globals/components/blocks/CardHeader.vue.d.ts +15 -0
- package/dist/modules/globals/components/sections/Feed.vue.d.ts +69 -0
- package/dist/modules/orders/components/pages/EditOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Favorites.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/History.vue.d.ts +6 -0
- package/dist/modules/orders/components/pages/Orders.vue.d.ts +2 -0
- package/dist/modules/orders/components/pages/ViewOrder.vue.d.ts +6 -0
- package/dist/modules/orders/components/sections/Form.vue.d.ts +1 -0
- package/dist/modules/organizations/components/blocks/CardDepartment.vue.d.ts +7 -0
- package/dist/modules/organizations/components/blocks/User.vue.d.ts +1 -1
- package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +1 -1
- package/dist/modules/organizations/components/pages/Members.vue.d.ts +2 -0
- package/dist/modules/organizations/components/sections/Department2.vue.d.ts +7 -0
- package/dist/modules/organizations/components/sections/Feed.vue.d.ts +4 -4
- package/dist/modules/organizations/components/sections/FeedDepartments.vue.d.ts +8 -0
- package/dist/modules/payments/components/pages/Payments.vue.d.ts +2 -0
- package/dist/modules/products/components/blocks/CardLeftover.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/CardPosition.vue.d.ts +11 -0
- package/dist/modules/products/components/blocks/CardProduct.vue.d.ts +6 -0
- package/dist/modules/products/components/blocks/LeftoverPositions.vue.d.ts +0 -1
- package/dist/modules/products/components/pages/ProductsBackoffice.vue.d.ts +2 -0
- package/dist/modules/products/components/sections/FilterProducts.vue.d.ts +9 -0
- package/dist/modules/products/components/sections/SortProducts.vue.d.ts +10 -0
- package/dist/modules/reports/components/sections/FormReport.vue.d.ts +3 -3
- package/dist/modules/spots/components/blocks/CardSpot.vue.d.ts +7 -0
- package/dist/modules/spots/components/blocks/SpotMemberModify.vue.d.ts +11 -0
- package/dist/modules/spots/components/blocks/SpotSub.vue.d.ts +6 -0
- package/dist/modules/spots/components/pages/Spot.vue.d.ts +7 -0
- package/dist/modules/spots/components/pages/SpotEdit.vue.d.ts +2 -0
- package/dist/modules/spots/components/sections/Feed.vue.d.ts +8 -0
- package/dist/modules/spots/components/sections/PlaceModify.vue.d.ts +9 -0
- package/dist/modules/spots/components/sections/Places.vue.d.ts +9 -0
- package/dist/modules/wallet/components/pages/Wallet.vue.d.ts +2 -0
- package/dist/orders-13c10d49.mjs +85 -0
- package/dist/orders-37f041aa.js +1 -0
- package/dist/organizations-4d18a2e2.js +1 -0
- package/dist/organizations-6ed907e3.mjs +122 -0
- package/dist/organizations.client-01593e4d.js +3 -0
- package/dist/organizations.client-1b9fa66e.mjs +2997 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +75 -51
- package/dist/organizations.server.js +9 -20
- package/dist/organizations.server.mjs +9 -20
- package/dist/products-7960bbd4.js +1 -0
- package/dist/products-bf5783aa.mjs +108 -0
- package/dist/prometheus-framework.cjs.js +17 -17
- package/dist/prometheus-framework.es.js +771 -758
- package/dist/states.validation-03f7cd49.js +1 -0
- package/dist/states.validation-50e3a5a0.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +212 -256
- package/dist/users.server.js +1 -1
- package/dist/users.server.mjs +1 -1
- package/package.json +5 -1
- package/src/components/Field/Field.vue +34 -9
- package/src/components/SelectMulti/SelectMulti.vue +18 -22
- package/src/modules/auth/store/auth.js +34 -15
- package/src/modules/backoffice/components/pages/Dashboard.vue +91 -0
- package/src/modules/backoffice/router/admin.js +0 -28
- package/src/modules/backoffice/router/backoffice.js +131 -4
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/pages/Blog.vue +1 -0
- package/src/modules/community/components/sections/Comments.vue +1 -1
- package/src/modules/community/components/sections/Feed.vue +6 -0
- package/src/modules/community/controllers/blog.controller.js +129 -285
- package/src/modules/community/controllers/reactions.controller.js +2 -0
- package/src/modules/community/controllers/utils/queryProcessor.js +56 -0
- package/src/modules/community/controllers/utils/queryProcessorReactions.js +63 -0
- package/src/modules/community/store/blogposts.js +5 -5
- package/src/modules/events/components/blocks/CardEvent.vue +2 -3
- package/src/modules/events/components/pages/Events.vue +4 -4
- package/src/modules/events/components/sections/Feed.vue +4 -4
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/events/controllers/events.controller.js +8 -6
- package/src/modules/events/controllers/utils/queryProcessor.js +111 -1
- package/src/modules/events/models/event.model.js +0 -4
- package/src/modules/events/store/events.js +5 -7
- package/src/{components/CardHeader → modules/globals/components/blocks}/CardHeader.vue +31 -4
- package/src/modules/globals/components/sections/Feed.vue +136 -0
- package/src/modules/globals/controllers/utils/queryProcessor.js +19 -117
- package/src/modules/globals/models/engagement.schema.js +29 -25
- package/src/modules/globals/utils/mailing.js +1 -1
- package/src/modules/icons/icons.client.js +51 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
- package/src/modules/marketplace/components/pages/Catalog.vue +3 -4
- package/src/modules/marketplace/router/marketplace.js +0 -11
- package/src/modules/middlewares/client/auth.validation.js +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -2
- package/src/modules/orders/components/pages/EditOrder.vue +238 -0
- package/src/modules/{backoffice → orders}/components/pages/Favorites.vue +2 -2
- package/src/modules/orders/components/pages/Order.vue +28 -34
- package/src/modules/orders/components/pages/Orders.vue +90 -0
- package/src/modules/{backoffice/components/pages/History.vue → orders/components/pages/ViewOrder.vue} +0 -8
- package/src/modules/orders/components/sections/Form.vue +52 -34
- package/src/modules/orders/controllers/orders.controller.js +102 -72
- package/src/modules/orders/models/order.model.js +30 -22
- package/src/modules/orders/router/orders.router.js +30 -0
- package/src/modules/orders/routes/orders.routes.js +23 -13
- package/src/modules/orders/store/orders.js +67 -40
- package/src/modules/organizations/components/{sections/Department.vue → blocks/CardDepartment.vue} +1 -10
- package/src/modules/organizations/components/blocks/CardOrganization.vue +13 -9
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +3 -3
- package/src/modules/organizations/components/{sections/MembersTab.vue → pages/Members.vue} +23 -8
- package/src/modules/organizations/components/pages/Organization.vue +80 -46
- package/src/modules/organizations/components/pages/Organizations.vue +45 -90
- package/src/modules/organizations/components/sections/{StructureTab.vue → FeedDepartments.vue} +5 -5
- package/src/modules/organizations/components/sections/Organizations.vue +1 -2
- package/src/modules/organizations/components/sections/Publics.vue +3 -2
- package/src/modules/organizations/controllers/organizations.controller.js +8 -21
- package/src/modules/organizations/controllers/organizations.new.controller.js +372 -0
- package/src/modules/organizations/controllers/utils/addUserStatusFields.js +53 -48
- package/src/modules/organizations/controllers/utils/queryProcessor.js +87 -0
- package/src/modules/organizations/controllers/utils/queryProcessorOrganizations.js +25 -0
- package/src/modules/organizations/organizations.client.js +42 -46
- package/src/modules/organizations/router/departments.router.js +29 -0
- package/src/modules/organizations/router/members.router.js +19 -0
- package/src/modules/organizations/router/organizations.js +12 -88
- package/src/modules/organizations/router/organizations.router.js +38 -0
- package/src/modules/organizations/router/products.router.js +24 -0
- package/src/modules/organizations/store/departments.js +108 -0
- package/src/modules/{backoffice/components/admin/Orders.vue → payments/components/pages/Payments.vue} +0 -15
- package/src/modules/products/components/blocks/{Leftover.vue → CardLeftover.vue} +21 -12
- package/src/modules/products/components/blocks/CardPosition.vue +84 -0
- package/src/modules/products/components/blocks/LeftoverPositions.vue +65 -136
- package/src/modules/products/components/pages/LeftoverAdd.vue +133 -88
- package/src/modules/products/components/pages/Leftovers.vue +91 -64
- package/src/modules/products/components/pages/Product.vue +3 -3
- package/src/modules/products/components/pages/Products.vue +42 -263
- package/src/modules/products/components/pages/ProductsBackoffice.vue +92 -0
- package/src/modules/products/components/sections/FilterProducts.vue +180 -0
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +18 -3
- package/src/modules/products/components/sections/SortProducts.vue +76 -0
- package/src/modules/products/controllers/leftovers.controller.js +51 -45
- package/src/modules/products/controllers/modifications.controller.js +66 -0
- package/src/modules/products/controllers/products.controller.js +67 -111
- package/src/modules/products/models/leftover.model.js +12 -9
- package/src/modules/products/models/product.model.js +1 -0
- package/src/modules/products/router/products.router.js +46 -0
- package/src/modules/products/routes/products.routes.js +4 -9
- package/src/modules/products/store/leftovers.js +56 -59
- package/src/modules/products/store/products.js +21 -22
- package/src/modules/spots/components/blocks/CardSpot.vue +104 -0
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +92 -0
- package/src/modules/spots/components/blocks/SpotSub.vue +24 -0
- package/src/modules/spots/components/pages/Map.vue +2 -2
- package/src/modules/spots/components/pages/Spot.vue +107 -0
- package/src/modules/spots/components/pages/SpotEdit.vue +319 -0
- package/src/modules/spots/components/sections/Feed.vue +64 -0
- package/src/modules/spots/controllers/spots.controller.js +83 -0
- package/src/modules/spots/models/spot.model.js +72 -0
- package/src/modules/spots/router/spots.js +34 -1
- package/src/modules/spots/routes/spots.routes.js +31 -0
- package/src/modules/spots/store/spots.js +15 -15
- package/src/modules/users/components/pages/Profile.vue +2 -3
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/styles/components/block.scss +2 -4
- package/src/modules/backoffice/components/admin/LeftoverAdd.vue +0 -157
- package/src/modules/backoffice/components/admin/Leftovers.vue +0 -119
- package/src/modules/backoffice/components/admin/Order.vue +0 -199
- package/src/modules/backoffice/components/admin/Product.vue +0 -28
- package/src/modules/backoffice/components/admin/Products.vue +0 -82
- package/src/modules/backoffice/components/pages/Organizations.vue +0 -104
- package/src/modules/community/controllers/blog.new.controller.js +0 -290
- package/src/modules/organizations/components/blocks/DepartmentSubDepartmentModify.vue +0 -92
- package/src/modules/organizations/components/elements/ButtonFollow.vue +0 -84
- package/src/modules/organizations/components/pages/OrganizationsAccount.vue +0 -110
- package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +0 -18
- /package/src/{components/CardFooter → modules/globals/components/blocks}/CardFooter.vue +0 -0
- /package/src/modules/{orders/controllers → payments/controller}/payments.controller.js +0 -0
- /package/src/modules/{orders → payments}/routes/payments.routes.js +0 -0
- /package/src/modules/{orders → payments}/store/payments.js +0 -0
- /package/src/modules/products/components/blocks/{ProductCard.vue → CardProduct.vue} +0 -0
- /package/src/modules/{organizations → spots}/components/sections/PlaceModify.vue +0 -0
- /package/src/modules/{organizations → spots}/components/sections/Places.vue +0 -0
- /package/src/modules/{backoffice → wallet}/components/pages/Wallet.vue +0 -0
package/dist/users.client.js
CHANGED
@@ -1,117 +1,73 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as S, resolveComponent as B, openBlock as c, createElementBlock as y, createElementVNode as u, toDisplayString as U, createBlock as g, withCtx as p, createTextVNode as O, createCommentVNode as h, reactive as L, onMounted as D, unref as d, createVNode as n, Fragment as F, renderList as T, normalizeClass as j, withAsyncContext as V } from "vue";
|
2
|
+
import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
|
2
3
|
import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
3
|
-
import { D as
|
4
|
-
import { _ as
|
5
|
-
import {
|
6
|
-
import "./
|
7
|
-
import { _ as
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import "
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
import "./
|
15
|
-
import
|
4
|
+
import { D as G, _ as q } from "./Dropdown-cab3605b.mjs";
|
5
|
+
import { _ as N } from "./Menu-dd7645c1.mjs";
|
6
|
+
import { _ as P } from "./MenuItem-6296d02f.mjs";
|
7
|
+
import { _ as C } from "./ButtonToggleMembership-3bb9139e.mjs";
|
8
|
+
import { _ as Y } from "./Socials-31c06635.mjs";
|
9
|
+
import { a as H, b as J, I as K } from "./IconCommunity-468dc457.mjs";
|
10
|
+
import { I as Q } from "./IconEdit-9edfd74d.mjs";
|
11
|
+
import { P as W } from "./PlaceholderUserpic-14c6ea7e.mjs";
|
12
|
+
import { useRoute as I, useRouter as z } from "vue-router";
|
13
|
+
import { s as m, a as M } from "./auth-ec618cb3.mjs";
|
14
|
+
import { a as X } from "./index-a661083c.mjs";
|
15
|
+
import { m as Z } from "./memberships-12210953.mjs";
|
16
|
+
import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
17
|
+
import { F as v } from "./Field-e5ad88d3.mjs";
|
18
|
+
import { _ as R } from "./Button-9e1a9284.mjs";
|
19
|
+
import { _ as ee } from "./UploadImage-3c627d89.mjs";
|
20
|
+
import "./inputs.validation-db65277a.mjs";
|
21
|
+
import "./states.validation-50e3a5a0.mjs";
|
22
|
+
import { a as te } from "./auth.validation-ba3606bf.mjs";
|
23
|
+
import "./Popup-0915427c.mjs";
|
16
24
|
import "vue-i18n";
|
25
|
+
import "./IconCross-84cb1292.mjs";
|
26
|
+
import "./_plugin-vue_export-helper-dad06003.mjs";
|
27
|
+
import "./Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
17
28
|
import "./Select-11ddabf5.mjs";
|
18
29
|
import "./reports-79cd9459.mjs";
|
19
30
|
import "./globals-96ba60e4.mjs";
|
20
31
|
import "./click-outside-6101836c.mjs";
|
21
|
-
|
32
|
+
import "./IconChevronRight-fae9d012.mjs";
|
33
|
+
import "./dribbble-ae37c2ac.mjs";
|
34
|
+
const re = { class: "w-100 mn-semi radius-medium pd-medium bg-main t-black" }, A = {
|
22
35
|
__name: "ProfileCompletion",
|
23
36
|
props: {
|
24
37
|
user: Object,
|
25
38
|
target: Object,
|
26
39
|
cta: Boolean
|
27
40
|
},
|
28
|
-
setup(
|
29
|
-
const { user: e, cta:
|
30
|
-
let
|
31
|
-
function
|
32
|
-
for (let
|
33
|
-
|
41
|
+
setup(o) {
|
42
|
+
const { user: e, cta: _, target: w } = o, k = S(0), i = (b) => {
|
43
|
+
let s = 0, l = 0;
|
44
|
+
function f(r) {
|
45
|
+
for (let a in r)
|
46
|
+
r.hasOwnProperty(a) && (r[a] && typeof r[a] == "object" && !Array.isArray(r[a]) ? f(r[a]) : (s++, r[a] != null && r[a] !== "" && l++));
|
34
47
|
}
|
35
|
-
return
|
48
|
+
return f(b), s === 0 ? 0 : Math.round(l / s * 100);
|
36
49
|
};
|
37
|
-
return w && (
|
38
|
-
const
|
39
|
-
return c(),
|
40
|
-
|
41
|
-
|
50
|
+
return w && (k.value = i(w)), (b, s) => {
|
51
|
+
const l = B("router-link");
|
52
|
+
return c(), y("section", re, [
|
53
|
+
u("h3", null, " Profile completed at " + U(k.value) + "% ", 1),
|
54
|
+
o.cta ? (c(), g(l, {
|
42
55
|
key: 0,
|
43
56
|
to: {
|
44
57
|
name: "User Edit Profile",
|
45
|
-
params: { _id:
|
58
|
+
params: { _id: o.user }
|
46
59
|
},
|
47
60
|
class: "mn-t-regular t-black bg-white w-100 button"
|
48
61
|
}, {
|
49
62
|
default: p(() => [
|
50
|
-
|
63
|
+
O(" Fill Profile ")
|
51
64
|
]),
|
52
65
|
_: 1
|
53
66
|
}, 8, ["to"])) : h("", !0)
|
54
67
|
]);
|
55
68
|
};
|
56
69
|
}
|
57
|
-
},
|
58
|
-
width: "80",
|
59
|
-
height: "80",
|
60
|
-
viewBox: "0 0 80 80",
|
61
|
-
fill: "none",
|
62
|
-
xmlns: "http://www.w3.org/2000/svg"
|
63
|
-
}, re = /* @__PURE__ */ r("path", {
|
64
|
-
d: "M12 66V32H68V66C68 69.25 65.25 72 62 72H18C14.75 72 12 69.25 12 66ZM52 42V46C52 47.125 52.875 48 54 48H58C59.125 48 60 47.125 60 46V42C60 40.875 59.125 40 58 40H54C52.875 40 52 40.875 52 42ZM52 58V62C52 63.125 52.875 64 54 64H58C59.125 64 60 63.125 60 62V58C60 56.875 59.125 56 58 56H54C52.875 56 52 56.875 52 58ZM36 42V46C36 47.125 36.875 48 38 48H42C43.125 48 44 47.125 44 46V42C44 40.875 43.125 40 42 40H38C36.875 40 36 40.875 36 42ZM36 58V62C36 63.125 36.875 64 38 64H42C43.125 64 44 63.125 44 62V58C44 56.875 43.125 56 42 56H38C36.875 56 36 56.875 36 58ZM20 42V46C20 47.125 20.875 48 22 48H26C27.125 48 28 47.125 28 46V42C28 40.875 27.125 40 26 40H22C20.875 40 20 40.875 20 42ZM20 58V62C20 63.125 20.875 64 22 64H26C27.125 64 28 63.125 28 62V58C28 56.875 27.125 56 26 56H22C20.875 56 20 56.875 20 58ZM62 16C65.25 16 68 18.75 68 22V28H12V22C12 18.75 14.75 16 18 16H24V10C24 8.875 24.875 8 26 8H30C31.125 8 32 8.875 32 10V16H48V10C48 8.875 48.875 8 50 8H54C55.125 8 56 8.875 56 10V16H62Z",
|
65
|
-
fill: "white"
|
66
|
-
}, null, -1), ie = [
|
67
|
-
re
|
68
|
-
];
|
69
|
-
function ae(a, e) {
|
70
|
-
return c(), C("svg", se, ie);
|
71
|
-
}
|
72
|
-
const oe = /* @__PURE__ */ E(te, [["render", ae]]), le = {}, ne = {
|
73
|
-
width: "80",
|
74
|
-
height: "80",
|
75
|
-
viewBox: "0 0 80 80",
|
76
|
-
fill: "none",
|
77
|
-
xmlns: "http://www.w3.org/2000/svg"
|
78
|
-
}, ue = /* @__PURE__ */ r("path", {
|
79
|
-
d: "M9 19C9 17.1435 9.7375 15.363 11.0503 14.0503C12.363 12.7375 14.1435 12 16 12C17.8565 12 19.637 12.7375 20.9497 14.0503C22.2625 15.363 23 17.1435 23 19C23 20.8565 22.2625 22.637 20.9497 23.9497C19.637 25.2625 17.8565 26 16 26C14.1435 26 12.363 25.2625 11.0503 23.9497C9.7375 22.637 9 20.8565 9 19ZM8 38.7125C6.75 40.1125 6 41.975 6 44C6 46.025 6.75 47.8875 8 49.2875V38.7125ZM26.05 32.55C22.3375 35.8375 20 40.65 20 46C20 50.2875 21.5 54.225 24 57.3125V60C24 62.2125 22.2125 64 20 64H12C9.7875 64 8 62.2125 8 60V56.65C3.275 54.4 0 49.5875 0 44C0 36.2625 6.2625 30 14 30H18C21 30 23.775 30.9375 26.05 32.5375V32.55ZM56 60V57.3125C58.5 54.225 60 50.2875 60 46C60 40.65 57.6625 35.8375 53.95 32.5375C56.225 30.9375 59 30 62 30H66C73.7375 30 80 36.2625 80 44C80 49.5875 76.725 54.4 72 56.65V60C72 62.2125 70.2125 64 68 64H60C57.7875 64 56 62.2125 56 60ZM57 19C57 17.1435 57.7375 15.363 59.0503 14.0503C60.363 12.7375 62.1435 12 64 12C65.8565 12 67.637 12.7375 68.9497 14.0503C70.2625 15.363 71 17.1435 71 19C71 20.8565 70.2625 22.637 68.9497 23.9497C67.637 25.2625 65.8565 26 64 26C62.1435 26 60.363 25.2625 59.0503 23.9497C57.7375 22.637 57 20.8565 57 19ZM72 38.7125V49.3C73.25 47.8875 74 46.0375 74 44.0125C74 41.9875 73.25 40.125 72 38.725V38.7125ZM40 12C42.1217 12 44.1566 12.8429 45.6569 14.3431C47.1571 15.8434 48 17.8783 48 20C48 22.1217 47.1571 24.1566 45.6569 25.6569C44.1566 27.1571 42.1217 28 40 28C37.8783 28 35.8434 27.1571 34.3431 25.6569C32.8429 24.1566 32 22.1217 32 20C32 17.8783 32.8429 15.8434 34.3431 14.3431C35.8434 12.8429 37.8783 12 40 12ZM30 46C30 48.025 30.75 49.875 32 51.2875V40.7125C30.75 42.125 30 43.975 30 46ZM48 40.7125V51.3C49.25 49.8875 50 48.0375 50 46.0125C50 43.9875 49.25 42.125 48 40.725V40.7125ZM56 46C56 51.5875 52.725 56.4 48 58.65V64C48 66.2125 46.2125 68 44 68H36C33.7875 68 32 66.2125 32 64V58.65C27.275 56.4 24 51.5875 24 46C24 38.2625 30.2625 32 38 32H42C49.7375 32 56 38.2625 56 46Z",
|
80
|
-
fill: "white"
|
81
|
-
}, null, -1), de = [
|
82
|
-
ue
|
83
|
-
];
|
84
|
-
function ce(a, e) {
|
85
|
-
return c(), C("svg", ne, de);
|
86
|
-
}
|
87
|
-
const me = /* @__PURE__ */ E(le, [["render", ce]]), pe = {}, _e = {
|
88
|
-
width: "56",
|
89
|
-
height: "56",
|
90
|
-
viewBox: "0 0 56 56",
|
91
|
-
fill: "none",
|
92
|
-
xmlns: "http://www.w3.org/2000/svg"
|
93
|
-
}, fe = /* @__PURE__ */ r("path", {
|
94
|
-
d: "M28.2899 50C24.4282 50.007 20.6332 48.9927 17.2899 47.06L12.5299 49.17C11.6317 49.567 10.6307 49.6695 9.67068 49.4627C8.71061 49.2558 7.84068 48.7503 7.1856 48.0186C6.53051 47.2869 6.12391 46.3666 6.02409 45.3896C5.92426 44.4126 6.13634 43.4291 6.62991 42.58L8.96991 38.58C6.65145 34.3531 5.78562 29.4816 6.50556 24.7147C7.22549 19.9478 9.49132 15.5493 12.9546 12.1956C16.418 8.84187 20.887 6.71863 25.6747 6.15233C30.4623 5.58604 35.3034 6.60805 39.4536 9.06121C43.6037 11.5144 46.8332 15.2629 48.6454 19.7303C50.4576 24.1977 50.7522 29.1367 49.4839 33.7879C48.2155 38.4391 45.4545 42.5448 41.6254 45.4739C37.7962 48.403 33.1109 49.9932 28.2899 50ZM17.4799 42.81C17.8631 42.811 18.238 42.9221 18.5599 43.13C22.2995 45.5441 26.7982 46.4939 31.1945 45.7975C35.5908 45.1011 39.5757 42.8075 42.3861 39.3558C45.1966 35.9041 46.6349 31.537 46.4258 27.0908C46.2167 22.6446 44.3748 18.4318 41.2529 15.2591C38.1309 12.0864 33.9483 10.1769 29.5061 9.89616C25.0638 9.61544 20.6741 10.9833 17.1776 13.7377C13.6811 16.4921 11.3235 20.4396 10.5563 24.8241C9.78918 29.2086 10.6664 33.722 13.0199 37.5C13.2068 37.8111 13.3055 38.1671 13.3055 38.53C13.3055 38.8929 13.2068 39.2489 13.0199 39.56L10.0899 44.56C10.0202 44.6791 9.99023 44.8174 10.0043 44.9547C10.0184 45.0919 10.0759 45.2212 10.1683 45.3237C10.2608 45.4262 10.3834 45.4966 10.5186 45.5247C10.6537 45.5528 10.7943 45.5371 10.9199 45.48L16.6699 43C16.9236 42.8806 17.1996 42.8159 17.4799 42.81Z",
|
95
|
-
fill: "white"
|
96
|
-
}, null, -1), Ce = /* @__PURE__ */ r("path", {
|
97
|
-
d: "M28.2898 30C27.7594 30 27.2507 29.7893 26.8756 29.4142C26.5005 29.0391 26.2898 28.5304 26.2898 28C26.2898 27.4696 26.5005 26.9609 26.8756 26.5858C27.2507 26.2107 27.7594 26 28.2898 26C28.8202 26 29.3289 26.2107 29.704 26.5858C30.0791 26.9609 30.2898 27.4696 30.2898 28C30.2898 28.5304 30.0791 29.0391 29.704 29.4142C29.3289 29.7893 28.8202 30 28.2898 30Z",
|
98
|
-
fill: "white"
|
99
|
-
}, null, -1), he = /* @__PURE__ */ r("path", {
|
100
|
-
d: "M20.2898 30C19.7594 30 19.2507 29.7893 18.8756 29.4142C18.5005 29.0391 18.2898 28.5304 18.2898 28C18.2898 27.4696 18.5005 26.9609 18.8756 26.5858C19.2507 26.2107 19.7594 26 20.2898 26C20.8202 26 21.3289 26.2107 21.704 26.5858C22.0791 26.9609 22.2898 27.4696 22.2898 28C22.2898 28.5304 22.0791 29.0391 21.704 29.4142C21.3289 29.7893 20.8202 30 20.2898 30Z",
|
101
|
-
fill: "white"
|
102
|
-
}, null, -1), ge = /* @__PURE__ */ r("path", {
|
103
|
-
d: "M36.2898 30C35.7594 30 35.2507 29.7893 34.8756 29.4142C34.5005 29.0391 34.2898 28.5304 34.2898 28C34.2898 27.4696 34.5005 26.9609 34.8756 26.5858C35.2507 26.2107 35.7594 26 36.2898 26C36.8202 26 37.3289 26.2107 37.704 26.5858C38.0791 26.9609 38.2898 27.4696 38.2898 28C38.2898 28.5304 38.0791 29.0391 37.704 29.4142C37.3289 29.7893 36.8202 30 36.2898 30Z",
|
104
|
-
fill: "white"
|
105
|
-
}, null, -1), be = [
|
106
|
-
fe,
|
107
|
-
Ce,
|
108
|
-
he,
|
109
|
-
ge
|
110
|
-
];
|
111
|
-
function ve(a, e) {
|
112
|
-
return c(), C("svg", _e, be);
|
113
|
-
}
|
114
|
-
const we = /* @__PURE__ */ E(pe, [["render", ve]]), x = Q.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = z({
|
70
|
+
}, E = X.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = L({
|
115
71
|
all: [],
|
116
72
|
current: {
|
117
73
|
_id: "",
|
@@ -133,44 +89,44 @@ const we = /* @__PURE__ */ E(pe, [["render", ve]]), x = Q.create({ baseURL: proc
|
|
133
89
|
},
|
134
90
|
roles: []
|
135
91
|
}
|
136
|
-
}),
|
137
|
-
async create(
|
92
|
+
}), x = {
|
93
|
+
async create(o) {
|
138
94
|
try {
|
139
|
-
const e = await
|
140
|
-
return
|
95
|
+
const e = await E.post("/api/users", o);
|
96
|
+
return $.set(e.data, "current"), Promise.resolve(e.data);
|
141
97
|
} catch (e) {
|
142
98
|
return console.error(e), Promise.reject(e);
|
143
99
|
}
|
144
100
|
},
|
145
|
-
async read(
|
146
|
-
|
101
|
+
async read(o = {}) {
|
102
|
+
o.params = {}, o._id && (o.params._id = o._id), o.user && (o.params.user = o.user);
|
147
103
|
try {
|
148
|
-
const e = await
|
149
|
-
return
|
104
|
+
const e = await E.get("/api/users", { params: o.params });
|
105
|
+
return o._id ? $.set(e.data[0], "current") : $.set(e.data, "all"), Promise.resolve(e.data);
|
150
106
|
} catch (e) {
|
151
107
|
return console.error(e), Promise.reject(e);
|
152
108
|
}
|
153
109
|
},
|
154
|
-
async update(
|
110
|
+
async update(o) {
|
155
111
|
try {
|
156
|
-
const e = await
|
157
|
-
return
|
112
|
+
const e = await E.put(`/api/users/${o._id}`, o);
|
113
|
+
return $.set(e.data, "current"), Promise.resolve(e.data);
|
158
114
|
} catch (e) {
|
159
115
|
return console.error(e), Promise.reject(e);
|
160
116
|
}
|
161
117
|
},
|
162
|
-
async delete(
|
118
|
+
async delete(o) {
|
163
119
|
try {
|
164
|
-
await
|
165
|
-
const e = t.all.findIndex((
|
120
|
+
await E.delete(`/api/users/${o._id}`);
|
121
|
+
const e = t.all.findIndex((_) => _._id === o._id);
|
166
122
|
e !== -1 && t.all.splice(e, 1);
|
167
123
|
} catch (e) {
|
168
124
|
console.error(e);
|
169
125
|
}
|
170
126
|
}
|
171
|
-
},
|
172
|
-
set(
|
173
|
-
t[e] =
|
127
|
+
}, $ = {
|
128
|
+
set(o, e) {
|
129
|
+
t[e] = o;
|
174
130
|
},
|
175
131
|
clean() {
|
176
132
|
t.current = {
|
@@ -184,56 +140,56 @@ const we = /* @__PURE__ */ E(pe, [["render", ve]]), x = Q.create({ baseURL: proc
|
|
184
140
|
orders: []
|
185
141
|
};
|
186
142
|
}
|
187
|
-
},
|
143
|
+
}, _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
188
144
|
__proto__: null,
|
189
|
-
actions:
|
190
|
-
mutations:
|
145
|
+
actions: x,
|
146
|
+
mutations: $,
|
191
147
|
state: t
|
192
148
|
}, Symbol.toStringTag, { value: "Module" }));
|
193
|
-
const
|
149
|
+
const se = {
|
194
150
|
key: 0,
|
195
151
|
class: "for-transition w-100"
|
196
|
-
},
|
152
|
+
}, ae = {
|
197
153
|
key: 0,
|
198
154
|
class: "flex-center flex pd-medium radius-big bg-grey uppercase t-semi w-100 h-100"
|
199
|
-
},
|
155
|
+
}, ie = {
|
200
156
|
key: 1,
|
201
157
|
_id: "dash",
|
202
158
|
class: "pd-b-extra pd-thin w-100"
|
203
|
-
},
|
159
|
+
}, oe = { class: "flex-center flex flex-column t-center w-100 mn-semi radius-medium pd-medium bg-grey" }, le = { class: "bg-black pd-thin radius-small" }, ne = /* @__PURE__ */ u("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), ue = ["src"], de = { class: "mn-thin" }, me = { class: "mn-thin t-main t-semi" }, ce = { class: "mn-small p-medium" }, pe = { class: "mn-medium flex-center flex-nowrap flex" }, fe = { class: "t-semi mn-small" }, _e = {
|
204
160
|
key: 5,
|
205
161
|
class: "mn-t-small mn-thin"
|
206
|
-
},
|
162
|
+
}, he = /* @__PURE__ */ u("span", null, " Backoffice ", -1), ge = /* @__PURE__ */ u("span", null, "Events", -1), be = /* @__PURE__ */ u("span", null, "Groups", -1), ve = /* @__PURE__ */ u("span", null, "Posts", -1), ye = /* @__PURE__ */ u("span", null, " Settings ", -1), we = /* @__PURE__ */ u("span", null, " About ", -1), ke = /* @__PURE__ */ u("span", { class: "t-red" }, " Logout ", -1), Pe = {
|
207
163
|
__name: "Profile",
|
208
|
-
setup(
|
209
|
-
const e =
|
210
|
-
|
211
|
-
await
|
164
|
+
setup(o) {
|
165
|
+
const e = I(), _ = z(), w = S(!1);
|
166
|
+
D(async () => {
|
167
|
+
await x.read({ _id: e.params._id, user: m.user._id }), w.value = !0;
|
212
168
|
});
|
213
|
-
const
|
214
|
-
|
169
|
+
const k = ({ membership: b, status: s, target: l }, f, r) => {
|
170
|
+
Z.handleMembershipUpdate(t.current, b, s, l, f, r);
|
215
171
|
};
|
216
|
-
function
|
217
|
-
|
172
|
+
function i() {
|
173
|
+
M.logout(), _.push({ name: "Sign In" });
|
218
174
|
}
|
219
|
-
return (b,
|
220
|
-
t.current.status === "removed" ? (c(),
|
221
|
-
d(e).params._id === m.user._id && w.value ? (c(), g(
|
175
|
+
return (b, s) => w.value ? (c(), y("div", se, [
|
176
|
+
t.current.status === "removed" ? (c(), y("div", ae, " Sorry, user has been removed. ")) : (c(), y("div", ie, [
|
177
|
+
d(e).params._id === m.user._id && w.value ? (c(), g(A, {
|
222
178
|
key: 0,
|
223
179
|
user: m.user._id,
|
224
180
|
target: t.current,
|
225
181
|
cta: !0
|
226
182
|
}, null, 8, ["user", "target"])) : h("", !0),
|
227
|
-
|
228
|
-
d(e).params._id && d(e).params._id !== m.user._id ? (c(), g(
|
183
|
+
u("section", oe, [
|
184
|
+
d(e).params._id && d(e).params._id !== m.user._id ? (c(), g(G, {
|
229
185
|
key: 0,
|
230
186
|
label: "...",
|
231
187
|
align: "right",
|
232
188
|
class: "cursor-pointer pos-absolute pos-r-0 pos-t-0 pd-thin radius-extra"
|
233
189
|
}, {
|
234
190
|
default: p(() => [
|
235
|
-
|
236
|
-
|
191
|
+
u("section", le, [
|
192
|
+
n(q, {
|
237
193
|
user: m.user._id,
|
238
194
|
type: "user",
|
239
195
|
target: t.current._id,
|
@@ -241,11 +197,11 @@ const ye = {
|
|
241
197
|
class: "w-100"
|
242
198
|
}, {
|
243
199
|
default: p(() => [
|
244
|
-
|
200
|
+
ne
|
245
201
|
]),
|
246
202
|
_: 1
|
247
203
|
}, 8, ["user", "target"]),
|
248
|
-
m.user._id ? (c(), g(
|
204
|
+
m.user._id ? (c(), g(C, {
|
249
205
|
key: 0,
|
250
206
|
user: m.user._id,
|
251
207
|
type: "user",
|
@@ -253,16 +209,16 @@ const ye = {
|
|
253
209
|
target: t.current._id,
|
254
210
|
status: t.current.isBlocked,
|
255
211
|
text: { create: "Block", remove: "Unblock" },
|
256
|
-
onUpdateMembership:
|
212
|
+
onUpdateMembership: s[0] || (s[0] = (l) => k(l, "isBlocked")),
|
257
213
|
class: "t-white mn-t-thin bg-red"
|
258
214
|
}, null, 8, ["user", "target", "status"])) : h("", !0)
|
259
215
|
])
|
260
216
|
]),
|
261
217
|
_: 1
|
262
218
|
}, 8, ["label"])) : h("", !0),
|
263
|
-
d(e).params._id === m.user._id ? (c(), g(
|
219
|
+
d(e).params._id === m.user._id ? (c(), g(Q, {
|
264
220
|
key: 1,
|
265
|
-
onClick:
|
221
|
+
onClick: s[1] || (s[1] = (l) => b.$router.push({
|
266
222
|
name: "User Edit Profile",
|
267
223
|
params: {
|
268
224
|
_id: m.user._id
|
@@ -270,24 +226,24 @@ const ye = {
|
|
270
226
|
})),
|
271
227
|
class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
|
272
228
|
})) : h("", !0),
|
273
|
-
t.current.profile.photo.length > 0 ? (c(),
|
229
|
+
t.current.profile.photo.length > 0 ? (c(), y("img", {
|
274
230
|
key: 2,
|
275
231
|
src: (b.FILE_SERVER_URL || "") + t.current.profile.photo,
|
276
232
|
class: "radius-extra bg-white mn-small object-fit-cover i-extra"
|
277
|
-
}, null, 8,
|
233
|
+
}, null, 8, ue)) : (c(), g(W, {
|
278
234
|
key: 3,
|
279
235
|
class: "radius-medium mn-small i-extra"
|
280
236
|
})),
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
(c(!0),
|
286
|
-
class:
|
287
|
-
},
|
237
|
+
u("h3", de, U(t.current.profile.name ? t.current.profile.name : "Not specified"), 1),
|
238
|
+
u("p", me, " @" + U(t.current.username ? t.current.username : "Not specified"), 1),
|
239
|
+
u("p", ce, U(t.current.profile.description ? t.current.profile.description : "Not specified"), 1),
|
240
|
+
u("div", pe, [
|
241
|
+
(c(!0), y(F, null, T(t.current.roles, (l, f) => (c(), y("div", {
|
242
|
+
class: j(["pd-thin radius-small t-semi bg-white", { "mn-r-thin": f !== t.current.roles.length - 1 }])
|
243
|
+
}, U(l.icon) + " " + U(l.name), 3))), 256))
|
288
244
|
]),
|
289
|
-
|
290
|
-
m.user._id && d(e).params._id && d(e).params._id !== m.user._id ? (c(), g(
|
245
|
+
u("p", fe, " 👨👨👧👧 " + U(t.current.numberOfSubscribers) + " followers ", 1),
|
246
|
+
m.user._id && d(e).params._id && d(e).params._id !== m.user._id ? (c(), g(C, {
|
291
247
|
key: 4,
|
292
248
|
user: m.user._id,
|
293
249
|
type: "user",
|
@@ -295,11 +251,11 @@ const ye = {
|
|
295
251
|
target: t.current._id,
|
296
252
|
status: t.current.isSubscriber,
|
297
253
|
text: { create: "Follow", remove: "Unfollow" },
|
298
|
-
onUpdateMembership:
|
254
|
+
onUpdateMembership: s[2] || (s[2] = (l) => k(l, "isSubscriber", "numberOfSubscribers")),
|
299
255
|
class: "w-min mn-medium mn-r-auto mn-l-auto"
|
300
256
|
}, null, 8, ["user", "target", "status"])) : h("", !0),
|
301
|
-
Object.values(t.current.socials).some((
|
302
|
-
|
257
|
+
Object.values(t.current.socials).some((l) => l) ? (c(), y("h4", _e, " Find Me in Socials ")) : h("", !0),
|
258
|
+
n(Y, {
|
303
259
|
telegram: t.current.socials.telegram,
|
304
260
|
facebook: t.current.socials.facebook,
|
305
261
|
instagram: t.current.socials.instagram,
|
@@ -307,13 +263,13 @@ const ye = {
|
|
307
263
|
class: "mn-r-auto mn-l-auto"
|
308
264
|
}, null, 8, ["telegram", "facebook", "instagram", "twitter"])
|
309
265
|
]),
|
310
|
-
m.access.roles && m.user._id === d(e).params._id && (m.access.roles.includes("ROLE_MODERATOR") || m.access.roles.includes("ROLE_ADMIN")) ? (c(), g(
|
266
|
+
m.access.roles && m.user._id === d(e).params._id && (m.access.roles.includes("ROLE_MODERATOR") || m.access.roles.includes("ROLE_ADMIN")) ? (c(), g(N, {
|
311
267
|
key: 1,
|
312
|
-
class: "bg-black t-white"
|
268
|
+
class: "mn-regular bg-black t-white"
|
313
269
|
}, {
|
314
270
|
default: p(() => [
|
315
|
-
|
316
|
-
onClick:
|
271
|
+
n(P, {
|
272
|
+
onClick: s[3] || (s[3] = (l) => d(_).push({
|
317
273
|
name: "Backoffice",
|
318
274
|
params: {
|
319
275
|
_id: d(e).params._id
|
@@ -323,64 +279,64 @@ const ye = {
|
|
323
279
|
theme: "white"
|
324
280
|
}, {
|
325
281
|
default: p(() => [
|
326
|
-
|
282
|
+
he
|
327
283
|
]),
|
328
284
|
_: 1
|
329
285
|
})
|
330
286
|
]),
|
331
287
|
_: 1
|
332
288
|
})) : h("", !0),
|
333
|
-
|
289
|
+
n(N, { class: "mn-regular bg-grey" }, {
|
334
290
|
default: p(() => [
|
335
|
-
|
336
|
-
onClick:
|
291
|
+
n(P, {
|
292
|
+
onClick: s[4] || (s[4] = (l) => d(_).push({ name: "User Events", params: { _id: d(e).params._id } })),
|
337
293
|
class: "cursor-pointer"
|
338
294
|
}, {
|
339
295
|
default: p(() => [
|
340
|
-
|
296
|
+
n(H, {
|
341
297
|
class: "i-semi",
|
342
298
|
icon: !0
|
343
299
|
}),
|
344
|
-
|
300
|
+
ge
|
345
301
|
]),
|
346
302
|
_: 1
|
347
303
|
}),
|
348
|
-
|
349
|
-
onClick:
|
304
|
+
n(P, {
|
305
|
+
onClick: s[5] || (s[5] = (l) => d(_).push({ name: "User Organizations", params: { _id: d(e).params._id } })),
|
350
306
|
class: "cursor-pointer"
|
351
307
|
}, {
|
352
308
|
default: p(() => [
|
353
|
-
|
309
|
+
n(J, {
|
354
310
|
class: "i-semi",
|
355
311
|
icon: !0
|
356
312
|
}),
|
357
|
-
|
313
|
+
be
|
358
314
|
]),
|
359
315
|
_: 1
|
360
316
|
}),
|
361
|
-
|
362
|
-
onClick:
|
317
|
+
n(P, {
|
318
|
+
onClick: s[6] || (s[6] = (l) => d(_).push({ name: "User Blogposts", params: { _id: d(e).params._id } })),
|
363
319
|
class: "cursor-pointer"
|
364
320
|
}, {
|
365
321
|
default: p(() => [
|
366
|
-
|
322
|
+
n(K, {
|
367
323
|
class: "i-semi",
|
368
324
|
icon: !0
|
369
325
|
}),
|
370
|
-
|
326
|
+
ve
|
371
327
|
]),
|
372
328
|
_: 1
|
373
329
|
})
|
374
330
|
]),
|
375
331
|
_: 1
|
376
332
|
}),
|
377
|
-
m.user._id === d(e).params._id ? (c(), g(
|
333
|
+
m.user._id === d(e).params._id ? (c(), g(N, {
|
378
334
|
key: 2,
|
379
335
|
class: "bg-grey"
|
380
336
|
}, {
|
381
337
|
default: p(() => [
|
382
|
-
|
383
|
-
onClick:
|
338
|
+
n(P, {
|
339
|
+
onClick: s[7] || (s[7] = (l) => d(_).push({
|
384
340
|
name: "User Edit Profile",
|
385
341
|
params: {
|
386
342
|
_id: d(e).params._id
|
@@ -389,12 +345,12 @@ const ye = {
|
|
389
345
|
class: "cursor-pointer"
|
390
346
|
}, {
|
391
347
|
default: p(() => [
|
392
|
-
|
348
|
+
ye
|
393
349
|
]),
|
394
350
|
_: 1
|
395
351
|
}),
|
396
|
-
|
397
|
-
onClick:
|
352
|
+
n(P, {
|
353
|
+
onClick: s[8] || (s[8] = (l) => d(_).push({
|
398
354
|
name: "Legal",
|
399
355
|
params: {
|
400
356
|
_id: d(e).params._id
|
@@ -403,16 +359,16 @@ const ye = {
|
|
403
359
|
class: "cursor-pointer"
|
404
360
|
}, {
|
405
361
|
default: p(() => [
|
406
|
-
|
362
|
+
we
|
407
363
|
]),
|
408
364
|
_: 1
|
409
365
|
}),
|
410
|
-
|
366
|
+
n(P, {
|
411
367
|
class: "cursor-pointer",
|
412
|
-
onClick:
|
368
|
+
onClick: s[9] || (s[9] = (l) => i())
|
413
369
|
}, {
|
414
370
|
default: p(() => [
|
415
|
-
|
371
|
+
ke
|
416
372
|
]),
|
417
373
|
_: 1
|
418
374
|
})
|
@@ -422,149 +378,149 @@ const ye = {
|
|
422
378
|
]))
|
423
379
|
])) : h("", !0);
|
424
380
|
}
|
425
|
-
},
|
381
|
+
}, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
426
382
|
__proto__: null,
|
427
|
-
default:
|
383
|
+
default: Pe
|
428
384
|
}, Symbol.toStringTag, { value: "Module" }));
|
429
|
-
const
|
385
|
+
const $e = { class: "pd-medium for-transition w-100" }, xe = /* @__PURE__ */ u("h3", { class: "mn-small" }, "Username", -1), Ee = /* @__PURE__ */ u("p", { class: "mn-semi" }, "Your username will be used for URL of profile like thecommunephuket/users/username", -1), Se = /* @__PURE__ */ u("h3", { class: "mn-small" }, "Profile", -1), Ne = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, Oe = /* @__PURE__ */ u("h4", null, "Upload userpic", -1), Ce = /* @__PURE__ */ u("h3", { class: "mn-small" }, "Socials", -1), Re = /* @__PURE__ */ u("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Ie = /* @__PURE__ */ u("h3", { class: "mn-small" }, "Account", -1), ze = {
|
430
386
|
__name: "ProfileEdit",
|
431
|
-
async setup(
|
432
|
-
let e,
|
433
|
-
|
434
|
-
const w =
|
435
|
-
[e,
|
436
|
-
const
|
387
|
+
async setup(o) {
|
388
|
+
let e, _;
|
389
|
+
S(null);
|
390
|
+
const w = I(), k = z();
|
391
|
+
[e, _] = V(() => x.read({ _id: m.user._id })), await e, _();
|
392
|
+
const i = S(t.current);
|
437
393
|
async function b() {
|
438
|
-
await
|
394
|
+
await x.update(t.current);
|
439
395
|
}
|
440
|
-
async function
|
441
|
-
window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (t.current.status = "removed", await
|
396
|
+
async function s() {
|
397
|
+
window.confirm("Are you sure you want to delete your account? Restoration will be possible only with the help of an administrator.") && (t.current.status = "removed", await x.update(t.current), M.logout());
|
442
398
|
}
|
443
|
-
function
|
444
|
-
|
399
|
+
function l() {
|
400
|
+
k.replace({ name: "User Profile", params: { _id: t.current._id } });
|
445
401
|
}
|
446
|
-
return (
|
447
|
-
d(w).params._id === m.user._id ? (c(), g(
|
402
|
+
return (f, r) => (c(), y("div", $e, [
|
403
|
+
d(w).params._id === m.user._id ? (c(), g(A, {
|
448
404
|
key: 0,
|
449
405
|
user: m.user._id,
|
450
|
-
target:
|
406
|
+
target: i.value,
|
451
407
|
cta: !1
|
452
408
|
}, null, 8, ["user", "target"])) : h("", !0),
|
453
|
-
|
454
|
-
|
455
|
-
field:
|
456
|
-
"onUpdate:field":
|
409
|
+
xe,
|
410
|
+
n(v, {
|
411
|
+
field: i.value.username,
|
412
|
+
"onUpdate:field": r[0] || (r[0] = (a) => i.value.username = a),
|
457
413
|
label: "@",
|
458
414
|
placeholder: "Not specified",
|
459
415
|
class: "mn-thin w-100 bg-grey pd-medium radius-small",
|
460
416
|
disabled: "true",
|
461
|
-
validation:
|
417
|
+
validation: f.organizationName
|
462
418
|
}, null, 8, ["field", "validation"]),
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
photo:
|
468
|
-
"onUpdate:photo":
|
469
|
-
uploadPath: "users/" +
|
419
|
+
Ee,
|
420
|
+
Se,
|
421
|
+
u("div", Ne, [
|
422
|
+
n(ee, {
|
423
|
+
photo: i.value.profile.photo,
|
424
|
+
"onUpdate:photo": r[1] || (r[1] = (a) => i.value.profile.photo = a),
|
425
|
+
uploadPath: "users/" + i.value._id + "/avatars",
|
470
426
|
class: "h-4r w-4r aspect-1x1 o-hidden bg-white mn-thin radius-extra"
|
471
427
|
}, null, 8, ["photo", "uploadPath"]),
|
472
|
-
|
428
|
+
Oe
|
473
429
|
]),
|
474
|
-
|
475
|
-
field:
|
476
|
-
"onUpdate:field":
|
430
|
+
n(v, {
|
431
|
+
field: i.value.profile.name,
|
432
|
+
"onUpdate:field": r[2] || (r[2] = (a) => i.value.profile.name = a),
|
477
433
|
label: "Name",
|
478
434
|
placeholder: "Not specified",
|
479
435
|
class: "mn-thin bg-grey pd-medium radius-small",
|
480
|
-
validation:
|
436
|
+
validation: f.organizationName
|
481
437
|
}, null, 8, ["field", "validation"]),
|
482
|
-
|
483
|
-
field:
|
484
|
-
"onUpdate:field":
|
438
|
+
n(v, {
|
439
|
+
field: i.value.profile.description,
|
440
|
+
"onUpdate:field": r[3] || (r[3] = (a) => i.value.profile.description = a),
|
485
441
|
label: "Description",
|
486
442
|
placeholder: "Not specified",
|
487
443
|
class: "mn-semi bg-grey pd-medium radius-small",
|
488
444
|
disabled: "true",
|
489
|
-
validation:
|
445
|
+
validation: f.organizationName
|
490
446
|
}, null, 8, ["field", "validation"]),
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
field:
|
495
|
-
"onUpdate:field":
|
447
|
+
Ce,
|
448
|
+
Re,
|
449
|
+
n(v, {
|
450
|
+
field: i.value.socials.instagram,
|
451
|
+
"onUpdate:field": r[4] || (r[4] = (a) => i.value.socials.instagram = a),
|
496
452
|
label: "Instagram",
|
497
453
|
placeholder: "",
|
498
454
|
class: "mn-thin bg-grey pd-medium radius-small"
|
499
455
|
}, null, 8, ["field"]),
|
500
|
-
|
501
|
-
field:
|
502
|
-
"onUpdate:field":
|
456
|
+
n(v, {
|
457
|
+
field: i.value.socials.twitter,
|
458
|
+
"onUpdate:field": r[5] || (r[5] = (a) => i.value.socials.twitter = a),
|
503
459
|
label: "Twitter",
|
504
460
|
placeholder: "",
|
505
461
|
class: "mn-thin bg-grey pd-medium radius-small"
|
506
462
|
}, null, 8, ["field"]),
|
507
|
-
|
508
|
-
field:
|
509
|
-
"onUpdate:field":
|
463
|
+
n(v, {
|
464
|
+
field: i.value.socials.facebook,
|
465
|
+
"onUpdate:field": r[6] || (r[6] = (a) => i.value.socials.facebook = a),
|
510
466
|
label: "Facebook",
|
511
467
|
placeholder: "",
|
512
468
|
class: "mn-thin bg-grey pd-medium radius-small"
|
513
469
|
}, null, 8, ["field"]),
|
514
|
-
|
515
|
-
field:
|
516
|
-
"onUpdate:field":
|
470
|
+
n(v, {
|
471
|
+
field: i.value.socials.telegram,
|
472
|
+
"onUpdate:field": r[7] || (r[7] = (a) => i.value.socials.telegram = a),
|
517
473
|
label: "Telegram",
|
518
474
|
placeholder: "",
|
519
475
|
class: "mn-semi bg-grey pd-medium radius-small"
|
520
476
|
}, null, 8, ["field"]),
|
521
|
-
|
522
|
-
|
523
|
-
field:
|
524
|
-
"onUpdate:field":
|
477
|
+
Ie,
|
478
|
+
n(v, {
|
479
|
+
field: i.value.phone,
|
480
|
+
"onUpdate:field": r[8] || (r[8] = (a) => i.value.phone = a),
|
525
481
|
label: "Phone",
|
526
482
|
placeholder: "Not specified",
|
527
483
|
class: "mn-thin bg-grey pd-medium mn-thin radius-small",
|
528
484
|
disabled: "true",
|
529
|
-
validation:
|
485
|
+
validation: f.organizationName
|
530
486
|
}, null, 8, ["field", "validation"]),
|
531
|
-
|
532
|
-
field:
|
533
|
-
"onUpdate:field":
|
487
|
+
n(v, {
|
488
|
+
field: i.value.email,
|
489
|
+
"onUpdate:field": r[9] || (r[9] = (a) => i.value.email = a),
|
534
490
|
label: "Email",
|
535
491
|
placeholder: "Not specified",
|
536
492
|
class: "mn-semi bg-grey pd-medium radius-small",
|
537
493
|
disabled: !0,
|
538
|
-
validation:
|
494
|
+
validation: f.organizationName
|
539
495
|
}, null, 8, ["field", "validation"]),
|
540
|
-
|
496
|
+
n(R, {
|
541
497
|
submit: b,
|
542
|
-
callback:
|
498
|
+
callback: l,
|
543
499
|
class: "mn-thin"
|
544
500
|
}, {
|
545
501
|
default: p(() => [
|
546
|
-
|
502
|
+
O("Save")
|
547
503
|
]),
|
548
504
|
_: 1
|
549
505
|
}),
|
550
|
-
|
551
|
-
submit:
|
552
|
-
callback:
|
553
|
-
d(
|
506
|
+
n(R, {
|
507
|
+
submit: s,
|
508
|
+
callback: f.a = () => {
|
509
|
+
d(k).push({ name: "Sign In" });
|
554
510
|
},
|
555
511
|
class: "mn-thin bg-red t-white"
|
556
512
|
}, {
|
557
513
|
default: p(() => [
|
558
|
-
|
514
|
+
O("Delete Account")
|
559
515
|
]),
|
560
516
|
_: 1
|
561
517
|
}, 8, ["callback"])
|
562
518
|
]));
|
563
519
|
}
|
564
|
-
},
|
520
|
+
}, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
565
521
|
__proto__: null,
|
566
|
-
default:
|
567
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
522
|
+
default: ze
|
523
|
+
}, Symbol.toStringTag, { value: "Module" })), ht = [
|
568
524
|
{
|
569
525
|
path: "profile/:_id",
|
570
526
|
name: "User Profile",
|
@@ -574,13 +530,13 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
|
|
574
530
|
ru: "Профиль"
|
575
531
|
}
|
576
532
|
},
|
577
|
-
component: () => Promise.resolve().then(() =>
|
533
|
+
component: () => Promise.resolve().then(() => Ue)
|
578
534
|
},
|
579
535
|
{
|
580
536
|
path: "profile/:_id/edit",
|
581
537
|
name: "User Edit Profile",
|
582
538
|
beforeEnter: [
|
583
|
-
|
539
|
+
te
|
584
540
|
],
|
585
541
|
meta: {
|
586
542
|
title: {
|
@@ -588,7 +544,7 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
|
|
588
544
|
ru: "Редактировать Профиль"
|
589
545
|
}
|
590
546
|
},
|
591
|
-
component: () => Promise.resolve().then(() =>
|
547
|
+
component: () => Promise.resolve().then(() => Me)
|
592
548
|
},
|
593
549
|
{
|
594
550
|
path: "profile/:_id/blogposts",
|
@@ -601,7 +557,7 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
|
|
601
557
|
},
|
602
558
|
component: () => import(
|
603
559
|
/* webpackChunkName: "profile" */
|
604
|
-
"./ProfileBlogposts-
|
560
|
+
"./ProfileBlogposts-b59992cf.mjs"
|
605
561
|
)
|
606
562
|
},
|
607
563
|
{
|
@@ -615,7 +571,7 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
|
|
615
571
|
},
|
616
572
|
component: () => import(
|
617
573
|
/* webpackChunkName: "profile" */
|
618
|
-
"./ProfileEvents-
|
574
|
+
"./ProfileEvents-bbdd62e7.mjs"
|
619
575
|
)
|
620
576
|
},
|
621
577
|
{
|
@@ -629,7 +585,7 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
|
|
629
585
|
},
|
630
586
|
component: () => import(
|
631
587
|
/* webpackChunkName: "profile" */
|
632
|
-
"./ProfileOrganizations-
|
588
|
+
"./ProfileOrganizations-4734c02e.mjs"
|
633
589
|
)
|
634
590
|
}
|
635
591
|
// ,{
|
@@ -655,8 +611,8 @@ const Te = { class: "pd-medium for-transition w-100" }, je = /* @__PURE__ */ r("
|
|
655
611
|
// },
|
656
612
|
];
|
657
613
|
export {
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
614
|
+
Pe as Profile,
|
615
|
+
ze as ProfileEdit,
|
616
|
+
ht as usersRoutes,
|
617
|
+
_t as usersStore
|
662
618
|
};
|