@ozdao/prometheus-framework 0.2.118 → 0.2.120

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/community.server.js +1 -1
  2. package/dist/community.server.mjs +1 -1
  3. package/dist/events.server.js +1 -1
  4. package/dist/events.server.mjs +1 -1
  5. package/dist/gallery.server.js +13 -3
  6. package/dist/gallery.server.mjs +13 -3
  7. package/dist/main-DL3vRQCi.js +92 -0
  8. package/dist/main-Ds3Z5x5d.mjs +14206 -0
  9. package/dist/main.css +1 -1
  10. package/dist/orders.server.js +1 -1
  11. package/dist/orders.server.mjs +1 -1
  12. package/dist/organizations.server.js +1 -1
  13. package/dist/organizations.server.mjs +1 -1
  14. package/dist/products.server.js +1 -1
  15. package/dist/products.server.mjs +1 -1
  16. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Button/Button.vue.js +94 -1
  18. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -94
  20. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +116 -117
  22. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +123 -109
  24. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
  26. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
  28. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  30. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +32 -26
  32. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +30 -26
  34. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  38. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  40. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  42. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  44. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  46. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  48. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  50. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  52. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +16 -17
  54. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  62. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  64. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +44 -69
  66. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.cjs +1 -0
  67. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.js +64 -0
  68. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue2.cjs +1 -0
  69. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue2.js +1 -0
  70. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +101 -14
  72. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +166 -103
  74. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  76. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  78. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +38 -1
  80. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +3 -3
  82. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -21
  84. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.js +3 -3
  86. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.js +5 -5
  90. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  94. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  96. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  98. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  100. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  106. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  108. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  112. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  114. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  120. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  124. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  128. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  132. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +31 -32
  134. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  136. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  140. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  142. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  144. package/dist/prometheus-framework.cjs.js +1 -1
  145. package/dist/prometheus-framework.es.js +1 -1
  146. package/dist/queryProcessor-g8208K6g.mjs +178 -0
  147. package/dist/queryProcessor-haY_gPGg.js +177 -0
  148. package/dist/style.css +1 -1
  149. package/dist/wallet.server.js +1 -1
  150. package/dist/wallet.server.mjs +1 -1
  151. package/dist/web-B8tq3Fda.mjs +54 -0
  152. package/dist/web-ByJkgGrt.js +1 -0
  153. package/package.json +1 -1
  154. package/src/components/DatePicker/Calendar.vue +82 -55
  155. package/src/components/Feed/Feed.vue +45 -16
  156. package/src/components/FieldTags/BlockTags.vue +30 -23
  157. package/src/components/Popup/Popup.vue +2 -2
  158. package/src/modules/events/components/pages/Events.vue +2 -48
  159. package/src/modules/gallery/components/blocks/PhotoViewer.vue +115 -0
  160. package/src/modules/gallery/components/pages/Gallery.vue +103 -6
  161. package/src/modules/gallery/components/sections/BackofficeGallery.vue +100 -32
  162. package/src/modules/gallery/controllers/gallery.controller.js +45 -38
  163. package/src/modules/gallery/models/photo.model.js +4 -0
  164. package/src/modules/globals/components/blocks/CardHeader.vue +1 -1
  165. package/src/modules/globals/components/elements/ButtonDate.vue +37 -43
  166. package/src/modules/globals/components/layouts/Client.vue +1 -1
  167. package/src/modules/globals/components/sections/SectionPageTitle.vue +1 -1
  168. package/src/modules/globals/controllers/utils/queryProcessor.js +21 -2
  169. package/src/modules/globals/services/globals.store.js +13 -17
  170. package/src/modules/icons/skeletons/SkeletonBlogpost.vue +1 -1
  171. package/src/modules/icons/skeletons/SkeletonEvent.vue +1 -1
  172. package/src/modules/icons/skeletons/SkeletonEventShort.vue +1 -1
  173. package/src/modules/icons/skeletons/SkeletonOrganization.vue +1 -1
  174. package/src/modules/products/components/sections/FilterProducts.vue +2 -1
  175. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +0 -176
@@ -1,21 +1,20 @@
1
- import { mergeModels as D, useModel as M, ref as i, watch as U, onMounted as A, onUnmounted as G, openBlock as o, createElementBlock as x, Fragment as z, createBlock as h, normalizeClass as g, createCommentVNode as u, createElementVNode as E, createVNode as p, withCtx as b, unref as y, TransitionGroup as F, renderList as R, Transition as q, renderSlot as H } from "vue";
2
- import J from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
1
+ import { mergeModels as U, useModel as S, ref as m, watch as b, onMounted as z, onUnmounted as F, openBlock as i, createElementBlock as $, Fragment as C, createBlock as f, normalizeClass as y, createCommentVNode as o, withCtx as k, createVNode as L, unref as M, TransitionGroup as E, renderList as N, Transition as D, renderSlot as P, createElementVNode as G } from "vue";
2
+ import R from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
3
3
  import "../Loader/Loader.vue.js";
4
- import K from "../EmptyState/EmptyState.vue.js";
5
- import N from "../Dropdown/Dropdown.vue2.js";
6
- import Q from "../DatePicker/Calendar.vue2.js";
7
- import W from "../../modules/globals/components/blocks/BlockSearch.vue.js";
8
- import X from "../../modules/globals/components/blocks/BlockSorting.vue.js";
9
- import Y from "../../modules/globals/components/elements/ButtonSort.vue.js";
10
- import Z from "../../modules/globals/components/elements/ButtonDate.vue2.js";
11
- import _ from "../../modules/icons/navigation/IconFilter.vue.js";
4
+ import q from "../EmptyState/EmptyState.vue.js";
5
+ import I from "../Dropdown/Dropdown.vue2.js";
6
+ import A from "../DatePicker/Calendar.vue2.js";
7
+ import H from "../../modules/globals/components/blocks/BlockSearch.vue.js";
8
+ import J from "../../modules/globals/components/blocks/BlockSorting.vue.js";
9
+ import K from "../../modules/globals/components/elements/ButtonSort.vue.js";
10
+ import Q from "../../modules/globals/components/elements/ButtonDate.vue.js";
12
11
  import "./Feed.vue2.js";
13
- const V = {
12
+ const W = {
14
13
  key: 0,
15
14
  class: "flex-nowrap flex gap-thin mn-b-thin"
16
- }, ee = { class: "flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100" }, O = null, pe = {
15
+ }, O = null, ie = {
17
16
  __name: "Feed",
18
- props: /* @__PURE__ */ D({
17
+ props: /* @__PURE__ */ U({
19
18
  showLoadMore: {
20
19
  type: Boolean,
21
20
  default: !0
@@ -69,144 +68,159 @@ const V = {
69
68
  itemsModifiers: {}
70
69
  }),
71
70
  emits: ["update:search", "update:sort", "update:date", "update:items"],
72
- setup(l) {
73
- var I, T;
74
- const m = M(l, "search"), s = M(l, "sort"), $ = M(l, "date"), f = M(l, "items"), a = l, r = i(f.value || []), n = i(!1);
75
- let v = i(!0), L = i(null), k = i(a.options.skip ? a.options.skip : 0), c = i(a.options.limit ? a.options.limit : 10), B = i(((I = s.value) == null ? void 0 : I.param) || "createdAt"), j = i(((T = s.value) == null ? void 0 : T.order) || "asc"), S = i("");
76
- function P(e) {
77
- S.value = e, k.value = 0, c.value = 10, w();
71
+ setup(r) {
72
+ const p = S(r, "search"), a = S(r, "sort"), l = S(r, "date"), g = S(r, "items"), s = r, n = m(g.value || []), u = m(!1);
73
+ let h = m(!0), B = m(null), w = m(s.options.skip ? s.options.skip : 0), d = m(s.options.limit ? s.options.limit : 10), x = m("");
74
+ function T(e) {
75
+ x.value = e, w.value = 0, d.value = 10, c();
78
76
  }
79
- const C = async () => {
80
- if (n.value) {
81
- k.value += c.value;
82
- const e = await a.store.read({
83
- skip: k.value,
84
- limit: c.value,
85
- search: S.value,
86
- sortParam: B.value,
87
- sortOrder: j.value,
88
- ...a.options
77
+ const j = async () => {
78
+ if (u.value) {
79
+ w.value += d.value;
80
+ const e = await s.store.read({
81
+ skip: w.value,
82
+ limit: d.value,
83
+ search: x.value,
84
+ dateStart: l.value ? l.value.start : null,
85
+ dateEnd: l.value ? l.value.end : null,
86
+ sortParam: a.value ? a.value.param : null,
87
+ sortOrder: a.value ? a.value.order : null,
88
+ ...s.options
89
89
  });
90
- e.length === 0 || e.length < c.value ? n.value = !1 : n.value = !0, r.value = [...r.value, ...e], f.value && (f.value = r.value);
90
+ e.length === 0 || e.length < d.value ? u.value = !1 : u.value = !0, n.value = [...n.value, ...e], g.value && (g.value = n.value);
91
91
  }
92
- }, w = async () => {
93
- const e = await a.store.read({
94
- skip: k.value,
95
- limit: c.value,
96
- sortParam: B.value,
97
- sortOrder: j.value,
98
- search: S.value,
99
- ...a.options
92
+ }, c = async () => {
93
+ console.log("Date is", l.value);
94
+ const e = await s.store.read({
95
+ skip: w.value,
96
+ limit: d.value,
97
+ dateStart: l.value ? l.value.start : null,
98
+ dateEnd: l.value ? l.value.end : null,
99
+ sortParam: a.value ? a.value.param : null,
100
+ sortOrder: a.value ? a.value.order : null,
101
+ search: x.value,
102
+ ...s.options
100
103
  });
101
- e.length === 0 || e.length < c.value ? n.value = !1 : n.value = !0, r.value = e, f.value && (f.value = r.value), v.value = !1;
104
+ e.length === 0 || e.length < d.value ? u.value = !1 : u.value = !0, n.value = e, g.value && (g.value = n.value), h.value = !1;
102
105
  };
103
- return U(() => a.external, (e, t) => {
104
- e !== t && w();
105
- }, { deep: !0 }), U(() => a.options, (e, t) => {
106
- (e.organization !== t.organization || e.categories !== t.categories || e.prices !== t.prices || e.delivery !== t.delivery || e.search !== t.search || e.status !== t.status || e.hidden !== t.hidden || e.type !== t.type) && w();
107
- }, { deep: !0 }), A(async () => {
108
- await w(), typeof window < "u" && !a.showLoadMore && (O = new IntersectionObserver((e) => {
109
- e.some((t) => t.isIntersecting) && C();
110
- }), O.observe(L.value));
111
- }), G(() => {
106
+ return b(() => s.external, (e, t) => {
107
+ e !== t && c();
108
+ }, { deep: !0 }), b(() => l.value, (e, t) => {
109
+ e !== t && c();
110
+ }, { deep: !0 }), b(() => {
111
+ var e;
112
+ return (e = a.value) == null ? void 0 : e.order;
113
+ }, (e, t) => {
114
+ e !== t && c();
115
+ }, { deep: !0 }), b(() => {
116
+ var e;
117
+ return (e = a.value) == null ? void 0 : e.param;
118
+ }, (e, t) => {
119
+ e !== t && c();
120
+ }, { deep: !0 }), b(() => s.options, (e, t) => {
121
+ (e.organization !== t.organization || e.categories !== t.categories || e.prices !== t.prices || e.delivery !== t.delivery || e.search !== t.search || e.status !== t.status || e.hidden !== t.hidden || e.type !== t.type || e.tags !== t.tags) && c();
122
+ }, { deep: !0 }), z(async () => {
123
+ await c(), typeof window < "u" && !s.showLoadMore && (O = new IntersectionObserver((e) => {
124
+ e.some((t) => t.isIntersecting) && j();
125
+ }), O.observe(B.value));
126
+ }), F(() => {
112
127
  O && O.disconnect();
113
- }), (e, t) => (o(), x(z, null, [
114
- m.value ? (o(), x("div", V, [
115
- m.value ? (o(), h(W, {
128
+ }), (e, t) => (i(), $(C, null, [
129
+ p.value || l.value || a.value ? (i(), $("div", W, [
130
+ p.value ? (i(), f(H, {
116
131
  key: 0,
117
- placeholder: m.value.placeholder || "Search...",
118
- class: g(m.value.class || "bg-light"),
119
- onSearch: P
120
- }, null, 8, ["placeholder", "class"])) : u("", !0),
121
- E("div", ee, [
122
- p(_, { class: "w-1r h-auto" })
123
- ]),
124
- p(N, {
132
+ placeholder: p.value.placeholder || "Search...",
133
+ class: y(p.value.class || "bg-light"),
134
+ onSearch: T
135
+ }, null, 8, ["placeholder", "class"])) : o("", !0),
136
+ l.value ? (i(), f(I, {
137
+ key: 1,
125
138
  label: {
126
- component: Z
139
+ component: Q,
140
+ props: { date: l.value }
127
141
  },
128
- class: g([m.value.class || "bg-light", "flex-child flex-child-grow-1 flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),
129
- align: "right"
142
+ class: y([l.value.class || "bg-light", "flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),
143
+ align: p.value ? "right" : "left"
130
144
  }, {
131
- default: b(() => [
132
- p(Q, {
133
- date: $.value,
134
- "onUpdate:date": t[0] || (t[0] = (d) => $.value = d),
145
+ default: k(() => [
146
+ L(A, {
147
+ date: l.value,
148
+ "onUpdate:date": t[0] || (t[0] = (v) => l.value = v),
135
149
  locale: e.$i18n.locale,
136
150
  allowRange: !0,
137
151
  class: "radius-semi w-100 o-hidden bg-light"
138
152
  }, null, 8, ["date", "locale"])
139
153
  ]),
140
154
  _: 1
141
- }, 8, ["label", "class"]),
142
- s.value ? (o(), h(N, {
143
- key: 1,
155
+ }, 8, ["label", "class", "align"])) : o("", !0),
156
+ a.value ? (i(), f(I, {
157
+ key: 2,
144
158
  label: {
145
- component: Y,
146
- props: { order: s.value.order },
159
+ component: K,
160
+ props: { order: a.value.order },
147
161
  class: "w-1r"
148
162
  },
149
- class: g([m.value.class || "bg-light", "radius-extra aspect-1x1 h-100"]),
150
- align: "right"
163
+ class: y([a.value.class || "bg-light", "radius-extra aspect-1x1 h-100"]),
164
+ align: p.value ? "right" : "left"
151
165
  }, {
152
- default: b(() => [
153
- p(X, {
154
- param: s.value.param,
155
- "onUpdate:param": t[1] || (t[1] = (d) => s.value.param = d),
156
- order: s.value.order,
157
- "onUpdate:order": t[2] || (t[2] = (d) => s.value.order = d),
158
- options: s.value.options,
166
+ default: k(() => [
167
+ L(J, {
168
+ param: a.value.param,
169
+ "onUpdate:param": t[1] || (t[1] = (v) => a.value.param = v),
170
+ order: a.value.order,
171
+ "onUpdate:order": t[2] || (t[2] = (v) => a.value.order = v),
172
+ options: a.value.options,
159
173
  class: "h-100 pd-small radius-semi t-white bg-black"
160
174
  }, null, 8, ["param", "order", "options"])
161
175
  ]),
162
176
  _: 1
163
- }, 8, ["label", "class"])) : u("", !0)
164
- ])) : u("", !0),
165
- y(v) ? (o(), h(F, {
177
+ }, 8, ["label", "class", "align"])) : o("", !0)
178
+ ])) : o("", !0),
179
+ M(h) ? (i(), f(E, {
166
180
  key: 1,
167
181
  tag: "ul",
168
182
  name: "scaleTransition",
169
- class: g(["o-hidden bg-light radius-big", e.$attrs.class])
183
+ class: y(["o-hidden bg-light radius-big", e.$attrs.class])
170
184
  }, {
171
- default: b(() => [
172
- y(v) ? (o(!0), x(z, { key: 0 }, R(y(c), (d) => (o(), h(J, {
173
- key: "skeleton-" + d
174
- }))), 128)) : u("", !0)
185
+ default: k(() => [
186
+ M(h) ? (i(!0), $(C, { key: 0 }, N(M(d), (v) => (i(), f(R, {
187
+ key: "skeleton-" + v
188
+ }))), 128)) : o("", !0)
175
189
  ]),
176
190
  _: 1
177
- }, 8, ["class"])) : u("", !0),
178
- p(q, { name: "scaleTransition" }, {
179
- default: b(() => [
180
- !y(v) && r.value.length < 1 ? (o(), h(K, {
191
+ }, 8, ["class"])) : o("", !0),
192
+ L(D, { name: "scaleTransition" }, {
193
+ default: k(() => [
194
+ !M(h) && n.value.length < 1 ? (i(), f(q, {
181
195
  key: 0,
182
- title: l.states.empty.title,
183
- description: l.states.empty.description,
184
- action: l.states.empty.action,
185
- callback: l.states.empty.callback,
196
+ title: r.states.empty.title,
197
+ description: r.states.empty.description,
198
+ action: r.states.empty.action,
199
+ callback: r.states.empty.callback,
186
200
  class: "pd-medium mn-b-thin bg-light radius-big"
187
- }, null, 8, ["title", "description", "action", "callback"])) : u("", !0)
201
+ }, null, 8, ["title", "description", "action", "callback"])) : o("", !0)
188
202
  ]),
189
203
  _: 1
190
204
  }),
191
- p(F, {
205
+ L(E, {
192
206
  tag: "ul",
193
207
  name: "feed",
194
- class: g(e.$attrs.class)
208
+ class: y(e.$attrs.class)
195
209
  }, {
196
- default: b(() => [
197
- !y(v) && r.value.length > 0 ? H(e.$slots, "default", {
210
+ default: k(() => [
211
+ !M(h) && n.value.length > 0 ? P(e.$slots, "default", {
198
212
  key: 0,
199
- items: r.value
200
- }) : u("", !0),
201
- l.showLoadMore && n.value && r.value.length > 0 ? (o(), x("button", {
213
+ items: n.value
214
+ }) : o("", !0),
215
+ r.showLoadMore && u.value && n.value.length > 0 ? (i(), $("button", {
202
216
  key: 1,
203
- onClick: C,
217
+ onClick: j,
204
218
  class: "col-w-100 w-100 bg-main button"
205
- }, " Load More ")) : u("", !0),
206
- E("div", {
219
+ }, " Load More ")) : o("", !0),
220
+ G("div", {
207
221
  key: "sentinel",
208
222
  ref_key: "sentinel",
209
- ref: L,
223
+ ref: B,
210
224
  class: "sentinel"
211
225
  }, null, 512)
212
226
  ]),
@@ -216,5 +230,5 @@ const V = {
216
230
  }
217
231
  };
218
232
  export {
219
- pe as default
233
+ ie as default
220
234
  };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue2.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex","disabled"],b=["value","placeholder","tabindex","disabled"],f={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,value:null,validation:!1,disabled:null,tabindex:-1},emits:["update:field","focus","blur"],setup(l,{emit:s}){const a=s,d=l;d.value&&a("update:field",d.value);const i=e.ref(d.field);return(o,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[o.$attrs.class,{"bg-fourth-nano":l.validation}],"flex-center flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[l.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:t[0]||(t[0]=n=>i.value=a("update:field",n.target.value)),onFocus:t[1]||(t[1]=n=>a("focus",n)),onBlur:t[2]||(t[2]=n=>a("blur",n)),type:l.type,class:"w-100",value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:t[3]||(t[3]=n=>i.value=a("update:field",n.target.value)),onFocus:t[4]||(t[4]=n=>a("focus",n)),onBlur:t[5]||(t[5]=n=>a("blur",n)),class:"w-100",style:{resize:"vertical"},value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,b))]),e.renderSlot(o.$slots,"default",{},void 0,!0),l.symbol?(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("span",null,e.toDisplayString(l.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-47c78b3c"]]);exports.default=y;
@@ -1 +1,84 @@
1
-
1
+ import { ref as f, openBlock as n, createElementBlock as d, Fragment as v, createElementVNode as i, normalizeClass as c, toDisplayString as o, createCommentVNode as u, renderSlot as x, createVNode as y, Transition as h, withCtx as k } from "vue";
2
+ import "./Field.vue2.js";
3
+ import g from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const w = {
5
+ key: 0,
6
+ class: "t-transp mn-r-small"
7
+ }, F = { class: "w-100" }, B = ["type", "value", "placeholder", "tabindex", "disabled"], p = ["value", "placeholder", "tabindex", "disabled"], C = {
8
+ key: 1,
9
+ class: "t-transp mn-l-small"
10
+ }, E = {
11
+ key: 0,
12
+ class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
13
+ }, I = {
14
+ __name: "Field",
15
+ props: {
16
+ label: null,
17
+ symbol: null,
18
+ type: "text",
19
+ placeholder: "Enter something here",
20
+ field: null,
21
+ value: null,
22
+ validation: !1,
23
+ disabled: null,
24
+ tabindex: -1
25
+ },
26
+ emits: ["update:field", "focus", "blur"],
27
+ setup(e, { emit: b }) {
28
+ const a = b, s = e;
29
+ s.value && a("update:field", s.value);
30
+ const r = f(s.field);
31
+ return (m, l) => (n(), d(v, null, [
32
+ i("div", {
33
+ class: c([[
34
+ m.$attrs.class,
35
+ {
36
+ "bg-fourth-nano": e.validation
37
+ }
38
+ ], "flex-center flex-nowrap flex"])
39
+ }, [
40
+ e.label ? (n(), d("div", w, [
41
+ i("span", null, o(e.label), 1)
42
+ ])) : u("", !0),
43
+ i("div", F, [
44
+ e.type !== "textarea" ? (n(), d("input", {
45
+ key: 0,
46
+ onInput: l[0] || (l[0] = (t) => r.value = a("update:field", t.target.value)),
47
+ onFocus: l[1] || (l[1] = (t) => a("focus", t)),
48
+ onBlur: l[2] || (l[2] = (t) => a("blur", t)),
49
+ type: e.type,
50
+ class: "w-100",
51
+ value: e.field,
52
+ placeholder: e.placeholder,
53
+ tabindex: e.tabindex,
54
+ disabled: e.disabled
55
+ }, null, 40, B)) : (n(), d("textarea", {
56
+ key: 1,
57
+ onInput: l[3] || (l[3] = (t) => r.value = a("update:field", t.target.value)),
58
+ onFocus: l[4] || (l[4] = (t) => a("focus", t)),
59
+ onBlur: l[5] || (l[5] = (t) => a("blur", t)),
60
+ class: "w-100",
61
+ style: { resize: "vertical" },
62
+ value: e.field,
63
+ placeholder: e.placeholder,
64
+ tabindex: e.tabindex,
65
+ disabled: e.disabled
66
+ }, null, 40, p))
67
+ ]),
68
+ x(m.$slots, "default", {}, void 0, !0),
69
+ e.symbol ? (n(), d("div", C, [
70
+ i("span", null, o(e.symbol), 1)
71
+ ])) : u("", !0)
72
+ ], 2),
73
+ y(h, { name: "fade" }, {
74
+ default: k(() => [
75
+ e.validation ? (n(), d("div", E, " * " + o(e.validation.message), 1)) : u("", !0)
76
+ ]),
77
+ _: 1
78
+ })
79
+ ], 64));
80
+ }
81
+ }, S = /* @__PURE__ */ g(I, [["__scopeId", "data-v-47c78b3c"]]);
82
+ export {
83
+ S as default
84
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex","disabled"],b=["value","placeholder","tabindex","disabled"],f={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,value:null,validation:!1,disabled:null,tabindex:-1},emits:["update:field","focus","blur"],setup(l,{emit:s}){const a=s,d=l;d.value&&a("update:field",d.value);const i=e.ref(d.field);return(o,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[o.$attrs.class,{"bg-fourth-nano":l.validation}],"flex-center flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[l.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:t[0]||(t[0]=n=>i.value=a("update:field",n.target.value)),onFocus:t[1]||(t[1]=n=>a("focus",n)),onBlur:t[2]||(t[2]=n=>a("blur",n)),type:l.type,class:"w-100",value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:t[3]||(t[3]=n=>i.value=a("update:field",n.target.value)),onFocus:t[4]||(t[4]=n=>a("focus",n)),onBlur:t[5]||(t[5]=n=>a("blur",n)),class:"w-100",style:{resize:"vertical"},value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,b))]),e.renderSlot(o.$slots,"default",{},void 0,!0),l.symbol?(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("span",null,e.toDisplayString(l.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-47c78b3c"]]);exports.default=y;
1
+ "use strict";
@@ -1,84 +1 @@
1
- import { ref as f, openBlock as n, createElementBlock as d, Fragment as v, createElementVNode as i, normalizeClass as c, toDisplayString as o, createCommentVNode as u, renderSlot as x, createVNode as y, Transition as h, withCtx as k } from "vue";
2
- import "./Field.vue.js";
3
- import g from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const w = {
5
- key: 0,
6
- class: "t-transp mn-r-small"
7
- }, F = { class: "w-100" }, B = ["type", "value", "placeholder", "tabindex", "disabled"], p = ["value", "placeholder", "tabindex", "disabled"], C = {
8
- key: 1,
9
- class: "t-transp mn-l-small"
10
- }, E = {
11
- key: 0,
12
- class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
13
- }, I = {
14
- __name: "Field",
15
- props: {
16
- label: null,
17
- symbol: null,
18
- type: "text",
19
- placeholder: "Enter something here",
20
- field: null,
21
- value: null,
22
- validation: !1,
23
- disabled: null,
24
- tabindex: -1
25
- },
26
- emits: ["update:field", "focus", "blur"],
27
- setup(e, { emit: b }) {
28
- const a = b, s = e;
29
- s.value && a("update:field", s.value);
30
- const r = f(s.field);
31
- return (m, l) => (n(), d(v, null, [
32
- i("div", {
33
- class: c([[
34
- m.$attrs.class,
35
- {
36
- "bg-fourth-nano": e.validation
37
- }
38
- ], "flex-center flex-nowrap flex"])
39
- }, [
40
- e.label ? (n(), d("div", w, [
41
- i("span", null, o(e.label), 1)
42
- ])) : u("", !0),
43
- i("div", F, [
44
- e.type !== "textarea" ? (n(), d("input", {
45
- key: 0,
46
- onInput: l[0] || (l[0] = (t) => r.value = a("update:field", t.target.value)),
47
- onFocus: l[1] || (l[1] = (t) => a("focus", t)),
48
- onBlur: l[2] || (l[2] = (t) => a("blur", t)),
49
- type: e.type,
50
- class: "w-100",
51
- value: e.field,
52
- placeholder: e.placeholder,
53
- tabindex: e.tabindex,
54
- disabled: e.disabled
55
- }, null, 40, B)) : (n(), d("textarea", {
56
- key: 1,
57
- onInput: l[3] || (l[3] = (t) => r.value = a("update:field", t.target.value)),
58
- onFocus: l[4] || (l[4] = (t) => a("focus", t)),
59
- onBlur: l[5] || (l[5] = (t) => a("blur", t)),
60
- class: "w-100",
61
- style: { resize: "vertical" },
62
- value: e.field,
63
- placeholder: e.placeholder,
64
- tabindex: e.tabindex,
65
- disabled: e.disabled
66
- }, null, 40, p))
67
- ]),
68
- x(m.$slots, "default", {}, void 0, !0),
69
- e.symbol ? (n(), d("div", C, [
70
- i("span", null, o(e.symbol), 1)
71
- ])) : u("", !0)
72
- ], 2),
73
- y(h, { name: "fade" }, {
74
- default: k(() => [
75
- e.validation ? (n(), d("div", E, " * " + o(e.validation.message), 1)) : u("", !0)
76
- ]),
77
- _: 1
78
- })
79
- ], 64));
80
- }
81
- }, S = /* @__PURE__ */ g(I, [["__scopeId", "data-v-47c78b3c"]]);
82
- export {
83
- S as default
84
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.vue2.cjs"),B=require("vue-i18n"),S={class:"pd-thin radius-extra flex-nowrap flex"},w=["innerHTML"],_={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["Lowest THC, please!","Something with banana flavors?","I'm in the mood for trippy vibes."],ru:["Я хочу самый низкий THC","Я хочу чего-нибудь бананового","Я хочу курнуть хейза"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(s,{emit:y}){const t=s,{t:F,locale:c}=B.useI18n();let r=e.ref(0),n=e.ref(t.input),p=e.ref(t.placeholder),i=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),v=null;const g=y;function b(){g("action")}function T(a){g("update:input",a),f.value=a}function m(){r.value=(r.value+1)%t.placeholderTexts[c.value].length}function I(){i.value=!1,clearInterval(d.value),p.value=t.placeholder,f.value||(n.value="")}function x(){!f.value&&t.enableTyping&&(i.value=!0,p.value="",h())}function h(){let a=t.placeholderTexts[c.value][r.value],l=0,u=!1;v=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{i.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,m(),a=t.placeholderTexts[c.value][r.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&h()}),e.watchEffect(()=>{i.value||(clearInterval(d.value),clearInterval(v))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(k.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),T],placeholder:e.unref(i)?" ":e.unref(p),onInput:m,onFocus:I,onBlur:x,class:"w-100 p-medium t-regular uppercase pd-small"},null,8,["field","placeholder"]),s.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:b,class:"t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main",innerHTML:s.action},null,8,w)):e.createCommentVNode("",!0)]))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.vue.cjs"),B=require("vue-i18n"),S={class:"pd-thin radius-extra flex-nowrap flex"},w=["innerHTML"],_={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["Lowest THC, please!","Something with banana flavors?","I'm in the mood for trippy vibes."],ru:["Я хочу самый низкий THC","Я хочу чего-нибудь бананового","Я хочу курнуть хейза"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(s,{emit:y}){const t=s,{t:F,locale:c}=B.useI18n();let r=e.ref(0),n=e.ref(t.input),p=e.ref(t.placeholder),i=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),v=null;const g=y;function b(){g("action")}function T(a){g("update:input",a),f.value=a}function m(){r.value=(r.value+1)%t.placeholderTexts[c.value].length}function I(){i.value=!1,clearInterval(d.value),p.value=t.placeholder,f.value||(n.value="")}function x(){!f.value&&t.enableTyping&&(i.value=!0,p.value="",h())}function h(){let a=t.placeholderTexts[c.value][r.value],l=0,u=!1;v=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{i.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,m(),a=t.placeholderTexts[c.value][r.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&h()}),e.watchEffect(()=>{i.value||(clearInterval(d.value),clearInterval(v))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(k.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),T],placeholder:e.unref(i)?" ":e.unref(p),onInput:m,onFocus:I,onBlur:x,class:"w-100 p-medium t-regular uppercase pd-small"},null,8,["field","placeholder"]),s.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:b,class:"t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main",innerHTML:s.action},null,8,w)):e.createCommentVNode("",!0)]))}};exports.default=_;
@@ -1,5 +1,5 @@
1
1
  import { ref as i, onMounted as S, watchEffect as F, openBlock as T, createElementBlock as b, createVNode as C, unref as v, isRef as H, createCommentVNode as _ } from "vue";
2
- import L from "../Field/Field.vue2.js";
2
+ import L from "../Field/Field.vue.js";
3
3
  import { useI18n as M } from "vue-i18n";
4
4
  const N = { class: "pd-thin radius-extra flex-nowrap flex" }, V = ["innerHTML"], P = {
5
5
  __name: "FieldBig",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("./FieldTags.vue.cjs");require("./BlockTags.vue2.cjs");const f=e.createElementVNode("h5",{class:"mn-b-thin"},"Tags (maximum 20):",-1),x={class:"mn-b-medium"},_=e.createElementVNode("p",{class:"p-small mn-b-thin"},"Suggested:",-1),k=["onClick"],B={key:1},T={__name:"BlockTags",props:["tags"],emits:["tags-changed"],setup(d,{emit:m}){const r=m,u=d,o=e.ref(""),s=e.ref([]),c=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);u.tags&&(s.value=u.tags.map(t=>({text:t})));const i=e.computed(()=>c.value.filter(t=>t.text.toLowerCase().includes(o.value.toLowerCase()))),n=e.computed(()=>c.value.filter(t=>!s.value.some(a=>a.text===t.text)));function g(t){s.value.push(t),r("tags-changed",s.value.map(a=>a.text))}function p(t){s.value=t,r("tags-changed",s.value.map(a=>a.text))}return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[f,e.createVNode(h.default,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),tags:s.value,"autocomplete-items":i.value,"add-on-key":[13,":",";",","],"save-on-key":[13,":",";",","],separators:[";",","],"max-tags":20,maxlength:20,placeholder:"Please add tags","add-from-paste":!0,"allow-edit-tags":!0,onTagsChanged:p,class:"mn-b-thin bg-light radius-medium pd-small"},null,8,["modelValue","tags","autocomplete-items"]),e.createElementVNode("p",x,[_,n.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,(l,v)=>(e.openBlock(),e.createElementBlock("span",{onClick:b=>g(l),class:e.normalizeClass(["cursor-pointer t-medium ti-tag-toDefactor",{"mn-r-micro":v!==n.value.length-1}])},e.toDisplayString(l.text),11,k))),256)):(e.openBlock(),e.createElementBlock("span",B,"You added all suggested tags"))])]))}};exports.default=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("./FieldTags.vue.cjs");require("./BlockTags.vue2.cjs");const f=e.createElementVNode("h5",{class:"mn-b-thin"},"Tags (maximum 20):",-1),x=e.createElementVNode("p",{class:"p-small mn-b-thin"},"Suggested:",-1),k=["onClick"],_={key:1},y={__name:"BlockTags",props:{tags:{type:Array},tagsSuggested:{type:Array,default:[{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]}},emits:["tags-changed"],setup(c,{emit:i}){const u=i,o=c,n=e.ref(""),s=e.ref([]),d=e.ref(o.tagsSuggested);o.tags&&(s.value=o.tags.map(t=>({text:t})));const m=e.computed(()=>d.value.filter(t=>t.text.toLowerCase().includes(n.value.toLowerCase()))),r=e.computed(()=>d.value.filter(t=>!s.value.some(a=>a.text===t.text)));function g(t){s.value.push(t),u("tags-changed",s.value.map(a=>a.text))}function p(t){s.value=t,u("tags-changed",s.value.map(a=>a.text))}return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[f,e.createVNode(h.default,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),tags:s.value,"autocomplete-items":m.value,"add-on-key":[13,":",";",","],"save-on-key":[13,":",";",","],separators:[";",","],"max-tags":20,maxlength:20,placeholder:"Please add tags","add-from-paste":!0,"allow-edit-tags":!0,onTagsChanged:p,class:"mn-b-thin bg-light radius-medium pd-small"},null,8,["modelValue","tags","autocomplete-items"]),x,r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(l,v)=>(e.openBlock(),e.createElementBlock("span",{onClick:B=>g(l),class:e.normalizeClass(["cursor-pointer t-medium ti-tag-toDefactor",{"mn-r-micro":v!==r.value.length-1}])},e.toDisplayString(l.text),11,k))),256)):(e.openBlock(),e.createElementBlock("span",_,"You added all suggested tags"))]))}};exports.default=y;
@@ -1,31 +1,39 @@
1
- import { ref as u, computed as g, openBlock as o, createElementBlock as l, createVNode as k, createElementVNode as m, Fragment as C, renderList as T, normalizeClass as y, toDisplayString as b } from "vue";
1
+ import { ref as d, computed as i, openBlock as o, createElementBlock as l, createVNode as y, Fragment as k, renderList as C, normalizeClass as T, toDisplayString as S, createElementVNode as c } from "vue";
2
2
  import V from "./FieldTags.vue.js";
3
3
  import "./BlockTags.vue2.js";
4
- const w = /* @__PURE__ */ m("h5", { class: "mn-b-thin" }, "Tags (maximum 20):", -1), B = { class: "mn-b-medium" }, I = /* @__PURE__ */ m("p", { class: "p-small mn-b-thin" }, "Suggested:", -1), L = ["onClick"], S = { key: 1 }, z = {
4
+ const b = /* @__PURE__ */ c("h5", { class: "mn-b-thin" }, "Tags (maximum 20):", -1), w = /* @__PURE__ */ c("p", { class: "p-small mn-b-thin" }, "Suggested:", -1), B = ["onClick"], I = { key: 1 }, F = {
5
5
  __name: "BlockTags",
6
- props: ["tags"],
6
+ props: {
7
+ tags: {
8
+ type: Array
9
+ },
10
+ tagsSuggested: {
11
+ type: Array,
12
+ default: [
13
+ { text: "story" },
14
+ { text: "news" },
15
+ { text: "guide" },
16
+ { text: "discussion" },
17
+ { text: "photos" }
18
+ ]
19
+ }
20
+ },
7
21
  emits: ["tags-changed"],
8
22
  setup(p, { emit: h }) {
9
- const d = h, i = p, n = u(""), a = u([]), c = u([
10
- { text: "story" },
11
- { text: "news" },
12
- { text: "guide" },
13
- { text: "discussion" },
14
- { text: "photos" }
15
- ]);
16
- i.tags && (a.value = i.tags.map((e) => ({ text: e })));
17
- const v = g(() => c.value.filter((e) => e.text.toLowerCase().includes(n.value.toLowerCase()))), r = g(() => c.value.filter((e) => !a.value.some((t) => t.text === e.text)));
23
+ const m = h, n = p, r = d(""), a = d([]), g = d(n.tagsSuggested);
24
+ n.tags && (a.value = n.tags.map((e) => ({ text: e })));
25
+ const v = i(() => g.value.filter((e) => e.text.toLowerCase().includes(r.value.toLowerCase()))), u = i(() => g.value.filter((e) => !a.value.some((t) => t.text === e.text)));
18
26
  function x(e) {
19
- a.value.push(e), d("tags-changed", a.value.map((t) => t.text));
27
+ a.value.push(e), m("tags-changed", a.value.map((t) => t.text));
20
28
  }
21
29
  function f(e) {
22
- a.value = e, d("tags-changed", a.value.map((t) => t.text));
30
+ a.value = e, m("tags-changed", a.value.map((t) => t.text));
23
31
  }
24
32
  return (e, t) => (o(), l("div", null, [
25
- w,
26
- k(V, {
27
- modelValue: n.value,
28
- "onUpdate:modelValue": t[0] || (t[0] = (s) => n.value = s),
33
+ b,
34
+ y(V, {
35
+ modelValue: r.value,
36
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => r.value = s),
29
37
  tags: a.value,
30
38
  "autocomplete-items": v.value,
31
39
  "add-on-key": [13, ":", ";", ","],
@@ -39,16 +47,14 @@ const w = /* @__PURE__ */ m("h5", { class: "mn-b-thin" }, "Tags (maximum 20):",
39
47
  onTagsChanged: f,
40
48
  class: "mn-b-thin bg-light radius-medium pd-small"
41
49
  }, null, 8, ["modelValue", "tags", "autocomplete-items"]),
42
- m("p", B, [
43
- I,
44
- r.value.length > 0 ? (o(!0), l(C, { key: 0 }, T(r.value, (s, _) => (o(), l("span", {
45
- onClick: (D) => x(s),
46
- class: y(["cursor-pointer t-medium ti-tag-toDefactor", { "mn-r-micro": _ !== r.value.length - 1 }])
47
- }, b(s.text), 11, L))), 256)) : (o(), l("span", S, "You added all suggested tags"))
48
- ])
50
+ w,
51
+ u.value.length > 0 ? (o(!0), l(k, { key: 0 }, C(u.value, (s, _) => (o(), l("span", {
52
+ onClick: (L) => x(s),
53
+ class: T(["cursor-pointer t-medium ti-tag-toDefactor", { "mn-r-micro": _ !== u.value.length - 1 }])
54
+ }, S(s.text), 11, B))), 256)) : (o(), l("span", I, "You added all suggested tags"))
49
55
  ]));
50
56
  }
51
57
  };
52
58
  export {
53
- z as default
59
+ F as default
54
60
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),p=require("vue-i18n"),d=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue2.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={class:"mn-b-small"},f={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String,title:String},emits:["close-popup"],setup(t,{emit:l}){const a=t,i=l;function n(){i("close-popup")}e.watch(()=>a.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const u={messages:{en:{},ru:{}}};return p.useI18n(u),(o,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[e.createElementVNode("section",e.mergeProps({class:"pos-relative z-index-4"},o.$attrs,{class:o.$attrs.class}),[e.createElementVNode("h4",v,e.toDisplayString(t.title),1),e.createVNode(d.default,{onClick:s[0]||(s[0]=c=>n()),class:"cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"}),e.renderSlot(o.$slots,"default")],16)]),_:3}),e.createElementVNode("div",{onClick:s[1]||(s[1]=c=>n()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:3}))}};exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),p=require("vue-i18n"),d=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue2.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={key:0,class:"mn-b-small"},k={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String,title:String},emits:["close-popup"],setup(t,{emit:l}){const i=t,a=l;function n(){a("close-popup")}e.watch(()=>i.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const u={messages:{en:{},ru:{}}};return p.useI18n(u),(o,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[e.createElementVNode("section",e.mergeProps({class:"pos-relative z-index-4"},o.$attrs,{class:o.$attrs.class}),[t.title?(e.openBlock(),e.createElementBlock("h4",v,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.createVNode(d.default,{fill:"rgb(var(--white))",onClick:s[0]||(s[0]=c=>n()),class:"cursor-pointer bg-second pd-micro radius-extra pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-medium z-index-5"}),e.renderSlot(o.$slots,"default")],16)]),_:3}),e.createElementVNode("div",{onClick:s[1]||(s[1]=c=>n()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:3}))}};exports.default=k;