@ozdao/prometheus-framework 0.2.93 → 0.2.95

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. package/dist/auth.server.js +15 -14
  2. package/dist/auth.server.mjs +15 -14
  3. package/dist/main-BJvlNekm.mjs +13631 -0
  4. package/dist/main-pGo7JpSP.js +92 -0
  5. package/dist/orders.server.js +31 -27
  6. package/dist/orders.server.mjs +31 -27
  7. package/dist/organizations.server.js +31 -10
  8. package/dist/organizations.server.mjs +31 -10
  9. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  11. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +19 -19
  12. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +12 -12
  13. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +36 -1
  15. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +1 -36
  17. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +21 -21
  18. package/dist/prometheus-framework/src/modules/auth/router/auth.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/router/auth.js +4 -0
  20. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +8 -8
  22. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +58 -58
  24. package/dist/prometheus-framework/src/modules/icons/navigation/IconCross.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/icons/navigation/IconCross.vue.js +22 -21
  26. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +2 -2
  27. package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +48 -37
  28. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +160 -167
  30. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +49 -48
  32. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +113 -110
  34. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +14 -14
  35. package/dist/prometheus-framework/src/modules/orders/store/models/order.cjs +1 -0
  36. package/dist/prometheus-framework/src/modules/orders/store/models/order.js +28 -0
  37. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/orders/store/orders.js +25 -43
  39. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +20 -20
  41. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  45. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +47 -47
  47. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +143 -131
  49. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  51. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  53. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +32 -34
  55. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +1 -1
  57. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  59. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +30 -32
  61. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +155 -187
  63. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +18 -18
  65. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +26 -22
  69. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +66 -63
  71. package/dist/prometheus-framework.cjs.js +1 -1
  72. package/dist/prometheus-framework.es.js +1 -1
  73. package/dist/style.css +1 -1
  74. package/dist/web-B2xhKZNK.js +1 -0
  75. package/dist/web-DTzbVshr.mjs +54 -0
  76. package/package.json +1 -1
  77. package/src/components/Block/Block.vue +1 -1
  78. package/src/modules/auth/controllers/auth.controller.js +19 -16
  79. package/src/modules/auth/router/auth.js +4 -0
  80. package/src/modules/backoffice/router/backoffice.js +3 -3
  81. package/src/modules/chats/routes/chats.routes.js +1 -2
  82. package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -1
  83. package/src/modules/icons/navigation/IconCross.vue +11 -7
  84. package/src/modules/orders/components/blocks/StatusHistory.vue +8 -11
  85. package/src/modules/orders/components/pages/OrderBackoffice.vue +37 -50
  86. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +7 -3
  87. package/src/modules/orders/components/pages/Orders.vue +1 -1
  88. package/src/modules/orders/controllers/orders.controller.js +25 -25
  89. package/src/modules/orders/models/order.model.js +1 -1
  90. package/src/modules/orders/routes/orders.routes.js +6 -0
  91. package/src/modules/orders/store/models/order.js +33 -0
  92. package/src/modules/orders/store/orders.js +7 -28
  93. package/src/modules/organizations/components/blocks/CardDepartment.vue +2 -2
  94. package/src/modules/organizations/components/pages/DepartmentEdit.vue +7 -5
  95. package/src/modules/organizations/components/pages/Members.vue +50 -38
  96. package/src/modules/organizations/components/pages/Organization.vue +1 -1
  97. package/src/modules/organizations/controllers/invites.controller.js +2 -0
  98. package/src/modules/organizations/controllers/memberships.controller.js +35 -11
  99. package/src/modules/organizations/models/invite.model.js +4 -0
  100. package/src/modules/organizations/organizations.client.js +0 -2
  101. package/src/modules/organizations/router/members.router.js +1 -1
  102. package/src/modules/organizations/store/departments.js +0 -1
  103. package/src/modules/organizations/store/memberships.js +1 -8
  104. package/src/modules/products/components/pages/ProductEdit.vue +39 -33
  105. package/src/modules/products/components/sections/EditProductInfo.vue +3 -3
  106. package/src/modules/users/components/blocks/CardUser.vue +9 -5
  107. package/src/modules/users/components/pages/Profile.vue +5 -3
  108. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +0 -126
@@ -1,80 +1,83 @@
1
- import { ref as P, onMounted as V, openBlock as i, createElementBlock as s, createVNode as a, withCtx as r, createElementVNode as c, toDisplayString as q, unref as b, createBlock as y, createTextVNode as D, createCommentVNode as A, Fragment as m, renderList as f } from "vue";
2
- import { useRoute as B, useRouter as E } from "vue-router";
1
+ import { ref as U, onMounted as A, openBlock as n, createElementBlock as s, createVNode as a, withCtx as l, createElementVNode as f, toDisplayString as B, unref as g, createBlock as y, createTextVNode as C, createCommentVNode as $, Fragment as _, renderList as h } from "vue";
2
+ import { useRoute as E, useRouter as R } from "vue-router";
3
3
  import "vue-i18n";
4
4
  import "../../../globals/localization/vue-i18n.js";
5
5
  import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
6
  import d from "../../../../components/Block/Block.vue.js";
7
7
  import "../../../../components/Tab/Tab.vue.js";
8
- import p from "../../../../components/Field/Field.vue.js";
9
- import R from "../../../../components/Checkbox/Checkbox.vue.js";
10
- import $ from "../../../../components/Button/Button.vue.js";
11
- import S from "../../../../components/Popup/Popup.vue.js";
12
- import T from "../../../../components/EditImages/EditImages.vue.js";
13
- import k from "../../../icons/navigation/IconDelete.vue.js";
14
- import z from "../blocks/CardPosition.vue.js";
15
- import F from "../sections/EditProductInfo.vue.js";
8
+ import b from "../../../../components/Field/Field.vue.js";
9
+ import S from "../../../../components/Checkbox/Checkbox.vue.js";
10
+ import z from "../../../../components/Button/Button.vue.js";
11
+ import T from "../../../../components/Popup/Popup.vue.js";
12
+ import F from "../../../../components/EditImages/EditImages.vue.js";
13
+ import N from "../../../icons/navigation/IconDelete.vue.js";
14
+ import D from "../blocks/CardPosition.vue.js";
15
+ import L from "../sections/EditProductInfo.vue.js";
16
16
  import { actions as v } from "../../../globals/store/globals.js";
17
- import { state as e, mutations as L, actions as g } from "../../store/products.js";
18
- import { actions as Q, state as M } from "../../store/categories.js";
17
+ import { state as e, mutations as M, actions as u } from "../../store/products.js";
18
+ import { actions as j, state as q } from "../../store/categories.js";
19
19
  import "./ProductEdit.vue2.js";
20
- const j = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, G = { class: "mn-r-auto" }, H = { class: "cols-2 gap-thin" }, J = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, K = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, W = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, X = { class: "cols-1 gap-thin" }, be = {
20
+ const G = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, H = { class: "mn-r-auto" }, J = { class: "cols-2 gap-thin" }, K = {
21
+ key: 0,
22
+ class: "cols-1 gap-thin"
23
+ }, Q = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, W = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, he = {
21
24
  __name: "ProductEdit",
22
- setup(Y) {
23
- const o = B(), U = E(), w = P(e.all), x = P(!1);
24
- function N(h) {
25
+ setup(X) {
26
+ const i = E(), k = R(), w = U(e.all), x = U(!1);
27
+ function O(m) {
25
28
  x.value = !0;
26
29
  }
27
- function _() {
30
+ function p() {
28
31
  x.value = !1;
29
32
  }
30
- V(async () => {
31
- L.resetProduct(), o.params.product && await g.read({ _id: o.params.product }), e.current.ingredients || (e.current.ingredients = []), await Q.fetchCategories();
33
+ A(async () => {
34
+ M.resetProduct(), i.params.product && await u.read({ _id: i.params.product }), e.current.ingredients || (e.current.ingredients = []), await j.fetchCategories();
32
35
  try {
33
- const h = await g.read({
34
- organization: o.params._id,
36
+ const m = await u.read({
37
+ organization: i.params._id,
35
38
  limit: 100
36
39
  });
37
- w.value = h;
40
+ w.value = m;
38
41
  } catch {
39
42
  console.error("error");
40
43
  }
41
44
  });
42
- function O() {
43
- o.params.product ? g.update(o.params.product, e.current) : g.create(o.params._id, e.current);
44
- }
45
45
  function I() {
46
- g.deleteProduct(e.current._id);
46
+ i.params.product ? u.update(i.params.product, e.current) : u.create(i.params._id, e.current);
47
+ }
48
+ function V() {
49
+ u.deleteProduct(e.current._id);
47
50
  }
48
- function C() {
49
- U.push({
51
+ function P() {
52
+ k.push({
50
53
  name: "Organization",
51
54
  params: {
52
- _id: o.params._id
55
+ _id: i.params._id
53
56
  }
54
57
  });
55
58
  }
56
- return (h, u) => (i(), s("div", j, [
59
+ return (m, c) => (n(), s("div", G, [
57
60
  a(d, { class: "flex-nowrap flex-v-center flex" }, {
58
- default: r(() => [
59
- c("h1", G, q(b(o).params.product ? e.current.name : "Create Product"), 1),
60
- b(o).params.product ? (i(), y($, {
61
+ default: l(() => [
62
+ f("h1", H, B(g(i).params.product ? e.current.name : "Create Product"), 1),
63
+ g(i).params.product ? (n(), y(z, {
61
64
  key: 0,
62
- submit: I,
63
- callback: C,
65
+ submit: V,
66
+ callback: P,
64
67
  class: "bg-red mn-r-thin"
65
68
  }, {
66
- default: r(() => [
67
- D(" Delete ")
69
+ default: l(() => [
70
+ C(" Delete ")
68
71
  ]),
69
72
  _: 1
70
- })) : A("", !0),
71
- a($, {
72
- submit: O,
73
- callback: C,
73
+ })) : $("", !0),
74
+ a(z, {
75
+ submit: I,
76
+ callback: P,
74
77
  class: "bg-main"
75
78
  }, {
76
- default: r(() => [
77
- D(" Save ")
79
+ default: l(() => [
80
+ C(" Save ")
78
81
  ]),
79
82
  _: 1
80
83
  })
@@ -85,150 +88,144 @@ const j = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, G = { class
85
88
  placeholder: "The product doesn't have any images yet.",
86
89
  class: "h-min"
87
90
  }, {
88
- default: r(() => [
89
- a(T, {
91
+ default: l(() => [
92
+ a(F, {
90
93
  images: e.current.images,
91
94
  uploadPath: "photos",
92
- "onUpdate:images": u[0] || (u[0] = (t) => {
95
+ "onUpdate:images": c[0] || (c[0] = (t) => {
93
96
  e.current.images = t;
94
97
  })
95
98
  }, null, 8, ["images"])
96
99
  ]),
97
100
  _: 1
98
101
  }),
99
- c("div", H, [
102
+ f("div", J, [
100
103
  a(d, { title: "Profile" }, {
101
- default: r(() => [
102
- a(F, {
104
+ default: l(() => [
105
+ a(L, {
103
106
  product: e.current
104
107
  }, null, 8, ["product"])
105
108
  ]),
106
109
  _: 1
107
110
  }),
108
111
  a(d, {
109
- title: "Categories",
112
+ title: "Ingredients",
113
+ placeholder: "No ingridients added yet",
110
114
  actions: [{
111
115
  label: "+",
112
- function: () => b(U).push({
113
- name: "Categories Organization",
114
- params: {
115
- _id: b(o).params._id
116
- }
117
- })
116
+ function: () => O()
118
117
  }]
119
118
  }, {
120
- default: r(() => [
121
- (i(!0), s(m, null, f(M.all, (t, n) => (i(), y(R, {
122
- label: t.name,
123
- name: "categories",
124
- value: t.url,
125
- class: "w-100 mn-t-small bg-white radius-small pd-small",
126
- radio: e.current.category,
127
- "onUpdate:radio": (l) => e.current.category = l
128
- }, null, 8, ["label", "value", "radio", "onUpdate:radio"]))), 256))
129
- ]),
130
- _: 1
131
- }, 8, ["actions"]),
132
- a(d, {
133
- title: "Parameters",
134
- placeholder: "No parameters added yet",
135
- actions: [{
136
- label: "+",
137
- function: () => e.current.information.push({ name: "", value: "" })
138
- }],
139
- class: "cols-1 gap-thin"
140
- }, {
141
- default: r(() => [
142
- (i(!0), s(m, null, f(e.current.information, (t, n) => (i(), s("div", {
143
- class: "gap-thin flex-nowrap flex",
144
- key: n
145
- }, [
146
- a(p, {
147
- field: t.name,
148
- "onUpdate:field": (l) => t.name = l,
149
- placeholder: "Название параметра",
150
- class: "w-100 bg-white radius-small pd-medium"
151
- }, null, 8, ["field", "onUpdate:field"]),
152
- a(p, {
153
- field: t.value,
154
- "onUpdate:field": (l) => t.value = l,
155
- placeholder: "Значение параметра",
156
- class: "w-100 bg-white radius-small pd-medium"
157
- }, null, 8, ["field", "onUpdate:field"]),
158
- c("div", J, [
159
- a(k, {
160
- onClick: () => e.current.information.splice(n, 1),
161
- class: "i-medium"
162
- }, null, 8, ["onClick"])
163
- ])
164
- ]))), 128))
165
- ]),
166
- _: 1
167
- }, 8, ["actions"]),
168
- a(d, {
169
- title: "Localization",
170
- placeholder: "No localizations added yet",
171
- actions: [{
172
- label: "+",
173
- function: () => e.current.localization.push({ name: "", value: "" })
174
- }]
175
- }, {
176
- default: r(() => [
177
- (i(!0), s(m, null, f(e.current.localization, (t, n) => (i(), s("div", {
178
- class: "gap-thin mn-b-thin flex-nowrap flex",
179
- key: n
180
- }, [
181
- a(p, {
182
- field: t.name,
183
- "onUpdate:field": (l) => t.name = l,
184
- placeholder: "Название параметра",
185
- class: "w-100 bg-white radius-small pd-medium"
186
- }, null, 8, ["field", "onUpdate:field"]),
187
- a(p, {
188
- field: t.value,
189
- "onUpdate:field": (l) => t.value = l,
190
- placeholder: "Значение параметра",
191
- class: "w-100 bg-white radius-small pd-medium"
192
- }, null, 8, ["field", "onUpdate:field"]),
193
- c("div", K, [
194
- a(k, {
195
- onClick: () => e.current.localization.splice(n, 1),
196
- class: "i-medium"
197
- }, null, 8, ["onClick"])
198
- ])
199
- ]))), 128))
119
+ default: l(() => [
120
+ e.current.ingredients.length > 0 ? (n(), s("div", K, [
121
+ (n(!0), s(_, null, h(e.current.ingredients, (t, o) => (n(), y(D, {
122
+ key: t._id,
123
+ product: t,
124
+ array: e.current.ingredients,
125
+ products: w.value,
126
+ onAdd: c[1] || (c[1] = (r) => {
127
+ v.add(e.current.ingredients, r), p();
128
+ }),
129
+ onUpdate: (r) => {
130
+ v.update(e.current.ingredients, r, o), p();
131
+ },
132
+ onDelete: (r) => {
133
+ v.delete(e.current.ingredients, r, o), p();
134
+ }
135
+ }, null, 8, ["product", "array", "products", "onUpdate", "onDelete"]))), 128))
136
+ ])) : $("", !0)
200
137
  ]),
201
138
  _: 1
202
139
  }, 8, ["actions"])
203
140
  ]),
204
141
  a(d, {
205
- title: "Quantity Discount",
206
- class: "mn-b-semi",
142
+ title: "Categories",
143
+ actions: [{
144
+ label: "+",
145
+ function: () => g(k).push({
146
+ name: "Categories Organization",
147
+ params: {
148
+ _id: g(i).params._id
149
+ }
150
+ })
151
+ }]
152
+ }, {
153
+ default: l(() => [
154
+ (n(!0), s(_, null, h(q.all, (t, o) => (n(), y(S, {
155
+ label: t.name,
156
+ name: "categories",
157
+ value: t.url,
158
+ class: "w-100 mn-t-small bg-white radius-small pd-small",
159
+ radio: e.current.category,
160
+ "onUpdate:radio": (r) => e.current.category = r
161
+ }, null, 8, ["label", "value", "radio", "onUpdate:radio"]))), 256))
162
+ ]),
163
+ _: 1
164
+ }, 8, ["actions"]),
165
+ a(d, {
166
+ title: "Parameters",
167
+ placeholder: "No parameters added yet",
207
168
  actions: [{
208
169
  label: "+",
209
- function: () => e.current.quantityDiscount.push({ name: "", value: "" })
170
+ function: () => e.current.information.push({ name: "", value: "" })
171
+ }],
172
+ class: "cols-1 gap-thin"
173
+ }, {
174
+ default: l(() => [
175
+ (n(!0), s(_, null, h(e.current.information, (t, o) => (n(), s("div", {
176
+ class: "gap-thin flex-nowrap flex",
177
+ key: o
178
+ }, [
179
+ a(b, {
180
+ field: t.name,
181
+ "onUpdate:field": (r) => t.name = r,
182
+ placeholder: "Название параметра",
183
+ class: "w-100 bg-white radius-small pd-medium"
184
+ }, null, 8, ["field", "onUpdate:field"]),
185
+ a(b, {
186
+ field: t.value,
187
+ "onUpdate:field": (r) => t.value = r,
188
+ placeholder: "Значение параметра",
189
+ class: "w-100 bg-white radius-small pd-medium"
190
+ }, null, 8, ["field", "onUpdate:field"]),
191
+ f("div", Q, [
192
+ a(N, {
193
+ onClick: () => e.current.information.splice(o, 1),
194
+ class: "i-medium"
195
+ }, null, 8, ["onClick"])
196
+ ])
197
+ ]))), 128))
198
+ ]),
199
+ _: 1
200
+ }, 8, ["actions"]),
201
+ a(d, {
202
+ title: "Localization",
203
+ placeholder: "No localizations added yet",
204
+ actions: [{
205
+ label: "+",
206
+ function: () => e.current.localization.push({ name: "", value: "" })
210
207
  }]
211
208
  }, {
212
- default: r(() => [
213
- (i(!0), s(m, null, f(e.current.quantityDiscount, (t, n) => (i(), s("div", {
209
+ default: l(() => [
210
+ (n(!0), s(_, null, h(e.current.localization, (t, o) => (n(), s("div", {
214
211
  class: "gap-thin mn-b-thin flex-nowrap flex",
215
- key: n
212
+ key: o
216
213
  }, [
217
- a(p, {
214
+ a(b, {
218
215
  field: t.name,
219
- "onUpdate:field": (l) => t.name = l,
220
- placeholder: "Quantity",
216
+ "onUpdate:field": (r) => t.name = r,
217
+ placeholder: "Название параметра",
221
218
  class: "w-100 bg-white radius-small pd-medium"
222
219
  }, null, 8, ["field", "onUpdate:field"]),
223
- a(p, {
220
+ a(b, {
224
221
  field: t.value,
225
- "onUpdate:field": (l) => t.value = l,
226
- placeholder: "Discount",
222
+ "onUpdate:field": (r) => t.value = r,
223
+ placeholder: "Значение параметра",
227
224
  class: "w-100 bg-white radius-small pd-medium"
228
225
  }, null, 8, ["field", "onUpdate:field"]),
229
- c("div", W, [
230
- a(k, {
231
- onClick: () => e.current.quantityDiscount.splice(n, 1),
226
+ f("div", W, [
227
+ a(N, {
228
+ onClick: () => e.current.localization.splice(o, 1),
232
229
  class: "i-medium"
233
230
  }, null, 8, ["onClick"])
234
231
  ])
@@ -236,15 +233,15 @@ const j = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, G = { class
236
233
  ]),
237
234
  _: 1
238
235
  }, 8, ["actions"]),
239
- a(S, {
236
+ a(T, {
240
237
  title: "Add ingredient",
241
- onClosePopup: _,
238
+ onClosePopup: p,
242
239
  isPopupOpen: x.value,
243
240
  class: "bg-white pd-big radius-big"
244
241
  }, {
245
- default: r(() => [
246
- a(z, {
247
- onAdd: u[1] || (u[1] = (t) => v.add(
242
+ default: l(() => [
243
+ a(D, {
244
+ onAdd: c[2] || (c[2] = (t) => v.add(
248
245
  e.current.ingredients,
249
246
  t
250
247
  )),
@@ -253,39 +250,10 @@ const j = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, G = { class
253
250
  }, null, 8, ["products"])
254
251
  ]),
255
252
  _: 1
256
- }, 8, ["isPopupOpen"]),
257
- a(d, {
258
- title: "Ingredients",
259
- placeholder: "No positions added yet",
260
- actions: [{
261
- label: "+",
262
- function: () => N()
263
- }]
264
- }, {
265
- default: r(() => [
266
- c("div", X, [
267
- (i(!0), s(m, null, f(e.current.ingredients, (t, n) => (i(), y(z, {
268
- key: t._id,
269
- product: t,
270
- array: e.current.ingredients,
271
- products: w.value,
272
- onAdd: u[2] || (u[2] = (l) => {
273
- v.add(e.current.ingredients, l), _();
274
- }),
275
- onUpdate: (l) => {
276
- v.update(e.current.ingredients, l, n), _();
277
- },
278
- onDelete: (l) => {
279
- v.delete(e.current.ingredients, l, n), _();
280
- }
281
- }, null, 8, ["product", "array", "products", "onUpdate", "onDelete"]))), 128))
282
- ])
283
- ]),
284
- _: 1
285
- }, 8, ["actions"])
253
+ }, 8, ["isPopupOpen"])
286
254
  ]));
287
255
  }
288
256
  };
289
257
  export {
290
- be as default
258
+ he as default
291
259
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");const r=require("../../../../components/Field/Field.vue.cjs"),u=require("../../../../components/Select/Select.vue.cjs"),i={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,l)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(u.default,{select:e.product.status,"onUpdate:select":l[0]||(l[0]=t=>e.product.status=t),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":l[1]||(l[1]=t=>e.product.name=t),label:"Name",placeholder:"Введите название",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":l[3]||(l[3]=t=>e.product.price=t),label:"Price",placeholder:"Введите цену",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(u.default,{select:e.product.price.currency,"onUpdate:select":l[2]||(l[2]=t=>e.product.price.currency=t),placeholder:"฿",options:["฿"],class:"pos-relative bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":l[4]||(l[4]=t=>e.product.description=t),label:"Description",placeholder:"Введите описание",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");const r=require("../../../../components/Field/Field.vue.cjs"),u=require("../../../../components/Select/Select.vue.cjs"),i={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,t)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(u.default,{select:e.product.status,"onUpdate:select":t[0]||(t[0]=l=>e.product.status=l),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":t[1]||(t[1]=l=>e.product.name=l),label:"Name",placeholder:"Enter product name",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":t[3]||(t[3]=l=>e.product.price=l),label:"Price",placeholder:"Enter product price",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(u.default,{select:e.product.price.currency,"onUpdate:select":t[2]||(t[2]=l=>e.product.price.currency=l),placeholder:"฿",options:["฿"],class:"pos-relative bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":t[4]||(t[4]=l=>e.product.description=l),label:"Description",placeholder:"Enter product description",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=i;
@@ -1,18 +1,18 @@
1
- import { openBlock as a, createElementBlock as u, Fragment as o, createVNode as d, withCtx as s } from "vue";
1
+ import { openBlock as u, createElementBlock as a, Fragment as o, createVNode as d, withCtx as n } from "vue";
2
2
  import "../../../../components/Loader/Loader.vue.js";
3
3
  import "../../../../components/Button/Button.vue2.js";
4
- import i from "../../../../components/Field/Field.vue.js";
5
- import r from "../../../../components/Select/Select.vue.js";
4
+ import r from "../../../../components/Field/Field.vue.js";
5
+ import i from "../../../../components/Select/Select.vue.js";
6
6
  const w = {
7
7
  __name: "EditProductInfo",
8
8
  props: {
9
9
  product: Object
10
10
  },
11
11
  setup(e) {
12
- return (n, l) => (a(), u(o, null, [
13
- d(r, {
12
+ return (p, t) => (u(), a(o, null, [
13
+ d(i, {
14
14
  select: e.product.status,
15
- "onUpdate:select": l[0] || (l[0] = (t) => e.product.status = t),
15
+ "onUpdate:select": t[0] || (t[0] = (l) => e.product.status = l),
16
16
  label: "Status",
17
17
  options: [
18
18
  "unpublished",
@@ -22,25 +22,25 @@ const w = {
22
22
  placeholder: "Display product",
23
23
  class: "pos-relative w-100 mn-b-small bg-white radius-small pd-medium"
24
24
  }, null, 8, ["select"]),
25
- d(i, {
25
+ d(r, {
26
26
  field: e.product.name,
27
- "onUpdate:field": l[1] || (l[1] = (t) => e.product.name = t),
27
+ "onUpdate:field": t[1] || (t[1] = (l) => e.product.name = l),
28
28
  label: "Name",
29
- placeholder: "Введите название",
29
+ placeholder: "Enter product name",
30
30
  class: "w-100 mn-b-small bg-white radius-small pd-medium"
31
31
  }, null, 8, ["field"]),
32
- d(i, {
32
+ d(r, {
33
33
  field: e.product.price,
34
- "onUpdate:field": l[3] || (l[3] = (t) => e.product.price = t),
34
+ "onUpdate:field": t[3] || (t[3] = (l) => e.product.price = l),
35
35
  label: "Price",
36
- placeholder: "Введите цену",
36
+ placeholder: "Enter product price",
37
37
  class: "w-100 mn-b-small bg-white radius-small pd-medium",
38
38
  type: "number"
39
39
  }, {
40
- default: s(() => [
41
- d(r, {
40
+ default: n(() => [
41
+ d(i, {
42
42
  select: e.product.price.currency,
43
- "onUpdate:select": l[2] || (l[2] = (t) => e.product.price.currency = t),
43
+ "onUpdate:select": t[2] || (t[2] = (l) => e.product.price.currency = l),
44
44
  placeholder: "฿",
45
45
  options: [
46
46
  "฿"
@@ -50,11 +50,11 @@ const w = {
50
50
  ]),
51
51
  _: 1
52
52
  }, 8, ["field"]),
53
- d(i, {
53
+ d(r, {
54
54
  field: e.product.description,
55
- "onUpdate:field": l[4] || (l[4] = (t) => e.product.description = t),
55
+ "onUpdate:field": t[4] || (t[4] = (l) => e.product.description = l),
56
56
  label: "Description",
57
- placeholder: "Введите описание",
57
+ placeholder: "Enter product description",
58
58
  class: "w-100 bg-white radius-small pd-medium",
59
59
  type: "textarea"
60
60
  }, null, 8, ["field"])
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),b=require("../../../../components/Checkbox/Checkbox.vue.cjs"),q=require("vue-i18n"),g=require("vue-router"),u=require("../../store/categories.cjs"),a=require("../../../marketplace/store/marketplace.cjs");require("./FilterProducts.vue2.cjs");const x={class:"pd-medium bg-white-transp-50 radius-big"},F={class:"cursor-pointer mn-r-auto t-medium p-big"},E=e.createElementVNode("hr",{class:"mn-b-small t-transp"},null,-1),B={class:"cursor-pointer mn-r-auto t-medium p-big"},C={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under 300฿",value:"<300"},{label:"300฿ to 600฿",value:"300-600"},{label:"600฿ to 1200฿",value:"600-1200"},{label:"$1200 and above",value:">1200"}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(y,{emit:h}){let d,m;const n=g.useRoute(),v=g.useRouter();let _={status:"published"};[d,m]=e.withAsyncContext(()=>u.actions.fetchCategories(_)),await d,m(),e.ref({categories:[],prices:[],delivery:[],extra:[]}),e.watch(()=>a.state.filter,(t,r)=>{const l={...n.query};Object.keys(r).forEach(s=>{l[s]&&delete l[s]});const i=Object.fromEntries(Object.entries(t).filter(([s,o])=>Array.isArray(o)&&o.length>0).map(([s,o])=>[s,o.join(",")]));Object.assign(l,i),v.push({query:l})},{deep:!0}),e.onMounted(async()=>{if(n.query){const t=n.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};a.state.filter=r}});const k=h,w=()=>{k("resetFilters")},p={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(t=>{t.localization.forEach(r=>{p.messages[r.locale].categories.push(r.text)})});const{t:c}=q.useI18n(p);return(t,r)=>(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(f.default,{class:"radius-small o-hidden mn-b-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",F,e.toDisplayString(e.unref(c)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(l,i)=>(e.openBlock(),e.createBlock(b.default,{key:i,label:l.name,value:l.url,class:"w-100 mn-t-small mn-b-small bg-white radius-small pd-small",radio:a.state.filter.categories,"onUpdate:radio":r[0]||(r[0]=s=>a.state.filter.categories=s)},null,8,["label","value","radio"]))),128))]),_:1}),E,e.createVNode(f.default,{class:"radius-small o-hidden mn-b-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",B,e.toDisplayString(e.unref(c)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.prices,(l,i)=>(e.openBlock(),e.createBlock(b.default,{key:i,label:l.label,value:l.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:a.state.filter.prices,"onUpdate:radio":r[1]||(r[1]=s=>a.state.filter.prices=s)},null,8,["label","value","radio"]))),128))]),_:1}),e.createElementVNode("button",{onClick:w,class:"bg-main w-100 button"},e.toDisplayString(e.unref(c)("filters.reset")),1)]))}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../components/Spoiler/Spoiler.vue.cjs"),b=require("../../../../components/Checkbox/Checkbox.vue.cjs"),q=require("vue-i18n"),g=require("vue-router"),u=require("../../store/categories.cjs"),a=require("../../../marketplace/store/marketplace.cjs");require("./FilterProducts.vue2.cjs");const x={class:"pd-medium bg-white-transp-50 radius-big"},F={class:"cursor-pointer mn-r-auto t-medium p-big"},E=e.createElementVNode("hr",{class:"mn-b-small t-transp"},null,-1),B={class:"cursor-pointer mn-r-auto t-medium p-big"},C={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under 300฿",value:"<300"},{label:"300฿ to 600฿",value:"300-600"},{label:"600฿ to 1200฿",value:"600-1200"},{label:"$1200 and above",value:">1200"}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(y,{emit:h}){let d,m;const n=g.useRoute(),v=g.useRouter();let _={status:"published"};[d,m]=e.withAsyncContext(()=>u.actions.fetchCategories(_)),await d,m(),e.ref({categories:[],prices:[],delivery:[],extra:[]}),e.watch(()=>a.state.filter,(t,r)=>{const l={...n.query};Object.keys(r).forEach(s=>{l[s]&&delete l[s]});const i=Object.fromEntries(Object.entries(t).filter(([s,o])=>Array.isArray(o)&&o.length>0).map(([s,o])=>[s,o.join(",")]));Object.assign(l,i),v.push({query:l})},{deep:!0}),e.onMounted(async()=>{if(n.query){const t=n.query,r={categories:t.categories?t.categories.split(","):[],prices:t.prices?t.prices.split(","):[],delivery:t.delivery?t.delivery.split(","):[]};a.state.filter=r}});const k=h,w=()=>{k("resetFilters")},p={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(t=>{t.localization.forEach(r=>{p.messages[r.locale].categories.push(r.text)})});const{t:c}=q.useI18n(p);return(t,r)=>(e.openBlock(),e.createElementBlock("div",x,[e.createVNode(f.default,{class:"radius-small o-hidden mn-b-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",F,e.toDisplayString(e.unref(c)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(l,i)=>(e.openBlock(),e.createBlock(b.default,{key:i,label:l.name,value:l.url,class:"w-100 mn-t-small mn-b-small bg-white radius-small pd-small",radio:a.state.filter.categories,"onUpdate:radio":r[0]||(r[0]=s=>a.state.filter.categories=s)},null,8,["label","value","radio"]))),128))]),_:1}),E,e.createVNode(f.default,{class:"radius-small o-hidden mn-b-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",B,e.toDisplayString(e.unref(c)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.prices,(l,i)=>(e.openBlock(),e.createBlock(b.default,{key:i,label:l.label,value:l.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:a.state.filter.prices,"onUpdate:radio":r[1]||(r[1]=s=>a.state.filter.prices=s)},null,8,["label","value","radio"]))),128))]),_:1}),e.createElementVNode("button",{onClick:w,class:"bg-main w-100 button"},e.toDisplayString(e.unref(c)("filters.reset")),1)]))}};exports.default=C;
@@ -1,5 +1,5 @@
1
1
  import { withAsyncContext as P, ref as T, watch as V, onMounted as B, openBlock as a, createElementBlock as p, createVNode as h, withCtx as n, createElementVNode as c, toDisplayString as d, unref as f, Fragment as v, renderList as _, createBlock as w } from "vue";
2
- import x from "../../../../components/Spoiler/Spoiler.vue2.js";
2
+ import x from "../../../../components/Spoiler/Spoiler.vue.js";
3
3
  import F from "../../../../components/Checkbox/Checkbox.vue.js";
4
4
  import { useI18n as R } from "vue-i18n";
5
5
  import { useRoute as U, useRouter as $ } from "vue-router";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),r={class:"flex-v-center flex-nowrap flex"},a=["src"],c={class:"h4"},d={class:"mn-r-small"},s={key:2,class:"mn-l-auto flex-v-center flex"},m={key:0,class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"},u={__name:"CardUser",props:{_id:{type:String,default:null},user:{type:Object,required:!0},action:{type:Object},photo:{type:String,default:null},name:{type:String,default:"No name"},role:{type:String},phone:{type:String},email:{type:String}},setup(t){return(n,i)=>(e.openBlock(),e.createElementBlock("div",r,[t.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:(n.FILE_SERVER_URL||"")+t.photo,class:"radius-medium bg-white object-fit-cover mn-r-thin i-thin",onClick:i[0]||(i[0]=e.withModifiers(o=>n.$router.push({name:t.user.type==="user"?"User Profile":"Organization",params:{_id:t.user._id}}),["stop"]))},null,8,a)):e.createCommentVNode("",!0),t.photo?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(l.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:i[1]||(i[1]=e.withModifiers(o=>n.$router.push({name:"User Profile",params:{_id:t.user._id||t._id}}),["stop"]))})),e.createElementVNode("div",null,[e.createElementVNode("p",c,e.toDisplayString(t.name),1),e.createElementVNode("span",d,e.toDisplayString(t.phone||t.email),1)]),t.action||t.role?(e.openBlock(),e.createElementBlock("div",s,[t.role?(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.role),1)):e.createCommentVNode("",!0),t.action?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:i[2]||(i[2]=e.withModifiers((...o)=>t.action.method&&t.action.method(...o),["stop"])),class:"h-100 w-2r t-white mn-l-thin capitalize t-medium radius-big bg-red"},e.toDisplayString(t.action.label),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}};exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),a={class:"flex-v-center flex-nowrap flex"},r=["src"],c={class:"h4"},s={class:"mn-r-small"},d={key:2,class:"mn-l-auto flex-stretch flex-v-center flex"},m={key:0,class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"},u={__name:"CardUser",props:{_id:{type:String,default:null},user:{type:Object,required:!0},action:{type:Object},photo:{type:String,default:null},name:{type:String,default:"No name"},role:{type:String},phone:{type:String},email:{type:String}},setup(t){return(i,n)=>(e.openBlock(),e.createElementBlock("div",a,[t.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:(i.FILE_SERVER_URL||"")+t.photo,class:"radius-medium bg-white object-fit-cover mn-r-thin i-thin",onClick:n[0]||(n[0]=e.withModifiers(o=>i.$router.push({name:t.user.type==="user"?"User Profile":"Organization",params:{_id:t.user._id}}),["stop"]))},null,8,r)):e.createCommentVNode("",!0),t.photo?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(l.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:n[1]||(n[1]=e.withModifiers(o=>i.$router.push({name:"User Profile",params:{_id:t.user._id||t._id}}),["stop"]))})),e.createElementVNode("div",null,[e.createElementVNode("p",c,e.toDisplayString(t.name),1),e.createElementVNode("span",s,e.toDisplayString(t.phone||t.email),1)]),t.action||t.role?(e.openBlock(),e.createElementBlock("div",d,[t.role?(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.role),1)):e.createCommentVNode("",!0),t.action?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:n[2]||(n[2]=e.withModifiers((...o)=>t.action.method&&t.action.method(...o),["stop"])),class:"h-2r w-2r t-white mn-l-thin capitalize t-medium radius-big bg-red"},[t.action.label.is?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.action.label.is),e.normalizeProps(e.mergeProps({key:0},t.action.label.props)),null,16)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(t.action.label),1)],64))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}};exports.default=u;