@ozdao/prometheus-framework 0.1.62 → 0.1.63
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/BackofficeGallery-30022293.js +1 -0
- package/dist/BackofficeGallery-f64daa0d.mjs +264 -0
- package/dist/BackofficeReports-cb4b180d.mjs +44 -0
- package/dist/BackofficeReports-d021871f.js +1 -0
- package/dist/BlockTags-8cddaef7.js +1 -0
- package/dist/BlockTags-ee310572.mjs +853 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Button-7643c9aa.js +1 -0
- package/dist/Button-9e1a9284.mjs +226 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/ButtonToggleMembership-7ee4dc8e.mjs +90 -0
- package/dist/ButtonToggleMembership-b9352cec.js +1 -0
- package/dist/CardBlogpost-3c92fbc9.mjs +246 -0
- package/dist/CardBlogpost-c7364b1e.js +1 -0
- package/dist/CardOrganization-647cb571.js +1 -0
- package/dist/CardOrganization-facb77f7.mjs +234 -0
- package/dist/CardProduct-92affca1.js +1 -0
- package/dist/CardProduct-fca53299.mjs +193 -0
- package/dist/Checkbox-5dbe7b23.mjs +62 -0
- package/dist/Checkbox-76f09248.js +1 -0
- package/dist/Chips-0fdb31c9.js +1 -0
- package/dist/Chips-f1a0d085.mjs +214 -0
- package/dist/Community-534d473c.mjs +132 -0
- package/dist/Community-e9aff969.js +1 -0
- package/dist/Dashboard-91d73bc5.js +1 -0
- package/dist/Dashboard-ea9035bc.mjs +152 -0
- package/dist/Dropdown-31115457.js +1 -0
- package/dist/Dropdown-cab3605b.mjs +146 -0
- package/dist/EULA-aba6a807.js +1 -0
- package/dist/EULA-e05236af.mjs +4210 -0
- package/dist/EditOrder-94bbebff.mjs +221 -0
- package/dist/EditOrder-c070d474.js +1 -0
- package/dist/EmptyState-d65bab5b.js +1 -0
- package/dist/EmptyState-e404b05d.mjs +36 -0
- package/dist/Events-46ae8fc6.mjs +123 -0
- package/dist/Events-813c8c7b.js +1 -0
- package/dist/Feed-2d443ad2.mjs +146 -0
- package/dist/Feed-3a4e7a9c.js +1 -0
- package/dist/Feed-8b554fc1.js +1 -0
- package/dist/Feed-98b47c6f.js +1 -0
- package/dist/Feed-a21d6007.mjs +124 -0
- package/dist/Feed-b39138c8.js +1 -0
- package/dist/Feed-c41ef736.mjs +361 -0
- package/dist/Feed-d114330c.mjs +112 -0
- package/dist/Field-e2a43424.js +1 -0
- package/dist/Field-e5ad88d3.mjs +75 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
- package/dist/Gallery-46b5f939.js +1 -0
- package/dist/Gallery-762a9c2d.mjs +241 -0
- package/dist/IconChevronRight-a55f838e.js +1 -0
- package/dist/IconChevronRight-fae9d012.mjs +28 -0
- package/dist/IconCommunity-468dc457.mjs +65 -0
- package/dist/IconCommunity-b339e806.js +1 -0
- package/dist/IconCross-5bf93179.js +1 -0
- package/dist/IconCross-84cb1292.mjs +28 -0
- package/dist/IconEdit-9edfd74d.mjs +21 -0
- package/dist/IconEdit-c0469b45.js +1 -0
- package/dist/Image-4dcfddb8.js +9 -0
- package/dist/Image-e0da17ac.mjs +571 -0
- package/dist/LabelGooglePlay-24feb437.mjs +31 -0
- package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
- package/dist/LeftoverAdd-5a8988d9.js +1 -0
- package/dist/LeftoverAdd-c4f37f47.mjs +227 -0
- package/dist/Leftovers-470a1689.js +1 -0
- package/dist/Leftovers-69c7dcd9.mjs +136 -0
- package/dist/Loader-21f016da.js +1 -0
- package/dist/Loader-cd422786.mjs +41 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Members-04273cd4.mjs +114 -0
- package/dist/Members-0685a15f.js +1 -0
- package/dist/Menu-b5d6a0c7.js +1 -0
- package/dist/Menu-dd7645c1.mjs +13 -0
- package/dist/MenuItem-56ae7f94.js +1 -0
- package/dist/MenuItem-6296d02f.mjs +63 -0
- package/dist/Orders-b64e8cb9.js +1 -0
- package/dist/Orders-ff30db05.mjs +75 -0
- package/dist/Organizations-46aab2c8.mjs +73 -0
- package/dist/Organizations-a8627bc5.js +1 -0
- package/dist/Payments-53e5fecf.js +1 -0
- package/dist/Payments-82e545e1.mjs +87 -0
- package/dist/PlaceholderUserpic-14c6ea7e.mjs +28 -0
- package/dist/PlaceholderUserpic-47f6f319.js +1 -0
- package/dist/Popup-0915427c.mjs +74 -0
- package/dist/Popup-795f5c88.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Product-7e001b81.js +7 -0
- package/dist/Product-f3f42158.mjs +653 -0
- package/dist/ProductEdit-959b3cd3.mjs +295 -0
- package/dist/ProductEdit-bae5e898.js +1 -0
- package/dist/ProductsBackoffice-0716123f.js +1 -0
- package/dist/ProductsBackoffice-a36ecbc6.mjs +85 -0
- package/dist/ProfileBlogposts-c790d1b2.js +1 -0
- package/dist/ProfileBlogposts-f43cf32e.mjs +79 -0
- package/dist/ProfileEvents-12f80fff.mjs +70 -0
- package/dist/ProfileEvents-585570a3.js +1 -0
- package/dist/ProfileOrganizations-bbc2cf40.mjs +73 -0
- package/dist/ProfileOrganizations-d7103514.js +1 -0
- package/dist/Publics-094f3c2c.mjs +45 -0
- package/dist/Publics-1032c0f4.js +1 -0
- package/dist/Select-11ddabf5.mjs +79 -0
- package/dist/Select-3ca5ab39.js +1 -0
- package/dist/SelectMulti-58704d69.mjs +1038 -0
- package/dist/SelectMulti-c25765cf.js +1 -0
- package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
- package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
- package/dist/SkeletonEvent-8690422d.mjs +16 -0
- package/dist/SkeletonEvent-eb284de8.js +1 -0
- package/dist/SkeletonEventShort-6c9e3940.js +1 -0
- package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
- package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
- package/dist/SkeletonOrganization-8690422d.mjs +16 -0
- package/dist/Socials-31c06635.mjs +74 -0
- package/dist/Socials-cceaeaf2.js +1 -0
- package/dist/Tab-054b61f7.mjs +46 -0
- package/dist/Tab-2c1e4224.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
- package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
- package/dist/Upload-06d93178.js +1 -0
- package/dist/Upload-23212d9d.mjs +74 -0
- package/dist/UploadImage-0f488170.js +1 -0
- package/dist/UploadImage-3c627d89.mjs +83 -0
- package/dist/UploadImageMultiple-cb6c7188.mjs +58 -0
- package/dist/UploadImageMultiple-eddaac87.js +1 -0
- package/dist/Wallet-2043b611.mjs +24682 -0
- package/dist/Wallet-8fa7386a.js +55 -0
- package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
- package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
- package/dist/auth-56dc2ba7.mjs +607 -0
- package/dist/auth-f018f5b3.js +7 -0
- package/dist/auth.client.cjs +7 -0
- package/dist/auth.client.js +3874 -0
- package/dist/auth.validation-c31a60e7.mjs +24 -0
- package/dist/auth.validation-d049b341.js +1 -0
- package/dist/backoffice.client.cjs +1 -0
- package/dist/backoffice.client.js +265 -0
- package/dist/carousel.es-44c501bc.mjs +383 -0
- package/dist/carousel.es-cdfb392c.js +5 -0
- package/dist/categories-5b08da53.mjs +121 -0
- package/dist/categories-7ccd6be9.js +1 -0
- package/dist/click-outside-0b0727d1.js +2 -0
- package/dist/click-outside-6101836c.mjs +19 -0
- package/dist/community.client.cjs +1 -0
- package/dist/community.client.js +692 -0
- package/dist/dribbble-8e8e169b.js +1 -0
- package/dist/dribbble-ae37c2ac.mjs +127 -0
- package/dist/events.client.cjs +2 -0
- package/dist/events.client.js +8885 -0
- package/dist/files.client.cjs +1 -0
- package/dist/files.client.js +1 -0
- package/dist/gallery-d4297191.mjs +54 -0
- package/dist/gallery-f92912df.js +1 -0
- package/dist/gallery.client.cjs +1 -0
- package/dist/gallery.client.js +18 -0
- package/dist/globals-928eb13c.js +1 -0
- package/dist/globals-96ba60e4.mjs +91 -0
- package/dist/globals.client.cjs +1 -0
- package/dist/globals.client.js +12 -0
- package/dist/icons.client.cjs +1 -0
- package/dist/icons.client.js +84 -0
- package/dist/index-a661083c.mjs +934 -0
- package/dist/index-b41aac19.js +2 -0
- package/dist/inputs.validation-d7cef32b.js +1 -0
- package/dist/inputs.validation-db65277a.mjs +83 -0
- package/dist/landing.client.cjs +1 -0
- package/dist/landing.client.js +111 -0
- package/dist/leftovers-5d1ff88b.mjs +67 -0
- package/dist/leftovers-b60180cf.js +1 -0
- package/dist/legal.client.cjs +1 -0
- package/dist/legal.client.js +8512 -0
- package/dist/memberships-12210953.mjs +68 -0
- package/dist/memberships-393765d8.js +1 -0
- package/dist/middlewares.client.cjs +1 -0
- package/dist/middlewares.client.js +1 -0
- package/dist/orders-13c10d49.mjs +85 -0
- package/dist/orders-37f041aa.js +1 -0
- package/dist/organizations-587d5a4d.mjs +122 -0
- package/dist/organizations-b4d902a2.js +1 -0
- package/dist/organizations.client-35b74e44.mjs +2997 -0
- package/dist/organizations.client-f982f55a.js +3 -0
- package/dist/organizations.client.cjs +1 -0
- package/dist/organizations.client.js +86 -0
- package/dist/products-3c43eb18.js +1 -0
- package/dist/products-943fb95e.mjs +107 -0
- package/dist/prometheus-framework.cjs.js +19 -19
- package/dist/prometheus-framework.es.js +2208 -2198
- package/dist/reports-270f69df.js +1 -0
- package/dist/reports-79cd9459.mjs +91 -0
- package/dist/reports.client.cjs +1 -0
- package/dist/reports.client.js +8 -0
- package/dist/states.validation-3b70f83a.js +1 -0
- package/dist/states.validation-944e334c.mjs +13 -0
- package/dist/style.css +1 -1
- package/dist/users.client.cjs +1 -0
- package/dist/users.client.js +632 -0
- package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
- package/dist/vue-draggable-next.esm-bundler-ff6e3f52.mjs +1557 -0
- package/dist/vuex.esm-bundler-57d8b6ba.mjs +750 -0
- package/dist/vuex.esm-bundler-685cf29f.js +5 -0
- package/package.json +1 -1
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";const t=require("vue");/**
|
2
|
+
* Vue 3 Carousel 0.1.48
|
3
|
+
* (c) 2022
|
4
|
+
* @license MIT
|
5
|
+
*/const f={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0},ne={itemsToShow:{default:f.itemsToShow,type:Number},itemsToScroll:{default:f.itemsToScroll,type:Number},wrapAround:{default:f.wrapAround,type:Boolean},snapAlign:{default:f.snapAlign,validator(n){return["start","end","center","center-even","center-odd"].includes(n)}},transition:{default:f.transition,type:Number},breakpoints:{default:f.breakpoints,type:Object},autoplay:{default:f.autoplay,type:Number},pauseAutoplayOnHover:{default:f.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:f.mouseDrag,type:Boolean},touchDrag:{default:f.touchDrag,type:Boolean},dir:{default:f.dir,validator(n){return["rtl","ltr"].includes(n)}},settings:{default(){return{}},type:Object}};function se(n,o){let i;return function(...l){i&&clearTimeout(i),i=setTimeout(()=>{n(...l),i=null},o)}}function ce(n,o){let i;return function(...l){const g=this;i||(n.apply(g,l),i=!0,setTimeout(()=>i=!1,o))}}function de(n){var o,i,l;return n?((i=(o=n[0])===null||o===void 0?void 0:o.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?n:((l=n[0])===null||l===void 0?void 0:l.children)||[]:[]}function fe(n,o){if(n.wrapAround)return o-1;switch(n.snapAlign){case"start":return o-n.itemsToShow;case"end":return o-1;case"center":case"center-odd":return o-Math.ceil(n.itemsToShow/2);case"center-even":return o-Math.ceil(n.itemsToShow/2);default:return 0}}function ve(n){if(n.wrapAround)return 0;switch(n.snapAlign){case"start":return 0;case"end":return n.itemsToShow-1;case"center":case"center-odd":return Math.floor((n.itemsToShow-1)/2);case"center-even":return Math.floor((n.itemsToShow-2)/2);default:return 0}}function re(n,o,i,l){return n.wrapAround?o:Math.min(Math.max(o,l),i)}function me({slidesBuffer:n,currentSlide:o,snapAlign:i,itemsToShow:l,wrapAround:g,slidesCount:p}){let c=n.indexOf(o);if(c===-1&&(c=n.indexOf(Math.ceil(o))),i==="center"||i==="center-odd"?c-=(l-1)/2:i==="center-even"?c-=(l-2)/2:i==="end"&&(c-=l-1),!g){const w=p-l,y=0;c=Math.max(Math.min(c,w),y)}return c}var he=t.defineComponent({name:"Carousel",props:ne,setup(n,{slots:o,emit:i,expose:l}){var g;const p=t.ref(null),c=t.ref([]),w=t.ref([]),y=t.ref(0),u=t.ref(1);let x,_,T=t.ref({}),h=Object.assign({},f);const r=t.reactive(Object.assign({},h)),d=t.ref((g=r.modelValue)!==null&&g!==void 0?g:0),oe=t.ref(0),$=t.ref(0),A=t.ref(0),O=t.ref(0);t.provide("config",r),t.provide("slidesBuffer",w),t.provide("slidesCount",u),t.provide("currentSlide",d),t.provide("maxSlide",A),t.provide("minSlide",O);function H(){const e=Object.assign(Object.assign({},n),n.settings);T=t.ref(Object.assign({},e.breakpoints)),h=Object.assign(Object.assign({},e),{settings:void 0,breakpoints:void 0}),Y(h)}function C(){const e=Object.keys(T.value).map(s=>Number(s)).sort((s,m)=>+m-+s);let a=Object.assign({},h);e.some(s=>window.matchMedia(`(min-width: ${s}px)`).matches?(a=Object.assign(Object.assign({},a),T.value[s]),!0):!1),Y(a)}function Y(e){for(let a in e)r[a]=e[a]}const ie=se(()=>{T.value&&(C(),j()),E()},16);function E(){if(!p.value)return;const e=p.value.getBoundingClientRect();y.value=e.width/r.itemsToShow}function j(){u.value=Math.max(c.value.length,1),!(u.value<=0)&&($.value=Math.ceil((u.value-1)/2),A.value=fe(r,u.value),O.value=ve(r),d.value=re(r,d.value,A.value,O.value))}function D(){const e=[...Array(u.value).keys()];if(r.wrapAround&&r.itemsToShow+1<=u.value){let m=(r.itemsToShow!==1?Math.round((u.value-r.itemsToShow)/2):0)-d.value;if(r.snapAlign==="end"?m+=Math.floor(r.itemsToShow-1):(r.snapAlign==="center"||r.snapAlign==="center-odd")&&m++,m<0)for(let S=m;S<0;S++)e.push(Number(e.shift()));else for(let S=0;S<m;S++)e.unshift(Number(e.pop()))}w.value=e}t.onMounted(()=>{T.value&&(C(),j()),t.nextTick(()=>setTimeout(E,16)),z(),window.addEventListener("resize",ie,{passive:!0})}),t.onUnmounted(()=>{_&&clearTimeout(_),x&&clearInterval(x)});let v=!1;const B={x:0,y:0},V={x:0,y:0},M=t.reactive({x:0,y:0}),N=t.ref(!1),le=()=>{N.value=!0},ae=()=>{N.value=!1};function U(e){v=e.type==="touchstart",!(!v&&e.button!==0||k.value)&&(v||e.preventDefault(),B.x=v?e.touches[0].clientX:e.clientX,B.y=v?e.touches[0].clientY:e.clientY,document.addEventListener(v?"touchmove":"mousemove",W,!0),document.addEventListener(v?"touchend":"mouseup",q,!0))}const W=ce(e=>{V.x=v?e.touches[0].clientX:e.clientX,V.y=v?e.touches[0].clientY:e.clientY;const a=V.x-B.x,s=V.y-B.y;M.y=s,M.x=a},16);function q(){const e=r.dir==="rtl"?-1:1,a=Math.sign(M.x)*.4,s=Math.round(M.x/y.value+a)*e;let m=re(r,d.value-s,A.value,O.value);if(s&&!v){const S=X=>{X.stopPropagation(),window.removeEventListener("click",S,!0)};window.addEventListener("click",S,!0)}b(m),M.x=0,M.y=0,document.removeEventListener(v?"touchmove":"mousemove",W,!0),document.removeEventListener(v?"touchend":"mouseup",q,!0)}function z(){!r.autoplay||r.autoplay<=0||(x=setInterval(()=>{r.pauseAutoplayOnHover&&N.value||I()},r.autoplay))}function R(){x&&(clearInterval(x),x=null),z()}const k=t.ref(!1);function b(e,a=!1){if(d.value===e||k.value)return;R();const s=u.value-1;if(e>s)return b(e-u.value);if(e<0)return b(e+u.value);k.value=!0,oe.value=d.value,d.value=e,a||i("update:modelValue",d.value),_=setTimeout(()=>{r.wrapAround&&D(),k.value=!1},r.transition)}function I(){let e=d.value+r.itemsToScroll;r.wrapAround||(e=Math.min(e,A.value)),b(e)}function G(){let e=d.value-r.itemsToScroll;r.wrapAround||(e=Math.max(e,O.value)),b(e)}const F={slideTo:b,next:I,prev:G};t.provide("nav",F);const J=t.computed(()=>me({slidesBuffer:w.value,itemsToShow:r.itemsToShow,snapAlign:r.snapAlign,wrapAround:!!r.wrapAround,currentSlide:d.value,slidesCount:u.value}));t.provide("slidesToScroll",J);const ue=t.computed(()=>{const e=r.dir==="rtl"?-1:1,a=J.value*y.value*e;return{transform:`translateX(${M.x-a}px)`,transition:`${k.value?r.transition:0}ms`}});function K(){H()}function Q(){H(),C(),j(),D(),E(),R()}function Z(){j(),D()}Object.keys(ne).forEach(e=>{["modelValue"].includes(e)||t.watch(()=>n[e],Q)}),K(),t.watchEffect(()=>{const e=u.value!==c.value.length;n.modelValue!==void 0&&d.value!==n.modelValue&&b(Number(n.modelValue),!0),e&&Z()});const ee={config:r,slidesBuffer:w,slidesCount:u,slideWidth:y,currentSlide:d,maxSlide:A,minSlide:O,middleSlide:$};l({updateBreakpointsConfigs:C,updateSlidesData:j,updateSlideWidth:E,updateSlidesBuffer:D,initCarousel:K,restartCarousel:Q,updateCarousel:Z,slideTo:b,next:I,prev:G,nav:F,data:ee});const L=o.default||o.slides,P=o.addons,te=t.reactive(ee);return()=>{const e=de(L==null?void 0:L(te)),a=(P==null?void 0:P(te))||[];c.value=e,e.forEach((S,X)=>S.props.index=X);const s=t.h("ol",{class:"carousel__track",style:ue.value,onMousedown:r.mouseDrag?t.withModifiers(U,["capture"]):null,onTouchstart:r.touchDrag?t.withModifiers(U,["capture"]):null},e),m=t.h("div",{class:"carousel__viewport"},s);return t.h("section",{ref:p,class:{carousel:!0,"carousel--rtl":r.dir==="rtl"},dir:r.dir,"aria-label":"Gallery",onMouseenter:le,onMouseleave:ae},[m,a])}}}),pe=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1}},setup(n,{slots:o}){const i=t.inject("config",t.reactive(Object.assign({},f))),l=t.inject("slidesBuffer",t.ref([])),g=t.inject("currentSlide",t.ref(0)),p=t.inject("slidesToScroll",t.ref(0)),c=t.ref(n.index);i.wrapAround&&(w(),t.watch(l,w));function w(){c.value=l.value.indexOf(n.index)}const y=t.computed(()=>({width:`${1/i.itemsToShow*100}%`,order:c.value.toString()})),u=()=>n.index===g.value,x=()=>{const h=Math.ceil(p.value),r=Math.floor(p.value+i.itemsToShow);return l.value.slice(h,r).includes(n.index)},_=()=>n.index===l.value[Math.ceil(p.value)-1],T=()=>n.index===l.value[Math.floor(p.value+i.itemsToShow)];return()=>{var h;return t.h("li",{style:y.value,class:{carousel__slide:!0,"carousel__slide--active":u(),"carousel__slide--visible":x(),"carousel__slide--prev":_(),"carousel__slide--next":T()}},(h=o.default)===null||h===void 0?void 0:h.call(o))}}});exports.Carousel=he;exports.Slide=pe;
|
@@ -0,0 +1,121 @@
|
|
1
|
+
import { computed as b, resolveComponent as k, openBlock as a, createElementBlock as o, Fragment as P, renderList as V, unref as p, normalizeClass as y, createCommentVNode as w, createBlock as H, withCtx as B, createTextVNode as j, toDisplayString as v, createElementVNode as L, reactive as E, watch as I } from "vue";
|
2
|
+
import { useRoute as M } from "vue-router";
|
3
|
+
import { useI18n as N } from "vue-i18n";
|
4
|
+
import { s as l } from "./globals-96ba60e4.mjs";
|
5
|
+
import "./Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
|
6
|
+
import { a as R } from "./index-a661083c.mjs";
|
7
|
+
const U = {
|
8
|
+
class: "breadcrumbs flex-row flex-nowrap flex-left flex",
|
9
|
+
"aria-label": "breadcrumbs"
|
10
|
+
}, Z = {
|
11
|
+
key: 0,
|
12
|
+
class: "i-small mn-r-thin",
|
13
|
+
viewBox: "0 0 10 9",
|
14
|
+
fill: "none",
|
15
|
+
xmlns: "http://www.w3.org/2000/svg"
|
16
|
+
}, z = /* @__PURE__ */ L("path", {
|
17
|
+
fill: "black",
|
18
|
+
d: "M0.494141 4.26391C0.494141 4.48862 0.659906 4.66912 0.928813 4.66912C1.05037 4.66912 1.16825 4.6065 1.27139 4.52177L1.64344 4.20866V7.56448C1.64344 8.13545 1.98971 8.47803 2.5791 8.47803H7.56678C8.15616 8.47803 8.50243 8.13545 8.50243 7.56448V4.19392L8.8929 4.52177C8.99604 4.6065 9.11392 4.66912 9.23916 4.66912C9.48597 4.66912 9.67015 4.5144 9.67015 4.27128C9.67015 4.1313 9.61121 4.01343 9.5007 3.92133L8.50243 3.08146V1.47538C8.50243 1.30961 8.3956 1.1991 8.22984 1.1991H7.63308C7.46732 1.1991 7.35313 1.30961 7.35313 1.47538V2.11634L5.66969 0.70181C5.31606 0.403433 4.85928 0.403433 4.50197 0.70181L0.663589 3.92133C0.553079 4.01711 0.494141 4.14235 0.494141 4.26391ZM6.13752 5.26219C6.13752 5.08906 6.02701 4.97855 5.85387 4.97855H4.31779C4.14097 4.97855 4.02678 5.08906 4.02678 5.26219V7.63447H2.83327C2.60856 7.63447 2.48332 7.50922 2.48332 7.28084V3.5014L4.90349 1.47538C5.01768 1.37592 5.15029 1.37592 5.26817 1.47538L7.66255 3.48298V7.28084C7.66255 7.50922 7.53731 7.63447 7.3126 7.63447H6.13752V5.26219Z"
|
19
|
+
}, null, -1), S = [
|
20
|
+
z
|
21
|
+
], A = { key: 2 }, D = {
|
22
|
+
key: 3,
|
23
|
+
class: "i-small chevron",
|
24
|
+
viewBox: "0 0 4 8",
|
25
|
+
fill: "none",
|
26
|
+
xmlns: "http://www.w3.org/2000/svg"
|
27
|
+
}, F = /* @__PURE__ */ L("path", {
|
28
|
+
d: "M4 3.99992C4 3.83673 3.94307 3.70391 3.81025 3.57867L0.899431 0.732369C0.800759 0.629902 0.679317 0.580566 0.531309 0.580566C0.239089 0.580566 0 0.815861 0 1.10808C0 1.25229 0.0607211 1.38512 0.166983 1.49138L2.74763 3.99613L0.166983 6.50846C0.0607211 6.61093 0 6.74375 0 6.89176C0 7.18398 0.239089 7.41928 0.531309 7.41928C0.675522 7.41928 0.800759 7.36994 0.899431 7.26747L3.81025 4.42117C3.94307 4.29594 4 4.15931 4 3.99992Z",
|
29
|
+
fill: "black"
|
30
|
+
}, null, -1), T = [
|
31
|
+
F
|
32
|
+
], W = {
|
33
|
+
__name: "Breadcrumbs",
|
34
|
+
setup(e) {
|
35
|
+
const t = M(), { t: C, locale: i } = N(), m = b(() => t.matched.map((n) => {
|
36
|
+
var _, f, g;
|
37
|
+
const h = (_ = n.meta) == null ? void 0 : _.title, d = i == null ? void 0 : i.value, u = h && d && h[d], s = n.path.replace(/:.+?\//g, ($) => ""), x = (g = (f = n.meta) == null ? void 0 : f.breadcrumbs) == null ? void 0 : g.hidden;
|
38
|
+
return { name: u, path: s, isHidden: x };
|
39
|
+
}).filter((n) => n.name && !n.isHidden));
|
40
|
+
return (n, h) => {
|
41
|
+
const d = k("router-link");
|
42
|
+
return a(), o("ol", U, [
|
43
|
+
(a(!0), o(P, null, V(p(m), (u, s) => (a(), o("li", {
|
44
|
+
key: s,
|
45
|
+
class: y(["flex-v-center flex-nowrap flex", { "t-main": s === p(m).length - 1 }])
|
46
|
+
}, [
|
47
|
+
s === 0 ? (a(), o("svg", Z, S)) : w("", !0),
|
48
|
+
s !== p(m).length - 1 ? (a(), H(d, {
|
49
|
+
key: 1,
|
50
|
+
to: s === 0 ? "/" : u.path
|
51
|
+
}, {
|
52
|
+
default: B(() => [
|
53
|
+
j(v(u.name), 1)
|
54
|
+
]),
|
55
|
+
_: 2
|
56
|
+
}, 1032, ["to"])) : (a(), o("span", A, v(u.name), 1)),
|
57
|
+
s !== p(m).length - 1 ? (a(), o("svg", D, T)) : w("", !0)
|
58
|
+
], 2))), 128))
|
59
|
+
]);
|
60
|
+
};
|
61
|
+
}
|
62
|
+
}, c = R.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = E({
|
63
|
+
all: [],
|
64
|
+
current: {
|
65
|
+
order: "1",
|
66
|
+
name: "",
|
67
|
+
url: "",
|
68
|
+
subcategories: [],
|
69
|
+
filters: [],
|
70
|
+
localization: []
|
71
|
+
}
|
72
|
+
}), X = {
|
73
|
+
async fetchCategories() {
|
74
|
+
return await c.get("/categories").then(
|
75
|
+
(e) => (r.all = e.data, Promise.resolve(e.data)),
|
76
|
+
(e) => (l(e), Promise.reject(e))
|
77
|
+
);
|
78
|
+
},
|
79
|
+
updateCategories(e) {
|
80
|
+
return c.post("/categories", e).then(
|
81
|
+
(t) => (r.all = e, Promise.resolve(e)),
|
82
|
+
(t) => (l(t), Promise.reject(t))
|
83
|
+
);
|
84
|
+
},
|
85
|
+
fetchCategory(e) {
|
86
|
+
return c.get("/categories/" + e).then(
|
87
|
+
(t) => (r.current = t.data, Promise.resolve(t.data)),
|
88
|
+
(t) => (l(t), Promise.reject(t))
|
89
|
+
);
|
90
|
+
},
|
91
|
+
addCategory() {
|
92
|
+
return c.post("/categories/add", r.current).then(
|
93
|
+
(e) => (r.all.push(e.data), Promise.resolve(e.data)),
|
94
|
+
(e) => (l(e), Promise.reject(e))
|
95
|
+
);
|
96
|
+
},
|
97
|
+
updateCategory(e) {
|
98
|
+
return c.post("/categories/" + e, r.current).then(
|
99
|
+
(t) => (r.current = t.data, Promise.resolve(t.data)),
|
100
|
+
(t) => (l(t), Promise.reject(t))
|
101
|
+
);
|
102
|
+
},
|
103
|
+
deleteCategory(e) {
|
104
|
+
return c.delete("/categories/" + e).then(
|
105
|
+
(t) => {
|
106
|
+
const C = r.all.findIndex((i) => i.url === e);
|
107
|
+
r.all.splice(C, 1);
|
108
|
+
},
|
109
|
+
(t) => {
|
110
|
+
l(t);
|
111
|
+
}
|
112
|
+
);
|
113
|
+
}
|
114
|
+
};
|
115
|
+
I(r, (e) => {
|
116
|
+
});
|
117
|
+
export {
|
118
|
+
W as _,
|
119
|
+
X as a,
|
120
|
+
r as s
|
121
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";const e=require("vue"),g=require("vue-router"),k=require("vue-i18n"),a=require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const v=require("./index-b41aac19.js"),w={class:"breadcrumbs flex-row flex-nowrap flex-left flex","aria-label":"breadcrumbs"},B={key:0,class:"i-small mn-r-thin",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L=e.createElementVNode("path",{fill:"black",d:"M0.494141 4.26391C0.494141 4.48862 0.659906 4.66912 0.928813 4.66912C1.05037 4.66912 1.16825 4.6065 1.27139 4.52177L1.64344 4.20866V7.56448C1.64344 8.13545 1.98971 8.47803 2.5791 8.47803H7.56678C8.15616 8.47803 8.50243 8.13545 8.50243 7.56448V4.19392L8.8929 4.52177C8.99604 4.6065 9.11392 4.66912 9.23916 4.66912C9.48597 4.66912 9.67015 4.5144 9.67015 4.27128C9.67015 4.1313 9.61121 4.01343 9.5007 3.92133L8.50243 3.08146V1.47538C8.50243 1.30961 8.3956 1.1991 8.22984 1.1991H7.63308C7.46732 1.1991 7.35313 1.30961 7.35313 1.47538V2.11634L5.66969 0.70181C5.31606 0.403433 4.85928 0.403433 4.50197 0.70181L0.663589 3.92133C0.553079 4.01711 0.494141 4.14235 0.494141 4.26391ZM6.13752 5.26219C6.13752 5.08906 6.02701 4.97855 5.85387 4.97855H4.31779C4.14097 4.97855 4.02678 5.08906 4.02678 5.26219V7.63447H2.83327C2.60856 7.63447 2.48332 7.50922 2.48332 7.28084V3.5014L4.90349 1.47538C5.01768 1.37592 5.15029 1.37592 5.26817 1.47538L7.66255 3.48298V7.28084C7.66255 7.50922 7.53731 7.63447 7.3126 7.63447H6.13752V5.26219Z"},null,-1),x=[L],E={key:2},b={key:3,class:"i-small chevron",viewBox:"0 0 4 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V=e.createElementVNode("path",{d:"M4 3.99992C4 3.83673 3.94307 3.70391 3.81025 3.57867L0.899431 0.732369C0.800759 0.629902 0.679317 0.580566 0.531309 0.580566C0.239089 0.580566 0 0.815861 0 1.10808C0 1.25229 0.0607211 1.38512 0.166983 1.49138L2.74763 3.99613L0.166983 6.50846C0.0607211 6.61093 0 6.74375 0 6.89176C0 7.18398 0.239089 7.41928 0.531309 7.41928C0.675522 7.41928 0.800759 7.36994 0.899431 7.26747L3.81025 4.42117C3.94307 4.29594 4 4.15931 4 3.99992Z",fill:"black"},null,-1),P=[V],y={__name:"Breadcrumbs",setup(t){const r=g.useRoute(),{t:p,locale:c}=k.useI18n(),u=e.computed(()=>r.matched.map(s=>{var h,C,_;const m=(h=s.meta)==null?void 0:h.title,d=c==null?void 0:c.value,i=m&&d&&m[d],o=s.path.replace(/:.+?\//g,H=>""),f=(_=(C=s.meta)==null?void 0:C.breadcrumbs)==null?void 0:_.hidden;return{name:i,path:o,isHidden:f}}).filter(s=>s.name&&!s.isHidden));return(s,m)=>{const d=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("ol",w,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(i,o)=>(e.openBlock(),e.createElementBlock("li",{key:o,class:e.normalizeClass(["flex-v-center flex-nowrap flex",{"t-main":o===e.unref(u).length-1}])},[o===0?(e.openBlock(),e.createElementBlock("svg",B,x)):e.createCommentVNode("",!0),o!==e.unref(u).length-1?(e.openBlock(),e.createBlock(d,{key:1,to:o===0?"/":i.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.name),1)]),_:2},1032,["to"])):(e.openBlock(),e.createElementBlock("span",E,e.toDisplayString(i.name),1)),o!==e.unref(u).length-1?(e.openBlock(),e.createElementBlock("svg",b,P)):e.createCommentVNode("",!0)],2))),128))])}}},l=v.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),n=e.reactive({all:[],current:{order:"1",name:"",url:"",subcategories:[],filters:[],localization:[]}}),q={async fetchCategories(){return await l.get("/categories").then(t=>(n.all=t.data,Promise.resolve(t.data)),t=>(a.setError(t),Promise.reject(t)))},updateCategories(t){return l.post("/categories",t).then(r=>(n.all=t,Promise.resolve(t)),r=>(a.setError(r),Promise.reject(r)))},fetchCategory(t){return l.get("/categories/"+t).then(r=>(n.current=r.data,Promise.resolve(r.data)),r=>(a.setError(r),Promise.reject(r)))},addCategory(){return l.post("/categories/add",n.current).then(t=>(n.all.push(t.data),Promise.resolve(t.data)),t=>(a.setError(t),Promise.reject(t)))},updateCategory(t){return l.post("/categories/"+t,n.current).then(r=>(n.current=r.data,Promise.resolve(r.data)),r=>(a.setError(r),Promise.reject(r)))},deleteCategory(t){return l.delete("/categories/"+t).then(r=>{const p=n.all.findIndex(c=>c.url===t);n.all.splice(p,1)},r=>{a.setError(r)})}};e.watch(n,t=>{});exports._sfc_main=y;exports.actions=q;exports.state=n;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";const i={beforeMount(t,c,o){if(typeof c.value!="function"){const e=o.context.name;let n=`[Vue-click-outside:] provided expression ${c.expression}
|
2
|
+
is not a function, but has to be`;e&&(n+=`Found in component ${e}`),console.warn(n)}t.clickOutsideEvent=function(e){t===e.target||t.contains(e.target)||c.value(e,t)},document.body.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.body.removeEventListener("click",t.clickOutsideEvent)}};exports.clickOutside=i;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
const i = {
|
2
|
+
beforeMount(t, o, c) {
|
3
|
+
if (typeof o.value != "function") {
|
4
|
+
const e = c.context.name;
|
5
|
+
let n = `[Vue-click-outside:] provided expression ${o.expression}
|
6
|
+
is not a function, but has to be`;
|
7
|
+
e && (n += `Found in component ${e}`), console.warn(n);
|
8
|
+
}
|
9
|
+
t.clickOutsideEvent = function(e) {
|
10
|
+
t === e.target || t.contains(e.target) || o.value(e, t);
|
11
|
+
}, document.body.addEventListener("click", t.clickOutsideEvent);
|
12
|
+
},
|
13
|
+
unmounted(t) {
|
14
|
+
document.body.removeEventListener("click", t.clickOutsideEvent);
|
15
|
+
}
|
16
|
+
};
|
17
|
+
export {
|
18
|
+
i as c
|
19
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("vue-router"),S=require("./Select-3ca5ab39.js"),p=require("./CardBlogpost-c7364b1e.js"),_=require("./auth-f018f5b3.js"),B=require("./Image-4dcfddb8.js"),M=require("./Popup-795f5c88.js"),I=require("./BlockTags-8cddaef7.js"),z=require("./Checkbox-76f09248.js"),D=require("./SelectMulti-c25765cf.js"),F=require("./Button-7643c9aa.js"),O=require("./organizations-b4d902a2.js");require("./Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const j=require("./EmptyState-d65bab5b.js"),L=require("./SkeletonBlogpost-95db0fa9.js"),U=require("./Publics-1032c0f4.js"),H=require("vue-i18n");require("./globals-928eb13c.js");require("./Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js");const x=require("./Feed-8b554fc1.js"),A=require("./Field-e2a43424.js"),R=require("./_plugin-vue_export-helper-f246444f.js"),J=require("./Chips-0fdb31c9.js");require("./index-b41aac19.js");require("./IconEdit-c0469b45.js");require("./Upload-06d93178.js");require("./vue-draggable-next.esm-bundler-21a209c6.js");require("./IconCross-5bf93179.js");require("./Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./CardOrganization-647cb571.js");require("./ButtonToggleMembership-b9352cec.js");require("./memberships-393765d8.js");require("./Loader-21f016da.js");require("./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js");require("./PlaceholderUserpic-47f6f319.js");require("./Dropdown-31115457.js");require("./reports-270f69df.js");require("./click-outside-0b0727d1.js");const G={class:"min-h-100vh pd-thin"},Q={class:"mn-thin flex-v-center t-left flex-nowrap flex"},W={class:"flex-v-center flex-nowrap flex t-left"},K=e.createElementVNode("span",{class:""},"Topics for ",-1),X={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},Y={class:""},P={__name:"Community",setup(c){const r=w.useRoute(),n=w.useRouter();return(t,a)=>{const u=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("header",Q,[e.createElementVNode("h2",W,[K,e.createVNode(S.Select,{options:["today","week","month","year"],select:p.state.filter.period,"onUpdate:select":a[0]||(a[0]=o=>p.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",X,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:a[1]||(a[1]=o=>e.unref(n).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:a[2]||(a[2]=o=>e.unref(n).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:a[3]||(a[3]=o=>e.unref(n).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),_.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:a[4]||(a[4]=o=>e.unref(n).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",Y,[e.createVNode(u,null,{default:e.withCtx(({Component:o,route:d})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:d.query}))]),_:2},1024)]),_:1})])])}}},Z={class:"pd-thin"},ee={key:0,class:"h-100 w-100 bg-grey pd-big radius-big"},te={class:"w-full h-full"},oe={key:1,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},ne={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},ae=e.createElementVNode("h3",{class:"mn-small"},"Final Touches",-1),re=e.createElementVNode("h5",{class:"mn-thin"},"Add to public:",-1),se={key:0,class:"mn-thin"},le={key:1,class:"mn-medium br-grey br-2px br-solid pd-small radius-big"},$={__name:"CreateBlogPost",setup(c){const r=w.useRoute(),n=w.useRouter();let t=e.ref(null),a=e.ref(null);const u=e.ref([]),o=e.ref(null);e.onMounted(async()=>{if(r.params.url){const i=await p.read({user:_.state.user._id,url:r.params.url});t.value=i.pop()}else p.clean(),t.value=p.state.current;t.value.owner||(t.value.owner={target:_.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:_.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(o.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo});const l=await O.actions.read({user:_.state.user._id,postable:_.state.user._id,limit:100});console.log(l),a.value=l.map(i=>({name:i.profile.name,_id:i._id,photo:i.profile.photo}))});const d=e.ref(""),s=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>s.value.filter(l=>l.text.toLowerCase().includes(d.value.toLowerCase()))),e.computed(()=>s.value.filter(l=>!u.value.some(i=>i.text===l.text)));const m=e.ref(!1);function b(){m.value=!0}function v(){m.value=!1}function k(){u.value.length>0&&u.value.map(l=>l.text),t.value.status="draft",r.params.url?p.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):p.create(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)})}function N(){o.value&&(t.value.owner={target:o.value._id,type:"organization"}),o.value||(t.value.creator.hidden=!1),o.value||(t.value.organization=t.value.creator),t.value.status="published",console.log(t.value),r.params.url?p.update(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)}):p.create(t.value).then(l=>{n.push({name:"BlogPost",params:{url:l.url}})}).catch(l=>{console.log(l)})}function V(){confirm("Are you sure you want to delete this post?")&&p.remove(t.value._id).then(l=>{n.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(l=>{console.log(l)})}return(l,i)=>(e.openBlock(),e.createElementBlock("article",Z,[e.unref(t)?(e.openBlock(),e.createElementBlock("section",ee,[e.createElementVNode("div",te,[e.createVNode(B._sfc_main,{prop:e.unref(t),content:"name",placeholder:"Enter post title",class:"h2"},null,8,["prop"])]),e.createVNode(B._sfc_main$1,{content:e.unref(t).content,onUpdate:i[0]||(i[0]=g=>e.unref(t).content=g)},null,8,["content"])])):e.createCommentVNode("",!0),e.unref(t)?(e.openBlock(),e.createElementBlock("section",oe,[e.createElementVNode("div",ne,[e.unref(r).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:i[1]||(i[1]=g=>V()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:i[2]||(i[2]=g=>k()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:i[3]||(i[3]=g=>b()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0),e.createVNode(M._sfc_main,{title:"Добавить участника",onClosePopup:v,isPopupOpen:m.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[ae,e.createVNode(I._sfc_main,{onTagsChanged:i[4]||(i[4]=g=>e.unref(t).tags=g),tags:e.unref(t).tags},null,8,["tags"]),re,e.createVNode(D.SelectMulti,{modelValue:o.value,"onUpdate:modelValue":i[5]||(i[5]=g=>o.value=g),options:e.unref(a),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-medium bg-grey radius-medium pd-small"},null,8,["modelValue","options"]),o.value?(e.openBlock(),e.createElementBlock("h5",se,"Options:")):e.createCommentVNode("",!0),o.value?(e.openBlock(),e.createElementBlock("div",le,[e.createVNode(z.Checkbox,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":i[6]||(i[6]=g=>e.unref(t).creator.hidden=g),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(F._sfc_main,{submit:N,callback:l.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}},E=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"})),ie={class:"pd-thin"},q={__name:"BlogPost",setup(c){const r=w.useRoute(),n=e.ref(null),t=e.ref(!0);e.onMounted(async()=>{t.value=!0;const o=await p.read({user:_.state.user._id,url:r.params.url});n.value=o[0],t.value=!1});const a={Textarea:"p",H2:"h2",Bullets:"p",Caption:"p",ImageUpload:B._sfc_main$3};function u(o){return o.type==="Textarea"?{innerHTML:o.content,class:"p-medium"}:o.type==="H2"?{innerHTML:o.content,class:"h3"}:o.type==="Caption"?{innerHTML:o.content}:o.type==="ImageUpload"?{src:o.content}:{}}return(o,d)=>(e.openBlock(),e.createElementBlock("section",ie,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(3,s=>e.createVNode(L.SkeletonBlogpost,{key:s})),64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[!t.value&&!n.value?(e.openBlock(),e.createBlock(j._sfc_main,{key:0,title:"No Blogpost Found",description:"Currently, there are no blogposts available. Please check back later.",class:"pd-medium mn-thin bg-grey radius-big"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"fade",class:"container"},{default:e.withCtx(()=>[!t.value&&n.value?(e.openBlock(),e.createBlock(p._sfc_main,{key:0,onClick:d[0]||(d[0]=s=>o.$router.push({name:"Blogpost",params:{url:n.value.url}})),blogpost:n.value,user:_.state.user._id,type:"blogpostPage",class:e.normalizeClass(["mn-medium",{"br-b br-solid br-black-transp-10":o.index!==n.value.length-1}])},{default:e.withCtx(()=>[e.createElementVNode("section",null,[n.value&&n.value.content?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value.content,(s,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a[s.type]),e.mergeProps({key:m,index:m,component:s,prop:s,class:s.class,content:"content"},u(s),{class:"mn-regular"}),null,16,["index","component","prop","class"]))),128)):e.createCommentVNode("",!0)])]),_:1},8,["blogpost","user","class"])):e.createCommentVNode("",!0),e.createVNode(U._sfc_main,{class:"mn-small"}),!t.value&&n.value?(e.openBlock(),e.createBlock(B._sfc_main$2,{key:1,type:"blogpost",target:n.value._id,owner:_.state.user._id},null,8,["target","owner"])):e.createCommentVNode("",!0)]),_:1})]))}},ce=Object.freeze(Object.defineProperty({__proto__:null,default:q},Symbol.toStringTag,{value:"Module"})),T={__name:"Blog",setup(c){const r=w.useRoute(),n=w.useRouter();return r.params.category||(r.params.category="featured"),e.onMounted(()=>{if(r.query){const t=r.query,a={tags:t.tags?t.tags.split(","):[],period:t.period?t.period:"week"};p.state.filter=a}}),e.watch(()=>p.state.filter,(t,a)=>{const u={...r.query};Object.keys(a).forEach(d=>{u[d]&&delete u[d]});const o=Object.fromEntries(Object.entries(t).filter(([d,s])=>Array.isArray(s)&&s.length>0||typeof s=="string"&&s).map(([d,s])=>[d,Array.isArray(s)?s.join(","):s]));Object.assign(u,o),n.replace({query:u})},{deep:!0}),(t,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(x._sfc_main,{category:e.unref(r).params.category,user:_.state.user._id,period:e.unref(r).query.period,following:e.unref(r).params.category==="following"?_.state.user._id:null},null,8,["category","user","period","following"])]))}},ue=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),de={class:"w-100 cols-4 t-left flex-nowrap flex"},pe={key:0,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},me=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),ge={class:"t-semi uppercase"},fe=e.createElementVNode("br",null,null,-1),_e={key:1,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},he=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"💬",-1),ve={class:"t-semi uppercase"},be=e.createElementVNode("br",null,null,-1),ye={key:2,class:"w-100 br-2px br-solid br-white-transp-10 radius-small pd-small flex-v-center flex-nowrap flex"},we=e.createElementVNode("p",{class:"h4 i-medium mn-r-small"},"👍",-1),ke={class:"t-semi uppercase"},Be=e.createElementVNode("br",null,null,-1),Ne={__name:"Activity",props:{likes:Number,comments:Number,subscriptions:Number},setup(c){return(r,n)=>(e.openBlock(),e.createElementBlock("section",de,[c.likes?(e.openBlock(),e.createElementBlock("div",pe,[me,e.createElementVNode("span",ge,[e.createTextVNode(e.toDisplayString(c.likes),1),fe,e.createTextVNode("likes")])])):e.createCommentVNode("",!0),c.comments?(e.openBlock(),e.createElementBlock("div",_e,[he,e.createElementVNode("span",ve,[e.createTextVNode(e.toDisplayString(c.comments),1),be,e.createTextVNode("comments")])])):e.createCommentVNode("",!0),c.subscriptions?(e.openBlock(),e.createElementBlock("div",ye,[we,e.createElementVNode("span",ke,[e.createTextVNode(e.toDisplayString(c.subscriptions),1),Be,e.createTextVNode("subscriptions")])])):e.createCommentVNode("",!0)]))}},Ve={class:"pd-thin radius-extra flex-nowrap flex"},xe=["innerHTML"],Ce={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["First placeholder","Second placeholder","Third placeholder"],ru:["Первый плейсхолдер","Второй плейсхолдер","Третий плейсхолдер"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(c,{emit:r}){const n=c,{t,locale:a}=H.useI18n();let u=e.ref(0),o=e.ref(n.input),d=e.ref(n.placeholder),s=e.ref(n.enableTyping),m=e.ref(null),b=e.ref(""),v=e.ref(!0),k=null;function N(){r("action")}function V(h){r("update:input",h),b.value=h}function l(){u.value=(u.value+1)%n.placeholderTexts[a.value].length}function i(){s.value=!1,clearInterval(m.value),d.value=n.placeholder,b.value||(o.value="")}function g(){!b.value&&n.enableTyping&&(s.value=!0,d.value="",C())}function C(){let h=n.placeholderTexts[a.value][u.value],f=0,y=!1;k=setInterval(()=>{v.value=!v.value},200),m.value=setInterval(()=>{s.value&&(y?(o.value=o.value.slice(0,-1),o.value=h.substring(0,f)+(v.value&&f%2?"|":""),f--):(o.value=h.substring(0,f)+(v.value&&f%2?"|":""),f++),f>h.length&&n.loopTyping&&setTimeout(()=>{y=!0,o.value=h.substring(0,f)},333),f===0&&y&&(y=!1,l(),h=n.placeholderTexts[a.value][u.value]))},n.typingSpeed)}return e.onMounted(()=>{n.enableTyping&&C()}),e.watchEffect(()=>{s.value||(clearInterval(m.value),clearInterval(k))}),(h,f)=>(e.openBlock(),e.createElementBlock("div",Ve,[e.createVNode(A.Field,{field:e.unref(o),"onUpdate:field":[f[0]||(f[0]=y=>e.isRef(o)?o.value=y:o=y),V],placeholder:e.unref(d),onInput:l,onFocus:i,onBlur:g,class:"w-100 pd-small p-big"},null,8,["field","placeholder"]),c.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:N,class:"w-min hover_bg-white hover-t-black t-black bg-main button",innerHTML:c.action},null,8,xe)):e.createCommentVNode("",!0)]))}};const Ee={class:"pd-thin"},Pe={class:"o-hidden t-black bg-main pd-big radius-big"},$e=e.createElementVNode("header",{class:"t-center z-index-1 mn-big"},[e.createElementVNode("h2",{class:"mn-l-auto mn-r-auto w-m-40r mn-medium"},"Stay Updated with The Latest in Cannabis."),e.createElementVNode("p",{class:"t-transp p-big"},"Subscribe to our newsletter for news, insights, and more from the Weeder universe.")],-1),qe={class:"z-index-1 mn-big w-100 flex-nowrap flex"},Te=e.createElementVNode("div",{class:"w-100 h-100 pos-absolute pos-t-50-negative pos-r-0 z-index-0 grid"},[e.createElementVNode("div",{class:"spiral"})],-1),Se={__name:"SubscribeNewsletter",setup(c){let r=e.ref("");return(n,t)=>(e.openBlock(),e.createElementBlock("section",Ee,[e.createElementVNode("div",Pe,[$e,e.createElementVNode("div",qe,[e.createVNode(Ce,{input:e.unref(r),typingSpeed:75,loopTyping:!1,enableTyping:!1,placeholder:"Please enter your email",action:"Subscribe","onUpdate:input":t[0]||(t[0]=a=>e.isRef(r)?r.value=a:r=a),onAction:t[1]||(t[1]=a=>n.router.push({name:"Product Recommmendation",query:{mood:n.mood}})),class:"mn-l-auto mn-r-auto bg-white t-black w-50"},null,8,["input"])]),Te])]))}};const Me={class:"container container-joinus"},Ie={class:"content"},ze={class:"h0 mn-big"},De=e.createElementVNode("p",{class:"w-m-33r t-center mn-small p-big"},"Together, we're shaping the future of the globals cannabis community.",-1),Fe=e.createElementVNode("button",{class:"bg-black t-white button"},"Join Now",-1),Oe={__name:"JoinUs",setup(c){const r=e.ref(120950),n=e.ref(["/assets/images/reviews/01.png","/assets/images/reviews/02.png","/assets/images/reviews/03.png","/assets/images/reviews/04.png","/assets/images/reviews/05.png","/assets/images/reviews/06.png"]),t=()=>{setInterval(()=>{r.value+=Math.floor(Math.random()*5)+1},330)},a={minSize:"6rem",maxSize:"10rem",minDuration:5,maxDuration:15,spawnPoints:[10,90]};e.onMounted(()=>{u(),t()});const u=()=>{n.value.forEach((o,d)=>{let s=document.createElement("img");s.src=o,s.classList.add("floating-image");let m=a.spawnPoints[Math.floor(Math.random()*a.spawnPoints.length)],b=(Math.random()-.5)*2*10;s.style.left=`${m+b}%`,s.style.animationDuration=`${Math.random()*(a.maxDuration-a.minDuration)+a.minDuration}s`,document.querySelector(".container").appendChild(s),s.addEventListener("animationiteration",()=>{const v=a.spawnPoints[Math.floor(Math.random()*a.spawnPoints.length)],k=(Math.random()-.5)*2*10;s.style.left=`${v+k}%`})})};return(o,d)=>(e.openBlock(),e.createElementBlock("div",Me,[e.createElementVNode("div",Ie,[e.createElementVNode("span",ze,e.toDisplayString(r.value.toLocaleString()),1),De,Fe])]))}};const je=c=>(e.pushScopeId("data-v-2591cab6"),c=c(),e.popScopeId(),c),Le={class:"community-feed"},Ue=je(()=>e.createElementVNode("h2",{class:"w-m-75r mn-auto pd-t-big pd-b-big t-center"},"Discover the Vibrant Community",-1)),He={__name:"HotPosts",setup(c){return(r,n)=>(e.openBlock(),e.createElementBlock("section",Le,[Ue,e.createVNode(x._sfc_main,{skip:0,limit:3,user:_.state.user._id,period:"year",class:"cols-2 gap-thin"},null,8,["user"])]))}},Ae=R._export_sfc(He,[["__scopeId","data-v-2591cab6"]]),Re=[{path:"community",component:P,meta:{title:{en:"Community",ru:"Коммьюнити"},title_hide:!0},children:[{path:":category?",name:"Blog",meta:{title:{en:"Community",ru:"Коммьюнити"},title_hide:!0},component:()=>Promise.resolve().then(()=>ue)}]},{path:"community/posts/create",name:"Create BlogPost",meta:{title:{en:"Create Post",ru:"Создать Пост"},authorize:[]},component:()=>Promise.resolve().then(()=>E)},{path:"community/posts/:url",name:"BlogPost",meta:{title:{en:"Post",ru:"Пост"}},component:()=>Promise.resolve().then(()=>ce)},{path:"community/posts/:url/edit",name:"Edit BlogPost",meta:{title:{en:"Edit Post",ru:"Редактировать пост"},authorize:[]},component:()=>Promise.resolve().then(()=>E)}];exports.CardBlogpost=p._sfc_main;exports.FooterBlogpost=p._sfc_main$1;exports.blogpostsStore=p.blogposts;exports.Comments=B._sfc_main$2;exports.Feed=x._sfc_main;exports.reactionsStore=J.reactions;exports.Activity=Ne;exports.Blog=T;exports.BlogPost=q;exports.Community=P;exports.CreateBlogPost=$;exports.HotPosts=Ae;exports.JoinUs=Oe;exports.SubscribeNewsletter=Se;exports.blogpostsRoutes=Re;
|