@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
package/dist/Publics-becb1486.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("./organizations-dd07ba2c.js"),i=require("./EmptyState-23c13029.js"),a=require("./auth-7dff19e4.js"),u=require("./ButtonFollow-c4680999.js");const m={class:"w-100 o-hidden"},d=e.createElementVNode("header",{class:"flex-v-center flex-nowrap flex"},[e.createElementVNode("h3",{class:"mn-small"},"Recommended")],-1),_={key:1,class:"o-scroll flex-nowrap flex"},p={__name:"Publics",setup(f){let t=e.ref(null);e.onMounted(async()=>{t.value=await o.actions.read({user:a.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const l=({membership:s,isMember:r,targetId:n})=>{u.mutations.handleMembershipUpdate(t.value,s,r,n)};return(s,r)=>(e.openBlock(),e.createElementBlock("div",m,[d,!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(i._sfc_main,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-grey pd-medium"})):(e.openBlock(),e.createElementBlock("div",_,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(n,c)=>(e.openBlock(),e.createBlock(o._sfc_main,{key:n._id,organization:n,user:a.state.user,onUpdateMembership:l,class:e.normalizeClass(["w-30r",{"mn-r-small":c!==e.unref(t).length-1}])},null,8,["organization","user","class"]))),128)):e.createCommentVNode("",!0)]))]))}};exports._sfc_main=p;
|
package/dist/Publics-c6f6b824.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const t=require("vue"),m=require("./auth-5aa8e90c.js"),v=require("./CardOrganization-a05f3a19.js"),V=require("./EmptyState-7658d7d6.js"),B=require("./ButtonFollow-2ce169ca.js");var O=function e(s,i){if(s===i)return!0;if(s&&i&&typeof s=="object"&&typeof i=="object"){if(s.constructor!==i.constructor)return!1;var n,r,a;if(Array.isArray(s)){if(n=s.length,n!=i.length)return!1;for(r=n;r--!==0;)if(!e(s[r],i[r]))return!1;return!0}if(s.constructor===RegExp)return s.source===i.source&&s.flags===i.flags;if(s.valueOf!==Object.prototype.valueOf)return s.valueOf()===i.valueOf();if(s.toString!==Object.prototype.toString)return s.toString()===i.toString();if(a=Object.keys(s),n=a.length,n!==Object.keys(i).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(i,a[r]))return!1;for(r=n;r--!==0;){var l=a[r];if(!e(s[l],i[l]))return!1}return!0}return s!==s&&i!==i};const C=m.getDefaultExportFromCjs(O),D=(e,s)=>s.filter(i=>{const{text:n}=e;if(typeof i.rule=="string")return!new RegExp(i.rule).test(n);if(i.rule instanceof RegExp)return!i.rule.test(n);if({}.toString.call(i.rule)==="[object Function]")return i.rule(e)}).map(i=>i.classes),c=e=>JSON.parse(JSON.stringify(e)),L=(e,s)=>{let i=0;for(;i<e.length;){if(s(e[i],i,e))return i;i++}return-1},T=(e,s,i=[],n)=>{e.text===void 0&&(e={text:e});const r=D(e,i),a=L(s,d=>d===e),l=c(s),o=a!==-1?l.splice(a,1)[0]:c(e);return(n?n(l,o):l.map(d=>d.text).indexOf(o.text)!==-1)&&r.push("ti-duplicate"),r.length===0?r.push("ti-valid"):r.push("ti-invalid"),r},f=(e,...s)=>{e.text===void 0&&(e={text:e});const i=c(e);return i.tiClasses=T(e,...s),i},M=(e,...s)=>e.map(i=>f(i,e,...s));const N={name:"TagInput",props:{scope:{type:Object}}},A=["maxlength"];function F(e,s,i,n,r,a){return i.scope.edit?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>i.scope.tag.text=l),maxlength:i.scope.maxlength,type:"text",class:"ti-tag-input",size:"1",onInput:s[1]||(s[1]=l=>i.scope.validateTag(i.scope.index,l)),onBlur:s[2]||(s[2]=l=>i.scope.performCancelEdit(i.scope.index)),onKeydown:s[3]||(s[3]=l=>i.scope.performSaveEdit(i.scope.index,l))},null,40,A)),[[t.vModelText,i.scope.tag.text]]):t.createCommentVNode("",!0)}const I=m._export_sfc(N,[["render",F],["__scopeId","data-v-a1f1c345"]]),w=e=>!e.some(s=>{const i=!s.text;i&&console.warn('Missing property "text"',s);let n=!1;return s.classes&&(n=typeof s.classes!="string"),n&&console.warn('Property "classes" must be type of string',s),i||n}),S=e=>!e.some(s=>{if(typeof s=="number"){const i=isFinite(s)&&Math.floor(s)===s;return i||console.warn("Only numerics are allowed for this prop. Found:",s),!i}else if(typeof s=="string"){const i=/\W|[a-z]|!\d/i.test(s);return i||console.warn("Only alpha strings are allowed for this prop. Found:",s),!i}else return console.warn("Only numeric and string values are allowed. Found:",s),!1}),K={modelValue:{type:String,default:"",required:!0},tags:{type:Array,default:()=>[],validator:w},autocompleteItems:{type:Array,default:()=>[],validator:w},allowEditTags:{type:Boolean,default:!1},autocompleteFilterDuplicates:{default:!0,type:Boolean},addOnlyFromAutocomplete:{type:Boolean,default:!1},autocompleteMinLength:{type:Number,default:1},autocompleteAlwaysOpen:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Add Tag"},addOnKey:{type:Array,default:()=>[13],validator:S},saveOnKey:{type:Array,default:()=>[13],validator:S},maxTags:{type:Number},maxlength:{type:Number},validation:{type:Array,default:()=>[],validator(e){return!e.some(s=>{const i=!s.rule;i&&console.warn('Property "rule" is missing',s);const n=s.rule&&(typeof s.rule=="string"||s.rule instanceof RegExp||{}.toString.call(s.rule)==="[object Function]");n||console.warn("A rule must be type of string, RegExp or function. Found:",JSON.stringify(s.rule));const r=!s.classes;r&&console.warn('Property "classes" is missing',s);const a=s.type&&typeof s.type!="string";return a&&console.warn('Property "type" must be type of string. Found:',s),!n||i||r||a})}},separators:{type:Array,default:()=>[";"],validator(e){return!e.some(s=>{const i=typeof s!="string";return i&&console.warn("Separators must be type of string. Found:",s),i})}},avoidAddingDuplicates:{type:Boolean,default:!0},addOnBlur:{type:Boolean,default:!0},isDuplicate:{type:Function,default:null},addFromPaste:{type:Boolean,default:!0},deleteOnBackspace:{default:!0,type:Boolean},onBeforeAddingTag:Function,onBeforeDeletingTag:Function,onBeforeEditingTag:Function,onBeforeSavingTag:Function},P={name:"VueTagsInput",components:{TagInput:I},props:K,emits:["adding-duplicate","before-adding-tag","before-deleting-tag","before-editing-tag","before-saving-tag","max-tags-reached","saving-duplicate","tags-changed","tag-clicked","update:modelValue","update:tags"],inheritAttrs:!1,data(){return{tagCenter:[],newTag:null,tagsCopy:[],tagsEditStatus:null,deletionMark:null,deletionMarkTime:null,selectedItem:null,focused:null}},computed:{autocompleteOpen(){return this.autocompleteAlwaysOpen?!0:this.newTag!==null&&this.newTag.length>=this.autocompleteMinLength&&this.filteredAutocompleteItems.length>0&&this.focused},filteredAutocompleteItems(){const e=this.autocompleteItems.map(s=>f(s,this.tags,this.validation,this.isDuplicate));return this.autocompleteFilterDuplicates?e.filter(this.duplicateFilter):e}},methods:{createClasses:T,getSelectedIndex(e){const s=this.filteredAutocompleteItems,i=this.selectedItem,n=s.length-1;if(s.length!==0)return i===null?0:e==="before"&&i===0?n:e==="after"&&i===n?0:e==="after"?i+1:i-1},selectDefaultItem(){this.addOnlyFromAutocomplete&&this.filteredAutocompleteItems.length>0?this.selectedItem=0:this.selectedItem=null},selectItem(e,s){e.preventDefault(),this.selectedItem=this.getSelectedIndex(s)},isSelected(e){return this.selectedItem===e},isMarked(e){return this.deletionMark===e},setTagCenter(e){e&&this.tagCenter.push(e)},invokeDelete(){if(!this.deleteOnBackspace||this.newTag.length>0)return;const e=this.tagsCopy.length-1;this.deletionMark===null?(this.deletionMarkTime=setTimeout(()=>this.deletionMark=null,1e3),this.deletionMark=e):this.performDeleteTag(e)},addTagsFromPaste(){this.addFromPaste&&setTimeout(()=>this.performAddTags(this.newTag),10)},performEditTag(e){this.allowEditTags&&(this.onBeforeAddingTag||this.editTag(e),this.$emit("before-editing-tag",{index:e,tag:this.tagsCopy[e],editTag:()=>this.editTag(e)}))},editTag(e){this.allowEditTags&&(this.toggleEditMode(e),this.focus(e))},toggleEditMode(e){!this.allowEditTags||this.disabled||(this.tagsEditStatus[e]=!this.tagsEditStatus[e])},createChangedTag(e,s){const i=this.tagsCopy[e];i.text=s?s.target.value:this.tagsCopy[e].text,this.tagsCopy[e]=f(i,this.tagsCopy,this.validation,this.isDuplicate)},focus(e){this.$nextTick(()=>{const s=this.tagCenter[e].querySelector("input.ti-tag-input");s&&s.focus()})},quote(e){return e.replace(/([()[{*+.$^\\|?])/g,"\\$1")},cancelEdit(e){this.tags[e]&&(this.tagsCopy[e]=c(f(this.tags[e],this.tags,this.validation,this.isDuplicate)),this.tagsEditStatus[e]=!1)},hasForbiddingAddRule(e){return e.some(s=>{const i=this.validation.find(n=>s===n.classes);return i?i.disableAdd:!1})},createTagTexts(e){const s=new RegExp(this.separators.map(i=>this.quote(i)).join("|"));return e.split(s).map(i=>({text:i}))},performDeleteTag(e){this.onBeforeDeletingTag||this.deleteTag(e),this.$emit("before-deleting-tag",{index:e,tag:this.tagsCopy[e],deleteTag:()=>this.deleteTag(e)})},deleteTag(e){this.disabled||(this.deletionMark=null,clearTimeout(this.deletionMarkTime),this.tagsCopy.splice(e,1),this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},noTriggerKey(e,s){const i=this[s].indexOf(e.keyCode)!==-1||this[s].indexOf(e.key)!==-1;return i&&e.preventDefault(),!i},performAddTags(e,s,i){if(this.disabled||s&&this.noTriggerKey(s,"addOnKey"))return;let n=[];typeof e=="object"&&(n=[e]),typeof e=="string"&&(n=this.createTagTexts(e)),n=n.filter(r=>r.text.trim().length>0),n.forEach(r=>{r=f(r,this.tags,this.validation,this.isDuplicate),this.onBeforeAddingTag||this.addTag(r,i),this.$emit("before-adding-tag",{tag:r,addTag:()=>this.addTag(r,i)})})},duplicateFilter(e){return this.isDuplicate?!this.isDuplicate(this.tagsCopy,e):!this.tagsCopy.find(s=>s.text===e.text)},addTag(e,s="new-tag-input"){const i=this.filteredAutocompleteItems.map(n=>n.text);this.addOnlyFromAutocomplete&&i.indexOf(e.text)===-1||this.$nextTick(()=>{if(this.maxTags&&this.maxTags<=this.tagsCopy.length)return this.$emit("max-tags-reached",e);if(this.avoidAddingDuplicates&&!this.duplicateFilter(e))return this.$emit("adding-duplicate",e);this.hasForbiddingAddRule(e.tiClasses)||(this.newTag="",this.tagsCopy.push(e),this.$emit("update:tags",this.tagsCopy),s==="autocomplete"&&this.$refs.newTagInput.focus(),this.$emit("tags-changed",this.tagsCopy))})},performSaveTag(e,s){const i=this.tagsCopy[e];this.disabled||s&&this.noTriggerKey(s,"addOnKey")||i.text.trim().length!==0&&(this["on-before-saving-tag"]||this.saveTag(e,i),this.$emit("before-saving-tag",{index:e,tag:i,saveTag:()=>this.saveTag(e,i)}))},saveTag(e,s){if(this.avoidAddingDuplicates){const i=c(this.tagsCopy),n=i.splice(e,1)[0];if(this.isDuplicate?this.isDuplicate(i,n):i.map(a=>a.text).indexOf(n.text)!==-1)return this.$emit("saving-duplicate",s)}this.hasForbiddingAddRule(s.tiClasses)||(this.tagsCopy[e]=s,this.toggleEditMode(e),this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},tagsEqual(){return!this.tagsCopy.some((e,s)=>!C(e,this.tags[s]))},updateNewTag(e){const s=e.target.value;this.newTag=s,this.$emit("update:modelValue",s)},initTags(){this.tagsCopy=M(this.tags,this.validation,this.isDuplicate),this.tagsEditStatus=c(this.tags).map(()=>!1),this.tagsEqual()||this.$emit("update:tags",this.tagsCopy)},blurredOnClick(e){this.$el.contains(e.target)||this.$el.contains(document.activeElement)||this.performBlur(e)},performBlur(){this.addOnBlur&&this.focused&&this.performAddTags(this.newTag),this.focused=!1}},watch:{modelValue(e){this.addOnlyFromAutocomplete||(this.selectedItem=null),this.newTag=e},tags:{handler(){this.initTags()},deep:!0},autocompleteOpen:"selectDefaultItem"},created(){this.newTag=this.modelValue,this.initTags()},mounted(){this.selectDefaultItem(),document.addEventListener("click",this.blurredOnClick)},beforeUpdate(){this.tagCenter=[]},unmounted(){document.removeEventListener("click",this.blurredOnClick)}};const z={class:"ti-input"},R={key:0,class:"ti-tags"},H=["onClick"],G={class:"ti-content"},j={key:0,class:"ti-tag-left"},q=["onClick"],U={key:1,class:"ti-tag-right"},J={class:"ti-actions"},W=["onClick"],Y=["onClick"],Q={class:"ti-new-tag-input-wrapper"},X=["placeholder","value","maxlength","disabled"],Z=["onMouseover"],_=["onClick"];function x(e,s,i,n,r,a){const l=t.resolveComponent("tag-input");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue-tags-input",[{"ti-disabled":e.disabled},{"ti-focus":e.focused},e.$attrs.class]]),style:t.normalizeStyle(e.$attrs.style)},[t.createElementVNode("div",z,[e.tagsCopy?(t.openBlock(),t.createElementBlock("ul",R,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tagsCopy,(o,u)=>(t.openBlock(),t.createElementBlock("li",{key:u,style:t.normalizeStyle(o.style),class:t.normalizeClass([[{"ti-editing":e.tagsEditStatus[u]},o.tiClasses,o.classes,{"ti-deletion-mark":e.isMarked(u)}],"ti-tag"]),tabindex:"0",onClick:d=>e.$emit("tag-clicked",{tag:o,index:u})},[t.createElementVNode("div",G,[e.$slots["tag-left"]?(t.openBlock(),t.createElementBlock("div",j,[t.renderSlot(e.$slots,"tag-left",{tag:o,index:u,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_for:!0,ref:e.setTagCenter,class:"ti-tag-center"},[e.$slots["tag-center"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass({"ti-hidden":e.tagsEditStatus[u]}),onClick:d=>e.performEditTag(u)},t.toDisplayString(o.text),11,q)),e.$slots["tag-center"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:1,scope:{edit:e.tagsEditStatus[u],maxlength:e.maxlength,tag:o,index:u,validateTag:e.createChangedTag,performCancelEdit:e.cancelEdit,performSaveEdit:e.performSaveTag}},null,8,["scope"])),t.renderSlot(e.$slots,"tag-center",{tag:o,index:u,maxlength:e.maxlength,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,validateTag:e.createChangedTag,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0)],512),e.$slots["tag-right"]?(t.openBlock(),t.createElementBlock("div",U,[t.renderSlot(e.$slots,"tag-right",{tag:o,index:u,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",J,[e.$slots["tag-actions"]?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("i",{key:0,class:"ti-icon-undo",onClick:d=>e.cancelEdit(u)},null,8,W)),[[t.vShow,e.tagsEditStatus[u]]]),e.$slots["tag-actions"]?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("i",{key:1,class:"ti-icon-close",onClick:d=>e.performDeleteTag(u)},null,8,Y)),[[t.vShow,!e.tagsEditStatus[u]]]),e.$slots["tag-actions"]?t.renderSlot(e.$slots,"tag-actions",{key:2,tag:o,index:u,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0):t.createCommentVNode("",!0)])],14,H))),128)),t.createElementVNode("li",Q,[t.createElementVNode("input",t.mergeProps({ref:"newTagInput"},e.$attrs,{class:[[e.createClasses(e.newTag,e.tags,e.validation,e.isDuplicate)],"ti-new-tag-input"],placeholder:e.placeholder,value:e.newTag,maxlength:e.maxlength,disabled:e.disabled,type:"text",size:"1",onKeydown:[s[0]||(s[0]=o=>e.performAddTags(e.filteredAutocompleteItems[e.selectedItem]||e.newTag,o)),s[2]||(s[2]=t.withKeys((...o)=>e.invokeDelete&&e.invokeDelete(...o),["delete"])),s[3]||(s[3]=t.withKeys((...o)=>e.performBlur&&e.performBlur(...o),["tab"])),s[4]||(s[4]=t.withKeys(o=>e.selectItem(o,"before"),["up"])),s[5]||(s[5]=t.withKeys(o=>e.selectItem(o,"after"),["down"]))],onPaste:s[1]||(s[1]=(...o)=>e.addTagsFromPaste&&e.addTagsFromPaste(...o)),onInput:s[6]||(s[6]=(...o)=>e.updateNewTag&&e.updateNewTag(...o)),onFocus:s[7]||(s[7]=o=>e.focused=!0),onClick:s[8]||(s[8]=o=>e.addOnlyFromAutocomplete?!1:e.selectedItem=null)}),null,16,X)])])):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"between-elements",{},void 0,!0),e.autocompleteOpen?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["ti-autocomplete",e.$attrs.class]),onMouseout:s[9]||(s[9]=o=>e.selectedItem=null)},[t.renderSlot(e.$slots,"autocomplete-header",{},void 0,!0),t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredAutocompleteItems,(o,u)=>(t.openBlock(),t.createElementBlock("li",{key:u,style:t.normalizeStyle(o.style),class:t.normalizeClass([[o.tiClasses,o.classes,{"ti-selected-item":e.isSelected(u)}],"ti-item"]),onMouseover:d=>e.disabled?!1:e.selectedItem=u},[e.$slots["autocomplete-item"]?t.renderSlot(e.$slots,"autocomplete-item",{key:1,item:o,index:u,performAdd:d=>e.performAddTags(d,void 0,"autocomplete"),selected:e.isSelected(u)},void 0,!0):(t.openBlock(),t.createElementBlock("div",{key:0,onClick:d=>e.performAddTags(o,void 0,"autocomplete")},t.toDisplayString(o.text),9,_))],46,Z))),128))]),t.renderSlot(e.$slots,"autocomplete-footer",{},void 0,!0)],34)):t.createCommentVNode("",!0)],6)}const ee=m._export_sfc(P,[["render",x],["__scopeId","data-v-d14eec25"]]);const te=t.createElementVNode("h5",{class:"mn-thin"},"Tags (maximum 20):",-1),se={class:"mn-medium"},ie=t.createElementVNode("p",{class:"p-small mn-thin"},"Suggested:",-1),le=["onClick"],ne={key:1},re={__name:"BlockTags",props:["tags"],emits:["tags-changed"],setup(e,{emit:s}){const i=e,n=t.ref(""),r=t.ref([]),a=t.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);i.tags&&(r.value=i.tags.map(h=>({text:h})));const l=t.computed(()=>a.value.filter(h=>h.text.toLowerCase().includes(n.value.toLowerCase()))),o=t.computed(()=>a.value.filter(h=>!r.value.some(p=>p.text===h.text)));function u(h){r.value.push(h),s("tags-changed",r.value.map(p=>p.text))}function d(h){r.value=h,s("tags-changed",r.value.map(p=>p.text))}return(h,p)=>(t.openBlock(),t.createElementBlock("div",null,[te,t.createVNode(ee,{modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=g=>n.value=g),tags:r.value,"autocomplete-items":t.unref(l),"add-on-key":[13,":",";",","],"save-on-key":[13,":",";",","],separators:[";",","],"max-tags":20,maxlength:20,placeholder:"Please add tags","add-from-paste":!0,"allow-edit-tags":!0,onTagsChanged:d,class:"mn-thin bg-grey radius-medium pd-small"},null,8,["modelValue","tags","autocomplete-items"]),t.createElementVNode("p",se,[ie,t.unref(o).length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(o),(g,$)=>(t.openBlock(),t.createElementBlock("span",{onClick:Fe=>u(g),class:t.normalizeClass(["cursor-pointer ti-tag-toDefactor",{"mn-r-micro":$!==t.unref(o).length-1}])},t.toDisplayString(g.text),11,le))),256)):(t.openBlock(),t.createElementBlock("span",ne,"You added all suggested tags"))])]))}};function y(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function oe(e){return(...s)=>!e(...s)}function ae(e,s){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(s.trim())!==-1}function E(e,s,i,n){return s?e.filter(r=>ae(n(r,i),s)).sort((r,a)=>n(r,i).length-n(a,i).length):e}function ue(e){return e.filter(s=>!s.$isLabel)}function b(e,s){return i=>i.reduce((n,r)=>r[e]&&r[e].length?(n.push({$groupLabel:r[s],$isLabel:!0}),n.concat(r[e])):n,[])}function de(e,s,i,n,r){return a=>a.map(l=>{if(!l[i])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const o=E(l[i],e,s,r);return o.length?{[n]:l[n],[i]:o}:[]})}const k=(...e)=>s=>e.reduce((i,n)=>n(i),s),he={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,s){return y(e)?"":s?e[s]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",s=e.toLowerCase().trim();let i=this.options.concat();return this.internalSearch?i=this.groupValues?this.filterAndFlat(i,s,this.label):E(i,s,this.label,this.customLabel):i=this.groupValues?b(this.groupValues,this.groupLabel)(i):i,i=this.hideSelected?i.filter(oe(this.isSelected)):i,this.taggable&&s.length&&!this.isExistingOption(s)&&(this.tagPosition==="bottom"?i.push({isTag:!0,label:e}):i.unshift({isTag:!0,label:e})),i.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(s=>this.customLabel(s,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,s,i){return k(de(s,i,this.groupValues,this.groupLabel,this.customLabel),b(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return k(b(this.groupValues,this.groupLabel),ue)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const s=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(s)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(y(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const s=this.customLabel(e,this.label);return y(s)?"":s},select(e,s){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(s)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(s==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){s!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const s=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);if(s){if(this.wholeGroupSelected(s)){this.$emit("remove",s[this.groupValues],this.id);const i=this.internalValue.filter(n=>s[this.groupValues].indexOf(n)===-1);this.$emit("update:modelValue",i)}else{let i=s[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&i.splice(this.max-this.internalValue.length),this.$emit("select",i,this.id),this.$emit("update:modelValue",this.internalValue.concat(i))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(s=>this.isSelected(s)||this.isOptionDisabled(s))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,s=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const i=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const n=this.internalValue.slice(0,i).concat(this.internalValue.slice(i+1));this.$emit("update:modelValue",n)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&s&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,s=window.innerHeight-this.$el.getBoundingClientRect().bottom;s>this.maxHeight||s>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(s-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},pe={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,s){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(s)}},groupHighlight(e,s){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":s.$isLabel}];const i=this.options.find(n=>n[this.groupLabel]===s.$groupLabel);return i&&!this.wholeGroupDisabled(i)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(i)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}};const ce={name:"vue-multiselect",mixins:[he,pe],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}},me=["tabindex","aria-owns"],fe={ref:"tags",class:"multiselect__tags"},ge={class:"multiselect__tags-wrap"},ye=["textContent"],be=["onKeypress","onMousedown"],ve=["textContent"],we={class:"multiselect__spinner"},Se=["name","id","placeholder","value","disabled","tabindex","aria-controls"],ke=["id"],Te={key:0},Ee={class:"multiselect__option"},$e=["id","role"],Ve=["onClick","onMouseenter","data-select","data-selected","data-deselect"],Be=["data-select","data-deselect","onMouseenter","onMousedown"],Oe={class:"multiselect__option"},Ce={class:"multiselect__option"};function De(e,s,i,n,r,a){return t.openBlock(),t.createElementBlock("div",{tabindex:e.searchable?-1:i.tabindex,class:t.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":i.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:s[13]||(s[13]=l=>e.activate()),onBlur:s[14]||(s[14]=l=>e.searchable?!1:e.deactivate()),onKeydown:[s[15]||(s[15]=t.withKeys(t.withModifiers(l=>e.pointerForward(),["self","prevent"]),["down"])),s[16]||(s[16]=t.withKeys(t.withModifiers(l=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:s[17]||(s[17]=t.withKeys(t.withModifiers(l=>e.addPointerElement(l),["stop","self"]),["enter","tab"])),onKeyup:s[18]||(s[18]=t.withKeys(l=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[t.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[t.createElementVNode("div",{onMousedown:s[0]||(s[0]=t.withModifiers(l=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),t.renderSlot(e.$slots,"clear",{search:e.search}),t.createElementVNode("div",fe,[t.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[t.withDirectives(t.createElementVNode("div",ge,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.visibleValues,(l,o)=>t.renderSlot(e.$slots,"tag",{option:l,search:e.search,remove:e.removeElement},()=>[(t.openBlock(),t.createElementBlock("span",{class:"multiselect__tag",key:o},[t.createElementVNode("span",{textContent:t.toDisplayString(e.getOptionLabel(l))},null,8,ye),t.createElementVNode("i",{tabindex:"1",onKeypress:t.withKeys(t.withModifiers(u=>e.removeElement(l),["prevent"]),["enter"]),onMousedown:t.withModifiers(u=>e.removeElement(l),["prevent"]),class:"multiselect__tag-icon"},null,40,be)]))])),256))],512),[[t.vShow,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>i.limit?t.renderSlot(e.$slots,"limit",{key:0},()=>[t.createElementVNode("strong",{class:"multiselect__strong",textContent:t.toDisplayString(i.limitText(e.internalValue.length-i.limit))},null,8,ve)]):t.createCommentVNode("",!0)]),t.createVNode(t.Transition,{name:"multiselect__loading"},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"loading",{},()=>[t.withDirectives(t.createElementVNode("div",we,null,512),[[t.vShow,i.loading]])])]),_:3}),e.searchable?(t.openBlock(),t.createElementBlock("input",{key:0,ref:"search",name:i.name,id:e.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:e.placeholder,style:t.normalizeStyle(a.inputStyle),value:e.search,disabled:i.disabled,tabindex:i.tabindex,onInput:s[1]||(s[1]=l=>e.updateSearch(l.target.value)),onFocus:s[2]||(s[2]=t.withModifiers(l=>e.activate(),["prevent"])),onBlur:s[3]||(s[3]=t.withModifiers(l=>e.deactivate(),["prevent"])),onKeyup:s[4]||(s[4]=t.withKeys(l=>e.deactivate(),["esc"])),onKeydown:[s[5]||(s[5]=t.withKeys(t.withModifiers(l=>e.pointerForward(),["prevent"]),["down"])),s[6]||(s[6]=t.withKeys(t.withModifiers(l=>e.pointerBackward(),["prevent"]),["up"])),s[8]||(s[8]=t.withKeys(t.withModifiers(l=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:s[7]||(s[7]=t.withKeys(t.withModifiers(l=>e.addPointerElement(l),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,Se)):t.createCommentVNode("",!0),a.isSingleLabelVisible?(t.openBlock(),t.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:s[9]||(s[9]=t.withModifiers((...l)=>e.toggle&&e.toggle(...l),["prevent"]))},[t.renderSlot(e.$slots,"singleLabel",{option:a.singleValue},()=>[t.createTextVNode(t.toDisplayString(e.currentOptionLabel),1)])],32)):t.createCommentVNode("",!0),a.isPlaceholderVisible?(t.openBlock(),t.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:s[10]||(s[10]=t.withModifiers((...l)=>e.toggle&&e.toggle(...l),["prevent"]))},[t.renderSlot(e.$slots,"placeholder",{},()=>[t.createTextVNode(t.toDisplayString(e.placeholder),1)])],32)):t.createCommentVNode("",!0)],512),t.createVNode(t.Transition,{name:"multiselect"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["multiselect__content-wrapper",e.$attrs.class]),onFocus:s[11]||(s[11]=(...l)=>e.activate&&e.activate(...l)),tabindex:"-1",onMousedown:s[12]||(s[12]=t.withModifiers(()=>{},["prevent"])),style:t.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[t.createElementVNode("ul",{class:"multiselect__content",style:t.normalizeStyle(a.contentStyle),role:"listbox",id:"listbox-"+e.id},[t.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(t.openBlock(),t.createElementBlock("li",Te,[t.createElementVNode("span",Ee,[t.renderSlot(e.$slots,"maxElements",{},()=>[t.createTextVNode("Maximum of "+t.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):t.createCommentVNode("",!0),!e.max||e.internalValue.length<e.max?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.filteredOptions,(l,o)=>(t.openBlock(),t.createElementBlock("li",{class:"multiselect__element",key:o,id:e.id+"-"+o,role:l&&(l.$isLabel||l.$isDisabled)?null:"option"},[l&&(l.$isLabel||l.$isDisabled)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass([e.optionHighlight(o,l),"multiselect__option"]),onClick:t.withModifiers(u=>e.select(l),["stop"]),onMouseenter:t.withModifiers(u=>e.pointerSet(o),["self"]),"data-select":l&&l.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[t.renderSlot(e.$slots,"option",{option:l,search:e.search,index:o},()=>[t.createElementVNode("span",null,t.toDisplayString(e.getOptionLabel(l)),1)])],42,Ve)),l&&(l.$isLabel||l.$isDisabled)?(t.openBlock(),t.createElementBlock("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:t.normalizeClass([e.groupHighlight(o,l),"multiselect__option"]),onMouseenter:t.withModifiers(u=>e.groupSelect&&e.pointerSet(o),["self"]),onMousedown:t.withModifiers(u=>e.selectGroup(l),["prevent"])},[t.renderSlot(e.$slots,"option",{option:l,search:e.search,index:o},()=>[t.createElementVNode("span",null,t.toDisplayString(e.getOptionLabel(l)),1)])],42,Be)):t.createCommentVNode("",!0)],8,$e))),128)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("li",null,[t.createElementVNode("span",Oe,[t.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t.createTextVNode("No elements found. Consider changing the search query.")])])],512),[[t.vShow,i.showNoResults&&e.filteredOptions.length===0&&e.search&&!i.loading]]),t.withDirectives(t.createElementVNode("li",null,[t.createElementVNode("span",Ce,[t.renderSlot(e.$slots,"noOptions",{},()=>[t.createTextVNode("List is empty.")])])],512),[[t.vShow,i.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!i.loading]]),t.renderSlot(e.$slots,"afterList")],12,ke)],38),[[t.vShow,e.isOpen]])]),_:3})],42,me)}const Le=m._export_sfc(ce,[["render",De]]);const Me={class:"w-100 o-scroll"},Ne={key:1,class:"w-max flex-nowrap flex"},Ae={__name:"Publics",setup(e){let s=t.ref(null);t.onMounted(async()=>{s.value=await v.actions.read({user:m.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const i=({membership:n,isMember:r,targetId:a})=>{B.mutations.handleMembershipUpdate(s.value,n,r,a)};return(n,r)=>(t.openBlock(),t.createElementBlock("div",Me,[!t.unref(s)||t.unref(s).length<1?(t.openBlock(),t.createBlock(V._sfc_main,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-grey pd-medium"})):(t.openBlock(),t.createElementBlock("div",Ne,[t.unref(s)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(s),(a,l)=>(t.openBlock(),t.createBlock(v._sfc_main,{key:a._id,organization:a,user:m.state.user,onUpdateMembership:i,class:t.normalizeClass(["flex-child-shrink-0 flex-child",{"mn-r-small":l!==t.unref(s).length-1}])},null,8,["organization","user","class"]))),128)):t.createCommentVNode("",!0)]))]))}};exports.SelectMulti=Le;exports._sfc_main=re;exports._sfc_main$1=Ae;
|
package/dist/Publics-c9d5aa74.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const t=require("vue"),m=require("./auth-5aa8e90c.js"),v=require("./CardOrganization-0291683b.js"),V=require("./EmptyState-7658d7d6.js"),B=require("./ButtonFollow-2ce169ca.js");var O=function e(s,i){if(s===i)return!0;if(s&&i&&typeof s=="object"&&typeof i=="object"){if(s.constructor!==i.constructor)return!1;var n,r,a;if(Array.isArray(s)){if(n=s.length,n!=i.length)return!1;for(r=n;r--!==0;)if(!e(s[r],i[r]))return!1;return!0}if(s.constructor===RegExp)return s.source===i.source&&s.flags===i.flags;if(s.valueOf!==Object.prototype.valueOf)return s.valueOf()===i.valueOf();if(s.toString!==Object.prototype.toString)return s.toString()===i.toString();if(a=Object.keys(s),n=a.length,n!==Object.keys(i).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(i,a[r]))return!1;for(r=n;r--!==0;){var l=a[r];if(!e(s[l],i[l]))return!1}return!0}return s!==s&&i!==i};const C=m.getDefaultExportFromCjs(O),D=(e,s)=>s.filter(i=>{const{text:n}=e;if(typeof i.rule=="string")return!new RegExp(i.rule).test(n);if(i.rule instanceof RegExp)return!i.rule.test(n);if({}.toString.call(i.rule)==="[object Function]")return i.rule(e)}).map(i=>i.classes),c=e=>JSON.parse(JSON.stringify(e)),L=(e,s)=>{let i=0;for(;i<e.length;){if(s(e[i],i,e))return i;i++}return-1},T=(e,s,i=[],n)=>{e.text===void 0&&(e={text:e});const r=D(e,i),a=L(s,d=>d===e),l=c(s),o=a!==-1?l.splice(a,1)[0]:c(e);return(n?n(l,o):l.map(d=>d.text).indexOf(o.text)!==-1)&&r.push("ti-duplicate"),r.length===0?r.push("ti-valid"):r.push("ti-invalid"),r},f=(e,...s)=>{e.text===void 0&&(e={text:e});const i=c(e);return i.tiClasses=T(e,...s),i},M=(e,...s)=>e.map(i=>f(i,e,...s));const N={name:"TagInput",props:{scope:{type:Object}}},A=["maxlength"];function F(e,s,i,n,r,a){return i.scope.edit?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,"onUpdate:modelValue":s[0]||(s[0]=l=>i.scope.tag.text=l),maxlength:i.scope.maxlength,type:"text",class:"ti-tag-input",size:"1",onInput:s[1]||(s[1]=l=>i.scope.validateTag(i.scope.index,l)),onBlur:s[2]||(s[2]=l=>i.scope.performCancelEdit(i.scope.index)),onKeydown:s[3]||(s[3]=l=>i.scope.performSaveEdit(i.scope.index,l))},null,40,A)),[[t.vModelText,i.scope.tag.text]]):t.createCommentVNode("",!0)}const I=m._export_sfc(N,[["render",F],["__scopeId","data-v-a1f1c345"]]),w=e=>!e.some(s=>{const i=!s.text;i&&console.warn('Missing property "text"',s);let n=!1;return s.classes&&(n=typeof s.classes!="string"),n&&console.warn('Property "classes" must be type of string',s),i||n}),S=e=>!e.some(s=>{if(typeof s=="number"){const i=isFinite(s)&&Math.floor(s)===s;return i||console.warn("Only numerics are allowed for this prop. Found:",s),!i}else if(typeof s=="string"){const i=/\W|[a-z]|!\d/i.test(s);return i||console.warn("Only alpha strings are allowed for this prop. Found:",s),!i}else return console.warn("Only numeric and string values are allowed. Found:",s),!1}),K={modelValue:{type:String,default:"",required:!0},tags:{type:Array,default:()=>[],validator:w},autocompleteItems:{type:Array,default:()=>[],validator:w},allowEditTags:{type:Boolean,default:!1},autocompleteFilterDuplicates:{default:!0,type:Boolean},addOnlyFromAutocomplete:{type:Boolean,default:!1},autocompleteMinLength:{type:Number,default:1},autocompleteAlwaysOpen:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Add Tag"},addOnKey:{type:Array,default:()=>[13],validator:S},saveOnKey:{type:Array,default:()=>[13],validator:S},maxTags:{type:Number},maxlength:{type:Number},validation:{type:Array,default:()=>[],validator(e){return!e.some(s=>{const i=!s.rule;i&&console.warn('Property "rule" is missing',s);const n=s.rule&&(typeof s.rule=="string"||s.rule instanceof RegExp||{}.toString.call(s.rule)==="[object Function]");n||console.warn("A rule must be type of string, RegExp or function. Found:",JSON.stringify(s.rule));const r=!s.classes;r&&console.warn('Property "classes" is missing',s);const a=s.type&&typeof s.type!="string";return a&&console.warn('Property "type" must be type of string. Found:',s),!n||i||r||a})}},separators:{type:Array,default:()=>[";"],validator(e){return!e.some(s=>{const i=typeof s!="string";return i&&console.warn("Separators must be type of string. Found:",s),i})}},avoidAddingDuplicates:{type:Boolean,default:!0},addOnBlur:{type:Boolean,default:!0},isDuplicate:{type:Function,default:null},addFromPaste:{type:Boolean,default:!0},deleteOnBackspace:{default:!0,type:Boolean},onBeforeAddingTag:Function,onBeforeDeletingTag:Function,onBeforeEditingTag:Function,onBeforeSavingTag:Function},P={name:"VueTagsInput",components:{TagInput:I},props:K,emits:["adding-duplicate","before-adding-tag","before-deleting-tag","before-editing-tag","before-saving-tag","max-tags-reached","saving-duplicate","tags-changed","tag-clicked","update:modelValue","update:tags"],inheritAttrs:!1,data(){return{tagCenter:[],newTag:null,tagsCopy:[],tagsEditStatus:null,deletionMark:null,deletionMarkTime:null,selectedItem:null,focused:null}},computed:{autocompleteOpen(){return this.autocompleteAlwaysOpen?!0:this.newTag!==null&&this.newTag.length>=this.autocompleteMinLength&&this.filteredAutocompleteItems.length>0&&this.focused},filteredAutocompleteItems(){const e=this.autocompleteItems.map(s=>f(s,this.tags,this.validation,this.isDuplicate));return this.autocompleteFilterDuplicates?e.filter(this.duplicateFilter):e}},methods:{createClasses:T,getSelectedIndex(e){const s=this.filteredAutocompleteItems,i=this.selectedItem,n=s.length-1;if(s.length!==0)return i===null?0:e==="before"&&i===0?n:e==="after"&&i===n?0:e==="after"?i+1:i-1},selectDefaultItem(){this.addOnlyFromAutocomplete&&this.filteredAutocompleteItems.length>0?this.selectedItem=0:this.selectedItem=null},selectItem(e,s){e.preventDefault(),this.selectedItem=this.getSelectedIndex(s)},isSelected(e){return this.selectedItem===e},isMarked(e){return this.deletionMark===e},setTagCenter(e){e&&this.tagCenter.push(e)},invokeDelete(){if(!this.deleteOnBackspace||this.newTag.length>0)return;const e=this.tagsCopy.length-1;this.deletionMark===null?(this.deletionMarkTime=setTimeout(()=>this.deletionMark=null,1e3),this.deletionMark=e):this.performDeleteTag(e)},addTagsFromPaste(){this.addFromPaste&&setTimeout(()=>this.performAddTags(this.newTag),10)},performEditTag(e){this.allowEditTags&&(this.onBeforeAddingTag||this.editTag(e),this.$emit("before-editing-tag",{index:e,tag:this.tagsCopy[e],editTag:()=>this.editTag(e)}))},editTag(e){this.allowEditTags&&(this.toggleEditMode(e),this.focus(e))},toggleEditMode(e){!this.allowEditTags||this.disabled||(this.tagsEditStatus[e]=!this.tagsEditStatus[e])},createChangedTag(e,s){const i=this.tagsCopy[e];i.text=s?s.target.value:this.tagsCopy[e].text,this.tagsCopy[e]=f(i,this.tagsCopy,this.validation,this.isDuplicate)},focus(e){this.$nextTick(()=>{const s=this.tagCenter[e].querySelector("input.ti-tag-input");s&&s.focus()})},quote(e){return e.replace(/([()[{*+.$^\\|?])/g,"\\$1")},cancelEdit(e){this.tags[e]&&(this.tagsCopy[e]=c(f(this.tags[e],this.tags,this.validation,this.isDuplicate)),this.tagsEditStatus[e]=!1)},hasForbiddingAddRule(e){return e.some(s=>{const i=this.validation.find(n=>s===n.classes);return i?i.disableAdd:!1})},createTagTexts(e){const s=new RegExp(this.separators.map(i=>this.quote(i)).join("|"));return e.split(s).map(i=>({text:i}))},performDeleteTag(e){this.onBeforeDeletingTag||this.deleteTag(e),this.$emit("before-deleting-tag",{index:e,tag:this.tagsCopy[e],deleteTag:()=>this.deleteTag(e)})},deleteTag(e){this.disabled||(this.deletionMark=null,clearTimeout(this.deletionMarkTime),this.tagsCopy.splice(e,1),this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},noTriggerKey(e,s){const i=this[s].indexOf(e.keyCode)!==-1||this[s].indexOf(e.key)!==-1;return i&&e.preventDefault(),!i},performAddTags(e,s,i){if(this.disabled||s&&this.noTriggerKey(s,"addOnKey"))return;let n=[];typeof e=="object"&&(n=[e]),typeof e=="string"&&(n=this.createTagTexts(e)),n=n.filter(r=>r.text.trim().length>0),n.forEach(r=>{r=f(r,this.tags,this.validation,this.isDuplicate),this.onBeforeAddingTag||this.addTag(r,i),this.$emit("before-adding-tag",{tag:r,addTag:()=>this.addTag(r,i)})})},duplicateFilter(e){return this.isDuplicate?!this.isDuplicate(this.tagsCopy,e):!this.tagsCopy.find(s=>s.text===e.text)},addTag(e,s="new-tag-input"){const i=this.filteredAutocompleteItems.map(n=>n.text);this.addOnlyFromAutocomplete&&i.indexOf(e.text)===-1||this.$nextTick(()=>{if(this.maxTags&&this.maxTags<=this.tagsCopy.length)return this.$emit("max-tags-reached",e);if(this.avoidAddingDuplicates&&!this.duplicateFilter(e))return this.$emit("adding-duplicate",e);this.hasForbiddingAddRule(e.tiClasses)||(this.newTag="",this.tagsCopy.push(e),this.$emit("update:tags",this.tagsCopy),s==="autocomplete"&&this.$refs.newTagInput.focus(),this.$emit("tags-changed",this.tagsCopy))})},performSaveTag(e,s){const i=this.tagsCopy[e];this.disabled||s&&this.noTriggerKey(s,"addOnKey")||i.text.trim().length!==0&&(this["on-before-saving-tag"]||this.saveTag(e,i),this.$emit("before-saving-tag",{index:e,tag:i,saveTag:()=>this.saveTag(e,i)}))},saveTag(e,s){if(this.avoidAddingDuplicates){const i=c(this.tagsCopy),n=i.splice(e,1)[0];if(this.isDuplicate?this.isDuplicate(i,n):i.map(a=>a.text).indexOf(n.text)!==-1)return this.$emit("saving-duplicate",s)}this.hasForbiddingAddRule(s.tiClasses)||(this.tagsCopy[e]=s,this.toggleEditMode(e),this.$emit("update:tags",this.tagsCopy),this.$emit("tags-changed",this.tagsCopy))},tagsEqual(){return!this.tagsCopy.some((e,s)=>!C(e,this.tags[s]))},updateNewTag(e){const s=e.target.value;this.newTag=s,this.$emit("update:modelValue",s)},initTags(){this.tagsCopy=M(this.tags,this.validation,this.isDuplicate),this.tagsEditStatus=c(this.tags).map(()=>!1),this.tagsEqual()||this.$emit("update:tags",this.tagsCopy)},blurredOnClick(e){this.$el.contains(e.target)||this.$el.contains(document.activeElement)||this.performBlur(e)},performBlur(){this.addOnBlur&&this.focused&&this.performAddTags(this.newTag),this.focused=!1}},watch:{modelValue(e){this.addOnlyFromAutocomplete||(this.selectedItem=null),this.newTag=e},tags:{handler(){this.initTags()},deep:!0},autocompleteOpen:"selectDefaultItem"},created(){this.newTag=this.modelValue,this.initTags()},mounted(){this.selectDefaultItem(),document.addEventListener("click",this.blurredOnClick)},beforeUpdate(){this.tagCenter=[]},unmounted(){document.removeEventListener("click",this.blurredOnClick)}};const z={class:"ti-input"},R={key:0,class:"ti-tags"},H=["onClick"],G={class:"ti-content"},j={key:0,class:"ti-tag-left"},q=["onClick"],U={key:1,class:"ti-tag-right"},J={class:"ti-actions"},W=["onClick"],Y=["onClick"],Q={class:"ti-new-tag-input-wrapper"},X=["placeholder","value","maxlength","disabled"],Z=["onMouseover"],_=["onClick"];function x(e,s,i,n,r,a){const l=t.resolveComponent("tag-input");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["vue-tags-input",[{"ti-disabled":e.disabled},{"ti-focus":e.focused},e.$attrs.class]]),style:t.normalizeStyle(e.$attrs.style)},[t.createElementVNode("div",z,[e.tagsCopy?(t.openBlock(),t.createElementBlock("ul",R,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tagsCopy,(o,u)=>(t.openBlock(),t.createElementBlock("li",{key:u,style:t.normalizeStyle(o.style),class:t.normalizeClass([[{"ti-editing":e.tagsEditStatus[u]},o.tiClasses,o.classes,{"ti-deletion-mark":e.isMarked(u)}],"ti-tag"]),tabindex:"0",onClick:d=>e.$emit("tag-clicked",{tag:o,index:u})},[t.createElementVNode("div",G,[e.$slots["tag-left"]?(t.openBlock(),t.createElementBlock("div",j,[t.renderSlot(e.$slots,"tag-left",{tag:o,index:u,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_for:!0,ref:e.setTagCenter,class:"ti-tag-center"},[e.$slots["tag-center"]?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass({"ti-hidden":e.tagsEditStatus[u]}),onClick:d=>e.performEditTag(u)},t.toDisplayString(o.text),11,q)),e.$slots["tag-center"]?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:1,scope:{edit:e.tagsEditStatus[u],maxlength:e.maxlength,tag:o,index:u,validateTag:e.createChangedTag,performCancelEdit:e.cancelEdit,performSaveEdit:e.performSaveTag}},null,8,["scope"])),t.renderSlot(e.$slots,"tag-center",{tag:o,index:u,maxlength:e.maxlength,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,validateTag:e.createChangedTag,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0)],512),e.$slots["tag-right"]?(t.openBlock(),t.createElementBlock("div",U,[t.renderSlot(e.$slots,"tag-right",{tag:o,index:u,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",J,[e.$slots["tag-actions"]?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("i",{key:0,class:"ti-icon-undo",onClick:d=>e.cancelEdit(u)},null,8,W)),[[t.vShow,e.tagsEditStatus[u]]]),e.$slots["tag-actions"]?t.createCommentVNode("",!0):t.withDirectives((t.openBlock(),t.createElementBlock("i",{key:1,class:"ti-icon-close",onClick:d=>e.performDeleteTag(u)},null,8,Y)),[[t.vShow,!e.tagsEditStatus[u]]]),e.$slots["tag-actions"]?t.renderSlot(e.$slots,"tag-actions",{key:2,tag:o,index:u,edit:e.tagsEditStatus[u],performSaveEdit:e.performSaveTag,performDelete:e.performDeleteTag,performCancelEdit:e.cancelEdit,performOpenEdit:e.performEditTag,deletionMark:e.isMarked(u)},void 0,!0):t.createCommentVNode("",!0)])],14,H))),128)),t.createElementVNode("li",Q,[t.createElementVNode("input",t.mergeProps({ref:"newTagInput"},e.$attrs,{class:[[e.createClasses(e.newTag,e.tags,e.validation,e.isDuplicate)],"ti-new-tag-input"],placeholder:e.placeholder,value:e.newTag,maxlength:e.maxlength,disabled:e.disabled,type:"text",size:"1",onKeydown:[s[0]||(s[0]=o=>e.performAddTags(e.filteredAutocompleteItems[e.selectedItem]||e.newTag,o)),s[2]||(s[2]=t.withKeys((...o)=>e.invokeDelete&&e.invokeDelete(...o),["delete"])),s[3]||(s[3]=t.withKeys((...o)=>e.performBlur&&e.performBlur(...o),["tab"])),s[4]||(s[4]=t.withKeys(o=>e.selectItem(o,"before"),["up"])),s[5]||(s[5]=t.withKeys(o=>e.selectItem(o,"after"),["down"]))],onPaste:s[1]||(s[1]=(...o)=>e.addTagsFromPaste&&e.addTagsFromPaste(...o)),onInput:s[6]||(s[6]=(...o)=>e.updateNewTag&&e.updateNewTag(...o)),onFocus:s[7]||(s[7]=o=>e.focused=!0),onClick:s[8]||(s[8]=o=>e.addOnlyFromAutocomplete?!1:e.selectedItem=null)}),null,16,X)])])):t.createCommentVNode("",!0)]),t.renderSlot(e.$slots,"between-elements",{},void 0,!0),e.autocompleteOpen?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["ti-autocomplete",e.$attrs.class]),onMouseout:s[9]||(s[9]=o=>e.selectedItem=null)},[t.renderSlot(e.$slots,"autocomplete-header",{},void 0,!0),t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filteredAutocompleteItems,(o,u)=>(t.openBlock(),t.createElementBlock("li",{key:u,style:t.normalizeStyle(o.style),class:t.normalizeClass([[o.tiClasses,o.classes,{"ti-selected-item":e.isSelected(u)}],"ti-item"]),onMouseover:d=>e.disabled?!1:e.selectedItem=u},[e.$slots["autocomplete-item"]?t.renderSlot(e.$slots,"autocomplete-item",{key:1,item:o,index:u,performAdd:d=>e.performAddTags(d,void 0,"autocomplete"),selected:e.isSelected(u)},void 0,!0):(t.openBlock(),t.createElementBlock("div",{key:0,onClick:d=>e.performAddTags(o,void 0,"autocomplete")},t.toDisplayString(o.text),9,_))],46,Z))),128))]),t.renderSlot(e.$slots,"autocomplete-footer",{},void 0,!0)],34)):t.createCommentVNode("",!0)],6)}const ee=m._export_sfc(P,[["render",x],["__scopeId","data-v-d14eec25"]]);const te=t.createElementVNode("h5",{class:"mn-thin"},"Tags (maximum 20):",-1),se={class:"mn-medium"},ie=t.createElementVNode("p",{class:"p-small mn-thin"},"Suggested:",-1),le=["onClick"],ne={key:1},re={__name:"BlockTags",props:["tags"],emits:["tags-changed"],setup(e,{emit:s}){const i=e,n=t.ref(""),r=t.ref([]),a=t.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);i.tags&&(r.value=i.tags.map(h=>({text:h})));const l=t.computed(()=>a.value.filter(h=>h.text.toLowerCase().includes(n.value.toLowerCase()))),o=t.computed(()=>a.value.filter(h=>!r.value.some(p=>p.text===h.text)));function u(h){r.value.push(h),s("tags-changed",r.value.map(p=>p.text))}function d(h){r.value=h,s("tags-changed",r.value.map(p=>p.text))}return(h,p)=>(t.openBlock(),t.createElementBlock("div",null,[te,t.createVNode(ee,{modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=g=>n.value=g),tags:r.value,"autocomplete-items":t.unref(l),"add-on-key":[13,":",";",","],"save-on-key":[13,":",";",","],separators:[";",","],"max-tags":20,maxlength:20,placeholder:"Please add tags","add-from-paste":!0,"allow-edit-tags":!0,onTagsChanged:d,class:"mn-thin bg-grey radius-medium pd-small"},null,8,["modelValue","tags","autocomplete-items"]),t.createElementVNode("p",se,[ie,t.unref(o).length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(o),(g,$)=>(t.openBlock(),t.createElementBlock("span",{onClick:Fe=>u(g),class:t.normalizeClass(["cursor-pointer ti-tag-toDefactor",{"mn-r-micro":$!==t.unref(o).length-1}])},t.toDisplayString(g.text),11,le))),256)):(t.openBlock(),t.createElementBlock("span",ne,"You added all suggested tags"))])]))}};function y(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function oe(e){return(...s)=>!e(...s)}function ae(e,s){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(s.trim())!==-1}function E(e,s,i,n){return s?e.filter(r=>ae(n(r,i),s)).sort((r,a)=>n(r,i).length-n(a,i).length):e}function ue(e){return e.filter(s=>!s.$isLabel)}function b(e,s){return i=>i.reduce((n,r)=>r[e]&&r[e].length?(n.push({$groupLabel:r[s],$isLabel:!0}),n.concat(r[e])):n,[])}function de(e,s,i,n,r){return a=>a.map(l=>{if(!l[i])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const o=E(l[i],e,s,r);return o.length?{[n]:l[n],[i]:o}:[]})}const k=(...e)=>s=>e.reduce((i,n)=>n(i),s),he={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,s){return y(e)?"":s?e[s]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",s=e.toLowerCase().trim();let i=this.options.concat();return this.internalSearch?i=this.groupValues?this.filterAndFlat(i,s,this.label):E(i,s,this.label,this.customLabel):i=this.groupValues?b(this.groupValues,this.groupLabel)(i):i,i=this.hideSelected?i.filter(oe(this.isSelected)):i,this.taggable&&s.length&&!this.isExistingOption(s)&&(this.tagPosition==="bottom"?i.push({isTag:!0,label:e}):i.unshift({isTag:!0,label:e})),i.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(s=>this.customLabel(s,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,s,i){return k(de(s,i,this.groupValues,this.groupLabel,this.customLabel),b(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return k(b(this.groupValues,this.groupLabel),ue)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const s=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(s)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(y(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const s=this.customLabel(e,this.label);return y(s)?"":s},select(e,s){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(s)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(s==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){s!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const s=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);if(s){if(this.wholeGroupSelected(s)){this.$emit("remove",s[this.groupValues],this.id);const i=this.internalValue.filter(n=>s[this.groupValues].indexOf(n)===-1);this.$emit("update:modelValue",i)}else{let i=s[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&i.splice(this.max-this.internalValue.length),this.$emit("select",i,this.id),this.$emit("update:modelValue",this.internalValue.concat(i))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(s=>this.isSelected(s)||this.isOptionDisabled(s))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,s=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const i=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const n=this.internalValue.slice(0,i).concat(this.internalValue.slice(i+1));this.$emit("update:modelValue",n)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&s&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,s=window.innerHeight-this.$el.getBoundingClientRect().bottom;s>this.maxHeight||s>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(s-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},pe={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,s){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(s)}},groupHighlight(e,s){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":s.$isLabel}];const i=this.options.find(n=>n[this.groupLabel]===s.$groupLabel);return i&&!this.wholeGroupDisabled(i)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(i)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}};const ce={name:"vue-multiselect",mixins:[he,pe],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}},me=["tabindex","aria-owns"],fe={ref:"tags",class:"multiselect__tags"},ge={class:"multiselect__tags-wrap"},ye=["textContent"],be=["onKeypress","onMousedown"],ve=["textContent"],we={class:"multiselect__spinner"},Se=["name","id","placeholder","value","disabled","tabindex","aria-controls"],ke=["id"],Te={key:0},Ee={class:"multiselect__option"},$e=["id","role"],Ve=["onClick","onMouseenter","data-select","data-selected","data-deselect"],Be=["data-select","data-deselect","onMouseenter","onMousedown"],Oe={class:"multiselect__option"},Ce={class:"multiselect__option"};function De(e,s,i,n,r,a){return t.openBlock(),t.createElementBlock("div",{tabindex:e.searchable?-1:i.tabindex,class:t.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":i.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:s[13]||(s[13]=l=>e.activate()),onBlur:s[14]||(s[14]=l=>e.searchable?!1:e.deactivate()),onKeydown:[s[15]||(s[15]=t.withKeys(t.withModifiers(l=>e.pointerForward(),["self","prevent"]),["down"])),s[16]||(s[16]=t.withKeys(t.withModifiers(l=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:s[17]||(s[17]=t.withKeys(t.withModifiers(l=>e.addPointerElement(l),["stop","self"]),["enter","tab"])),onKeyup:s[18]||(s[18]=t.withKeys(l=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[t.renderSlot(e.$slots,"caret",{toggle:e.toggle},()=>[t.createElementVNode("div",{onMousedown:s[0]||(s[0]=t.withModifiers(l=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),t.renderSlot(e.$slots,"clear",{search:e.search}),t.createElementVNode("div",fe,[t.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[t.withDirectives(t.createElementVNode("div",ge,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.visibleValues,(l,o)=>t.renderSlot(e.$slots,"tag",{option:l,search:e.search,remove:e.removeElement},()=>[(t.openBlock(),t.createElementBlock("span",{class:"multiselect__tag",key:o},[t.createElementVNode("span",{textContent:t.toDisplayString(e.getOptionLabel(l))},null,8,ye),t.createElementVNode("i",{tabindex:"1",onKeypress:t.withKeys(t.withModifiers(u=>e.removeElement(l),["prevent"]),["enter"]),onMousedown:t.withModifiers(u=>e.removeElement(l),["prevent"]),class:"multiselect__tag-icon"},null,40,be)]))])),256))],512),[[t.vShow,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>i.limit?t.renderSlot(e.$slots,"limit",{key:0},()=>[t.createElementVNode("strong",{class:"multiselect__strong",textContent:t.toDisplayString(i.limitText(e.internalValue.length-i.limit))},null,8,ve)]):t.createCommentVNode("",!0)]),t.createVNode(t.Transition,{name:"multiselect__loading"},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"loading",{},()=>[t.withDirectives(t.createElementVNode("div",we,null,512),[[t.vShow,i.loading]])])]),_:3}),e.searchable?(t.openBlock(),t.createElementBlock("input",{key:0,ref:"search",name:i.name,id:e.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:e.placeholder,style:t.normalizeStyle(a.inputStyle),value:e.search,disabled:i.disabled,tabindex:i.tabindex,onInput:s[1]||(s[1]=l=>e.updateSearch(l.target.value)),onFocus:s[2]||(s[2]=t.withModifiers(l=>e.activate(),["prevent"])),onBlur:s[3]||(s[3]=t.withModifiers(l=>e.deactivate(),["prevent"])),onKeyup:s[4]||(s[4]=t.withKeys(l=>e.deactivate(),["esc"])),onKeydown:[s[5]||(s[5]=t.withKeys(t.withModifiers(l=>e.pointerForward(),["prevent"]),["down"])),s[6]||(s[6]=t.withKeys(t.withModifiers(l=>e.pointerBackward(),["prevent"]),["up"])),s[8]||(s[8]=t.withKeys(t.withModifiers(l=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:s[7]||(s[7]=t.withKeys(t.withModifiers(l=>e.addPointerElement(l),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,Se)):t.createCommentVNode("",!0),a.isSingleLabelVisible?(t.openBlock(),t.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:s[9]||(s[9]=t.withModifiers((...l)=>e.toggle&&e.toggle(...l),["prevent"]))},[t.renderSlot(e.$slots,"singleLabel",{option:a.singleValue},()=>[t.createTextVNode(t.toDisplayString(e.currentOptionLabel),1)])],32)):t.createCommentVNode("",!0),a.isPlaceholderVisible?(t.openBlock(),t.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:s[10]||(s[10]=t.withModifiers((...l)=>e.toggle&&e.toggle(...l),["prevent"]))},[t.renderSlot(e.$slots,"placeholder",{},()=>[t.createTextVNode(t.toDisplayString(e.placeholder),1)])],32)):t.createCommentVNode("",!0)],512),t.createVNode(t.Transition,{name:"multiselect"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["multiselect__content-wrapper",e.$attrs.class]),onFocus:s[11]||(s[11]=(...l)=>e.activate&&e.activate(...l)),tabindex:"-1",onMousedown:s[12]||(s[12]=t.withModifiers(()=>{},["prevent"])),style:t.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[t.createElementVNode("ul",{class:"multiselect__content",style:t.normalizeStyle(a.contentStyle),role:"listbox",id:"listbox-"+e.id},[t.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(t.openBlock(),t.createElementBlock("li",Te,[t.createElementVNode("span",Ee,[t.renderSlot(e.$slots,"maxElements",{},()=>[t.createTextVNode("Maximum of "+t.toDisplayString(e.max)+" options selected. First remove a selected option to select another.",1)])])])):t.createCommentVNode("",!0),!e.max||e.internalValue.length<e.max?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.filteredOptions,(l,o)=>(t.openBlock(),t.createElementBlock("li",{class:"multiselect__element",key:o,id:e.id+"-"+o,role:l&&(l.$isLabel||l.$isDisabled)?null:"option"},[l&&(l.$isLabel||l.$isDisabled)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass([e.optionHighlight(o,l),"multiselect__option"]),onClick:t.withModifiers(u=>e.select(l),["stop"]),onMouseenter:t.withModifiers(u=>e.pointerSet(o),["self"]),"data-select":l&&l.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[t.renderSlot(e.$slots,"option",{option:l,search:e.search,index:o},()=>[t.createElementVNode("span",null,t.toDisplayString(e.getOptionLabel(l)),1)])],42,Ve)),l&&(l.$isLabel||l.$isDisabled)?(t.openBlock(),t.createElementBlock("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:t.normalizeClass([e.groupHighlight(o,l),"multiselect__option"]),onMouseenter:t.withModifiers(u=>e.groupSelect&&e.pointerSet(o),["self"]),onMousedown:t.withModifiers(u=>e.selectGroup(l),["prevent"])},[t.renderSlot(e.$slots,"option",{option:l,search:e.search,index:o},()=>[t.createElementVNode("span",null,t.toDisplayString(e.getOptionLabel(l)),1)])],42,Be)):t.createCommentVNode("",!0)],8,$e))),128)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("li",null,[t.createElementVNode("span",Oe,[t.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t.createTextVNode("No elements found. Consider changing the search query.")])])],512),[[t.vShow,i.showNoResults&&e.filteredOptions.length===0&&e.search&&!i.loading]]),t.withDirectives(t.createElementVNode("li",null,[t.createElementVNode("span",Ce,[t.renderSlot(e.$slots,"noOptions",{},()=>[t.createTextVNode("List is empty.")])])],512),[[t.vShow,i.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!i.loading]]),t.renderSlot(e.$slots,"afterList")],12,ke)],38),[[t.vShow,e.isOpen]])]),_:3})],42,me)}const Le=m._export_sfc(ce,[["render",De]]);const Me={class:"w-100 o-scroll"},Ne={key:1,class:"w-max flex-nowrap flex"},Ae={__name:"Publics",setup(e){let s=t.ref(null);t.onMounted(async()=>{s.value=await v.actions.read({user:m.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const i=({membership:n,isMember:r,targetId:a})=>{B.mutations.handleMembershipUpdate(s.value,n,r,a)};return(n,r)=>(t.openBlock(),t.createElementBlock("div",Me,[!t.unref(s)||t.unref(s).length<1?(t.openBlock(),t.createBlock(V._sfc_main,{key:0,title:"Unfortunately, we couldn't find any recommendations for you",description:"Explore and find a community or organization that suits your interests.",class:"radius-big bg-grey pd-medium"})):(t.openBlock(),t.createElementBlock("div",Ne,[t.unref(s)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(s),(a,l)=>(t.openBlock(),t.createBlock(v._sfc_main,{key:a._id,organization:a,user:m.state.user,onUpdateMembership:i,class:t.normalizeClass(["flex-child-shrink-0 flex-child",{"mn-r-small":l!==t.unref(s).length-1}])},null,8,["organization","user","class"]))),128)):t.createCommentVNode("",!0)]))]))}};exports.SelectMulti=Le;exports._sfc_main=re;exports._sfc_main$1=Ae;
|