@ozdao/prometheus-framework 0.0.89 → 0.0.91
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-afba007a.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-0677d446.js → Chips-2a0d9bfe.js} +1 -1
- package/dist/Chips-f0b7ce36.mjs +110 -0
- package/dist/{Feed-ca8e0e22.mjs → Feed-8bbb7077.mjs} +100 -95
- package/dist/{Feed-76b2997e.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-8df23653.mjs → IconEdit-f0ad8b9a.mjs} +1 -1
- package/dist/{Image-30f04604.js → Image-0f2814f0.js} +2 -2
- package/dist/{Image-6ec294f3.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-bdf043ba.mjs → Popup-31c7ffc6.mjs} +1 -1
- package/dist/{Product-b233e2a3.js → Product-54854cd1.js} +2 -2
- package/dist/{Product-eb00f35e.mjs → Product-58a83c67.mjs} +17 -16
- package/dist/ProductEdit-36e5cfdd.js +1 -0
- package/dist/{ProductEdit-61413d02.mjs → ProductEdit-56752bbe.mjs} +30 -29
- package/dist/{ProfileBlogposts-775b1cfa.mjs → ProfileBlogposts-67e1bd8f.mjs} +11 -10
- package/dist/ProfileBlogposts-a798df3d.js +1 -0
- package/dist/{ProfileComments-fd7d66bf.mjs → ProfileComments-17352b6a.mjs} +7 -6
- package/dist/ProfileComments-473c3413.js +1 -0
- package/dist/{ProfileEvents-7a51a9e6.mjs → ProfileEvents-76166bc5.mjs} +13 -12
- package/dist/ProfileEvents-cdebd612.js +1 -0
- package/dist/ProfileLikes-da6303a4.js +1 -0
- package/dist/{ProfileLikes-20a8a3c9.mjs → ProfileLikes-f838ff5e.mjs} +10 -9
- package/dist/ProfileOrganizations-5348e892.js +1 -0
- package/dist/{ProfileOrganizations-4b866823.mjs → ProfileOrganizations-58ebfe44.mjs} +7 -6
- package/dist/Publics-e14d36ed.js +1 -0
- package/dist/{Publics-0e44c61e.mjs → Publics-fcb1f708.mjs} +17 -16
- package/dist/{UploadImage-9e7e7468.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 +16 -15
- package/dist/{auth.validation-093babe9.mjs → auth.validation-9f87ea95.mjs} +1 -1
- package/dist/{auth.validation-9f7c7948.js → auth.validation-be05e981.js} +1 -1
- package/dist/community.client.cjs +1 -1
- package/dist/community.client.js +26 -25
- 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.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 +24 -23
- package/dist/landing.client.cjs +1 -0
- package/dist/landing.client.js +135 -0
- 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-1581c013.mjs → organizations-2adff182.mjs} +1 -1
- package/dist/{organizations-c455dad7.js → organizations-e97a0f85.js} +1 -1
- package/dist/{organizations.client-7937e180.mjs → organizations.client-88d41199.mjs} +50 -49
- package/dist/organizations.client-d21a22ec.js +3 -0
- package/dist/organizations.client.cjs +1 -1
- package/dist/organizations.client.js +46 -45
- package/dist/prometheus-framework.cjs.js +10 -10
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -1
- package/dist/users.client.js +16 -15
- package/package.json +6 -2
- 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/controllers/blog.controller.js +5 -1
- package/src/modules/icons/labels/LabelAppStore.vue +29 -0
- package/src/modules/icons/labels/LabelGooglePlay.vue +47 -0
- package/src/modules/landing/components/sections/MobileApp.vue +134 -0
- package/src/modules/landing/landing.client.js +7 -0
- package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -1
- 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-300fcb55.js +0 -1
- 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-cdbafd07.mjs +0 -1944
- 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-001c4a65.mjs +0 -130
- 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-48043cc7.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-925a972b.js +0 -1
- 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-e361dada.mjs +0 -96
- 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-51309400.js +0 -1
- 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-bacc2ef6.mjs +0 -202
- 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-4b28adc5.mjs +0 -423
- 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-5d8d5c21.js +0 -1
- 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-a31c43c2.mjs +0 -423
- 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-d2e5978c.mjs +0 -342
- package/dist/Feed-d4220f74.mjs +0 -340
- package/dist/Feed-d8e33aed.mjs +0 -397
- package/dist/Feed-dc8b66bf.mjs +0 -367
- 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-eeb63363.js +0 -1
- 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-3028a3b7.js +0 -1
- package/dist/IconEdit-736c89be.js +0 -1
- package/dist/IconEdit-e9fd4c6c.mjs +0 -21
- package/dist/Image-6c7584f5.mjs +0 -477
- package/dist/Image-9a870c88.js +0 -9
- package/dist/PlaceholderUserpic-10fd9026.js +0 -1
- 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-eb9820ce.mjs +0 -28
- package/dist/PlaceholderUserpic-fe8bd48d.js +0 -1
- package/dist/Popup-0c791801.mjs +0 -76
- package/dist/Popup-70f6a8c0.mjs +0 -76
- package/dist/Popup-7c331e1c.js +0 -1
- 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-1724d88d.mjs +0 -837
- package/dist/Product-19cc3654.js +0 -7
- package/dist/Product-2f3d592f.mjs +0 -837
- package/dist/Product-2fbf9d99.js +0 -7
- 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-20709821.mjs +0 -349
- 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/ProductEdit-fca68ff9.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-6704a38c.js +0 -1
- 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-fb014bc6.mjs +0 -63
- package/dist/ProfileBlogposts-ffa10f34.mjs +0 -63
- package/dist/ProfileComments-0396b55c.js +0 -1
- package/dist/ProfileComments-08d1670d.mjs +0 -43
- package/dist/ProfileComments-175e42da.js +0 -1
- package/dist/ProfileComments-2e2a3a7a.mjs +0 -42
- package/dist/ProfileComments-34eb560b.mjs +0 -43
- package/dist/ProfileComments-48f3d4bc.mjs +0 -43
- package/dist/ProfileComments-58094a50.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-4f2a5f00.js +0 -1
- package/dist/ProfileEvents-5d206e3d.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-503712ec.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-b3b1350a.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-32ab1e30.mjs +0 -211
- 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-6d3a43e4.js +0 -1
- 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-4e1c14fc.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-9ebffff1.mjs +0 -122
- 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-fcb73759.mjs +0 -46
- 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-441e8526.js +0 -1
- package/dist/UploadImage-4e91bd99.js +0 -1
- package/dist/UploadImage-6e312c46.mjs +0 -83
- 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-2bc18d1e.js +0 -8
- 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-fefd15a3.mjs +0 -1503
- 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-4a617c0b.mjs +0 -20
- 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-78a90fed.js +0 -1
- package/dist/auth.validation-9cfd985b.mjs +0 -20
- package/dist/auth.validation-a18510e8.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-6960f71b.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-1b4c84ee.mjs +0 -121
- 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-040ec107.js +0 -3
- package/dist/organizations.client-253c8068.mjs +0 -3179
- 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,3 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),h=require("vue-router"),_=require("./auth-50bd4ebb.js"),b=require("./Popup.vue_vue_type_style_index_0_lang-769e7cf5.js"),M=require("./Tab-1ca0fe66.js"),v=require("./Field-ada86df2.js");require("./Select.vue_vue_type_style_index_0_scoped_a78dbba1_lang-0ea8fbf8.js");const P=require("vue-i18n"),W=require("./Footer.vue_vue_type_style_index_0_lang-2f7f46f1.js"),g=require("./Unit.vue_vue_type_style_index_0_scoped_d69a370a_lang-0b4edb09.js"),w=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0cb41a82.js"),p=require("./organizations-4d74e13b.js"),J=require("./Feed-26bf6bef.js"),x=require("./inputs.validation-498d8ec9.js"),V=require("./ButtonFollow-1b655344.js"),Y=require("./UploadImage-9abb7116.js"),Q={class:"mn-small w-min"},X=["href"],G=e.createElementVNode("span",{class:"t-semi uppercase"},"Website",-1),ee=[G],te=["href"],ne=e.createElementVNode("span",{class:"t-semi uppercase"},"Phone",-1),oe=[ne],se=["href"],le=e.createElementVNode("span",{class:"t-semi uppercase"},"Email",-1),ae=[le],ie=["href"],re=e.createElementVNode("span",{class:"t-semi uppercase"},"Address",-1),ce=[re],A={__name:"Contacts",props:{website:String,phone:String,email:String,address:String},setup(t){const o=t,n=e.computed(()=>o.website?!o.website.startsWith("http://")&&!o.website.startsWith("https://")?`http://${o.website}`:o.website:null),s=e.computed(()=>o.address?encodeURIComponent(o.address):null);return(a,i)=>(e.openBlock(),e.createElementBlock("div",Q,[e.unref(n)?(e.openBlock(),e.createElementBlock("a",{key:0,href:e.unref(n),target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},ee,8,X)):e.createCommentVNode("",!0),o.phone?(e.openBlock(),e.createElementBlock("a",{key:1,href:`tel:${o.phone}`,class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},oe,8,te)):e.createCommentVNode("",!0),o.email?(e.openBlock(),e.createElementBlock("a",{key:2,href:`mailto:${o.email}`,target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},ae,8,se)):e.createCommentVNode("",!0),e.unref(s)?(e.openBlock(),e.createElementBlock("a",{key:3,href:`https://www.google.com/maps/search/?api=1&query=${e.unref(s)}`,target:"_blank",class:"w-100 br-2px br-solid br-grey radius-small pd-small flex-v-center flex-nowrap flex"},ce,8,ie)):e.createCommentVNode("",!0)]))}},de={key:0,class:"cursor-pointer t-second"},me={__name:"Text",props:{maxLen:{type:Number,required:!0},text:{type:String,required:!0}},setup(t){const o=t,n=e.ref(!1),s=e.computed(()=>o.text.slice(0,o.maxLen)+"..."),a=e.computed(()=>o.text),i=()=>{n.value=!n.value},c=e.computed(()=>n.value?a.value:s.value),l=e.computed(()=>o.text.length>o.maxLen),r=e.computed(()=>n.value?"Hide":"Show more");return(d,m)=>(e.openBlock(),e.createElementBlock("span",{onClick:i,class:""},[e.createTextVNode(e.toDisplayString(e.unref(c))+" ",1),e.unref(l)?(e.openBlock(),e.createElementBlock("span",de,e.toDisplayString(e.unref(r)),1)):e.createCommentVNode("",!0)]))}},ue={class:"cols-2-1_3 gap-thin w-100"},pe={class:""},he={class:"pd-medium mn-thin radius-big bg-grey"},_e=e.createElementVNode("h3",{class:"mn-r-thin mn-medium"},"Rating",-1),ge={class:"w-max mn-small star-container flex-v-center flex"},fe={class:"p-big t-semi mn-r-small"},be=e.createElementVNode("path",{fill:"#00FF88",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"},null,-1),ve=[be],ke={class:""},ye={class:"pd-medium radius-big bg-grey"},we=e.createElementVNode("h3",{class:"mn-medium"},"Contacts",-1),$e={class:"pd-medium radius-big bg-grey"},Ve=e.createElementVNode("path",{fill:"black",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"},null,-1),Ee=[Ve],Ce=["src"],Be={key:1,class:"radius-medium mn-small i-extra",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ne=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),xe=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",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"},null,-1),Le=[Ne,xe],Se={class:"mn-medium"},Oe={class:"mn-semi"},ze={class:"mn-r-small pd-thin radius-small t-semi uppercase bg-main p-medium"},De={class:"mn-r-thin pd-thin radius-small t-semi bg-white p-medium"},Me={class:"mn-semi p-big"},Pe=e.createElementVNode("h4",{class:"mn-small"},"Find us in socials",-1),Ae={class:"mn-small w-100 gap-small flex-nowrap flex"},Fe=["href"],Te=e.createElementVNode("span",{class:"t-white t-semi mn-l-thin mn-r-small w-100 t-left"},"Telegram",-1),qe=[Te],Ie=["href"],je=e.createElementVNode("span",{class:"t-white t-semi mn-l-thin mn-r-small w-100 t-left"},"Facebook",-1),Ze=[je],Re=["href"],He=e.createElementVNode("span",{class:"t-white t-semi mn-l-thin mn-r-small w-100 t-left"},"Instagram",-1),Ue=[He],Ke=e.createElementVNode("a",{href:"https://twitter.com/ozdao_embassy",target:"_blank",class:"w-100 bg-twitter t-white radius-small button"},[e.createElementVNode("span",{class:"t-white w-100 t-left"},"Twitter")],-1),We=e.createElementVNode("a",{href:"https://www.reddit.com/r/oz_dao/",target:"_blank",class:"w-100 bg-reddit t-white radius-small button"},[e.createElementVNode("span",{class:"t-white w-100 t-left"},"Reddit")],-1),Je=["href"],Ye=e.createElementVNode("span",{class:"t-white t-semi mn-l-thin mn-r-small w-100 t-left"},"Line",-1),Qe=[Ye],F={__name:"DetailsTab",props:{organization:Object},setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",ue,[e.createElementVNode("div",pe,[e.createElementVNode("section",he,[_e,e.createElementVNode("div",ge,[e.createElementVNode("span",fe,e.toDisplayString(t.organization.rating.median),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,s=>e.createElementVNode("svg",{class:e.normalizeClass(["i-semi mn-r-small",{"t-transp":s>t.organization.rating.median}]),width:"113",height:"108",viewBox:"0 0 113 108",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ve,2)),64))]),e.createElementVNode("p",ke,"Based on "+e.toDisplayString(t.organization.rating.amount)+" reviews",1)]),e.createElementVNode("section",ye,[we,e.createVNode(A,{website:t.organization.contacts.website,phone:t.organization.contacts.phone,email:t.organization.contacts.email,address:t.organization.contacts.address},null,8,["website","phone","email","address"])])]),e.createElementVNode("section",$e,[(e.openBlock(),e.createElementBlock("svg",{onClick:n[0]||(n[0]=s=>o.$router.push({name:"Organization Edit",params:{_id:t.organization._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ee)),t.organization.profile.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:"/"+t.organization.profile.photo,class:"radius-medium mn-small i-extra"},null,8,Ce)):(e.openBlock(),e.createElementBlock("svg",Be,Le)),e.createElementVNode("h1",Se,e.toDisplayString(t.organization.profile.name),1),e.createElementVNode("div",Oe,[e.createElementVNode("span",ze,e.toDisplayString(t.organization.types[0]),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.profile.categories,s=>(e.openBlock(),e.createElementBlock("span",De,e.toDisplayString(s),1))),256))]),e.createElementVNode("p",Me,[e.createVNode(me,{text:t.organization.profile.description?t.organization.profile.description:"",maxLen:240},null,8,["text"])]),Pe,e.createElementVNode("div",Ae,[e.createElementVNode("a",{href:t.organization.social.telegram,target:"_blank",class:"w-100 bg-second t-white flex-nowrap flex-v-center flex w-min pd-small radius-extra"},qe,8,Fe),e.createElementVNode("a",{href:t.organization.social.telegram,target:"_blank",class:"w-100 bg-second t-white flex-nowrap flex-v-center flex w-min pd-small radius-extra"},Ze,8,Ie),e.createElementVNode("a",{href:t.organization.social.telegram,target:"_blank",class:"w-100 bg-second t-white flex-nowrap flex-v-center flex w-min pd-small radius-extra"},Ue,8,Re),Ke,We,e.createElementVNode("a",{href:t.organization.social.telegram,target:"_blank",class:"w-100 bg-second t-white flex-nowrap flex-v-center flex w-min pd-small radius-extra"},Qe,8,Je)])])])]),_:1}))}},Xe={key:0,class:"spoiler"},y={__name:"Spoiler",props:{status:{type:Boolean,default:!1}},setup(t){const o=t,n=e.ref(!1);return o.status&&(n.value=o.status),(s,a)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{onClick:a[0]||(a[0]=i=>n.value=!n.value),class:"flex-v-center flex-nowrap flex"},[e.renderSlot(s.$slots,"header")]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",Xe,[e.renderSlot(s.$slots,"content")])):e.createCommentVNode("",!0)]),_:3})]))}};const Ge={key:0,class:"thc"},et={class:"t-bold t-white"},tt=e.createElementVNode("p",{class:"t-white h6"},"THC",-1),nt={key:0,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ot=e.createElementVNode("path",{fill:"#FF0000",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),st=[ot],lt={key:1,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},at=e.createElementVNode("path",{fill:"#FF0099",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),it=[at],rt={key:2,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ct=e.createElementVNode("path",{fill:"#EB00FF",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),dt=[ct],mt={key:3,width:"60",height:"66",viewBox:"0 0 60 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ut=e.createElementVNode("path",{fill:"#00FF29",stroke:"white","stroke-width":"3",d:"M26 3.3094C28.4752 1.88034 31.5248 1.88034 34 3.3094L53.7128 14.6906C56.188 16.1197 57.7128 18.7607 57.7128 21.6188V44.3812C57.7128 47.2393 56.188 49.8803 53.7128 51.3094L34 62.6906C31.5248 64.1197 28.4752 64.1197 26 62.6906L6.28719 51.3094C3.81198 49.8803 2.28719 47.2393 2.28719 44.3812V21.6188C2.28719 18.7607 3.81198 16.1197 6.28719 14.6906L26 3.3094Z"},null,-1),pt=[ut],ht={__name:"THC",props:{product:Object},setup(t){return(o,n)=>t.product.information[1]?(e.openBlock(),e.createElementBlock("div",Ge,[e.createElementVNode("p",et,e.toDisplayString(t.product.information[1].value)+" %",1),tt,Number(t.product.information[1].value)>=18?(e.openBlock(),e.createElementBlock("svg",nt,st)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=18&&Number(t.product.information[1].value)>=14?(e.openBlock(),e.createElementBlock("svg",lt,it)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=14&&Number(t.product.information[1].value)>=10?(e.openBlock(),e.createElementBlock("svg",rt,dt)):e.createCommentVNode("",!0),Number(t.product.information[1].value)<=10?(e.openBlock(),e.createElementBlock("svg",mt,pt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)}};const _t={class:"price-tag radius-small"},gt={key:0,class:"t-transp t-main p-medium line-through price"},T={__name:"Price",props:{product:Object,size:String},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("p",{class:e.normalizeClass({"t-main":t.product.sale,h4:!t.size,"h5 t-semi pd-thin":t.size==="small","h3 t-semi pd-small":t.size==="big"})},e.toDisplayString(t.product.price)+" "+e.toDisplayString(o.returnCurrency()),3),t.product.sale?(e.openBlock(),e.createElementBlock("p",gt,e.toDisplayString(t.product.price/100*(100+t.product.sale))+" "+e.toDisplayString(o.returnCurrency()),1)):e.createCommentVNode("",!0)]))}};const ft=["src"],bt={key:1,class:"h-100 w-100",style:{"object-fit":"cover"},width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vt=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),kt=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),yt=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),wt=e.createElementVNode("path",{fill:"#00ff88",d:"M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"},null,-1),$t=[vt,kt,yt,wt],Vt={class:"pd-medium t-left product-card-content"},Et={class:"mn-thin h4"},Ct={key:1,class:"mn-small t-transp p-small"},Bt=e.createElementVNode("div",null,null,-1),q={__name:"ProductCard",props:["product"],setup(t){const o=t,n=b.useStore();return P.useI18n(),e.computed(()=>n.state.favorites.items.filter(function(s,a){if(s._id===o.product._id)return!0})),(s,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big product",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 h-100 square",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.product.images[0],class:"w-100 h-100"},null,8,ft)):(e.openBlock(),e.createElementBlock("svg",bt,$t)),t.product.information.length>0?(e.openBlock(),e.createBlock(ht,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",Vt,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",Et,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",Ct,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(T,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-violet t-white":"")},null,8,["product","class"])]),Bt],2))}},Nt={class:""},xt={class:"pd-b-zero pd-thin"},Lt={class:"cols-2-1_3 gap-thin pd-thin"},St={class:"pd-medium bg-grey radius-big"},Ot=e.createElementVNode("h3",{class:"mn-small"},"Filters",-1),zt=e.createElementVNode("hr",{class:"mn-small"},null,-1),Dt={class:"mn-r-auto t-medium p-big"},Mt=e.createElementVNode("svg",{class:"i-medium",width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1),Pt=e.createElementVNode("hr",{class:"mn-small"},null,-1),At={class:"mn-r-auto t-medium p-big"},Ft=e.createElementVNode("svg",{class:"i-medium",width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1),Tt=e.createElementVNode("hr",{class:"mn-small"},null,-1),qt=e.createElementVNode("p",{class:"mn-r-auto t-medium p-big"},"Delivery",-1),It=e.createElementVNode("svg",{class:"i-medium",width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1),jt=e.createElementVNode("hr",{class:"mn-semi"},null,-1),Zt={class:"products-wrapper"},Rt=e.createStaticVNode('<div class="pd-medium mn-thin bg-grey radius-big"><div class="flex-nowrap flex flex-v-center"><header class="mn-r-auto flex-v-center t-left flex-nowrap flex"><h2 class="t-left"><span class="">Weed in </span><span class="t-semi t-main">Phuket, TH</span></h2></header><button class="bg-main button">See on map</button></div></div>',1),Ht={class:"pd-medium mn-thin bg-grey radius-big"},Ut={class:"flex-nowrap flex flex-v-center"},Kt=e.createElementVNode("p",{class:"mn-r-auto p-big t-semi t-transp"},"2,982 results",-1),Wt={class:"w-100 cols-3 gap-thin"},Jt={__name:"Products",async setup(t){let o,n;const s=h.useRoute();h.useRouter(),[o,n]=e.withAsyncContext(()=>w.actions.read({organization:s.params._id})),await o,n(),[o,n]=e.withAsyncContext(()=>b.actions.fetchCategories()),await o,n(),e.computed(()=>b.state.current);const a=[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}],i=[{label:"Under $5",value:{min:0,max:25}},{label:"$5 to $10",value:{min:25,max:50}},{label:"$10 to $20",value:{min:50,max:100}},{label:"$20 and above",value:{min:200,max:1/0}}],c={locale:"en",messages:{en:{meta:{title:"Marketplace – Shop Our Wide Selection of Quality Weed for Delivery",description:"Browse our marketplace of top-grade weed strains and choose from a variety of delivery options. Order now and have your favorite strains delivered straight to your door. Safe, fast, and reliable."},breadcrumbs:{home:"Home",store:"Marketplace"},categoriesTitle:"Category",categories:[],sort:{price:"By price",newest:"By newest",popularity:"By popularity"},filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{meta:{title:"Маркетплейс – Выбирайте из нашего ассортимента качественной травки для доставки",description:"Маркетплейс – Изучите наши продукты высокого качества и выбирайте из различных вариантов доставки. Закажите сейчас и получите свои любимые сорта на дом. Безопасно, быстро и надежно."},breadcrumbs:{home:"Главная",store:"Маркетплейс"},categoriesTitle:"Категория",categories:[],sort:{price:"По цене",newest:"По новизне",popularity:"По популярности"},filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};b.state.all.forEach(d=>{d.localization.forEach(m=>{c.messages[m.locale].categories.push(m.text)})});const{t:l}=P.useI18n(c),r=e.computed(()=>({title:l("meta.title"),description:l("meta.description")}));return W.B(r),(d,m)=>(e.openBlock(),e.createElementBlock("div",Nt,[e.createElementVNode("div",xt,[e.createVNode(b._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",Lt,[e.createElementVNode("div",St,[Ot,zt,e.createVNode(y,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",Dt,e.toDisplayString(e.unref(l)("categoriesTitle")),1),Mt]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.state.all,(u,f)=>(e.openBlock(),e.createBlock(b.Checkbox,{label:u.name,name:"categories",value:u.url,class:"w-100 mn-t-small mn-small bg-white radius-small pd-small",radio:d.marketplace.state.filter.categories},null,8,["label","value","radio"]))),256))]),_:1}),Pt,e.createVNode(y,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",At,e.toDisplayString(e.unref(l)("filters.price.title")),1),Ft]),content:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,(u,f)=>e.createVNode(b.Checkbox,{label:u.label,name:"prices",value:u.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:d.store.marketplace.state.filter.prices},null,8,["label","value","radio"])),64))]),_:1}),Tt,e.createVNode(y,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[qt,It]),content:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,(u,f)=>e.createVNode(b.Checkbox,{label:u.label,name:"prices",value:u.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:d.store.marketplace.state.filter.delivery},null,8,["label","value","radio"])),64))]),_:1}),jt,e.createElementVNode("button",{onClick:m[0]||(m[0]=u=>d.resetFilterButton()),class:"bg-main w-100 button"},e.toDisplayString(e.unref(l)("filters.reset")),1)]),e.createElementVNode("div",Zt,[Rt,e.createElementVNode("div",Ht,[e.createElementVNode("div",Ut,[Kt,e.createElementVNode("button",{onClick:m[1]||(m[1]=u=>d.setSort("price")),class:"button-active button-sort button"},e.toDisplayString(e.unref(l)("sort.price")),1),e.createElementVNode("button",{onClick:m[2]||(m[2]=u=>d.setSort("createdAt")),class:"button-sort button"},e.toDisplayString(e.unref(l)("sort.newest")),1),e.createElementVNode("button",{onClick:m[3]||(m[3]=u=>d.setSort("popularity")),class:"button-sort button"},e.toDisplayString(e.unref(l)("sort.popularity")),1)])]),e.createElementVNode("div",Wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.state.all,u=>(e.openBlock(),e.createBlock(q,{product:u,key:u._id,onClick:f=>d.$router.push({name:"Product Organization",params:{_id:d.organization._id,product:u._id}}),class:"w-100"},null,8,["product","onClick"]))),128))])])])]))}},Yt={__name:"Map",props:{location:Object},setup(t){const o=t;let n=e.ref(null),s=null,a=null;return e.onMounted(async()=>{s=new google.maps.Map(n.value,{zoom:13,center:{lat:o.location.lat,lng:o.location.lng}}),a=new google.maps.Marker({position:{lat:o.location.lat,lng:o.location.lng},map:s})}),e.watch(()=>o.location,()=>{s&&a&&(a.setPosition(new google.maps.LatLng(o.location.lat,o.location.lng)),s.setCenter(new google.maps.LatLng(o.location.lat,o.location.lng)))},{deep:!0}),(i,c)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"gmap",ref:n,class:"gmap"},null,512))}},Qt=_._export_sfc(Yt,[["__scopeId","data-v-c194b4a5"]]),Xt={class:"pd-small flex-nowrap flex"},Gt={class:"user-card__info"},en={class:"user-card__name"},tn={class:"user-card__position"},nn={__name:"DepartmentSub",props:{department:{type:Object,required:!0}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("div",Gt,[e.createElementVNode("p",en,e.toDisplayString(t.department.name?t.department.name:"Безымянный"),1),e.createElementVNode("p",tn,e.toDisplayString(t.department.members?t.department.members.length:"0")+" человек",1)])]))}},E=_._export_sfc(nn,[["__scopeId","data-v-3a07133c"]]),on={class:"pd-small flex-nowrap flex"},sn={class:"user-card__info"},ln={class:"user-card__name"},an={class:"t-transp"},rn={__name:"User",props:{user:{type:Object,required:!0},position:{type:String,required:!0}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",on,[e.createElementVNode("div",sn,[e.createElementVNode("p",ln,e.toDisplayString(t.user.name?t.user.name:"Безымянный"),1),e.createElementVNode("p",an,e.toDisplayString(t.position),1)])]))}},C=_._export_sfc(rn,[["__scopeId","data-v-c0ea3801"]]),$=t=>(e.pushScopeId("data-v-1d33cf95"),t=t(),e.popScopeId(),t),cn={class:"radius-big o-hidden cols-2-1_3"},dn={class:"pd-medium w-100"},mn=$(()=>e.createElementVNode("path",{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",fill:"black"},null,-1)),un=[mn],pn=["innerHTML"],hn=["innerHTML"],_n={class:"pd-small flex-v-center flex-nowrap flex"},gn=$(()=>e.createElementVNode("h5",{class:"w-100"},"Contacts ",-1)),fn={class:"mn-r-small"},bn=$(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),vn={key:0},kn={class:"pd-small flex-v-center flex-nowrap flex"},yn=$(()=>e.createElementVNode("h5",{class:"w-100"},"Working Hours ",-1)),wn={class:"mn-r-small"},$n=$(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),Vn={key:0},En={__name:"Department",props:{department:Object,organization:Object},setup(t){const o=t;return(n,s)=>(e.openBlock(),e.createElementBlock("div",cn,[e.createVNode(Qt,{location:{lat:t.department.location.coordinates[1],lng:t.department.location.coordinates[0]},class:""},null,8,["location"]),e.createElementVNode("div",dn,[(e.openBlock(),e.createElementBlock("svg",{onClick:s[0]||(s[0]=a=>n.$router.push(`/app/organization/${o.organization._id}/departments/${t.department._id}/edit`)),class:"i-regular pos-absolute pos-r-0 pos-t-0 t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},un)),e.createElementVNode("h3",{onClick:s[1]||(s[1]=a=>n.$router.push(`/app/organization/${o.organization._id}/departments/${t.department._id}`)),class:"mn-small w-100",innerHTML:t.department.profile.name},null,8,pn),e.createElementVNode("p",{onClick:s[2]||(s[2]=a=>n.$router.push(`/app/organization/${o.organization._id}/departments/${t.department._id}`)),class:"mn-small p-big w-100",innerHTML:t.department.address},null,8,hn),e.createVNode(y,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",_n,[gn,e.createElementVNode("p",fn,e.toDisplayString(t.department.members.length)+" человек",1),bn])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.members.length<1?(e.openBlock(),e.createElementBlock("li",vn,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.members,(a,i)=>(e.openBlock(),e.createBlock(C,{class:"br-b br-solid br-grey",key:i,user:a.user,position:a.position,onClick:c=>n.$router.push(`/app/profile/${a.user._id}`)},null,8,["user","position","onClick"]))),128))])]),_:1}),e.createVNode(y,{class:"radius-small o-hidden br-1px br-solid br-grey mn-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",kn,[yn,e.createElementVNode("p",wn,e.toDisplayString(t.department.subdepartments?t.department.subdepartments.length:0)+" отделов",1),$n])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",Vn,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.subdepartments,(a,i)=>(e.openBlock(),e.createBlock(E,{onClick:c=>n.$router.push(`/app/organization/departments/${a._id}`),key:i,class:"br-b br-solid br-grey",department:a},null,8,["onClick","department"]))),128))])]),_:1})])]))}},Cn=_._export_sfc(En,[["__scopeId","data-v-1d33cf95"]]),I={__name:"StructureTab",props:{organization:Object,units:Array,memberships:Array},async setup(t){let o,n;const s=t;e.ref("departments"),[o,n]=e.withAsyncContext(()=>g.actions.read(s.organization._id)),await o,n();const a=e.computed(()=>{const i=g.state.departments,c=i.flatMap(l=>l.subdepartments.map(r=>r._id));return i.filter(l=>!c.includes(l._id))});return(i,c)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.unref(a).length<1?(e.openBlock(),e.createBlock(p._sfc_main,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>i.$router.push(`/app/organization/${s.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(l,r)=>(e.openBlock(),e.createBlock(Cn,{key:r,department:l,organization:t.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),e.unref(a).length>0&&_.state.user._id===t.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:c[0]||(c[0]=l=>i.$router.push(`/app/organization/${s.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}},Bn={class:"mn-medium radius-medium pd-semi bg-white"},Nn=e.createElementVNode("h3",{class:"mn-medium"},"Добавить участников",-1),xn=e.createElementVNode("p",{class:"mn-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),Ln={class:"w-100 flex-nowrap flex"},Sn={key:0,class:"mn-r-medium flex-v-center flex"},On=["onClick"],zn=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),Dn=[zn],Mn=e.createElementVNode("span",null,"Отправить приглашения ",-1),j={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(t,{emit:o}){const n=t,s=e.ref(null),a=e.ref([{contact:"",role:""}]);function i(){a.value.push({contact:"",role:""})}function c(d){a.value.splice(d,1)}async function l(d){await g.actions$1.create(n.organization._id,a.value)}function r(){}return(d,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",Bn,[Nn,xn,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"br-1px br-solid br-grey flex radius-small mn-thin"},[e.createElementVNode("div",Ln,[e.createVNode(v.Field,{field:u.contact,"onUpdate:field":N=>u.contact=N,placeholder:"Email или телефон",class:"w-100 bg-white",validation:s.value},null,8,["field","onUpdate:field","validation"]),f>0?(e.openBlock(),e.createElementBlock("div",Sn,[e.createElementVNode("button",{onClick:N=>c(f),class:"button-small button"},"×",8,On)])):e.createCommentVNode("",!0)]),e.createVNode(w.Select,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:u,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:i,class:"mn-small flex-v-center flex-nowrap flex"},Dn),e.createVNode(_._sfc_main,{submit:d.a=()=>l(g.state$1.invites),callback:r,class:"mn-t-medium"},{default:e.withCtx(()=>[Mn]),_:1},8,["submit"])])]))}},Pn={class:"mn-big radius-medium bg-white"},An={key:0,class:"pd-semi"},Fn={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},Tn={class:"w-100 mn-r-small"},qn={class:"t-transp"},In={key:0,class:"mn-l-medium flex-v-center flex"},jn=["onClick"],Zn={key:1,class:"pd-semi"},Rn={key:0},Hn={class:"br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium"},Un={class:"w-100 mn-r-small"},Kn={class:"t-transp"},Wn={class:"mn-l-medium flex-v-center flex"},Jn=["onClick"],Z={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(t,{emit:o}){const n=t,s=e.ref("members");function a(c,l){n.memberships.splice(c,1),o("removeMember",l)}function i(c,l){n.invites.splice(c,1),o("removeInvite",l)}return(c,l)=>(e.openBlock(),e.createElementBlock("section",Pn,[e.createVNode(M._sfc_main,{selected:s.value,"onUpdate:selected":l[0]||(l[0]=r=>s.value=r),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),s.value==="members"?(e.openBlock(),e.createElementBlock("div",An,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.memberships,(r,d)=>(e.openBlock(),e.createElementBlock("div",Fn,[e.createElementVNode("span",Tn,e.toDisplayString(r.user.email)+" "+e.toDisplayString(r.user.phone),1),e.createElementVNode("span",qn,e.toDisplayString(r.position),1),r.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",In,[e.createElementVNode("button",{onClick:m=>a(d,r),class:"button-small button"},"×",8,jn)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),s.value==="invites"?(e.openBlock(),e.createElementBlock("div",Zn,[t.invites.length<1?(e.openBlock(),e.createElementBlock("span",Rn,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.invites,(r,d)=>(e.openBlock(),e.createElementBlock("div",Hn,[e.createElementVNode("span",Un,e.toDisplayString(r.invitedEmail)+" "+e.toDisplayString(r.invitedPhone),1),e.createElementVNode("span",Kn,e.toDisplayString(r.status),1),e.createElementVNode("div",Wn,[e.createElementVNode("button",{onClick:m=>i(d,r),class:"button-small button"},"×",8,Jn)])]))),256))])):e.createCommentVNode("",!0)]))}},Yn=e.createElementVNode("section",{class:"mn-medium radius-medium pd-semi bg-white"},[e.createElementVNode("h2",{class:"mn-regular"},"Участники"),e.createElementVNode("p",{class:"t-transp p-big"},"Добавляйте новых участников организации и настраивайте права доступа.")],-1),Qn={__name:"MembersTab",props:{organization:Object,memberships:Array},async setup(t){let o,n;const s=t;[o,n]=e.withAsyncContext(()=>g.actions$1.read(s.organization._id)),await o,n();async function a(l){await g.actions$1.create(s.organization._id,l)}async function i(l){await V.actions.delete(l._id)}async function c(l){await g.actions$1.delete(l._id)}return(l,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[Yn,e.createVNode(j,{organization:t.organization,onSendInvite:a},null,8,["organization"]),e.createVNode(Z,{organization:t.organization,memberships:t.memberships,invites:g.state$1.invites,onRemoveInvite:c,onRemoveMember:i},null,8,["organization","memberships","invites"])])]),_:1}))}};const Xn={class:"for-transition w-100"},Gn={class:"pd-b-zero pd-thin"},eo={class:"pd-b-zero pd-t-zero pd-thin"},to={class:"pd-thin bg-white"},no={key:0},R={__name:"Organization",async setup(t){let o,n;const s=h.useRouter(),a=h.useRoute();let i=a.query.tab?a.query.tab:"spots";const c=e.ref(i);return a.query.tab=c.value,e.watch(c,l=>{s.push({query:{...a.query,tab:l}})}),[o,n]=e.withAsyncContext(()=>p.actions.read({_id:a.params._id})),await o,n(),[o,n]=e.withAsyncContext(()=>V.actions.read(a.params._id)),await o,n(),(l,r)=>(e.openBlock(),e.createElementBlock("div",Xn,[e.createElementVNode("div",Gn,[e.createVNode(b._sfc_main,{class:"pd-medium bg-grey radius-big"})]),e.createVNode(F,{organization:p.state.current,class:"pd-thin"},null,8,["organization"]),e.createElementVNode("div",eo,[e.createVNode(M._sfc_main,{selected:c.value,"onUpdate:selected":r[0]||(r[0]=d=>c.value=d),tabs:[{name:"Spots",value:"spots"},{name:"Products",value:"products"},{name:"Community",value:"members"}],class:"o-hidden h4 pd-small radius-big bg-grey"},null,8,["selected"])]),e.createElementVNode("div",to,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[c.value==="spots"?(e.openBlock(),e.createElementBlock("div",no,[e.createVNode(I,{organization:p.state.current,memberships:V.state.memberships},null,8,["organization","memberships"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[c.value==="products"?(e.openBlock(),e.createBlock(Jt,{key:0,organization:p.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[c.value==="members"?(e.openBlock(),e.createBlock(J._sfc_main,{key:0,user:_.state.user._id,organization:p.state.current._id},null,8,["user","organization"])):e.createCommentVNode("",!0)]),_:1})])]))}},oo=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"})),so={class:"for-transition w-100"},lo={id:"dash",class:"pd-medium bg-grey"},ao={class:"mn-medium radius-medium pd-semi bg-white"},io={class:"flex-nowrap flex mn-small"},ro={class:"w-100"},co=e.createElementVNode("path",{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",fill:"black"},null,-1),mo=[co],uo=["innerHTML"],po={class:"mn-medium radius-medium pd-semi bg-white"},ho=e.createElementVNode("h3",{class:"mn-regular"},"Команда",-1),_o={key:0},go={class:"mn-medium radius-medium pd-semi bg-white"},fo=e.createElementVNode("h3",{class:"mn-regular"},"Подотделы",-1),bo={key:0},H={__name:"Department",async setup(t){let o,n;h.useRouter();const s=h.useRoute();return[o,n]=e.withAsyncContext(()=>g.actions.readOne(s.params._id)),await o,n(),(a,i)=>(e.openBlock(),e.createElementBlock("div",so,[e.createElementVNode("div",lo,[e.createElementVNode("section",ao,[e.createElementVNode("div",io,[e.createElementVNode("h2",ro,e.toDisplayString(g.state.department.name),1),(e.openBlock(),e.createElementBlock("svg",{onClick:i[0]||(i[0]=c=>a.$router.push(`/app/organization/departments/${g.state.department._id}/edit`)),class:"i-regular t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mo))]),e.createElementVNode("p",{class:"t-transp p-big",innerHTML:g.state.department.description},null,8,uo)]),e.createElementVNode("section",po,[ho,e.createElementVNode("ul",null,[g.state.department.members.length<1?(e.openBlock(),e.createElementBlock("li",_o,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.state.department.members,(c,l)=>(e.openBlock(),e.createBlock(C,{class:"br-b br-solid br-grey",key:l,user:c.user,position:c.position,onClick:r=>a.$router.push(`/app/profile/${c.user._id}`)},null,8,["user","position","onClick"]))),128))])]),e.createElementVNode("section",go,[fo,e.createElementVNode("ul",null,[g.state.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",bo,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.state.department.subdepartments,(c,l)=>(e.openBlock(),e.createBlock(E,{onClick:r=>a.$router.push(`/app/organization/departments/${c._id}`),key:l,class:"br-b br-solid br-grey",department:c},null,8,["onClick","department"]))),128))])])])]))}},vo=Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"}));const ko={class:"for-transition bg-white radius-big w-100"},yo={class:"flex-v-center flex-nowrap flex pd-semi"},wo=e.createElementVNode("h2",{class:"mn-r-medium"},"Organizations",-1),$o={class:"pd-semi"},Vo={key:1,class:"cols-3"},Eo=["onClick"],Co=["src"],Bo={key:1,class:"radius-medium mn-small i-thin",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},No=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),xo=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",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"},null,-1),Lo=[No,xo],So={class:"h4 mn-r-semi mn-small"},Oo=["onClick"],zo=e.createElementVNode("path",{fill:"black",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"},null,-1),Do=[zo],Mo={class:"t-black p-small"},Po={__name:"OrganizationsAccount",async setup(t){let o,n;_.state.user._id&&([o,n]=e.withAsyncContext(()=>p.actions.read({owner:_.state.user._id})),await o,n());const s=h.useRouter(),a=h.useRoute();let i=a.query.tab?a.query.tab:"details";const c=e.ref(i);return a.query.tab=c.value,e.watch(c,l=>{s.push({query:{...a.query,tab:l}})}),(l,r)=>(e.openBlock(),e.createElementBlock("div",ko,[e.createElementVNode("header",yo,[wo,e.createElementVNode("button",{onClick:r[0]||(r[0]=d=>l.$router.push({name:"Create Organization"})),class:"radius-100p i-semi hover-scale-1 cursor-pointer t-white bg-second"},"+")]),e.createElementVNode("div",$o,[p.state.all.length<1?(e.openBlock(),e.createBlock(p._sfc_main,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:l.a=()=>l.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",Vo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.state.all,d=>(e.openBlock(),e.createElementBlock("div",{key:d._id,class:"mn-small radius-medium pd-medium br-2px br-solid br-grey",onClick:m=>l.$router.push({name:"Organization",params:{_id:d._id}})},[d.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:d.profile.photo,class:"radius-medium mn-small i-thin"},null,8,Co)):(e.openBlock(),e.createElementBlock("svg",Bo,Lo)),e.createElementVNode("p",So,e.toDisplayString(d.profile.name),1),(e.openBlock(),e.createElementBlock("svg",{onClick:e.withModifiers(m=>l.$router.push({name:"Organization Edit",params:{_id:d._id}}),["stop"]),class:"t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium",width:"13",height:"12",viewBox:"0 0 13 12",xmlns:"http://www.w3.org/2000/svg"},Do,8,Oo)),e.createElementVNode("p",Mo,e.toDisplayString(d.profile.description.slice(0,120)+"..."),1)],8,Eo))),128))]))])]))}},Ao={class:"br-bot-dark bg-white pd-big"},Fo={class:"flex-nojustify flex-bottom flex-nowrap flex"},To={key:0,class:"mn-r-small"},qo={key:1,class:"mn-r-small"},Io={class:"for-transition w-100"},jo={id:"dash",class:"pd-medium bg-grey"},Zo=e.createElementVNode("h3",{class:"mn-small"},"Profile",-1),Ro={class:"mn-semi radius-small flex-nowrap flex"},Ho={class:"flex-child-grow-1 flex-child"},U={__name:"OrganizationEdit",async setup(t){let o,n;const s=h.useRoute();h.useRouter(),p.actions.reset(),s.params._id&&([o,n]=e.withAsyncContext(()=>p.actions.read({_id:s.params._id})),await o,n());const a=e.computed(()=>p.state.current);async function i(){s.params._id?await p.actions.update(s.params._id,a.value):await p.actions.create(p.state.current,_.state.user._id)}return(c,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(b._sfc_main,{class:"section"}),e.createElementVNode("section",Ao,[e.createElementVNode("header",Fo,[e.unref(s).params._id?(e.openBlock(),e.createElementBlock("h1",To,"Edit organization")):(e.openBlock(),e.createElementBlock("h1",qo,"Create organization"))])]),e.createElementVNode("div",Io,[e.createElementVNode("div",jo,[e.createVNode(w.Select,{options:[{name:"Dispensary",value:"dispensary"},{name:"Farm",value:"farm"},{name:"Space",value:"space"}],label:"Type",select:p.state.current.types,"onUpdate:select":l[0]||(l[0]=r=>p.state.current.types=r),placeholder:"Select type",class:"bg-white pd-small radius-small mn-small t-black"},null,8,["select"]),Zo,e.createElementVNode("div",Ro,[e.createVNode(Y._sfc_main,{photo:p.state.current.profile.photo,"onUpdate:photo":l[1]||(l[1]=r=>p.state.current.profile.photo=r),uploadPath:"organizations/"+p.state.current._id+"/avatars",class:"i-big aspect-1x1 o-hidden mn-r-small radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",Ho,[e.createVNode(v.Field,{field:p.state.current.profile.name,"onUpdate:field":l[2]||(l[2]=r=>p.state.current.profile.name=r),placeholder:"Name",class:"bg-white pd-small"},null,8,["field"]),e.createVNode(v.Field,{field:p.state.current.profile.description,"onUpdate:field":l[3]||(l[3]=r=>p.state.current.profile.description=r),placeholder:"Description",class:"bg-white pd-small"},null,8,["field"])])]),e.createVNode(_._sfc_main,{submit:i,callback:c.redirectTo,class:"mn-thin"},{default:e.withCtx(()=>[e.createTextVNode("Save")]),_:1},8,["callback"])])])]))}},L=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"}));const Uo={class:"for-transition bg-white radius-big w-100"},Ko=e.createElementVNode("header",{class:"flex-v-center flex-nowrap flex pd-semi"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Weed dispensaries in Thailand")],-1),Wo={class:"pd-semi"},Jo={key:1,class:"cols-3"},Yo=["onClick"],Qo=["src"],Xo={key:1,class:"radius-medium mn-small i-thin",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Go=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),es=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",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"},null,-1),ts=[Go,es],ns={class:"h4 mn-r-semi mn-small"},os=["onClick"],ss=e.createElementVNode("path",{fill:"black",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"},null,-1),ls=[ss],as={class:"t-black p-small"},is={__name:"Organizations",async setup(t){let o,n;_.state.user._id&&([o,n]=e.withAsyncContext(()=>p.actions.read({owner:_.state.user._id})),await o,n());const s=h.useRouter(),a=h.useRoute();let i=a.query.tab?a.query.tab:"details";const c=e.ref(i);return a.query.tab=c.value,e.watch(c,l=>{s.push({query:{...a.query,tab:l}})}),(l,r)=>(e.openBlock(),e.createElementBlock("div",Uo,[Ko,e.createElementVNode("div",Wo,[p.state.all.length<1?(e.openBlock(),e.createBlock(p._sfc_main,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:l.a=()=>l.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",Jo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.state.all,d=>(e.openBlock(),e.createElementBlock("div",{key:d._id,class:"mn-small radius-medium pd-medium br-2px br-solid br-grey",onClick:m=>l.$router.push({name:"Organization",params:{_id:d._id}})},[d.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:d.profile.photo,class:"radius-medium mn-small i-thin"},null,8,Qo)):(e.openBlock(),e.createElementBlock("svg",Xo,ts)),e.createElementVNode("p",ns,e.toDisplayString(d.profile.name),1),(e.openBlock(),e.createElementBlock("svg",{onClick:e.withModifiers(m=>l.$router.push({name:"Organization Edit",params:{_id:d._id}}),["stop"]),class:"t-transp hover-scale-1 z-index-1 pos-absolute pos-t-regular pos-r-regular i-medium",width:"13",height:"12",viewBox:"0 0 13 12",xmlns:"http://www.w3.org/2000/svg"},ls,8,os)),e.createElementVNode("p",as,e.toDisplayString(d.profile.description.slice(0,120)+"..."),1)],8,Yo))),128))]))])]))}};const rs={class:"flex-stretch flex-nojustify flex-nowrap flex shop-cart-item"},cs=["src"],ds={key:1,width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aspect-1x1",style:{"object-fit":"cover"}},ms=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),us=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),ps=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),hs=e.createElementVNode("path",{fill:"#00ff88",d:"M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"},null,-1),_s=[ms,us,ps,hs],gs={class:"text-left"},fs={class:"name"},bs={key:0,class:"t-transp"},vs={key:1,class:"t-transp"},ks={key:2,class:"t-transp"},ys={class:"t-main t-demi price mn-small"},ws={key:0},$s={key:0,class:"flex-nojustify flex"},Vs={class:"flex-nowrap flex"},Es=e.createElementVNode("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),Cs=[Es],Bs={__name:"CardOrderItem",props:{product:Object,editable:String,increase:Function,decrease:Function,remove:Function},setup(t){return h.useRouter(),(o,n)=>(e.openBlock(),e.createElementBlock("div",rs,[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,class:"bg-grey aspect-1x1",src:t.product.images[0]},null,8,cs)):e.createCommentVNode("",!0),t.product.images[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",ds,_s)),e.createElementVNode("div",gs,[e.createElementVNode("p",fs,[e.createTextVNode(e.toDisplayString(t.product.name)+" ",1),t.product.size?(e.openBlock(),e.createElementBlock("span",bs,", "+e.toDisplayString(t.product.size),1)):e.createCommentVNode("",!0),typeof t.product.color=="string"&&t.product.size?(e.openBlock(),e.createElementBlock("span",vs,", ")):e.createCommentVNode("",!0),typeof t.product.color=="string"?(e.openBlock(),e.createElementBlock("span",ks,e.toDisplayString(t.product.color),1)):e.createCommentVNode("",!0)]),e.createElementVNode("p",ys,[t.editable?(e.openBlock(),e.createElementBlock("span",ws,e.toDisplayString(t.product.quantity)+" x ",1)):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(t.product.price)+" "+e.toDisplayString(o.returnCurrency()),1)]),t.editable?(e.openBlock(),e.createElementBlock("div",$s,[e.createElementVNode("div",Vs,[e.createElementVNode("button",{onClick:n[0]||(n[0]=s=>t.decrease(t.product)),class:"mn-r-thin bg-grey button-square button"},"-"),e.createElementVNode("button",{onClick:n[1]||(n[1]=s=>t.increase(t.product)),class:"mn-r-thin bg-grey button-square button"},"+")]),e.createElementVNode("button",{onClick:n[2]||(n[2]=s=>t.remove(t.product)),class:"hover_br-transp hover_br-l-dark bg-transp button-square button"},Cs)])):e.createCommentVNode("",!0)])]))}},Ns={class:"pd-medium br-b br-solid br-black-transp flex-v-center flex-nowrap flex"},xs=["src"],Ls={key:1,class:"h-4r w-4r radius-extra",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ss=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),Os=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",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"},null,-1),zs=[Ss,Os],Ds={class:"mn-l-small"},Ms={class:"h3 mn-r-semi mn-thin"},Ps={class:"w-max star-container flex-v-center flex"},As={class:"mn-r-thin pd-r-thin pd-l-thin pd-extra-thin radius-small t-semi uppercase bg-main p-small"},Fs=["src"],Ts={class:"p-small t-semi mn-r-thin"},qs={class:"p-small"},Is={key:0,class:"pd-medium"},js={class:"mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},Zs={class:"t-black p-medium t-semi"},Rs=e.createElementVNode("span",{class:"mn-r-small"},"30-60min",-1),Hs=e.createElementVNode("span",{class:"mn-r-auto"},"$50 min",-1),Us={class:"d-block o-scroll flex-nowrap flex"},Ks=e.createElementVNode("button",{class:"flex-center flex-nowrap flex shop-cart-item pd-thin radius-medium w-15r bg-main button"},"View menu",-1),Ws={__name:"CardOrganization",props:{organization:Object},setup(t){return h.useRouter(),(o,n)=>(e.openBlock(),e.createElementBlock("div",{class:"w-100 mn-small bg-grey radius-big o-hidden br-solid br-1px br-grey",onClick:n[0]||(n[0]=s=>o.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",Ns,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:"/"+t.organization.profile.photo,class:"h-4r w-4r radius-extra"},null,8,xs)):(e.openBlock(),e.createElementBlock("svg",Ls,zs)),e.createElementVNode("div",Ds,[e.createElementVNode("p",Ms,e.toDisplayString(t.organization.profile.name),1),e.createElementVNode("div",Ps,[e.createElementVNode("span",As,e.toDisplayString(t.organization.types[0]),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,s=>e.createElementVNode("img",{class:"i-small mn-r-thin",src:s<=t.organization.rating.median?"/icons/star.svg":"/icons/star-stroke.svg"},null,8,Fs)),64)),e.createElementVNode("span",Ts,e.toDisplayString(t.organization.rating.median),1),e.createElementVNode("span",qs,"("+e.toDisplayString(t.organization.rating.amount)+")",1)])])]),t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",Is,[e.createElementVNode("div",js,[e.createElementVNode("p",Zs,e.toDisplayString(t.organization.products.length)+" items: ",1),Rs,Hs]),e.createElementVNode("div",Us,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products,s=>(e.openBlock(),e.createBlock(Bs,{onClick:e.withModifiers(a=>o.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:s._id}}),["stop"]),key:s._id,editable:!1,product:s,class:"pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"},null,8,["onClick","product"]))),128)),Ks])])):e.createCommentVNode("",!0)]))}};var Js=Object.defineProperty,Ys=Object.defineProperties,Qs=Object.getOwnPropertyDescriptors,S=Object.getOwnPropertySymbols,Xs=Object.prototype.hasOwnProperty,Gs=Object.prototype.propertyIsEnumerable,O=(t,o,n)=>o in t?Js(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,k=(t,o)=>{for(var n in o||(o={}))Xs.call(o,n)&&O(t,n,o[n]);if(S)for(var n of S(o))Gs.call(o,n)&&O(t,n,o[n]);return t},z=(t,o)=>Ys(t,Qs(o));const el={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const o=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(o){const n=this.getDropdownViewport(),{top:s,bottom:a,height:i}=o.getBoundingClientRect();if(s<n.top)return this.$refs.dropdownMenu.scrollTop=o.offsetTop;if(a>n.bottom)return this.$refs.dropdownMenu.scrollTop=o.offsetTop-(n.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},tl={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},nl={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(t){this.mutableLoading=t}},methods:{toggleLoading(t=null){return t==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=t}}},B=(t,o)=>{const n=t.__vccOpts||t;for(const[s,a]of o)n[s]=a;return n},ol={},sl={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},ll=e.createElementVNode("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),al=[ll];function il(t,o){return e.openBlock(),e.createElementBlock("svg",sl,al)}const rl=B(ol,[["render",il]]),cl={},dl={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},ml=e.createElementVNode("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),ul=[ml];function pl(t,o){return e.openBlock(),e.createElementBlock("svg",dl,ul)}const hl=B(cl,[["render",pl]]),D={Deselect:rl,OpenIndicator:hl},_l={mounted(t,{instance:o}){if(o.appendToBody){const{height:n,top:s,left:a,width:i}=o.$refs.toggle.getBoundingClientRect();let c=window.scrollX||window.pageXOffset,l=window.scrollY||window.pageYOffset;t.unbindPosition=o.calculatePosition(t,o,{width:i+"px",left:c+a+"px",top:l+s+n+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:o}){o.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function gl(t){const o={};return Object.keys(t).sort().forEach(n=>{o[n]=t[n]}),JSON.stringify(o)}let fl=0;function bl(){return++fl}const vl={components:k({},D),directives:{appendToBody:_l},mixins:[el,tl,nl],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:t=>t},selectable:{type:Function,default:t=>!0},getOptionLabel:{type:Function,default(t){return typeof t=="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(t)}.
|
2
|
-
https://vue-select.org/api/props.html#getoptionlabel`):t}},getOptionKey:{type:Function,default(t){if(typeof t!="object")return t;try{return t.hasOwnProperty("id")?t.id:gl(t)}catch(o){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.
|
3
|
-
https://vue-select.org/api/props.html#getoptionkey`,t,o)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(t,o,n){return(o||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,o){return t.filter(n=>{let s=this.getOptionLabel(n);return typeof s=="number"&&(s=s.toString()),this.filterBy(n,s,o)})}},createOption:{type:Function,default(t){return typeof this.optionList[0]=="object"?{[this.label]:t}:t}},resetOnOptionsChange:{default:!1,validator:t=>["function","boolean"].includes(typeof t)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:t,multiple:o}){return t&&!o}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(t,o)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,o,{width:n,top:s,left:a}){t.style.top=s,t.style.left=a,t.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:o,mutableLoading:n}){return t?!1:o&&!n}},uid:{type:[String,Number],default:()=>bl()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let t=this.modelValue;return this.isTrackingValues&&(t=this.$data._value),t!=null&&t!==""?[].concat(t):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:k({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:o=>this.search=o.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:z(k({},t),{deselect:this.deselect}),footer:z(k({},t),{deselect:this.deselect})}},childComponents(){return k(k({},D),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;const o=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){const n=this.createOption(this.search);this.optionExists(n)||o.unshift(n)}return o},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(t,o){const n=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(t,o,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&n()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple(){this.clearSelection()},open(t){this.$emit(t?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(t){Array.isArray(t)?this.$data._value=t.map(o=>this.findOptionFromReducedValue(o)):this.$data._value=this.findOptionFromReducedValue(t)},select(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&(this.$emit("option:created",t),this.pushTag(t)),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect(t){this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter(o=>!this.optionComparator(o,t))),this.$emit("option:deselected",t)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(t){typeof this.modelValue>"u"&&(this.$data._value=t),t!==null&&(Array.isArray(t)?t=t.map(o=>this.reduce(o)):t=this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown(t){const o=t.target!==this.searchEl;o&&t.preventDefault();const n=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||n.filter(Boolean).some(s=>s.contains(t.target)||s===t.target)){t.preventDefault();return}this.open&&o?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(t){return this.selectedValue.some(o=>this.optionComparator(o,t))},isOptionDeselectable(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator(t,o){return this.getOptionKey(t)===this.getOptionKey(o)},findOptionFromReducedValue(t){const o=s=>JSON.stringify(this.reduce(s))===JSON.stringify(t),n=[...this.options,...this.pushedTags].filter(o);return n.length===1?n[0]:n.find(s=>this.optionComparator(s,this.$data._value))||t},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let t=null;this.multiple&&(t=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(t)}},optionExists(t){return this.optionList.some(o=>this.optionComparator(o,t))},normalizeOptionForSlot(t){return typeof t=="object"?t:{[this.label]:t}},pushTag(t){this.pushedTags.push(t)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:t,multiple:o}=this;this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:o})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(t){const o=a=>(a.preventDefault(),!this.isComposing&&this.typeAheadSelect()),n={8:a=>this.maybeDeleteValue(),9:a=>this.onTab(),27:a=>this.onEscape(),38:a=>(a.preventDefault(),this.typeAheadUp()),40:a=>(a.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(a=>n[a]=o);const s=this.mapKeydown(n,this);if(typeof s[t.keyCode]=="function")return s[t.keyCode](t)}}},kl=["dir"],yl=["id","aria-expanded","aria-owns"],wl={ref:"selectedOptions",class:"vs__selected-options"},$l=["disabled","title","aria-label","onClick"],Vl={ref:"actions",class:"vs__actions"},El=["disabled"],Cl={class:"vs__spinner"},Bl=["id"],Nl=["id","aria-selected","onMouseover","onClick"],xl={key:0,class:"vs__no-options"},Ll=e.createTextVNode(" Sorry, no matching options. "),Sl=["id"];function Ol(t,o,n,s,a,i){const c=e.resolveDirective("append-to-body");return e.openBlock(),e.createElementBlock("div",{dir:n.dir,class:e.normalizeClass(["v-select",i.stateClasses])},[e.renderSlot(t.$slots,"header",e.normalizeProps(e.guardReactiveProps(i.scope.header))),e.createElementVNode("div",{id:`vs${n.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":i.dropdownOpen.toString(),"aria-owns":`vs${n.uid}__listbox`,"aria-label":"Search for option",onMousedown:o[1]||(o[1]=l=>i.toggleDropdown(l))},[e.createElementVNode("div",wl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.selectedValue,(l,r)=>e.renderSlot(t.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(l),deselect:i.deselect,multiple:n.multiple,disabled:n.disabled},()=>[(e.openBlock(),e.createElementBlock("span",{key:n.getOptionKey(l),class:"vs__selected"},[e.renderSlot(t.$slots,"selected-option",e.normalizeProps(e.guardReactiveProps(i.normalizeOptionForSlot(l))),()=>[e.createTextVNode(e.toDisplayString(n.getOptionLabel(l)),1)]),n.multiple?(e.openBlock(),e.createElementBlock("button",{key:0,ref_for:!0,ref:d=>a.deselectButtons[r]=d,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(l)}`,"aria-label":`Deselect ${n.getOptionLabel(l)}`,onClick:d=>i.deselect(l)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.childComponents.Deselect)))],8,$l)):e.createCommentVNode("",!0)]))])),256)),e.renderSlot(t.$slots,"search",e.normalizeProps(e.guardReactiveProps(i.scope.search)),()=>[e.createElementVNode("input",e.mergeProps({class:"vs__search"},i.scope.search.attributes,e.toHandlers(i.scope.search.events)),null,16)])],512),e.createElementVNode("div",Vl,[e.withDirectives(e.createElementVNode("button",{ref:"clearButton",disabled:n.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:o[0]||(o[0]=(...l)=>i.clearSelection&&i.clearSelection(...l))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.childComponents.Deselect)))],8,El),[[e.vShow,i.showClearButton]]),e.renderSlot(t.$slots,"open-indicator",e.normalizeProps(e.guardReactiveProps(i.scope.openIndicator)),()=>[n.noDrop?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.childComponents.OpenIndicator),e.normalizeProps(e.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),e.renderSlot(t.$slots,"spinner",e.normalizeProps(e.guardReactiveProps(i.scope.spinner)),()=>[e.withDirectives(e.createElementVNode("div",Cl,"Loading...",512),[[e.vShow,t.mutableLoading]])])],512)],40,yl),e.createVNode(e.Transition,{name:n.transition},{default:e.withCtx(()=>[i.dropdownOpen?e.withDirectives((e.openBlock(),e.createElementBlock("ul",{id:`vs${n.uid}__listbox`,ref:"dropdownMenu",key:`vs${n.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:o[2]||(o[2]=e.withModifiers((...l)=>i.onMousedown&&i.onMousedown(...l),["prevent"])),onMouseup:o[3]||(o[3]=(...l)=>i.onMouseUp&&i.onMouseUp(...l))},[e.renderSlot(t.$slots,"list-header",e.normalizeProps(e.guardReactiveProps(i.scope.listHeader))),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.filteredOptions,(l,r)=>(e.openBlock(),e.createElementBlock("li",{id:`vs${n.uid}__option-${r}`,key:n.getOptionKey(l),role:"option",class:e.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(l)&&r===t.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(l),"vs__dropdown-option--highlight":r===t.typeAheadPointer,"vs__dropdown-option--disabled":!n.selectable(l)}]),"aria-selected":r===t.typeAheadPointer?!0:null,onMouseover:d=>n.selectable(l)?t.typeAheadPointer=r:null,onClick:e.withModifiers(d=>n.selectable(l)?i.select(l):null,["prevent","stop"])},[e.renderSlot(t.$slots,"option",e.normalizeProps(e.guardReactiveProps(i.normalizeOptionForSlot(l))),()=>[e.createTextVNode(e.toDisplayString(n.getOptionLabel(l)),1)])],42,Nl))),128)),i.filteredOptions.length===0?(e.openBlock(),e.createElementBlock("li",xl,[e.renderSlot(t.$slots,"no-options",e.normalizeProps(e.guardReactiveProps(i.scope.noOptions)),()=>[Ll])])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"list-footer",e.normalizeProps(e.guardReactiveProps(i.scope.listFooter)))],40,Bl)),[[c]]):(e.openBlock(),e.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,Sl))]),_:3},8,["name"]),e.renderSlot(t.$slots,"footer",e.normalizeProps(e.guardReactiveProps(i.scope.footer)))],10,kl)}const K=B(vl,[["render",Ol]]);const zl={class:"w-100"},Dl={class:"flex"},Ml={class:"mn-regular"},Pl={class:"flex-column flex-wrap block"},Al={key:0,class:"w-100"},Fl={class:"w-100 flex-center flex-nowrap flex"},Tl={class:"mn-r-regular w-100"},ql=["onClick"],Il={key:0,class:"mn-t-small mn-small w-100"},jl={__name:"EditArray",props:{name:Object,items:Array},emits:["add","remove"],setup(t,{emit:o}){h.useRouter(),h.useRoute();let n=e.reactive([]);e.toRefs(n);const s=e.ref(null),a=e.ref(null),i=e.ref(null);e.computed(()=>{if(s.value===null||i.value===null||i.value==="")return!0;if(s.value.modifications.length>0)return a.value===null});function c(l){store.commit("leftovers/deleteItemFromLeftover",l)}return(l,r)=>(e.openBlock(),e.createElementBlock("div",zl,[e.createElementVNode("div",Dl,[e.createElementVNode("h3",Ml,e.toDisplayString(t.name),1)]),e.createElementVNode("ul",Pl,[t.items.length<1?(e.openBlock(),e.createElementBlock("span",Al,"Вы еще не добавили позиции")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(d,m)=>(e.openBlock(),e.createElementBlock("li",{key:d._id,class:"w-100"},[e.createElementVNode("div",Fl,[e.createElementVNode("span",Tl,e.toDisplayString(d.name),1),e.createElementVNode("a",{class:"w-20 button",onClick:u=>c(d)},"Удалить",8,ql)]),m!=t.items.length-1?(e.openBlock(),e.createElementBlock("hr",Il)):e.createCommentVNode("",!0)]))),128))])]))}},Zl={class:"unit"},Rl={class:"unit-details"},Hl={key:0},Ul={class:"subunits"},Kl={__name:"Unit",props:{unit:{type:Object,required:!0},editMode:{type:Boolean,required:!0}},setup(t){const o=t,n=e.ref({...o.unit});e.watch(o.unit,()=>{n.value={...o.unit}});async function s(){emit("unit-updated",n.value)}async function a(){emit("subunit-added",o.unit._id)}return(i,c)=>{const l=e.resolveComponent("unit-component");return e.openBlock(),e.createElementBlock("div",Zl,[e.createElementVNode("div",Rl,[e.createElementVNode("h3",null,e.toDisplayString(t.unit.name),1),e.createElementVNode("p",null,e.toDisplayString(t.unit.description),1),t.editMode?(e.openBlock(),e.createElementBlock("div",Hl,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=r=>n.value.name=r),placeholder:"Название отдела"},null,512),[[e.vModelText,n.value.name]]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=r=>n.value.description=r),placeholder:"Описание отдела"},null,512),[[e.vModelText,n.value.description]]),e.createElementVNode("button",{onClick:s},"Сохранить"),e.createElementVNode("button",{onClick:a},"Добавить подотдел")])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ul,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.unit.subunits,(r,d)=>(e.openBlock(),e.createBlock(l,{key:d,unit:r,"edit-mode":t.editMode},null,8,["unit","edit-mode"]))),128))])])}}};const Wl={class:"br-grey radius-small mn-small"},Jl={key:1,class:"pd-small br-grey br-1px br-solid"},Yl=["disabled"],Ql={__name:"DepartmentMemberModify",props:{isPopupOpen:Boolean,department:Number,departments:Array,maindepartment:Object,alldepartments:Array},emits:["callback","remove"],setup(t,{emit:o}){const n=t,s=e.ref({subdepartment:null});n.department!==null&&(s.value=n.departments[n.department]);function a(r,d,m){return r.filter(u=>!(d.some(f=>f._id===u._id)||m._id===u._id))}const i=e.computed(()=>a(n.alldepartments,n.departments,n.maindepartment));async function c(){n.departments.push(s.value.subdepartment),o("callback")}async function l(){n.departments.splice(n.department,1),o("callback")}return(r,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Wl,[n.department===null?(e.openBlock(),e.createBlock(e.unref(K),{key:0,modelValue:s.value.subdepartment,"onUpdate:modelValue":d[0]||(d[0]=m=>s.value.subdepartment=m),options:e.unref(i),"get-option-label":m=>m.name,class:"w-100 mn-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",Jl,e.toDisplayString(s.value.name?s.value.name:"Безымянный"),1))]),n.department===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!s.value.subdepartment,onClick:c,class:"w-100 button bg-blue t-white"}," Добавить отдел ",8,Yl)):e.createCommentVNode("",!0),n.department!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:l,class:"w-100 button bg-red t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)]))}},Xl=_._export_sfc(Ql,[["__scopeId","data-v-4bf9162d"]]);const Gl={class:"br-grey radius-small mn-small"},ea={key:1,class:"pd-small br-grey br-1px br-solid"},ta=["disabled"],na={__name:"DepartmentSubDepartmentModify",props:{isPopupOpen:Boolean,department:Number,departments:Array,maindepartment:Object,alldepartments:Array},emits:["callback","remove"],setup(t,{emit:o}){const n=t,s=e.ref({subdepartment:null});n.department!==null&&(s.value=n.departments[n.department]);function a(r,d,m){return r.filter(u=>!(d.some(f=>f._id===u._id)||m._id===u._id))}const i=e.computed(()=>a(n.alldepartments,n.departments,n.maindepartment));async function c(){n.departments.push(s.value.subdepartment),o("callback")}async function l(){n.departments.splice(n.department,1),o("callback")}return(r,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Gl,[n.department===null?(e.openBlock(),e.createBlock(e.unref(K),{key:0,modelValue:s.value.subdepartment,"onUpdate:modelValue":d[0]||(d[0]=m=>s.value.subdepartment=m),options:e.unref(i),"get-option-label":m=>m.name,class:"w-100 mn-small"},null,8,["modelValue","options","get-option-label"])):(e.openBlock(),e.createElementBlock("div",ea,e.toDisplayString(s.value.name?s.value.name:"Безымянный"),1))]),n.department===null?(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!s.value.subdepartment,onClick:c,class:"w-100 button bg-blue t-white"}," Добавить отдел ",8,ta)):e.createCommentVNode("",!0),n.department!==null?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:l,class:"w-100 button bg-red t-white"}," Удалить отдел ")):e.createCommentVNode("",!0)]))}},oa=_._export_sfc(na,[["__scopeId","data-v-09bfd344"]]);const sa={class:"br-grey radius-small mn-small"},la={__name:"Places",props:{isPopupOpen:Boolean,place:Number,places:Array},emits:["callback"],setup(t,{emit:o}){const n=t,s=e.ref({logo:"",name:"",address:""});n.place!==null&&(s.value=n.places[n.place]);const a=e.ref(null);async function i(){try{await x.validateInputs(a,x.validateLength,s.value.name,"Некорректное название")}catch{throw new Error}n.place!==null?(n.places[n.place]=s.value,o("callback")):(n.places.push(s.value),o("callback"))}return(c,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",sa,[e.createVNode(w.Select,{options:[{name:"Кафе",value:"cafe"},{name:"Бар",value:"bar"},{name:"Ресторан",value:"restaraunt"},{name:"Пиццерия",value:"pizzeria"},{name:"Ночной клуб",value:"night-club"},{name:"Шаверма",value:"shaverma"},{name:"Кофейня",value:"coffee"}],prop:s.value,content:"type",label:"Тип",placeholder:"Тип заведения",size:"small"},null,8,["prop"]),e.createVNode(v.Field,{field:s.value.name,"onUpdate:field":l[0]||(l[0]=r=>s.value.name=r),label:"Название",validation:a.value,placeholder:"Введите название места"},null,8,["field","validation"]),e.createVNode(v.Field,{field:s.value.address,"onUpdate:field":l[1]||(l[1]=r=>s.value.address=r),label:"Адрес",validation:a.value,placeholder:"Введите адрес места"},null,8,["field","validation"]),e.createVNode(v.Field,{field:s.value.phone,"onUpdate:field":l[2]||(l[2]=r=>s.value.phone=r),label:"Телефон",validation:a.value,placeholder:"Введите телефон места"},null,8,["field","validation"])]),e.createElementVNode("button",{onClick:i,class:"w-100 button bg-blue t-white"},e.toDisplayString(n.place!==null?"Редактировать заведение":"Добавить заведение"),1)]))}},aa=_._export_sfc(la,[["__scopeId","data-v-9e5ccdac"]]);const ia=t=>(e.pushScopeId("data-v-20739d92"),t=t(),e.popScopeId(),t),ra={class:"documents"},ca=ia(()=>e.createElementVNode("h3",{class:"mn-small"},"Список документов",-1)),da={class:"mn-big cols-4"},ma=["onClick"],ua={class:"mn-small"},pa={class:"t-semi t-transp radius-small"},ha={__name:"Documents",setup(t){h.useRouter(),h.useRoute();let o=[{name:"Паспорт",status:"Не добавлен",inputs:[{type:"text",name:"Номер и серия"},{type:"text",name:"Место выдачи"},{type:"text",name:"Дата выдачи"}]},{name:"ИНН",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"СНИЛС",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]},{name:"Военный билет",status:"Не добавлен",inputs:[{type:"text",name:"Дата регистрации"}]}];const n=e.ref(!1),s=e.ref(null),a=l=>{s.value=l,n.value=!0},i=()=>{n.value=!1},c=()=>{i()};return e.watchEffect(()=>{}),(l,r)=>{const d=e.resolveComponent("Popup");return e.openBlock(),e.createElementBlock("div",ra,[ca,e.createElementVNode("div",da,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),(m,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,onClick:f=>a(u),class:"h-100 pd-medium bg-white radius-small"},[e.createElementVNode("h3",ua,e.toDisplayString(m.name),1),e.createElementVNode("p",pa,e.toDisplayString(m.status),1)],8,ma))),128))]),e.createVNode(d,{title:"Добавить документ",onClosePopup:i,isPopupOpen:n.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o)[s.value].inputs,m=>(e.openBlock(),e.createElementBlock("div",{key:m.name},[e.createVNode(v.Field,{field:m.value,"onUpdate:field":u=>m.value=u,label:m.name,_id:m.name,placeholder:m.name,class:"w-100"},null,8,["field","onUpdate:field","label","_id","placeholder"])]))),128)),e.createElementVNode("button",{onClick:c,class:"w-100 mn-small button"},"Отправить на верификацию")]),_:1},8,["isPopupOpen"])])}}},_a=_._export_sfc(ha,[["__scopeId","data-v-20739d92"]]),ga={};function fa(t,o){const n=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(n,null,{default:e.withCtx(({Component:s,route:a})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s)))]),_:1})}const ba=_._export_sfc(ga,[["render",fa]]),va=[{path:"organizations",component:ba,meta:{title:{en:"Organizations",ru:"Организации"}},children:[{path:":_id",name:"Organization",meta:{title:{en:"Organization",ru:"Организация"}},component:()=>Promise.resolve().then(()=>oo)},{path:"create",name:"Create Organization",title:{en:"Create Organization",ru:"Создать Организацию"},component:()=>Promise.resolve().then(()=>L)},{path:":_id/edit",name:"Organization Edit",meta:{title:{en:"Edit Organization",ru:"Редактировать Организацию"}},component:()=>Promise.resolve().then(()=>L)},{path:":_id/departments/create",name:"Department Creation",meta:{title:"Создание отдела"},component:()=>Promise.resolve().then(()=>require("./DepartmentEdit-d98c2239.js"))},{path:":_id/departments/:deparment",name:"Department",meta:{title:"Отдел"},component:()=>Promise.resolve().then(()=>vo)},{path:":_id/departments/:department/edit",name:"Department Edit",meta:{title:"Редактирование отдела"},component:()=>Promise.resolve().then(()=>require("./DepartmentEdit-d98c2239.js"))},{path:":_id/products/:product",name:"Product Organization",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("./Product-035252c0.js"))},{path:":_id/products/:product/edit",name:"ProductEdit",component:()=>Promise.resolve().then(()=>require("./ProductEdit-1e990a92.js"))},{path:":_id/products/add",name:"AddProduct",component:()=>Promise.resolve().then(()=>require("./ProductEdit-1e990a92.js"))}]}];exports.DepartmentMemberModify=Xl;exports.DepartmentSub=E;exports.DepartmentSubDepartmentModify=oa;exports.Documents=_a;exports.Places=aa;exports.User=C;exports._sfc_main=q;exports._sfc_main$1=T;exports._sfc_main$10=A;exports._sfc_main$11=j;exports._sfc_main$12=I;exports._sfc_main$13=F;exports._sfc_main$14=Qn;exports._sfc_main$15=Z;exports._sfc_main$2=R;exports._sfc_main$3=H;exports._sfc_main$4=Po;exports._sfc_main$5=U;exports._sfc_main$6=is;exports._sfc_main$7=Ws;exports._sfc_main$8=jl;exports._sfc_main$9=Kl;exports.organizations=va;
|