@ozdao/prometheus-framework 0.0.89 → 0.0.90
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Breadcrumbs.vue_vue_type_style_index_0_lang-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 +132 -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 +19 -19
- package/dist/prometheus-framework.es.js +2171 -2164
- 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 +32 -0
- package/src/modules/icons/labels/LabelGooglePlay.vue +48 -0
- package/src/modules/landing/components/sections/MobileApp.vue +125 -0
- package/src/modules/landing/landing.client.js +7 -0
- package/src/modules/organizations/components/blocks/CardOrganization.vue +3 -1
- package/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-49dbeafc.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const t=require("vue"),m=require("./auth-5aa8e90c.js"),v=require("./CardOrganization-58b54995.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-4e1c14fc.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-300fcb55.js");const u=require("./auth-2bc18d1e.js"),p=require("./CardOrganization-51309400.js"),f=require("./EmptyState-7658d7d6.js"),k=require("./organizations-c455dad7.js"),_=require("./ButtonFollow-48043cc7.js"),h={key:0,class:"t-transp mn-r-small"},y=["onClick"],B=["onClick"],v={key:0,class:"mn-t-thin invalid-feedback"},g={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(a,{emit:t}){const n=a,l=e.ref(n.select),s=e.ref(!1);e.watch(()=>n.select,o=>{l.value=o});const c=e.computed(()=>n.select?n.options.filter(o=>o!==n.select):n.options),i=()=>{s.value=!s.value,t(s.value?"focus":"blur")},m=o=>{l.value=o,i(),t("update:select",l.value)};return(o,C)=>{var d;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([o.$attrs.class,"flex-nowrap flex"])},[a.label?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("span",null,e.toDisplayString(a.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",{onClick:e.withModifiers(i,["stop"]),class:"w-100"},[e.createElementVNode("span",null,e.toDisplayString(((d=l.value)==null?void 0:d.name)||l.value||a.placeholder),1)],8,y),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([o.$attrs.class,"pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),r=>(e.openBlock(),e.createElementBlock("li",null,[r?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:N=>m(r),class:"w-100"},e.toDisplayString(r.name||r),9,B)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0)]),_:1})],2),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[a.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(a.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},b=u._export_sfc(g,[["__scopeId","data-v-a78dbba1"]]);const w={class:"w-100 o-scroll"},E={key:1,class:"w-max gap-thin flex-nowrap flex"},x={__name:"Publics",setup(a){let t=e.ref(null);e.onMounted(async()=>{t.value=await k.actions.read({user:u.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const n=({membership:l,isMember:s,targetId:c})=>{_.mutations.handleMembershipUpdate(t.value,l,s,c)};return(l,s)=>(e.openBlock(),e.createElementBlock("div",w,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(f._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,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(c,i)=>(e.openBlock(),e.createBlock(p._sfc_main,{key:c._id,organization:c,user:u.state.user,onUpdateMembership:n,class:"flex-child-1 flex-child w-100"},null,8,["organization","user"]))),128)):e.createCommentVNode("",!0)]))]))}};exports.Select=b;exports._sfc_main=x;
|
package/dist/Publics-501c9f27.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("./organizations-35fe2db4.js"),c=require("./EmptyState-23c13029.js"),a=require("./auth-07c01b19.js"),u=require("./ButtonFollow-f630623a.js");const m={class:"w-100 o-scroll"},d={key:1,class:"w-max flex-nowrap flex"},_={__name:"Publics",setup(p){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:r,isMember:s,targetId:n})=>{u.mutations.handleMembershipUpdate(t.value,r,s,n)};return(r,s)=>(e.openBlock(),e.createElementBlock("div",m,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(c._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",d,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(n,i)=>(e.openBlock(),e.createBlock(o._sfc_main,{key:n._id,organization:n,user:a.state.user,onUpdateMembership:l,class:e.normalizeClass(["flex-child-shrink-0 flex-child",{"mn-r-small":i!==e.unref(t).length-1}])},null,8,["organization","user","class"]))),128)):e.createCommentVNode("",!0)]))]))}};exports._sfc_main=_;
|
@@ -1,47 +0,0 @@
|
|
1
|
-
import { ref as d, onMounted as _, openBlock as s, createElementBlock as n, unref as t, createBlock as i, Fragment as p, renderList as f, normalizeClass as h, createCommentVNode as y, createElementVNode as l } from "vue";
|
2
|
-
import { a as b, _ as g } from "./organizations-fb1a2214.mjs";
|
3
|
-
import { _ as x } from "./EmptyState-1214f70b.mjs";
|
4
|
-
import { s as m } from "./auth-d102dac0.mjs";
|
5
|
-
import { m as k } from "./ButtonFollow-b29bd420.mjs";
|
6
|
-
const v = { class: "w-100 o-hidden" }, w = /* @__PURE__ */ l("header", { class: "flex-v-center flex-nowrap flex" }, [
|
7
|
-
/* @__PURE__ */ l("h3", { class: "mn-small" }, "Recommended")
|
8
|
-
], -1), M = {
|
9
|
-
key: 1,
|
10
|
-
class: "o-scroll flex-nowrap flex"
|
11
|
-
}, P = {
|
12
|
-
__name: "Publics",
|
13
|
-
setup(U) {
|
14
|
-
let e = d(null);
|
15
|
-
_(async () => {
|
16
|
-
e.value = await b.read({
|
17
|
-
user: m.user._id,
|
18
|
-
sort: "numberOfMemberships",
|
19
|
-
limit: 10,
|
20
|
-
types: ["public"]
|
21
|
-
});
|
22
|
-
});
|
23
|
-
const c = ({ membership: a, isMember: o, targetId: r }) => {
|
24
|
-
k.handleMembershipUpdate(e.value, a, o, r);
|
25
|
-
};
|
26
|
-
return (a, o) => (s(), n("div", v, [
|
27
|
-
w,
|
28
|
-
!t(e) || t(e).length < 1 ? (s(), i(x, {
|
29
|
-
key: 0,
|
30
|
-
title: "Unfortunately, we couldn't find any recommendations for you",
|
31
|
-
description: "Explore and find a community or organization that suits your interests.",
|
32
|
-
class: "radius-big bg-grey pd-medium"
|
33
|
-
})) : (s(), n("div", M, [
|
34
|
-
t(e) ? (s(!0), n(p, { key: 0 }, f(t(e), (r, u) => (s(), i(g, {
|
35
|
-
key: r._id,
|
36
|
-
organization: r,
|
37
|
-
user: m.user,
|
38
|
-
onUpdateMembership: c,
|
39
|
-
class: h(["w-30r", { "mn-r-small": u !== t(e).length - 1 }])
|
40
|
-
}, null, 8, ["organization", "user", "class"]))), 128)) : y("", !0)
|
41
|
-
]))
|
42
|
-
]));
|
43
|
-
}
|
44
|
-
};
|
45
|
-
export {
|
46
|
-
P as _
|
47
|
-
};
|
package/dist/Publics-889c25fc.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("./organizations-c77ea9d0.js"),c=require("./EmptyState-7658d7d6.js"),a=require("./auth-78fd9408.js"),u=require("./ButtonFollow-f9c5dc7a.js");const m={class:"w-100 o-scroll"},d={key:1,class:"w-max flex-nowrap flex"},_={__name:"Publics",setup(p){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:r,isMember:s,targetId:n})=>{u.mutations.handleMembershipUpdate(t.value,r,s,n)};return(r,s)=>(e.openBlock(),e.createElementBlock("div",m,[!e.unref(t)||e.unref(t).length<1?(e.openBlock(),e.createBlock(c._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",d,[e.unref(t)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(t),(n,i)=>(e.openBlock(),e.createBlock(o._sfc_main,{key:n._id,organization:n,user:a.state.user,onUpdateMembership:l,class:e.normalizeClass(["flex-child-shrink-0 flex-child",{"mn-r-small":i!==e.unref(t).length-1}])},null,8,["organization","user","class"]))),128)):e.createCommentVNode("",!0)]))]))}};exports._sfc_main=_;
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { ref as u, onMounted as _, openBlock as s, createElementBlock as n, unref as t, createBlock as i, Fragment as d, renderList as p, normalizeClass as f, createCommentVNode as h } from "vue";
|
2
|
-
import { a as y, _ as b } from "./organizations-0e9ff7ca.mjs";
|
3
|
-
import { _ as g } from "./EmptyState-34d85f10.mjs";
|
4
|
-
import { s as l } from "./auth-18f80fef.mjs";
|
5
|
-
import { m as x } from "./ButtonFollow-0d83a04a.mjs";
|
6
|
-
const k = { class: "w-100 o-scroll" }, v = {
|
7
|
-
key: 1,
|
8
|
-
class: "w-max flex-nowrap flex"
|
9
|
-
}, E = {
|
10
|
-
__name: "Publics",
|
11
|
-
setup(w) {
|
12
|
-
let e = u(null);
|
13
|
-
_(async () => {
|
14
|
-
e.value = await y.read({
|
15
|
-
user: l.user._id,
|
16
|
-
sort: "numberOfMemberships",
|
17
|
-
limit: 10,
|
18
|
-
types: ["public"]
|
19
|
-
});
|
20
|
-
});
|
21
|
-
const m = ({ membership: a, isMember: o, targetId: r }) => {
|
22
|
-
x.handleMembershipUpdate(e.value, a, o, r);
|
23
|
-
};
|
24
|
-
return (a, o) => (s(), n("div", k, [
|
25
|
-
!t(e) || t(e).length < 1 ? (s(), i(g, {
|
26
|
-
key: 0,
|
27
|
-
title: "Unfortunately, we couldn't find any recommendations for you",
|
28
|
-
description: "Explore and find a community or organization that suits your interests.",
|
29
|
-
class: "radius-big bg-grey pd-medium"
|
30
|
-
})) : (s(), n("div", v, [
|
31
|
-
t(e) ? (s(!0), n(d, { key: 0 }, p(t(e), (r, c) => (s(), i(b, {
|
32
|
-
key: r._id,
|
33
|
-
organization: r,
|
34
|
-
user: l.user,
|
35
|
-
onUpdateMembership: m,
|
36
|
-
class: f(["flex-child-shrink-0 flex-child", { "mn-r-small": c !== t(e).length - 1 }])
|
37
|
-
}, null, 8, ["organization", "user", "class"]))), 128)) : h("", !0)
|
38
|
-
]))
|
39
|
-
]));
|
40
|
-
}
|
41
|
-
};
|
42
|
-
export {
|
43
|
-
E as _
|
44
|
-
};
|
package/dist/Publics-8d94ee66.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const t=require("vue"),m=require("./auth-5aa8e90c.js"),v=require("./CardOrganization-21de52b3.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;
|
@@ -1,122 +0,0 @@
|
|
1
|
-
import { ref as f, watch as C, computed as S, openBlock as e, createElementBlock as t, Fragment as h, createElementVNode as m, normalizeClass as b, toDisplayString as p, createCommentVNode as c, withModifiers as z, createVNode as y, Transition as g, withCtx as k, renderList as M, unref as u, onMounted as B, createBlock as w } from "vue";
|
2
|
-
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-cdbafd07.mjs";
|
3
|
-
import { _ as O, s as x } from "./auth-35ef1791.mjs";
|
4
|
-
import { _ as U } from "./CardOrganization-f70bd169.mjs";
|
5
|
-
import { _ as E } from "./EmptyState-34d85f10.mjs";
|
6
|
-
import { a as N } from "./organizations-1b4c84ee.mjs";
|
7
|
-
import { m as P } from "./ButtonFollow-728aab73.mjs";
|
8
|
-
const V = {
|
9
|
-
key: 0,
|
10
|
-
class: "t-transp mn-r-small"
|
11
|
-
}, L = ["onClick"], j = ["onClick"], A = {
|
12
|
-
key: 0,
|
13
|
-
class: "mn-t-thin invalid-feedback"
|
14
|
-
}, D = {
|
15
|
-
__name: "Select",
|
16
|
-
props: {
|
17
|
-
label: String,
|
18
|
-
select: [String, Object],
|
19
|
-
placeholder: { type: String, default: "Please select an item" },
|
20
|
-
options: { type: Array, default: () => [] },
|
21
|
-
validation: Boolean
|
22
|
-
},
|
23
|
-
emits: ["update:select", "focus", "blur"],
|
24
|
-
setup(o, { emit: s }) {
|
25
|
-
const a = o, l = f(a.select), i = f(!1);
|
26
|
-
C(() => a.select, (n) => {
|
27
|
-
l.value = n;
|
28
|
-
});
|
29
|
-
const r = S(() => a.select ? a.options.filter((n) => n !== a.select) : a.options), _ = () => {
|
30
|
-
i.value = !i.value, s(i.value ? "focus" : "blur");
|
31
|
-
}, $ = (n) => {
|
32
|
-
l.value = n, _(), s("update:select", l.value);
|
33
|
-
};
|
34
|
-
return (n, T) => {
|
35
|
-
var v;
|
36
|
-
return e(), t(h, null, [
|
37
|
-
m("div", {
|
38
|
-
class: b([n.$attrs.class, "flex-nowrap flex"])
|
39
|
-
}, [
|
40
|
-
o.label ? (e(), t("div", V, [
|
41
|
-
m("span", null, p(o.label), 1)
|
42
|
-
])) : c("", !0),
|
43
|
-
m("li", {
|
44
|
-
onClick: z(_, ["stop"]),
|
45
|
-
class: "w-100"
|
46
|
-
}, [
|
47
|
-
m("span", null, p(((v = l.value) == null ? void 0 : v.name) || l.value || o.placeholder), 1)
|
48
|
-
], 8, L),
|
49
|
-
y(g, {
|
50
|
-
mode: "out-in",
|
51
|
-
name: "fade"
|
52
|
-
}, {
|
53
|
-
default: k(() => [
|
54
|
-
i.value ? (e(), t("ul", {
|
55
|
-
key: 0,
|
56
|
-
class: b([n.$attrs.class, "pos-absolute pos-l-0 z-index-5 w-100 mn-t-big"])
|
57
|
-
}, [
|
58
|
-
(e(!0), t(h, null, M(u(r), (d) => (e(), t("li", null, [
|
59
|
-
d ? (e(), t("span", {
|
60
|
-
key: 0,
|
61
|
-
onClick: (q) => $(d),
|
62
|
-
class: "w-100"
|
63
|
-
}, p(d.name || d), 9, j)) : c("", !0)
|
64
|
-
]))), 256))
|
65
|
-
], 2)) : c("", !0)
|
66
|
-
]),
|
67
|
-
_: 1
|
68
|
-
})
|
69
|
-
], 2),
|
70
|
-
y(g, {
|
71
|
-
mode: "out-in",
|
72
|
-
name: "fade"
|
73
|
-
}, {
|
74
|
-
default: k(() => [
|
75
|
-
o.validation ? (e(), t("div", A, " * " + p(o.validation.message), 1)) : c("", !0)
|
76
|
-
]),
|
77
|
-
_: 1
|
78
|
-
})
|
79
|
-
], 64);
|
80
|
-
};
|
81
|
-
}
|
82
|
-
}, X = /* @__PURE__ */ O(D, [["__scopeId", "data-v-a78dbba1"]]);
|
83
|
-
const F = { class: "w-100 o-scroll" }, I = {
|
84
|
-
key: 1,
|
85
|
-
class: "w-max gap-thin flex-nowrap flex"
|
86
|
-
}, Y = {
|
87
|
-
__name: "Publics",
|
88
|
-
setup(o) {
|
89
|
-
let s = f(null);
|
90
|
-
B(async () => {
|
91
|
-
s.value = await N.read({
|
92
|
-
user: x.user._id,
|
93
|
-
sort: "numberOfMemberships",
|
94
|
-
limit: 10,
|
95
|
-
types: ["public"]
|
96
|
-
});
|
97
|
-
});
|
98
|
-
const a = ({ membership: l, isMember: i, targetId: r }) => {
|
99
|
-
P.handleMembershipUpdate(s.value, l, i, r);
|
100
|
-
};
|
101
|
-
return (l, i) => (e(), t("div", F, [
|
102
|
-
!u(s) || u(s).length < 1 ? (e(), w(E, {
|
103
|
-
key: 0,
|
104
|
-
title: "Unfortunately, we couldn't find any recommendations for you",
|
105
|
-
description: "Explore and find a community or organization that suits your interests.",
|
106
|
-
class: "radius-big bg-grey pd-medium"
|
107
|
-
})) : (e(), t("div", I, [
|
108
|
-
u(s) ? (e(!0), t(h, { key: 0 }, M(u(s), (r, _) => (e(), w(U, {
|
109
|
-
key: r._id,
|
110
|
-
organization: r,
|
111
|
-
user: x.user,
|
112
|
-
onUpdateMembership: a,
|
113
|
-
class: "flex-child-1 flex-child w-100"
|
114
|
-
}, null, 8, ["organization", "user"]))), 128)) : c("", !0)
|
115
|
-
]))
|
116
|
-
]));
|
117
|
-
}
|
118
|
-
};
|
119
|
-
export {
|
120
|
-
X as S,
|
121
|
-
Y as _
|
122
|
-
};
|
package/dist/Publics-a030da8f.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("./organizations-b3df0859.js"),i=require("./EmptyState-23c13029.js"),a=require("./auth-ab40831d.js"),u=require("./ButtonFollow-d983e174.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-aca585c3.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const t=require("vue"),p=require("./auth-5aa8e90c.js"),c=require("./CardOrganization-ffa585a7.js"),g=require("./EmptyState-7658d7d6.js"),b=require("./ButtonFollow-2ce169ca.js");function u(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function y(e){return(...i)=>!e(...i)}function v(e,i){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(i.trim())!==-1}function m(e,i,s,n){return i?e.filter(o=>v(n(o,s),i)).sort((o,r)=>n(o,s).length-n(r,s).length):e}function w(e){return e.filter(i=>!i.$isLabel)}function d(e,i){return s=>s.reduce((n,o)=>o[e]&&o[e].length?(n.push({$groupLabel:o[i],$isLabel:!0}),n.concat(o[e])):n,[])}function V(e,i,s,n,o){return r=>r.map(l=>{if(!l[s])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const a=m(l[s],e,i,o);return a.length?{[n]:l[n],[s]:a}:[]})}const f=(...e)=>i=>e.reduce((s,n)=>n(s),i),S={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,i){return u(e)?"":i?e[i]: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||"",i=e.toLowerCase().trim();let s=this.options.concat();return this.internalSearch?s=this.groupValues?this.filterAndFlat(s,i,this.label):m(s,i,this.label,this.customLabel):s=this.groupValues?d(this.groupValues,this.groupLabel)(s):s,s=this.hideSelected?s.filter(y(this.isSelected)):s,this.taggable&&i.length&&!this.isExistingOption(i)&&(this.tagPosition==="bottom"?s.push({isTag:!0,label:e}):s.unshift({isTag:!0,label:e})),s.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(i=>this.customLabel(i,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,i,s){return f(V(i,s,this.groupValues,this.groupLabel,this.customLabel),d(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return f(d(this.groupValues,this.groupLabel),w)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const i=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(i)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(u(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const i=this.customLabel(e,this.label);return u(i)?"":i},select(e,i){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(i)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(i==="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)){i!=="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 i=this.options.find(s=>s[this.groupLabel]===e.$groupLabel);if(i){if(this.wholeGroupSelected(i)){this.$emit("remove",i[this.groupValues],this.id);const s=this.internalValue.filter(n=>i[this.groupValues].indexOf(n)===-1);this.$emit("update:modelValue",s)}else{let s=i[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&s.splice(this.max-this.internalValue.length),this.$emit("select",s,this.id),this.$emit("update:modelValue",this.internalValue.concat(s))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(i=>this.isSelected(i)||this.isOptionDisabled(i))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,i=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const s=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const n=this.internalValue.slice(0,s).concat(this.internalValue.slice(s+1));this.$emit("update:modelValue",n)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&i&&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,i=window.innerHeight-this.$el.getBoundingClientRect().bottom;i>this.maxHeight||i>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(i-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}},O={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,i){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(i)}},groupHighlight(e,i){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":i.$isLabel}];const s=this.options.find(n=>n[this.groupLabel]===i.$groupLabel);return s&&!this.wholeGroupDisabled(s)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(s)}]:"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 L={name:"vue-multiselect",mixins:[S,O],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)}}},B=["tabindex","aria-owns"],$={ref:"tags",class:"multiselect__tags"},k={class:"multiselect__tags-wrap"},E=["textContent"],M=["onKeypress","onMousedown"],N=["textContent"],D={class:"multiselect__spinner"},T=["name","id","placeholder","value","disabled","tabindex","aria-controls"],C=["id"],K={key:0},A={class:"multiselect__option"},P=["id","role"],H=["onClick","onMouseenter","data-select","data-selected","data-deselect"],F=["data-select","data-deselect","onMouseenter","onMousedown"],G={class:"multiselect__option"},z={class:"multiselect__option"};function R(e,i,s,n,o,r){return t.openBlock(),t.createElementBlock("div",{tabindex:e.searchable?-1:s.tabindex,class:t.normalizeClass([{"multiselect--active":e.isOpen,"multiselect--disabled":s.disabled,"multiselect--above":r.isAbove,"multiselect--has-options-group":r.hasOptionGroup},"multiselect"]),onFocus:i[13]||(i[13]=l=>e.activate()),onBlur:i[14]||(i[14]=l=>e.searchable?!1:e.deactivate()),onKeydown:[i[15]||(i[15]=t.withKeys(t.withModifiers(l=>e.pointerForward(),["self","prevent"]),["down"])),i[16]||(i[16]=t.withKeys(t.withModifiers(l=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:i[17]||(i[17]=t.withKeys(t.withModifiers(l=>e.addPointerElement(l),["stop","self"]),["enter","tab"])),onKeyup:i[18]||(i[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:i[0]||(i[0]=t.withModifiers(l=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),t.renderSlot(e.$slots,"clear",{search:e.search}),t.createElementVNode("div",$,[t.renderSlot(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:r.visibleValues,isOpen:e.isOpen},()=>[t.withDirectives(t.createElementVNode("div",k,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.visibleValues,(l,a)=>t.renderSlot(e.$slots,"tag",{option:l,search:e.search,remove:e.removeElement},()=>[(t.openBlock(),t.createElementBlock("span",{class:"multiselect__tag",key:a},[t.createElementVNode("span",{textContent:t.toDisplayString(e.getOptionLabel(l))},null,8,E),t.createElementVNode("i",{tabindex:"1",onKeypress:t.withKeys(t.withModifiers(h=>e.removeElement(l),["prevent"]),["enter"]),onMousedown:t.withModifiers(h=>e.removeElement(l),["prevent"]),class:"multiselect__tag-icon"},null,40,M)]))])),256))],512),[[t.vShow,r.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>s.limit?t.renderSlot(e.$slots,"limit",{key:0},()=>[t.createElementVNode("strong",{class:"multiselect__strong",textContent:t.toDisplayString(s.limitText(e.internalValue.length-s.limit))},null,8,N)]):t.createCommentVNode("",!0)]),t.createVNode(t.Transition,{name:"multiselect__loading"},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"loading",{},()=>[t.withDirectives(t.createElementVNode("div",D,null,512),[[t.vShow,s.loading]])])]),_:3}),e.searchable?(t.openBlock(),t.createElementBlock("input",{key:0,ref:"search",name:s.name,id:e.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:e.placeholder,style:t.normalizeStyle(r.inputStyle),value:e.search,disabled:s.disabled,tabindex:s.tabindex,onInput:i[1]||(i[1]=l=>e.updateSearch(l.target.value)),onFocus:i[2]||(i[2]=t.withModifiers(l=>e.activate(),["prevent"])),onBlur:i[3]||(i[3]=t.withModifiers(l=>e.deactivate(),["prevent"])),onKeyup:i[4]||(i[4]=t.withKeys(l=>e.deactivate(),["esc"])),onKeydown:[i[5]||(i[5]=t.withKeys(t.withModifiers(l=>e.pointerForward(),["prevent"]),["down"])),i[6]||(i[6]=t.withKeys(t.withModifiers(l=>e.pointerBackward(),["prevent"]),["up"])),i[8]||(i[8]=t.withKeys(t.withModifiers(l=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:i[7]||(i[7]=t.withKeys(t.withModifiers(l=>e.addPointerElement(l),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,T)):t.createCommentVNode("",!0),r.isSingleLabelVisible?(t.openBlock(),t.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:i[9]||(i[9]=t.withModifiers((...l)=>e.toggle&&e.toggle(...l),["prevent"]))},[t.renderSlot(e.$slots,"singleLabel",{option:r.singleValue},()=>[t.createTextVNode(t.toDisplayString(e.currentOptionLabel),1)])],32)):t.createCommentVNode("",!0),r.isPlaceholderVisible?(t.openBlock(),t.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:i[10]||(i[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:i[11]||(i[11]=(...l)=>e.activate&&e.activate(...l)),tabindex:"-1",onMousedown:i[12]||(i[12]=t.withModifiers(()=>{},["prevent"])),style:t.normalizeStyle({maxHeight:e.optimizedHeight+"px"}),ref:"list"},[t.createElementVNode("ul",{class:"multiselect__content",style:t.normalizeStyle(r.contentStyle),role:"listbox",id:"listbox-"+e.id},[t.renderSlot(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(t.openBlock(),t.createElementBlock("li",K,[t.createElementVNode("span",A,[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,a)=>(t.openBlock(),t.createElementBlock("li",{class:"multiselect__element",key:a,id:e.id+"-"+a,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(a,l),"multiselect__option"]),onClick:t.withModifiers(h=>e.select(l),["stop"]),onMouseenter:t.withModifiers(h=>e.pointerSet(a),["self"]),"data-select":l&&l.isTag?e.tagPlaceholder:r.selectLabelText,"data-selected":r.selectedLabelText,"data-deselect":r.deselectLabelText},[t.renderSlot(e.$slots,"option",{option:l,search:e.search,index:a},()=>[t.createElementVNode("span",null,t.toDisplayString(e.getOptionLabel(l)),1)])],42,H)),l&&(l.$isLabel||l.$isDisabled)?(t.openBlock(),t.createElementBlock("span",{key:1,"data-select":e.groupSelect&&r.selectGroupLabelText,"data-deselect":e.groupSelect&&r.deselectGroupLabelText,class:t.normalizeClass([e.groupHighlight(a,l),"multiselect__option"]),onMouseenter:t.withModifiers(h=>e.groupSelect&&e.pointerSet(a),["self"]),onMousedown:t.withModifiers(h=>e.selectGroup(l),["prevent"])},[t.renderSlot(e.$slots,"option",{option:l,search:e.search,index:a},()=>[t.createElementVNode("span",null,t.toDisplayString(e.getOptionLabel(l)),1)])],42,F)):t.createCommentVNode("",!0)],8,P))),128)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("li",null,[t.createElementVNode("span",G,[t.renderSlot(e.$slots,"noResult",{search:e.search},()=>[t.createTextVNode("No elements found. Consider changing the search query.")])])],512),[[t.vShow,s.showNoResults&&e.filteredOptions.length===0&&e.search&&!s.loading]]),t.withDirectives(t.createElementVNode("li",null,[t.createElementVNode("span",z,[t.renderSlot(e.$slots,"noOptions",{},()=>[t.createTextVNode("List is empty.")])])],512),[[t.vShow,s.showNoOptions&&(e.options.length===0||r.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!s.loading]]),t.renderSlot(e.$slots,"afterList")],12,C)],38),[[t.vShow,e.isOpen]])]),_:3})],42,B)}const q=p._export_sfc(L,[["render",R]]);const j={class:"w-100 o-scroll"},U={key:1,class:"w-max flex-nowrap flex"},I={__name:"Publics",setup(e){let i=t.ref(null);t.onMounted(async()=>{i.value=await c.actions.read({user:p.state.user._id,sort:"numberOfMemberships",limit:10,types:["public"]})});const s=({membership:n,isMember:o,targetId:r})=>{b.mutations.handleMembershipUpdate(i.value,n,o,r)};return(n,o)=>(t.openBlock(),t.createElementBlock("div",j,[!t.unref(i)||t.unref(i).length<1?(t.openBlock(),t.createBlock(g._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",U,[t.unref(i)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(t.unref(i),(r,l)=>(t.openBlock(),t.createBlock(c._sfc_main,{key:r._id,organization:r,user:p.state.user,onUpdateMembership:s,class:t.normalizeClass(["flex-child-shrink-0 flex-child",{"mn-r-small":l!==t.unref(i).length-1}])},null,8,["organization","user","class"]))),128)):t.createCommentVNode("",!0)]))]))}};exports.SelectMulti=q;exports._sfc_main=I;
|