@ozdao/prometheus-framework 0.2.79 → 0.2.81

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  2. package/dist/prometheus-framework/src/components/Button/Button.vue.js +225 -1
  3. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -225
  5. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
  7. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
  9. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  11. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +36 -1
  13. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -36
  15. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  17. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  21. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  23. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  25. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  27. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  29. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  31. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  33. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  37. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  38. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
  39. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  40. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  41. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  45. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  47. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  49. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  51. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +3 -3
  52. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +131 -140
  53. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +4 -4
  57. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  59. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  61. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  69. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  83. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  85. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  89. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  91. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  93. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  95. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  97. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  107. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  113. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  117. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  119. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  125. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  127. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  129. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  131. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  133. package/dist/style.css +1 -1
  134. package/package.json +1 -1
  135. package/src/modules/events/components/pages/Event.vue +5 -4
  136. package/src/modules/events/components/sections/HeroEvent.vue +1 -1
@@ -1,10 +1,10 @@
1
- import { ref as v, onMounted as b, openBlock as a, createElementBlock as c, createVNode as u, TransitionGroup as g, withCtx as p, Fragment as f, renderList as k, createCommentVNode as n, Transition as x, createBlock as s, normalizeStyle as L, createElementVNode as m, normalizeClass as w, resolveDynamicComponent as C, mergeProps as B } from "vue";
1
+ import { ref as p, onMounted as h, openBlock as a, createElementBlock as c, createVNode as u, TransitionGroup as b, withCtx as v, Fragment as g, renderList as f, createCommentVNode as n, Transition as x, createBlock as s, normalizeStyle as L, createElementVNode as m, normalizeClass as w, resolveDynamicComponent as C, mergeProps as B } from "vue";
2
2
  import "../../../../components/Loader/Loader.vue.js";
3
3
  import E from "../../../../components/EmptyState/EmptyState.vue.js";
4
4
  import $ from "../sections/HeroEvent.vue.js";
5
5
  import I from "../sections/SectionMainGuest.vue.js";
6
- import S from "../sections/SectionSpecialGuests.vue.js";
7
- import H from "../sections/SectionLineup.vue.js";
6
+ import H from "../sections/SectionSpecialGuests.vue.js";
7
+ import S from "../sections/SectionLineup.vue.js";
8
8
  import U from "../sections/SectionPreviousEvents.vue.js";
9
9
  import M from "../blocks/CardEvent.vue.js";
10
10
  import N from "../../../icons/skeletons/SkeletonEvent.vue.js";
@@ -15,39 +15,39 @@ import { read as F } from "../../store/events.js";
15
15
  import { mutations as q } from "../../store/tickets.js";
16
16
  import { state as o } from "../../../auth/store/auth.js";
17
17
  import { useRoute as A } from "vue-router";
18
- const G = { class: "pd-thin" }, J = /* @__PURE__ */ m("h2", { class: "mn-b-big w-100 t-center" }, "Event Details", -1), re = {
18
+ const R = { class: "pd-thin" }, G = /* @__PURE__ */ m("h2", { class: "mn-b-big w-100 t-center" }, "Event Details", -1), re = {
19
19
  __name: "Event",
20
- setup(K) {
21
- const D = A(), _ = v(null), y = ({ ticket: t, hasTicket: r, targetId: i }) => {
22
- q.handleTicketUpdate(e.value, t, r, i), console.log("HANDLE TICKET UPDATE", t, e.value), _.value = t.qrcode;
23
- }, T = {
20
+ setup(J) {
21
+ const D = A(), k = p(null), y = ({ ticket: t, hasTicket: r, targetId: i }) => {
22
+ q.handleTicketUpdate(e.value, t, r, i), console.log("HANDLE TICKET UPDATE", t, e.value), k.value = t.qrcode;
23
+ }, _ = {
24
24
  Textarea: "p",
25
25
  H2: "h2",
26
26
  Bullets: "p",
27
27
  Caption: "p",
28
28
  ImageUpload: z
29
29
  };
30
- function h(t) {
30
+ function T(t) {
31
31
  return t.type === "Textarea" ? { innerHTML: t.content, class: "p-medium" } : t.type === "H2" ? { innerHTML: t.content, class: "h3" } : t.type === "Caption" ? { innerHTML: t.content } : t.type === "ImageUpload" ? { src: t.content } : {};
32
32
  }
33
- const e = v(null), l = v(!0);
34
- return b(async () => {
33
+ const e = p(null), l = p(!0);
34
+ return h(async () => {
35
35
  l.value = !0;
36
36
  const t = await F({ user: o.user._id, url: D.params.url });
37
37
  e.value = t[0], l.value = !1;
38
- }), (t, r) => (a(), c("section", G, [
39
- u(g, {
38
+ }), (t, r) => (a(), c("section", R, [
39
+ u(b, {
40
40
  tag: "ul",
41
41
  name: "fade",
42
42
  class: "o-hidden bg-grey radius-big"
43
43
  }, {
44
- default: p(() => [
45
- l.value ? (a(), c(f, { key: 0 }, k(3, (i) => u(N, { key: i })), 64)) : n("", !0)
44
+ default: v(() => [
45
+ l.value ? (a(), c(g, { key: 0 }, f(3, (i) => u(N, { key: i })), 64)) : n("", !0)
46
46
  ]),
47
47
  _: 1
48
48
  }),
49
49
  u(x, { name: "fade" }, {
50
- default: p(() => [
50
+ default: v(() => [
51
51
  !l.value && !e.value ? (a(), s(E, {
52
52
  key: 0,
53
53
  title: "No Event Found",
@@ -57,136 +57,127 @@ const G = { class: "pd-thin" }, J = /* @__PURE__ */ m("h2", { class: "mn-b-big w
57
57
  ]),
58
58
  _: 1
59
59
  }),
60
- u(g, {
61
- tag: "ul",
62
- name: "fade",
63
- class: "container"
64
- }, {
65
- default: p(() => [
66
- !l.value && e.value && e.value.special ? (a(), s($, {
67
- key: 0,
68
- content: {
69
- title: e.value.name,
70
- description: e.value.description,
71
- ticketLinkStripe: e.value.specialData.ticketLinkStripe,
72
- ticketText: e.value.specialData.ticketText,
73
- cover: e.value.cover,
74
- subtitle: e.value.specialData.subtitle,
75
- logos: e.value.specialData.logos,
76
- video: e.value.specialData.video,
77
- ticketTextButton: e.value.specialData.ticketTextButton
78
- },
79
- options: {
80
- date: e.value.date.start,
81
- price: e.value.specialData.ticketPrice
82
- },
83
- class: "mn-b-thin"
84
- }, null, 8, ["content", "options"])) : n("", !0),
85
- !l.value && e.value && e.value.special ? (a(), s(I, {
86
- key: 1,
87
- content: {
88
- title: e.value.specialData.guestTitle,
89
- description: e.value.specialData.guestDescription,
90
- socials: {
91
- twitter: e.value.specialData.guestTwitter,
92
- telegram: e.value.specialData.guestTelegram,
93
- instagram: e.value.specialData.guestInstagram,
94
- facebook: e.value.specialData.guestFacebook
95
- },
96
- video: e.value.specialData.guestVideo,
97
- spotify: e.value.specialData.guestSpotify,
98
- soundcloud: e.value.specialData.guestSoundcloud,
99
- youtube: e.value.specialData.guestYoutube
100
- },
101
- class: "mn-b-thin"
102
- }, null, 8, ["content"])) : n("", !0),
103
- !l.value && e.value && e.value.special ? (a(), c("section", {
104
- key: 2,
105
- style: L(`
60
+ !l.value && e.value && e.value.special ? (a(), s($, {
61
+ key: 0,
62
+ content: {
63
+ title: e.value.name,
64
+ description: e.value.description,
65
+ ticketLinkStripe: e.value.specialData.ticketLinkStripe,
66
+ ticketText: e.value.specialData.ticketText,
67
+ cover: e.value.cover,
68
+ subtitle: e.value.specialData.subtitle,
69
+ logos: e.value.specialData.logos,
70
+ video: e.value.specialData.video,
71
+ ticketTextButton: e.value.specialData.ticketTextButton
72
+ },
73
+ options: {
74
+ date: e.value.date.start,
75
+ price: e.value.specialData.ticketPrice
76
+ },
77
+ class: "mn-b-thin"
78
+ }, null, 8, ["content", "options"])) : n("", !0),
79
+ !l.value && e.value && e.value.special && e.value.specialData.guestTitle ? (a(), s(I, {
80
+ key: 1,
81
+ content: {
82
+ title: e.value.specialData.guestTitle,
83
+ description: e.value.specialData.guestDescription,
84
+ socials: {
85
+ twitter: e.value.specialData.guestTwitter,
86
+ telegram: e.value.specialData.guestTelegram,
87
+ instagram: e.value.specialData.guestInstagram,
88
+ facebook: e.value.specialData.guestFacebook
89
+ },
90
+ video: e.value.specialData.guestVideo,
91
+ spotify: e.value.specialData.guestSpotify,
92
+ soundcloud: e.value.specialData.guestSoundcloud,
93
+ youtube: e.value.specialData.guestYoutube
94
+ },
95
+ class: "mn-b-thin"
96
+ }, null, 8, ["content"])) : n("", !0),
97
+ !l.value && e.value && e.value.special ? (a(), c("section", {
98
+ key: 2,
99
+ style: L(`
106
100
  background-size: 100%; background-repeat: no-repeat;
107
101
  background-image: url(${e.value.specialData.lineupBackground});
108
102
  `),
109
- class: "mn-b-thin t-white gap-big w-100 h-max o-hidden radius-big pd-big pos-relative bg-black"
110
- }, [
111
- J,
112
- m("div", {
113
- class: w(["gap-big mn-b-thin", {
114
- "cols-2": e.value.specialData.guests.length > 0,
115
- "cols-1": e.value.specialData.guests.length > 1
116
- }])
117
- }, [
118
- e.value.specialData.guests.length > 0 ? (a(), s(S, {
119
- key: 0,
120
- content: {
121
- title: "Special Guests",
122
- guests: e.value.specialData.guests
123
- }
124
- }, null, 8, ["content"])) : n("", !0),
125
- u(H, {
126
- content: {
127
- title: "Lineup",
128
- lineup: e.value.specialData.lineup
129
- }
130
- }, null, 8, ["content"])
131
- ], 2),
132
- u(U, {
133
- content: {
134
- ticket: e.value.specialData.ticketImage,
135
- ticketTextButton: e.value.specialData.ticketTextButton,
136
- paymentText: e.value.specialData.paymentText,
137
- paymentContact: e.value.specialData.paymentContact,
138
- previousTitle: e.value.specialData.previousTitle,
139
- previousDescription: e.value.specialData.previousDescription,
140
- previousLink: e.value.specialData.previousLink,
141
- previousLinkText: e.value.specialData.previousLinkText
142
- },
143
- options: {
144
- link: e.value.specialData.ticketLinkStripe,
145
- video: e.value.specialData.previousVideo
146
- }
147
- }, null, 8, ["content", "options"])
148
- ], 4)) : n("", !0),
149
- !l.value && e.value && !e.value.special ? (a(), s(M, {
150
- key: 3,
151
- onClick: r[0] || (r[0] = (i) => t.$router.push({ name: "Event", params: { url: e.value.url } })),
152
- event: e.value,
153
- owner: e.value.owner,
154
- user: o.user._id,
155
- type: "normal",
156
- class: "mn-b-medium bg-grey radius-big"
157
- }, {
158
- default: p(() => [
159
- o.user._id ? (a(), s(P, {
160
- key: 0,
161
- type: "event",
162
- hasTicket: e.value.hasTicket,
163
- targetId: e.value._id,
164
- userId: o.user._id,
165
- class: "mn-b-small w-100 pd-medium mn-auto",
166
- onUpdateTicket: y
167
- }, null, 8, ["hasTicket", "targetId", "userId"])) : n("", !0),
168
- m("section", null, [
169
- e.value && e.value.content ? (a(!0), c(f, { key: 0 }, k(e.value.content, (i, d) => (a(), s(C(T[i.type]), B({
170
- key: d,
171
- index: d,
172
- component: i,
173
- prop: i,
174
- class: i.class,
175
- content: "content"
176
- }, h(i), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : n("", !0)
177
- ])
178
- ]),
179
- _: 1
180
- }, 8, ["event", "owner", "user"])) : n("", !0),
181
- !l.value && e.value && !e.value.special ? (a(), s(V, {
182
- key: 4,
103
+ class: "mn-b-thin t-white gap-big w-100 h-max o-hidden radius-big pd-big pos-relative bg-black"
104
+ }, [
105
+ G,
106
+ m("div", {
107
+ class: w(["gap-big mn-b-thin", {
108
+ "cols-2": e.value.specialData.guests.length > 0,
109
+ "cols-1": e.value.specialData.guests.length > 1
110
+ }])
111
+ }, [
112
+ e.value.specialData.guests.length > 0 ? (a(), s(H, {
113
+ key: 0,
114
+ content: {
115
+ title: "Residents",
116
+ guests: e.value.specialData.guests
117
+ }
118
+ }, null, 8, ["content"])) : n("", !0),
119
+ u(S, {
120
+ content: {
121
+ title: "Lineup",
122
+ lineup: e.value.specialData.lineup
123
+ }
124
+ }, null, 8, ["content"])
125
+ ], 2),
126
+ u(U, {
127
+ content: {
128
+ ticket: e.value.specialData.ticketImage,
129
+ ticketTextButton: e.value.specialData.ticketTextButton,
130
+ paymentText: e.value.specialData.paymentText,
131
+ paymentContact: e.value.specialData.paymentContact,
132
+ previousTitle: e.value.specialData.previousTitle,
133
+ previousDescription: e.value.specialData.previousDescription,
134
+ previousLink: e.value.specialData.previousLink,
135
+ previousLinkText: e.value.specialData.previousLinkText
136
+ },
137
+ options: {
138
+ link: e.value.specialData.ticketLinkStripe,
139
+ video: e.value.specialData.previousVideo
140
+ }
141
+ }, null, 8, ["content", "options"])
142
+ ], 4)) : n("", !0),
143
+ !l.value && e.value && !e.value.special ? (a(), s(M, {
144
+ key: 3,
145
+ onClick: r[0] || (r[0] = (i) => t.$router.push({ name: "Event", params: { url: e.value.url } })),
146
+ event: e.value,
147
+ owner: e.value.owner,
148
+ user: o.user._id,
149
+ type: "normal",
150
+ class: "mn-b-medium bg-grey radius-big"
151
+ }, {
152
+ default: v(() => [
153
+ o.user._id ? (a(), s(P, {
154
+ key: 0,
183
155
  type: "event",
184
- target: e.value._id,
185
- owner: o.user._id
186
- }, null, 8, ["target", "owner"])) : n("", !0)
156
+ hasTicket: e.value.hasTicket,
157
+ targetId: e.value._id,
158
+ userId: o.user._id,
159
+ class: "mn-b-small w-100 pd-medium mn-auto",
160
+ onUpdateTicket: y
161
+ }, null, 8, ["hasTicket", "targetId", "userId"])) : n("", !0),
162
+ m("section", null, [
163
+ e.value && e.value.content ? (a(!0), c(g, { key: 0 }, f(e.value.content, (i, d) => (a(), s(C(_[i.type]), B({
164
+ key: d,
165
+ index: d,
166
+ component: i,
167
+ prop: i,
168
+ class: i.class,
169
+ content: "content"
170
+ }, T(i), { class: "mn-b-regular" }), null, 16, ["index", "component", "prop", "class"]))), 128)) : n("", !0)
171
+ ])
187
172
  ]),
188
173
  _: 1
189
- })
174
+ }, 8, ["event", "owner", "user"])) : n("", !0),
175
+ !l.value && e.value && !e.value.special ? (a(), s(V, {
176
+ key: 4,
177
+ type: "event",
178
+ target: e.value._id,
179
+ owner: o.user._id
180
+ }, null, 8, ["target", "owner"])) : n("", !0)
190
181
  ]));
191
182
  }
192
183
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Chips/Chips.vue2.cjs");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../reports/store/reports.cjs");require("../../../../components/Tooltip/Tooltip.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const i=require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");require("../../../community/store/reactions.cjs");const o=require("../../store/events.cjs");require("../sections/List.vue2.cjs");const s={__name:"Events",setup(c){const r=u.useRoute();return u.useRouter(),(n,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(t.default,{category:e.unref(r).params.category,user:i.state.user._id,period:e.unref(r).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const t=require("../sections/Feed.vue.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/Chips/Chips.vue2.cjs");require("../../../../components/Popup/Popup.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../reports/store/reports.cjs");require("../../../../components/Tooltip/Tooltip.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");const i=require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");require("../../../community/store/reactions.cjs");const o=require("../../store/events.cjs");require("../sections/List.vue2.cjs");const s={__name:"Events",setup(c){const r=u.useRoute();return u.useRouter(),(n,a)=>(e.openBlock(),e.createElementBlock("section",null,[e.createVNode(t.default,{category:e.unref(r).params.category,user:i.state.user._id,period:e.unref(r).query.period,selectedDate:o.state.filter.date},null,8,["category","user","period","selectedDate"])]))}};exports.default=s;
@@ -7,7 +7,7 @@ import s from "../sections/Feed.vue.js";
7
7
  import "../../../../components/Loader/Loader.vue.js";
8
8
  import "../../../../components/Chips/Chips.vue2.js";
9
9
  import "../../../../components/Popup/Popup.vue.js";
10
- import "../../../../components/Button/Button.vue.js";
10
+ import "../../../../components/Button/Button.vue2.js";
11
11
  import "../../../../components/Select/Select.vue.js";
12
12
  import "../../../reports/store/reports.js";
13
13
  import "../../../../components/Tooltip/Tooltip.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-i18n");const g=require("../../../../components/Countdown/Countdown.vue.cjs");require("./HeroEvent.vue2.cjs");const x=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),B={class:"t-white t-center w-100 pos-relative gap-thin cols-2 pos-relative"},E={style:{"min-height":"20rem"},class:"desktop-only radius-big o-hidden bg-black pos-relative"},w=["src"],V=["src","type"],N={class:"content-hero-refactor radius-big o-hidden bg-black pd-big mn-r-auto mn-l-auto t-white flex-h-center flex-column o-hidden flex-v-start t-left flex w-100 h-100 gap-zero"},z={class:"mn-b-big z-index-1 flex-nowrap flex gap-small"},S=["src"],C={class:"pd-thin z-index-1 w-max br-solid br-2px br-white radius-extra mn-b-thin"},j={class:"z-index-1 t-main mn-b-semi"},D={class:"z-index-1 p-big mn-b-semi"},T={class:"z-index-1 t-transp p-small mn-b-thin"},q={key:0,class:"bg-white t-black pd-t-nano pd-b-nano pd-r-micro pd-l-micro radius-extra"},H={key:1,class:"z-index-1 mn-t-medium mn-b-small flex-nowrap flex gap-thin"},L=["src"],M=["src"],O={__name:"HeroEvent",props:{content:{type:Object},options:{type:Object}},setup(t){const v=t,o=e.ref(null);var i=!1;function b(){o.value.onplaying=function(){i=!0},o.value.onpause=function(){i=!1}}function k(n){return n.endsWith(".mp4")?"video/mp4":n.endsWith(".webm")?"video/webm":""}async function h(){if(o.value.paused&&!i)return o.value.play()}e.onMounted(()=>{b(),h()});function f(){var n;gtag("event","buy_ticket",{event_category:"conversion",event_label:"Buy Ticket"}),window.open((n=v.content)==null?void 0:n.ticketLinkStripe)}return(n,c)=>{var l,s,a,r,d,m,u,p;return e.openBlock(),e.createElementBlock("section",B,[e.createElementVNode("div",E,[t.content.cover&&!t.content.video?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.content.cover,class:"desktop-only object-fit-cover pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100"},null,8,w)):e.createCommentVNode("",!0),t.content.video?(e.openBlock(),e.createElementBlock("video",{key:1,style:{"object-fit":"cover"},ref_key:"videoElement",ref:o,class:"pos-absolute pos-t-0 pos-l-0 w-100 h-100",preload:"",autoplay:"",muted:"",loop:"",playsinlineclass:"",playsinline:"",itemprop:"video",type:"video/webm"},[e.createElementVNode("source",{src:t.content.video,type:k(t.content.video)},null,8,V)],512)):e.createCommentVNode("",!0)]),e.createElementVNode("div",N,[e.createElementVNode("div",z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.content.logos,y=>(e.openBlock(),e.createElementBlock("img",{class:"radius-thin object-fit-contain i-big",src:y},null,8,S))),256))]),e.createElementVNode("h3",C,e.toDisplayString((l=t.content)==null?void 0:l.subtitle),1),e.createElementVNode("h1",j,e.toDisplayString((s=t.content)==null?void 0:s.title),1),e.createElementVNode("p",D,e.toDisplayString((a=t.content)==null?void 0:a.description),1),e.createElementVNode("p",T,[e.createElementVNode("span",null,e.toDisplayString((r=t.content)==null?void 0:r.ticketText),1),(d=t.options)!=null&&d.price?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString((m=t.options)==null?void 0:m.price)+" "+e.toDisplayString(n.returnCurrency()),1)):e.createCommentVNode("",!0)]),t.options.date?(e.openBlock(),e.createBlock(g.default,{key:0,class:"z-index-1 mn-t-medium w-100 w-max-30r",date:t.options.date},null,8,["date"])):e.createCommentVNode("",!0),(u=t.content)!=null&&u.ticketLinkStripe?(e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("a",{href:"#",onClick:c[0]||(c[0]=y=>f()),class:"pd-l-medium pd-r-medium pd-t-small pd-b-small radius-extra uppercase t-medium t-black bg-white"},e.toDisplayString(((p=t.content)==null?void 0:p.ticketTextButton)||"Buy Ticket"),1)])):e.createCommentVNode("",!0),t.content.cover&&!t.content.video?(e.openBlock(),e.createElementBlock("img",{key:2,style:{"object-fit":"cover",opacity:"0.2"},src:t.content.cover,class:"mobile-only pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100"},null,8,L)):e.createCommentVNode("",!0),t.content.video?(e.openBlock(),e.createElementBlock("video",{key:3,style:{"object-fit":"cover",opacity:"0.2"},ref_key:"videoElement",ref:o,class:"mobile-only pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100",preload:"",autoplay:"",muted:"",loop:"",playsinlineclass:"",playsinline:"",src:t.content.video,itemprop:"video",type:"video/webm"},null,8,M)):e.createCommentVNode("",!0)])])}}},P=x.default(O,[["__scopeId","data-v-e01b64fa"]]);exports.default=P;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("vue-i18n");const g=require("../../../../components/Countdown/Countdown.vue.cjs");require("./HeroEvent.vue2.cjs");const x=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),B={class:"t-white t-center w-100 pos-relative gap-thin cols-2 pos-relative"},E={style:{"min-height":"20rem"},class:"desktop-only radius-big o-hidden bg-black pos-relative"},w=["src"],V=["src","type"],N={class:"content-hero-refactor radius-big o-hidden bg-black pd-big mn-r-auto mn-l-auto t-white flex-h-center flex-column o-hidden flex-v-start t-left flex w-100 h-100 gap-zero"},z={class:"mn-b-big z-index-1 flex-nowrap flex gap-small"},S=["src"],C={class:"pd-thin z-index-1 w-max br-solid br-2px br-white radius-extra mn-b-thin"},j={class:"z-index-1 t-main mn-b-semi"},D={class:"z-index-1 p-big mn-b-semi"},T={class:"z-index-1 t-transp p-small mn-b-thin"},q={key:0,class:"mn-l-micro bg-white t-black pd-t-nano pd-b-nano pd-r-micro pd-l-micro radius-extra"},H={key:1,class:"z-index-1 mn-t-medium mn-b-small flex-nowrap flex gap-thin"},L=["src"],M=["src"],O={__name:"HeroEvent",props:{content:{type:Object},options:{type:Object}},setup(t){const v=t,o=e.ref(null);var i=!1;function k(){o.value.onplaying=function(){i=!0},o.value.onpause=function(){i=!1}}function b(n){return n.endsWith(".mp4")?"video/mp4":n.endsWith(".webm")?"video/webm":""}async function h(){if(o.value.paused&&!i)return o.value.play()}e.onMounted(()=>{k(),h()});function f(){var n;gtag("event","buy_ticket",{event_category:"conversion",event_label:"Buy Ticket"}),window.open((n=v.content)==null?void 0:n.ticketLinkStripe)}return(n,c)=>{var l,s,a,r,d,m,u,p;return e.openBlock(),e.createElementBlock("section",B,[e.createElementVNode("div",E,[t.content.cover&&!t.content.video?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.content.cover,class:"desktop-only object-fit-cover pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100"},null,8,w)):e.createCommentVNode("",!0),t.content.video?(e.openBlock(),e.createElementBlock("video",{key:1,style:{"object-fit":"cover"},ref_key:"videoElement",ref:o,class:"pos-absolute pos-t-0 pos-l-0 w-100 h-100",preload:"",autoplay:"",muted:"",loop:"",playsinlineclass:"",playsinline:"",itemprop:"video",type:"video/webm"},[e.createElementVNode("source",{src:t.content.video,type:b(t.content.video)},null,8,V)],512)):e.createCommentVNode("",!0)]),e.createElementVNode("div",N,[e.createElementVNode("div",z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.content.logos,y=>(e.openBlock(),e.createElementBlock("img",{class:"radius-thin object-fit-contain i-big",src:y},null,8,S))),256))]),e.createElementVNode("h3",C,e.toDisplayString((l=t.content)==null?void 0:l.subtitle),1),e.createElementVNode("h1",j,e.toDisplayString((s=t.content)==null?void 0:s.title),1),e.createElementVNode("p",D,e.toDisplayString((a=t.content)==null?void 0:a.description),1),e.createElementVNode("p",T,[e.createElementVNode("span",null,e.toDisplayString((r=t.content)==null?void 0:r.ticketText),1),(d=t.options)!=null&&d.price?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString((m=t.options)==null?void 0:m.price)+" "+e.toDisplayString(n.returnCurrency()),1)):e.createCommentVNode("",!0)]),t.options.date?(e.openBlock(),e.createBlock(g.default,{key:0,class:"z-index-1 mn-t-medium w-100 w-max-30r",date:t.options.date},null,8,["date"])):e.createCommentVNode("",!0),(u=t.content)!=null&&u.ticketLinkStripe?(e.openBlock(),e.createElementBlock("div",H,[e.createElementVNode("a",{href:"#",onClick:c[0]||(c[0]=y=>f()),class:"pd-l-medium pd-r-medium pd-t-small pd-b-small radius-extra uppercase t-medium t-black bg-white"},e.toDisplayString(((p=t.content)==null?void 0:p.ticketTextButton)||"Buy Ticket"),1)])):e.createCommentVNode("",!0),t.content.cover&&!t.content.video?(e.openBlock(),e.createElementBlock("img",{key:2,style:{"object-fit":"cover",opacity:"0.2"},src:t.content.cover,class:"mobile-only pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100"},null,8,L)):e.createCommentVNode("",!0),t.content.video?(e.openBlock(),e.createElementBlock("video",{key:3,style:{"object-fit":"cover",opacity:"0.2"},ref_key:"videoElement",ref:o,class:"mobile-only pos-absolute z-index-0 pos-t-0 pos-l-0 w-100 h-100",preload:"",autoplay:"",muted:"",loop:"",playsinlineclass:"",playsinline:"",src:t.content.video,itemprop:"video",type:"video/webm"},null,8,M)):e.createCommentVNode("",!0)])])}}},P=x.default(O,[["__scopeId","data-v-ec952edd"]]);exports.default=P;
@@ -8,7 +8,7 @@ const S = { class: "t-white t-center w-100 pos-relative gap-thin cols-2 pos-rela
8
8
  class: "desktop-only radius-big o-hidden bg-black pos-relative"
9
9
  }, N = ["src"], O = ["src", "type"], P = { class: "content-hero-refactor radius-big o-hidden bg-black pd-big mn-r-auto mn-l-auto t-white flex-h-center flex-column o-hidden flex-v-start t-left flex w-100 h-100 gap-zero" }, W = { class: "mn-b-big z-index-1 flex-nowrap flex gap-small" }, $ = ["src"], A = { class: "pd-thin z-index-1 w-max br-solid br-2px br-white radius-extra mn-b-thin" }, D = { class: "z-index-1 t-main mn-b-semi" }, F = { class: "z-index-1 p-big mn-b-semi" }, I = { class: "z-index-1 t-transp p-small mn-b-thin" }, M = {
10
10
  key: 0,
11
- class: "bg-white t-black pd-t-nano pd-b-nano pd-r-micro pd-l-micro radius-extra"
11
+ class: "mn-l-micro bg-white t-black pd-t-nano pd-b-nano pd-r-micro pd-l-micro radius-extra"
12
12
  }, q = {
13
13
  key: 1,
14
14
  class: "z-index-1 mn-t-medium mn-b-small flex-nowrap flex gap-thin"
@@ -50,7 +50,7 @@ const S = { class: "t-white t-center w-100 pos-relative gap-thin cols-2 pos-rela
50
50
  }), window.open((i = k.content) == null ? void 0 : i.ticketLinkStripe);
51
51
  }
52
52
  return (i, d) => {
53
- var r, u, m, p, b, v, y, h;
53
+ var r, u, m, p, v, b, y, h;
54
54
  return t(), o("section", S, [
55
55
  n("div", H, [
56
56
  e.content.cover && !e.content.video ? (t(), o("img", {
@@ -91,7 +91,7 @@ const S = { class: "t-white t-center w-100 pos-relative gap-thin cols-2 pos-rela
91
91
  n("p", F, c((m = e.content) == null ? void 0 : m.description), 1),
92
92
  n("p", I, [
93
93
  n("span", null, c((p = e.content) == null ? void 0 : p.ticketText), 1),
94
- (b = e.options) != null && b.price ? (t(), o("span", M, c((v = e.options) == null ? void 0 : v.price) + " " + c(i.returnCurrency()), 1)) : s("", !0)
94
+ (v = e.options) != null && v.price ? (t(), o("span", M, c((b = e.options) == null ? void 0 : b.price) + " " + c(i.returnCurrency()), 1)) : s("", !0)
95
95
  ]),
96
96
  e.options.date ? (t(), V(C, {
97
97
  key: 0,
@@ -131,7 +131,7 @@ const S = { class: "t-white t-center w-100 pos-relative gap-thin cols-2 pos-rela
131
131
  ]);
132
132
  };
133
133
  }
134
- }, _ = /* @__PURE__ */ L(K, [["__scopeId", "data-v-e01b64fa"]]);
134
+ }, _ = /* @__PURE__ */ L(K, [["__scopeId", "data-v-ec952edd"]]);
135
135
  export {
136
136
  _ as default
137
137
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=require("../../../../components/Field/Field.vue2.cjs"),q=require("../../../../components/Button/Button.vue2.cjs"),M=require("../../../../components/Select/Select.vue2.cjs"),s=require("../../store/gallery.cjs"),P=require("../../../../components/EditImages/EditImages.vue.cjs");require("./BackofficeGallery.vue2.cjs");const j=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=i=>(e.pushScopeId("data-v-c506f5e5"),i=i(),e.popScopeId(),i),G={class:"pos-relative w-100"},D={class:"mn-b-semi flex-v-center flex-nowrap flex"},T=c(()=>e.createElementVNode("h1",{class:"mn-r-small"},"Manage Gallery",-1)),U=["data-id"],$=["src","onClick"],F={key:1,class:"radius-small bg-white"},O=["src","onClick"],L={class:"t-black p-small mn-b-thin"},A=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Size",-1)),H=c(()=>e.createElementVNode("br",null,null,-1)),R={class:"pd-2px radius-big d-inline-block bg-grey"},J={class:"t-black p-small mn-b-small uppe"},K=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Categories",-1)),Q=c(()=>e.createElementVNode("br",null,null,-1)),W={class:"pd-2px radius-big d-inline-block bg-grey t-semi"},X={class:"flex-nowrap flex"},Y=["onClick"],Z={class:"modal pd-thin"},ee={class:"modal-content radius-big"},te={class:""},le=["src"],oe={key:0,class:"flex-v-center flex m modal pd-big"},ae={class:"modal-content radius-small pd-medium bg-white"},se=["src"],ne=["src"],y=10,ce={__name:"BackofficeGallery",setup(i){const r=e.ref(!0),h=e.ref(null);let v=1,f=e.ref(null),_=e.ref(!1);const d=e.ref([]),E=o=>{d.value=o},w=e.computed(()=>k.value==="all"?s.state.gallery:s.state.gallery.filter(o=>o.categories.includes(k.value))),V=async()=>{_.value=!0,await s.actions.fetchGallery(v,y),_.value=!1},u=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),m=e.ref(null),g=o=>{console.log(r.value),r.value?N(o):(u.value="modal",t.value.image=o,b())},N=o=>{u.value="edit-modal",t.value=o||{categories:"",size:"",image:null},b()},n=()=>{t.value={categories:"",size:"",image:!1},m.value=null,B()},b=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},B=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},C=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],x=async o=>{await s.actions.deletePhoto(o)},S=async()=>{await s.actions.updatePhoto(t.value),n()},z=async o=>{if(d.length<1||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({images:d.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(a=>a.trim()):t.value.categories}),n()};let k=e.ref("all");return e.onMounted(async()=>{await s.actions.fetchGallery(v,y),typeof window<"u"&&new IntersectionObserver(a=>{a.some(l=>l.isIntersecting)&&(v+=1,V())}).observe(f.value)}),(o,a)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",D,[T,r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=l=>g(null)),class:"t-white t-black bg-second i-big radius-extra"},"+")):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:h,class:"cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(l,re)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[!r.value&&h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:p=>g(l.image)},null,8,$)):(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 radius-small mn-b-small h-10r object-fit-cover",onClick:p=>g(l)},null,8,O),e.createElementVNode("p",L,[A,H,e.createElementVNode("span",R,e.toDisplayString(l.size.name),1)]),e.createElementVNode("p",J,[K,Q,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.categories,p=>(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(p),1))),256))]),e.createElementVNode("div",X,[e.createElementVNode("button",{class:"button-small w-100 button",onClick:p=>x(l._id)},"Delete",8,Y)])]))]),_:2},1024)],8,U))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:f,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,le)])])],512),[[e.vShow,t.value.image!==!1&&u.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&u.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ae,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof m.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:m.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,se)):e.createCommentVNode("",!0),typeof m.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,ne)):e.createCommentVNode("",!0),e.createVNode(M.default,{options:C,label:"Size",select:t.value.size,"onUpdate:select":a[1]||(a[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(I.default,{field:t.value.categories,"onUpdate:field":a[2]||(a[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(P.default,{images:d.value,"onUpdate:images":E,uploadPath:"photos",class:"mn-b-semi"},null,8,["images"]),e.createVNode(q.default,{submit:t.value._id?S:z,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},ie=j.default(ce,[["__scopeId","data-v-c506f5e5"]]);exports.default=ie;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=require("../../../../components/Field/Field.vue.cjs"),q=require("../../../../components/Button/Button.vue.cjs"),M=require("../../../../components/Select/Select.vue2.cjs"),s=require("../../store/gallery.cjs"),P=require("../../../../components/EditImages/EditImages.vue.cjs");require("./BackofficeGallery.vue2.cjs");const j=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=i=>(e.pushScopeId("data-v-c506f5e5"),i=i(),e.popScopeId(),i),G={class:"pos-relative w-100"},D={class:"mn-b-semi flex-v-center flex-nowrap flex"},T=c(()=>e.createElementVNode("h1",{class:"mn-r-small"},"Manage Gallery",-1)),U=["data-id"],$=["src","onClick"],F={key:1,class:"radius-small bg-white"},O=["src","onClick"],L={class:"t-black p-small mn-b-thin"},A=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Size",-1)),H=c(()=>e.createElementVNode("br",null,null,-1)),R={class:"pd-2px radius-big d-inline-block bg-grey"},J={class:"t-black p-small mn-b-small uppe"},K=c(()=>e.createElementVNode("span",{class:"uppercase t-transp"},"Categories",-1)),Q=c(()=>e.createElementVNode("br",null,null,-1)),W={class:"pd-2px radius-big d-inline-block bg-grey t-semi"},X={class:"flex-nowrap flex"},Y=["onClick"],Z={class:"modal pd-thin"},ee={class:"modal-content radius-big"},te={class:""},le=["src"],oe={key:0,class:"flex-v-center flex m modal pd-big"},ae={class:"modal-content radius-small pd-medium bg-white"},se=["src"],ne=["src"],y=10,ce={__name:"BackofficeGallery",setup(i){const r=e.ref(!0),h=e.ref(null);let v=1,f=e.ref(null),_=e.ref(!1);const d=e.ref([]),E=o=>{d.value=o},w=e.computed(()=>k.value==="all"?s.state.gallery:s.state.gallery.filter(o=>o.categories.includes(k.value))),V=async()=>{_.value=!0,await s.actions.fetchGallery(v,y),_.value=!1},u=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),m=e.ref(null),g=o=>{console.log(r.value),r.value?N(o):(u.value="modal",t.value.image=o,b())},N=o=>{u.value="edit-modal",t.value=o||{categories:"",size:"",image:null},b()},n=()=>{t.value={categories:"",size:"",image:!1},m.value=null,B()},b=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},B=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},C=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],x=async o=>{await s.actions.deletePhoto(o)},S=async()=>{await s.actions.updatePhoto(t.value),n()},z=async o=>{if(d.length<1||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({images:d.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(a=>a.trim()):t.value.categories}),n()};let k=e.ref("all");return e.onMounted(async()=>{await s.actions.fetchGallery(v,y),typeof window<"u"&&new IntersectionObserver(a=>{a.some(l=>l.isIntersecting)&&(v+=1,V())}).observe(f.value)}),(o,a)=>(e.openBlock(),e.createElementBlock("div",G,[e.createElementVNode("div",D,[T,r.value?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a[0]||(a[0]=l=>g(null)),class:"t-white t-black bg-second i-big radius-extra"},"+")):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:h,class:"cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(l,re)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[!r.value&&h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-medium object-fit-cover",onClick:p=>g(l.image)},null,8,$)):(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 radius-small mn-b-small h-10r object-fit-cover",onClick:p=>g(l)},null,8,O),e.createElementVNode("p",L,[A,H,e.createElementVNode("span",R,e.toDisplayString(l.size.name),1)]),e.createElementVNode("p",J,[K,Q,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.categories,p=>(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(p),1))),256))]),e.createElementVNode("div",X,[e.createElementVNode("button",{class:"button-small w-100 button",onClick:p=>x(l._id)},"Delete",8,Y)])]))]),_:2},1024)],8,U))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:f,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Z,[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,le)])])],512),[[e.vShow,t.value.image!==!1&&u.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&u.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("div",ae,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof m.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:m.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,se)):e.createCommentVNode("",!0),typeof m.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,ne)):e.createCommentVNode("",!0),e.createVNode(M.default,{options:C,label:"Size",select:t.value.size,"onUpdate:select":a[1]||(a[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(I.default,{field:t.value.categories,"onUpdate:field":a[2]||(a[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(P.default,{images:d.value,"onUpdate:images":E,uploadPath:"photos",class:"mn-b-semi"},null,8,["images"]),e.createVNode(q.default,{submit:t.value._id?S:z,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},ie=j.default(ce,[["__scopeId","data-v-c506f5e5"]]);exports.default=ie;
@@ -1,6 +1,6 @@
1
1
  import { ref as n, computed as q, onMounted as A, openBlock as a, createElementBlock as o, createElementVNode as t, createCommentVNode as f, Fragment as E, renderList as M, createVNode as c, Transition as w, withCtx as b, toDisplayString as x, withDirectives as L, vShow as R, createTextVNode as H, pushScopeId as J, popScopeId as K } from "vue";
2
- import Q from "../../../../components/Field/Field.vue2.js";
3
- import W from "../../../../components/Button/Button.vue2.js";
2
+ import Q from "../../../../components/Field/Field.vue.js";
3
+ import W from "../../../../components/Button/Button.vue.js";
4
4
  import X from "../../../../components/Select/Select.vue2.js";
5
5
  import { state as G, actions as d } from "../../store/gallery.js";
6
6
  import Y from "../../../../components/EditImages/EditImages.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),z=require("../../../../components/Field/Field.vue2.cjs"),S=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Select/Select.vue2.cjs"),M=require("../../../../components/Upload/Upload.vue.cjs"),s=require("../../store/gallery.cjs");require("./GalleryWithCategories.vue2.cjs");const F=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={class:"pd-medium flex-v-center gap-big flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},P=["onClick"],j=["data-id"],G=["src","onClick"],R={class:"modal pd-thin"},T={class:"modal-content radius-big"},U={class:""},D=["src"],L={key:0,class:"flex-v-center flex m modal pd-big"},O={class:"modal-content radius-small pd-medium bg-white"},$=["src"],A=["src"],W=!1,f=10,H={__name:"GalleryWithCategories",setup(K){x.useRoute();const m=e.ref(null),h=["all","place","drinks","people","events"];let d=1,v=e.ref(null),g=e.ref(!1);const _=e.computed(()=>r.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(r.value))),b=async()=>{g.value=!0,await s.actions.fetchGallery(d,f),g.value=!1},c=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),i=e.ref(null),k=a=>{W.value?y(a):(c.value="modal",t.value.image=a,p())},y=a=>{c.value="edit-modal",t.value=a||{categories:"",size:"",image:null},p()},n=()=>{t.value={categories:"",size:"",image:!1},i.value=null,w()},p=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},w=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},V=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],C=async()=>{await s.actions.updatePhoto(t.value),n()},E=a=>{const o=a.files;if(t.value.image=o,o&&o.length>0){const l=new FileReader;l.onload=u=>{i.value=u.target.result},l.readAsDataURL(o[0])}},N=async a=>{if(!t.value.image||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({...t.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(o=>o.trim()):t.value.categories}),n()};let r=e.ref("all");const B=a=>{r.value=a};return e.onMounted(async()=>{await s.actions.fetchGallery(d,f),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(d+=1,b())}).observe(v.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",I,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,l=>e.createElementVNode("a",{key:l,onClick:u=>B(l),class:e.normalizeClass(["h3 uppercase",{"t-transp":e.unref(r)!==l,"pd-thin bg-main radius-small":e.unref(r)===l}])},e.toDisplayString(a.$t("gallery.categories."+l)),11,P)),64)),e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:m,class:"pd-medium cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,u)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-big object-fit-cover",onClick:Q=>k(l.image)},null,8,G)):e.createCommentVNode("",!0)]),_:2},1024)],8,j))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:v,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",R,[e.createElementVNode("div",T,[e.createElementVNode("div",U,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,D)])])],512),[[e.vShow,t.value.image!==!1&&c.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&c.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",O,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof i.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,$)):e.createCommentVNode("",!0),typeof i.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,A)):e.createCommentVNode("",!0),t.value._id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:2,id:"photo",name:"photo",type:"file",class:"t-black bg-grey pd-thin radius-small mn-b-thin",onFileChange:E,multiple:"true"})),e.createVNode(q.default,{options:V,label:"Size",select:t.value.size,"onUpdate:select":o[1]||(o[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(z.default,{field:t.value.categories,"onUpdate:field":o[2]||(o[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(S.default,{submit:t.value._id?C:N,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},J=F.default(H,[["__scopeId","data-v-4c5bced8"]]);exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),x=require("vue-router"),z=require("../../../../components/Field/Field.vue.cjs"),S=require("../../../../components/Button/Button.vue.cjs"),q=require("../../../../components/Select/Select.vue2.cjs"),M=require("../../../../components/Upload/Upload.vue.cjs"),s=require("../../store/gallery.cjs");require("./GalleryWithCategories.vue2.cjs");const F=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),I={class:"pd-medium flex-v-center gap-big flex-nowrap flex pd-t-thin pd-b-thin o-scroll"},P=["onClick"],j=["data-id"],G=["src","onClick"],R={class:"modal pd-thin"},T={class:"modal-content radius-big"},U={class:""},D=["src"],L={key:0,class:"flex-v-center flex m modal pd-big"},O={class:"modal-content radius-small pd-medium bg-white"},$=["src"],A=["src"],W=!1,f=10,H={__name:"GalleryWithCategories",setup(K){x.useRoute();const m=e.ref(null),h=["all","place","drinks","people","events"];let d=1,v=e.ref(null),g=e.ref(!1);const _=e.computed(()=>r.value==="all"?s.state.gallery:s.state.gallery.filter(a=>a.categories.includes(r.value))),b=async()=>{g.value=!0,await s.actions.fetchGallery(d,f),g.value=!1},c=e.ref(null),t=e.ref({categories:"",size:"",image:!1}),i=e.ref(null),k=a=>{W.value?y(a):(c.value="modal",t.value.image=a,p())},y=a=>{c.value="edit-modal",t.value=a||{categories:"",size:"",image:null},p()},n=()=>{t.value={categories:"",size:"",image:!1},i.value=null,w()},p=()=>{document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"},w=()=>{document.body.style.overflow="",document.documentElement.style.overflow=""},V=[{name:"Small",value:""},{name:"Regular",value:"grid-item--width1 grid-item--height1"},{name:"Medium",value:"grid-item--width2 grid-item--height2"},{name:"Big",value:"grid-item--width3 grid-item--height3"}],C=async()=>{await s.actions.updatePhoto(t.value),n()},E=a=>{const o=a.files;if(t.value.image=o,o&&o.length>0){const l=new FileReader;l.onload=u=>{i.value=u.target.result},l.readAsDataURL(o[0])}},N=async a=>{if(!t.value.image||!t.value.categories||!t.value.size){console.error("All fields are required.");return}await s.actions.createPhoto({...t.value,size:t.value.size,categories:typeof t.value.categories=="string"?t.value.categories.split(",").map(o=>o.trim()):t.value.categories}),n()};let r=e.ref("all");const B=a=>{r.value=a};return e.onMounted(async()=>{await s.actions.fetchGallery(d,f),typeof window<"u"&&new IntersectionObserver(o=>{o.some(l=>l.isIntersecting)&&(d+=1,b())}).observe(v.value)}),(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",I,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,l=>e.createElementVNode("a",{key:l,onClick:u=>B(l),class:e.normalizeClass(["h3 uppercase",{"t-transp":e.unref(r)!==l,"pd-thin bg-main radius-small":e.unref(r)===l}])},e.toDisplayString(a.$t("gallery.categories."+l)),11,P)),64)),e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"grid",ref:m,class:"pd-medium cols-4 gap-thin"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(l,u)=>(e.openBlock(),e.createElementBlock("div",{key:l.id,"data-id":l.id},[e.createVNode(e.Transition,{name:"scaleIn",mode:"in-out"},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://thecommunephuket.com/photos/"+l.cover,class:"w-100 h-100 o-hidden radius-big object-fit-cover",onClick:Q=>k(l.image)},null,8,G)):e.createCommentVNode("",!0)]),_:2},1024)],8,j))),128)),e.createElementVNode("div",{ref_key:"sentinel",ref:v,class:"sentinel"},null,512),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",R,[e.createElementVNode("div",T,[e.createElementVNode("div",U,[e.createElementVNode("span",{class:"close",onClick:n},"×"),e.createElementVNode("img",{src:"https://thecommunephuket.com/photos/"+t.value.image},null,8,D)])])],512),[[e.vShow,t.value.image!==!1&&c.value==="modal"]])]),_:1}),e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.value.image!==!1&&c.value==="edit-modal"?(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",O,[e.createElementVNode("span",{class:"close",onClick:n},"×"),typeof i.value=="string"?(e.openBlock(),e.createElementBlock("img",{key:0,src:i.value,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,$)):e.createCommentVNode("",!0),typeof i.value=="object"&&t.value.image!==null?(e.openBlock(),e.createElementBlock("img",{key:1,class:"radius-small w-100 mn-b-small h-20r object-fit-cover",src:"/photos/"+t.value.cover},null,8,A)):e.createCommentVNode("",!0),t.value._id?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:2,id:"photo",name:"photo",type:"file",class:"t-black bg-grey pd-thin radius-small mn-b-thin",onFileChange:E,multiple:"true"})),e.createVNode(q.default,{options:V,label:"Size",select:t.value.size,"onUpdate:select":o[1]||(o[1]=l=>t.value.size=l),placeholder:"Select Size",class:"bg-grey pd-thin radius-small mn-b-thin t-black"},null,8,["select"]),e.createVNode(z.default,{field:t.value.categories,"onUpdate:field":o[2]||(o[2]=l=>t.value.categories=l),type:"text",label:"Categories",placeholder:"Enter categories for image (comma separated)",class:"bg-grey pd-thin radius-small mn-b-medium t-black"},null,8,["field"]),e.createVNode(S.default,{submit:t.value._id?C:N,callback:n,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value._id?"Update":"Create"),1)]),_:1},8,["submit"])])])):e.createCommentVNode("",!0)]),_:1})],512)]))}},J=F.default(H,[["__scopeId","data-v-4c5bced8"]]);exports.default=J;
@@ -1,7 +1,7 @@
1
1
  import { ref as n, computed as D, onMounted as A, openBlock as o, createElementBlock as i, createElementVNode as s, Fragment as C, renderList as z, normalizeClass as L, unref as x, toDisplayString as S, createCommentVNode as r, createVNode as c, Transition as _, withCtx as p, withDirectives as O, vShow as T, createBlock as W, createTextVNode as q } from "vue";
2
2
  import { useRoute as H } from "vue-router";
3
- import J from "../../../../components/Field/Field.vue2.js";
4
- import K from "../../../../components/Button/Button.vue2.js";
3
+ import J from "../../../../components/Field/Field.vue.js";
4
+ import K from "../../../../components/Button/Button.vue.js";
5
5
  import Q from "../../../../components/Select/Select.vue2.js";
6
6
  import X from "../../../../components/Upload/Upload.vue.js";
7
7
  import { state as E, actions as g } from "../../store/gallery.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../icons/navigation/IconSearch.vue.cjs"),u=require("../../../../components/Field/Field.vue2.cjs"),d={class:"flex-v-center flex-nowrap flex pd-small bg-grey w-100 radius-big"},i={__name:"BlockSearch",props:{placeholder:{type:String,default:"Enter shop or product name"},button:{type:String,default:"Search"}},emits:["search"],setup(l,{emit:a}){const c=a;e.ref(null);const o=t=>{c("search",t)};return(t,r)=>(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(s.default,{class:"i-medium t-transp mn-r-thin"}),e.createVNode(u.default,{placeholder:l.placeholder,"onUpdate:field":r[0]||(r[0]=n=>o(n)),class:"w-100"},null,8,["placeholder"])]))}};exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../../../icons/navigation/IconSearch.vue.cjs"),u=require("../../../../components/Field/Field.vue.cjs"),d={class:"flex-v-center flex-nowrap flex pd-small bg-grey w-100 radius-big"},i={__name:"BlockSearch",props:{placeholder:{type:String,default:"Enter shop or product name"},button:{type:String,default:"Search"}},emits:["search"],setup(l,{emit:a}){const c=a;e.ref(null);const o=t=>{c("search",t)};return(t,r)=>(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(s.default,{class:"i-medium t-transp mn-r-thin"}),e.createVNode(u.default,{placeholder:l.placeholder,"onUpdate:field":r[0]||(r[0]=n=>o(n)),class:"w-100"},null,8,["placeholder"])]))}};exports.default=i;
@@ -1,6 +1,6 @@
1
1
  import { ref as s, openBlock as p, createElementBlock as i, createVNode as r } from "vue";
2
2
  import d from "../../../icons/navigation/IconSearch.vue.js";
3
- import m from "../../../../components/Field/Field.vue2.js";
3
+ import m from "../../../../components/Field/Field.vue.js";
4
4
  const f = { class: "flex-v-center flex-nowrap flex pd-small bg-grey w-100 radius-big" }, g = {
5
5
  __name: "BlockSearch",
6
6
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),B=require("vue-router"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),V=require("../../../reports/components/sections/FormReport.vue.cjs"),x=require("../../../../components/Tooltip/Tooltip.vue2.cjs"),C=require("../../../../components/Dropdown/Dropdown.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");const N=require("../../../icons/navigation/IconEllipsis.vue.cjs"),p={key:0,class:"pd-b-zero"},v={class:"w-100 flex-v-center flex-nojustify flex"},$={class:"w-100 flex-nowrap flex-v-center flex"},M=["src"],R={key:2,class:"t-semi"},q={key:1,class:"pos-relative"},D={key:2},S={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},z={key:0,class:"w-4r i-thin"},P={style:{position:"absolute",top:"0px",right:"0px"},class:"br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"},F=["src"],U={class:"bg-black pd-thin radius-small"},T=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),L={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){B.useRouter();function b(o){const r=new Date,d=new Date(o),u=Math.abs(r-d),m=Math.floor(u/1e3),n=Math.floor(m/60),a=Math.floor(n/60),i=Math.floor(a/24),l=Math.floor(i/7);return l>0?`${l} week${l>1?"s":""} ago`:i>0?`${i} day${i>1?"s":""} ago`:a>0?`${a} hour${a>1?"s":""} ago`:n>0?`${n} minute${n>1?"s":""} ago`:"Just now"}return(o,r)=>{var d,u,m,n,a,i,l,h,f,k,g,y,w;return t.owner?(e.openBlock(),e.createElementBlock("header",p,[e.createElementVNode("div",v,[e.createElementVNode("div",$,[((m=(u=(d=t.owner.target)==null?void 0:d.profile)==null?void 0:u.photo)==null?void 0:m.length)>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,M)):e.createCommentVNode("",!0),!((a=(n=t.owner.target)==null?void 0:n.profile)!=null&&a.photo)&&t.type!=="short"?(e.openBlock(),e.createBlock(E.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",R,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString((l=(i=t.owner.target)==null?void 0:i.profile)==null?void 0:l.name),1),!t.creator.hidden&&((f=(h=t.owner.target)==null?void 0:h.profile)==null?void 0:f.name)!==((g=(k=t.creator.target)==null?void 0:k.profile)==null?void 0:g.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(c=>{var s;return o.$router.push({name:"User Profile",params:{_id:(s=t.creator.target)==null?void 0:s._id}})},["stop"]))}," · by "+e.toDisplayString((w=(y=t.creator.target)==null?void 0:y.profile)==null?void 0:w.name),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",q,[t.date?(e.openBlock(),e.createBlock(x.default,{key:0,text:o.formatDate(t.date)},{default:e.withCtx(()=>[e.createTextVNode(" · "+e.toDisplayString(b(t.date)),1)]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",D," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",S,[t.members?(e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("span",P,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(c,s)=>(e.openBlock(),e.createElementBlock("img",{key:s,src:(o.FILE_SERVER_URL||"")+c,style:e.normalizeStyle({position:"absolute",top:"0px",right:s*20+20+"%",zIndex:1-s}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,12,F))),128))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user&&t.user!=t.creator.target._id?(e.openBlock(),e.createBlock(C.default,{key:3,label:{component:N.default,class:"t-transp i-regular"},align:"right",class:"cursor-pointer z-index-2"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(V.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[T]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=L;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),B=require("vue-router"),E=require("../../../icons/placeholders/PlaceholderUserpic.vue.cjs"),V=require("../../../reports/components/sections/FormReport.vue.cjs"),x=require("../../../../components/Tooltip/Tooltip.vue2.cjs"),C=require("../../../../components/Dropdown/Dropdown.vue.cjs");require("../../../../components/Button/Button.vue2.cjs");require("../../../auth/store/auth.cjs");require("../../../organizations/store/memberships.cjs");const N=require("../../../icons/navigation/IconEllipsis.vue.cjs"),p={key:0,class:"pd-b-zero"},v={class:"w-100 flex-v-center flex-nojustify flex"},$={class:"w-100 flex-nowrap flex-v-center flex"},M=["src"],R={key:2,class:"t-semi"},q={key:1,class:"pos-relative"},D={key:2},S={class:"d-block mn-l-auto flex-nowrap flex flex-v-center"},z={key:0,class:"w-4r i-thin"},P={style:{position:"absolute",top:"0px",right:"0px"},class:"br-solid br-2px br-white z-index-1 radius-big i-thin bg-second flex flex-center t-white p-small t-semi"},F=["src"],U={class:"bg-black pd-thin radius-small"},T=e.createElementVNode("button",{class:"w-100 bg-black br-solid br-1px br-white-transp-20 t-white button-small button"}," Report ",-1),L={__name:"CardHeader",props:["user","entity","entityType","date","dateFormatted","owner","creator","members","membersPhotos","type"],setup(t){B.useRouter();function b(o){const r=new Date,d=new Date(o),u=Math.abs(r-d),m=Math.floor(u/1e3),n=Math.floor(m/60),a=Math.floor(n/60),i=Math.floor(a/24),l=Math.floor(i/7);return l>0?`${l} week${l>1?"s":""} ago`:i>0?`${i} day${i>1?"s":""} ago`:a>0?`${a} hour${a>1?"s":""} ago`:n>0?`${n} minute${n>1?"s":""} ago`:"Just now"}return(o,r)=>{var d,u,m,n,a,i,l,h,f,k,g,y,w;return t.owner?(e.openBlock(),e.createElementBlock("header",p,[e.createElementVNode("div",v,[e.createElementVNode("div",$,[((m=(u=(d=t.owner.target)==null?void 0:d.profile)==null?void 0:u.photo)==null?void 0:m.length)>0&&t.type!=="short"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.owner.target.profile.photo,class:"radius-medium object-fit-cover mn-r-thin i-thin",onClick:r[0]||(r[0]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},null,8,M)):e.createCommentVNode("",!0),!((a=(n=t.owner.target)==null?void 0:n.profile)!=null&&a.photo)&&t.type!=="short"?(e.openBlock(),e.createBlock(E.default,{key:1,class:"radius-medium mn-r-thin i-thin",onClick:r[1]||(r[1]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))})):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",R,[e.createElementVNode("span",{onClick:r[2]||(r[2]=e.withModifiers(c=>o.$router.push({name:t.owner.type==="user"?"User Profile":"Organization",params:{_id:t.owner.target._id}}),["stop"]))},e.toDisplayString((l=(i=t.owner.target)==null?void 0:i.profile)==null?void 0:l.name),1),!t.creator.hidden&&((f=(h=t.owner.target)==null?void 0:h.profile)==null?void 0:f.name)!==((g=(k=t.creator.target)==null?void 0:k.profile)==null?void 0:g.name)?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:r[3]||(r[3]=e.withModifiers(c=>{var s;return o.$router.push({name:"User Profile",params:{_id:(s=t.creator.target)==null?void 0:s._id}})},["stop"]))}," · by "+e.toDisplayString((w=(y=t.creator.target)==null?void 0:y.profile)==null?void 0:w.name),1)):e.createCommentVNode("",!0),t.date?(e.openBlock(),e.createElementBlock("span",q,[t.date?(e.openBlock(),e.createBlock(x.default,{key:0,text:o.formatDate(t.date)},{default:e.withCtx(()=>[e.createTextVNode(" · "+e.toDisplayString(b(t.date)),1)]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.dateFormatted?(e.openBlock(),e.createElementBlock("span",D," · "+e.toDisplayString(t.dateFormatted),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",S,[t.members?(e.openBlock(),e.createElementBlock("div",z,[e.createElementVNode("span",P,e.toDisplayString(t.members),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.membersPhotos.slice(0,2),(c,s)=>(e.openBlock(),e.createElementBlock("img",{key:s,src:(o.FILE_SERVER_URL||"")+c,style:e.normalizeStyle({position:"absolute",top:"0px",right:s*20+20+"%",zIndex:1-s}),class:"br-solid br-2px br-white i-thin bg-grey radius-big"},null,12,F))),128))])):e.createCommentVNode("",!0)]),t.type!=="short"&&t.user&&t.user!=t.creator.target._id?(e.openBlock(),e.createBlock(C.default,{key:3,label:{component:N.default,class:"t-transp i-regular"},align:"right",class:"cursor-pointer z-index-2"},{default:e.withCtx(()=>[e.createElementVNode("section",U,[t.user!==t.creator.target._id?(e.openBlock(),e.createBlock(V.default,{key:0,user:t.user,type:t.entityType,target:t.entity._id,text:"Report",class:"w-100"},{default:e.withCtx(()=>[T]),_:1},8,["user","type","target"])):e.createCommentVNode("",!0)])]),_:1},8,["label"])):e.createCommentVNode("",!0)])])])):e.createCommentVNode("",!0)}}};exports.default=L;
@@ -4,7 +4,7 @@ import F from "../../../icons/placeholders/PlaceholderUserpic.vue.js";
4
4
  import L from "../../../reports/components/sections/FormReport.vue.js";
5
5
  import T from "../../../../components/Tooltip/Tooltip.vue2.js";
6
6
  import V from "../../../../components/Dropdown/Dropdown.vue.js";
7
- import "../../../../components/Button/Button.vue.js";
7
+ import "../../../../components/Button/Button.vue2.js";
8
8
  import "../../../auth/store/auth.js";
9
9
  import "../../../organizations/store/memberships.js";
10
10
  import S from "../../../icons/navigation/IconEllipsis.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../../components/Tab/Tab.vue2.cjs"),i={class:"br-b br-solid br-black-transp-10 pd-medium flex-v-center flex-nowrap flex"},u={class:"mn-r-auto"},d={__name:"SectionPageTitle",props:{title:String,actions:Array,tabs:Array,tabs_current:Object},emits:["update:tabs_current"],setup(t,{emit:n}){const s=n,o=a=>{s("update:tabs_current",a)};return(a,m)=>{const c=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("header",i,[e.createElementVNode("h1",u,e.toDisplayString(t.title),1),t.actions&&t.actions.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.actions,r=>(e.openBlock(),e.createBlock(c,{key:r.to,to:r.to,class:e.normalizeClass(r.class||"radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["to","class"]))),128)):e.createCommentVNode("",!0)]),t.tabs?(e.openBlock(),e.createBlock(l.default,{key:0,selected:t.tabs_current,"onUpdate:selected":o,tabs:t.tabs,class:"w-100 t-nowrap o-scroll h5"},null,8,["selected","tabs"])):e.createCommentVNode("",!0)])}}};exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../../components/Tab/Tab.vue.cjs"),i={class:"br-b br-solid br-black-transp-10 pd-medium flex-v-center flex-nowrap flex"},u={class:"mn-r-auto"},d={__name:"SectionPageTitle",props:{title:String,actions:Array,tabs:Array,tabs_current:Object},emits:["update:tabs_current"],setup(t,{emit:n}){const s=n,o=a=>{s("update:tabs_current",a)};return(a,m)=>{const c=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("header",i,[e.createElementVNode("h1",u,e.toDisplayString(t.title),1),t.actions&&t.actions.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.actions,r=>(e.openBlock(),e.createBlock(c,{key:r.to,to:r.to,class:e.normalizeClass(r.class||"radius-extra pd-thin uppercase t-medium hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["to","class"]))),128)):e.createCommentVNode("",!0)]),t.tabs?(e.openBlock(),e.createBlock(l.default,{key:0,selected:t.tabs_current,"onUpdate:selected":o,tabs:t.tabs,class:"w-100 t-nowrap o-scroll h5"},null,8,["selected","tabs"])):e.createCommentVNode("",!0)])}}};exports.default=d;
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as b, openBlock as r, createElementBlock as s, createElementVNode as n, toDisplayString as c, Fragment as f, renderList as h, createBlock as o, normalizeClass as p, withCtx as x, createTextVNode as k, createCommentVNode as l } from "vue";
2
- import _ from "../../../../components/Tab/Tab.vue2.js";
2
+ import _ from "../../../../components/Tab/Tab.vue.js";
3
3
  const g = { class: "br-b br-solid br-black-transp-10 pd-medium flex-v-center flex-nowrap flex" }, y = { class: "mn-r-auto" }, B = {
4
4
  __name: "SectionPageTitle",
5
5
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue2.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Button/Button.vue2.cjs");const a=require("../../../mobile/components/Menu/Menu.vue2.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;