@ozdao/prometheus-framework 0.0.88 → 0.0.90
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs → Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs} +8 -7
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e32a3041.js +1 -0
- package/dist/{ButtonFollow-728aab73.mjs → ButtonFollow-5e19fc49.mjs} +7 -6
- package/dist/ButtonFollow-959861db.js +1 -0
- package/dist/CardOrganization-01c2e248.mjs +210 -0
- package/dist/CardOrganization-1be3651b.js +1 -0
- package/dist/{CardHeader-925a972b.js → Chips-2a0d9bfe.js} +1 -1
- package/dist/Chips-f0b7ce36.mjs +110 -0
- package/dist/{Feed-a31c43c2.mjs → Feed-8bbb7077.mjs} +100 -95
- package/dist/{Feed-dc8b66bf.mjs → Feed-986ddd21.mjs} +114 -126
- package/dist/Feed-a2870bbf.js +1 -0
- package/dist/Feed-f987d8bb.js +1 -0
- package/dist/IconEdit-823ddda9.js +1 -0
- package/dist/IconEdit-f0ad8b9a.mjs +205 -0
- package/dist/{Image-9a870c88.js → Image-0f2814f0.js} +2 -2
- package/dist/{Image-6c7584f5.mjs → Image-9e90a5f6.mjs} +2 -2
- package/dist/{PlaceholderUserpic-2221dbf2.mjs → PlaceholderUserpic-14c6ea7e.mjs} +1 -1
- package/dist/PlaceholderUserpic-20d58460.js +1 -0
- package/dist/{Popup-105ef2c3.js → Popup-0106ee0c.js} +1 -1
- package/dist/{Popup-0c791801.mjs → Popup-31c7ffc6.mjs} +1 -1
- package/dist/{Product-2fbf9d99.js → Product-54854cd1.js} +2 -2
- package/dist/{Product-1724d88d.mjs → Product-58a83c67.mjs} +19 -18
- package/dist/ProductEdit-36e5cfdd.js +1 -0
- package/dist/{ProductEdit-20709821.mjs → ProductEdit-56752bbe.mjs} +32 -31
- package/dist/{ProfileBlogposts-fb014bc6.mjs → ProfileBlogposts-67e1bd8f.mjs} +13 -12
- package/dist/ProfileBlogposts-a798df3d.js +1 -0
- package/dist/{ProfileComments-58094a50.mjs → ProfileComments-17352b6a.mjs} +9 -8
- package/dist/ProfileComments-473c3413.js +1 -0
- package/dist/{ProfileEvents-5d206e3d.mjs → ProfileEvents-76166bc5.mjs} +15 -14
- package/dist/ProfileEvents-cdebd612.js +1 -0
- package/dist/ProfileLikes-da6303a4.js +1 -0
- package/dist/{ProfileLikes-503712ec.mjs → ProfileLikes-f838ff5e.mjs} +13 -12
- package/dist/ProfileOrganizations-5348e892.js +1 -0
- package/dist/{ProfileOrganizations-32ab1e30.mjs → ProfileOrganizations-58ebfe44.mjs} +9 -8
- package/dist/Publics-e14d36ed.js +1 -0
- package/dist/{Publics-9ebffff1.mjs → Publics-fcb1f708.mjs} +17 -16
- package/dist/{Tab-fcb73759.mjs → Tab-a243605d.mjs} +1 -1
- package/dist/{UploadImage-441e8526.js → UploadImage-73d66f27.js} +1 -1
- package/dist/{UploadImage-d33b293e.mjs → UploadImage-a3ef4012.mjs} +1 -1
- package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
- package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
- package/dist/{auth-8b5aac7a.mjs → auth-5217f6a5.mjs} +13 -17
- package/dist/auth-5a58f8cb.js +8 -0
- package/dist/auth.client.cjs +8 -8
- package/dist/auth.client.js +18 -17
- package/dist/{auth.validation-093babe9.mjs → auth.validation-9f87ea95.mjs} +1 -1
- package/dist/{auth.validation-a18510e8.js → auth.validation-be05e981.js} +1 -1
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +28 -26
- package/dist/community.server.js +7 -167
- package/dist/community.server.mjs +7 -167
- package/dist/components/Address/Address.vue.d.ts.map +1 -1
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Field/Field.vue.d.ts.map +1 -1
- package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
- package/dist/components/FieldPhone/FieldPhone.vue.d.ts +1 -1
- package/dist/components/FieldPhone/FieldPhone.vue.d.ts.map +1 -1
- package/dist/components/LocationMarker/LocationMarker.vue.d.ts.map +1 -1
- package/dist/components/Map/Map.vue.d.ts.map +1 -1
- package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/SelectMulti/SelectMulti.vue.d.ts.map +1 -1
- package/dist/components/Spoiler/Spoiler.vue.d.ts.map +1 -1
- package/dist/components/Tab/Tab.vue.d.ts.map +1 -1
- package/dist/components/Text/Text.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
- package/dist/components/Upload/Upload.vue.d.ts.map +1 -1
- package/dist/events.client.cjs +1 -1
- package/dist/events.client.js +26 -24
- package/dist/{inputs.validation-6960f71b.mjs → inputs.validation-14e8e01f.mjs} +4 -4
- package/dist/landing.client.cjs +1 -0
- package/dist/landing.client.js +132 -0
- package/dist/main.css +1 -1
- package/dist/modules/icons/labels/LabelAppStore.vue.d.ts +2 -0
- package/dist/modules/icons/labels/LabelGooglePlay.vue.d.ts +2 -0
- package/dist/modules/{community/components/blocks/HeaderBlogpost.vue.d.ts → landing/components/sections/MobileApp.vue.d.ts} +3 -3
- package/dist/{organizations-1b4c84ee.mjs → organizations-2adff182.mjs} +3 -3
- package/dist/organizations-e97a0f85.js +1 -0
- package/dist/{organizations.client-253c8068.mjs → organizations.client-88d41199.mjs} +998 -1139
- package/dist/organizations.client-d21a22ec.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +36 -35
- package/dist/organizations.server.js +7 -3
- package/dist/organizations.server.mjs +7 -3
- package/dist/prometheus-framework.cjs.js +19 -19
- package/dist/prometheus-framework.es.js +2173 -2165
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +266 -256
- package/dist/users.server.js +2 -2
- package/dist/users.server.mjs +2 -2
- package/package.json +6 -2
- package/src/components/Field/Field.vue +2 -1
- package/src/components/Text/Text.vue +3 -1
- package/src/modules/community/community.server.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +8 -0
- package/src/modules/community/components/pages/Blog.vue +1 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +2 -1
- package/src/modules/community/controllers/blog.controller.js +5 -1
- package/src/modules/events/components/pages/EditEvent.vue +2 -1
- package/src/modules/icons/labels/LabelAppStore.vue +32 -0
- package/src/modules/icons/labels/LabelGooglePlay.vue +48 -0
- package/src/modules/landing/components/sections/MobileApp.vue +125 -0
- package/src/modules/landing/landing.client.js +7 -0
- package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -1
- package/src/modules/organizations/components/blocks/Socials.vue +16 -3
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +39 -15
- package/src/modules/organizations/components/sections/DetailsTab.vue +13 -9
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/organization.model.js +6 -2
- package/src/modules/organizations/store/organizations.js +2 -2
- package/src/modules/users/components/pages/Profile.vue +26 -11
- package/src/modules/users/components/pages/ProfileEdit.vue +28 -10
- package/src/modules/users/models/user.model.js +2 -2
- package/src/modules/users/store/users.js +1 -2
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0216f2b0.js +0 -7
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0cb41a82.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-15e71ec4.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2809e848.mjs +0 -219
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-2af7f63b.mjs +0 -80
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-451d2614.mjs +0 -80
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-474eb4c2.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-5ea8b4fa.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs +0 -138
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-85119a4e.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-8cb3c120.mjs +0 -185
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-a477dfc6.mjs +0 -138
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-c6f3a0f0.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-d777ad17.mjs +0 -80
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-dd037bbf.js +0 -1
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-e133a3c6.mjs +0 -80
- package/dist/ButtonFollow-0d83a04a.mjs +0 -130
- package/dist/ButtonFollow-1aca37e0.mjs +0 -130
- package/dist/ButtonFollow-1b655344.js +0 -1
- package/dist/ButtonFollow-2ce169ca.js +0 -1
- package/dist/ButtonFollow-6bbf3e24.mjs +0 -130
- package/dist/ButtonFollow-6cd2efa2.mjs +0 -130
- package/dist/ButtonFollow-b29bd420.mjs +0 -130
- package/dist/ButtonFollow-c4680999.js +0 -1
- package/dist/ButtonFollow-c9484003.mjs +0 -130
- package/dist/ButtonFollow-d983e174.js +0 -1
- package/dist/ButtonFollow-f630623a.js +0 -1
- package/dist/ButtonFollow-f9c5dc7a.js +0 -1
- package/dist/CardHeader-2d7e5d49.mjs +0 -76
- package/dist/CardHeader-2ef6618e.mjs +0 -96
- package/dist/CardHeader-377cfc4b.js +0 -1
- package/dist/CardHeader-39f75e85.mjs +0 -76
- package/dist/CardHeader-88de7b20.mjs +0 -76
- package/dist/CardHeader-ce5a1a75.mjs +0 -96
- package/dist/CardHeader-ddf82318.js +0 -1
- package/dist/CardHeader-dff9c71a.js +0 -1
- package/dist/CardHeader-e15eb618.js +0 -1
- package/dist/CardHeader-e517c801.mjs +0 -76
- package/dist/CardOrganization-0291683b.js +0 -1
- package/dist/CardOrganization-1384ff9a.mjs +0 -320
- package/dist/CardOrganization-21de52b3.js +0 -1
- package/dist/CardOrganization-3c42e14f.mjs +0 -320
- package/dist/CardOrganization-4859370e.mjs +0 -320
- package/dist/CardOrganization-58b54995.js +0 -1
- package/dist/CardOrganization-91e79698.mjs +0 -320
- package/dist/CardOrganization-9841dbe0.js +0 -1
- package/dist/CardOrganization-a05f3a19.js +0 -1
- package/dist/CardOrganization-a75b523d.mjs +0 -63
- package/dist/CardOrganization-d462e158.mjs +0 -320
- package/dist/CardOrganization-ee5c34ab.js +0 -1
- package/dist/CardOrganization-f70bd169.mjs +0 -202
- package/dist/CardOrganization-ffa585a7.js +0 -1
- package/dist/Comments-1aec0e5e.js +0 -1
- package/dist/Comments-5ed669ea.mjs +0 -74
- package/dist/Comments-63f154a6.js +0 -9
- package/dist/Comments-641516f8.mjs +0 -76
- package/dist/Comments-646c73ee.js +0 -1
- package/dist/Comments-6ff58c26.js +0 -1
- package/dist/Comments-7c4f2715.js +0 -1
- package/dist/Comments-81feeb4a.mjs +0 -76
- package/dist/Comments-9427a0eb.mjs +0 -76
- package/dist/Comments-b5821190.mjs +0 -76
- package/dist/Comments-b620bae6.js +0 -1
- package/dist/Comments-b6e32958.js +0 -1
- package/dist/Comments-c092550f.mjs +0 -76
- package/dist/Comments-c5afa4d6.mjs +0 -459
- package/dist/Comments-d2a8fd0f.mjs +0 -76
- package/dist/DepartmentEdit-305a0f5d.mjs +0 -374
- package/dist/DepartmentEdit-6abd59e1.js +0 -1
- package/dist/DepartmentEdit-9e6fe007.mjs +0 -374
- package/dist/DepartmentEdit-d98c2239.js +0 -1
- package/dist/EditProductImages-04ec4326.js +0 -1
- package/dist/EditProductImages-11510b66.js +0 -1
- package/dist/EditProductImages-1d4b44a9.mjs +0 -236
- package/dist/EditProductImages-4246db75.mjs +0 -236
- package/dist/EditProductImages-42f9f665.mjs +0 -236
- package/dist/EditProductImages-61ff4321.mjs +0 -236
- package/dist/EditProductImages-98d13eb0.js +0 -1
- package/dist/EditProductImages-9f25f39f.mjs +0 -236
- package/dist/EditProductImages-b1b05c03.js +0 -1
- package/dist/EditProductImages-c7daafb2.mjs +0 -236
- package/dist/EditProductImages-cf67d31b.js +0 -1
- package/dist/EditProductImages-cfb1856e.mjs +0 -237
- package/dist/EditProductImages-d9228ad0.js +0 -1
- package/dist/EditProductImages-ec630dbf.js +0 -1
- package/dist/EditProductImages-f983f473.mjs +0 -236
- package/dist/EmptyState-1214f70b.mjs +0 -36
- package/dist/EmptyState-23c13029.js +0 -1
- package/dist/Feed-0b549674.js +0 -1
- package/dist/Feed-193dd1df.mjs +0 -342
- package/dist/Feed-26bf6bef.js +0 -1
- package/dist/Feed-2f9a1922.mjs +0 -334
- package/dist/Feed-31523f38.js +0 -1
- package/dist/Feed-51e4e232.js +0 -1
- package/dist/Feed-531de2d5.js +0 -1
- package/dist/Feed-55c5907a.js +0 -1
- package/dist/Feed-5c9e4e74.mjs +0 -340
- package/dist/Feed-706cd7c0.mjs +0 -383
- package/dist/Feed-8009e4f8.js +0 -1
- package/dist/Feed-81d5802e.mjs +0 -355
- package/dist/Feed-83ef5666.js +0 -1
- package/dist/Feed-8fd41524.js +0 -1
- package/dist/Feed-91eff3af.mjs +0 -393
- package/dist/Feed-926cf4f3.mjs +0 -355
- package/dist/Feed-932d976d.js +0 -1
- package/dist/Feed-962e009b.js +0 -1
- package/dist/Feed-a82ae26b.js +0 -1
- package/dist/Feed-aa3bd30a.js +0 -1
- package/dist/Feed-b8eeb4e7.js +0 -1
- package/dist/Feed-bd7b1a45.js +0 -1
- package/dist/Feed-c0007a83.mjs +0 -383
- package/dist/Feed-c93012c7.mjs +0 -346
- package/dist/Feed-ca8e0e22.mjs +0 -423
- package/dist/Feed-d2e5978c.mjs +0 -342
- package/dist/Feed-d4220f74.mjs +0 -340
- package/dist/Feed-d8e33aed.mjs +0 -397
- package/dist/Feed-df5bbb3c.mjs +0 -346
- package/dist/Feed-e5fb4972.mjs +0 -397
- package/dist/Feed-e8fb21ed.js +0 -1
- package/dist/Feed-e91b36ea.mjs +0 -390
- package/dist/Feed-ecf37814.mjs +0 -367
- package/dist/Feed-f4cad6c3.js +0 -1
- package/dist/Field-740d5a17.mjs +0 -60
- package/dist/Field-a1770ccf.js +0 -1
- package/dist/Field-ada86df2.js +0 -1
- package/dist/Field-e839d9ca.mjs +0 -60
- package/dist/Footer.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
- package/dist/Footer.vue_vue_type_style_index_0_lang-2f7f46f1.js +0 -7
- package/dist/Footer.vue_vue_type_style_index_0_lang-39d2aa14.mjs +0 -37
- package/dist/Footer.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
- package/dist/HeaderBlogpost-59dd9a6b.mjs +0 -93
- package/dist/HeaderBlogpost-8ec43cd0.js +0 -1
- package/dist/IconEdit-736c89be.js +0 -1
- package/dist/IconEdit-e9fd4c6c.mjs +0 -21
- package/dist/PlaceholderUserpic-1a6cf257.mjs +0 -28
- package/dist/PlaceholderUserpic-3bf126ee.js +0 -1
- package/dist/PlaceholderUserpic-3c1b9f7b.mjs +0 -28
- package/dist/PlaceholderUserpic-43e5ab23.js +0 -1
- package/dist/PlaceholderUserpic-4fe04ec9.mjs +0 -28
- package/dist/PlaceholderUserpic-52966e09.js +0 -1
- package/dist/PlaceholderUserpic-9085715c.mjs +0 -28
- package/dist/PlaceholderUserpic-995da0fc.mjs +0 -28
- package/dist/PlaceholderUserpic-b27c51f7.js +0 -1
- package/dist/PlaceholderUserpic-d64d6dd5.js +0 -1
- package/dist/PlaceholderUserpic-e44ccca8.mjs +0 -28
- package/dist/PlaceholderUserpic-fe8bd48d.js +0 -1
- package/dist/Popup-70f6a8c0.mjs +0 -76
- package/dist/Popup-82fb2c8a.mjs +0 -76
- package/dist/Popup-9479e39a.js +0 -1
- package/dist/Popup.vue_vue_type_style_index_0_lang-0cbf3253.js +0 -1
- package/dist/Popup.vue_vue_type_style_index_0_lang-22048704.mjs +0 -280
- package/dist/Popup.vue_vue_type_style_index_0_lang-28b9af00.mjs +0 -280
- package/dist/Popup.vue_vue_type_style_index_0_lang-4f16907f.mjs +0 -924
- package/dist/Popup.vue_vue_type_style_index_0_lang-5b5f9cd7.js +0 -5
- package/dist/Popup.vue_vue_type_style_index_0_lang-769e7cf5.js +0 -5
- package/dist/Popup.vue_vue_type_style_index_0_lang-8981c189.mjs +0 -280
- package/dist/Popup.vue_vue_type_style_index_0_lang-931f265a.js +0 -1
- package/dist/Popup.vue_vue_type_style_index_0_lang-a191c190.js +0 -1
- package/dist/Popup.vue_vue_type_style_index_0_lang-a9351a87.js +0 -1
- package/dist/Popup.vue_vue_type_style_index_0_lang-d05075a7.mjs +0 -280
- package/dist/Popup.vue_vue_type_style_index_0_lang-f2c0cfb5.mjs +0 -924
- package/dist/Product-0195429b.js +0 -1
- package/dist/Product-035252c0.js +0 -1
- package/dist/Product-05cc1386.mjs +0 -687
- package/dist/Product-151f4473.mjs +0 -904
- package/dist/Product-19cc3654.js +0 -7
- package/dist/Product-2f3d592f.mjs +0 -837
- package/dist/Product-334f8bf4.mjs +0 -904
- package/dist/Product-35904a9b.js +0 -7
- package/dist/Product-3c64a352.mjs +0 -904
- package/dist/Product-45a6e7bd.mjs +0 -687
- package/dist/Product-4a5f985d.mjs +0 -837
- package/dist/Product-60e14832.mjs +0 -904
- package/dist/Product-67efba5c.js +0 -7
- package/dist/Product-6c37ef35.js +0 -7
- package/dist/Product-7087b358.mjs +0 -837
- package/dist/Product-96195a8e.js +0 -7
- package/dist/Product-a94d8b65.js +0 -7
- package/dist/Product-b440df7f.js +0 -7
- package/dist/Product-c3a77d07.mjs +0 -837
- package/dist/Product-c8441f02.js +0 -7
- package/dist/Product-cf9cfe65.mjs +0 -904
- package/dist/Product-df622dc0.mjs +0 -837
- package/dist/Product-eb2b6725.js +0 -7
- package/dist/Product-f4dbd969.mjs +0 -837
- package/dist/Product-f819b17e.js +0 -7
- package/dist/Product-fb63c7cd.js +0 -7
- package/dist/ProductEdit-04760699.js +0 -1
- package/dist/ProductEdit-177c1f16.mjs +0 -113
- package/dist/ProductEdit-1e990a92.js +0 -1
- package/dist/ProductEdit-20bda9f1.mjs +0 -113
- package/dist/ProductEdit-39adf62f.mjs +0 -113
- package/dist/ProductEdit-4d6f3720.js +0 -1
- package/dist/ProductEdit-57484f1e.mjs +0 -349
- package/dist/ProductEdit-5e419719.mjs +0 -113
- package/dist/ProductEdit-5f9a55b6.mjs +0 -113
- package/dist/ProductEdit-765f4780.js +0 -1
- package/dist/ProductEdit-9e579dd7.mjs +0 -113
- package/dist/ProductEdit-a81d13b9.js +0 -1
- package/dist/ProductEdit-b98883d8.js +0 -1
- package/dist/ProductEdit-c3c6341d.js +0 -1
- package/dist/ProductEdit-c5067942.mjs +0 -113
- package/dist/ProductEdit-ca271287.js +0 -1
- package/dist/ProductEdit-e2d47403.mjs +0 -113
- package/dist/ProductEdit-ef301baa.js +0 -1
- package/dist/ProfileBlogposts-00424109.js +0 -1
- package/dist/ProfileBlogposts-03658199.js +0 -1
- package/dist/ProfileBlogposts-11bfd9dc.js +0 -1
- package/dist/ProfileBlogposts-317742ee.mjs +0 -56
- package/dist/ProfileBlogposts-4341ca89.mjs +0 -46
- package/dist/ProfileBlogposts-55037a06.mjs +0 -56
- package/dist/ProfileBlogposts-65a7a5e0.mjs +0 -56
- package/dist/ProfileBlogposts-79d5c858.mjs +0 -63
- package/dist/ProfileBlogposts-892fdcf8.mjs +0 -56
- package/dist/ProfileBlogposts-dc11090e.js +0 -1
- package/dist/ProfileBlogposts-e55e30ae.js +0 -1
- package/dist/ProfileBlogposts-e9a7381e.js +0 -1
- package/dist/ProfileBlogposts-eca9916c.js +0 -1
- package/dist/ProfileBlogposts-ffa10f34.mjs +0 -63
- package/dist/ProfileComments-0396b55c.js +0 -1
- package/dist/ProfileComments-08d1670d.mjs +0 -43
- package/dist/ProfileComments-2e2a3a7a.mjs +0 -42
- package/dist/ProfileComments-34eb560b.mjs +0 -43
- package/dist/ProfileComments-48f3d4bc.mjs +0 -43
- package/dist/ProfileComments-5884d09f.mjs +0 -43
- package/dist/ProfileComments-66651060.mjs +0 -43
- package/dist/ProfileComments-677731b3.js +0 -1
- package/dist/ProfileComments-730c2f73.js +0 -1
- package/dist/ProfileComments-82791682.js +0 -1
- package/dist/ProfileComments-b6a688cd.js +0 -1
- package/dist/ProfileComments-b919f021.js +0 -1
- package/dist/ProfileComments-d3966a83.mjs +0 -43
- package/dist/ProfileComments-f5f260ec.js +0 -1
- package/dist/ProfileEvents-05485e20.js +0 -1
- package/dist/ProfileEvents-138ae25e.mjs +0 -55
- package/dist/ProfileEvents-1cfe6858.mjs +0 -55
- package/dist/ProfileEvents-20695376.mjs +0 -55
- package/dist/ProfileEvents-20e9da99.mjs +0 -46
- package/dist/ProfileEvents-45c4b137.mjs +0 -55
- package/dist/ProfileEvents-676239cc.js +0 -1
- package/dist/ProfileEvents-6e6c253b.mjs +0 -46
- package/dist/ProfileEvents-858e9471.mjs +0 -55
- package/dist/ProfileEvents-85a88674.mjs +0 -55
- package/dist/ProfileEvents-89def76b.js +0 -1
- package/dist/ProfileEvents-94d7b407.js +0 -1
- package/dist/ProfileEvents-b057d374.js +0 -1
- package/dist/ProfileEvents-b5431cd6.js +0 -1
- package/dist/ProfileEvents-b8a76b6e.js +0 -1
- package/dist/ProfileEvents-c1e04ac1.mjs +0 -46
- package/dist/ProfileEvents-cd75d80b.js +0 -1
- package/dist/ProfileEvents-cebebb17.js +0 -1
- package/dist/ProfileEvents-d53e7729.mjs +0 -46
- package/dist/ProfileEvents-d8e16509.js +0 -1
- package/dist/ProfileEvents-ddaf8fba.mjs +0 -55
- package/dist/ProfileEvents-ffe0e6f3.js +0 -1
- package/dist/ProfileLikes-0668b718.js +0 -1
- package/dist/ProfileLikes-2f3a4488.js +0 -1
- package/dist/ProfileLikes-405c2636.js +0 -1
- package/dist/ProfileLikes-4242bca5.mjs +0 -43
- package/dist/ProfileLikes-4a57f637.mjs +0 -43
- package/dist/ProfileLikes-7f965631.mjs +0 -43
- package/dist/ProfileLikes-854276f0.js +0 -1
- package/dist/ProfileLikes-8ccf6815.js +0 -1
- package/dist/ProfileLikes-a78900c0.js +0 -1
- package/dist/ProfileLikes-b5ac7f48.mjs +0 -43
- package/dist/ProfileLikes-c32c420b.mjs +0 -43
- package/dist/ProfileLikes-c4c87300.mjs +0 -42
- package/dist/ProfileLikes-c899e3df.js +0 -1
- package/dist/ProfileLikes-d978b084.mjs +0 -43
- package/dist/ProfileOrganizations-04cc9d6d.mjs +0 -198
- package/dist/ProfileOrganizations-0b76e38f.js +0 -1
- package/dist/ProfileOrganizations-0e202612.js +0 -1
- package/dist/ProfileOrganizations-13748b09.js +0 -1
- package/dist/ProfileOrganizations-1990d0cc.js +0 -1
- package/dist/ProfileOrganizations-2633e9e4.mjs +0 -198
- package/dist/ProfileOrganizations-3f305f4e.mjs +0 -210
- package/dist/ProfileOrganizations-46b6e015.mjs +0 -202
- package/dist/ProfileOrganizations-4ffaf01c.js +0 -1
- package/dist/ProfileOrganizations-50fce34e.js +0 -1
- package/dist/ProfileOrganizations-567e87e1.mjs +0 -210
- package/dist/ProfileOrganizations-5abfcc59.js +0 -1
- package/dist/ProfileOrganizations-5d681498.mjs +0 -202
- package/dist/ProfileOrganizations-704f628b.js +0 -1
- package/dist/ProfileOrganizations-b83f6720.js +0 -1
- package/dist/ProfileOrganizations-c58a4fb9.js +0 -1
- package/dist/ProfileOrganizations-c7688210.js +0 -1
- package/dist/ProfileOrganizations-ca9a95a1.js +0 -1
- package/dist/ProfileOrganizations-dbc8a6cd.mjs +0 -214
- package/dist/ProfileOrganizations-dc7210f1.mjs +0 -214
- package/dist/ProfileOrganizations-e4fd2b05.mjs +0 -202
- package/dist/ProfileOrganizations-f6e00809.mjs +0 -214
- package/dist/ProfileOrganizations-feef34df.mjs +0 -112
- package/dist/Publics-07d5bbc4.js +0 -1
- package/dist/Publics-122d9fc7.mjs +0 -1078
- package/dist/Publics-13c48a23.mjs +0 -47
- package/dist/Publics-17009745.mjs +0 -1926
- package/dist/Publics-213e0e9e.mjs +0 -44
- package/dist/Publics-21f24533.mjs +0 -44
- package/dist/Publics-3f277c17.js +0 -1
- package/dist/Publics-450a6715.mjs +0 -1926
- package/dist/Publics-49dbeafc.js +0 -1
- package/dist/Publics-501c9f27.js +0 -1
- package/dist/Publics-54134615.mjs +0 -47
- package/dist/Publics-889c25fc.js +0 -1
- package/dist/Publics-8bea4201.mjs +0 -44
- package/dist/Publics-8d94ee66.js +0 -1
- package/dist/Publics-a030da8f.js +0 -1
- package/dist/Publics-aca585c3.js +0 -1
- package/dist/Publics-b0fad2b0.mjs +0 -1926
- package/dist/Publics-becb1486.js +0 -1
- package/dist/Publics-c6f6b824.js +0 -1
- package/dist/Publics-c9d5aa74.js +0 -1
- package/dist/Publics-fbc8d2db.mjs +0 -1926
- package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js +0 -1
- package/dist/Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-4ed993c7.mjs +0 -1
- package/dist/Tab-054b61f7.mjs +0 -46
- package/dist/Tab-1ca0fe66.js +0 -1
- package/dist/Tab-58cd105f.mjs +0 -46
- package/dist/Tab-b0a7ac11.js +0 -1
- package/dist/Tab-c67fbf51.mjs +0 -46
- package/dist/Tab-f04c185d.js +0 -1
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +0 -1
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +0 -1
- package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-0b4edb09.js +0 -1
- package/dist/Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-5531689e.mjs +0 -123
- package/dist/UploadImage-1b8c18c4.mjs +0 -99
- package/dist/UploadImage-34bc4a3f.mjs +0 -99
- package/dist/UploadImage-4e91bd99.js +0 -1
- package/dist/UploadImage-74280ea3.mjs +0 -99
- package/dist/UploadImage-75b1a18a.js +0 -1
- package/dist/UploadImage-7c502f96.js +0 -1
- package/dist/UploadImage-96408782.mjs +0 -99
- package/dist/UploadImage-9abb7116.js +0 -1
- package/dist/UploadImage-b1acc48f.mjs +0 -99
- package/dist/UploadImage-c81c3b76.js +0 -1
- package/dist/UploadImage-cd6de241.js +0 -1
- package/dist/UploadImage-d1dbc280.mjs +0 -99
- package/dist/UploadImage-ff8f9a0c.mjs +0 -83
- package/dist/auth-07c01b19.js +0 -8
- package/dist/auth-18f80fef.mjs +0 -1501
- package/dist/auth-35ef1791.mjs +0 -1502
- package/dist/auth-50bd4ebb.js +0 -8
- package/dist/auth-5aa8e90c.js +0 -8
- package/dist/auth-708eebcb.mjs +0 -1446
- package/dist/auth-78fd9408.js +0 -8
- package/dist/auth-7dff19e4.js +0 -8
- package/dist/auth-84680727.mjs +0 -1501
- package/dist/auth-ab40831d.js +0 -8
- package/dist/auth-d102dac0.mjs +0 -1501
- package/dist/auth-f81f3598.mjs +0 -1439
- package/dist/auth.validation-1fb0cb4f.js +0 -1
- package/dist/auth.validation-29113f37.mjs +0 -20
- package/dist/auth.validation-2d33e8c7.mjs +0 -20
- package/dist/auth.validation-2e8ee994.js +0 -1
- package/dist/auth.validation-6923140f.js +0 -1
- package/dist/auth.validation-69488f55.mjs +0 -20
- package/dist/auth.validation-6bccabd6.mjs +0 -20
- package/dist/auth.validation-9cfd985b.mjs +0 -20
- package/dist/auth.validation-9f7c7948.js +0 -1
- package/dist/auth.validation-b644ee65.js +0 -1
- package/dist/auth.validation-f23a7238.mjs +0 -21
- package/dist/categories-75b7d14b.js +0 -1
- package/dist/categories-86b2d45b.mjs +0 -225
- package/dist/categories-d669f3af.mjs +0 -225
- package/dist/components/FieldPhone/<script>.vue.d.ts +0 -547
- package/dist/globals-d7a54bb4.js +0 -1
- package/dist/globals-f538c0ef.mjs +0 -87
- package/dist/inputs.validation-498d8ec9.js +0 -1
- package/dist/inputs.validation-5732152a.mjs +0 -93
- package/dist/inputs.validation-c473ebe7.mjs +0 -93
- package/dist/inputs.validation-c53e01a2.js +0 -1
- package/dist/modules/community/components/blocks/CardOrganization.vue.d.ts +0 -8
- package/dist/modules/community/components/elements/Bullets.vue.d.ts +0 -15
- package/dist/modules/community/components/elements/Caption.vue.d.ts +0 -15
- package/dist/modules/community/components/elements/H2.vue.d.ts +0 -16
- package/dist/modules/community/components/elements/Image.vue.d.ts +0 -8
- package/dist/modules/community/components/elements/ImageUpload.vue.d.ts +0 -9
- package/dist/modules/community/components/elements/Textarea.vue.d.ts +0 -16
- package/dist/modules/community/components/pages/BlogPost.old.vue.d.ts +0 -2
- package/dist/modules/community/components/sections/Publics.vue.d.ts +0 -2
- package/dist/modules/events/components/layouts/Events.vue.d.ts +0 -2
- package/dist/modules/organizations/components/blocks/CardOrganizationSocial.vue.d.ts +0 -8
- package/dist/organizations-0e9ff7ca.mjs +0 -319
- package/dist/organizations-35fe2db4.js +0 -1
- package/dist/organizations-4d74e13b.js +0 -1
- package/dist/organizations-5f9c7fbd.js +0 -1
- package/dist/organizations-6c1450fa.mjs +0 -153
- package/dist/organizations-773c328c.mjs +0 -319
- package/dist/organizations-a9b86de7.mjs +0 -319
- package/dist/organizations-af43bda4.js +0 -1
- package/dist/organizations-b3df0859.js +0 -1
- package/dist/organizations-c77ea9d0.js +0 -1
- package/dist/organizations-d4307861.mjs +0 -319
- package/dist/organizations-dd07ba2c.js +0 -1
- package/dist/organizations-fb1a2214.mjs +0 -319
- package/dist/organizations.client-3b4eb66e.mjs +0 -2898
- package/dist/organizations.client-4e29c957.js +0 -3
- package/dist/organizations.client-686845be.mjs +0 -3179
- package/dist/organizations.client-71c9abde.mjs +0 -2898
- package/dist/organizations.client-99bfc474.js +0 -3
- package/dist/organizations.client-ba59ed4e.js +0 -3
- package/dist/organizations.client-c60d7659.js +0 -3
- package/src/modules/community/controllers/blog.old.controller.js +0 -207
@@ -1,84 +1,85 @@
|
|
1
|
-
import { computed as
|
2
|
-
import { useRoute as
|
1
|
+
import { computed as A, resolveComponent as ue, openBlock as o, createElementBlock as r, Fragment as O, renderList as L, unref as x, normalizeClass as te, createCommentVNode as g, createBlock as $, withCtx as k, createTextVNode as N, toDisplayString as f, createElementVNode as n, ref as b, Transition as R, createVNode as h, renderSlot as z, reactive as oe, watch as F, onMounted as pe, pushScopeId as me, popScopeId as he, withAsyncContext as Y, withModifiers as re, watchEffect as de, resolveDirective as Ie, normalizeProps as I, guardReactiveProps as B, resolveDynamicComponent as le, mergeProps as ve, toHandlers as Te, withDirectives as ne, vShow as ye, toRefs as Be, vModelText as we } from "vue";
|
2
|
+
import { useRoute as q, useRouter as H } from "vue-router";
|
3
3
|
import { useI18n as je } from "vue-i18n";
|
4
4
|
import { s as C } from "./globals-96ba60e4.mjs";
|
5
|
-
import {
|
6
|
-
import { _ as
|
7
|
-
import { a as ge, B as Fe, m as
|
8
|
-
import { _ as
|
9
|
-
import { _ as Ne } from "./Feed-
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
import { v as
|
14
|
-
import { a as
|
15
|
-
import { _ as
|
16
|
-
import { _ as
|
17
|
-
import {
|
18
|
-
|
5
|
+
import { S as Ue, _ as Ee, C as J } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-d9c6e4d1.mjs";
|
6
|
+
import { _ as Pe } from "./Tab-a243605d.mjs";
|
7
|
+
import { a as ge, B as Fe, m as qe, s as He } from "./ButtonFollow-5e19fc49.mjs";
|
8
|
+
import { _ as Ze } from "./Feed-986ddd21.mjs";
|
9
|
+
import { _ as Ne } from "./Feed-8bbb7077.mjs";
|
10
|
+
import { I as Re, _ as Ke } from "./IconEdit-f0ad8b9a.mjs";
|
11
|
+
import { P as We } from "./PlaceholderUserpic-14c6ea7e.mjs";
|
12
|
+
import { a as _e, s as S, F as D, _ as ce } from "./auth-5217f6a5.mjs";
|
13
|
+
import { v as Ye, a as Je } from "./inputs.validation-14e8e01f.mjs";
|
14
|
+
import { a as Z, s as v } from "./organizations-2adff182.mjs";
|
15
|
+
import { _ as V } from "./_plugin-vue_export-helper-dad06003.mjs";
|
16
|
+
import { _ as ze } from "./UploadImage-a3ef4012.mjs";
|
17
|
+
import { _ as Qe } from "./CardOrganization-01c2e248.mjs";
|
18
|
+
import { S as Me } from "./Publics-fcb1f708.mjs";
|
19
|
+
const Xe = {
|
19
20
|
class: "breadcrumbs flex-row flex-nowrap flex-left flex",
|
20
21
|
"aria-label": "breadcrumbs"
|
21
|
-
},
|
22
|
+
}, Ge = {
|
22
23
|
key: 0,
|
23
24
|
class: "i-small mn-r-thin",
|
24
25
|
viewBox: "0 0 10 9",
|
25
26
|
fill: "none",
|
26
27
|
xmlns: "http://www.w3.org/2000/svg"
|
27
|
-
},
|
28
|
+
}, et = /* @__PURE__ */ n("path", {
|
28
29
|
fill: "black",
|
29
30
|
d: "M0.494141 4.26391C0.494141 4.48862 0.659906 4.66912 0.928813 4.66912C1.05037 4.66912 1.16825 4.6065 1.27139 4.52177L1.64344 4.20866V7.56448C1.64344 8.13545 1.98971 8.47803 2.5791 8.47803H7.56678C8.15616 8.47803 8.50243 8.13545 8.50243 7.56448V4.19392L8.8929 4.52177C8.99604 4.6065 9.11392 4.66912 9.23916 4.66912C9.48597 4.66912 9.67015 4.5144 9.67015 4.27128C9.67015 4.1313 9.61121 4.01343 9.5007 3.92133L8.50243 3.08146V1.47538C8.50243 1.30961 8.3956 1.1991 8.22984 1.1991H7.63308C7.46732 1.1991 7.35313 1.30961 7.35313 1.47538V2.11634L5.66969 0.70181C5.31606 0.403433 4.85928 0.403433 4.50197 0.70181L0.663589 3.92133C0.553079 4.01711 0.494141 4.14235 0.494141 4.26391ZM6.13752 5.26219C6.13752 5.08906 6.02701 4.97855 5.85387 4.97855H4.31779C4.14097 4.97855 4.02678 5.08906 4.02678 5.26219V7.63447H2.83327C2.60856 7.63447 2.48332 7.50922 2.48332 7.28084V3.5014L4.90349 1.47538C5.01768 1.37592 5.15029 1.37592 5.26817 1.47538L7.66255 3.48298V7.28084C7.66255 7.50922 7.53731 7.63447 7.3126 7.63447H6.13752V5.26219Z"
|
30
|
-
}, null, -1),
|
31
|
-
|
32
|
-
],
|
31
|
+
}, null, -1), tt = [
|
32
|
+
et
|
33
|
+
], st = { key: 2 }, nt = {
|
33
34
|
key: 3,
|
34
35
|
class: "i-small chevron",
|
35
36
|
viewBox: "0 0 4 8",
|
36
37
|
fill: "none",
|
37
38
|
xmlns: "http://www.w3.org/2000/svg"
|
38
|
-
},
|
39
|
+
}, at = /* @__PURE__ */ n("path", {
|
39
40
|
d: "M4 3.99992C4 3.83673 3.94307 3.70391 3.81025 3.57867L0.899431 0.732369C0.800759 0.629902 0.679317 0.580566 0.531309 0.580566C0.239089 0.580566 0 0.815861 0 1.10808C0 1.25229 0.0607211 1.38512 0.166983 1.49138L2.74763 3.99613L0.166983 6.50846C0.0607211 6.61093 0 6.74375 0 6.89176C0 7.18398 0.239089 7.41928 0.531309 7.41928C0.675522 7.41928 0.800759 7.36994 0.899431 7.26747L3.81025 4.42117C3.94307 4.29594 4 4.15931 4 3.99992Z",
|
40
41
|
fill: "black"
|
41
|
-
}, null, -1),
|
42
|
-
|
43
|
-
],
|
42
|
+
}, null, -1), ot = [
|
43
|
+
at
|
44
|
+
], it = {
|
44
45
|
__name: "Breadcrumbs",
|
45
46
|
setup(e) {
|
46
|
-
const t =
|
47
|
-
var w, P,
|
48
|
-
const p = (w =
|
49
|
-
return { name:
|
50
|
-
}).filter((
|
51
|
-
return (
|
52
|
-
const
|
53
|
-
return
|
54
|
-
(
|
55
|
-
key:
|
56
|
-
class: te(["flex-v-center flex-nowrap flex", { "t-main":
|
47
|
+
const t = q(), { t: s, locale: a } = je(), d = A(() => t.matched.map((c) => {
|
48
|
+
var w, P, T;
|
49
|
+
const p = (w = c.meta) == null ? void 0 : w.title, l = a == null ? void 0 : a.value, u = p && l && p[l], i = c.path.replace(/:.+?\//g, (K) => ""), m = (T = (P = c.meta) == null ? void 0 : P.breadcrumbs) == null ? void 0 : T.hidden;
|
50
|
+
return { name: u, path: i, isHidden: m };
|
51
|
+
}).filter((c) => c.name && !c.isHidden));
|
52
|
+
return (c, p) => {
|
53
|
+
const l = ue("router-link");
|
54
|
+
return o(), r("ol", Xe, [
|
55
|
+
(o(!0), r(O, null, L(x(d), (u, i) => (o(), r("li", {
|
56
|
+
key: i,
|
57
|
+
class: te(["flex-v-center flex-nowrap flex", { "t-main": i === x(d).length - 1 }])
|
57
58
|
}, [
|
58
|
-
|
59
|
-
|
59
|
+
i === 0 ? (o(), r("svg", Ge, tt)) : g("", !0),
|
60
|
+
i !== x(d).length - 1 ? (o(), $(l, {
|
60
61
|
key: 1,
|
61
|
-
to:
|
62
|
+
to: i === 0 ? "/" : u.path
|
62
63
|
}, {
|
63
|
-
default:
|
64
|
-
N(f(
|
64
|
+
default: k(() => [
|
65
|
+
N(f(u.name), 1)
|
65
66
|
]),
|
66
67
|
_: 2
|
67
|
-
}, 1032, ["to"])) : (
|
68
|
-
|
68
|
+
}, 1032, ["to"])) : (o(), r("span", st, f(u.name), 1)),
|
69
|
+
i !== x(d).length - 1 ? (o(), r("svg", nt, ot)) : g("", !0)
|
69
70
|
], 2))), 128))
|
70
71
|
]);
|
71
72
|
};
|
72
73
|
}
|
73
|
-
},
|
74
|
-
|
75
|
-
],
|
76
|
-
|
77
|
-
],
|
78
|
-
|
79
|
-
],
|
80
|
-
|
81
|
-
],
|
74
|
+
}, lt = { class: "mn-small w-100" }, rt = ["href"], dt = /* @__PURE__ */ n("span", { class: "t-semi uppercase" }, "Website", -1), ct = [
|
75
|
+
dt
|
76
|
+
], ut = ["href"], pt = /* @__PURE__ */ n("span", { class: "t-semi uppercase" }, "Phone", -1), mt = [
|
77
|
+
pt
|
78
|
+
], ht = ["href"], _t = /* @__PURE__ */ n("span", { class: "t-semi uppercase" }, "Email", -1), ft = [
|
79
|
+
_t
|
80
|
+
], gt = ["href"], bt = /* @__PURE__ */ n("span", { class: "t-semi uppercase" }, "Address", -1), vt = [
|
81
|
+
bt
|
82
|
+
], bi = {
|
82
83
|
__name: "Contacts",
|
83
84
|
props: {
|
84
85
|
website: String,
|
@@ -87,39 +88,39 @@ const Ge = {
|
|
87
88
|
address: String
|
88
89
|
},
|
89
90
|
setup(e) {
|
90
|
-
const t = e, s =
|
91
|
-
return (
|
92
|
-
|
91
|
+
const t = e, s = A(() => t.website ? !t.website.startsWith("http://") && !t.website.startsWith("https://") ? `http://${t.website}` : t.website : null), a = A(() => t.address ? encodeURIComponent(t.address) : null);
|
92
|
+
return (d, c) => (o(), r("div", lt, [
|
93
|
+
x(s) ? (o(), r("a", {
|
93
94
|
key: 0,
|
94
|
-
href:
|
95
|
+
href: x(s),
|
95
96
|
target: "_blank",
|
96
97
|
class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
|
97
|
-
},
|
98
|
-
t.phone ? (
|
98
|
+
}, ct, 8, rt)) : g("", !0),
|
99
|
+
t.phone ? (o(), r("a", {
|
99
100
|
key: 1,
|
100
101
|
href: `tel:${t.phone}`,
|
101
102
|
class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
|
102
|
-
},
|
103
|
-
t.email ? (
|
103
|
+
}, mt, 8, ut)) : g("", !0),
|
104
|
+
t.email ? (o(), r("a", {
|
104
105
|
key: 2,
|
105
106
|
href: `mailto:${t.email}`,
|
106
107
|
target: "_blank",
|
107
108
|
class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
|
108
|
-
},
|
109
|
-
|
109
|
+
}, ft, 8, ht)) : g("", !0),
|
110
|
+
x(a) ? (o(), r("a", {
|
110
111
|
key: 3,
|
111
|
-
href: `https://www.google.com/maps/search/?api=1&query=${
|
112
|
+
href: `https://www.google.com/maps/search/?api=1&query=${x(a)}`,
|
112
113
|
target: "_blank",
|
113
114
|
class: "w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"
|
114
|
-
},
|
115
|
+
}, vt, 8, gt)) : g("", !0)
|
115
116
|
]));
|
116
117
|
}
|
117
|
-
},
|
118
|
+
}, yt = { class: "w-100 mn-small star-container flex-v-center flex" }, wt = { class: "p-big t-semi mn-r-small" }, $t = /* @__PURE__ */ n("path", {
|
118
119
|
fill: "#00FF88",
|
119
120
|
d: "M62.2406 5.85971L75.413 32.6098L105.203 36.8654C110.472 37.676 112.498 44.3636 108.648 48.0113L87.1668 68.8844L92.2331 98.2689C93.2464 103.741 87.5721 107.591 82.9111 105.159L56.3637 91.3788L29.8163 105.159C25.1553 107.794 19.4811 103.741 20.4944 98.4716L25.5607 68.8844L4.07956 48.0113C0.22917 44.3636 2.25569 37.676 7.52464 36.8654L37.3145 32.6098L50.4868 5.85971C52.9186 0.996063 59.8088 0.996063 62.2406 5.85971Z"
|
120
121
|
}, null, -1), Ct = [
|
121
|
-
|
122
|
-
],
|
122
|
+
$t
|
123
|
+
], xt = { class: "" }, vi = {
|
123
124
|
__name: "Rating",
|
124
125
|
props: {
|
125
126
|
rating: {
|
@@ -132,11 +133,11 @@ const Ge = {
|
|
132
133
|
}
|
133
134
|
},
|
134
135
|
setup(e) {
|
135
|
-
return (t, s) => (
|
136
|
-
n("div",
|
137
|
-
n("span",
|
138
|
-
(
|
139
|
-
class: te(["i-semi mn-r-small", { "t-transp":
|
136
|
+
return (t, s) => (o(), r("section", null, [
|
137
|
+
n("div", yt, [
|
138
|
+
n("span", wt, f(e.rating), 1),
|
139
|
+
(o(), r(O, null, L(5, (a) => n("svg", {
|
140
|
+
class: te(["i-semi mn-r-small", { "t-transp": a > e.rating }]),
|
140
141
|
width: "113",
|
141
142
|
height: "108",
|
142
143
|
viewBox: "0 0 113 108",
|
@@ -144,217 +145,46 @@ const Ge = {
|
|
144
145
|
xmlns: "http://www.w3.org/2000/svg"
|
145
146
|
}, Ct, 2)), 64))
|
146
147
|
]),
|
147
|
-
n("p",
|
148
|
+
n("p", xt, "Based on " + f(e.amount) + " reviews", 1)
|
148
149
|
]));
|
149
150
|
}
|
150
|
-
},
|
151
|
-
width: "40",
|
152
|
-
height: "33",
|
153
|
-
viewBox: "0 0 40 33",
|
154
|
-
fill: "none",
|
155
|
-
xmlns: "http://www.w3.org/2000/svg"
|
156
|
-
}, Lt = /* @__PURE__ */ n("path", {
|
157
|
-
d: "M9.75391 18.7989L14.1454 30.9541C14.1454 30.9541 14.6945 32.0914 15.2824 32.0914C15.8704 32.0914 24.6149 22.9943 24.6149 22.9943L34.3391 4.21216L9.9106 15.6613L9.75391 18.7989Z",
|
158
|
-
fill: "#C8DAEA"
|
159
|
-
}, null, -1), Ot = /* @__PURE__ */ n("path", {
|
160
|
-
d: "M15.5785 21.916L14.7355 30.8755C14.7355 30.8755 14.3826 33.6208 17.1273 30.8755C19.8719 28.1302 22.4991 26.0133 22.4991 26.0133",
|
161
|
-
fill: "#A9C6D8"
|
162
|
-
}, null, -1), St = /* @__PURE__ */ n("path", {
|
163
|
-
d: "M9.8345 19.2327L0.800944 16.2894C0.800944 16.2894 -0.278665 15.8514 0.0689689 14.8581C0.140532 14.6533 0.28489 14.479 0.716734 14.1795C2.71833 12.7844 37.7646 0.18778 37.7646 0.18778C37.7646 0.18778 38.7541 -0.145665 39.3377 0.0761175C39.4821 0.120809 39.612 0.20305 39.7142 0.314426C39.8164 0.425801 39.8871 0.562314 39.9192 0.710002C39.9823 0.970857 40.0086 1.23923 39.9975 1.50737C39.9948 1.73933 39.9667 1.95433 39.9454 2.29148C39.732 5.73543 33.3444 31.4388 33.3444 31.4388C33.3444 31.4388 32.9622 32.9428 31.5929 32.9943C31.2564 33.0052 30.9212 32.9482 30.6072 32.8267C30.2932 32.7053 30.0069 32.5218 29.7653 32.2873C27.0783 29.976 17.7912 23.7347 15.739 22.362C15.6927 22.3305 15.6538 22.2894 15.6247 22.2415C15.5957 22.1936 15.5772 22.14 15.5706 22.0844C15.5419 21.9397 15.6992 21.7605 15.6992 21.7605C15.6992 21.7605 31.8706 7.38631 32.3009 5.87732C32.3342 5.76041 32.2083 5.70273 32.0393 5.75394C30.9652 6.14908 12.346 17.9073 10.291 19.2049C10.1431 19.2497 9.98675 19.2592 9.8345 19.2327V19.2327Z",
|
164
|
-
fill: "white"
|
165
|
-
}, null, -1), zt = [
|
166
|
-
Lt,
|
167
|
-
Ot,
|
168
|
-
St
|
169
|
-
];
|
170
|
-
function Pt(e, t) {
|
171
|
-
return a(), i("svg", kt, zt);
|
172
|
-
}
|
173
|
-
const Mt = /* @__PURE__ */ S(xt, [["render", Pt]]), Vt = {}, Dt = {
|
174
|
-
fill: "none",
|
175
|
-
height: "40",
|
176
|
-
viewBox: "0 0 40 40",
|
177
|
-
width: "40",
|
178
|
-
xmlns: "http://www.w3.org/2000/svg"
|
179
|
-
}, At = /* @__PURE__ */ n("path", {
|
180
|
-
d: "m20 0c-11.046 0-20 9.0085-20 20.1217 0 10.0428 7.314 18.3672 16.876 19.8783v-14.0631h-5.08v-5.8152h5.08v-4.4328c0-5.0425 2.984-7.82734 7.554-7.82734 2.188 0 4.476.39238 4.476.39238v4.94996h-2.52c-2.486 0-3.26 1.5514-3.26 3.143v3.7748h5.546l-.886 5.8152h-4.66v14.0631c9.56-1.5091 16.874-9.8375 16.874-19.8783 0-11.1132-8.954-20.1217-20-20.1217z",
|
181
|
-
fill: "#fff"
|
182
|
-
}, null, -1), It = [
|
183
|
-
At
|
184
|
-
];
|
185
|
-
function Bt(e, t) {
|
186
|
-
return a(), i("svg", Dt, It);
|
187
|
-
}
|
188
|
-
const Tt = /* @__PURE__ */ S(Vt, [["render", Bt]]), jt = {}, Ut = {
|
189
|
-
width: "40",
|
190
|
-
height: "40",
|
191
|
-
viewBox: "0 0 40 40",
|
192
|
-
fill: "none",
|
193
|
-
xmlns: "http://www.w3.org/2000/svg"
|
194
|
-
}, Et = /* @__PURE__ */ n("path", {
|
195
|
-
d: "M20.0019 0C14.5702 0 13.8885 0.0237504 11.7551 0.120834C9.62593 0.218334 8.17259 0.555417 6.90091 1.05C5.58547 1.56083 4.46963 2.24417 3.35795 3.35625C2.24544 4.46792 1.5621 5.58375 1.04959 6.89875C0.553755 8.17083 0.216252 9.62458 0.120418 11.7529C0.0250001 13.8862 0 14.5683 0 20C0 25.4317 0.0241673 26.1113 0.120835 28.2446C0.218753 30.3738 0.555839 31.8271 1.05001 33.0987C1.56127 34.4142 2.24461 35.53 3.3567 36.6417C4.46796 37.7542 5.58381 38.4392 6.89841 38.95C8.17092 39.4446 9.62468 39.7817 11.7535 39.8792C13.8868 39.9762 14.5681 40 19.9994 40C25.4315 40 26.1111 39.9762 28.2445 39.8792C30.3737 39.7817 31.8287 39.4446 33.1012 38.95C34.4162 38.4392 35.5304 37.7542 36.6416 36.6417C37.7541 35.53 38.4375 34.4142 38.95 33.0992C39.4417 31.8271 39.7792 30.3733 39.8792 28.245C39.975 26.1117 40 25.4317 40 20C40 14.5683 39.975 13.8867 39.8792 11.7533C39.7792 9.62417 39.4417 8.17083 38.95 6.89917C38.4375 5.58375 37.7541 4.46792 36.6416 3.35625C35.5291 2.24375 34.4166 1.56042 33.0999 1.05C31.8249 0.555417 30.3707 0.218334 28.2415 0.120834C26.1082 0.0237504 25.429 0 19.9956 0H20.0019ZM18.2077 3.60417C18.7402 3.60333 19.3344 3.60417 20.0019 3.60417C25.3419 3.60417 25.9749 3.62333 28.0836 3.71917C30.0336 3.80833 31.092 4.13417 31.797 4.40792C32.7303 4.77042 33.3958 5.20375 34.0954 5.90375C34.7954 6.60375 35.2287 7.27042 35.592 8.20375C35.8658 8.90792 36.192 9.96625 36.2808 11.9162C36.3766 14.0246 36.3975 14.6579 36.3975 19.9954C36.3975 25.3329 36.3766 25.9662 36.2808 28.0746C36.1916 30.0246 35.8658 31.0829 35.592 31.7871C35.2295 32.7204 34.7954 33.385 34.0954 34.0846C33.3953 34.7846 32.7308 35.2179 31.797 35.5804C31.0928 35.8554 30.0336 36.1804 28.0836 36.2696C25.9753 36.3654 25.3419 36.3863 20.0019 36.3863C14.6614 36.3863 14.0285 36.3654 11.9201 36.2696C9.9701 36.1796 8.91176 35.8537 8.20634 35.58C7.27299 35.2175 6.60632 34.7842 5.90631 34.0842C5.2063 33.3842 4.77297 32.7192 4.40963 31.7854C4.13588 31.0813 3.80962 30.0229 3.72087 28.0729C3.62504 25.9646 3.60587 25.3312 3.60587 19.9904C3.60587 14.6496 3.62504 14.0196 3.72087 11.9113C3.81004 9.96125 4.13588 8.90292 4.40963 8.19792C4.77213 7.26458 5.2063 6.59792 5.90631 5.89792C6.60632 5.19792 7.27299 4.76458 8.20634 4.40125C8.91134 4.12625 9.9701 3.80125 11.9201 3.71167C13.7651 3.62833 14.4802 3.60333 18.2077 3.59917V3.60417ZM30.6778 6.925C29.3528 6.925 28.2778 7.99875 28.2778 9.32417C28.2778 10.6492 29.3528 11.7242 30.6778 11.7242C32.0028 11.7242 33.0778 10.6492 33.0778 9.32417C33.0778 7.99917 32.0028 6.92417 30.6778 6.92417V6.925ZM20.0019 9.72917C14.3297 9.72917 9.73093 14.3279 9.73093 20C9.73093 25.6721 14.3297 30.2687 20.0019 30.2687C25.674 30.2687 30.2711 25.6721 30.2711 20C30.2711 14.3279 25.6736 9.72917 20.0015 9.72917H20.0019ZM20.0019 13.3333C23.6836 13.3333 26.6686 16.3179 26.6686 20C26.6686 23.6817 23.6836 26.6667 20.0019 26.6667C16.3198 26.6667 13.3351 23.6817 13.3351 20C13.3351 16.3179 16.3198 13.3333 20.0019 13.3333V13.3333Z",
|
196
|
-
fill: "white"
|
197
|
-
}, null, -1), Ft = [
|
198
|
-
Et
|
199
|
-
];
|
200
|
-
function Ht(e, t) {
|
201
|
-
return a(), i("svg", Ut, Ft);
|
202
|
-
}
|
203
|
-
const Zt = /* @__PURE__ */ S(jt, [["render", Ht]]), qt = {}, Nt = {
|
204
|
-
width: "40",
|
205
|
-
height: "33",
|
206
|
-
viewBox: "0 0 40 33",
|
207
|
-
fill: "none",
|
208
|
-
xmlns: "http://www.w3.org/2000/svg"
|
209
|
-
}, Rt = /* @__PURE__ */ n("path", {
|
210
|
-
d: "M35.9049 8.17058C35.9293 8.52666 35.9293 8.88274 35.9293 9.2421C35.9293 20.192 27.6742 32.8205 12.5793 32.8205V32.814C8.12025 32.8205 3.75381 31.5307 0 29.0989C0.648385 29.1777 1.30002 29.217 1.95328 29.2187C5.64859 29.222 9.23827 27.9699 12.1454 25.6645C8.63376 25.5972 5.55434 23.2851 4.47857 19.9097C5.70871 20.1493 6.97623 20.1001 8.18363 19.767C4.35507 18.9859 1.60065 15.5892 1.60065 11.6444V11.5394C2.74142 12.181 4.01869 12.5371 5.32521 12.5765C1.71928 10.143 0.607759 5.29897 2.78529 1.51172C6.95186 6.68883 13.0993 9.83612 19.6986 10.1692C19.0372 7.29105 19.9407 4.27503 22.0727 2.25178C25.378 -0.885667 30.5765 -0.724857 33.6835 2.61114C35.5214 2.24521 37.283 1.56423 38.895 0.599367C38.2823 2.51761 37.0002 4.14704 35.2874 5.18246C36.9141 4.98883 38.5034 4.54907 40 3.87793C38.8982 5.54511 37.5105 6.99732 35.9049 8.17058Z",
|
211
|
-
fill: "white"
|
212
|
-
}, null, -1), Kt = [
|
213
|
-
Rt
|
214
|
-
];
|
215
|
-
function Jt(e, t) {
|
216
|
-
return a(), i("svg", Nt, Kt);
|
217
|
-
}
|
218
|
-
const Wt = /* @__PURE__ */ S(qt, [["render", Jt]]), Yt = {}, Gt = {
|
219
|
-
width: "40",
|
220
|
-
height: "36",
|
221
|
-
viewBox: "0 0 40 36",
|
222
|
-
fill: "none",
|
223
|
-
xmlns: "http://www.w3.org/2000/svg"
|
224
|
-
}, Qt = /* @__PURE__ */ n("path", {
|
225
|
-
d: "M40 17.9021C40 15.4963 38.0287 13.5858 35.6272 13.5858C34.4444 13.5858 33.3692 14.0457 32.5806 14.7887C29.5699 12.6659 25.448 11.2861 20.8602 11.1092L22.8674 1.83974L29.3907 3.21955C29.4624 4.84701 30.8244 6.15605 32.509 6.15605C34.2294 6.15605 35.6272 4.77625 35.6272 3.07803C35.6272 1.37981 34.2294 0 32.509 0C31.2903 0 30.2151 0.707593 29.7133 1.7336L22.4373 0.21228C22.2222 0.1769 22.0072 0.212278 21.8638 0.318417C21.6846 0.424556 21.5771 0.601454 21.5412 0.813732L19.319 11.1446C14.6595 11.2861 10.466 12.6659 7.41936 14.8241C6.63083 14.0811 5.55556 13.6211 4.37276 13.6211C1.93549 13.6211 0 15.567 0 17.9375C0 19.7064 1.07527 21.1924 2.58065 21.8646C2.50896 22.2892 2.47312 22.7137 2.47312 23.1736C2.47312 29.825 10.3226 35.2381 20 35.2381C29.6774 35.2381 37.5269 29.8604 37.5269 23.1736C37.5269 22.7491 37.491 22.2892 37.4194 21.8646C38.9247 21.1924 40 19.6711 40 17.9021V17.9021ZM9.96416 20.9801C9.96416 19.2819 11.362 17.9021 13.0824 17.9021C14.8029 17.9021 16.2007 19.2819 16.2007 20.9801C16.2007 22.6783 14.8029 24.0581 13.0824 24.0581C11.362 24.0935 9.96416 22.6783 9.96416 20.9801V20.9801ZM27.4194 29.1528C25.2688 31.2756 21.1828 31.4171 20 31.4171C18.7814 31.4171 14.6953 31.2402 12.5806 29.1528C12.2581 28.8344 12.2581 28.3391 12.5806 28.0206C12.9032 27.7022 13.405 27.7022 13.7276 28.0206C15.0896 29.3651 17.957 29.825 20 29.825C22.043 29.825 24.9462 29.3651 26.2724 28.0206C26.595 27.7022 27.0968 27.7022 27.4194 28.0206C27.7061 28.3391 27.7061 28.8344 27.4194 29.1528ZM26.8459 24.0935C25.1254 24.0935 23.7276 22.7137 23.7276 21.0155C23.7276 19.3173 25.1254 17.9375 26.8459 17.9375C28.5663 17.9375 29.9642 19.3173 29.9642 21.0155C29.9642 22.6783 28.5663 24.0935 26.8459 24.0935Z",
|
226
|
-
fill: "white"
|
227
|
-
}, null, -1), Xt = [
|
228
|
-
Qt
|
229
|
-
];
|
230
|
-
function es(e, t) {
|
231
|
-
return a(), i("svg", Gt, Xt);
|
232
|
-
}
|
233
|
-
const ts = /* @__PURE__ */ S(Yt, [["render", es]]), ss = {}, ns = {
|
234
|
-
width: "67",
|
235
|
-
height: "64",
|
236
|
-
viewBox: "0 0 67 64",
|
237
|
-
fill: "none",
|
238
|
-
xmlns: "http://www.w3.org/2000/svg"
|
239
|
-
}, as = /* @__PURE__ */ n("path", {
|
240
|
-
"fill-rule": "evenodd",
|
241
|
-
"clip-rule": "evenodd",
|
242
|
-
d: "M66.2237 27.2403C66.2237 12.4467 51.4301 0.287598 33.1914 0.287598C14.9528 0.287598 0.15918 12.4467 0.15918 27.2403C0.15918 40.4127 11.913 51.5585 27.7198 53.585C31.5702 54.3956 31.1649 55.8142 30.3543 61.0832C30.1517 61.8938 29.5437 64.3256 33.1914 62.907C36.6365 61.4885 52.2407 51.7612 59.1309 43.6551C63.9945 38.3861 66.2237 33.1172 66.2237 27.2403ZM43.1214 35.1437V20.7554C43.1214 20.3501 42.7161 19.9448 42.3108 20.1475H40.0816C39.6763 20.1475 39.4736 20.3501 39.4736 20.7554V29.2668L32.7861 20.3501C32.7861 20.1475 32.5835 20.1475 32.3808 20.1475H29.949C29.5437 20.1475 29.341 20.3501 29.341 20.7554V35.1437C29.341 35.549 29.5437 35.7517 29.949 35.7517H32.3808C32.5835 35.7517 32.9888 35.549 32.9888 35.1437V26.6323L39.4736 35.549C39.575 35.549 39.6763 35.5997 39.7776 35.6503C39.8789 35.701 39.9803 35.7517 40.0816 35.7517H42.3108C42.7161 35.7517 43.1214 35.549 43.1214 35.1437ZM27.1119 20.7554C27.1119 20.3501 26.7066 19.9448 26.5039 19.9448H24.0721C23.6668 19.9448 23.4641 20.3501 23.4641 20.7554V35.1437C23.4641 35.549 23.6668 35.7517 24.0721 35.7517H26.5039C26.7066 35.7517 27.1119 35.549 27.1119 35.1437V20.7554ZM21.4376 32.7119C21.4376 32.5092 21.235 32.1039 20.8297 32.1039H14.5475V20.7554C14.5475 20.3501 14.3448 19.9448 13.9395 19.9448H11.5077C11.305 19.9448 10.8997 20.3501 10.8997 20.7554V35.1437C10.8997 35.245 10.9504 35.2957 11.0011 35.3464C11.0517 35.397 11.1024 35.4477 11.1024 35.549C11.2037 35.549 11.2544 35.5997 11.305 35.6503C11.3557 35.701 11.4064 35.7517 11.5077 35.7517H20.8297C21.235 35.7517 21.4376 35.3464 21.4376 35.1437V32.7119ZM55.8884 20.7554C55.8884 20.3501 55.4831 19.9448 55.2805 19.9448H45.9585C45.5532 19.9448 45.3505 20.3501 45.3505 20.7554V35.1437C45.3505 35.3464 45.5532 35.7517 45.9585 35.7517H55.2805C55.4831 35.7517 55.8884 35.549 55.8884 35.1437V32.7119C55.8884 32.5092 55.4831 32.1039 55.2805 32.1039H48.9983V29.6721H55.2805C55.4831 29.6721 55.8884 29.4695 55.8884 29.0642V26.6323C55.8884 26.4297 55.4831 26.0244 55.2805 26.0244H48.9983V23.5926H55.2805C55.4831 23.5926 55.8884 23.3899 55.8884 22.9846V20.7554Z",
|
243
|
-
fill: "white"
|
244
|
-
}, null, -1), os = [
|
245
|
-
as
|
246
|
-
];
|
247
|
-
function is(e, t) {
|
248
|
-
return a(), i("svg", ns, os);
|
249
|
-
}
|
250
|
-
const ls = /* @__PURE__ */ S(ss, [["render", is]]), rs = {}, ds = {
|
251
|
-
fill: "none",
|
252
|
-
height: "40",
|
253
|
-
viewBox: "0 0 40 40",
|
254
|
-
width: "40",
|
255
|
-
xmlns: "http://www.w3.org/2000/svg"
|
256
|
-
}, cs = /* @__PURE__ */ n("path", {
|
257
|
-
d: "m35.7603 19.144c-.1629-3.1482-1.2512-6.1768-3.1269-8.702-.5715.6193-1.1824 1.2005-1.8289 1.74-1.9861 1.6597-4.2054 3.0144-6.5859 4.02.332.7.6361 1.378.9045 2.018v.006c.0757.1788.1486.3588.2186.54 3.0097-.34 6.1824-.216 9.2577.202.4095.056.7952.116 1.1609.176zm-18.6564-14.9c1.9373 2.74635 3.7238 5.59727 5.3514 8.54 2.4312-.964 4.441-2.18 6.0591-3.534.5617-.46574 1.0905-.97029 1.5824-1.51-2.8606-2.42057-6.4799-3.74534-10.2178-3.74-.9303-.00064-1.8588.08033-2.7751.242zm-12.62516 11.75c1.35421-.0344 2.70681-.1164 4.05531-.246 3.25945-.2933 6.49105-.843 9.66515-1.644-1.6589-2.8996-3.4499-5.72058-5.3673-8.454-2.0481 1.02079-3.85403 2.47282-5.29529 4.25758-1.44125 1.78472-2.48412 3.86052-3.05787 6.08642zm3.04149 14.076c.7713-1.134 1.78513-2.41 3.13097-3.798 2.8904-2.98 6.3016-5.3 10.2496-6.58l.1232-.036c-.328-.728-.6361-1.378-.9462-1.99-3.6498 1.07-7.4944 1.738-11.32508 2.084-1.86862.17-3.54442.244-4.77692.256-.00352 3.6652 1.24899 7.2195 3.54641 10.064zm18.33237 4.76c-.7666-3.8895-1.8517-7.7085-3.2442-11.418-3.9798 1.454-7.1505 3.58-9.6016 6.116-.9891 1.0048-1.867 2.1146-2.618 3.31 2.7409 2.0576 6.0704 3.1669 9.4902 3.162 2.0474.003 4.0759-.393 5.9736-1.166zm3.7234-2.15c3.1036-2.4005 5.2179-5.8686 5.9378-9.74-.6759-.17-1.5326-.34-2.4749-.472-2.095-.3035-4.2207-.3257-6.3215-.066 1.1829 3.3577 2.138 6.7922 2.8586 10.28zm-9.697 7.32c-10.97917 0-19.879-8.954-19.879-20s8.89983-20 19.879-20c10.9792 0 19.879 8.954 19.879 20s-8.8998 20-19.879 20z",
|
258
|
-
fill: "#fff"
|
259
|
-
}, null, -1), us = [
|
260
|
-
cs
|
261
|
-
];
|
262
|
-
function ps(e, t) {
|
263
|
-
return a(), i("svg", ds, us);
|
264
|
-
}
|
265
|
-
const ms = /* @__PURE__ */ S(rs, [["render", ps]]), hs = { class: "gap-small flex-nowrap flex" }, _s = ["href"], fs = {
|
266
|
-
__name: "Socials",
|
267
|
-
props: {
|
268
|
-
telegram: {
|
269
|
-
type: String,
|
270
|
-
default: ""
|
271
|
-
},
|
272
|
-
facebook: {
|
273
|
-
type: String,
|
274
|
-
default: ""
|
275
|
-
},
|
276
|
-
instagram: {
|
277
|
-
type: String,
|
278
|
-
default: ""
|
279
|
-
},
|
280
|
-
twitter: {
|
281
|
-
type: String,
|
282
|
-
default: ""
|
283
|
-
},
|
284
|
-
reddit: {
|
285
|
-
type: String,
|
286
|
-
default: ""
|
287
|
-
},
|
288
|
-
line: {
|
289
|
-
type: String,
|
290
|
-
default: ""
|
291
|
-
},
|
292
|
-
dribbble: {
|
293
|
-
type: String,
|
294
|
-
default: ""
|
295
|
-
}
|
296
|
-
},
|
297
|
-
setup(e) {
|
298
|
-
const t = e, s = V(() => ["telegram", "facebook", "instagram", "twitter", "reddit", "line", "dribbble"].filter((l) => t[l]).map((l) => ({ name: l, href: t[l] })));
|
299
|
-
function o(r) {
|
300
|
-
return {
|
301
|
-
telegram: Mt,
|
302
|
-
facebook: Tt,
|
303
|
-
instagram: Zt,
|
304
|
-
twitter: Wt,
|
305
|
-
reddit: ts,
|
306
|
-
line: ls,
|
307
|
-
dribbble: ms
|
308
|
-
}[r] || null;
|
309
|
-
}
|
310
|
-
return (r, l) => (a(), i("div", hs, [
|
311
|
-
(a(!0), i(k, null, L($(s), (p) => (a(), i("a", {
|
312
|
-
key: p.name,
|
313
|
-
href: p.href,
|
314
|
-
target: "_blank",
|
315
|
-
class: "i-big bg-second t-white flex-nowrap flex-center flex radius-extra"
|
316
|
-
}, [
|
317
|
-
(a(), y(ne(o(p.name)), { class: "i-medium" }))
|
318
|
-
], 8, _s))), 128))
|
319
|
-
]));
|
320
|
-
}
|
321
|
-
}, gs = {
|
151
|
+
}, kt = {
|
322
152
|
key: 0,
|
323
153
|
class: "cursor-pointer t-second"
|
324
|
-
},
|
154
|
+
}, Ot = {
|
325
155
|
__name: "Text",
|
326
156
|
props: {
|
327
157
|
maxLen: { type: Number, required: !0 },
|
328
158
|
text: { type: String, required: !0 }
|
329
159
|
},
|
330
160
|
setup(e) {
|
331
|
-
const t = e, s = b(!1),
|
161
|
+
const t = e, s = b(!1), a = A(() => t.text.length > t.maxLen ? t.text.slice(0, t.maxLen) + "..." : t.text), d = A(() => t.text), c = () => {
|
332
162
|
s.value = !s.value;
|
333
|
-
}, p =
|
334
|
-
return (
|
335
|
-
onClick:
|
163
|
+
}, p = A(() => s.value ? d.value : a.value), l = A(() => t.text.length > t.maxLen), u = A(() => s.value ? "Hide" : "Show more");
|
164
|
+
return (i, m) => (o(), r("span", {
|
165
|
+
onClick: c,
|
336
166
|
class: ""
|
337
167
|
}, [
|
338
|
-
N(f(
|
339
|
-
|
168
|
+
N(f(x(p)) + " ", 1),
|
169
|
+
x(l) ? (o(), r("span", kt, f(x(u)), 1)) : g("", !0)
|
340
170
|
]));
|
341
171
|
}
|
342
|
-
},
|
172
|
+
}, Lt = { class: "t-center flex-center flex-column flex pd-medium radius-big bg-grey" }, St = ["src"], Pt = { class: "mn-thin" }, zt = { class: "mn-medium p-big" }, Mt = { class: "flex-center flex-wrap gap-thin flex mn-semi" }, Dt = { class: "pd-thin radius-small t-semi uppercase t-black bg-main p-medium" }, At = {
|
343
173
|
key: 3,
|
344
174
|
class: "mn-t-small mn-thin"
|
345
|
-
},
|
175
|
+
}, Vt = {
|
346
176
|
__name: "DetailsTab",
|
347
177
|
props: {
|
348
178
|
organization: Object,
|
349
179
|
user: Object
|
350
180
|
},
|
351
181
|
setup(e) {
|
352
|
-
return (t, s) => (
|
353
|
-
default:
|
354
|
-
n("section",
|
355
|
-
e.user._id === e.organization.owner ? (
|
182
|
+
return (t, s) => (o(), $(R, { name: "slide-fade" }, {
|
183
|
+
default: k(() => [
|
184
|
+
n("section", Lt, [
|
185
|
+
e.user._id === e.organization.owner ? (o(), $(Re, {
|
356
186
|
key: 0,
|
357
|
-
onClick: s[0] || (s[0] = (
|
187
|
+
onClick: s[0] || (s[0] = (a) => t.$router.push({
|
358
188
|
name: "Organization Edit",
|
359
189
|
params: {
|
360
190
|
_id: e.organization._id
|
@@ -362,42 +192,42 @@ const ms = /* @__PURE__ */ S(rs, [["render", ps]]), hs = { class: "gap-small fle
|
|
362
192
|
})),
|
363
193
|
class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
|
364
194
|
})) : g("", !0),
|
365
|
-
e.organization.profile.photo ? (
|
195
|
+
e.organization.profile.photo ? (o(), r("img", {
|
366
196
|
key: 1,
|
367
197
|
src: e.organization.profile.photo,
|
368
198
|
class: "radius-big bg-grey flex-center flex mn-small i-extra"
|
369
|
-
}, null, 8,
|
199
|
+
}, null, 8, St)) : (o(), $(We, {
|
370
200
|
key: 2,
|
371
201
|
class: "radius-medium mn-small i-extra"
|
372
202
|
})),
|
373
|
-
n("h1",
|
374
|
-
n("p",
|
375
|
-
h(
|
203
|
+
n("h1", Pt, f(e.organization.profile.name), 1),
|
204
|
+
n("p", zt, [
|
205
|
+
h(Ot, {
|
376
206
|
text: e.organization.profile.description ? e.organization.profile.description : "",
|
377
207
|
maxLen: 240
|
378
208
|
}, null, 8, ["text"])
|
379
209
|
]),
|
380
|
-
n("div",
|
381
|
-
(
|
210
|
+
n("div", Mt, [
|
211
|
+
(o(!0), r(O, null, L(e.organization.profile.tags, (a) => (o(), r("span", Dt, f(a), 1))), 256))
|
382
212
|
]),
|
383
|
-
|
384
|
-
e.organization.
|
385
|
-
h(
|
386
|
-
telegram: e.organization.
|
387
|
-
facebook: e.organization.
|
388
|
-
instagram: e.organization.
|
389
|
-
|
390
|
-
}, null, 8, ["telegram", "facebook", "instagram", "
|
213
|
+
z(t.$slots, "default"),
|
214
|
+
Object.values(e.organization.socials).some((a) => a) ? (o(), r("h4", At, " Find us in socials ")) : g("", !0),
|
215
|
+
h(Ke, {
|
216
|
+
telegram: e.organization.socials.telegram,
|
217
|
+
facebook: e.organization.socials.facebook,
|
218
|
+
instagram: e.organization.socials.instagram,
|
219
|
+
twitter: e.organization.socials.twitter
|
220
|
+
}, null, 8, ["telegram", "facebook", "instagram", "twitter"])
|
391
221
|
])
|
392
222
|
]),
|
393
223
|
_: 3
|
394
224
|
}));
|
395
225
|
}
|
396
226
|
};
|
397
|
-
const
|
227
|
+
const It = {
|
398
228
|
key: 0,
|
399
229
|
class: "spoiler"
|
400
|
-
},
|
230
|
+
}, $e = {
|
401
231
|
__name: "Spoiler",
|
402
232
|
props: {
|
403
233
|
status: {
|
@@ -407,24 +237,24 @@ const Os = {
|
|
407
237
|
},
|
408
238
|
setup(e) {
|
409
239
|
const t = e, s = b(!1);
|
410
|
-
return t.status && (s.value = t.status), (
|
240
|
+
return t.status && (s.value = t.status), (a, d) => (o(), r("div", null, [
|
411
241
|
n("div", {
|
412
|
-
onClick:
|
242
|
+
onClick: d[0] || (d[0] = (c) => s.value = !s.value),
|
413
243
|
class: "flex-v-center flex-nowrap flex"
|
414
244
|
}, [
|
415
|
-
|
245
|
+
z(a.$slots, "header")
|
416
246
|
]),
|
417
247
|
h(R, { name: "collapse" }, {
|
418
|
-
default:
|
419
|
-
s.value ? (
|
420
|
-
|
248
|
+
default: k(() => [
|
249
|
+
s.value ? (o(), r("div", It, [
|
250
|
+
z(a.$slots, "content")
|
421
251
|
])) : g("", !0)
|
422
252
|
]),
|
423
253
|
_: 3
|
424
254
|
})
|
425
255
|
]));
|
426
256
|
}
|
427
|
-
},
|
257
|
+
}, j = _e.create({ baseURL: process.env.API_URL, withCredentials: !0 }), y = oe({
|
428
258
|
all: [],
|
429
259
|
current: {
|
430
260
|
recommendation: !1,
|
@@ -442,91 +272,91 @@ const Os = {
|
|
442
272
|
modifications: [],
|
443
273
|
description: ""
|
444
274
|
}
|
445
|
-
}),
|
275
|
+
}), yi = {
|
446
276
|
async create(e, t) {
|
447
277
|
const s = {
|
448
278
|
...t,
|
449
279
|
organization: e
|
450
280
|
};
|
451
|
-
return await
|
452
|
-
(
|
453
|
-
(
|
281
|
+
return await j.post("/products/create", s).then(
|
282
|
+
(a) => (Tt(a.data, "current"), Promise.resolve(a.data)),
|
283
|
+
(a) => (C(a), Promise.reject(a))
|
454
284
|
);
|
455
285
|
},
|
456
286
|
async read(e = {}) {
|
457
287
|
e._id && (e.params = { _id: e._id }), e.category && (e.params = e.params || {}, e.params.category = e.category), e.params = e.params || {}, e.params.skip = e.skip || 0, e.params.limit = e.limit || 10, e.organization && (e.params.organization = e.organization), e.params.sort = "createdAt";
|
458
288
|
try {
|
459
289
|
console.log("Request params:" + e.params);
|
460
|
-
const t = await
|
461
|
-
return e._id ?
|
290
|
+
const t = await j.get("/products/read", { params: e.params });
|
291
|
+
return e._id ? y.current = t.data[0] : y.all = t.data, Promise.resolve(t.data);
|
462
292
|
} catch (t) {
|
463
293
|
return C(t), Promise.reject(t);
|
464
294
|
}
|
465
295
|
},
|
466
296
|
async update(e, t) {
|
467
|
-
return await
|
297
|
+
return await j.post("/products/" + e, t).then(
|
468
298
|
(s) => Promise.resolve(s.data),
|
469
299
|
(s) => (C(s), Promise.reject(s))
|
470
300
|
);
|
471
301
|
},
|
472
302
|
async deleteProduct(e) {
|
473
|
-
return await
|
303
|
+
return await j.delete("/products/" + e).then(
|
474
304
|
(t) => Promise.resolve(t.data),
|
475
305
|
(t) => (C(t), Promise.reject(t))
|
476
306
|
);
|
477
307
|
},
|
478
308
|
async submitMood(e = null) {
|
479
|
-
return console.log(e),
|
480
|
-
(t) => (
|
309
|
+
return console.log(e), j.post("/product/recommended", { mood: e }).then(
|
310
|
+
(t) => (y.current = t.data.product, y.current.recommendation = t.data.recommendationText, Promise.resolve(t.data)),
|
481
311
|
(t) => (console.log(t), C(t), Promise.reject(t))
|
482
312
|
);
|
483
313
|
},
|
484
314
|
async fetchProducts() {
|
485
|
-
return await
|
486
|
-
(e) => (
|
487
|
-
return t[
|
315
|
+
return await j.get("/products").then(
|
316
|
+
(e) => (y.all = e.data, y.filtered = e.data.slice(), y.filteredPrice = y.filtered, y.filteredPrice.sort(function(t, s) {
|
317
|
+
return t[y.sort.current] > s[y.sort.current] ? y.sort.ascending ? 1 : -1 : t[y.sort.current] < s[y.sort.current] ? y.sort.ascending ? -1 : 1 : 0;
|
488
318
|
}), Promise.resolve(e.data)),
|
489
319
|
(e) => (C(e), Promise.reject(e))
|
490
320
|
);
|
491
321
|
},
|
492
322
|
async fetchProductsPopular() {
|
493
|
-
return await
|
494
|
-
(e) => (
|
323
|
+
return await j.get("/products/popular").then(
|
324
|
+
(e) => (y.popular = e.data, Promise.resolve(e.data)),
|
495
325
|
(e) => (C(e), Promise.reject(e))
|
496
326
|
);
|
497
327
|
},
|
498
328
|
async fetchProductsPublished() {
|
499
|
-
return await
|
329
|
+
return await j.get("/products").then(
|
500
330
|
(e) => {
|
501
|
-
let t = e.data.filter(function(s,
|
331
|
+
let t = e.data.filter(function(s, a) {
|
502
332
|
return s.status !== "unpublished";
|
503
333
|
});
|
504
|
-
return
|
505
|
-
return s[
|
334
|
+
return y.all = t, y.filtered = t.slice(), y.filteredPrice = y.filtered, y.filteredPrice.sort(function(s, a) {
|
335
|
+
return s[y.sort.current] > a[y.sort.current] ? y.sort.ascending ? 1 : -1 : s[y.sort.current] < a[y.sort.current] ? y.sort.ascending ? -1 : 1 : 0;
|
506
336
|
}), Promise.resolve(e.data);
|
507
337
|
},
|
508
338
|
(e) => (C(e), Promise.reject(e))
|
509
339
|
);
|
510
340
|
},
|
511
341
|
async fetchProduct(e) {
|
512
|
-
return await
|
513
|
-
(t) => (t.localization || (t.localization = []),
|
342
|
+
return await j.get("/products/" + e).then(
|
343
|
+
(t) => (t.localization || (t.localization = []), y.current = t.data, Promise.resolve(t.data)),
|
514
344
|
(t) => (C(t), Promise.reject(t))
|
515
345
|
);
|
516
346
|
},
|
517
347
|
async fetchProductPopular() {
|
518
|
-
return await
|
519
|
-
(e) => (
|
348
|
+
return await j.get("/products").then(
|
349
|
+
(e) => (y.all = e.data.slice(1, 5), Promise.resolve(e.data.slice(1, 5))),
|
520
350
|
(e) => (C(e), Promise.reject(e))
|
521
351
|
);
|
522
352
|
}
|
523
353
|
};
|
524
|
-
function
|
525
|
-
|
354
|
+
function Tt(e, t) {
|
355
|
+
y[t] = e;
|
526
356
|
}
|
527
|
-
|
357
|
+
F(y, (e, t) => {
|
528
358
|
});
|
529
|
-
const
|
359
|
+
const Bt = process.env.API_URL, Q = _e.create({ baseURL: Bt, withCredentials: !0 }), U = oe({
|
530
360
|
all: [],
|
531
361
|
current: {
|
532
362
|
order: "1",
|
@@ -536,42 +366,42 @@ const zs = process.env.API_URL, G = _e.create({ baseURL: zs, withCredentials: !0
|
|
536
366
|
filters: [],
|
537
367
|
localization: []
|
538
368
|
}
|
539
|
-
}),
|
369
|
+
}), wi = {
|
540
370
|
async fetchCategories() {
|
541
|
-
return await
|
542
|
-
(e) => (
|
371
|
+
return await Q.get("/categories").then(
|
372
|
+
(e) => (U.all = e.data, Promise.resolve(e.data)),
|
543
373
|
(e) => (C(e), Promise.reject(e))
|
544
374
|
);
|
545
375
|
},
|
546
376
|
updateCategories(e) {
|
547
|
-
return
|
548
|
-
(t) => (
|
377
|
+
return Q.post("/categories", e).then(
|
378
|
+
(t) => (U.all = e, Promise.resolve(e)),
|
549
379
|
(t) => (C(t), Promise.reject(t))
|
550
380
|
);
|
551
381
|
},
|
552
382
|
fetchCategory(e) {
|
553
|
-
return
|
554
|
-
(t) => (
|
383
|
+
return Q.get("/categories/" + e).then(
|
384
|
+
(t) => (U.current = t.data, Promise.resolve(t.data)),
|
555
385
|
(t) => (C(t), Promise.reject(t))
|
556
386
|
);
|
557
387
|
},
|
558
388
|
addCategory() {
|
559
|
-
return
|
560
|
-
(e) => (
|
389
|
+
return Q.post("/categories/add", U.current).then(
|
390
|
+
(e) => (U.all.push(e.data), Promise.resolve(e.data)),
|
561
391
|
(e) => (C(e), Promise.reject(e))
|
562
392
|
);
|
563
393
|
},
|
564
394
|
updateCategory(e) {
|
565
|
-
return
|
566
|
-
(t) => (
|
395
|
+
return Q.post("/categories/" + e, U.current).then(
|
396
|
+
(t) => (U.current = t.data, Promise.resolve(t.data)),
|
567
397
|
(t) => (C(t), Promise.reject(t))
|
568
398
|
);
|
569
399
|
},
|
570
400
|
deleteCategory(e) {
|
571
|
-
return
|
401
|
+
return Q.delete("/categories/" + e).then(
|
572
402
|
(t) => {
|
573
|
-
const s =
|
574
|
-
|
403
|
+
const s = U.all.findIndex((a) => a.url === e);
|
404
|
+
U.all.splice(s, 1);
|
575
405
|
},
|
576
406
|
(t) => {
|
577
407
|
C(t);
|
@@ -579,9 +409,9 @@ const zs = process.env.API_URL, G = _e.create({ baseURL: zs, withCredentials: !0
|
|
579
409
|
);
|
580
410
|
}
|
581
411
|
};
|
582
|
-
|
412
|
+
F(U, (e) => {
|
583
413
|
});
|
584
|
-
const
|
414
|
+
const jt = { class: "mn-big radius-medium pd-big bg-white" }, Ut = { class: "mn-regular" }, Et = { class: "mn-small t-transp p-medium" }, fe = {
|
585
415
|
__name: "EmptyState",
|
586
416
|
props: {
|
587
417
|
title: {
|
@@ -603,48 +433,48 @@ const Ps = { class: "mn-big radius-medium pd-big bg-white" }, Ms = { class: "mn-
|
|
603
433
|
}
|
604
434
|
},
|
605
435
|
setup(e) {
|
606
|
-
return (t, s) => (
|
607
|
-
n("h3",
|
608
|
-
n("p",
|
436
|
+
return (t, s) => (o(), r("section", jt, [
|
437
|
+
n("h3", Ut, f(e.title), 1),
|
438
|
+
n("p", Et, f(e.description), 1),
|
609
439
|
n("button", {
|
610
|
-
onClick: s[0] || (s[0] = (...
|
440
|
+
onClick: s[0] || (s[0] = (...a) => e.callback && e.callback(...a)),
|
611
441
|
class: "t-white bg-second w-100 button"
|
612
442
|
}, f(e.action), 1)
|
613
443
|
]));
|
614
444
|
}
|
615
445
|
};
|
616
|
-
const
|
446
|
+
const Ft = {
|
617
447
|
__name: "Map",
|
618
448
|
props: {
|
619
449
|
location: Object
|
620
450
|
},
|
621
451
|
setup(e) {
|
622
452
|
const t = e;
|
623
|
-
let s = b(null),
|
453
|
+
let s = b(null), a = null, d = null;
|
624
454
|
return pe(async () => {
|
625
|
-
|
455
|
+
a = new google.maps.Map(s.value, {
|
626
456
|
zoom: 13,
|
627
457
|
center: {
|
628
458
|
lat: t.location.lat,
|
629
459
|
lng: t.location.lng
|
630
460
|
}
|
631
|
-
}),
|
461
|
+
}), d = new google.maps.Marker({
|
632
462
|
position: {
|
633
463
|
lat: t.location.lat,
|
634
464
|
lng: t.location.lng
|
635
465
|
},
|
636
|
-
map:
|
466
|
+
map: a
|
637
467
|
});
|
638
|
-
}),
|
639
|
-
|
640
|
-
}, { deep: !0 }), (
|
468
|
+
}), F(() => t.location, () => {
|
469
|
+
a && d && (d.setPosition(new google.maps.LatLng(t.location.lat, t.location.lng)), a.setCenter(new google.maps.LatLng(t.location.lat, t.location.lng)));
|
470
|
+
}, { deep: !0 }), (c, p) => (o(), r("div", {
|
641
471
|
ref_key: "gmap",
|
642
472
|
ref: s,
|
643
473
|
class: "gmap"
|
644
474
|
}, null, 512));
|
645
475
|
}
|
646
|
-
},
|
647
|
-
const
|
476
|
+
}, qt = /* @__PURE__ */ V(Ft, [["__scopeId", "data-v-c194b4a5"]]);
|
477
|
+
const Ht = { class: "pd-small flex-nowrap flex" }, Zt = { class: "user-card__info" }, Nt = { class: "user-card__name" }, Rt = { class: "user-card__position" }, Kt = {
|
648
478
|
__name: "DepartmentSub",
|
649
479
|
props: {
|
650
480
|
department: {
|
@@ -654,15 +484,15 @@ const Is = { class: "pd-small flex-nowrap flex" }, Bs = { class: "user-card__inf
|
|
654
484
|
// Define other props here
|
655
485
|
},
|
656
486
|
setup(e) {
|
657
|
-
return (t, s) => (
|
658
|
-
n("div",
|
659
|
-
n("p",
|
660
|
-
n("p",
|
487
|
+
return (t, s) => (o(), r("div", Ht, [
|
488
|
+
n("div", Zt, [
|
489
|
+
n("p", Nt, f(e.department.name ? e.department.name : "Безымянный"), 1),
|
490
|
+
n("p", Rt, f(e.department.members ? e.department.members.length : "0") + " человек", 1)
|
661
491
|
])
|
662
492
|
]));
|
663
493
|
}
|
664
|
-
},
|
665
|
-
const
|
494
|
+
}, De = /* @__PURE__ */ V(Kt, [["__scopeId", "data-v-3a07133c"]]);
|
495
|
+
const Wt = { class: "pd-small flex-nowrap flex" }, Yt = { class: "user-card__info" }, Jt = { class: "user-card__name" }, Qt = { class: "t-transp" }, Xt = {
|
666
496
|
__name: "User",
|
667
497
|
props: {
|
668
498
|
user: {
|
@@ -676,20 +506,20 @@ const Es = { class: "pd-small flex-nowrap flex" }, Fs = { class: "user-card__inf
|
|
676
506
|
// Define other props here
|
677
507
|
},
|
678
508
|
setup(e) {
|
679
|
-
return (t, s) => (
|
680
|
-
n("div",
|
681
|
-
n("p",
|
682
|
-
n("p",
|
509
|
+
return (t, s) => (o(), r("div", Wt, [
|
510
|
+
n("div", Yt, [
|
511
|
+
n("p", Jt, f(e.user.name ? e.user.name : "Безымянный"), 1),
|
512
|
+
n("p", Qt, f(e.position), 1)
|
683
513
|
])
|
684
514
|
]));
|
685
515
|
}
|
686
|
-
},
|
687
|
-
const
|
516
|
+
}, Ae = /* @__PURE__ */ V(Xt, [["__scopeId", "data-v-c0ea3801"]]);
|
517
|
+
const ie = (e) => (me("data-v-1d33cf95"), e = e(), he(), e), Gt = { class: "radius-big o-hidden cols-2-1_3" }, es = { class: "pd-medium w-100" }, ts = /* @__PURE__ */ ie(() => /* @__PURE__ */ n("path", {
|
688
518
|
d: "M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",
|
689
519
|
fill: "black"
|
690
|
-
}, null, -1)),
|
691
|
-
|
692
|
-
],
|
520
|
+
}, null, -1)), ss = [
|
521
|
+
ts
|
522
|
+
], ns = ["innerHTML"], as = ["innerHTML"], os = { class: "pd-small flex-v-center flex-nowrap flex" }, is = /* @__PURE__ */ ie(() => /* @__PURE__ */ n("h5", { class: "w-100" }, "Contacts ", -1)), ls = { class: "mn-r-small" }, rs = /* @__PURE__ */ ie(() => /* @__PURE__ */ n("svg", {
|
693
523
|
width: "14",
|
694
524
|
height: "9",
|
695
525
|
viewBox: "0 0 14 9",
|
@@ -702,7 +532,7 @@ const le = (e) => (me("data-v-1d33cf95"), e = e(), he(), e), Ns = { class: "radi
|
|
702
532
|
d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
|
703
533
|
fill: "#8A8A8A"
|
704
534
|
})
|
705
|
-
], -1)),
|
535
|
+
], -1)), ds = { key: 0 }, cs = { class: "pd-small flex-v-center flex-nowrap flex" }, us = /* @__PURE__ */ ie(() => /* @__PURE__ */ n("h5", { class: "w-100" }, "Working Hours ", -1)), ps = { class: "mn-r-small" }, ms = /* @__PURE__ */ ie(() => /* @__PURE__ */ n("svg", {
|
706
536
|
width: "14",
|
707
537
|
height: "9",
|
708
538
|
viewBox: "0 0 14 9",
|
@@ -715,7 +545,7 @@ const le = (e) => (me("data-v-1d33cf95"), e = e(), he(), e), Ns = { class: "radi
|
|
715
545
|
d: "M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",
|
716
546
|
fill: "#8A8A8A"
|
717
547
|
})
|
718
|
-
], -1)),
|
548
|
+
], -1)), hs = { key: 0 }, _s = {
|
719
549
|
__name: "Department",
|
720
550
|
props: {
|
721
551
|
department: Object,
|
@@ -723,69 +553,69 @@ const le = (e) => (me("data-v-1d33cf95"), e = e(), he(), e), Ns = { class: "radi
|
|
723
553
|
},
|
724
554
|
setup(e) {
|
725
555
|
const t = e;
|
726
|
-
return (s,
|
727
|
-
h(
|
556
|
+
return (s, a) => (o(), r("div", Gt, [
|
557
|
+
h(qt, {
|
728
558
|
location: { lat: e.department.location.coordinates[1], lng: e.department.location.coordinates[0] },
|
729
559
|
class: ""
|
730
560
|
}, null, 8, ["location"]),
|
731
|
-
n("div",
|
732
|
-
(
|
733
|
-
onClick:
|
561
|
+
n("div", es, [
|
562
|
+
(o(), r("svg", {
|
563
|
+
onClick: a[0] || (a[0] = (d) => s.$router.push(`/app/organization/${t.organization._id}/departments/${e.department._id}/edit`)),
|
734
564
|
class: "i-regular pos-absolute pos-r-0 pos-t-0 t-transp",
|
735
565
|
width: "652",
|
736
566
|
height: "652",
|
737
567
|
viewBox: "0 0 652 652",
|
738
568
|
fill: "none",
|
739
569
|
xmlns: "http://www.w3.org/2000/svg"
|
740
|
-
},
|
570
|
+
}, ss)),
|
741
571
|
n("h3", {
|
742
|
-
onClick:
|
572
|
+
onClick: a[1] || (a[1] = (d) => s.$router.push(`/app/organization/${t.organization._id}/departments/${e.department._id}`)),
|
743
573
|
class: "mn-small w-100",
|
744
574
|
innerHTML: e.department.profile.name
|
745
|
-
}, null, 8,
|
575
|
+
}, null, 8, ns),
|
746
576
|
n("p", {
|
747
|
-
onClick:
|
577
|
+
onClick: a[2] || (a[2] = (d) => s.$router.push(`/app/organization/${t.organization._id}/departments/${e.department._id}`)),
|
748
578
|
class: "mn-small p-big w-100",
|
749
579
|
innerHTML: e.department.address
|
750
|
-
}, null, 8,
|
751
|
-
h(
|
752
|
-
header:
|
753
|
-
n("div",
|
754
|
-
|
755
|
-
n("p",
|
756
|
-
|
580
|
+
}, null, 8, as),
|
581
|
+
h($e, { class: "radius-small o-hidden br-1px br-solid br-grey mn-thin" }, {
|
582
|
+
header: k(() => [
|
583
|
+
n("div", os, [
|
584
|
+
is,
|
585
|
+
n("p", ls, f(e.department.members.length) + " человек", 1),
|
586
|
+
rs
|
757
587
|
])
|
758
588
|
]),
|
759
|
-
content:
|
589
|
+
content: k(() => [
|
760
590
|
n("ul", null, [
|
761
|
-
e.department.members.length < 1 ? (
|
762
|
-
(
|
591
|
+
e.department.members.length < 1 ? (o(), r("li", ds, "В отделе еще нет участников")) : g("", !0),
|
592
|
+
(o(!0), r(O, null, L(e.department.members, (d, c) => (o(), $(Ae, {
|
763
593
|
class: "br-b br-solid br-grey",
|
764
|
-
key:
|
765
|
-
user:
|
766
|
-
position:
|
767
|
-
onClick: (p) => s.$router.push(`/app/profile/${
|
594
|
+
key: c,
|
595
|
+
user: d.user,
|
596
|
+
position: d.position,
|
597
|
+
onClick: (p) => s.$router.push(`/app/profile/${d.user._id}`)
|
768
598
|
}, null, 8, ["user", "position", "onClick"]))), 128))
|
769
599
|
])
|
770
600
|
]),
|
771
601
|
_: 1
|
772
602
|
}),
|
773
|
-
h(
|
774
|
-
header:
|
775
|
-
n("div",
|
776
|
-
|
777
|
-
n("p",
|
778
|
-
|
603
|
+
h($e, { class: "radius-small o-hidden br-1px br-solid br-grey mn-thin" }, {
|
604
|
+
header: k(() => [
|
605
|
+
n("div", cs, [
|
606
|
+
us,
|
607
|
+
n("p", ps, f(e.department.subdepartments ? e.department.subdepartments.length : 0) + " отделов", 1),
|
608
|
+
ms
|
779
609
|
])
|
780
610
|
]),
|
781
|
-
content:
|
611
|
+
content: k(() => [
|
782
612
|
n("ul", null, [
|
783
|
-
e.department.subdepartments.length < 1 ? (
|
784
|
-
(
|
785
|
-
onClick: (p) => s.$router.push(`/app/organization/departments/${
|
786
|
-
key:
|
613
|
+
e.department.subdepartments.length < 1 ? (o(), r("li", hs, "В отделе еще нет подотделов")) : g("", !0),
|
614
|
+
(o(!0), r(O, null, L(e.department.subdepartments, (d, c) => (o(), $(De, {
|
615
|
+
onClick: (p) => s.$router.push(`/app/organization/departments/${d._id}`),
|
616
|
+
key: c,
|
787
617
|
class: "br-b br-solid br-grey",
|
788
|
-
department:
|
618
|
+
department: d
|
789
619
|
}, null, 8, ["onClick", "department"]))), 128))
|
790
620
|
])
|
791
621
|
]),
|
@@ -794,9 +624,9 @@ const le = (e) => (me("data-v-1d33cf95"), e = e(), he(), e), Ns = { class: "radi
|
|
794
624
|
])
|
795
625
|
]));
|
796
626
|
}
|
797
|
-
},
|
798
|
-
|
799
|
-
const _ =
|
627
|
+
}, fs = /* @__PURE__ */ V(_s, [["__scopeId", "data-v-1d33cf95"]]), G = _e.create({ baseURL: process.env.API_URL, withCredentials: !0 });
|
628
|
+
G.defaults.withCredentials = !0;
|
629
|
+
const _ = oe({
|
800
630
|
departments: [],
|
801
631
|
department: {
|
802
632
|
organization: "",
|
@@ -818,46 +648,46 @@ const _ = ie({
|
|
818
648
|
subdepartments: []
|
819
649
|
},
|
820
650
|
error: null
|
821
|
-
}),
|
651
|
+
}), W = {
|
822
652
|
async readOne(e) {
|
823
|
-
await
|
653
|
+
await G.get(`/api/departments/get/${e}`).then((t) => {
|
824
654
|
_.department = t.data, _.error = null;
|
825
655
|
}).catch((t) => {
|
826
656
|
C(t);
|
827
657
|
});
|
828
658
|
},
|
829
659
|
async read(e) {
|
830
|
-
await
|
660
|
+
await G.get(`/api/departments/${e}`).then((t) => {
|
831
661
|
console.log("Response:", t), _.departments = t.data, _.error = null;
|
832
662
|
}).catch((t) => {
|
833
663
|
C(t);
|
834
664
|
});
|
835
665
|
},
|
836
666
|
async create(e, t) {
|
837
|
-
await
|
667
|
+
await G.post(`/api/departments/${e}/create`, t).then((s) => {
|
838
668
|
_.error = null, _.department = s.data;
|
839
669
|
}).catch((s) => {
|
840
670
|
C(s);
|
841
671
|
});
|
842
672
|
},
|
843
673
|
async update(e, t) {
|
844
|
-
await
|
674
|
+
await G.post(`/api/departments/${e}/update`, t).then(() => {
|
845
675
|
_.error = null;
|
846
676
|
}).catch((s) => {
|
847
677
|
C(s);
|
848
678
|
});
|
849
679
|
},
|
850
680
|
async delete(e, t) {
|
851
|
-
await
|
681
|
+
await G.delete(`/api/departments/${e}/delete`, { data: { _id: t } }).then(() => {
|
852
682
|
_.error = null;
|
853
683
|
}).catch((s) => {
|
854
684
|
C(s);
|
855
685
|
});
|
856
686
|
}
|
857
687
|
};
|
858
|
-
|
688
|
+
F(_, (e, t) => {
|
859
689
|
});
|
860
|
-
const
|
690
|
+
const $i = {
|
861
691
|
__name: "StructureTab",
|
862
692
|
props: {
|
863
693
|
organization: Object,
|
@@ -866,36 +696,36 @@ const ul = {
|
|
866
696
|
},
|
867
697
|
async setup(e) {
|
868
698
|
let t, s;
|
869
|
-
const
|
870
|
-
b("departments"), [t, s] =
|
871
|
-
const
|
872
|
-
const
|
873
|
-
(
|
699
|
+
const a = e;
|
700
|
+
b("departments"), [t, s] = Y(() => W.read(a.organization._id)), await t, s();
|
701
|
+
const d = A(() => {
|
702
|
+
const c = _.departments, p = c.flatMap(
|
703
|
+
(l) => l.subdepartments.map((u) => u._id)
|
874
704
|
);
|
875
|
-
return
|
876
|
-
(
|
705
|
+
return c.filter(
|
706
|
+
(l) => !p.includes(l._id)
|
877
707
|
);
|
878
708
|
});
|
879
|
-
return (
|
880
|
-
default:
|
709
|
+
return (c, p) => (o(), $(R, { name: "slide-fade" }, {
|
710
|
+
default: k(() => [
|
881
711
|
n("div", null, [
|
882
|
-
|
712
|
+
x(d).length < 1 ? (o(), $(fe, {
|
883
713
|
key: 0,
|
884
714
|
title: "You don't have any spots yet.",
|
885
715
|
description: "Add spots to your hub.",
|
886
716
|
action: "Add spot",
|
887
|
-
callback: () =>
|
717
|
+
callback: () => c.$router.push(`/app/organization/${a.organization._id}/departments/create`)
|
888
718
|
}, null, 8, ["callback"])) : g("", !0),
|
889
719
|
n("div", null, [
|
890
|
-
(
|
891
|
-
key:
|
892
|
-
department:
|
720
|
+
(o(!0), r(O, null, L(x(d), (l, u) => (o(), $(fs, {
|
721
|
+
key: u,
|
722
|
+
department: l,
|
893
723
|
organization: e.organization,
|
894
724
|
class: "radius-big bg-grey mn-thin"
|
895
725
|
}, null, 8, ["department", "organization"]))), 128)),
|
896
|
-
|
726
|
+
x(d).length > 0 && S.user._id === e.organization.owner ? (o(), r("button", {
|
897
727
|
key: 0,
|
898
|
-
onClick: p[0] || (p[0] = (
|
728
|
+
onClick: p[0] || (p[0] = (l) => c.$router.push(`/app/organization/${a.organization._id}/departments/create`)),
|
899
729
|
class: "mn-thin button w-100"
|
900
730
|
}, " Add spot ")) : g("", !0)
|
901
731
|
])
|
@@ -906,98 +736,98 @@ const ul = {
|
|
906
736
|
}
|
907
737
|
}, ee = _e.create({ baseURL: process.env.API_URL, withCredentials: !0 });
|
908
738
|
ee.defaults.withCredentials = !0;
|
909
|
-
const
|
739
|
+
const E = oe({
|
910
740
|
invites: [],
|
911
741
|
invite: null,
|
912
742
|
error: null
|
913
|
-
}),
|
743
|
+
}), ae = {
|
914
744
|
async read(e) {
|
915
745
|
await ee.get(`/api/invites/${e}`).then((t) => {
|
916
|
-
|
746
|
+
E.invites = t.data, E.error = null;
|
917
747
|
}).catch((t) => {
|
918
748
|
C(t);
|
919
749
|
});
|
920
750
|
},
|
921
751
|
async readOne(e) {
|
922
752
|
await ee.get(`/api/invites/get/${e}`).then((t) => {
|
923
|
-
|
753
|
+
E.invite = t.data, S.user.phone = t.data.invitedPhone, S.user.email = t.data.invitedEmail;
|
924
754
|
}).catch((t) => {
|
925
755
|
C(t);
|
926
756
|
});
|
927
757
|
},
|
928
758
|
async create(e, t) {
|
929
759
|
await ee.post(`/api/invites/${e}/create`, t).then(() => {
|
930
|
-
|
760
|
+
E.error = null;
|
931
761
|
}).catch((s) => {
|
932
762
|
C(s);
|
933
763
|
});
|
934
764
|
},
|
935
765
|
async update(e, t) {
|
936
766
|
await ee.put(`/api/invites/${e}/update`, t).then(() => {
|
937
|
-
|
767
|
+
E.error = null;
|
938
768
|
}).catch((s) => {
|
939
769
|
C(s);
|
940
770
|
});
|
941
771
|
},
|
942
772
|
async delete(e) {
|
943
773
|
await ee.delete(`/api/invites/${e}/delete`).then(() => {
|
944
|
-
|
774
|
+
E.error = null;
|
945
775
|
}).catch((t) => {
|
946
776
|
C(t);
|
947
777
|
});
|
948
778
|
}
|
949
779
|
};
|
950
|
-
E
|
780
|
+
F(E, (e, t) => {
|
951
781
|
});
|
952
|
-
const
|
782
|
+
const Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
953
783
|
__proto__: null,
|
954
|
-
actions:
|
955
|
-
state:
|
956
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
784
|
+
actions: ae,
|
785
|
+
state: E
|
786
|
+
}, Symbol.toStringTag, { value: "Module" })), gs = { class: "mn-medium radius-medium pd-semi bg-white" }, bs = /* @__PURE__ */ n("h3", { class: "mn-medium" }, "Добавить участников", -1), vs = /* @__PURE__ */ n("p", { class: "mn-small t-transp p-medium" }, "Укажите email или телефон, чтобы отправить ссылку с приглашением:", -1), ys = { class: "w-100 flex-nowrap flex" }, ws = {
|
957
787
|
key: 0,
|
958
788
|
class: "mn-r-medium flex-v-center flex"
|
959
|
-
},
|
960
|
-
|
961
|
-
],
|
789
|
+
}, $s = ["onClick"], Cs = /* @__PURE__ */ n("p", { class: "t-blue mn-r-small" }, "+ Добавить приглашение", -1), xs = [
|
790
|
+
Cs
|
791
|
+
], ks = /* @__PURE__ */ n("span", null, "Отправить приглашения ", -1), Os = {
|
962
792
|
__name: "MembersAdd",
|
963
793
|
props: {
|
964
794
|
organization: Object
|
965
795
|
},
|
966
796
|
emits: ["send-invite"],
|
967
797
|
setup(e, { emit: t }) {
|
968
|
-
const s = e,
|
969
|
-
function
|
970
|
-
|
798
|
+
const s = e, a = b(null), d = b([{ contact: "", role: "" }]);
|
799
|
+
function c() {
|
800
|
+
d.value.push({ contact: "", role: "" });
|
971
801
|
}
|
972
|
-
function p(
|
973
|
-
|
802
|
+
function p(i) {
|
803
|
+
d.value.splice(i, 1);
|
974
804
|
}
|
975
|
-
async function
|
976
|
-
await
|
805
|
+
async function l(i) {
|
806
|
+
await ae.create(s.organization._id, d.value);
|
977
807
|
}
|
978
|
-
function
|
808
|
+
function u() {
|
979
809
|
}
|
980
|
-
return (
|
981
|
-
n("section",
|
982
|
-
|
983
|
-
|
984
|
-
(
|
810
|
+
return (i, m) => (o(), r("div", null, [
|
811
|
+
n("section", gs, [
|
812
|
+
bs,
|
813
|
+
vs,
|
814
|
+
(o(!0), r(O, null, L(d.value, (w, P) => (o(), r("div", {
|
985
815
|
key: P,
|
986
816
|
class: "br-1px br-solid br-grey flex radius-small mn-thin"
|
987
817
|
}, [
|
988
|
-
n("div",
|
989
|
-
h(
|
818
|
+
n("div", ys, [
|
819
|
+
h(D, {
|
990
820
|
field: w.contact,
|
991
|
-
"onUpdate:field": (
|
821
|
+
"onUpdate:field": (T) => w.contact = T,
|
992
822
|
placeholder: "Email или телефон",
|
993
823
|
class: "w-100 bg-white",
|
994
|
-
validation:
|
824
|
+
validation: a.value
|
995
825
|
}, null, 8, ["field", "onUpdate:field", "validation"]),
|
996
|
-
P > 0 ? (
|
826
|
+
P > 0 ? (o(), r("div", ws, [
|
997
827
|
n("button", {
|
998
|
-
onClick: (
|
828
|
+
onClick: (T) => p(P),
|
999
829
|
class: "button-small button"
|
1000
|
-
}, "×", 8,
|
830
|
+
}, "×", 8, $s)
|
1001
831
|
])) : g("", !0)
|
1002
832
|
]),
|
1003
833
|
h(Me, {
|
@@ -1014,32 +844,32 @@ const pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1014
844
|
}, null, 8, ["prop"])
|
1015
845
|
]))), 128)),
|
1016
846
|
n("div", {
|
1017
|
-
onClick:
|
847
|
+
onClick: c,
|
1018
848
|
class: "mn-small flex-v-center flex-nowrap flex"
|
1019
|
-
},
|
849
|
+
}, xs),
|
1020
850
|
h(ce, {
|
1021
|
-
submit:
|
1022
|
-
callback:
|
851
|
+
submit: i.a = () => l(E.invites),
|
852
|
+
callback: u,
|
1023
853
|
class: "mn-t-medium"
|
1024
854
|
}, {
|
1025
|
-
default:
|
1026
|
-
|
855
|
+
default: k(() => [
|
856
|
+
ks
|
1027
857
|
]),
|
1028
858
|
_: 1
|
1029
859
|
}, 8, ["submit"])
|
1030
860
|
])
|
1031
861
|
]));
|
1032
862
|
}
|
1033
|
-
},
|
863
|
+
}, Ls = { class: "mn-big radius-medium bg-white" }, Ss = {
|
1034
864
|
key: 0,
|
1035
865
|
class: "pd-semi"
|
1036
|
-
},
|
866
|
+
}, Ps = { class: "br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium" }, zs = { class: "w-100 mn-r-small" }, Ms = { class: "t-transp" }, Ds = {
|
1037
867
|
key: 0,
|
1038
868
|
class: "mn-l-medium flex-v-center flex"
|
1039
|
-
},
|
869
|
+
}, As = ["onClick"], Vs = {
|
1040
870
|
key: 1,
|
1041
871
|
class: "pd-semi"
|
1042
|
-
},
|
872
|
+
}, Is = { key: 0 }, Ts = { class: "br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium" }, Bs = { class: "w-100 mn-r-small" }, js = { class: "t-transp" }, Us = { class: "mn-l-medium flex-v-center flex" }, Es = ["onClick"], Fs = {
|
1043
873
|
__name: "MembersList",
|
1044
874
|
props: {
|
1045
875
|
organization: Object,
|
@@ -1048,54 +878,54 @@ const pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1048
878
|
},
|
1049
879
|
emits: [["removeMember", "removeInvite"]],
|
1050
880
|
setup(e, { emit: t }) {
|
1051
|
-
const s = e,
|
1052
|
-
function
|
1053
|
-
s.memberships.splice(p, 1), t("removeMember",
|
881
|
+
const s = e, a = b("members");
|
882
|
+
function d(p, l) {
|
883
|
+
s.memberships.splice(p, 1), t("removeMember", l);
|
1054
884
|
}
|
1055
|
-
function
|
1056
|
-
s.invites.splice(p, 1), t("removeInvite",
|
885
|
+
function c(p, l) {
|
886
|
+
s.invites.splice(p, 1), t("removeInvite", l);
|
1057
887
|
}
|
1058
|
-
return (p,
|
1059
|
-
h(
|
1060
|
-
selected:
|
1061
|
-
"onUpdate:selected":
|
888
|
+
return (p, l) => (o(), r("section", Ls, [
|
889
|
+
h(Pe, {
|
890
|
+
selected: a.value,
|
891
|
+
"onUpdate:selected": l[0] || (l[0] = (u) => a.value = u),
|
1062
892
|
class: "br-grey br-b br-solid radius-small",
|
1063
893
|
tabs: [
|
1064
894
|
{ name: "Участники", value: "members" },
|
1065
895
|
{ name: "Приглашения", value: "invites" }
|
1066
896
|
]
|
1067
897
|
}, null, 8, ["selected"]),
|
1068
|
-
|
1069
|
-
(
|
1070
|
-
n("span",
|
1071
|
-
n("span",
|
1072
|
-
|
898
|
+
a.value === "members" ? (o(), r("div", Ss, [
|
899
|
+
(o(!0), r(O, null, L(e.memberships, (u, i) => (o(), r("div", Ps, [
|
900
|
+
n("span", zs, f(u.user.email) + " " + f(u.user.phone), 1),
|
901
|
+
n("span", Ms, f(u.position), 1),
|
902
|
+
u.position !== "Основатель" ? (o(), r("div", Ds, [
|
1073
903
|
n("button", {
|
1074
|
-
onClick: (m) =>
|
904
|
+
onClick: (m) => d(i, u),
|
1075
905
|
class: "button-small button"
|
1076
|
-
}, "×", 8,
|
906
|
+
}, "×", 8, As)
|
1077
907
|
])) : g("", !0)
|
1078
908
|
]))), 256))
|
1079
909
|
])) : g("", !0),
|
1080
|
-
|
1081
|
-
e.invites.length < 1 ? (
|
1082
|
-
(
|
1083
|
-
n("span",
|
1084
|
-
n("span",
|
1085
|
-
n("div",
|
910
|
+
a.value === "invites" ? (o(), r("div", Vs, [
|
911
|
+
e.invites.length < 1 ? (o(), r("span", Is, "В организации нет приглашений")) : g("", !0),
|
912
|
+
(o(!0), r(O, null, L(e.invites, (u, i) => (o(), r("div", Ts, [
|
913
|
+
n("span", Bs, f(u.invitedEmail) + " " + f(u.invitedPhone), 1),
|
914
|
+
n("span", js, f(u.status), 1),
|
915
|
+
n("div", Us, [
|
1086
916
|
n("button", {
|
1087
|
-
onClick: (m) =>
|
917
|
+
onClick: (m) => c(i, u),
|
1088
918
|
class: "button-small button"
|
1089
|
-
}, "×", 8,
|
919
|
+
}, "×", 8, Es)
|
1090
920
|
])
|
1091
921
|
]))), 256))
|
1092
922
|
])) : g("", !0)
|
1093
923
|
]));
|
1094
924
|
}
|
1095
|
-
},
|
925
|
+
}, qs = /* @__PURE__ */ n("section", { class: "mn-medium radius-medium pd-semi bg-white" }, [
|
1096
926
|
/* @__PURE__ */ n("h2", { class: "mn-regular" }, "Участники"),
|
1097
927
|
/* @__PURE__ */ n("p", { class: "t-transp p-big" }, "Добавляйте новых участников организации и настраивайте права доступа.")
|
1098
|
-
], -1),
|
928
|
+
], -1), xi = {
|
1099
929
|
__name: "MembersTab",
|
1100
930
|
props: {
|
1101
931
|
organization: Object,
|
@@ -1103,31 +933,31 @@ const pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1103
933
|
},
|
1104
934
|
async setup(e) {
|
1105
935
|
let t, s;
|
1106
|
-
const
|
1107
|
-
[t, s] =
|
1108
|
-
async function
|
1109
|
-
await
|
936
|
+
const a = e;
|
937
|
+
[t, s] = Y(() => ae.read(a.organization._id)), await t, s();
|
938
|
+
async function d(l) {
|
939
|
+
await ae.create(a.organization._id, l);
|
1110
940
|
}
|
1111
|
-
async function l
|
1112
|
-
await ge.delete(
|
941
|
+
async function c(l) {
|
942
|
+
await ge.delete(l._id);
|
1113
943
|
}
|
1114
|
-
async function p(
|
1115
|
-
await
|
944
|
+
async function p(l) {
|
945
|
+
await ae.delete(l._id);
|
1116
946
|
}
|
1117
|
-
return (
|
1118
|
-
default:
|
947
|
+
return (l, u) => (o(), $(R, { name: "slide-fade" }, {
|
948
|
+
default: k(() => [
|
1119
949
|
n("div", null, [
|
1120
|
-
|
1121
|
-
h(
|
950
|
+
qs,
|
951
|
+
h(Os, {
|
1122
952
|
organization: e.organization,
|
1123
|
-
onSendInvite:
|
953
|
+
onSendInvite: d
|
1124
954
|
}, null, 8, ["organization"]),
|
1125
|
-
h(
|
955
|
+
h(Fs, {
|
1126
956
|
organization: e.organization,
|
1127
957
|
memberships: e.memberships,
|
1128
|
-
invites:
|
958
|
+
invites: E.invites,
|
1129
959
|
onRemoveInvite: p,
|
1130
|
-
onRemoveMember:
|
960
|
+
onRemoveMember: c
|
1131
961
|
}, null, 8, ["organization", "memberships", "invites"])
|
1132
962
|
])
|
1133
963
|
]),
|
@@ -1135,48 +965,48 @@ const pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1135
965
|
}));
|
1136
966
|
}
|
1137
967
|
};
|
1138
|
-
const
|
968
|
+
const Hs = {
|
1139
969
|
key: 0,
|
1140
970
|
class: "pd-thin for-transition w-100"
|
1141
|
-
},
|
971
|
+
}, Zs = { class: "t-semi mn-small" }, Ns = {
|
1142
972
|
__name: "Organization",
|
1143
973
|
setup(e) {
|
1144
|
-
const t =
|
1145
|
-
let
|
1146
|
-
const
|
974
|
+
const t = H(), s = q();
|
975
|
+
let a = s.query.tab ? s.query.tab : "events";
|
976
|
+
const d = b(null);
|
1147
977
|
pe(async () => {
|
1148
|
-
|
978
|
+
d.value = await Z.read({ _id: s.params._id, user: S.user._id }), await ge.read(s.params._id);
|
1149
979
|
});
|
1150
|
-
const
|
1151
|
-
s.query.tab =
|
1152
|
-
t.push({ query: { ...s.query, tab:
|
980
|
+
const c = b(a);
|
981
|
+
s.query.tab = c.value, F(c, (l) => {
|
982
|
+
t.push({ query: { ...s.query, tab: l } });
|
1153
983
|
});
|
1154
|
-
const p = ({ membership:
|
1155
|
-
|
984
|
+
const p = ({ membership: l, isMember: u, targetId: i }) => {
|
985
|
+
qe.handleMembershipUpdate(v.current, l, u, i);
|
1156
986
|
};
|
1157
|
-
return (
|
1158
|
-
h(
|
1159
|
-
organization:
|
1160
|
-
user:
|
987
|
+
return (l, u) => d.value ? (o(), r("div", Hs, [
|
988
|
+
h(Vt, {
|
989
|
+
organization: v.current,
|
990
|
+
user: S.user,
|
1161
991
|
class: "mn-semi"
|
1162
992
|
}, {
|
1163
|
-
default:
|
1164
|
-
n("p",
|
1165
|
-
|
993
|
+
default: k(() => [
|
994
|
+
n("p", Zs, " 👨👨👧👧 " + f(v.current.numberOfMemberships) + " followers ", 1),
|
995
|
+
S.user._id && x(s).params._id && x(s).params._id !== S.user._id && v.current.owner !== S.user._id ? (o(), $(Fe, {
|
1166
996
|
key: 0,
|
1167
997
|
type: "organization",
|
1168
|
-
isMember:
|
1169
|
-
targetId:
|
1170
|
-
userId:
|
998
|
+
isMember: v.current.isMember,
|
999
|
+
targetId: v.current._id,
|
1000
|
+
userId: S.user._id,
|
1171
1001
|
class: "w-min mn-auto",
|
1172
1002
|
onUpdateMembership: p
|
1173
1003
|
}, null, 8, ["isMember", "targetId", "userId"])) : g("", !0)
|
1174
1004
|
]),
|
1175
1005
|
_: 1
|
1176
1006
|
}, 8, ["organization", "user"]),
|
1177
|
-
h(
|
1178
|
-
selected:
|
1179
|
-
"onUpdate:selected":
|
1007
|
+
h(Pe, {
|
1008
|
+
selected: c.value,
|
1009
|
+
"onUpdate:selected": u[0] || (u[0] = (i) => c.value = i),
|
1180
1010
|
tabs: [
|
1181
1011
|
{ name: "Events", value: "events" },
|
1182
1012
|
{ name: "Community", value: "community" }
|
@@ -1184,85 +1014,85 @@ const Bn = {
|
|
1184
1014
|
class: "mn-small o-hidden h5 radius-big bg-grey"
|
1185
1015
|
}, null, 8, ["selected"]),
|
1186
1016
|
h(R, { name: "slide-fade" }, {
|
1187
|
-
default:
|
1188
|
-
|
1017
|
+
default: k(() => [
|
1018
|
+
c.value === "events" ? (o(), $(Ze, {
|
1189
1019
|
key: 0,
|
1190
|
-
user:
|
1191
|
-
owner:
|
1020
|
+
user: S.user._id,
|
1021
|
+
owner: x(s).params._id,
|
1192
1022
|
sortOrder: "asc"
|
1193
1023
|
}, null, 8, ["user", "owner"])) : g("", !0)
|
1194
1024
|
]),
|
1195
1025
|
_: 1
|
1196
1026
|
}),
|
1197
1027
|
h(R, { name: "slide-fade" }, {
|
1198
|
-
default:
|
1199
|
-
|
1028
|
+
default: k(() => [
|
1029
|
+
c.value === "community" ? (o(), $(Ne, {
|
1200
1030
|
key: 0,
|
1201
|
-
user:
|
1202
|
-
owner:
|
1031
|
+
user: S.user._id,
|
1032
|
+
owner: x(s).params._id
|
1203
1033
|
}, null, 8, ["user", "owner"])) : g("", !0)
|
1204
1034
|
]),
|
1205
1035
|
_: 1
|
1206
1036
|
})
|
1207
1037
|
])) : g("", !0);
|
1208
1038
|
}
|
1209
|
-
},
|
1039
|
+
}, Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1210
1040
|
__proto__: null,
|
1211
|
-
default:
|
1212
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
1041
|
+
default: Ns
|
1042
|
+
}, Symbol.toStringTag, { value: "Module" })), Ks = { class: "for-transition w-100" }, Ws = {
|
1213
1043
|
id: "dash",
|
1214
1044
|
class: "pd-medium bg-grey"
|
1215
|
-
},
|
1045
|
+
}, Ys = { class: "mn-medium radius-medium pd-semi bg-white" }, Js = { class: "flex-nowrap flex mn-small" }, Qs = { class: "w-100" }, Xs = /* @__PURE__ */ n("path", {
|
1216
1046
|
d: "M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",
|
1217
1047
|
fill: "black"
|
1218
|
-
}, null, -1),
|
1219
|
-
|
1220
|
-
],
|
1048
|
+
}, null, -1), Gs = [
|
1049
|
+
Xs
|
1050
|
+
], en = ["innerHTML"], tn = { class: "mn-medium radius-medium pd-semi bg-white" }, sn = /* @__PURE__ */ n("h3", { class: "mn-regular" }, "Команда", -1), nn = { key: 0 }, an = { class: "mn-medium radius-medium pd-semi bg-white" }, on = /* @__PURE__ */ n("h3", { class: "mn-regular" }, "Подотделы", -1), ln = { key: 0 }, rn = {
|
1221
1051
|
__name: "Department",
|
1222
1052
|
async setup(e) {
|
1223
1053
|
let t, s;
|
1224
|
-
|
1225
|
-
const
|
1226
|
-
return [t, s] =
|
1227
|
-
n("div",
|
1228
|
-
n("section",
|
1229
|
-
n("div",
|
1230
|
-
n("h2",
|
1231
|
-
(
|
1232
|
-
onClick:
|
1054
|
+
H();
|
1055
|
+
const a = q();
|
1056
|
+
return [t, s] = Y(() => W.readOne(a.params._id)), await t, s(), (d, c) => (o(), r("div", Ks, [
|
1057
|
+
n("div", Ws, [
|
1058
|
+
n("section", Ys, [
|
1059
|
+
n("div", Js, [
|
1060
|
+
n("h2", Qs, f(_.department.name), 1),
|
1061
|
+
(o(), r("svg", {
|
1062
|
+
onClick: c[0] || (c[0] = (p) => d.$router.push(`/app/organization/departments/${_.department._id}/edit`)),
|
1233
1063
|
class: "i-regular t-transp",
|
1234
1064
|
width: "652",
|
1235
1065
|
height: "652",
|
1236
1066
|
viewBox: "0 0 652 652",
|
1237
1067
|
fill: "none",
|
1238
1068
|
xmlns: "http://www.w3.org/2000/svg"
|
1239
|
-
},
|
1069
|
+
}, Gs))
|
1240
1070
|
]),
|
1241
1071
|
n("p", {
|
1242
1072
|
class: "t-transp p-big",
|
1243
1073
|
innerHTML: _.department.description
|
1244
|
-
}, null, 8,
|
1074
|
+
}, null, 8, en)
|
1245
1075
|
]),
|
1246
|
-
n("section",
|
1247
|
-
|
1076
|
+
n("section", tn, [
|
1077
|
+
sn,
|
1248
1078
|
n("ul", null, [
|
1249
|
-
_.department.members.length < 1 ? (
|
1250
|
-
(
|
1079
|
+
_.department.members.length < 1 ? (o(), r("li", nn, "В отделе еще нет участников")) : g("", !0),
|
1080
|
+
(o(!0), r(O, null, L(_.department.members, (p, l) => (o(), $(Ae, {
|
1251
1081
|
class: "br-b br-solid br-grey",
|
1252
|
-
key:
|
1082
|
+
key: l,
|
1253
1083
|
user: p.user,
|
1254
1084
|
position: p.position,
|
1255
|
-
onClick: (
|
1085
|
+
onClick: (u) => d.$router.push(`/app/profile/${p.user._id}`)
|
1256
1086
|
}, null, 8, ["user", "position", "onClick"]))), 128))
|
1257
1087
|
])
|
1258
1088
|
]),
|
1259
|
-
n("section",
|
1260
|
-
|
1089
|
+
n("section", an, [
|
1090
|
+
on,
|
1261
1091
|
n("ul", null, [
|
1262
|
-
_.department.subdepartments.length < 1 ? (
|
1263
|
-
(
|
1264
|
-
onClick: (
|
1265
|
-
key:
|
1092
|
+
_.department.subdepartments.length < 1 ? (o(), r("li", ln, "В отделе еще нет подотделов")) : g("", !0),
|
1093
|
+
(o(!0), r(O, null, L(_.department.subdepartments, (p, l) => (o(), $(De, {
|
1094
|
+
onClick: (u) => d.$router.push(`/app/organization/departments/${p._id}`),
|
1095
|
+
key: l,
|
1266
1096
|
class: "br-b br-solid br-grey",
|
1267
1097
|
department: p
|
1268
1098
|
}, null, 8, ["onClick", "department"]))), 128))
|
@@ -1271,14 +1101,14 @@ const Bn = {
|
|
1271
1101
|
])
|
1272
1102
|
]));
|
1273
1103
|
}
|
1274
|
-
},
|
1104
|
+
}, dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1275
1105
|
__proto__: null,
|
1276
|
-
default:
|
1106
|
+
default: rn
|
1277
1107
|
}, Symbol.toStringTag, { value: "Module" }));
|
1278
|
-
const
|
1108
|
+
const cn = { class: "for-transition bg-white radius-big w-100" }, un = { class: "flex-v-center flex-nowrap flex pd-semi" }, pn = /* @__PURE__ */ n("h2", { class: "mn-r-medium" }, "Organizations", -1), mn = { class: "pd-semi" }, hn = {
|
1279
1109
|
key: 1,
|
1280
1110
|
class: "cols-3"
|
1281
|
-
},
|
1111
|
+
}, _n = ["onClick"], fn = ["src"], gn = {
|
1282
1112
|
key: 1,
|
1283
1113
|
class: "radius-medium mn-small i-thin",
|
1284
1114
|
width: "42",
|
@@ -1286,149 +1116,179 @@ const sa = { class: "for-transition bg-white radius-big w-100" }, na = { class:
|
|
1286
1116
|
viewBox: "0 0 42 42",
|
1287
1117
|
fill: "none",
|
1288
1118
|
xmlns: "http://www.w3.org/2000/svg"
|
1289
|
-
},
|
1119
|
+
}, bn = /* @__PURE__ */ n("circle", {
|
1290
1120
|
fill: "rgb(var(--main))",
|
1291
1121
|
cx: "21",
|
1292
1122
|
cy: "21",
|
1293
1123
|
r: "21"
|
1294
|
-
}, null, -1),
|
1124
|
+
}, null, -1), vn = /* @__PURE__ */ n("path", {
|
1295
1125
|
fill: "#242424",
|
1296
1126
|
"fill-opacity": "0.1",
|
1297
1127
|
"fill-rule": "evenodd",
|
1298
1128
|
"clip-rule": "evenodd",
|
1299
1129
|
d: "M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"
|
1300
|
-
}, null, -1),
|
1301
|
-
|
1302
|
-
|
1303
|
-
],
|
1130
|
+
}, null, -1), yn = [
|
1131
|
+
bn,
|
1132
|
+
vn
|
1133
|
+
], wn = { class: "h4 mn-r-semi mn-small" }, $n = ["onClick"], Cn = /* @__PURE__ */ n("path", {
|
1304
1134
|
fill: "black",
|
1305
1135
|
d: "M6.41357 11.979C9.6831 11.979 12.3901 9.26611 12.3901 6.00244C12.3901 2.73291 9.67724 0.0258789 6.40771 0.0258789C3.14404 0.0258789 0.437008 2.73291 0.437008 6.00244C0.437008 9.26611 3.1499 11.979 6.41357 11.979ZM6.41357 10.9829C3.64795 10.9829 1.43896 8.76807 1.43896 6.00244C1.43896 3.23682 3.64209 1.02197 6.40771 1.02197C9.17334 1.02197 11.3882 3.23682 11.394 6.00244C11.3999 8.76807 9.1792 10.9829 6.41357 10.9829ZM8.72802 4.36182L9.1499 3.93408C9.3374 3.74072 9.35498 3.52979 9.1792 3.34814L9.04443 3.21924C8.86865 3.0376 8.65185 3.06104 8.46435 3.24854L8.03662 3.67041L8.72802 4.36182ZM4.53271 8.53955L8.37646 4.71338L7.68505 4.02197L3.84716 7.84814L3.51318 8.62158C3.45459 8.76807 3.59521 8.89697 3.72412 8.8501L4.53271 8.53955Z"
|
1306
|
-
}, null, -1),
|
1307
|
-
|
1308
|
-
],
|
1136
|
+
}, null, -1), xn = [
|
1137
|
+
Cn
|
1138
|
+
], kn = { class: "t-black p-small" }, ki = {
|
1309
1139
|
__name: "OrganizationsAccount",
|
1310
1140
|
async setup(e) {
|
1311
1141
|
let t, s;
|
1312
|
-
|
1313
|
-
const
|
1314
|
-
let
|
1315
|
-
const p = b(
|
1316
|
-
return
|
1317
|
-
|
1318
|
-
}), (
|
1319
|
-
n("header",
|
1320
|
-
|
1142
|
+
S.user._id && ([t, s] = Y(() => Z.read({ owner: S.user._id })), await t, s());
|
1143
|
+
const a = H(), d = q();
|
1144
|
+
let c = d.query.tab ? d.query.tab : "details";
|
1145
|
+
const p = b(c);
|
1146
|
+
return d.query.tab = p.value, F(p, (l) => {
|
1147
|
+
a.push({ query: { ...d.query, tab: l } });
|
1148
|
+
}), (l, u) => (o(), r("div", cn, [
|
1149
|
+
n("header", un, [
|
1150
|
+
pn,
|
1321
1151
|
n("button", {
|
1322
|
-
onClick:
|
1152
|
+
onClick: u[0] || (u[0] = (i) => l.$router.push({ name: "Create Organization" })),
|
1323
1153
|
class: "radius-100p i-semi hover-scale-1 cursor-pointer t-white bg-second"
|
1324
1154
|
}, "+")
|
1325
1155
|
]),
|
1326
|
-
n("div",
|
1327
|
-
|
1156
|
+
n("div", mn, [
|
1157
|
+
v.all.length < 1 ? (o(), $(fe, {
|
1328
1158
|
key: 0,
|
1329
1159
|
title: "You Haven't Joined Any Organization Yet",
|
1330
1160
|
description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
|
1331
1161
|
action: "Create organization",
|
1332
|
-
callback:
|
1333
|
-
}, null, 8, ["callback"])) : (
|
1334
|
-
(
|
1335
|
-
key:
|
1162
|
+
callback: l.a = () => l.$router.push("/app/organization/create/details")
|
1163
|
+
}, null, 8, ["callback"])) : (o(), r("div", hn, [
|
1164
|
+
(o(!0), r(O, null, L(v.all, (i) => (o(), r("div", {
|
1165
|
+
key: i._id,
|
1336
1166
|
class: "mn-small radius-medium pd-medium br-2px br-solid br-grey",
|
1337
|
-
onClick: (m) =>
|
1167
|
+
onClick: (m) => l.$router.push({ name: "Organization", params: { _id: i._id } })
|
1338
1168
|
}, [
|
1339
|
-
|
1169
|
+
i.profile.photo.length > 0 ? (o(), r("img", {
|
1340
1170
|
key: 0,
|
1341
|
-
src:
|
1171
|
+
src: i.profile.photo,
|
1342
1172
|
class: "radius-medium mn-small i-thin"
|
1343
|
-
}, null, 8,
|
1344
|
-
n("p",
|
1345
|
-
(
|
1346
|
-
onClick: re((m) =>
|
1173
|
+
}, null, 8, fn)) : (o(), r("svg", gn, yn)),
|
1174
|
+
n("p", wn, f(i.profile.name), 1),
|
1175
|
+
(o(), r("svg", {
|
1176
|
+
onClick: re((m) => l.$router.push({ name: "Organization Edit", params: { _id: i._id } }), ["stop"]),
|
1347
1177
|
class: "t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium",
|
1348
1178
|
width: "13",
|
1349
1179
|
height: "12",
|
1350
1180
|
viewBox: "0 0 13 12",
|
1351
1181
|
xmlns: "http://www.w3.org/2000/svg"
|
1352
|
-
},
|
1353
|
-
n("p",
|
1354
|
-
], 8,
|
1182
|
+
}, xn, 8, $n)),
|
1183
|
+
n("p", kn, f(i.profile.description.slice(0, 120) + "..."), 1)
|
1184
|
+
], 8, _n))), 128))
|
1355
1185
|
]))
|
1356
1186
|
])
|
1357
1187
|
]));
|
1358
1188
|
}
|
1359
|
-
},
|
1189
|
+
}, On = { class: "for-transition pd-thin" }, Ln = /* @__PURE__ */ n("h3", { class: "mn-small" }, "Type of group", -1), Sn = /* @__PURE__ */ n("p", { class: "mn-thin" }, "Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.", -1), Pn = /* @__PURE__ */ n("h3", { class: "mn-small" }, "Profile", -1), zn = { class: "mn-thin radius-small w-100 h-10r bg-grey flex-center flex-column flex" }, Mn = /* @__PURE__ */ n("h4", null, "Upload photo", -1), Dn = /* @__PURE__ */ n("h3", { class: "mn-small" }, "Socials", -1), An = /* @__PURE__ */ n("p", { class: "mn-thin" }, "Please provide only the username for social media profiles, without full links.", -1), Vn = {
|
1360
1190
|
__name: "OrganizationEdit",
|
1361
1191
|
async setup(e) {
|
1362
1192
|
let t, s;
|
1363
|
-
const
|
1364
|
-
|
1365
|
-
const
|
1193
|
+
const a = q(), d = H();
|
1194
|
+
Z.reset(), a.params._id && ([t, s] = Y(() => Z.read({ _id: a.params._id })), await t, s());
|
1195
|
+
const c = A(() => v.current);
|
1366
1196
|
async function p() {
|
1367
|
-
|
1197
|
+
a.params._id ? await Z.update(a.params._id, c.value) : await Z.create(v.current, S.user._id);
|
1368
1198
|
}
|
1369
|
-
function
|
1370
|
-
|
1199
|
+
function l() {
|
1200
|
+
d.replace({ name: "Organization", params: { _id: v.current._id } });
|
1371
1201
|
}
|
1372
|
-
return (
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1202
|
+
return (u, i) => (o(), r("div", On, [
|
1203
|
+
Ln,
|
1204
|
+
Sn,
|
1205
|
+
h(Ue, {
|
1206
|
+
modelValue: v.current.types,
|
1207
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => v.current.types = m),
|
1208
|
+
options: ["public", "exclusive", "hidden"],
|
1209
|
+
multiple: !1,
|
1210
|
+
taggable: !1,
|
1211
|
+
placeholder: "Type to search or add type of organization",
|
1212
|
+
class: "mn-semi bg-grey pd-medium radius-small"
|
1213
|
+
}, null, 8, ["modelValue"]),
|
1214
|
+
Pn,
|
1215
|
+
n("div", zn, [
|
1216
|
+
h(ze, {
|
1217
|
+
photo: v.current.profile.photo,
|
1218
|
+
"onUpdate:photo": i[1] || (i[1] = (m) => v.current.profile.photo = m),
|
1219
|
+
uploadPath: "organizations/" + v.current._id + "/avatars",
|
1379
1220
|
class: "h-4r w-4r aspect-1x1 o-hidden mn-thin radius-extra"
|
1380
1221
|
}, null, 8, ["photo", "uploadPath"]),
|
1381
|
-
|
1222
|
+
Mn
|
1382
1223
|
]),
|
1383
|
-
h(
|
1384
|
-
field:
|
1385
|
-
"onUpdate:field":
|
1224
|
+
h(D, {
|
1225
|
+
field: v.current.profile.name,
|
1226
|
+
"onUpdate:field": i[2] || (i[2] = (m) => v.current.profile.name = m),
|
1386
1227
|
placeholder: "Name of organization",
|
1387
1228
|
class: "mn-thin bg-grey pd-medium radius-small"
|
1388
1229
|
}, null, 8, ["field"]),
|
1389
|
-
h(
|
1390
|
-
field:
|
1391
|
-
"onUpdate:field":
|
1392
|
-
placeholder: "
|
1230
|
+
h(D, {
|
1231
|
+
field: v.current.profile.description,
|
1232
|
+
"onUpdate:field": i[3] || (i[3] = (m) => v.current.profile.description = m),
|
1233
|
+
placeholder: "Brief description of your group",
|
1393
1234
|
class: "mn-thin bg-grey pd-medium radius-small"
|
1394
1235
|
}, null, 8, ["field"]),
|
1395
|
-
h(Ue, {
|
1396
|
-
onTagsChanged: u[3] || (u[3] = (m) => x.current.profile.tags = m),
|
1397
|
-
tags: x.current.profile.tags
|
1398
|
-
}, null, 8, ["tags"]),
|
1399
|
-
Ca,
|
1400
|
-
$a,
|
1401
1236
|
h(Ee, {
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1237
|
+
onTagsChanged: i[4] || (i[4] = (m) => v.current.profile.tags = m),
|
1238
|
+
tags: v.current.profile.tags
|
1239
|
+
}, null, 8, ["tags"]),
|
1240
|
+
Dn,
|
1241
|
+
An,
|
1242
|
+
h(D, {
|
1243
|
+
field: v.current.socials.instagram,
|
1244
|
+
"onUpdate:field": i[5] || (i[5] = (m) => v.current.socials.instagram = m),
|
1245
|
+
label: "Instagram",
|
1246
|
+
placeholder: "",
|
1247
|
+
class: "mn-thin bg-grey pd-medium radius-small"
|
1248
|
+
}, null, 8, ["field"]),
|
1249
|
+
h(D, {
|
1250
|
+
field: v.current.socials.twitter,
|
1251
|
+
"onUpdate:field": i[6] || (i[6] = (m) => v.current.socials.twitter = m),
|
1252
|
+
label: "Twitter",
|
1253
|
+
placeholder: "",
|
1254
|
+
class: "mn-thin bg-grey pd-medium radius-small"
|
1255
|
+
}, null, 8, ["field"]),
|
1256
|
+
h(D, {
|
1257
|
+
field: v.current.socials.facebook,
|
1258
|
+
"onUpdate:field": i[7] || (i[7] = (m) => v.current.socials.facebook = m),
|
1259
|
+
label: "Facebook",
|
1260
|
+
placeholder: "",
|
1261
|
+
class: "mn-thin bg-grey pd-medium radius-small"
|
1262
|
+
}, null, 8, ["field"]),
|
1263
|
+
h(D, {
|
1264
|
+
field: v.current.socials.telegram,
|
1265
|
+
"onUpdate:field": i[8] || (i[8] = (m) => v.current.socials.telegram = m),
|
1266
|
+
label: "Telegram",
|
1267
|
+
placeholder: "",
|
1268
|
+
class: "mn-thin bg-grey pd-medium radius-small"
|
1269
|
+
}, null, 8, ["field"]),
|
1410
1270
|
h(ce, {
|
1411
1271
|
submit: p,
|
1412
|
-
callback:
|
1272
|
+
callback: l,
|
1413
1273
|
class: "mn-thin"
|
1414
1274
|
}, {
|
1415
|
-
default:
|
1275
|
+
default: k(() => [
|
1416
1276
|
N("Save")
|
1417
1277
|
]),
|
1418
1278
|
_: 1
|
1419
1279
|
})
|
1420
1280
|
]));
|
1421
1281
|
}
|
1422
|
-
},
|
1282
|
+
}, Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1423
1283
|
__proto__: null,
|
1424
|
-
default:
|
1284
|
+
default: Vn
|
1425
1285
|
}, Symbol.toStringTag, { value: "Module" }));
|
1426
|
-
const
|
1286
|
+
const In = { class: "for-transition bg-white radius-big w-100" }, Tn = /* @__PURE__ */ n("header", { class: "flex-v-center flex-nowrap flex pd-semi" }, [
|
1427
1287
|
/* @__PURE__ */ n("h2", { class: "mn-r-medium" }, "Weed dispensaries in Thailand")
|
1428
|
-
], -1),
|
1288
|
+
], -1), Bn = { class: "pd-semi" }, jn = {
|
1429
1289
|
key: 1,
|
1430
1290
|
class: "cols-3"
|
1431
|
-
},
|
1291
|
+
}, Un = ["onClick"], En = ["src"], Fn = {
|
1432
1292
|
key: 1,
|
1433
1293
|
class: "radius-medium mn-small i-thin",
|
1434
1294
|
width: "42",
|
@@ -1436,78 +1296,78 @@ const ka = { class: "for-transition bg-white radius-big w-100" }, La = /* @__PUR
|
|
1436
1296
|
viewBox: "0 0 42 42",
|
1437
1297
|
fill: "none",
|
1438
1298
|
xmlns: "http://www.w3.org/2000/svg"
|
1439
|
-
},
|
1299
|
+
}, qn = /* @__PURE__ */ n("circle", {
|
1440
1300
|
fill: "rgb(var(--main))",
|
1441
1301
|
cx: "21",
|
1442
1302
|
cy: "21",
|
1443
1303
|
r: "21"
|
1444
|
-
}, null, -1),
|
1304
|
+
}, null, -1), Hn = /* @__PURE__ */ n("path", {
|
1445
1305
|
fill: "#242424",
|
1446
1306
|
"fill-opacity": "0.1",
|
1447
1307
|
"fill-rule": "evenodd",
|
1448
1308
|
"clip-rule": "evenodd",
|
1449
1309
|
d: "M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"
|
1450
|
-
}, null, -1),
|
1451
|
-
|
1452
|
-
|
1453
|
-
],
|
1310
|
+
}, null, -1), Zn = [
|
1311
|
+
qn,
|
1312
|
+
Hn
|
1313
|
+
], Nn = { class: "h4 mn-r-semi mn-small" }, Rn = ["onClick"], Kn = /* @__PURE__ */ n("path", {
|
1454
1314
|
fill: "black",
|
1455
1315
|
d: "M6.41357 11.979C9.6831 11.979 12.3901 9.26611 12.3901 6.00244C12.3901 2.73291 9.67724 0.0258789 6.40771 0.0258789C3.14404 0.0258789 0.437008 2.73291 0.437008 6.00244C0.437008 9.26611 3.1499 11.979 6.41357 11.979ZM6.41357 10.9829C3.64795 10.9829 1.43896 8.76807 1.43896 6.00244C1.43896 3.23682 3.64209 1.02197 6.40771 1.02197C9.17334 1.02197 11.3882 3.23682 11.394 6.00244C11.3999 8.76807 9.1792 10.9829 6.41357 10.9829ZM8.72802 4.36182L9.1499 3.93408C9.3374 3.74072 9.35498 3.52979 9.1792 3.34814L9.04443 3.21924C8.86865 3.0376 8.65185 3.06104 8.46435 3.24854L8.03662 3.67041L8.72802 4.36182ZM4.53271 8.53955L8.37646 4.71338L7.68505 4.02197L3.84716 7.84814L3.51318 8.62158C3.45459 8.76807 3.59521 8.89697 3.72412 8.8501L4.53271 8.53955Z"
|
1456
|
-
}, null, -1),
|
1457
|
-
|
1458
|
-
],
|
1316
|
+
}, null, -1), Wn = [
|
1317
|
+
Kn
|
1318
|
+
], Yn = { class: "t-black p-small" }, Oi = {
|
1459
1319
|
__name: "Organizations",
|
1460
1320
|
async setup(e) {
|
1461
1321
|
let t, s;
|
1462
|
-
|
1463
|
-
const
|
1464
|
-
let
|
1465
|
-
const p = b(
|
1466
|
-
return
|
1467
|
-
|
1468
|
-
}), (
|
1469
|
-
|
1470
|
-
n("div",
|
1471
|
-
|
1322
|
+
S.user._id && ([t, s] = Y(() => Z.read({ owner: S.user._id })), await t, s());
|
1323
|
+
const a = H(), d = q();
|
1324
|
+
let c = d.query.tab ? d.query.tab : "details";
|
1325
|
+
const p = b(c);
|
1326
|
+
return d.query.tab = p.value, F(p, (l) => {
|
1327
|
+
a.push({ query: { ...d.query, tab: l } });
|
1328
|
+
}), (l, u) => (o(), r("div", In, [
|
1329
|
+
Tn,
|
1330
|
+
n("div", Bn, [
|
1331
|
+
v.all.length < 1 ? (o(), $(fe, {
|
1472
1332
|
key: 0,
|
1473
1333
|
title: "You Haven't Joined Any Organization Yet",
|
1474
1334
|
description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
|
1475
1335
|
action: "Create organization",
|
1476
|
-
callback:
|
1477
|
-
}, null, 8, ["callback"])) : (
|
1478
|
-
(
|
1479
|
-
key:
|
1336
|
+
callback: l.a = () => l.$router.push("/app/organization/create/details")
|
1337
|
+
}, null, 8, ["callback"])) : (o(), r("div", jn, [
|
1338
|
+
(o(!0), r(O, null, L(v.all, (i) => (o(), r("div", {
|
1339
|
+
key: i._id,
|
1480
1340
|
class: "mn-small radius-medium pd-medium br-2px br-solid br-grey",
|
1481
|
-
onClick: (m) =>
|
1341
|
+
onClick: (m) => l.$router.push({ name: "Organization", params: { _id: i._id } })
|
1482
1342
|
}, [
|
1483
|
-
|
1343
|
+
i.profile.photo.length > 0 ? (o(), r("img", {
|
1484
1344
|
key: 0,
|
1485
|
-
src:
|
1345
|
+
src: i.profile.photo,
|
1486
1346
|
class: "radius-medium mn-small i-thin"
|
1487
|
-
}, null, 8,
|
1488
|
-
n("p",
|
1489
|
-
(
|
1490
|
-
onClick: re((m) =>
|
1347
|
+
}, null, 8, En)) : (o(), r("svg", Fn, Zn)),
|
1348
|
+
n("p", Nn, f(i.profile.name), 1),
|
1349
|
+
(o(), r("svg", {
|
1350
|
+
onClick: re((m) => l.$router.push({ name: "Organization Edit", params: { _id: i._id } }), ["stop"]),
|
1491
1351
|
class: "t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium",
|
1492
1352
|
width: "13",
|
1493
1353
|
height: "12",
|
1494
1354
|
viewBox: "0 0 13 12",
|
1495
1355
|
xmlns: "http://www.w3.org/2000/svg"
|
1496
|
-
},
|
1497
|
-
n("p",
|
1498
|
-
], 8,
|
1356
|
+
}, Wn, 8, Rn)),
|
1357
|
+
n("p", Yn, f(i.profile.description.slice(0, 120) + "..."), 1)
|
1358
|
+
], 8, Un))), 128))
|
1499
1359
|
]))
|
1500
1360
|
])
|
1501
1361
|
]));
|
1502
1362
|
}
|
1503
1363
|
};
|
1504
|
-
const
|
1364
|
+
const Jn = {
|
1505
1365
|
key: 0,
|
1506
1366
|
class: "t-transp mn-r-small"
|
1507
|
-
},
|
1367
|
+
}, Qn = ["placeholder", "value"], Xn = {
|
1508
1368
|
key: 0,
|
1509
1369
|
class: "mn-t-thin invalid-feedback"
|
1510
|
-
},
|
1370
|
+
}, Gn = {
|
1511
1371
|
__name: "Address",
|
1512
1372
|
props: {
|
1513
1373
|
apiKey: {
|
@@ -1528,56 +1388,56 @@ const Ea = {
|
|
1528
1388
|
},
|
1529
1389
|
emits: ["update:address", "update:location", "update:country", "update:state", "update:city"],
|
1530
1390
|
setup(e, { emit: t }) {
|
1531
|
-
const s = e,
|
1532
|
-
let
|
1533
|
-
const
|
1534
|
-
|
1391
|
+
const s = e, a = b(null);
|
1392
|
+
let d;
|
1393
|
+
const c = () => {
|
1394
|
+
d = new google.maps.places.Autocomplete(a.value), d.addListener("place_changed", l);
|
1535
1395
|
}, p = () => {
|
1536
|
-
|
1537
|
-
},
|
1538
|
-
const
|
1539
|
-
if (!
|
1396
|
+
d || c();
|
1397
|
+
}, l = () => {
|
1398
|
+
const u = d.getPlace();
|
1399
|
+
if (!u.geometry || !u.address_components)
|
1540
1400
|
return;
|
1541
|
-
let
|
1542
|
-
for (let K = 0; K <
|
1543
|
-
console.log(
|
1544
|
-
let
|
1545
|
-
|
1401
|
+
let i = "", m = "", w = "";
|
1402
|
+
for (let K = 0; K < u.address_components.length; K++) {
|
1403
|
+
console.log(u.address_components);
|
1404
|
+
let M = u.address_components[K];
|
1405
|
+
M.types.includes("country") && (i = M.long_name), M.types.includes("administrative_area_level_1") && (m = M.long_name), M.types.includes("locality") && (w = M.long_name);
|
1546
1406
|
}
|
1547
|
-
const P =
|
1548
|
-
t("update:address", P), t("update:location",
|
1407
|
+
const P = u.formatted_address, T = { lat: u.geometry.location.lat(), lng: u.geometry.location.lng() };
|
1408
|
+
t("update:address", P), t("update:location", T), t("update:country", i), t("update:state", m), t("update:city", w);
|
1549
1409
|
};
|
1550
1410
|
return de(() => {
|
1551
|
-
s.address !==
|
1411
|
+
s.address !== a.value && (a.value = s.address);
|
1552
1412
|
}), pe(() => {
|
1553
|
-
|
1554
|
-
}), (
|
1555
|
-
class: te([
|
1413
|
+
c();
|
1414
|
+
}), (u, i) => (o(), r("div", {
|
1415
|
+
class: te([u.$attrs.class, "flex-nowrap flex"])
|
1556
1416
|
}, [
|
1557
|
-
e.label ? (
|
1417
|
+
e.label ? (o(), r("div", Jn, [
|
1558
1418
|
n("span", null, f(e.label), 1)
|
1559
1419
|
])) : g("", !0),
|
1560
1420
|
n("input", {
|
1561
1421
|
ref_key: "addressInput",
|
1562
|
-
ref:
|
1422
|
+
ref: a,
|
1563
1423
|
class: "w-100",
|
1564
1424
|
placeholder: e.placeholder,
|
1565
1425
|
value: e.address,
|
1566
1426
|
onInput: p
|
1567
|
-
}, null, 40,
|
1427
|
+
}, null, 40, Qn),
|
1568
1428
|
h(R, {
|
1569
1429
|
mode: "out-in",
|
1570
1430
|
name: "fade"
|
1571
1431
|
}, {
|
1572
|
-
default:
|
1573
|
-
|
1432
|
+
default: k(() => [
|
1433
|
+
u.validation ? (o(), r("div", Xn, " * " + f(u.validation.message), 1)) : g("", !0)
|
1574
1434
|
]),
|
1575
1435
|
_: 1
|
1576
1436
|
})
|
1577
1437
|
], 2));
|
1578
1438
|
}
|
1579
|
-
},
|
1580
|
-
const
|
1439
|
+
}, ea = /* @__PURE__ */ V(Gn, [["__scopeId", "data-v-faece1a6"]]);
|
1440
|
+
const ta = (e) => (me("data-v-1c7971e5"), e = e(), he(), e), sa = { class: "map-container" }, na = /* @__PURE__ */ ta(() => /* @__PURE__ */ n("svg", {
|
1581
1441
|
class: "i-medium",
|
1582
1442
|
width: "98",
|
1583
1443
|
height: "98",
|
@@ -1593,9 +1453,9 @@ const Na = (e) => (me("data-v-1c7971e5"), e = e(), he(), e), Ra = { class: "map-
|
|
1593
1453
|
d: "M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",
|
1594
1454
|
fill: "white"
|
1595
1455
|
})
|
1596
|
-
], -1)),
|
1597
|
-
|
1598
|
-
],
|
1456
|
+
], -1)), aa = [
|
1457
|
+
na
|
1458
|
+
], oa = {
|
1599
1459
|
__name: "LocationMarker",
|
1600
1460
|
props: {
|
1601
1461
|
location: {
|
@@ -1610,75 +1470,75 @@ const Na = (e) => (me("data-v-1c7971e5"), e = e(), he(), e), Ra = { class: "map-
|
|
1610
1470
|
},
|
1611
1471
|
emits: ["update:location", "update:address", "update:country", "update:state", "update:city"],
|
1612
1472
|
setup(e, { emit: t }) {
|
1613
|
-
const s = e,
|
1614
|
-
let
|
1473
|
+
const s = e, a = b(null);
|
1474
|
+
let d, c;
|
1615
1475
|
pe(() => {
|
1616
|
-
|
1476
|
+
d = new google.maps.Map(a.value, {
|
1617
1477
|
center: s.location,
|
1618
1478
|
zoom: 15,
|
1619
1479
|
mapTypeControl: !1,
|
1620
1480
|
fullscreenControl: !1
|
1621
|
-
}),
|
1481
|
+
}), c = new google.maps.Marker({
|
1622
1482
|
position: s.location,
|
1623
|
-
map:
|
1483
|
+
map: d,
|
1624
1484
|
draggable: !0
|
1625
|
-
}),
|
1626
|
-
const
|
1627
|
-
t("update:location",
|
1485
|
+
}), c.addListener("dragend", (u) => {
|
1486
|
+
const i = { lat: u.latLng.lat(), lng: u.latLng.lng() };
|
1487
|
+
t("update:location", i), p(i);
|
1628
1488
|
});
|
1629
1489
|
}), de(() => {
|
1630
|
-
s.location &&
|
1490
|
+
s.location && c && c.setPosition(new google.maps.LatLng(s.location.lat, s.location.lng));
|
1631
1491
|
}), de(() => {
|
1632
|
-
if (s.location &&
|
1633
|
-
const
|
1634
|
-
|
1492
|
+
if (s.location && d) {
|
1493
|
+
const u = new google.maps.LatLng(s.location.lat, s.location.lng);
|
1494
|
+
d.setCenter(u);
|
1635
1495
|
}
|
1636
1496
|
});
|
1637
|
-
function p(
|
1638
|
-
new google.maps.Geocoder().geocode({ location:
|
1497
|
+
function p(u) {
|
1498
|
+
new google.maps.Geocoder().geocode({ location: u }, (m, w) => {
|
1639
1499
|
if (w === "OK")
|
1640
1500
|
if (m[0]) {
|
1641
1501
|
t("update:address", m[0].formatted_address);
|
1642
|
-
let P = "",
|
1643
|
-
m[0].address_components.forEach((
|
1644
|
-
|
1645
|
-
}), t("update:country", P), t("update:state",
|
1502
|
+
let P = "", T = "", K = "";
|
1503
|
+
m[0].address_components.forEach((M) => {
|
1504
|
+
M.types.includes("country") && (P = M.long_name), M.types.includes("administrative_area_level_1") && (T = M.long_name), M.types.includes("locality") && (K = M.long_name);
|
1505
|
+
}), t("update:country", P), t("update:state", T), t("update:city", K);
|
1646
1506
|
} else
|
1647
1507
|
console.error("No results found");
|
1648
1508
|
else
|
1649
1509
|
console.error("Geocoder failed due to: " + w);
|
1650
1510
|
});
|
1651
1511
|
}
|
1652
|
-
async function
|
1653
|
-
navigator.geolocation ? navigator.geolocation.getCurrentPosition((
|
1654
|
-
const
|
1655
|
-
t("update:location",
|
1512
|
+
async function l() {
|
1513
|
+
navigator.geolocation ? navigator.geolocation.getCurrentPosition((u) => {
|
1514
|
+
const i = { lat: u.coords.latitude, lng: u.coords.longitude };
|
1515
|
+
t("update:location", i), p(i);
|
1656
1516
|
}, () => {
|
1657
1517
|
console.error("Error getting location");
|
1658
1518
|
}) : console.error("Geolocation is not supported by this browser.");
|
1659
1519
|
}
|
1660
|
-
return (
|
1520
|
+
return (u, i) => (o(), r("div", sa, [
|
1661
1521
|
n("div", {
|
1662
1522
|
ref_key: "mapContainer",
|
1663
|
-
ref:
|
1523
|
+
ref: a,
|
1664
1524
|
class: "w-100 h-100"
|
1665
1525
|
}, null, 512),
|
1666
1526
|
n("button", {
|
1667
1527
|
class: "pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",
|
1668
|
-
onClick:
|
1669
|
-
},
|
1528
|
+
onClick: l
|
1529
|
+
}, aa)
|
1670
1530
|
]));
|
1671
1531
|
}
|
1672
|
-
},
|
1673
|
-
var
|
1532
|
+
}, ia = /* @__PURE__ */ V(oa, [["__scopeId", "data-v-1c7971e5"]]);
|
1533
|
+
var la = Object.defineProperty, ra = Object.defineProperties, da = Object.getOwnPropertyDescriptors, xe = Object.getOwnPropertySymbols, ca = Object.prototype.hasOwnProperty, ua = Object.prototype.propertyIsEnumerable, ke = (e, t, s) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, X = (e, t) => {
|
1674
1534
|
for (var s in t || (t = {}))
|
1675
|
-
|
1535
|
+
ca.call(t, s) && ke(e, s, t[s]);
|
1676
1536
|
if (xe)
|
1677
1537
|
for (var s of xe(t))
|
1678
|
-
|
1538
|
+
ua.call(t, s) && ke(e, s, t[s]);
|
1679
1539
|
return e;
|
1680
|
-
},
|
1681
|
-
const
|
1540
|
+
}, Oe = (e, t) => ra(e, da(t));
|
1541
|
+
const pa = {
|
1682
1542
|
props: {
|
1683
1543
|
autoscroll: {
|
1684
1544
|
type: Boolean,
|
@@ -1698,11 +1558,11 @@ const so = {
|
|
1698
1558
|
var e;
|
1699
1559
|
const t = ((e = this.$refs.dropdownMenu) == null ? void 0 : e.children[this.typeAheadPointer]) || !1;
|
1700
1560
|
if (t) {
|
1701
|
-
const s = this.getDropdownViewport(), { top:
|
1702
|
-
if (
|
1561
|
+
const s = this.getDropdownViewport(), { top: a, bottom: d, height: c } = t.getBoundingClientRect();
|
1562
|
+
if (a < s.top)
|
1703
1563
|
return this.$refs.dropdownMenu.scrollTop = t.offsetTop;
|
1704
|
-
if (
|
1705
|
-
return this.$refs.dropdownMenu.scrollTop = t.offsetTop - (s.height -
|
1564
|
+
if (d > s.bottom)
|
1565
|
+
return this.$refs.dropdownMenu.scrollTop = t.offsetTop - (s.height - c);
|
1706
1566
|
}
|
1707
1567
|
},
|
1708
1568
|
getDropdownViewport() {
|
@@ -1713,7 +1573,7 @@ const so = {
|
|
1713
1573
|
};
|
1714
1574
|
}
|
1715
1575
|
}
|
1716
|
-
},
|
1576
|
+
}, ma = {
|
1717
1577
|
data() {
|
1718
1578
|
return {
|
1719
1579
|
typeAheadPointer: -1
|
@@ -1757,7 +1617,7 @@ const so = {
|
|
1757
1617
|
this.typeAheadPointer = this.selectedValue.length !== 0 ? this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length - 1]) : -1;
|
1758
1618
|
}
|
1759
1619
|
}
|
1760
|
-
},
|
1620
|
+
}, ha = {
|
1761
1621
|
props: {
|
1762
1622
|
loading: {
|
1763
1623
|
type: Boolean,
|
@@ -1784,46 +1644,46 @@ const so = {
|
|
1784
1644
|
}
|
1785
1645
|
}, be = (e, t) => {
|
1786
1646
|
const s = e.__vccOpts || e;
|
1787
|
-
for (const [
|
1788
|
-
s[
|
1647
|
+
for (const [a, d] of t)
|
1648
|
+
s[a] = d;
|
1789
1649
|
return s;
|
1790
|
-
},
|
1650
|
+
}, _a = {}, fa = {
|
1791
1651
|
xmlns: "http://www.w3.org/2000/svg",
|
1792
1652
|
width: "10",
|
1793
1653
|
height: "10"
|
1794
|
-
},
|
1795
|
-
|
1654
|
+
}, ga = /* @__PURE__ */ n("path", { d: "M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z" }, null, -1), ba = [
|
1655
|
+
ga
|
1796
1656
|
];
|
1797
|
-
function
|
1798
|
-
return
|
1657
|
+
function va(e, t) {
|
1658
|
+
return o(), r("svg", fa, ba);
|
1799
1659
|
}
|
1800
|
-
const
|
1660
|
+
const ya = /* @__PURE__ */ be(_a, [["render", va]]), wa = {}, $a = {
|
1801
1661
|
xmlns: "http://www.w3.org/2000/svg",
|
1802
1662
|
width: "14",
|
1803
1663
|
height: "10"
|
1804
|
-
},
|
1805
|
-
|
1664
|
+
}, Ca = /* @__PURE__ */ n("path", { d: "M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z" }, null, -1), xa = [
|
1665
|
+
Ca
|
1806
1666
|
];
|
1807
|
-
function
|
1808
|
-
return
|
1667
|
+
function ka(e, t) {
|
1668
|
+
return o(), r("svg", $a, xa);
|
1809
1669
|
}
|
1810
|
-
const
|
1811
|
-
Deselect:
|
1812
|
-
OpenIndicator:
|
1813
|
-
},
|
1670
|
+
const Oa = /* @__PURE__ */ be(wa, [["render", ka]]), Le = {
|
1671
|
+
Deselect: ya,
|
1672
|
+
OpenIndicator: Oa
|
1673
|
+
}, La = {
|
1814
1674
|
mounted(e, { instance: t }) {
|
1815
1675
|
if (t.appendToBody) {
|
1816
1676
|
const {
|
1817
1677
|
height: s,
|
1818
|
-
top:
|
1819
|
-
left:
|
1820
|
-
width:
|
1678
|
+
top: a,
|
1679
|
+
left: d,
|
1680
|
+
width: c
|
1821
1681
|
} = t.$refs.toggle.getBoundingClientRect();
|
1822
|
-
let p = window.scrollX || window.pageXOffset,
|
1682
|
+
let p = window.scrollX || window.pageXOffset, l = window.scrollY || window.pageYOffset;
|
1823
1683
|
e.unbindPosition = t.calculatePosition(e, t, {
|
1824
|
-
width:
|
1825
|
-
left: p +
|
1826
|
-
top:
|
1684
|
+
width: c + "px",
|
1685
|
+
left: p + d + "px",
|
1686
|
+
top: l + a + s + "px"
|
1827
1687
|
}), document.body.appendChild(e);
|
1828
1688
|
}
|
1829
1689
|
},
|
@@ -1831,20 +1691,20 @@ const go = /* @__PURE__ */ be(po, [["render", fo]]), Oe = {
|
|
1831
1691
|
t.appendToBody && (e.unbindPosition && typeof e.unbindPosition == "function" && e.unbindPosition(), e.parentNode && e.parentNode.removeChild(e));
|
1832
1692
|
}
|
1833
1693
|
};
|
1834
|
-
function
|
1694
|
+
function Sa(e) {
|
1835
1695
|
const t = {};
|
1836
1696
|
return Object.keys(e).sort().forEach((s) => {
|
1837
1697
|
t[s] = e[s];
|
1838
1698
|
}), JSON.stringify(t);
|
1839
1699
|
}
|
1840
|
-
let
|
1841
|
-
function
|
1842
|
-
return ++
|
1700
|
+
let Pa = 0;
|
1701
|
+
function za() {
|
1702
|
+
return ++Pa;
|
1843
1703
|
}
|
1844
|
-
const
|
1845
|
-
components:
|
1846
|
-
directives: { appendToBody:
|
1847
|
-
mixins: [
|
1704
|
+
const Ma = {
|
1705
|
+
components: X({}, Le),
|
1706
|
+
directives: { appendToBody: La },
|
1707
|
+
mixins: [pa, ma, ha],
|
1848
1708
|
compatConfig: {
|
1849
1709
|
MODE: 3
|
1850
1710
|
},
|
@@ -1942,7 +1802,7 @@ https://vue-select.org/api/props.html#getoptionlabel`) : e;
|
|
1942
1802
|
if (typeof e != "object")
|
1943
1803
|
return e;
|
1944
1804
|
try {
|
1945
|
-
return e.hasOwnProperty("id") ? e.id :
|
1805
|
+
return e.hasOwnProperty("id") ? e.id : Sa(e);
|
1946
1806
|
} catch (t) {
|
1947
1807
|
return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
|
1948
1808
|
https://vue-select.org/api/props.html#getoptionkey`, e, t);
|
@@ -1981,8 +1841,8 @@ https://vue-select.org/api/props.html#getoptionkey`, e, t);
|
|
1981
1841
|
type: Function,
|
1982
1842
|
default(e, t) {
|
1983
1843
|
return e.filter((s) => {
|
1984
|
-
let
|
1985
|
-
return typeof
|
1844
|
+
let a = this.getOptionLabel(s);
|
1845
|
+
return typeof a == "number" && (a = a.toString()), this.filterBy(s, a, t);
|
1986
1846
|
});
|
1987
1847
|
}
|
1988
1848
|
},
|
@@ -2035,8 +1895,8 @@ https://vue-select.org/api/props.html#getoptionkey`, e, t);
|
|
2035
1895
|
},
|
2036
1896
|
calculatePosition: {
|
2037
1897
|
type: Function,
|
2038
|
-
default(e, t, { width: s, top:
|
2039
|
-
e.style.top =
|
1898
|
+
default(e, t, { width: s, top: a, left: d }) {
|
1899
|
+
e.style.top = a, e.style.left = d, e.style.width = s;
|
2040
1900
|
}
|
2041
1901
|
},
|
2042
1902
|
dropdownShouldOpen: {
|
@@ -2047,7 +1907,7 @@ https://vue-select.org/api/props.html#getoptionkey`, e, t);
|
|
2047
1907
|
},
|
2048
1908
|
uid: {
|
2049
1909
|
type: [String, Number],
|
2050
|
-
default: () =>
|
1910
|
+
default: () => za()
|
2051
1911
|
}
|
2052
1912
|
},
|
2053
1913
|
data() {
|
@@ -2086,7 +1946,7 @@ https://vue-select.org/api/props.html#getoptionkey`, e, t);
|
|
2086
1946
|
};
|
2087
1947
|
return {
|
2088
1948
|
search: {
|
2089
|
-
attributes:
|
1949
|
+
attributes: X({
|
2090
1950
|
disabled: this.disabled,
|
2091
1951
|
placeholder: this.searchPlaceholder,
|
2092
1952
|
tabindex: this.tabindex,
|
@@ -2128,12 +1988,12 @@ https://vue-select.org/api/props.html#getoptionkey`, e, t);
|
|
2128
1988
|
},
|
2129
1989
|
listHeader: e,
|
2130
1990
|
listFooter: e,
|
2131
|
-
header:
|
2132
|
-
footer:
|
1991
|
+
header: Oe(X({}, e), { deselect: this.deselect }),
|
1992
|
+
footer: Oe(X({}, e), { deselect: this.deselect })
|
2133
1993
|
};
|
2134
1994
|
},
|
2135
1995
|
childComponents() {
|
2136
|
-
return
|
1996
|
+
return X(X({}, Le), this.components);
|
2137
1997
|
},
|
2138
1998
|
stateClasses() {
|
2139
1999
|
return {
|
@@ -2221,7 +2081,7 @@ https://vue-select.org/api/props.html#getoptionkey`, e, t);
|
|
2221
2081
|
...this.deselectButtons || [],
|
2222
2082
|
this.$refs.clearButton
|
2223
2083
|
];
|
2224
|
-
if (this.searchEl === void 0 || s.filter(Boolean).some((
|
2084
|
+
if (this.searchEl === void 0 || s.filter(Boolean).some((a) => a.contains(e.target) || a === e.target)) {
|
2225
2085
|
e.preventDefault();
|
2226
2086
|
return;
|
2227
2087
|
}
|
@@ -2237,8 +2097,8 @@ https://vue-select.org/api/props.html#getoptionkey`, e, t);
|
|
2237
2097
|
return this.getOptionKey(e) === this.getOptionKey(t);
|
2238
2098
|
},
|
2239
2099
|
findOptionFromReducedValue(e) {
|
2240
|
-
const t = (
|
2241
|
-
return s.length === 1 ? s[0] : s.find((
|
2100
|
+
const t = (a) => JSON.stringify(this.reduce(a)) === JSON.stringify(e), s = [...this.options, ...this.pushedTags].filter(t);
|
2101
|
+
return s.length === 1 ? s[0] : s.find((a) => this.optionComparator(a, this.$data._value)) || e;
|
2242
2102
|
},
|
2243
2103
|
closeSearchOptions() {
|
2244
2104
|
this.open = !1, this.$emit("search:blur");
|
@@ -2286,162 +2146,162 @@ https://vue-select.org/api/props.html#getoptionkey`, e, t);
|
|
2286
2146
|
this.mousedown = !1;
|
2287
2147
|
},
|
2288
2148
|
onSearchKeyDown(e) {
|
2289
|
-
const t = (
|
2290
|
-
8: (
|
2291
|
-
9: (
|
2292
|
-
27: (
|
2293
|
-
38: (
|
2294
|
-
40: (
|
2149
|
+
const t = (d) => (d.preventDefault(), !this.isComposing && this.typeAheadSelect()), s = {
|
2150
|
+
8: (d) => this.maybeDeleteValue(),
|
2151
|
+
9: (d) => this.onTab(),
|
2152
|
+
27: (d) => this.onEscape(),
|
2153
|
+
38: (d) => (d.preventDefault(), this.typeAheadUp()),
|
2154
|
+
40: (d) => (d.preventDefault(), this.typeAheadDown())
|
2295
2155
|
};
|
2296
|
-
this.selectOnKeyCodes.forEach((
|
2297
|
-
const
|
2298
|
-
if (typeof
|
2299
|
-
return
|
2156
|
+
this.selectOnKeyCodes.forEach((d) => s[d] = t);
|
2157
|
+
const a = this.mapKeydown(s, this);
|
2158
|
+
if (typeof a[e.keyCode] == "function")
|
2159
|
+
return a[e.keyCode](e);
|
2300
2160
|
}
|
2301
2161
|
}
|
2302
|
-
},
|
2162
|
+
}, Da = ["dir"], Aa = ["id", "aria-expanded", "aria-owns"], Va = {
|
2303
2163
|
ref: "selectedOptions",
|
2304
2164
|
class: "vs__selected-options"
|
2305
|
-
},
|
2165
|
+
}, Ia = ["disabled", "title", "aria-label", "onClick"], Ta = {
|
2306
2166
|
ref: "actions",
|
2307
2167
|
class: "vs__actions"
|
2308
|
-
},
|
2168
|
+
}, Ba = ["disabled"], ja = { class: "vs__spinner" }, Ua = ["id"], Ea = ["id", "aria-selected", "onMouseover", "onClick"], Fa = {
|
2309
2169
|
key: 0,
|
2310
2170
|
class: "vs__no-options"
|
2311
|
-
},
|
2312
|
-
function
|
2171
|
+
}, qa = /* @__PURE__ */ N(" Sorry, no matching options. "), Ha = ["id"];
|
2172
|
+
function Za(e, t, s, a, d, c) {
|
2313
2173
|
const p = Ie("append-to-body");
|
2314
|
-
return
|
2174
|
+
return o(), r("div", {
|
2315
2175
|
dir: s.dir,
|
2316
|
-
class: te(["v-select",
|
2176
|
+
class: te(["v-select", c.stateClasses])
|
2317
2177
|
}, [
|
2318
|
-
|
2178
|
+
z(e.$slots, "header", I(B(c.scope.header))),
|
2319
2179
|
n("div", {
|
2320
2180
|
id: `vs${s.uid}__combobox`,
|
2321
2181
|
ref: "toggle",
|
2322
2182
|
class: "vs__dropdown-toggle",
|
2323
2183
|
role: "combobox",
|
2324
|
-
"aria-expanded":
|
2184
|
+
"aria-expanded": c.dropdownOpen.toString(),
|
2325
2185
|
"aria-owns": `vs${s.uid}__listbox`,
|
2326
2186
|
"aria-label": "Search for option",
|
2327
|
-
onMousedown: t[1] || (t[1] = (
|
2187
|
+
onMousedown: t[1] || (t[1] = (l) => c.toggleDropdown(l))
|
2328
2188
|
}, [
|
2329
|
-
n("div",
|
2330
|
-
(
|
2331
|
-
option:
|
2332
|
-
deselect:
|
2189
|
+
n("div", Va, [
|
2190
|
+
(o(!0), r(O, null, L(c.selectedValue, (l, u) => z(e.$slots, "selected-option-container", {
|
2191
|
+
option: c.normalizeOptionForSlot(l),
|
2192
|
+
deselect: c.deselect,
|
2333
2193
|
multiple: s.multiple,
|
2334
2194
|
disabled: s.disabled
|
2335
2195
|
}, () => [
|
2336
|
-
(
|
2337
|
-
key: s.getOptionKey(
|
2196
|
+
(o(), r("span", {
|
2197
|
+
key: s.getOptionKey(l),
|
2338
2198
|
class: "vs__selected"
|
2339
2199
|
}, [
|
2340
|
-
|
2341
|
-
N(f(s.getOptionLabel(
|
2200
|
+
z(e.$slots, "selected-option", I(B(c.normalizeOptionForSlot(l))), () => [
|
2201
|
+
N(f(s.getOptionLabel(l)), 1)
|
2342
2202
|
]),
|
2343
|
-
s.multiple ? (
|
2203
|
+
s.multiple ? (o(), r("button", {
|
2344
2204
|
key: 0,
|
2345
2205
|
ref_for: !0,
|
2346
|
-
ref: (
|
2206
|
+
ref: (i) => d.deselectButtons[u] = i,
|
2347
2207
|
disabled: s.disabled,
|
2348
2208
|
type: "button",
|
2349
2209
|
class: "vs__deselect",
|
2350
|
-
title: `Deselect ${s.getOptionLabel(
|
2351
|
-
"aria-label": `Deselect ${s.getOptionLabel(
|
2352
|
-
onClick: (
|
2210
|
+
title: `Deselect ${s.getOptionLabel(l)}`,
|
2211
|
+
"aria-label": `Deselect ${s.getOptionLabel(l)}`,
|
2212
|
+
onClick: (i) => c.deselect(l)
|
2353
2213
|
}, [
|
2354
|
-
(
|
2355
|
-
], 8,
|
2214
|
+
(o(), $(le(c.childComponents.Deselect)))
|
2215
|
+
], 8, Ia)) : g("", !0)
|
2356
2216
|
]))
|
2357
2217
|
])), 256)),
|
2358
|
-
|
2359
|
-
n("input", ve({ class: "vs__search" },
|
2218
|
+
z(e.$slots, "search", I(B(c.scope.search)), () => [
|
2219
|
+
n("input", ve({ class: "vs__search" }, c.scope.search.attributes, Te(c.scope.search.events)), null, 16)
|
2360
2220
|
])
|
2361
2221
|
], 512),
|
2362
|
-
n("div",
|
2363
|
-
|
2222
|
+
n("div", Ta, [
|
2223
|
+
ne(n("button", {
|
2364
2224
|
ref: "clearButton",
|
2365
2225
|
disabled: s.disabled,
|
2366
2226
|
type: "button",
|
2367
2227
|
class: "vs__clear",
|
2368
2228
|
title: "Clear Selected",
|
2369
2229
|
"aria-label": "Clear Selected",
|
2370
|
-
onClick: t[0] || (t[0] = (...
|
2230
|
+
onClick: t[0] || (t[0] = (...l) => c.clearSelection && c.clearSelection(...l))
|
2371
2231
|
}, [
|
2372
|
-
(
|
2373
|
-
], 8,
|
2374
|
-
[ye,
|
2232
|
+
(o(), $(le(c.childComponents.Deselect)))
|
2233
|
+
], 8, Ba), [
|
2234
|
+
[ye, c.showClearButton]
|
2375
2235
|
]),
|
2376
|
-
|
2377
|
-
s.noDrop ? g("", !0) : (
|
2236
|
+
z(e.$slots, "open-indicator", I(B(c.scope.openIndicator)), () => [
|
2237
|
+
s.noDrop ? g("", !0) : (o(), $(le(c.childComponents.OpenIndicator), I(ve({ key: 0 }, c.scope.openIndicator.attributes)), null, 16))
|
2378
2238
|
]),
|
2379
|
-
|
2380
|
-
|
2239
|
+
z(e.$slots, "spinner", I(B(c.scope.spinner)), () => [
|
2240
|
+
ne(n("div", ja, "Loading...", 512), [
|
2381
2241
|
[ye, e.mutableLoading]
|
2382
2242
|
])
|
2383
2243
|
])
|
2384
2244
|
], 512)
|
2385
|
-
], 40,
|
2245
|
+
], 40, Aa),
|
2386
2246
|
h(R, { name: s.transition }, {
|
2387
|
-
default:
|
2388
|
-
|
2247
|
+
default: k(() => [
|
2248
|
+
c.dropdownOpen ? ne((o(), r("ul", {
|
2389
2249
|
id: `vs${s.uid}__listbox`,
|
2390
2250
|
ref: "dropdownMenu",
|
2391
2251
|
key: `vs${s.uid}__listbox`,
|
2392
2252
|
class: "vs__dropdown-menu",
|
2393
2253
|
role: "listbox",
|
2394
2254
|
tabindex: "-1",
|
2395
|
-
onMousedown: t[2] || (t[2] = re((...
|
2396
|
-
onMouseup: t[3] || (t[3] = (...
|
2255
|
+
onMousedown: t[2] || (t[2] = re((...l) => c.onMousedown && c.onMousedown(...l), ["prevent"])),
|
2256
|
+
onMouseup: t[3] || (t[3] = (...l) => c.onMouseUp && c.onMouseUp(...l))
|
2397
2257
|
}, [
|
2398
|
-
|
2399
|
-
(
|
2400
|
-
id: `vs${s.uid}__option-${
|
2401
|
-
key: s.getOptionKey(
|
2258
|
+
z(e.$slots, "list-header", I(B(c.scope.listHeader))),
|
2259
|
+
(o(!0), r(O, null, L(c.filteredOptions, (l, u) => (o(), r("li", {
|
2260
|
+
id: `vs${s.uid}__option-${u}`,
|
2261
|
+
key: s.getOptionKey(l),
|
2402
2262
|
role: "option",
|
2403
2263
|
class: te(["vs__dropdown-option", {
|
2404
|
-
"vs__dropdown-option--deselect":
|
2405
|
-
"vs__dropdown-option--selected":
|
2406
|
-
"vs__dropdown-option--highlight":
|
2407
|
-
"vs__dropdown-option--disabled": !s.selectable(
|
2264
|
+
"vs__dropdown-option--deselect": c.isOptionDeselectable(l) && u === e.typeAheadPointer,
|
2265
|
+
"vs__dropdown-option--selected": c.isOptionSelected(l),
|
2266
|
+
"vs__dropdown-option--highlight": u === e.typeAheadPointer,
|
2267
|
+
"vs__dropdown-option--disabled": !s.selectable(l)
|
2408
2268
|
}]),
|
2409
|
-
"aria-selected":
|
2410
|
-
onMouseover: (
|
2411
|
-
onClick: re((
|
2269
|
+
"aria-selected": u === e.typeAheadPointer ? !0 : null,
|
2270
|
+
onMouseover: (i) => s.selectable(l) ? e.typeAheadPointer = u : null,
|
2271
|
+
onClick: re((i) => s.selectable(l) ? c.select(l) : null, ["prevent", "stop"])
|
2412
2272
|
}, [
|
2413
|
-
|
2414
|
-
N(f(s.getOptionLabel(
|
2273
|
+
z(e.$slots, "option", I(B(c.normalizeOptionForSlot(l))), () => [
|
2274
|
+
N(f(s.getOptionLabel(l)), 1)
|
2415
2275
|
])
|
2416
|
-
], 42,
|
2417
|
-
|
2418
|
-
|
2419
|
-
|
2276
|
+
], 42, Ea))), 128)),
|
2277
|
+
c.filteredOptions.length === 0 ? (o(), r("li", Fa, [
|
2278
|
+
z(e.$slots, "no-options", I(B(c.scope.noOptions)), () => [
|
2279
|
+
qa
|
2420
2280
|
])
|
2421
2281
|
])) : g("", !0),
|
2422
|
-
|
2423
|
-
], 40,
|
2282
|
+
z(e.$slots, "list-footer", I(B(c.scope.listFooter)))
|
2283
|
+
], 40, Ua)), [
|
2424
2284
|
[p]
|
2425
|
-
]) : (
|
2285
|
+
]) : (o(), r("ul", {
|
2426
2286
|
key: 1,
|
2427
2287
|
id: `vs${s.uid}__listbox`,
|
2428
2288
|
role: "listbox",
|
2429
2289
|
style: { display: "none", visibility: "hidden" }
|
2430
|
-
}, null, 8,
|
2290
|
+
}, null, 8, Ha))
|
2431
2291
|
]),
|
2432
2292
|
_: 3
|
2433
2293
|
}, 8, ["name"]),
|
2434
|
-
|
2435
|
-
], 10,
|
2294
|
+
z(e.$slots, "footer", I(B(c.scope.footer)))
|
2295
|
+
], 10, Da);
|
2436
2296
|
}
|
2437
|
-
const
|
2438
|
-
const
|
2297
|
+
const Ve = /* @__PURE__ */ be(Ma, [["render", Za]]);
|
2298
|
+
const Na = { class: "w-100" }, Ra = { class: "flex" }, Ka = { class: "mn-regular" }, Wa = { class: "flex-column flex-wrap block" }, Ya = {
|
2439
2299
|
key: 0,
|
2440
2300
|
class: "w-100"
|
2441
|
-
},
|
2301
|
+
}, Ja = { class: "w-100 flex-center flex-nowrap flex" }, Qa = { class: "mn-r-regular w-100" }, Xa = ["onClick"], Ga = {
|
2442
2302
|
key: 0,
|
2443
2303
|
class: "mn-t-small mn-small w-100"
|
2444
|
-
},
|
2304
|
+
}, Li = {
|
2445
2305
|
__name: "EditArray",
|
2446
2306
|
props: {
|
2447
2307
|
name: Object,
|
@@ -2449,46 +2309,46 @@ const Bo = { class: "w-100" }, To = { class: "flex" }, jo = { class: "mn-regular
|
|
2449
2309
|
},
|
2450
2310
|
emits: ["add", "remove"],
|
2451
2311
|
setup(e, { emit: t }) {
|
2452
|
-
|
2453
|
-
let s =
|
2454
|
-
|
2455
|
-
const
|
2456
|
-
|
2457
|
-
if (
|
2312
|
+
H(), q();
|
2313
|
+
let s = oe([]);
|
2314
|
+
Be(s);
|
2315
|
+
const a = b(null), d = b(null), c = b(null);
|
2316
|
+
A(() => {
|
2317
|
+
if (a.value === null || c.value === null || c.value === "")
|
2458
2318
|
return !0;
|
2459
|
-
if (
|
2460
|
-
return
|
2319
|
+
if (a.value.modifications.length > 0)
|
2320
|
+
return d.value === null;
|
2461
2321
|
});
|
2462
|
-
function p(
|
2463
|
-
store.commit("leftovers/deleteItemFromLeftover",
|
2322
|
+
function p(l) {
|
2323
|
+
store.commit("leftovers/deleteItemFromLeftover", l);
|
2464
2324
|
}
|
2465
|
-
return (
|
2466
|
-
n("div",
|
2467
|
-
n("h3",
|
2325
|
+
return (l, u) => (o(), r("div", Na, [
|
2326
|
+
n("div", Ra, [
|
2327
|
+
n("h3", Ka, f(e.name), 1)
|
2468
2328
|
]),
|
2469
|
-
n("ul",
|
2470
|
-
e.items.length < 1 ? (
|
2471
|
-
(
|
2472
|
-
key:
|
2329
|
+
n("ul", Wa, [
|
2330
|
+
e.items.length < 1 ? (o(), r("span", Ya, "Вы еще не добавили позиции")) : g("", !0),
|
2331
|
+
(o(!0), r(O, null, L(e.items, (i, m) => (o(), r("li", {
|
2332
|
+
key: i._id,
|
2473
2333
|
class: "w-100"
|
2474
2334
|
}, [
|
2475
|
-
n("div",
|
2476
|
-
n("span",
|
2335
|
+
n("div", Ja, [
|
2336
|
+
n("span", Qa, f(i.name), 1),
|
2477
2337
|
n("a", {
|
2478
2338
|
class: "w-20 button",
|
2479
|
-
onClick: (w) => p(
|
2480
|
-
}, "Удалить", 8,
|
2339
|
+
onClick: (w) => p(i)
|
2340
|
+
}, "Удалить", 8, Xa)
|
2481
2341
|
]),
|
2482
|
-
m != e.items.length - 1 ? (
|
2342
|
+
m != e.items.length - 1 ? (o(), r("hr", Ga)) : g("", !0)
|
2483
2343
|
]))), 128))
|
2484
2344
|
])
|
2485
2345
|
]));
|
2486
2346
|
}
|
2487
2347
|
};
|
2488
|
-
const
|
2348
|
+
const eo = { class: "br-grey radius-small mn-small" }, to = {
|
2489
2349
|
key: 1,
|
2490
2350
|
class: "pd-small br-grey br-1px br-solid"
|
2491
|
-
},
|
2351
|
+
}, so = ["disabled"], no = {
|
2492
2352
|
__name: "DepartmentMemberModify",
|
2493
2353
|
props: {
|
2494
2354
|
isPopupOpen: Boolean,
|
@@ -2499,49 +2359,49 @@ const No = { class: "br-grey radius-small mn-small" }, Ro = {
|
|
2499
2359
|
},
|
2500
2360
|
emits: ["callback", "remove"],
|
2501
2361
|
setup(e, { emit: t }) {
|
2502
|
-
const s = e,
|
2362
|
+
const s = e, a = b({
|
2503
2363
|
subdepartment: null
|
2504
2364
|
});
|
2505
|
-
s.department !== null && (
|
2506
|
-
function
|
2507
|
-
return
|
2365
|
+
s.department !== null && (a.value = s.departments[s.department]);
|
2366
|
+
function d(u, i, m) {
|
2367
|
+
return u.filter((w) => !(i.some((P) => P._id === w._id) || m._id === w._id));
|
2508
2368
|
}
|
2509
|
-
const
|
2369
|
+
const c = A(() => d(s.alldepartments, s.departments, s.maindepartment));
|
2510
2370
|
async function p() {
|
2511
|
-
s.departments.push(
|
2371
|
+
s.departments.push(a.value.subdepartment), t("callback");
|
2512
2372
|
}
|
2513
|
-
async function
|
2373
|
+
async function l() {
|
2514
2374
|
s.departments.splice(s.department, 1), t("callback");
|
2515
2375
|
}
|
2516
|
-
return (
|
2517
|
-
n("div",
|
2518
|
-
s.department === null ? (
|
2376
|
+
return (u, i) => (o(), r("div", null, [
|
2377
|
+
n("div", eo, [
|
2378
|
+
s.department === null ? (o(), $(x(Ve), {
|
2519
2379
|
key: 0,
|
2520
|
-
modelValue:
|
2521
|
-
"onUpdate:modelValue":
|
2522
|
-
options:
|
2380
|
+
modelValue: a.value.subdepartment,
|
2381
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => a.value.subdepartment = m),
|
2382
|
+
options: x(c),
|
2523
2383
|
"get-option-label": (m) => m.name,
|
2524
2384
|
class: "w-100 mn-small"
|
2525
|
-
}, null, 8, ["modelValue", "options", "get-option-label"])) : (
|
2385
|
+
}, null, 8, ["modelValue", "options", "get-option-label"])) : (o(), r("div", to, f(a.value.name ? a.value.name : "Безымянный"), 1))
|
2526
2386
|
]),
|
2527
|
-
s.department === null ? (
|
2387
|
+
s.department === null ? (o(), r("button", {
|
2528
2388
|
key: 0,
|
2529
|
-
disabled: !
|
2389
|
+
disabled: !a.value.subdepartment,
|
2530
2390
|
onClick: p,
|
2531
2391
|
class: "w-100 button bg-second t-white"
|
2532
|
-
}, " Добавить отдел ", 8,
|
2533
|
-
s.department !== null ? (
|
2392
|
+
}, " Добавить отдел ", 8, so)) : g("", !0),
|
2393
|
+
s.department !== null ? (o(), r("button", {
|
2534
2394
|
key: 1,
|
2535
|
-
onClick:
|
2395
|
+
onClick: l,
|
2536
2396
|
class: "w-100 button bg-fourth t-white"
|
2537
2397
|
}, " Удалить отдел ")) : g("", !0)
|
2538
2398
|
]));
|
2539
2399
|
}
|
2540
|
-
},
|
2541
|
-
const
|
2400
|
+
}, Si = /* @__PURE__ */ V(no, [["__scopeId", "data-v-21f393e1"]]);
|
2401
|
+
const ao = { class: "br-grey radius-small mn-small" }, oo = {
|
2542
2402
|
key: 1,
|
2543
2403
|
class: "pd-small br-grey br-1px br-solid"
|
2544
|
-
},
|
2404
|
+
}, io = ["disabled"], lo = {
|
2545
2405
|
__name: "DepartmentSubDepartmentModify",
|
2546
2406
|
props: {
|
2547
2407
|
isPopupOpen: Boolean,
|
@@ -2552,91 +2412,91 @@ const Wo = { class: "br-grey radius-small mn-small" }, Yo = {
|
|
2552
2412
|
},
|
2553
2413
|
emits: ["callback", "remove"],
|
2554
2414
|
setup(e, { emit: t }) {
|
2555
|
-
const s = e,
|
2415
|
+
const s = e, a = b({
|
2556
2416
|
subdepartment: null
|
2557
2417
|
});
|
2558
|
-
s.department !== null && (
|
2559
|
-
function
|
2560
|
-
return
|
2418
|
+
s.department !== null && (a.value = s.departments[s.department]);
|
2419
|
+
function d(u, i, m) {
|
2420
|
+
return u.filter((w) => !(i.some((P) => P._id === w._id) || m._id === w._id));
|
2561
2421
|
}
|
2562
|
-
const
|
2422
|
+
const c = A(() => d(s.alldepartments, s.departments, s.maindepartment));
|
2563
2423
|
async function p() {
|
2564
|
-
s.departments.push(
|
2424
|
+
s.departments.push(a.value.subdepartment), t("callback");
|
2565
2425
|
}
|
2566
|
-
async function
|
2426
|
+
async function l() {
|
2567
2427
|
s.departments.splice(s.department, 1), t("callback");
|
2568
2428
|
}
|
2569
|
-
return (
|
2570
|
-
n("div",
|
2571
|
-
s.department === null ? (
|
2429
|
+
return (u, i) => (o(), r("div", null, [
|
2430
|
+
n("div", ao, [
|
2431
|
+
s.department === null ? (o(), $(x(Ve), {
|
2572
2432
|
key: 0,
|
2573
|
-
modelValue:
|
2574
|
-
"onUpdate:modelValue":
|
2575
|
-
options:
|
2433
|
+
modelValue: a.value.subdepartment,
|
2434
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => a.value.subdepartment = m),
|
2435
|
+
options: x(c),
|
2576
2436
|
"get-option-label": (m) => m.name,
|
2577
2437
|
class: "w-100 mn-small"
|
2578
|
-
}, null, 8, ["modelValue", "options", "get-option-label"])) : (
|
2438
|
+
}, null, 8, ["modelValue", "options", "get-option-label"])) : (o(), r("div", oo, f(a.value.name ? a.value.name : "Безымянный"), 1))
|
2579
2439
|
]),
|
2580
|
-
s.department === null ? (
|
2440
|
+
s.department === null ? (o(), r("button", {
|
2581
2441
|
key: 0,
|
2582
|
-
disabled: !
|
2442
|
+
disabled: !a.value.subdepartment,
|
2583
2443
|
onClick: p,
|
2584
2444
|
class: "w-100 button bg-second t-white"
|
2585
|
-
}, " Добавить отдел ", 8,
|
2586
|
-
s.department !== null ? (
|
2445
|
+
}, " Добавить отдел ", 8, io)) : g("", !0),
|
2446
|
+
s.department !== null ? (o(), r("button", {
|
2587
2447
|
key: 1,
|
2588
|
-
onClick:
|
2448
|
+
onClick: l,
|
2589
2449
|
class: "w-100 button bg-fourth t-white"
|
2590
2450
|
}, " Удалить отдел ")) : g("", !0)
|
2591
2451
|
]));
|
2592
2452
|
}
|
2593
|
-
},
|
2594
|
-
const se = (e) => (me("data-v-195322bd"), e = e(), he(), e),
|
2453
|
+
}, Pi = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-d3c6f191"]]);
|
2454
|
+
const se = (e) => (me("data-v-195322bd"), e = e(), he(), e), ro = { class: "for-transition w-100" }, co = { class: "pd-b-zero pd-t-zero pd-thin" }, uo = { class: "pd-thin" }, po = { class: "flex-nowrap flex bg-grey pd-medium radius-big" }, mo = {
|
2595
2455
|
key: 0,
|
2596
2456
|
class: "mn-r-auto"
|
2597
|
-
},
|
2457
|
+
}, ho = {
|
2598
2458
|
key: 1,
|
2599
2459
|
class: "mn-r-auto"
|
2600
|
-
},
|
2460
|
+
}, _o = { class: "flex-nowrap flex pd-thin" }, fo = { class: "pd-b-zero pd-t-zero pd-thin cols-2 gap-thin" }, go = { class: "flex-stretch flex-column flex" }, bo = { class: "mn-thin bg-grey pd-medium o-hidden radius-big" }, vo = /* @__PURE__ */ se(() => /* @__PURE__ */ n("h3", { class: "mn-semi" }, "Profile", -1)), yo = { class: "radius-small flex-nowrap flex" }, wo = { class: "w-100 flex-child-grow-1 flex-child" }, $o = { class: "bg-grey pd-medium o-hidden radius-big" }, Co = /* @__PURE__ */ se(() => /* @__PURE__ */ n("h3", { class: "mn-semi" }, "Details", -1)), xo = /* @__PURE__ */ se(() => /* @__PURE__ */ n("p", { class: "p-medium mn-small" }, "Please the available delivery options:", -1)), ko = { class: "mn-medium flex-nowrap flex" }, Oo = /* @__PURE__ */ se(() => /* @__PURE__ */ n("p", { class: "p-medium mn-small" }, "Please select the available payment methods:", -1)), Lo = { class: "flex-nowrap flex" }, So = { class: "bg-grey pd-medium o-hidden radius-big" }, Po = /* @__PURE__ */ se(() => /* @__PURE__ */ n("h3", { class: "mn-semi" }, "Location", -1)), zo = /* @__PURE__ */ se(() => /* @__PURE__ */ n("p", { class: "mn-small p-medium" }, "Or choose on map:", -1)), Mo = { class: "flex-nowrap flex pd-thin" }, Do = {
|
2601
2461
|
__name: "DepartmentEdit",
|
2602
2462
|
setup(e) {
|
2603
|
-
const t =
|
2463
|
+
const t = H(), s = q();
|
2604
2464
|
b("details"), b(!1);
|
2605
|
-
async function
|
2606
|
-
s.params.department && await ge.read(s.params.department), b(
|
2465
|
+
async function a() {
|
2466
|
+
s.params.department && await ge.read(s.params.department), b(He.memberships), await W.read(s.params._id), s.params.department && await W.readOne(s.params.department);
|
2607
2467
|
}
|
2608
|
-
|
2609
|
-
async function
|
2610
|
-
s.params.department && await
|
2468
|
+
a(), b(_.department.members), b(!1), b(null), b(!1), b(null);
|
2469
|
+
async function d() {
|
2470
|
+
s.params.department && await W.update(
|
2611
2471
|
s.params._id,
|
2612
2472
|
_.department
|
2613
|
-
), s.params.department || await
|
2473
|
+
), s.params.department || await W.create(
|
2614
2474
|
s.params._id,
|
2615
2475
|
_.department
|
2616
2476
|
);
|
2617
2477
|
}
|
2618
|
-
function
|
2478
|
+
function c() {
|
2619
2479
|
t.replace({ name: "Department", params: { _id: s.params._id, department: _.department._id } });
|
2620
2480
|
}
|
2621
2481
|
async function p() {
|
2622
|
-
await
|
2482
|
+
await W.delete(
|
2623
2483
|
s.params._id,
|
2624
2484
|
_.department
|
2625
2485
|
);
|
2626
2486
|
}
|
2627
|
-
return (
|
2628
|
-
n("div",
|
2629
|
-
h(
|
2487
|
+
return (l, u) => (o(), r("div", ro, [
|
2488
|
+
n("div", co, [
|
2489
|
+
h(it, { class: "pd-medium bg-grey radius-big" })
|
2630
2490
|
]),
|
2631
|
-
n("div",
|
2632
|
-
n("header",
|
2633
|
-
|
2634
|
-
n("section",
|
2491
|
+
n("div", uo, [
|
2492
|
+
n("header", po, [
|
2493
|
+
x(s).params.department ? (o(), r("h1", mo, "Edit Spot")) : (o(), r("h1", ho, "Create Spot")),
|
2494
|
+
n("section", _o, [
|
2635
2495
|
h(ce, {
|
2636
|
-
submit:
|
2637
|
-
callback:
|
2496
|
+
submit: d,
|
2497
|
+
callback: c
|
2638
2498
|
}, {
|
2639
|
-
default:
|
2499
|
+
default: k(() => [
|
2640
2500
|
N("Save Spot")
|
2641
2501
|
]),
|
2642
2502
|
_: 1
|
@@ -2644,56 +2504,56 @@ const se = (e) => (me("data-v-195322bd"), e = e(), he(), e), Xo = { class: "for-
|
|
2644
2504
|
])
|
2645
2505
|
])
|
2646
2506
|
]),
|
2647
|
-
n("div",
|
2648
|
-
n("div",
|
2649
|
-
n("div",
|
2650
|
-
|
2651
|
-
n("div",
|
2652
|
-
h(
|
2507
|
+
n("div", fo, [
|
2508
|
+
n("div", go, [
|
2509
|
+
n("div", bo, [
|
2510
|
+
vo,
|
2511
|
+
n("div", yo, [
|
2512
|
+
h(ze, {
|
2653
2513
|
photo: _.department.profile.photo,
|
2654
|
-
"onUpdate:photo":
|
2514
|
+
"onUpdate:photo": u[0] || (u[0] = (i) => _.department.profile.photo = i),
|
2655
2515
|
uploadPath: "organizations/" + _.department.name + "/avatars",
|
2656
2516
|
class: "w-8r aspect-1x1 o-hidden mn-r-small radius-extra"
|
2657
2517
|
}, null, 8, ["photo", "uploadPath"]),
|
2658
|
-
n("div",
|
2659
|
-
h(
|
2518
|
+
n("div", wo, [
|
2519
|
+
h(D, {
|
2660
2520
|
field: _.department.profile.name,
|
2661
|
-
"onUpdate:field":
|
2521
|
+
"onUpdate:field": u[1] || (u[1] = (i) => _.department.profile.name = i),
|
2662
2522
|
label: "Name",
|
2663
2523
|
placeholder: "Spot Name",
|
2664
2524
|
class: "mn-small bg-white radius-small pd-medium",
|
2665
|
-
validation:
|
2525
|
+
validation: l.organizationName
|
2666
2526
|
}, null, 8, ["field", "validation"]),
|
2667
|
-
h(
|
2527
|
+
h(D, {
|
2668
2528
|
field: _.department.profile.description,
|
2669
|
-
"onUpdate:field":
|
2529
|
+
"onUpdate:field": u[2] || (u[2] = (i) => _.department.profile.description = i),
|
2670
2530
|
label: "Description",
|
2671
2531
|
placeholder: "Spot description (max 120 symbols)",
|
2672
2532
|
class: "bg-white radius-small pd-medium",
|
2673
|
-
validation:
|
2533
|
+
validation: l.organizationName
|
2674
2534
|
}, null, 8, ["field", "validation"])
|
2675
2535
|
])
|
2676
2536
|
])
|
2677
2537
|
]),
|
2678
|
-
n("div",
|
2679
|
-
|
2680
|
-
|
2681
|
-
n("div",
|
2682
|
-
h(
|
2538
|
+
n("div", $o, [
|
2539
|
+
Co,
|
2540
|
+
xo,
|
2541
|
+
n("div", ko, [
|
2542
|
+
h(J, {
|
2683
2543
|
label: "Pickup",
|
2684
2544
|
name: "Delivery",
|
2685
2545
|
value: "pickup",
|
2686
2546
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
2687
2547
|
radio: _.department.delivery
|
2688
2548
|
}, null, 8, ["radio"]),
|
2689
|
-
h(
|
2549
|
+
h(J, {
|
2690
2550
|
label: "Delivery",
|
2691
2551
|
name: "Delivery",
|
2692
2552
|
value: "courier",
|
2693
2553
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
2694
2554
|
radio: _.department.delivery
|
2695
2555
|
}, null, 8, ["radio"]),
|
2696
|
-
h(
|
2556
|
+
h(J, {
|
2697
2557
|
label: "Post",
|
2698
2558
|
name: "Delivery",
|
2699
2559
|
value: "post",
|
@@ -2701,23 +2561,23 @@ const se = (e) => (me("data-v-195322bd"), e = e(), he(), e), Xo = { class: "for-
|
|
2701
2561
|
radio: _.department.delivery
|
2702
2562
|
}, null, 8, ["radio"])
|
2703
2563
|
]),
|
2704
|
-
|
2705
|
-
n("div",
|
2706
|
-
h(
|
2564
|
+
Oo,
|
2565
|
+
n("div", Lo, [
|
2566
|
+
h(J, {
|
2707
2567
|
label: "Cash",
|
2708
2568
|
name: "Payment",
|
2709
2569
|
value: "cash",
|
2710
2570
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
2711
2571
|
radio: _.department.payment
|
2712
2572
|
}, null, 8, ["radio"]),
|
2713
|
-
h(
|
2573
|
+
h(J, {
|
2714
2574
|
label: "Bank Transfer",
|
2715
2575
|
name: "Payment",
|
2716
2576
|
value: "bank",
|
2717
2577
|
class: "w-100 mn-r-small bg-white radius-small pd-small",
|
2718
2578
|
radio: _.department.payment
|
2719
2579
|
}, null, 8, ["radio"]),
|
2720
|
-
h(
|
2580
|
+
h(J, {
|
2721
2581
|
label: "Crypto",
|
2722
2582
|
name: "Payment",
|
2723
2583
|
value: "crypto",
|
@@ -2727,44 +2587,44 @@ const se = (e) => (me("data-v-195322bd"), e = e(), he(), e), Xo = { class: "for-
|
|
2727
2587
|
])
|
2728
2588
|
])
|
2729
2589
|
]),
|
2730
|
-
n("div",
|
2731
|
-
|
2732
|
-
h(
|
2590
|
+
n("div", So, [
|
2591
|
+
Po,
|
2592
|
+
h(ea, {
|
2733
2593
|
apiKey: "AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",
|
2734
2594
|
address: _.department.address,
|
2735
2595
|
location: _.department.location,
|
2736
2596
|
label: "Address",
|
2737
2597
|
placeholder: "Enter delivery address",
|
2738
2598
|
class: "bg-white radius-small pd-small mn-small",
|
2739
|
-
"onUpdate:location":
|
2740
|
-
_.department.location =
|
2599
|
+
"onUpdate:location": u[3] || (u[3] = (i) => {
|
2600
|
+
_.department.location = i;
|
2741
2601
|
}),
|
2742
|
-
"onUpdate:address":
|
2743
|
-
_.department.address =
|
2602
|
+
"onUpdate:address": u[4] || (u[4] = (i) => {
|
2603
|
+
_.department.address = i;
|
2744
2604
|
})
|
2745
2605
|
}, null, 8, ["address", "location"]),
|
2746
|
-
|
2747
|
-
h(
|
2606
|
+
zo,
|
2607
|
+
h(ia, {
|
2748
2608
|
address: _.department.address,
|
2749
2609
|
location: _.department.location,
|
2750
2610
|
apiKey: "AIzaSyDDR6WgYB7XMt7yTDDzQNEdF_gTdUiq8dI",
|
2751
2611
|
class: "radius-big o-hidden",
|
2752
|
-
"onUpdate:location":
|
2753
|
-
_.department.location =
|
2612
|
+
"onUpdate:location": u[5] || (u[5] = (i) => {
|
2613
|
+
_.department.location = i;
|
2754
2614
|
}),
|
2755
|
-
"onUpdate:address":
|
2756
|
-
_.department.address =
|
2615
|
+
"onUpdate:address": u[6] || (u[6] = (i) => {
|
2616
|
+
_.department.address = i;
|
2757
2617
|
})
|
2758
2618
|
}, null, 8, ["address", "location"])
|
2759
2619
|
])
|
2760
2620
|
]),
|
2761
|
-
n("section",
|
2621
|
+
n("section", Mo, [
|
2762
2622
|
h(ce, {
|
2763
2623
|
submit: p,
|
2764
|
-
callback:
|
2624
|
+
callback: l.redirectToDash,
|
2765
2625
|
class: "bg-grey"
|
2766
2626
|
}, {
|
2767
|
-
default:
|
2627
|
+
default: k(() => [
|
2768
2628
|
N("Delete Spot")
|
2769
2629
|
]),
|
2770
2630
|
_: 1
|
@@ -2772,10 +2632,10 @@ const se = (e) => (me("data-v-195322bd"), e = e(), he(), e), Xo = { class: "for-
|
|
2772
2632
|
])
|
2773
2633
|
]));
|
2774
2634
|
}
|
2775
|
-
},
|
2635
|
+
}, Ao = /* @__PURE__ */ V(Do, [["__scopeId", "data-v-195322bd"]]), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2776
2636
|
__proto__: null,
|
2777
|
-
default:
|
2778
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
2637
|
+
default: Ao
|
2638
|
+
}, Symbol.toStringTag, { value: "Module" })), Vo = { class: "unit" }, Io = { class: "unit-details" }, To = { key: 0 }, Bo = { class: "subunits" }, zi = {
|
2779
2639
|
__name: "Unit",
|
2780
2640
|
props: {
|
2781
2641
|
unit: {
|
@@ -2789,42 +2649,42 @@ const se = (e) => (me("data-v-195322bd"), e = e(), he(), e), Xo = { class: "for-
|
|
2789
2649
|
},
|
2790
2650
|
setup(e) {
|
2791
2651
|
const t = e, s = b({ ...t.unit });
|
2792
|
-
|
2652
|
+
F(t.unit, () => {
|
2793
2653
|
s.value = { ...t.unit };
|
2794
2654
|
});
|
2795
|
-
async function
|
2655
|
+
async function a() {
|
2796
2656
|
emit("unit-updated", s.value);
|
2797
2657
|
}
|
2798
|
-
async function
|
2658
|
+
async function d() {
|
2799
2659
|
emit("subunit-added", t.unit._id);
|
2800
2660
|
}
|
2801
|
-
return (
|
2802
|
-
const
|
2803
|
-
return
|
2804
|
-
n("div",
|
2661
|
+
return (c, p) => {
|
2662
|
+
const l = ue("unit-component");
|
2663
|
+
return o(), r("div", Vo, [
|
2664
|
+
n("div", Io, [
|
2805
2665
|
n("h3", null, f(e.unit.name), 1),
|
2806
2666
|
n("p", null, f(e.unit.description), 1),
|
2807
|
-
e.editMode ? (
|
2808
|
-
|
2809
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
2667
|
+
e.editMode ? (o(), r("div", To, [
|
2668
|
+
ne(n("input", {
|
2669
|
+
"onUpdate:modelValue": p[0] || (p[0] = (u) => s.value.name = u),
|
2810
2670
|
placeholder: "Название отдела"
|
2811
2671
|
}, null, 512), [
|
2812
2672
|
[we, s.value.name]
|
2813
2673
|
]),
|
2814
|
-
|
2815
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
2674
|
+
ne(n("input", {
|
2675
|
+
"onUpdate:modelValue": p[1] || (p[1] = (u) => s.value.description = u),
|
2816
2676
|
placeholder: "Описание отдела"
|
2817
2677
|
}, null, 512), [
|
2818
2678
|
[we, s.value.description]
|
2819
2679
|
]),
|
2820
|
-
n("button", { onClick:
|
2821
|
-
n("button", { onClick:
|
2680
|
+
n("button", { onClick: a }, "Сохранить"),
|
2681
|
+
n("button", { onClick: d }, "Добавить подотдел")
|
2822
2682
|
])) : g("", !0)
|
2823
2683
|
]),
|
2824
|
-
n("div",
|
2825
|
-
(
|
2826
|
-
key:
|
2827
|
-
unit:
|
2684
|
+
n("div", Bo, [
|
2685
|
+
(o(!0), r(O, null, L(e.unit.subunits, (u, i) => (o(), $(l, {
|
2686
|
+
key: i,
|
2687
|
+
unit: u,
|
2828
2688
|
"edit-mode": e.editMode
|
2829
2689
|
}, null, 8, ["unit", "edit-mode"]))), 128))
|
2830
2690
|
])
|
@@ -2832,7 +2692,7 @@ const se = (e) => (me("data-v-195322bd"), e = e(), he(), e), Xo = { class: "for-
|
|
2832
2692
|
};
|
2833
2693
|
}
|
2834
2694
|
};
|
2835
|
-
const
|
2695
|
+
const jo = { class: "br-grey radius-small mn-small" }, Uo = {
|
2836
2696
|
__name: "Places",
|
2837
2697
|
props: {
|
2838
2698
|
isPopupOpen: Boolean,
|
@@ -2841,28 +2701,28 @@ const Si = { class: "br-grey radius-small mn-small" }, zi = {
|
|
2841
2701
|
},
|
2842
2702
|
emits: ["callback"],
|
2843
2703
|
setup(e, { emit: t }) {
|
2844
|
-
const s = e,
|
2704
|
+
const s = e, a = b({
|
2845
2705
|
logo: "",
|
2846
2706
|
name: "",
|
2847
2707
|
address: ""
|
2848
2708
|
});
|
2849
|
-
s.place !== null && (
|
2850
|
-
const
|
2851
|
-
async function
|
2709
|
+
s.place !== null && (a.value = s.places[s.place]);
|
2710
|
+
const d = b(null);
|
2711
|
+
async function c() {
|
2852
2712
|
try {
|
2853
|
-
await
|
2854
|
-
|
2855
|
-
|
2856
|
-
|
2713
|
+
await Ye(
|
2714
|
+
d,
|
2715
|
+
Je,
|
2716
|
+
a.value.name,
|
2857
2717
|
"Некорректное название"
|
2858
2718
|
);
|
2859
2719
|
} catch {
|
2860
2720
|
throw new Error();
|
2861
2721
|
}
|
2862
|
-
s.place !== null ? (s.places[s.place] =
|
2722
|
+
s.place !== null ? (s.places[s.place] = a.value, t("callback")) : (s.places.push(a.value), t("callback"));
|
2863
2723
|
}
|
2864
|
-
return (p,
|
2865
|
-
n("div",
|
2724
|
+
return (p, l) => (o(), r("div", null, [
|
2725
|
+
n("div", jo, [
|
2866
2726
|
h(Me, {
|
2867
2727
|
options: [
|
2868
2728
|
{ name: "Кафе", value: "cafe" },
|
@@ -2873,45 +2733,45 @@ const Si = { class: "br-grey radius-small mn-small" }, zi = {
|
|
2873
2733
|
{ name: "Шаверма", value: "shaverma" },
|
2874
2734
|
{ name: "Кофейня", value: "coffee" }
|
2875
2735
|
],
|
2876
|
-
prop:
|
2736
|
+
prop: a.value,
|
2877
2737
|
content: "type",
|
2878
2738
|
label: "Тип",
|
2879
2739
|
placeholder: "Тип заведения",
|
2880
2740
|
size: "small"
|
2881
2741
|
}, null, 8, ["prop"]),
|
2882
|
-
h(
|
2883
|
-
field:
|
2884
|
-
"onUpdate:field":
|
2742
|
+
h(D, {
|
2743
|
+
field: a.value.name,
|
2744
|
+
"onUpdate:field": l[0] || (l[0] = (u) => a.value.name = u),
|
2885
2745
|
label: "Название",
|
2886
|
-
validation:
|
2746
|
+
validation: d.value,
|
2887
2747
|
placeholder: "Введите название места"
|
2888
2748
|
}, null, 8, ["field", "validation"]),
|
2889
|
-
h(
|
2890
|
-
field:
|
2891
|
-
"onUpdate:field":
|
2749
|
+
h(D, {
|
2750
|
+
field: a.value.address,
|
2751
|
+
"onUpdate:field": l[1] || (l[1] = (u) => a.value.address = u),
|
2892
2752
|
label: "Адрес",
|
2893
|
-
validation:
|
2753
|
+
validation: d.value,
|
2894
2754
|
placeholder: "Введите адрес места"
|
2895
2755
|
}, null, 8, ["field", "validation"]),
|
2896
|
-
h(
|
2897
|
-
field:
|
2898
|
-
"onUpdate:field":
|
2756
|
+
h(D, {
|
2757
|
+
field: a.value.phone,
|
2758
|
+
"onUpdate:field": l[2] || (l[2] = (u) => a.value.phone = u),
|
2899
2759
|
label: "Телефон",
|
2900
|
-
validation:
|
2760
|
+
validation: d.value,
|
2901
2761
|
placeholder: "Введите телефон места"
|
2902
2762
|
}, null, 8, ["field", "validation"])
|
2903
2763
|
]),
|
2904
2764
|
n("button", {
|
2905
|
-
onClick:
|
2765
|
+
onClick: c,
|
2906
2766
|
class: "w-100 button bg-second t-white"
|
2907
2767
|
}, f(s.place !== null ? "Редактировать заведение" : "Добавить заведение"), 1)
|
2908
2768
|
]));
|
2909
2769
|
}
|
2910
|
-
},
|
2911
|
-
const
|
2770
|
+
}, Mi = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-de5143c5"]]);
|
2771
|
+
const Eo = (e) => (me("data-v-20739d92"), e = e(), he(), e), Fo = { class: "documents" }, qo = /* @__PURE__ */ Eo(() => /* @__PURE__ */ n("h3", { class: "mn-small" }, "Список документов", -1)), Ho = { class: "mn-big cols-4" }, Zo = ["onClick"], No = { class: "mn-small" }, Ro = { class: "t-semi t-transp radius-small" }, Ko = {
|
2912
2772
|
__name: "Documents",
|
2913
2773
|
setup(e) {
|
2914
|
-
|
2774
|
+
H(), q();
|
2915
2775
|
let t = [{
|
2916
2776
|
name: "Паспорт",
|
2917
2777
|
status: "Не добавлен",
|
@@ -2947,38 +2807,38 @@ const Pi = (e) => (me("data-v-20739d92"), e = e(), he(), e), Mi = { class: "docu
|
|
2947
2807
|
name: "Дата регистрации"
|
2948
2808
|
}]
|
2949
2809
|
}];
|
2950
|
-
const s = b(!1),
|
2951
|
-
|
2952
|
-
},
|
2810
|
+
const s = b(!1), a = b(null), d = (l) => {
|
2811
|
+
a.value = l, s.value = !0;
|
2812
|
+
}, c = () => {
|
2953
2813
|
s.value = !1;
|
2954
2814
|
}, p = () => {
|
2955
|
-
|
2815
|
+
c();
|
2956
2816
|
};
|
2957
2817
|
return de(() => {
|
2958
|
-
}), (
|
2959
|
-
const
|
2960
|
-
return
|
2961
|
-
|
2962
|
-
n("div",
|
2963
|
-
(
|
2818
|
+
}), (l, u) => {
|
2819
|
+
const i = ue("Popup");
|
2820
|
+
return o(), r("div", Fo, [
|
2821
|
+
qo,
|
2822
|
+
n("div", Ho, [
|
2823
|
+
(o(!0), r(O, null, L(x(t), (m, w) => (o(), r("div", {
|
2964
2824
|
key: w,
|
2965
|
-
onClick: (P) =>
|
2825
|
+
onClick: (P) => d(w),
|
2966
2826
|
class: "h-100 pd-medium bg-white radius-small"
|
2967
2827
|
}, [
|
2968
|
-
n("h3",
|
2969
|
-
n("p",
|
2970
|
-
], 8,
|
2828
|
+
n("h3", No, f(m.name), 1),
|
2829
|
+
n("p", Ro, f(m.status), 1)
|
2830
|
+
], 8, Zo))), 128))
|
2971
2831
|
]),
|
2972
|
-
h(
|
2832
|
+
h(i, {
|
2973
2833
|
title: "Добавить документ",
|
2974
|
-
onClosePopup:
|
2834
|
+
onClosePopup: c,
|
2975
2835
|
isPopupOpen: s.value
|
2976
2836
|
}, {
|
2977
|
-
default:
|
2978
|
-
(
|
2837
|
+
default: k(() => [
|
2838
|
+
(o(!0), r(O, null, L(x(t)[a.value].inputs, (m) => (o(), r("div", {
|
2979
2839
|
key: m.name
|
2980
2840
|
}, [
|
2981
|
-
h(
|
2841
|
+
h(D, {
|
2982
2842
|
field: m.value,
|
2983
2843
|
"onUpdate:field": (w) => m.value = w,
|
2984
2844
|
label: m.name,
|
@@ -2997,11 +2857,11 @@ const Pi = (e) => (me("data-v-20739d92"), e = e(), he(), e), Mi = { class: "docu
|
|
2997
2857
|
]);
|
2998
2858
|
};
|
2999
2859
|
}
|
3000
|
-
},
|
3001
|
-
const
|
2860
|
+
}, Di = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-20739d92"]]);
|
2861
|
+
const Wo = { class: "for-transition bg-white radius-big w-100" }, Yo = { class: "" }, Jo = {
|
3002
2862
|
key: 1,
|
3003
2863
|
class: "cols-1"
|
3004
|
-
},
|
2864
|
+
}, Ai = {
|
3005
2865
|
__name: "Organizations",
|
3006
2866
|
props: {
|
3007
2867
|
owner: {
|
@@ -3019,46 +2879,46 @@ const ji = { class: "for-transition bg-white radius-big w-100" }, Ui = { class:
|
|
3019
2879
|
},
|
3020
2880
|
async setup(e) {
|
3021
2881
|
let t, s;
|
3022
|
-
const
|
3023
|
-
|
3024
|
-
const
|
3025
|
-
let
|
3026
|
-
const
|
3027
|
-
return p.query.tab =
|
3028
|
-
|
3029
|
-
}), (
|
3030
|
-
n("div",
|
3031
|
-
|
2882
|
+
const a = e, d = b(null);
|
2883
|
+
d.value = ([t, s] = Y(() => Z.read({ owner: a.owner, user: a.user, onlyuser: a.onlyuser })), t = await t, s(), t);
|
2884
|
+
const c = H(), p = q();
|
2885
|
+
let l = p.query.tab ? p.query.tab : "details";
|
2886
|
+
const u = b(l);
|
2887
|
+
return p.query.tab = u.value, F(u, (i) => {
|
2888
|
+
c.push({ query: { ...p.query, tab: i } });
|
2889
|
+
}), (i, m) => (o(), r("div", Wo, [
|
2890
|
+
n("div", Yo, [
|
2891
|
+
d.value < 1 ? (o(), $(fe, {
|
3032
2892
|
key: 0,
|
3033
2893
|
title: "You Haven't Joined Any Organization Yet",
|
3034
2894
|
description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
|
3035
2895
|
action: "Create organization",
|
3036
|
-
callback:
|
3037
|
-
}, null, 8, ["callback"])) : (
|
3038
|
-
(
|
2896
|
+
callback: i.a = () => i.$router.push("/app/organization/create/details")
|
2897
|
+
}, null, 8, ["callback"])) : (o(), r("div", Jo, [
|
2898
|
+
(o(!0), r(O, null, L(d.value, (w) => (o(), $(Qe, {
|
3039
2899
|
key: w._id,
|
3040
2900
|
organization: w,
|
3041
|
-
user:
|
3042
|
-
onUpdateMembership:
|
3043
|
-
class: te(["w-100", { "mn-r-small":
|
2901
|
+
user: S.user,
|
2902
|
+
onUpdateMembership: i.handleMembershipUpdate,
|
2903
|
+
class: te(["w-100", { "mn-r-small": i.index !== d.value.length - 1 }])
|
3044
2904
|
}, null, 8, ["organization", "user", "onUpdateMembership", "class"]))), 128))
|
3045
2905
|
]))
|
3046
2906
|
])
|
3047
2907
|
]));
|
3048
2908
|
}
|
3049
|
-
},
|
3050
|
-
function
|
2909
|
+
}, Qo = {};
|
2910
|
+
function Xo(e, t) {
|
3051
2911
|
const s = ue("router-view");
|
3052
|
-
return
|
3053
|
-
default:
|
3054
|
-
(
|
2912
|
+
return o(), $(s, null, {
|
2913
|
+
default: k(({ Component: a, route: d }) => [
|
2914
|
+
(o(), $(le(a)))
|
3055
2915
|
]),
|
3056
2916
|
_: 1
|
3057
2917
|
});
|
3058
2918
|
}
|
3059
|
-
const
|
2919
|
+
const Go = /* @__PURE__ */ V(Qo, [["render", Xo]]), Vi = [{
|
3060
2920
|
path: "organizations",
|
3061
|
-
component:
|
2921
|
+
component: Go,
|
3062
2922
|
meta: {
|
3063
2923
|
title: {
|
3064
2924
|
en: "Organizations",
|
@@ -3074,7 +2934,7 @@ const Zi = /* @__PURE__ */ S(Fi, [["render", Hi]]), $l = [{
|
|
3074
2934
|
ru: "Организация"
|
3075
2935
|
}
|
3076
2936
|
},
|
3077
|
-
component: () => Promise.resolve().then(() =>
|
2937
|
+
component: () => Promise.resolve().then(() => Rs)
|
3078
2938
|
}, {
|
3079
2939
|
path: "create",
|
3080
2940
|
name: "Create Organization",
|
@@ -3082,7 +2942,7 @@ const Zi = /* @__PURE__ */ S(Fi, [["render", Hi]]), $l = [{
|
|
3082
2942
|
en: "Create Organization",
|
3083
2943
|
ru: "Создать Организацию"
|
3084
2944
|
},
|
3085
|
-
component: () => Promise.resolve().then(() =>
|
2945
|
+
component: () => Promise.resolve().then(() => Ce)
|
3086
2946
|
}, {
|
3087
2947
|
path: ":_id/edit",
|
3088
2948
|
name: "Organization Edit",
|
@@ -3092,7 +2952,7 @@ const Zi = /* @__PURE__ */ S(Fi, [["render", Hi]]), $l = [{
|
|
3092
2952
|
ru: "Редактировать Организацию"
|
3093
2953
|
}
|
3094
2954
|
},
|
3095
|
-
component: () => Promise.resolve().then(() =>
|
2955
|
+
component: () => Promise.resolve().then(() => Ce)
|
3096
2956
|
}, {
|
3097
2957
|
path: ":_id/departments/create",
|
3098
2958
|
name: "Department Creation",
|
@@ -3106,7 +2966,7 @@ const Zi = /* @__PURE__ */ S(Fi, [["render", Hi]]), $l = [{
|
|
3106
2966
|
meta: {
|
3107
2967
|
title: "Отдел"
|
3108
2968
|
},
|
3109
|
-
component: () => Promise.resolve().then(() =>
|
2969
|
+
component: () => Promise.resolve().then(() => dn)
|
3110
2970
|
}, {
|
3111
2971
|
path: ":_id/departments/:department/edit",
|
3112
2972
|
name: "Department Edit",
|
@@ -3125,55 +2985,54 @@ const Zi = /* @__PURE__ */ S(Fi, [["render", Hi]]), $l = [{
|
|
3125
2985
|
},
|
3126
2986
|
component: () => import(
|
3127
2987
|
/* webpackChunkName: 'Product' */
|
3128
|
-
"./Product-
|
2988
|
+
"./Product-58a83c67.mjs"
|
3129
2989
|
)
|
3130
2990
|
}, {
|
3131
2991
|
path: ":_id/products/:product/edit",
|
3132
2992
|
name: "ProductEdit",
|
3133
2993
|
component: () => import(
|
3134
2994
|
/* webpackChunkName: 'ProductPageEdit' */
|
3135
|
-
"./ProductEdit-
|
2995
|
+
"./ProductEdit-56752bbe.mjs"
|
3136
2996
|
)
|
3137
2997
|
}, {
|
3138
2998
|
path: ":_id/products/add",
|
3139
2999
|
name: "AddProduct",
|
3140
3000
|
component: () => import(
|
3141
3001
|
/* webpackChunkName: 'ProductPageEdit' */
|
3142
|
-
"./ProductEdit-
|
3002
|
+
"./ProductEdit-56752bbe.mjs"
|
3143
3003
|
)
|
3144
3004
|
}]
|
3145
3005
|
}];
|
3146
3006
|
export {
|
3147
|
-
|
3148
|
-
|
3149
|
-
|
3150
|
-
|
3151
|
-
|
3152
|
-
|
3153
|
-
|
3154
|
-
|
3155
|
-
|
3156
|
-
|
3157
|
-
|
3158
|
-
|
3159
|
-
|
3160
|
-
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3165
|
-
bl as m,
|
3007
|
+
Vi as A,
|
3008
|
+
Ao as D,
|
3009
|
+
Mi as P,
|
3010
|
+
Ae as U,
|
3011
|
+
it as _,
|
3012
|
+
wi as a,
|
3013
|
+
yi as b,
|
3014
|
+
U as c,
|
3015
|
+
Ns as d,
|
3016
|
+
rn as e,
|
3017
|
+
ki as f,
|
3018
|
+
Vn as g,
|
3019
|
+
Oi as h,
|
3020
|
+
Li as i,
|
3021
|
+
zi as j,
|
3022
|
+
De as k,
|
3023
|
+
Si as l,
|
3024
|
+
Pi as m,
|
3166
3025
|
fe as n,
|
3167
|
-
|
3168
|
-
|
3169
|
-
|
3170
|
-
|
3171
|
-
|
3172
|
-
|
3173
|
-
|
3174
|
-
|
3175
|
-
|
3176
|
-
|
3177
|
-
|
3178
|
-
|
3026
|
+
bi as o,
|
3027
|
+
vi as p,
|
3028
|
+
Os as q,
|
3029
|
+
$i as r,
|
3030
|
+
y as s,
|
3031
|
+
Vt as t,
|
3032
|
+
xi as u,
|
3033
|
+
Di as v,
|
3034
|
+
Fs as w,
|
3035
|
+
fs as x,
|
3036
|
+
Ai as y,
|
3037
|
+
Ci as z
|
3179
3038
|
};
|