@ozdao/prometheus-framework 0.0.85 → 0.0.86

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs +138 -0
  2. package/dist/ButtonFollow-728aab73.mjs +130 -0
  3. package/dist/CardHeader-ce5a1a75.mjs +96 -0
  4. package/dist/CardOrganization-58b54995.js +1 -0
  5. package/dist/CardOrganization-91e79698.mjs +320 -0
  6. package/dist/Comments-c092550f.mjs +76 -0
  7. package/dist/EditProductImages-61ff4321.mjs +236 -0
  8. package/dist/Feed-926cf4f3.mjs +355 -0
  9. package/dist/Feed-a31c43c2.mjs +423 -0
  10. package/dist/PlaceholderUserpic-995da0fc.mjs +28 -0
  11. package/dist/Popup-0c791801.mjs +76 -0
  12. package/dist/Product-6c37ef35.js +7 -0
  13. package/dist/Product-7087b358.mjs +837 -0
  14. package/dist/ProductEdit-c5067942.mjs +113 -0
  15. package/dist/ProfileBlogposts-79d5c858.mjs +63 -0
  16. package/dist/ProfileComments-48f3d4bc.mjs +43 -0
  17. package/dist/ProfileEvents-20695376.mjs +55 -0
  18. package/dist/ProfileLikes-503712ec.mjs +43 -0
  19. package/dist/ProfileOrganizations-3f305f4e.mjs +210 -0
  20. package/dist/ProfileOrganizations-50fce34e.js +1 -0
  21. package/dist/Publics-49dbeafc.js +1 -0
  22. package/dist/Publics-b0fad2b0.mjs +1926 -0
  23. package/dist/UploadImage-d1dbc280.mjs +99 -0
  24. package/dist/auth-35ef1791.mjs +1502 -0
  25. package/dist/auth.client.js +3 -3
  26. package/dist/auth.validation-29113f37.mjs +20 -0
  27. package/dist/categories-d669f3af.mjs +225 -0
  28. package/dist/community.client.cjs +1 -1
  29. package/dist/community.client.js +11 -11
  30. package/dist/events.client.js +9 -9
  31. package/dist/modules/icons/entities/IconCommunity.vue.d.ts +2 -0
  32. package/dist/organizations.client.cjs +2 -2
  33. package/dist/organizations.client.js +17 -17
  34. package/dist/organizations.server.js +1 -1
  35. package/dist/organizations.server.mjs +1 -1
  36. package/dist/style.css +1 -1
  37. package/dist/users.client.cjs +1 -1
  38. package/dist/users.client.js +244 -207
  39. package/package.json +1 -1
  40. package/src/modules/icons/entities/IconCommunity.vue +8 -0
  41. package/src/modules/organizations/components/blocks/CardOrganization.vue +2 -2
  42. package/src/modules/organizations/components/sections/Publics.vue +1 -0
  43. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  44. package/src/modules/users/components/pages/Profile.vue +15 -4
@@ -1,14 +1,14 @@
1
1
  import { ref as _, onMounted as Et, openBlock as v, createBlock as ce, unref as c, withCtx as C, createElementBlock as b, Fragment as fe, renderList as $t, createElementVNode as u, normalizeStyle as H, toDisplayString as y, resolveComponent as be, createVNode as g, Transition as F, resolveDynamicComponent as Tt, reactive as ut, withDirectives as S, vModelText as Z, watch as At, withAsyncContext as Ft, defineComponent as Dt, resolveDirective as Rt, normalizeClass as G, withKeys as ie, createCommentVNode as M, vShow as K, vModelDynamic as Mt, renderSlot as xt, createTextVNode as x } from "vue";
2
2
  import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
3
- import { c as ct, s as p, d as oe, a as zt, F as D, b as Y, e as W, _ as kt } from "./auth-8b5aac7a.mjs";
4
- import { f as R1, t as M1 } from "./auth-8b5aac7a.mjs";
3
+ import { d as ct, s as p, e as oe, a as zt, F as D, b as Y, c as W, _ as kt } from "./auth-35ef1791.mjs";
4
+ import { f as R1, t as M1 } from "./auth-35ef1791.mjs";
5
5
  import { C as Lt, S as jt } from "./carousel.es-44c501bc.mjs";
6
6
  import { useI18n as B } from "vue-i18n";
7
7
  import { useRoute as z, useRouter as k } from "vue-router";
8
8
  import { v as R, a as ft, b as _e, c as Ce } from "./inputs.validation-6960f71b.mjs";
9
9
  import { s as A } from "./globals-96ba60e4.mjs";
10
10
  import { _ as we } from "./Tab-054b61f7.mjs";
11
- import { r as V, a as ae, c as Te } from "./auth.validation-69488f55.mjs";
11
+ import { r as V, a as ae, c as Te } from "./auth.validation-29113f37.mjs";
12
12
  const Bt = { class: "parent-div" }, Ut = { class: "mn-small" }, Gt = { class: "mn-big mn-r-small mn-l-small" }, E1 = {
13
13
  __name: "SliderFeatures",
14
14
  setup(e) {
@@ -0,0 +1,20 @@
1
+ import { useRouter as i } from "vue-router";
2
+ import { s } from "./auth-35ef1791.mjs";
3
+ i();
4
+ function n(r, o, e) {
5
+ e(), s.user.phone = "", s.user.email = "", s.user.password = "", s.user.passwordRepeat = "";
6
+ }
7
+ function f(r, o, e) {
8
+ console.log(s.user), s.user.phone === "" && s.user.email === "" ? e("/auth/signin") : e();
9
+ }
10
+ i();
11
+ function c(r, o, e) {
12
+ if (s.access.status)
13
+ return e("/profile/" + s.user._id);
14
+ e();
15
+ }
16
+ export {
17
+ n as a,
18
+ f as c,
19
+ c as r
20
+ };
@@ -0,0 +1,225 @@
1
+ import { computed as V, resolveComponent as z, openBlock as u, createElementBlock as d, Fragment as H, renderList as B, unref as P, normalizeClass as R, createCommentVNode as v, createBlock as U, withCtx as I, createTextVNode as $, toDisplayString as y, createElementVNode as b, reactive as x, watch as L } from "vue";
2
+ import { useRoute as S } from "vue-router";
3
+ import { useI18n as A } from "vue-i18n";
4
+ import { s } from "./globals-96ba60e4.mjs";
5
+ import "./Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs";
6
+ import { a as j } from "./auth-35ef1791.mjs";
7
+ const E = {
8
+ class: "breadcrumbs flex-row flex-nowrap flex-left flex",
9
+ "aria-label": "breadcrumbs"
10
+ }, M = {
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
+ }, N = /* @__PURE__ */ b("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), Z = [
20
+ N
21
+ ], T = { key: 2 }, q = {
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
+ }, D = /* @__PURE__ */ b("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), F = [
31
+ D
32
+ ], te = {
33
+ __name: "Breadcrumbs",
34
+ setup(e) {
35
+ const t = S(), { t: a, locale: n } = A(), f = V(() => t.matched.map((l) => {
36
+ var C, _, w;
37
+ const g = (C = l.meta) == null ? void 0 : C.title, p = n == null ? void 0 : n.value, h = g && p && g[p], i = l.path.replace(/:.+?\//g, (K) => ""), k = (w = (_ = l.meta) == null ? void 0 : _.breadcrumbs) == null ? void 0 : w.hidden;
38
+ return { name: h, path: i, isHidden: k };
39
+ }).filter((l) => l.name && !l.isHidden));
40
+ return (l, g) => {
41
+ const p = z("router-link");
42
+ return u(), d("ol", E, [
43
+ (u(!0), d(H, null, B(P(f), (h, i) => (u(), d("li", {
44
+ key: i,
45
+ class: R(["flex-v-center flex-nowrap flex", { "t-main": i === P(f).length - 1 }])
46
+ }, [
47
+ i === 0 ? (u(), d("svg", M, Z)) : v("", !0),
48
+ i !== P(f).length - 1 ? (u(), U(p, {
49
+ key: 1,
50
+ to: i === 0 ? "/" : h.path
51
+ }, {
52
+ default: I(() => [
53
+ $(y(h.name), 1)
54
+ ]),
55
+ _: 2
56
+ }, 1032, ["to"])) : (u(), d("span", T, y(h.name), 1)),
57
+ i !== P(f).length - 1 ? (u(), d("svg", q, F)) : v("", !0)
58
+ ], 2))), 128))
59
+ ]);
60
+ };
61
+ }
62
+ }, c = j.create({ baseURL: process.env.API_URL, withCredentials: !0 }), r = x({
63
+ all: [],
64
+ current: {
65
+ recommendation: !1,
66
+ category: [],
67
+ status: "unpublished",
68
+ information: [],
69
+ coverImage: "",
70
+ images: [],
71
+ files: [],
72
+ image3d: !1,
73
+ name: "",
74
+ sale: 0,
75
+ price: 0,
76
+ localization: [],
77
+ modifications: [],
78
+ description: ""
79
+ }
80
+ }), re = {
81
+ async create(e, t) {
82
+ const a = {
83
+ ...t,
84
+ organization: e
85
+ };
86
+ return await c.post("/products/create", a).then(
87
+ (n) => (G(n.data, "current"), Promise.resolve(n.data)),
88
+ (n) => (s(n), Promise.reject(n))
89
+ );
90
+ },
91
+ async read(e = {}) {
92
+ e._id && (e.params = { _id: e._id }), e.category && (e.params = e.params || {}, e.params.category = e.category), e.params = e.params || {}, e.params.skip = e.skip || 0, e.params.limit = e.limit || 10, e.organization && (e.params.organization = e.organization), e.params.sort = "createdAt";
93
+ try {
94
+ console.log("Request params:" + e.params);
95
+ const t = await c.get("/products/read", { params: e.params });
96
+ return e._id ? r.current = t.data[0] : r.all = t.data, Promise.resolve(t.data);
97
+ } catch (t) {
98
+ return s(t), Promise.reject(t);
99
+ }
100
+ },
101
+ async update(e, t) {
102
+ return await c.post("/products/" + e, t).then(
103
+ (a) => Promise.resolve(a.data),
104
+ (a) => (s(a), Promise.reject(a))
105
+ );
106
+ },
107
+ async deleteProduct(e) {
108
+ return await c.delete("/products/" + e).then(
109
+ (t) => Promise.resolve(t.data),
110
+ (t) => (s(t), Promise.reject(t))
111
+ );
112
+ },
113
+ async submitMood(e = null) {
114
+ return console.log(e), c.post("/product/recommended", { mood: e }).then(
115
+ (t) => (r.current = t.data.product, r.current.recommendation = t.data.recommendationText, Promise.resolve(t.data)),
116
+ (t) => (console.log(t), s(t), Promise.reject(t))
117
+ );
118
+ },
119
+ async fetchProducts() {
120
+ return await c.get("/products").then(
121
+ (e) => (r.all = e.data, r.filtered = e.data.slice(), r.filteredPrice = r.filtered, r.filteredPrice.sort(function(t, a) {
122
+ return t[r.sort.current] > a[r.sort.current] ? r.sort.ascending ? 1 : -1 : t[r.sort.current] < a[r.sort.current] ? r.sort.ascending ? -1 : 1 : 0;
123
+ }), Promise.resolve(e.data)),
124
+ (e) => (s(e), Promise.reject(e))
125
+ );
126
+ },
127
+ async fetchProductsPopular() {
128
+ return await c.get("/products/popular").then(
129
+ (e) => (r.popular = e.data, Promise.resolve(e.data)),
130
+ (e) => (s(e), Promise.reject(e))
131
+ );
132
+ },
133
+ async fetchProductsPublished() {
134
+ return await c.get("/products").then(
135
+ (e) => {
136
+ let t = e.data.filter(function(a, n) {
137
+ return a.status !== "unpublished";
138
+ });
139
+ return r.all = t, r.filtered = t.slice(), r.filteredPrice = r.filtered, r.filteredPrice.sort(function(a, n) {
140
+ return a[r.sort.current] > n[r.sort.current] ? r.sort.ascending ? 1 : -1 : a[r.sort.current] < n[r.sort.current] ? r.sort.ascending ? -1 : 1 : 0;
141
+ }), Promise.resolve(e.data);
142
+ },
143
+ (e) => (s(e), Promise.reject(e))
144
+ );
145
+ },
146
+ async fetchProduct(e) {
147
+ return await c.get("/products/" + e).then(
148
+ (t) => (t.localization || (t.localization = []), r.current = t.data, Promise.resolve(t.data)),
149
+ (t) => (s(t), Promise.reject(t))
150
+ );
151
+ },
152
+ async fetchProductPopular() {
153
+ return await c.get("/products").then(
154
+ (e) => (r.all = e.data.slice(1, 5), Promise.resolve(e.data.slice(1, 5))),
155
+ (e) => (s(e), Promise.reject(e))
156
+ );
157
+ }
158
+ };
159
+ function G(e, t) {
160
+ r[t] = e;
161
+ }
162
+ L(r, (e, t) => {
163
+ });
164
+ const J = process.env.API_URL, m = j.create({ baseURL: J, withCredentials: !0 }), o = x({
165
+ all: [],
166
+ current: {
167
+ order: "1",
168
+ name: "",
169
+ url: "",
170
+ subcategories: [],
171
+ filters: [],
172
+ localization: []
173
+ }
174
+ }), ae = {
175
+ async fetchCategories() {
176
+ return await m.get("/categories").then(
177
+ (e) => (o.all = e.data, Promise.resolve(e.data)),
178
+ (e) => (s(e), Promise.reject(e))
179
+ );
180
+ },
181
+ updateCategories(e) {
182
+ return m.post("/categories", e).then(
183
+ (t) => (o.all = e, Promise.resolve(e)),
184
+ (t) => (s(t), Promise.reject(t))
185
+ );
186
+ },
187
+ fetchCategory(e) {
188
+ return m.get("/categories/" + e).then(
189
+ (t) => (o.current = t.data, Promise.resolve(t.data)),
190
+ (t) => (s(t), Promise.reject(t))
191
+ );
192
+ },
193
+ addCategory() {
194
+ return m.post("/categories/add", o.current).then(
195
+ (e) => (o.all.push(e.data), Promise.resolve(e.data)),
196
+ (e) => (s(e), Promise.reject(e))
197
+ );
198
+ },
199
+ updateCategory(e) {
200
+ return m.post("/categories/" + e, o.current).then(
201
+ (t) => (o.current = t.data, Promise.resolve(t.data)),
202
+ (t) => (s(t), Promise.reject(t))
203
+ );
204
+ },
205
+ deleteCategory(e) {
206
+ return m.delete("/categories/" + e).then(
207
+ (t) => {
208
+ const a = o.all.findIndex((n) => n.url === e);
209
+ o.all.splice(a, 1);
210
+ },
211
+ (t) => {
212
+ s(t);
213
+ }
214
+ );
215
+ }
216
+ };
217
+ L(o, (e) => {
218
+ });
219
+ export {
220
+ te as _,
221
+ ae as a,
222
+ re as b,
223
+ o as c,
224
+ r as s
225
+ };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),B=require("vue-router"),D=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-c6f3a0f0.js"),g=require("./Feed-55c5907a.js"),_=require("./auth-5aa8e90c.js"),X=require("./Popup-9479e39a.js"),S=require("./Publics-c9d5aa74.js"),Y=require("./vue-draggable-next.esm-bundler-80731ae0.js"),Z=require("./CardOrganization-0291683b.js"),ee=require("./EmptyState-7658d7d6.js"),F=require("./Comments-1aec0e5e.js"),te=require("vue-i18n");require("./globals-928eb13c.js");require("./CardHeader-925a972b.js");require("./PlaceholderUserpic-d64d6dd5.js");require("./ButtonFollow-2ce169ca.js");const oe={class:"min-h-100vh pd-thin"},ne={class:"mn-thin flex-v-center t-left flex-nowrap flex"},le={class:"flex-v-center flex-nowrap flex t-left"},ae=e.createElementVNode("span",{class:""},"Topics for ",-1),re={class:"bg-grey pd-medium radius-big mn-semi flex-nowrap flex"},se={class:""},U={__name:"Community",setup(a){const r=B.useRoute(),o=B.useRouter();return(t,s)=>{const u=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("header",ne,[e.createElementVNode("h2",le,[ae,e.createVNode(D.Select,{options:["today","week","month","year"],select:g.state.filter.period,"onUpdate:select":s[0]||(s[0]=n=>g.state.filter.period=n),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",re,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="featured"},"mn-r-small t-medium pd-small radius-small"]),onClick:s[1]||(s[1]=n=>e.unref(o).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="popular"},"mn-r-small t-medium pd-small radius-small"]),onClick:s[2]||(s[2]=n=>e.unref(o).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="new"},"mn-r-small t-medium pd-small radius-small"]),onClick:s[3]||(s[3]=n=>e.unref(o).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-small radius-small"]),onClick:s[4]||(s[4]=n=>e.unref(o).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",se,[e.createVNode(u,null,{default:e.withCtx(({Component:n,route:c})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:c.query}))]),_:2},1024)]),_:1})])])}}};const ce=["placeholder"],I={__name:"Textarea",props:["obj","label","prop","value","content","textarea","placeholder","index","ref","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(a,{emit:r}){const o=a;e.ref(o);const t=e.ref(null);e.ref(0);function s(l){let i=l.target.value.split(/\n+/);if(i.length>1){o.prop[o.content]=i[0],e.nextTick(()=>{c()});let m=i.slice(1).map(h=>({__name:"Textarea",content:h}));r("addBlock","Textarea","",o.index,{blocks:m,ref:t})}else l.target.value.trim()===""&&l.target.value.includes(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),B=require("vue-router"),D=require("./Breadcrumbs.vue_vue_type_style_index_0_lang-c6f3a0f0.js"),g=require("./Feed-55c5907a.js"),_=require("./auth-5aa8e90c.js"),X=require("./Popup-9479e39a.js"),S=require("./Publics-49dbeafc.js"),Y=require("./vue-draggable-next.esm-bundler-80731ae0.js"),Z=require("./CardOrganization-58b54995.js"),ee=require("./EmptyState-7658d7d6.js"),F=require("./Comments-1aec0e5e.js"),te=require("vue-i18n");require("./globals-928eb13c.js");require("./CardHeader-925a972b.js");require("./PlaceholderUserpic-d64d6dd5.js");require("./ButtonFollow-2ce169ca.js");const oe={class:"min-h-100vh pd-thin"},ne={class:"mn-thin flex-v-center t-left flex-nowrap flex"},le={class:"flex-v-center flex-nowrap flex t-left"},ae=e.createElementVNode("span",{class:""},"Topics for ",-1),re={class:"bg-grey pd-medium radius-big mn-semi flex-nowrap flex"},se={class:""},U={__name:"Community",setup(a){const r=B.useRoute(),o=B.useRouter();return(t,s)=>{const u=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("header",ne,[e.createElementVNode("h2",le,[ae,e.createVNode(D.Select,{options:["today","week","month","year"],select:g.state.filter.period,"onUpdate:select":s[0]||(s[0]=n=>g.state.filter.period=n),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",re,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="featured"},"mn-r-small t-medium pd-small radius-small"]),onClick:s[1]||(s[1]=n=>e.unref(o).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="popular"},"mn-r-small t-medium pd-small radius-small"]),onClick:s[2]||(s[2]=n=>e.unref(o).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(r).params.category==="new"},"mn-r-small t-medium pd-small radius-small"]),onClick:s[3]||(s[3]=n=>e.unref(o).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-small radius-small"]),onClick:s[4]||(s[4]=n=>e.unref(o).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",se,[e.createVNode(u,null,{default:e.withCtx(({Component:n,route:c})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:c.query}))]),_:2},1024)]),_:1})])])}}};const ce=["placeholder"],I={__name:"Textarea",props:["obj","label","prop","value","content","textarea","placeholder","index","ref","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(a,{emit:r}){const o=a;e.ref(o);const t=e.ref(null);e.ref(0);function s(l){let i=l.target.value.split(/\n+/);if(i.length>1){o.prop[o.content]=i[0],e.nextTick(()=>{c()});let m=i.slice(1).map(h=>({__name:"Textarea",content:h}));r("addBlock","Textarea","",o.index,{blocks:m,ref:t})}else l.target.value.trim()===""&&l.target.value.includes(`
2
2
 
3
3
  `)&&(console.log("We are adding new block:"+o.index+newBlocks+t),r("addBlock","Textarea","",o.index,{blocks:newBlocks,ref:t})),c()}function u(l){(l.keyCode===8||l.keyCode===46)&&o.prop[o.content].trim()===""&&r("deleteBlock",o.prop)}function n(){e.nextTick(()=>{t.value.focus(),r("updateBlock",o.prop,{setFocus:!1})})}function c(){t.value.style.height="1rem",t.value.style.height=t.value.scrollHeight+"px"}return e.onUpdated(()=>{o.setFocus&&e.nextTick(()=>{n()}),c()}),e.onMounted(()=>{o.setFocus&&e.nextTick(()=>{n()}),c()}),e.watch(()=>o.prop[o.content],l=>{}),(l,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":i[0]||(i[0]=m=>a.prop[a.content]=m),placeholder:a.placeholder?a.placeholder:"Enter text",onInput:s,onFocus:i[1]||(i[1]=m=>r("focus",t.value)),onKeyup:u,ref_key:"textarea",ref:t,class:"text-area mn-thin"},`
4
4
  `,40,ce),[[e.vModelText,a.prop[a.content]]])]))}};const ie=["placeholder"],z={__name:"H2",props:["obj","label","prop","value","content","textarea","placeholder","index","ref","setFocus"],emits:["deleteBlock","updateBlock","addBlock","focus"],setup(a,{emit:r}){const o=a;e.ref(o);const t=e.ref(null);e.ref(0);function s(l){let i=l.target.value.split(/\n+/);if(i.length>1){o.prop[o.content]=i[0],e.nextTick(()=>{c()});let m=i.slice(1).map(h=>({type:"Textarea",content:h}));r("addBlock","Textarea","",o.index,{blocks:m,ref:t})}else l.target.value.trim()===""&&l.target.value.includes(`
@@ -1,20 +1,20 @@
1
1
  import { resolveComponent as ve, openBlock as u, createElementBlock as m, createElementVNode as r, createVNode as x, normalizeClass as D, unref as _, createCommentVNode as y, withCtx as T, Transition as X, createBlock as U, resolveDynamicComponent as Y, ref as g, onUpdated as R, nextTick as M, onMounted as S, watch as E, withDirectives as q, vModelText as J, createTextVNode as F, toDisplayString as H, withModifiers as re, computed as te, watchEffect as ie, Fragment as V, renderList as O, createStaticVNode as _e, TransitionGroup as ne, mergeProps as be, isRef as ce, withAsyncContext as ye, pushScopeId as xe, popScopeId as we } from "vue";
2
2
  import { useRoute as K, useRouter as Z } from "vue-router";
3
- import { S as ke, C as $e } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-a477dfc6.mjs";
4
- import { s as N, r as ee, c as Be, u as le, a as oe, b as Ce, d as ue, _ as Pe } from "./Feed-ca8e0e22.mjs";
5
- import { e as Dn, f as zn, g as Hn } from "./Feed-ca8e0e22.mjs";
6
- import { s as P, a as Te, b as Ie, _ as pe, F as Se } from "./auth-8b5aac7a.mjs";
7
- import { _ as Fe } from "./Popup-70f6a8c0.mjs";
8
- import { _ as Ue, S as Me, a as De } from "./Publics-fbc8d2db.mjs";
3
+ import { S as ke, C as $e } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs";
4
+ import { s as N, r as ee, c as Be, u as le, a as oe, b as Ce, d as ue, _ as Pe } from "./Feed-a31c43c2.mjs";
5
+ import { e as Dn, f as zn, g as Hn } from "./Feed-a31c43c2.mjs";
6
+ import { s as P, a as Te, b as Ie, _ as pe, F as Se } from "./auth-35ef1791.mjs";
7
+ import { _ as Fe } from "./Popup-0c791801.mjs";
8
+ import { _ as Ue, S as Me, a as De } from "./Publics-b0fad2b0.mjs";
9
9
  import { V as ze } from "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
10
- import { a as He } from "./CardOrganization-1384ff9a.mjs";
10
+ import { a as He } from "./CardOrganization-91e79698.mjs";
11
11
  import { _ as je } from "./EmptyState-34d85f10.mjs";
12
- import { _ as Ae } from "./Comments-641516f8.mjs";
12
+ import { _ as Ae } from "./Comments-c092550f.mjs";
13
13
  import { useI18n as Ne } from "vue-i18n";
14
14
  import "./globals-96ba60e4.mjs";
15
- import "./CardHeader-2ef6618e.mjs";
16
- import "./PlaceholderUserpic-e44ccca8.mjs";
17
- import "./ButtonFollow-c9484003.mjs";
15
+ import "./CardHeader-ce5a1a75.mjs";
16
+ import "./PlaceholderUserpic-995da0fc.mjs";
17
+ import "./ButtonFollow-728aab73.mjs";
18
18
  const Ee = { class: "min-h-100vh pd-thin" }, Le = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, Ve = { class: "flex-v-center flex-nowrap flex t-left" }, Oe = /* @__PURE__ */ r("span", { class: "" }, "Topics for ", -1), Re = { class: "bg-grey pd-medium radius-big mn-semi flex-nowrap flex" }, qe = { class: "" }, Je = {
19
19
  __name: "Community",
20
20
  setup(o) {
@@ -1,18 +1,18 @@
1
- import { r as J, a as H, s as x, S as X, _ as Z } from "./Feed-81d5802e.mjs";
2
- import { e as gt } from "./Feed-81d5802e.mjs";
1
+ import { r as J, a as H, s as x, S as X, _ as Z } from "./Feed-926cf4f3.mjs";
2
+ import { e as gt } from "./Feed-926cf4f3.mjs";
3
3
  import { openBlock as i, createElementBlock as p, createStaticVNode as ee, ref as k, onMounted as q, createVNode as m, TransitionGroup as T, withCtx as y, Fragment as D, renderList as P, createBlock as h, createCommentVNode as b, Transition as B, normalizeClass as z, createElementVNode as d, unref as L, toDisplayString as A, watch as W, resolveComponent as te, resolveDynamicComponent as re, withAsyncContext as M, createTextVNode as Y, reactive as ae } from "vue";
4
4
  import { _ as G } from "./EmptyState-34d85f10.mjs";
5
- import { _ as Q, b as K, a as ne, s as $ } from "./auth-8b5aac7a.mjs";
5
+ import { _ as Q, b as K, a as ne, s as $ } from "./auth-35ef1791.mjs";
6
6
  import { useRoute as N, useRouter as F } from "vue-router";
7
- import { C as se } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-a477dfc6.mjs";
8
- import { a as oe, b as O, _ as ie, s as g, c as le } from "./categories-86b2d45b.mjs";
7
+ import { C as se } from "./Breadcrumbs.vue_vue_type_style_index_0_lang-628f013e.mjs";
8
+ import { a as oe, b as O, _ as ie, s as g, c as le } from "./categories-d669f3af.mjs";
9
9
  import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
10
10
  import "vue-i18n";
11
- import { _ as ce, a as U, b as ue } from "./EditProductImages-f983f473.mjs";
11
+ import { _ as ce, a as U, b as ue } from "./EditProductImages-61ff4321.mjs";
12
12
  import { s as I } from "./globals-96ba60e4.mjs";
13
- import { _ as de } from "./Comments-641516f8.mjs";
14
- import "./CardHeader-2ef6618e.mjs";
15
- import "./PlaceholderUserpic-e44ccca8.mjs";
13
+ import { _ as de } from "./Comments-c092550f.mjs";
14
+ import "./CardHeader-ce5a1a75.mjs";
15
+ import "./PlaceholderUserpic-995da0fc.mjs";
16
16
  import "./vuex.esm-bundler-57d8b6ba.mjs";
17
17
  import "./vue-draggable-next.esm-bundler-ff6e3f52.mjs";
18
18
  const me = {}, pe = {
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;