@ozdao/prometheus-framework 0.1.30 → 0.1.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. package/dist/BackofficeGallery-02c9721b.mjs +304 -0
  2. package/dist/BackofficeGallery-1d117a40.js +1 -0
  3. package/dist/BackofficeReports-cb4b180d.mjs +44 -0
  4. package/dist/BackofficeReports-d021871f.js +1 -0
  5. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-505c3ca5.js +1 -0
  6. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-b1873cb7.mjs +1945 -0
  7. package/dist/Button-2ca405bd.js +1 -0
  8. package/dist/Button-c59d387c.mjs +283 -0
  9. package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  10. package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  11. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js +1 -0
  12. package/dist/ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs +1 -0
  13. package/dist/CardOrganization-18c1e3fa.mjs +297 -0
  14. package/dist/CardOrganization-26714a5e.mjs +297 -0
  15. package/dist/CardOrganization-7d679e75.js +1 -0
  16. package/dist/CardOrganization-88c6d479.js +1 -0
  17. package/dist/Chips-0e5bdd54.js +1 -0
  18. package/dist/Chips-2ada5eda.mjs +200 -0
  19. package/dist/Chips-5e32c8cb.mjs +200 -0
  20. package/dist/Chips-8d0a1d2c.js +1 -0
  21. package/dist/Dashboard-239fb7a6.mjs +52 -0
  22. package/dist/Dashboard-94267906.js +1 -0
  23. package/dist/EULA-8265b0cf.mjs +4218 -0
  24. package/dist/EULA-cbb27503.js +1 -0
  25. package/dist/Feed-275a14d8.mjs +371 -0
  26. package/dist/Feed-505b3fa8.mjs +383 -0
  27. package/dist/Feed-66095e66.js +1 -0
  28. package/dist/Feed-76fc4475.mjs +383 -0
  29. package/dist/Feed-d0da2943.js +1 -0
  30. package/dist/Feed-e55bc6fa.js +1 -0
  31. package/dist/Feed-ee36f80b.js +1 -0
  32. package/dist/Feed-ef6c6ca3.mjs +371 -0
  33. package/dist/IconEdit-1b7b5874.js +1 -0
  34. package/dist/IconEdit-680dc269.mjs +339 -0
  35. package/dist/IconEdit-c98d3d06.mjs +339 -0
  36. package/dist/IconEdit-e4d0cc6e.js +1 -0
  37. package/dist/Image-052a3cc2.mjs +480 -0
  38. package/dist/Image-2d2e606a.js +9 -0
  39. package/dist/Image-95c0fb07.mjs +480 -0
  40. package/dist/Image-c90ee624.js +9 -0
  41. package/dist/MenuItem-0b249b94.mjs +93 -0
  42. package/dist/MenuItem-8b70d2cf.js +1 -0
  43. package/dist/Product-4b58701f.js +7 -0
  44. package/dist/Product-6aa1c9ee.mjs +844 -0
  45. package/dist/Product-6ca8d04d.js +7 -0
  46. package/dist/Product-a6251018.mjs +844 -0
  47. package/dist/ProductEdit-2e309add.js +1 -0
  48. package/dist/ProductEdit-3ff2af92.js +1 -0
  49. package/dist/ProductEdit-6abcc97b.mjs +306 -0
  50. package/dist/ProductEdit-f901314c.mjs +306 -0
  51. package/dist/ProfileBlogposts-57931834.mjs +70 -0
  52. package/dist/ProfileBlogposts-62d5e809.mjs +70 -0
  53. package/dist/ProfileBlogposts-af88ce98.js +1 -0
  54. package/dist/ProfileBlogposts-c31917ec.js +1 -0
  55. package/dist/ProfileEvents-588eadf9.js +1 -0
  56. package/dist/ProfileEvents-89471c05.js +1 -0
  57. package/dist/ProfileEvents-e070d9d4.mjs +62 -0
  58. package/dist/ProfileEvents-ed7f9603.mjs +62 -0
  59. package/dist/ProfileOrganizations-7911deec.mjs +219 -0
  60. package/dist/ProfileOrganizations-ae258581.js +1 -0
  61. package/dist/ProfileOrganizations-bee6a3ae.js +1 -0
  62. package/dist/ProfileOrganizations-db313b5e.mjs +219 -0
  63. package/dist/Publics-24f055eb.js +1 -0
  64. package/dist/Publics-50c0ff6c.js +1 -0
  65. package/dist/Publics-b1cbfd97.mjs +45 -0
  66. package/dist/Publics-f34131bf.mjs +45 -0
  67. package/dist/Select-11ddabf5.mjs +79 -0
  68. package/dist/Select-3ca5ab39.js +1 -0
  69. package/dist/Socials-3fe01af1.mjs +275 -0
  70. package/dist/Socials-9b2d27a6.js +1 -0
  71. package/dist/Socials-b19d0cb1.js +1 -0
  72. package/dist/Socials-becde7dc.mjs +275 -0
  73. package/dist/addMembersQuantity-ea216f92.mjs +85 -0
  74. package/dist/addMembersQuantity-f922d82b.js +84 -0
  75. package/dist/auth-98fe3efb.mjs +612 -0
  76. package/dist/auth-acbe3ae1.js +7 -0
  77. package/dist/auth.client.cjs +7 -8
  78. package/dist/auth.client.js +378 -379
  79. package/dist/auth.validation-495e9d6d.js +1 -0
  80. package/dist/auth.validation-e265b496.mjs +23 -0
  81. package/dist/backoffice.client.cjs +1 -1
  82. package/dist/backoffice.client.js +55 -28
  83. package/dist/click-outside-0b0727d1.js +2 -0
  84. package/dist/click-outside-6101836c.mjs +19 -0
  85. package/dist/community.client.cjs +1 -1
  86. package/dist/community.client.js +121 -121
  87. package/dist/community.server.js +35 -5
  88. package/dist/community.server.mjs +35 -5
  89. package/dist/components/Button/Button.vue.d.ts +3 -0
  90. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  91. package/dist/components/CardHeader/CardHeader.vue.d.ts +3 -0
  92. package/dist/components/Dropdown/Dropdown.vue.d.ts +3 -0
  93. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  94. package/dist/components/Field/Field.vue.d.ts +1 -1
  95. package/dist/components/FieldPhone/FieldPhone(script-setup).vue.d.ts +3 -3
  96. package/dist/components/Popup/Popup.vue.d.ts +2 -1
  97. package/dist/components/Popup/Popup.vue.d.ts.map +1 -1
  98. package/dist/components/Select/Select.vue.d.ts +1 -1
  99. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  100. package/dist/components/Upload/Upload.vue.d.ts +1 -1
  101. package/dist/events.client.cjs +2 -2
  102. package/dist/events.client.js +219 -217
  103. package/dist/events.server.js +1 -0
  104. package/dist/events.server.mjs +1 -0
  105. package/dist/legal.client.cjs +1 -1
  106. package/dist/legal.client.js +2565 -2545
  107. package/dist/main.css +1 -1
  108. package/dist/main.d.ts +1 -1
  109. package/dist/modules/backoffice/components/pages/Dashboard.vue.d.ts +6 -0
  110. package/dist/modules/icons/navigation/IconCross.vue.d.ts +4 -0
  111. package/dist/modules/legal/components/pages/legal/EULA.vue.d.ts +2 -0
  112. package/dist/modules/organizations/components/elements/ButtonFollow.vue.d.ts +1 -1
  113. package/dist/modules/organizations/components/elements/ButtonToggleMembership.vue.d.ts +12 -0
  114. package/dist/modules/organizations/components/sections/DetailsTab.vue.d.ts +2 -58
  115. package/dist/modules/organizations/components/sections/Feed.vue.d.ts +1 -1
  116. package/dist/modules/reports/components/pages/BackofficeReports.vue.d.ts +2 -0
  117. package/dist/modules/reports/components/sections/FormReport.vue.d.ts +75 -0
  118. package/dist/modules/reports/store/reports.d.ts +41 -0
  119. package/dist/organizations-a241b21d.js +1 -0
  120. package/dist/organizations-ea9de495.mjs +122 -0
  121. package/dist/organizations.client-292e8444.js +3 -0
  122. package/dist/organizations.client-6a69b54a.js +3 -0
  123. package/dist/organizations.client-6fc91683.mjs +3072 -0
  124. package/dist/organizations.client-c288ff44.mjs +3072 -0
  125. package/dist/organizations.client.cjs +1 -1
  126. package/dist/organizations.client.js +51 -49
  127. package/dist/organizations.server.js +20 -28
  128. package/dist/organizations.server.mjs +20 -28
  129. package/dist/prometheus-framework.cjs.js +19 -19
  130. package/dist/prometheus-framework.es.js +1635 -1608
  131. package/dist/reports-270f69df.js +1 -0
  132. package/dist/reports-79cd9459.mjs +91 -0
  133. package/dist/reports.client.cjs +1 -0
  134. package/dist/reports.client.js +8 -0
  135. package/dist/reports.server.js +159 -0
  136. package/dist/reports.server.mjs +160 -0
  137. package/dist/states.validation-02ba0aee.js +1 -0
  138. package/dist/states.validation-e5f4fa3a.mjs +13 -0
  139. package/dist/style.css +1 -1
  140. package/dist/users.client.cjs +1 -1
  141. package/dist/users.client.js +286 -242
  142. package/dist/users.server.js +6 -18
  143. package/dist/users.server.mjs +6 -18
  144. package/package.json +9 -1
  145. package/src/components/Button/Button.vue +66 -60
  146. package/src/components/CardHeader/CardHeader.vue +51 -50
  147. package/src/components/Dropdown/Dropdown.vue +28 -12
  148. package/src/components/FieldPhone/click-outside.js +0 -48
  149. package/src/components/Popup/Popup.vue +74 -23
  150. package/src/components/Select/Select.vue +10 -6
  151. package/src/main.ts +1 -1
  152. package/src/modules/auth/components/pages/EnterPassword.vue +6 -0
  153. package/src/modules/auth/store/auth.js +1 -1
  154. package/src/modules/backoffice/components/layouts/Backoffice.vue +3 -3
  155. package/src/modules/backoffice/components/pages/Dashboard.vue +62 -0
  156. package/src/modules/backoffice/router/backoffice.js +26 -0
  157. package/src/modules/community/components/blocks/CardBlogpost.vue +3 -0
  158. package/src/modules/community/components/layouts/Community.vue +4 -4
  159. package/src/modules/community/components/pages/CreateBlogPost.vue +27 -28
  160. package/src/modules/community/components/sections/Comments.vue +4 -2
  161. package/src/modules/community/components/sections/Feed.vue +1 -1
  162. package/src/modules/community/controllers/blog.controller.js +22 -3
  163. package/src/modules/community/controllers/comments.controller.js +23 -5
  164. package/src/modules/events/components/blocks/CardEvent.vue +4 -0
  165. package/src/modules/events/components/pages/EditEvent.vue +27 -28
  166. package/src/modules/events/components/sections/Feed.vue +1 -1
  167. package/src/modules/events/controllers/events.controller.js +3 -0
  168. package/src/modules/gallery/components/sections/BackofficeGallery.vue +7 -23
  169. package/src/modules/icons/navigation/IconCross.vue +22 -0
  170. package/src/modules/legal/components/pages/Legal.vue +3 -0
  171. package/src/modules/legal/components/pages/legal/EULA.vue +2148 -0
  172. package/src/modules/legal/router/legal.js +11 -4
  173. package/src/modules/middlewares/client/auth.validation.js +14 -0
  174. package/src/modules/mobile/components/Menu/Menu.vue +1 -1
  175. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  176. package/src/modules/organizations/components/elements/ButtonFollow.vue +9 -7
  177. package/src/modules/organizations/components/elements/ButtonToggleMembership.vue +101 -0
  178. package/src/modules/organizations/components/pages/Organization.vue +1 -34
  179. package/src/modules/organizations/components/sections/DetailsTab.vue +86 -8
  180. package/src/modules/organizations/controllers/memberships.controller.js +10 -7
  181. package/src/modules/organizations/controllers/organizations.controller.js +9 -20
  182. package/src/modules/organizations/controllers/utils/addMembersQuantity.js +21 -0
  183. package/src/modules/organizations/controllers/utils/addUserStatusFields.js +65 -0
  184. package/src/modules/organizations/controllers/utils/excludeBlockedMembers.js +18 -0
  185. package/src/modules/organizations/models/membership.model.js +5 -5
  186. package/src/modules/organizations/store/memberships.js +6 -6
  187. package/src/modules/organizations/store/organizations.js +0 -1
  188. package/src/modules/products/products.server.js +5 -0
  189. package/src/modules/reports/components/pages/BackofficeReports.vue +67 -0
  190. package/src/modules/reports/components/sections/FormReport.vue +116 -0
  191. package/src/modules/reports/controllers/reports.controller.js +67 -0
  192. package/src/modules/reports/models/report.model.js +58 -0
  193. package/src/modules/reports/reports.client.js +17 -0
  194. package/src/modules/reports/reports.server.js +13 -0
  195. package/src/modules/reports/routes/reports.routes.js +43 -0
  196. package/src/modules/reports/store/reports.js +118 -0
  197. package/src/modules/users/components/pages/Profile.vue +57 -10
  198. package/src/modules/users/controllers/users.controller.js +6 -19
  199. package/src/styles/base/all.scss +2 -0
  200. package/src/styles/layout.scss +39 -63
  201. package/src/styles/theme.scss +0 -1
  202. package/src/styles/components/popup.scss +0 -55
@@ -0,0 +1,297 @@
1
+ import { openBlock as n, createElementBlock as i, createCommentVNode as c, createElementVNode as e, createTextVNode as f, toDisplayString as r, ref as C, computed as h, unref as p, createBlock as b, withCtx as _, createVNode as $, Fragment as w, renderList as x, withModifiers as z } from "vue";
2
+ import { useRouter as y } from "vue-router";
3
+ import { _ as k } from "./Button-c59d387c.mjs";
4
+ import "./auth-98fe3efb.mjs";
5
+ import { a as v } from "./IconEdit-680dc269.mjs";
6
+ import "./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-4ed993c7.mjs";
7
+ import { _ as L } from "./_plugin-vue_export-helper-dad06003.mjs";
8
+ const I = { class: "flex-stretch flex-nojustify flex-nowrap flex shop-cart-item" }, M = ["src"], S = {
9
+ key: 1,
10
+ width: "524",
11
+ height: "345",
12
+ viewBox: "0 0 524 345",
13
+ fill: "none",
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ class: "aspect-1x1",
16
+ style: { "object-fit": "cover" }
17
+ }, V = /* @__PURE__ */ e("rect", {
18
+ width: "524",
19
+ height: "345",
20
+ fill: "white"
21
+ }, null, -1), B = /* @__PURE__ */ e("rect", {
22
+ width: "524",
23
+ height: "345",
24
+ fill: "white"
25
+ }, null, -1), F = /* @__PURE__ */ e("circle", {
26
+ cx: "262",
27
+ cy: "172",
28
+ r: "56",
29
+ fill: "#00ff88",
30
+ "fill-opacity": "0.1"
31
+ }, null, -1), T = /* @__PURE__ */ e("path", {
32
+ fill: "#00ff88",
33
+ d: "M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"
34
+ }, null, -1), q = [
35
+ V,
36
+ B,
37
+ F,
38
+ T
39
+ ], E = { class: "text-left" }, O = { class: "name" }, R = {
40
+ key: 0,
41
+ class: "t-transp"
42
+ }, H = {
43
+ key: 1,
44
+ class: "t-transp"
45
+ }, Z = {
46
+ key: 2,
47
+ class: "t-transp"
48
+ }, j = { class: "t-main t-demi price mn-small" }, N = { key: 0 }, U = {
49
+ key: 0,
50
+ class: "flex-nojustify flex"
51
+ }, D = { class: "flex-nowrap flex" }, P = /* @__PURE__ */ e("svg", {
52
+ fill: "none",
53
+ height: "20",
54
+ viewBox: "0 0 20 20",
55
+ width: "20",
56
+ xmlns: "http://www.w3.org/2000/svg"
57
+ }, [
58
+ /* @__PURE__ */ e("path", {
59
+ "clip-rule": "evenodd",
60
+ d: "m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",
61
+ fill: "#8a8a8a",
62
+ "fill-rule": "evenodd"
63
+ })
64
+ ], -1), A = [
65
+ P
66
+ ], G = {
67
+ __name: "CardOrderItem",
68
+ props: {
69
+ product: Object,
70
+ editable: String,
71
+ increase: Function,
72
+ decrease: Function,
73
+ remove: Function
74
+ },
75
+ setup(t) {
76
+ return y(), (o, s) => (n(), i("div", I, [
77
+ t.product.images[0] ? (n(), i("img", {
78
+ key: 0,
79
+ class: "bg-grey aspect-1x1",
80
+ src: (o.FILE_SERVER_URL || "") + t.product.images[0]
81
+ }, null, 8, M)) : c("", !0),
82
+ t.product.images[0] ? c("", !0) : (n(), i("svg", S, q)),
83
+ e("div", E, [
84
+ e("p", O, [
85
+ f(r(t.product.name) + " ", 1),
86
+ t.product.size ? (n(), i("span", R, ", " + r(t.product.size), 1)) : c("", !0),
87
+ typeof t.product.color == "string" && t.product.size ? (n(), i("span", H, ", ")) : c("", !0),
88
+ typeof t.product.color == "string" ? (n(), i("span", Z, r(t.product.color), 1)) : c("", !0)
89
+ ]),
90
+ e("p", j, [
91
+ t.editable ? (n(), i("span", N, r(t.product.quantity) + " x ", 1)) : c("", !0),
92
+ f(r(t.product.price) + " " + r(o.returnCurrency()), 1)
93
+ ]),
94
+ t.editable ? (n(), i("div", U, [
95
+ e("div", D, [
96
+ e("button", {
97
+ onClick: s[0] || (s[0] = (l) => t.decrease(t.product)),
98
+ class: "mn-r-thin bg-grey button-square button"
99
+ }, "-"),
100
+ e("button", {
101
+ onClick: s[1] || (s[1] = (l) => t.increase(t.product)),
102
+ class: "mn-r-thin bg-grey button-square button"
103
+ }, "+")
104
+ ]),
105
+ e("button", {
106
+ onClick: s[2] || (s[2] = (l) => t.remove(t.product)),
107
+ class: "hover_br-transp hover_br-l-dark bg-transp button-square button"
108
+ }, A)
109
+ ])) : c("", !0)
110
+ ])
111
+ ]));
112
+ }
113
+ }, J = {
114
+ key: 0,
115
+ class: "cursor-pointer t-second"
116
+ }, K = {
117
+ __name: "Text",
118
+ props: {
119
+ maxLen: { type: Number, required: !0 },
120
+ text: { type: String, required: !0 },
121
+ showToggleText: { type: Boolean, default: !1 }
122
+ },
123
+ setup(t) {
124
+ const o = t, s = C(!1), l = h(() => o.text.length > o.maxLen ? o.text.slice(0, o.maxLen) + "..." : o.text), a = h(() => o.text), g = () => {
125
+ s.value = !s.value;
126
+ }, m = h(() => s.value ? a.value : l.value), d = h(() => o.text.length > o.maxLen), u = h(() => s.value ? "Hide" : "Show more");
127
+ return (xt, vt) => (n(), i("span", {
128
+ onClick: g,
129
+ class: ""
130
+ }, [
131
+ f(r(p(m)) + " ", 1),
132
+ p(d) && t.showToggleText ? (n(), i("span", J, r(p(u)), 1)) : c("", !0)
133
+ ]));
134
+ }
135
+ }, Q = {
136
+ __name: "ButtonFollow",
137
+ props: {
138
+ type: {
139
+ type: String,
140
+ required: !0
141
+ },
142
+ userId: {
143
+ type: String,
144
+ required: !0
145
+ },
146
+ status: {
147
+ type: Boolean,
148
+ required: !0
149
+ },
150
+ targetId: {
151
+ type: String,
152
+ required: !0
153
+ }
154
+ },
155
+ emits: ["updateMembership"],
156
+ setup(t, { emit: o }) {
157
+ const s = t, l = async () => {
158
+ s.status ? await g(s.targetId) : await a(s.targetId);
159
+ };
160
+ async function a(m) {
161
+ try {
162
+ const d = {
163
+ type: s.type,
164
+ target: m,
165
+ user: s.userId,
166
+ role: "subscriber"
167
+ }, u = await v.create(d);
168
+ o("updateMembership", { membership: u, status: !0, targetId: s.targetId });
169
+ } catch (d) {
170
+ throw console.log(d), d;
171
+ }
172
+ }
173
+ async function g(m) {
174
+ const d = {
175
+ type: s.type,
176
+ target: m,
177
+ user: s.userId,
178
+ role: "subscriber"
179
+ };
180
+ try {
181
+ const u = await v.delete(d);
182
+ o("updateMembership", { membership: u, status: !1, targetId: s.targetId });
183
+ } catch (u) {
184
+ throw console.log(u), u;
185
+ }
186
+ }
187
+ return (m, d) => (n(), b(k, {
188
+ submit: l,
189
+ class: "bg-main button-small button"
190
+ }, {
191
+ default: _(() => [
192
+ f(r(t.status ? "Unfollow" : "Follow"), 1)
193
+ ]),
194
+ _: 1
195
+ }));
196
+ }
197
+ }, W = /* @__PURE__ */ L(Q, [["__scopeId", "data-v-0634d4a1"]]), X = { class: "pd-medium flex-v-center flex-nowrap flex" }, Y = ["src"], tt = {
198
+ key: 1,
199
+ class: "h-4r w-4r radius-extra",
200
+ width: "42",
201
+ height: "42",
202
+ viewBox: "0 0 42 42",
203
+ fill: "none",
204
+ xmlns: "http://www.w3.org/2000/svg"
205
+ }, et = /* @__PURE__ */ e("circle", {
206
+ fill: "rgb(var(--main))",
207
+ cx: "21",
208
+ cy: "21",
209
+ r: "21"
210
+ }, null, -1), st = /* @__PURE__ */ e("path", {
211
+ fill: "#242424",
212
+ "fill-opacity": "0.1",
213
+ "fill-rule": "evenodd",
214
+ "clip-rule": "evenodd",
215
+ d: "M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"
216
+ }, null, -1), nt = [
217
+ et,
218
+ st
219
+ ], it = { class: "flex-child-1 flex-child mn-l-small w-100" }, ot = { class: "h3 mn-r-semi mn-thin" }, rt = {
220
+ key: 0,
221
+ class: "w-max star-container flex-v-center flex"
222
+ }, at = { class: "mn-r-thin pd-r-thin pd-l-thin pd-micro radius-small t-semi uppercase bg-main p-small" }, lt = ["src"], ct = { class: "p-small t-semi mn-r-thin" }, dt = { class: "p-small" }, ut = { class: "mn-thin" }, mt = {
223
+ key: 0,
224
+ class: "pd-medium"
225
+ }, ht = { class: "mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium" }, gt = { class: "t-black p-medium t-semi" }, ft = /* @__PURE__ */ e("span", { class: "mn-r-small" }, "30-60min", -1), pt = /* @__PURE__ */ e("span", { class: "mn-r-auto" }, "$50 min", -1), bt = { class: "d-block o-scroll flex-nowrap flex" }, wt = /* @__PURE__ */ e("button", { class: "flex-center flex-nowrap flex shop-cart-item pd-thin radius-medium w-15r bg-main button" }, "View menu", -1), It = {
226
+ __name: "CardOrganization",
227
+ props: {
228
+ user: String,
229
+ organization: Object
230
+ },
231
+ emits: ["updateMembership"],
232
+ setup(t, { emit: o }) {
233
+ return y(), (s, l) => (n(), i("div", {
234
+ class: "bg-grey radius-big o-hidden",
235
+ onClick: l[1] || (l[1] = (a) => s.$router.push({ name: "Organization", params: { _id: t.organization._id } }))
236
+ }, [
237
+ e("div", X, [
238
+ t.organization.profile.photo && t.organization.profile.photo.length > 0 ? (n(), i("img", {
239
+ key: 0,
240
+ src: (s.FILE_SERVER_URL || "") + t.organization.profile.photo,
241
+ class: "h-4r w-4r radius-extra bg-white"
242
+ }, null, 8, Y)) : (n(), i("svg", tt, nt)),
243
+ e("div", it, [
244
+ e("p", ot, [
245
+ $(K, {
246
+ text: t.organization.profile.name ? t.organization.profile.name : "",
247
+ maxLen: 16
248
+ }, null, 8, ["text"])
249
+ ]),
250
+ t.organization.ratingS ? (n(), i("div", rt, [
251
+ e("span", at, r(t.organization.types[0]), 1),
252
+ (n(), i(w, null, x(5, (a) => e("img", {
253
+ class: "i-small mn-r-thin",
254
+ src: a <= t.organization.rating.median ? "/icons/star.svg" : "/icons/star-stroke.svg"
255
+ }, null, 8, lt)), 64)),
256
+ e("span", ct, r(t.organization.rating.median), 1),
257
+ e("span", dt, "(" + r(t.organization.rating.amount) + ")", 1)
258
+ ])) : c("", !0),
259
+ e("div", null, [
260
+ e("p", ut, r(t.organization.numberOfSubscribers) + " followers", 1),
261
+ t.user._id ? (n(), b(W, {
262
+ key: 0,
263
+ type: "organization",
264
+ isMember: t.organization.isMember,
265
+ targetId: t.organization._id,
266
+ userId: t.user,
267
+ class: "radius-big w-100",
268
+ onUpdateMembership: l[0] || (l[0] = (a) => o("updateMembership", a))
269
+ }, null, 8, ["isMember", "targetId", "userId"])) : c("", !0)
270
+ ])
271
+ ])
272
+ ]),
273
+ t.organization.products.length > 0 ? (n(), i("div", mt, [
274
+ e("div", ht, [
275
+ e("p", gt, r(t.organization.products.length) + " items: ", 1),
276
+ ft,
277
+ pt
278
+ ]),
279
+ e("div", bt, [
280
+ (n(!0), i(w, null, x(t.organization.products, (a) => (n(), b(G, {
281
+ onClick: z((g) => s.$router.push({ name: "Product Organization", params: { _id: t.organization._id, product: a._id } }), ["stop"]),
282
+ key: a._id,
283
+ editable: !1,
284
+ product: a,
285
+ class: "pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"
286
+ }, null, 8, ["onClick", "product"]))), 128)),
287
+ wt
288
+ ])
289
+ ])) : c("", !0)
290
+ ]));
291
+ }
292
+ };
293
+ export {
294
+ W as B,
295
+ It as _,
296
+ K as a
297
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),u=require("vue-router"),g=require("./Button-2ca405bd.js");require("./auth-acbe3ae1.js");const d=require("./IconEdit-e4d0cc6e.js");require("./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js");const p=require("./_plugin-vue_export-helper-f246444f.js");const f={class:"flex-stretch flex-nojustify flex-nowrap flex shop-cart-item"},x=["src"],b={key:1,width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aspect-1x1",style:{"object-fit":"cover"}},k=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),y=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),w=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),v=e.createElementVNode("path",{fill:"#00ff88",d:"M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"},null,-1),V=[k,y,w,v],E={class:"text-left"},C={class:"name"},B={key:0,class:"t-transp"},N={key:1,class:"t-transp"},_={key:2,class:"t-transp"},$={class:"t-main t-demi price mn-small"},z={key:0},S={key:0,class:"flex-nojustify flex"},L={class:"flex-nowrap flex"},I=e.createElementVNode("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),q=[I],M={__name:"CardOrderItem",props:{product:Object,editable:String,increase:Function,decrease:Function,remove:Function},setup(t){return u.useRouter(),(n,o)=>(e.openBlock(),e.createElementBlock("div",f,[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,class:"bg-grey aspect-1x1",src:(n.FILE_SERVER_URL||"")+t.product.images[0]},null,8,x)):e.createCommentVNode("",!0),t.product.images[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",b,V)),e.createElementVNode("div",E,[e.createElementVNode("p",C,[e.createTextVNode(e.toDisplayString(t.product.name)+" ",1),t.product.size?(e.openBlock(),e.createElementBlock("span",B,", "+e.toDisplayString(t.product.size),1)):e.createCommentVNode("",!0),typeof t.product.color=="string"&&t.product.size?(e.openBlock(),e.createElementBlock("span",N,", ")):e.createCommentVNode("",!0),typeof t.product.color=="string"?(e.openBlock(),e.createElementBlock("span",_,e.toDisplayString(t.product.color),1)):e.createCommentVNode("",!0)]),e.createElementVNode("p",$,[t.editable?(e.openBlock(),e.createElementBlock("span",z,e.toDisplayString(t.product.quantity)+" x ",1)):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(t.product.price)+" "+e.toDisplayString(n.returnCurrency()),1)]),t.editable?(e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("div",L,[e.createElementVNode("button",{onClick:o[0]||(o[0]=s=>t.decrease(t.product)),class:"mn-r-thin bg-grey button-square button"},"-"),e.createElementVNode("button",{onClick:o[1]||(o[1]=s=>t.increase(t.product)),class:"mn-r-thin bg-grey button-square button"},"+")]),e.createElementVNode("button",{onClick:o[2]||(o[2]=s=>t.remove(t.product)),class:"hover_br-transp hover_br-l-dark bg-transp button-square button"},q)])):e.createCommentVNode("",!0)])]))}},D={key:0,class:"cursor-pointer t-second"},m={__name:"Text",props:{maxLen:{type:Number,required:!0},text:{type:String,required:!0},showToggleText:{type:Boolean,default:!1}},setup(t){const n=t,o=e.ref(!1),s=e.computed(()=>n.text.length>n.maxLen?n.text.slice(0,n.maxLen)+"...":n.text),r=e.computed(()=>n.text),c=()=>{o.value=!o.value},i=e.computed(()=>o.value?r.value:s.value),l=e.computed(()=>n.text.length>n.maxLen),a=e.computed(()=>o.value?"Hide":"Show more");return(le,ae)=>(e.openBlock(),e.createElementBlock("span",{onClick:c,class:""},[e.createTextVNode(e.toDisplayString(e.unref(i))+" ",1),e.unref(l)&&t.showToggleText?(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0)]))}},T={__name:"ButtonFollow",props:{type:{type:String,required:!0},userId:{type:String,required:!0},status:{type:Boolean,required:!0},targetId:{type:String,required:!0}},emits:["updateMembership"],setup(t,{emit:n}){const o=t,s=async()=>{o.status?await c(o.targetId):await r(o.targetId)};async function r(i){try{const l={type:o.type,target:i,user:o.userId,role:"subscriber"},a=await d.actions.create(l);n("updateMembership",{membership:a,status:!0,targetId:o.targetId})}catch(l){throw console.log(l),l}}async function c(i){const l={type:o.type,target:i,user:o.userId,role:"subscriber"};try{const a=await d.actions.delete(l);n("updateMembership",{membership:a,status:!1,targetId:o.targetId})}catch(a){throw console.log(a),a}}return(i,l)=>(e.openBlock(),e.createBlock(g._sfc_main,{submit:s,class:"bg-main button-small button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.status?"Unfollow":"Follow"),1)]),_:1}))}},h=p._export_sfc(T,[["__scopeId","data-v-0634d4a1"]]),F={class:"pd-medium flex-v-center flex-nowrap flex"},R=["src"],O={key:1,class:"h-4r w-4r radius-extra",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),Z=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"},null,-1),j=[H,Z],U={class:"flex-child-1 flex-child mn-l-small w-100"},P={class:"h3 mn-r-semi mn-thin"},A={key:0,class:"w-max star-container flex-v-center flex"},G={class:"mn-r-thin pd-r-thin pd-l-thin pd-micro radius-small t-semi uppercase bg-main p-small"},J=["src"],K={class:"p-small t-semi mn-r-thin"},Q={class:"p-small"},W={class:"mn-thin"},X={key:0,class:"pd-medium"},Y={class:"mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},ee={class:"t-black p-medium t-semi"},te=e.createElementVNode("span",{class:"mn-r-small"},"30-60min",-1),oe=e.createElementVNode("span",{class:"mn-r-auto"},"$50 min",-1),ne={class:"d-block o-scroll flex-nowrap flex"},re=e.createElementVNode("button",{class:"flex-center flex-nowrap flex shop-cart-item pd-thin radius-medium w-15r bg-main button"},"View menu",-1),se={__name:"CardOrganization",props:{user:String,organization:Object},emits:["updateMembership"],setup(t,{emit:n}){return u.useRouter(),(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-grey radius-big o-hidden",onClick:s[1]||(s[1]=r=>o.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",F,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,R)):(e.openBlock(),e.createElementBlock("svg",O,j)),e.createElementVNode("div",U,[e.createElementVNode("p",P,[e.createVNode(m,{text:t.organization.profile.name?t.organization.profile.name:"",maxLen:16},null,8,["text"])]),t.organization.ratingS?(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("span",G,e.toDisplayString(t.organization.types[0]),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,r=>e.createElementVNode("img",{class:"i-small mn-r-thin",src:r<=t.organization.rating.median?"/icons/star.svg":"/icons/star-stroke.svg"},null,8,J)),64)),e.createElementVNode("span",K,e.toDisplayString(t.organization.rating.median),1),e.createElementVNode("span",Q,"("+e.toDisplayString(t.organization.rating.amount)+")",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.createElementVNode("p",W,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),t.user._id?(e.openBlock(),e.createBlock(h,{key:0,type:"organization",isMember:t.organization.isMember,targetId:t.organization._id,userId:t.user,class:"radius-big w-100",onUpdateMembership:s[0]||(s[0]=r=>n("updateMembership",r))},null,8,["isMember","targetId","userId"])):e.createCommentVNode("",!0)])])]),t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",Y,[e.createElementVNode("p",ee,e.toDisplayString(t.organization.products.length)+" items: ",1),te,oe]),e.createElementVNode("div",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products,r=>(e.openBlock(),e.createBlock(M,{onClick:e.withModifiers(c=>o.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:r._id}}),["stop"]),key:r._id,editable:!1,product:r,class:"pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"},null,8,["onClick","product"]))),128)),re])])):e.createCommentVNode("",!0)]))}};exports.ButtonFollow=h;exports._sfc_main=se;exports._sfc_main$1=m;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),u=require("vue-router"),g=require("./Button-2ca405bd.js");require("./auth-acbe3ae1.js");const d=require("./IconEdit-1b7b5874.js");require("./ButtonFollow.vue_vue_type_style_index_0_scoped_0634d4a1_lang-0ea8fbf8.js");const p=require("./_plugin-vue_export-helper-f246444f.js");const f={class:"flex-stretch flex-nojustify flex-nowrap flex shop-cart-item"},x=["src"],b={key:1,width:"524",height:"345",viewBox:"0 0 524 345",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aspect-1x1",style:{"object-fit":"cover"}},k=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),y=e.createElementVNode("rect",{width:"524",height:"345",fill:"white"},null,-1),w=e.createElementVNode("circle",{cx:"262",cy:"172",r:"56",fill:"#00ff88","fill-opacity":"0.1"},null,-1),v=e.createElementVNode("path",{fill:"#00ff88",d:"M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"},null,-1),V=[k,y,w,v],E={class:"text-left"},C={class:"name"},B={key:0,class:"t-transp"},N={key:1,class:"t-transp"},_={key:2,class:"t-transp"},$={class:"t-main t-demi price mn-small"},z={key:0},S={key:0,class:"flex-nojustify flex"},L={class:"flex-nowrap flex"},I=e.createElementVNode("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"clip-rule":"evenodd",d:"m7.27124 0h5.45456c1.0041 0 1.8182.814027 1.8182 1.81818v.90899h2.7278c1.0042 0 1.8182.81402 1.8182 1.81818v1.81818c0 1.00415-.814 1.81818-1.8182 1.81818h-.0735l-.8363 10.00009c0 1.0042-.814 1.8182-1.8182 1.8182h-9.09087c-1.00416 0-1.81818-.814-1.81504-1.7427l-.83964-10.07559h-.07187c-1.00415 0-1.818177-.81403-1.818177-1.81818v-1.81818c0-1.00416.814027-1.81818 1.818177-1.81818h2.72668v-.90899c0-1.004153.81402-1.81818 1.81818-1.81818zm-1.81889 18.1819-.83047-10h10.75152l-.827 9.9245-.0031.0755zm-2.72612-11.81799v-1.81818h14.54547v1.81818zm10.00137-4.54571v.90909h-5.45456v-.90909z",fill:"#8a8a8a","fill-rule":"evenodd"})],-1),q=[I],M={__name:"CardOrderItem",props:{product:Object,editable:String,increase:Function,decrease:Function,remove:Function},setup(t){return u.useRouter(),(n,o)=>(e.openBlock(),e.createElementBlock("div",f,[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,class:"bg-grey aspect-1x1",src:(n.FILE_SERVER_URL||"")+t.product.images[0]},null,8,x)):e.createCommentVNode("",!0),t.product.images[0]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("svg",b,V)),e.createElementVNode("div",E,[e.createElementVNode("p",C,[e.createTextVNode(e.toDisplayString(t.product.name)+" ",1),t.product.size?(e.openBlock(),e.createElementBlock("span",B,", "+e.toDisplayString(t.product.size),1)):e.createCommentVNode("",!0),typeof t.product.color=="string"&&t.product.size?(e.openBlock(),e.createElementBlock("span",N,", ")):e.createCommentVNode("",!0),typeof t.product.color=="string"?(e.openBlock(),e.createElementBlock("span",_,e.toDisplayString(t.product.color),1)):e.createCommentVNode("",!0)]),e.createElementVNode("p",$,[t.editable?(e.openBlock(),e.createElementBlock("span",z,e.toDisplayString(t.product.quantity)+" x ",1)):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(t.product.price)+" "+e.toDisplayString(n.returnCurrency()),1)]),t.editable?(e.openBlock(),e.createElementBlock("div",S,[e.createElementVNode("div",L,[e.createElementVNode("button",{onClick:o[0]||(o[0]=s=>t.decrease(t.product)),class:"mn-r-thin bg-grey button-square button"},"-"),e.createElementVNode("button",{onClick:o[1]||(o[1]=s=>t.increase(t.product)),class:"mn-r-thin bg-grey button-square button"},"+")]),e.createElementVNode("button",{onClick:o[2]||(o[2]=s=>t.remove(t.product)),class:"hover_br-transp hover_br-l-dark bg-transp button-square button"},q)])):e.createCommentVNode("",!0)])]))}},D={key:0,class:"cursor-pointer t-second"},m={__name:"Text",props:{maxLen:{type:Number,required:!0},text:{type:String,required:!0},showToggleText:{type:Boolean,default:!1}},setup(t){const n=t,o=e.ref(!1),s=e.computed(()=>n.text.length>n.maxLen?n.text.slice(0,n.maxLen)+"...":n.text),r=e.computed(()=>n.text),c=()=>{o.value=!o.value},i=e.computed(()=>o.value?r.value:s.value),l=e.computed(()=>n.text.length>n.maxLen),a=e.computed(()=>o.value?"Hide":"Show more");return(le,ae)=>(e.openBlock(),e.createElementBlock("span",{onClick:c,class:""},[e.createTextVNode(e.toDisplayString(e.unref(i))+" ",1),e.unref(l)&&t.showToggleText?(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0)]))}},T={__name:"ButtonFollow",props:{type:{type:String,required:!0},userId:{type:String,required:!0},status:{type:Boolean,required:!0},targetId:{type:String,required:!0}},emits:["updateMembership"],setup(t,{emit:n}){const o=t,s=async()=>{o.status?await c(o.targetId):await r(o.targetId)};async function r(i){try{const l={type:o.type,target:i,user:o.userId,role:"subscriber"},a=await d.actions.create(l);n("updateMembership",{membership:a,status:!0,targetId:o.targetId})}catch(l){throw console.log(l),l}}async function c(i){const l={type:o.type,target:i,user:o.userId,role:"subscriber"};try{const a=await d.actions.delete(l);n("updateMembership",{membership:a,status:!1,targetId:o.targetId})}catch(a){throw console.log(a),a}}return(i,l)=>(e.openBlock(),e.createBlock(g._sfc_main,{submit:s,class:"bg-main button-small button"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.status?"Unfollow":"Follow"),1)]),_:1}))}},h=p._export_sfc(T,[["__scopeId","data-v-0634d4a1"]]),F={class:"pd-medium flex-v-center flex-nowrap flex"},R=["src"],O={key:1,class:"h-4r w-4r radius-extra",width:"42",height:"42",viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H=e.createElementVNode("circle",{fill:"rgb(var(--main))",cx:"21",cy:"21",r:"21"},null,-1),Z=e.createElementVNode("path",{fill:"#242424","fill-opacity":"0.1","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00233 37.4954C8.00078 37.4458 8 37.3961 8 37.3462C8 32.9066 11.5673 29.3077 15.9677 29.3077H26.0323C30.4328 29.3077 34 32.9066 34 37.3462C34 37.3961 33.9992 37.4458 33.9977 37.4954C30.4223 40.3165 25.9078 42 21 42C16.0922 42 11.5777 40.3164 8.00233 37.4954ZM21 9C16.5995 9 13.0323 12.5989 13.0323 17.0385C13.0323 21.478 16.5995 25.0769 21 25.0769C25.4005 25.0769 28.9677 21.478 28.9677 17.0385C28.9677 12.5989 25.4005 9 21 9Z"},null,-1),j=[H,Z],U={class:"flex-child-1 flex-child mn-l-small w-100"},P={class:"h3 mn-r-semi mn-thin"},A={key:0,class:"w-max star-container flex-v-center flex"},G={class:"mn-r-thin pd-r-thin pd-l-thin pd-micro radius-small t-semi uppercase bg-main p-small"},J=["src"],K={class:"p-small t-semi mn-r-thin"},Q={class:"p-small"},W={class:"mn-thin"},X={key:0,class:"pd-medium"},Y={class:"mn-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},ee={class:"t-black p-medium t-semi"},te=e.createElementVNode("span",{class:"mn-r-small"},"30-60min",-1),oe=e.createElementVNode("span",{class:"mn-r-auto"},"$50 min",-1),ne={class:"d-block o-scroll flex-nowrap flex"},re=e.createElementVNode("button",{class:"flex-center flex-nowrap flex shop-cart-item pd-thin radius-medium w-15r bg-main button"},"View menu",-1),se={__name:"CardOrganization",props:{user:String,organization:Object},emits:["updateMembership"],setup(t,{emit:n}){return u.useRouter(),(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:"bg-grey radius-big o-hidden",onClick:s[1]||(s[1]=r=>o.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",F,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,R)):(e.openBlock(),e.createElementBlock("svg",O,j)),e.createElementVNode("div",U,[e.createElementVNode("p",P,[e.createVNode(m,{text:t.organization.profile.name?t.organization.profile.name:"",maxLen:16},null,8,["text"])]),t.organization.ratingS?(e.openBlock(),e.createElementBlock("div",A,[e.createElementVNode("span",G,e.toDisplayString(t.organization.types[0]),1),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,r=>e.createElementVNode("img",{class:"i-small mn-r-thin",src:r<=t.organization.rating.median?"/icons/star.svg":"/icons/star-stroke.svg"},null,8,J)),64)),e.createElementVNode("span",K,e.toDisplayString(t.organization.rating.median),1),e.createElementVNode("span",Q,"("+e.toDisplayString(t.organization.rating.amount)+")",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.createElementVNode("p",W,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),t.user._id?(e.openBlock(),e.createBlock(h,{key:0,type:"organization",isMember:t.organization.isMember,targetId:t.organization._id,userId:t.user,class:"radius-big w-100",onUpdateMembership:s[0]||(s[0]=r=>n("updateMembership",r))},null,8,["isMember","targetId","userId"])):e.createCommentVNode("",!0)])])]),t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",Y,[e.createElementVNode("p",ee,e.toDisplayString(t.organization.products.length)+" items: ",1),te,oe]),e.createElementVNode("div",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products,r=>(e.openBlock(),e.createBlock(M,{onClick:e.withModifiers(c=>o.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:r._id}}),["stop"]),key:r._id,editable:!1,product:r,class:"pd-thin radius-medium w-15r br-solid br-grey br-1px bg-white mn-r-thin"},null,8,["onClick","product"]))),128)),re])])):e.createCommentVNode("",!0)]))}};exports.ButtonFollow=h;exports._sfc_main=se;exports._sfc_main$1=m;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),k=require("vue-router"),f=require("./IconEdit-1b7b5874.js");require("./Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js");require("./auth-acbe3ae1.js");const p=require("./index-b41aac19.js"),m=require("./globals-928eb13c.js"),w={key:0,class:"pd-b-zero"},b={class:"w-100 flex-v-center flex-nojustify flex"},B={class:"w-100 flex-nowrap flex-v-center flex"},E=["src"],x={key:2,class:"t-semi"},v={key:1},$={key:2},C={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},V={key:0,class:"w-4r i-thin"},N={style:{position:"absolute",top:"0px",right:"0px"},class:"br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"},P=["src"],R={class:"bg-black pd-thin radius-small"},S=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),D={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){k.useRouter();function o(s){const r=new Date,n=new Date(s),a=Math.abs(r-n),g=Math.floor(a/1e3),c=Math.floor(g/60),l=Math.floor(c/60),d=Math.floor(l/24),h=Math.floor(d/7);return h>0?`${h} week${h>1?"s":""} ago`:d>0?`${d} day${d>1?"s":""} ago`:l>0?`${l} hour${l>1?"s":""} ago`:c>0?`${c} minute${c>1?"s":""} ago`:"Just now"}return(s,r)=>t.owner?(e.openBlock(),e.createElementBlock("header",w,[e.createElementVNode("div",b,[e.createElementVNode("div",B,[t.owner.target.profile.photo.length>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(s.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(n=>s.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,E)):e.createCommentVNode("",!0),!t.owner.target.profile.photo&&t.type!=="short"?(e.openBlock(),e.createBlock(f.PlaceholderUserpic,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(n=>s.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",x,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(n=>s.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString(t.owner.target.profile.name),1),!t.creator.hidden&&t.owner.target.profile.name!==t.creator.target.profile.name?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(n=>s.$router.push({name:"User Profile",params:{_id:t.creator.target._id}}),["stop"]))}," · by "+e.toDisplayString(t.creator.target.profile.name),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",v," · "+e.toDisplayString(o(t.date)),1)):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",$," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",C,[t.members?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("span",N,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(n,a)=>(e.openBlock(),e.createElementBlock("img",{key:a,src:(s.FILE_SERVER_URL||"")+n,style:e.normalizeStyle({position:"absolute",top:"0px",right:a*20+20+"%",zIndex:1-a}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,12,P))),128))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user!=t.creator.target._id?(e.openBlock(),e.createBlock(f.Dropdown,{key:3,label:"...",align:"right",class:"cursor-pointer z-index-2 pd-thin radius-extra"},{default:e.withCtx(()=>[e.createElementVNode("section",R,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(f._sfc_main,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[S]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}},u=p.axios.create({baseURL:process.env.API_URL,withCredentials:!0}),i=e.reactive({reactions:[],error:null}),y={async read({user:t,type:o,target:s,role:r}){try{const n=await u.get("/api/reactions",{params:{user:t,type:o,target:s,role:r}});return i.error=null,i.reactions=n.data,Promise.resolve(n.data)}catch(n){return m.setError(n),Promise.reject(n)}},async create(t){try{const o=await u.post("/api/reactions/create",t);return i.error=null,Promise.resolve(o.data)}catch(o){return console.log(o),m.setError(o),Promise.reject(o)}},async update(t){try{const o=await u.post("/api/reactions/update",t);return i.error=null,Promise.resolve(o.data)}catch(o){return m.setError(o),Promise.reject(o)}},async delete(t){try{const o=await u.post("/api/reactions/delete",t);return i.error=null,Promise.resolve(o.data)}catch(o){return m.setError(o),Promise.reject(o)}}},M={handleReactionUpdate(t,o,s){let r;if(Array.isArray(t)?r=t.find(n=>n._id===o.target):typeof t=="object"&&t._id===o.target&&(r=t),r)if(r.hasReaction=s,s)r.reactions.push(o),r.numberOfReactions+=1;else{const n=r.reactions.findIndex(a=>a._id===o._id);n!==-1&&(r.reactions.splice(n,1),r.numberOfReactions-=1)}}};e.watch(i,t=>{});const U=Object.freeze(Object.defineProperty({__proto__:null,actions:y,mutations:M,state:i},Symbol.toStringTag,{value:"Module"})),z={class:"flex-v-center gap-thin flex"},j={class:"pd-thin radius-small t-semi bg-main"},L={key:1,class:"pd-thin radius-small t-semi bg-white"},q={__name:"Chips",props:["chips"],setup(t){return(o,s)=>(e.openBlock(),e.createElementBlock("div",z,[t.chips.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.chips,(r,n)=>(e.openBlock(),e.createElementBlock("div",j,e.toDisplayString(r.text?r.text:r),1))),256)):(e.openBlock(),e.createElementBlock("div",L,e.toDisplayString(t.chips),1))]))}};exports._sfc_main=D;exports._sfc_main$1=q;exports.actions=y;exports.reactions=U;
@@ -0,0 +1,200 @@
1
+ import { openBlock as o, createElementBlock as a, createElementVNode as c, withModifiers as y, createCommentVNode as i, createBlock as p, toDisplayString as d, Fragment as k, renderList as v, normalizeStyle as P, withCtx as x, reactive as R, watch as E } from "vue";
2
+ import { useRouter as U } from "vue-router";
3
+ import { P as z, D as C, _ as j } from "./IconEdit-c98d3d06.mjs";
4
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
5
+ import "./auth-98fe3efb.mjs";
6
+ import { a as M } from "./index-a661083c.mjs";
7
+ import { s as g } from "./globals-96ba60e4.mjs";
8
+ const L = {
9
+ key: 0,
10
+ class: "pd-b-zero"
11
+ }, O = { class: "w-100 flex-v-center flex-nojustify flex" }, S = { class: "w-100 flex-nowrap flex-v-center flex" }, D = ["src"], F = {
12
+ key: 2,
13
+ class: "t-semi"
14
+ }, I = { key: 1 }, A = { key: 2 }, T = { class: "d-block mn-l-auto flex-nowrap flex flex-v-center" }, V = {
15
+ key: 0,
16
+ class: "w-4r i-thin"
17
+ }, B = {
18
+ style: { position: "absolute", top: "0px", right: "0px" },
19
+ class: "br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"
20
+ }, N = ["src"], H = { class: "bg-black pd-thin radius-small" }, J = /* @__PURE__ */ c("button", { class: "w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button" }, " Report ", -1), se = {
21
+ __name: "CardHeader",
22
+ props: [
23
+ "user",
24
+ "entity",
25
+ "entityType",
26
+ "date",
27
+ "dateFormatted",
28
+ "owner",
29
+ "creator",
30
+ "members",
31
+ "membersPhotos",
32
+ "type"
33
+ ],
34
+ setup(e) {
35
+ U();
36
+ function r(n) {
37
+ const t = /* @__PURE__ */ new Date(), s = new Date(n), l = Math.abs(t - s), $ = Math.floor(l / 1e3), m = Math.floor($ / 60), h = Math.floor(m / 60), f = Math.floor(h / 24), w = Math.floor(f / 7);
38
+ return w > 0 ? `${w} week${w > 1 ? "s" : ""} ago` : f > 0 ? `${f} day${f > 1 ? "s" : ""} ago` : h > 0 ? `${h} hour${h > 1 ? "s" : ""} ago` : m > 0 ? `${m} minute${m > 1 ? "s" : ""} ago` : "Just now";
39
+ }
40
+ return (n, t) => e.owner ? (o(), a("header", L, [
41
+ c("div", O, [
42
+ c("div", S, [
43
+ e.owner.target.profile.photo.length > 0 && e.type !== "short" ? (o(), a("img", {
44
+ key: 0,
45
+ src: (n.FILE_SERVER_URL || "") + e.owner.target.profile.photo,
46
+ class: "radius-medium mn-r-thin i-thin",
47
+ onClick: t[0] || (t[0] = y((s) => n.$router.push({
48
+ name: e.owner.type === "user" ? "User Profile" : "Organization",
49
+ params: {
50
+ _id: e.owner.target._id
51
+ }
52
+ }), ["stop"]))
53
+ }, null, 8, D)) : i("", !0),
54
+ !e.owner.target.profile.photo && e.type !== "short" ? (o(), p(z, {
55
+ key: 1,
56
+ class: "radius-medium mn-r-thin i-thin",
57
+ onClick: t[1] || (t[1] = y((s) => n.$router.push({
58
+ name: e.owner.type === "user" ? "User Profile" : "Organization",
59
+ params: {
60
+ _id: e.owner.target._id
61
+ }
62
+ }), ["stop"]))
63
+ })) : i("", !0),
64
+ e.type !== "short" ? (o(), a("span", F, [
65
+ c("span", {
66
+ onClick: t[2] || (t[2] = y((s) => n.$router.push({
67
+ name: e.owner.type === "user" ? "User Profile" : "Organization",
68
+ params: {
69
+ _id: e.owner.target._id
70
+ }
71
+ }), ["stop"]))
72
+ }, d(e.owner.target.profile.name), 1),
73
+ !e.creator.hidden && e.owner.target.profile.name !== e.creator.target.profile.name ? (o(), a("span", {
74
+ key: 0,
75
+ onClick: t[3] || (t[3] = y((s) => n.$router.push({
76
+ name: "User Profile",
77
+ params: {
78
+ _id: e.creator.target._id
79
+ }
80
+ }), ["stop"]))
81
+ }, " · by " + d(e.creator.target.profile.name), 1)) : i("", !0),
82
+ e.date ? (o(), a("span", I, " · " + d(r(e.date)), 1)) : i("", !0),
83
+ e.dateFormatted ? (o(), a("span", A, " · " + d(e.dateFormatted), 1)) : i("", !0)
84
+ ])) : i("", !0),
85
+ c("div", T, [
86
+ e.members ? (o(), a("div", V, [
87
+ c("span", B, d(e.members), 1),
88
+ (o(!0), a(k, null, v(e.membersPhotos.slice(0, 2), (s, l) => (o(), a("img", {
89
+ key: l,
90
+ src: (n.FILE_SERVER_URL || "") + s,
91
+ style: P({ position: "absolute", top: "0px", right: l * 20 + 20 + "%", zIndex: 1 - l }),
92
+ class: "br-solid br-2px br-white i-thin bg-grey radius-big"
93
+ }, null, 12, N))), 128))
94
+ ])) : i("", !0)
95
+ ]),
96
+ e.type !== "short" && e.user != e.creator.target._id ? (o(), p(C, {
97
+ key: 3,
98
+ label: "...",
99
+ align: "right",
100
+ class: "cursor-pointer z-index-2 pd-thin radius-extra"
101
+ }, {
102
+ default: x(() => [
103
+ c("section", H, [
104
+ e.user !== e.creator.target._id ? (o(), p(j, {
105
+ key: 0,
106
+ user: e.user,
107
+ type: e.entityType,
108
+ target: e.entity._id,
109
+ text: "Report",
110
+ class: "w-100"
111
+ }, {
112
+ default: x(() => [
113
+ J
114
+ ]),
115
+ _: 1
116
+ }, 8, ["user", "type", "target"])) : i("", !0)
117
+ ])
118
+ ]),
119
+ _: 1
120
+ }, 8, ["label"])) : i("", !0)
121
+ ])
122
+ ])
123
+ ])) : i("", !0);
124
+ }
125
+ }, b = M.create({
126
+ baseURL: process.env.API_URL,
127
+ withCredentials: !0
128
+ }), u = R({
129
+ reactions: [],
130
+ error: null
131
+ }), q = {
132
+ async read({ user: e, type: r, target: n, role: t }) {
133
+ try {
134
+ const s = await b.get("/api/reactions", { params: { user: e, type: r, target: n, role: t } });
135
+ return u.error = null, u.reactions = s.data, Promise.resolve(s.data);
136
+ } catch (s) {
137
+ return g(s), Promise.reject(s);
138
+ }
139
+ },
140
+ async create(e) {
141
+ try {
142
+ const r = await b.post("/api/reactions/create", e);
143
+ return u.error = null, Promise.resolve(r.data);
144
+ } catch (r) {
145
+ return console.log(r), g(r), Promise.reject(r);
146
+ }
147
+ },
148
+ async update(e) {
149
+ try {
150
+ const r = await b.post("/api/reactions/update", e);
151
+ return u.error = null, Promise.resolve(r.data);
152
+ } catch (r) {
153
+ return g(r), Promise.reject(r);
154
+ }
155
+ },
156
+ async delete(e) {
157
+ try {
158
+ const r = await b.post("/api/reactions/delete", e);
159
+ return u.error = null, Promise.resolve(r.data);
160
+ } catch (r) {
161
+ return g(r), Promise.reject(r);
162
+ }
163
+ }
164
+ }, G = {
165
+ handleReactionUpdate(e, r, n) {
166
+ let t;
167
+ if (Array.isArray(e) ? t = e.find((s) => s._id === r.target) : typeof e == "object" && e._id === r.target && (t = e), t)
168
+ if (t.hasReaction = n, n)
169
+ t.reactions.push(r), t.numberOfReactions += 1;
170
+ else {
171
+ const s = t.reactions.findIndex((l) => l._id === r._id);
172
+ s !== -1 && (t.reactions.splice(s, 1), t.numberOfReactions -= 1);
173
+ }
174
+ }
175
+ };
176
+ E(u, (e) => {
177
+ });
178
+ const oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
179
+ __proto__: null,
180
+ actions: q,
181
+ mutations: G,
182
+ state: u
183
+ }, Symbol.toStringTag, { value: "Module" })), K = { class: "flex-v-center gap-thin flex" }, Q = { class: "pd-thin radius-small t-semi bg-main" }, W = {
184
+ key: 1,
185
+ class: "pd-thin radius-small t-semi bg-white"
186
+ }, ne = {
187
+ __name: "Chips",
188
+ props: ["chips"],
189
+ setup(e) {
190
+ return (r, n) => (o(), a("div", K, [
191
+ e.chips.length ? (o(!0), a(k, { key: 0 }, v(e.chips, (t, s) => (o(), a("div", Q, d(t.text ? t.text : t), 1))), 256)) : (o(), a("div", W, d(e.chips), 1))
192
+ ]));
193
+ }
194
+ };
195
+ export {
196
+ se as _,
197
+ ne as a,
198
+ q as b,
199
+ oe as r
200
+ };