@ozdao/prometheus-framework 0.2.71 → 0.2.74

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. package/dist/auth.server.js +8 -21
  2. package/dist/auth.server.mjs +8 -21
  3. package/dist/community.server.js +1 -1
  4. package/dist/community.server.mjs +1 -1
  5. package/dist/events.server.js +306 -48
  6. package/dist/events.server.mjs +306 -48
  7. package/dist/files.server.js +9 -9
  8. package/dist/files.server.mjs +9 -9
  9. package/dist/gallery.server.js +2 -2
  10. package/dist/gallery.server.mjs +2 -2
  11. package/dist/globals.server.js +1 -1
  12. package/dist/globals.server.mjs +1 -1
  13. package/dist/mailing-BX0q8DIs.js +77 -0
  14. package/dist/mailing-Cdp8NXhP.mjs +78 -0
  15. package/dist/main-C0wbYN41.mjs +13744 -0
  16. package/dist/main-vACUb_p5.js +91 -0
  17. package/dist/main.css +1 -1
  18. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -0
  19. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +3174 -0
  20. package/dist/organizations.server.js +1 -1
  21. package/dist/organizations.server.mjs +1 -1
  22. package/dist/ownership.schema-BQmRnCsc.mjs +184 -0
  23. package/dist/ownership.schema-D13NqEgo.js +183 -0
  24. package/dist/products.server.js +1 -1
  25. package/dist/products.server.mjs +1 -1
  26. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
  28. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -1
  30. package/dist/prometheus-framework/src/components/Completion/Completion.vue.cjs +1 -0
  31. package/dist/prometheus-framework/src/components/Completion/Completion.vue.js +53 -0
  32. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +56 -57
  34. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
  36. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
  38. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  40. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +373 -1
  42. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
  44. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +51 -1
  46. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +1 -51
  48. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  50. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  52. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +36 -1
  54. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  55. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +1 -36
  56. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -46
  58. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  59. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +36 -1
  60. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  64. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  68. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +19 -20
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  72. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  74. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  76. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  78. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +3 -3
  80. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  84. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  86. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  90. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  93. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
  94. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  95. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  96. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -0
  99. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +81 -0
  100. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue2.cjs +1 -0
  101. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue2.js +1 -0
  102. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  104. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  106. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +127 -83
  108. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  110. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
  112. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/events/router/events.js +8 -5
  118. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/events/store/tickets.js +24 -24
  120. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  122. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  124. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.js +21 -14
  130. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  132. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  134. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  136. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -0
  137. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +205 -0
  138. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.cjs +1 -0
  139. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.js +1 -0
  140. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +157 -72
  142. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -0
  143. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +65 -0
  144. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -0
  145. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +79 -0
  146. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -0
  147. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +34 -0
  148. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/orders/store/orders.js +27 -22
  150. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
  152. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  154. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  158. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  160. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
  162. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  164. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  166. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  168. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  170. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  172. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  174. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  176. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  182. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  188. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  190. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  194. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  196. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  198. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  200. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  202. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  204. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  206. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  208. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  210. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +24 -20
  212. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  214. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  216. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  218. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +39 -27
  220. package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue.cjs +1 -0
  221. package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue.js +57 -0
  222. package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue2.cjs +1 -0
  223. package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue2.js +1 -0
  224. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  225. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +1 -1
  226. package/dist/prometheus-framework.cjs.js +1 -1
  227. package/dist/prometheus-framework.es.js +1 -1
  228. package/dist/style.css +1 -1
  229. package/dist/users.server.js +5 -5
  230. package/dist/users.server.mjs +5 -5
  231. package/dist/web-BJSg7vH_.js +1 -0
  232. package/dist/web-DOXRo6XB.mjs +54 -0
  233. package/package.json +1 -1
  234. package/src/modules/events/components/pages/EditEventTickets.vue +11 -6
  235. package/src/modules/users/users.server.js +0 -1
@@ -1,11 +1,13 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
2
2
  import require$$0 from "mongoose";
3
- import { q as queryProcessor$2, o as ownership_schema } from "./ownership.schema-DtT2IgqC.mjs";
3
+ import { q as queryProcessor$2, o as ownership_schema } from "./ownership.schema-BQmRnCsc.mjs";
4
4
  import { s as server$1 } from "./index-CGIn4v5E.mjs";
5
- import require$$0$1 from "qrcode";
6
- import require$$1 from "jimp";
7
- import require$$2 from "path";
8
- import { m as mailing } from "./mailing-DT2ZSkCD.mjs";
5
+ import "fs";
6
+ import require$$0$2 from "path";
7
+ import require$$2 from "puppeteer";
8
+ import require$$3 from "qrcode";
9
+ import require$$0$1 from "mustache";
10
+ import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
9
11
  import { c as common_schema, e as engagement_schema, m as metadata_schema } from "./metadata.schema-BLGSCSmy.mjs";
10
12
  const ObjectId = require$$0.Types.ObjectId;
11
13
  function getDateConditions(date) {
@@ -428,55 +430,285 @@ var events_routes = function(app, db, origins) {
428
430
  );
429
431
  };
430
432
  const events_routes$1 = /* @__PURE__ */ getDefaultExportFromCjs(events_routes);
431
- const QRCode = require$$0$1;
432
- const Jimp = require$$1;
433
- const path = require$$2;
433
+ const Mustache$1 = require$$0$1;
434
+ const template$1 = `
435
+ <!DOCTYPE html>
436
+ <html lang="en">
437
+ <head>
438
+ <meta charset="UTF-8">
439
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
440
+ <style>
441
+ @media print {
442
+ body {-webkit-print-color-adjust: exact;}
443
+ }
444
+
445
+ body {
446
+ padding: 10%;
447
+ font-family: 'DIN Condensed';
448
+ }
449
+ .ticket {
450
+ display: grid;
451
+ grid-template-columns: 100% 143px;
452
+ background: #f5f5f5;
453
+ border-radius: 48px;
454
+ cursor: default;
455
+ }
456
+ .ticket__main {
457
+ display: grid;
458
+ grid-template-columns: repeat(6, 1fr) 120px;
459
+ grid-template-rows: repeat(4, min-content) auto;
460
+ padding: 20px;
461
+ }
462
+ .header {
463
+ grid-area: title;
464
+ grid-column: span 7;
465
+ grid-row: 1;
466
+ display: flex;
467
+ align-items: center;
468
+ justify-content: center;
469
+ padding: 15px 20px 15px 20px;
470
+ width: 100%;
471
+ box-sizing: border-box;
472
+ background: #111;
473
+ border-radius: 24px 24px 0 0;
474
+ }
475
+ .header svg {
476
+ width: auto;
477
+ height: 48px;
478
+ margin-right: 8px;
479
+ }
480
+ .header p {
481
+ color: white;
482
+ border-radius: 48px;
483
+ padding: 5px 10px 5px 10px;
484
+ margin-left: auto;
485
+ line-height: 1;
486
+ font-weight: 400;
487
+ font-family: 'Helvetica Neue';
488
+ font-size: 10px;
489
+ text-transform: uppercase;
490
+ }
491
+ .header div {
492
+ color: white;
493
+ border-radius: 48px;
494
+ padding: 5px 10px 5px 10px;
495
+ margin-left: 0px;
496
+ line-height: 1;
497
+ text-transform: uppercase;
498
+ background: #E31C25;
499
+ }
500
+ .header span {
501
+ display: block;
502
+ margin-top: 2px;
503
+ }
504
+ .info {
505
+ border: 1px solid;
506
+ border-width: 0 1px 1px 0;
507
+ border-color: rgba(0,0,0,0.1);
508
+ padding: 8px;
509
+ }
510
+ .info__item {
511
+ font-size: 9px;
512
+ margin-top: 4px;
513
+ text-transform: uppercase;
514
+ letter-spacing: 0.5px;
515
+ font-family: 'Helvetica Neue';
516
+ }
517
+ .info__detail {
518
+ font: 700 20px/1;
519
+ letter-spacing: 1px;
520
+ font-weight: 600;
521
+ text-transform: uppercase;
522
+ margin-top: 4px;
523
+ color: #e31c25;
524
+ }
525
+ .passenger {
526
+ grid-column: 1 / span 6;
527
+ }
528
+ .platform {
529
+ grid-column: 7 / span 1;
530
+ grid-row: 2 / span 3;
531
+ background: #e31c25;
532
+ color: #fff;
533
+ border-color: rgba(0,0,0,0.1);
534
+ text-align: center;
535
+ padding: 10px;
536
+ border-radius: 0 0 24px 0;
537
+ font-size: 24px;
538
+ line-height: 1;
539
+ }
540
+ .platform img {
541
+ width: 100%;
542
+ padding: 10%;
543
+ box-sizing: border-box;
544
+ }
545
+ .departure, .arrival {
546
+ grid-column-start: span 3;
547
+ }
548
+ .passenger, .departure, .date {
549
+ border-left: 1px solid;
550
+ border-color: rgba(0,0,0,0.1);
551
+ }
552
+ .date, .time {
553
+ grid-column-start: span 3;
554
+ }
555
+ .date {
556
+ border-radius: 0 0 0 24px;
557
+ }
558
+ </style>
559
+ </head>
560
+ <body>
561
+ <div class="main-content">
562
+ <div class="ticket">
563
+ <div class="ticket__main">
564
+ <div class="header">
565
+ <svg width="1046" height="280" viewBox="0 0 1046 280" fill="none" xmlns="http://www.w3.org/2000/svg">
566
+ <path d="M1010.25 80.5964L993.442 193.466H978.224L965.859 120.228H965.542L953.336 193.466H938.117L921.313 80.5964H938.434L946.519 152.25H946.836L959.518 80.5964H971.883L985.041 153.993H985.358L993.125 80.5964H1010.25Z" fill="white"/>
567
+ <path d="M867.722 107.229C867.722 102.684 868.514 98.6683 870.1 95.1807C871.685 91.6932 873.799 88.7869 876.441 86.4618C878.977 84.2425 881.83 82.5516 885.001 81.389C888.277 80.2265 891.553 79.6453 894.829 79.6453C898.106 79.6453 901.329 80.2265 904.5 81.389C907.776 82.5516 910.735 84.2425 913.377 86.4618C915.913 88.7869 917.974 91.6932 919.559 95.1807C921.145 98.6683 921.937 102.684 921.937 107.229V166.834C921.937 171.59 921.145 175.659 919.559 179.04C917.974 182.422 915.913 185.223 913.377 187.442C910.735 189.767 907.776 191.511 904.5 192.674C901.329 193.836 898.106 194.417 894.829 194.417C891.553 194.417 888.277 193.836 885.001 192.674C881.83 191.511 878.977 189.767 876.441 187.442C873.799 185.223 871.685 182.422 870.1 179.04C868.514 175.659 867.722 171.59 867.722 166.834V107.229ZM883.891 166.834C883.891 170.744 884.948 173.651 887.062 175.553C889.281 177.35 891.87 178.248 894.829 178.248C897.789 178.248 900.325 177.35 902.439 175.553C904.658 173.651 905.768 170.744 905.768 166.834V107.229C905.768 103.318 904.658 100.465 902.439 98.6683C900.325 96.766 897.789 95.8148 894.829 95.8148C891.87 95.8148 889.281 96.766 887.062 98.6683C884.948 100.465 883.891 103.318 883.891 107.229V166.834Z" fill="white"/>
568
+ <path d="M805.527 193.466V80.5964H821.062L845.475 148.604H845.792V80.5964H861.962V193.466H846.743L822.013 125.618H821.696V193.466H805.527Z" fill="white"/>
569
+ <path d="M802 113.094H785.83V109.448C785.83 105.749 784.932 102.579 783.135 99.9365C781.444 97.1887 778.538 95.8148 774.417 95.8148C772.197 95.8148 770.401 96.2375 769.027 97.083C767.653 97.9285 766.543 98.9853 765.698 100.254C764.852 101.627 764.271 103.213 763.954 105.009C763.637 106.7 763.478 108.497 763.478 110.399C763.478 112.618 763.531 114.468 763.637 115.947C763.848 117.427 764.271 118.748 764.905 119.911C765.539 121.073 766.437 122.077 767.6 122.923C768.868 123.768 770.559 124.614 772.673 125.459L785.038 130.373C788.631 131.747 791.537 133.385 793.757 135.288C795.976 137.084 797.72 139.198 798.988 141.629C800.15 144.165 800.943 147.071 801.366 150.347C801.788 153.518 802 157.164 802 161.286C802 166.041 801.524 170.48 800.573 174.602C799.622 178.618 798.09 182.052 795.976 184.906C793.757 187.865 790.85 190.19 787.257 191.881C783.664 193.572 779.278 194.417 774.099 194.417C770.189 194.417 766.543 193.73 763.161 192.357C759.779 190.983 756.873 189.08 754.442 186.65C752.012 184.219 750.057 181.418 748.577 178.248C747.203 174.972 746.516 171.431 746.516 167.627V161.603H762.686V166.675C762.686 169.635 763.531 172.33 765.222 174.76C767.019 177.085 769.978 178.248 774.099 178.248C776.847 178.248 778.961 177.878 780.44 177.138C782.026 176.293 783.241 175.13 784.087 173.651C784.932 172.171 785.408 170.427 785.513 168.419C785.725 166.306 785.83 163.981 785.83 161.444C785.83 158.485 785.725 156.054 785.513 154.152C785.302 152.25 784.879 150.717 784.245 149.555C783.505 148.392 782.501 147.441 781.233 146.701C780.071 145.962 778.485 145.169 776.477 144.323L764.905 139.568C757.93 136.714 753.227 132.963 750.796 128.312C748.471 123.557 747.309 117.638 747.309 110.558C747.309 106.33 747.89 102.314 749.053 98.5097C750.215 94.7051 751.959 91.429 754.284 88.6812C756.503 85.9334 759.304 83.7669 762.686 82.1817C766.173 80.4907 770.295 79.6453 775.051 79.6453C779.067 79.6453 782.713 80.385 785.989 81.8646C789.371 83.3442 792.277 85.2993 794.708 87.73C799.569 92.8028 802 98.6154 802 105.168V113.094Z" fill="white"/>
570
+ <path d="M677.452 193.466V80.5964H725.644V95.8148H693.622V128.947H721.522V144.165H693.622V177.297H725.644V193.466H677.452Z" fill="white"/>
571
+ <path d="M634.051 95.8148V131.007H643.246C646.099 131.007 648.371 130.637 650.062 129.898C651.753 129.052 653.074 127.89 654.026 126.41C654.871 124.931 655.452 123.134 655.769 121.02C656.086 118.801 656.245 116.265 656.245 113.411C656.245 110.558 656.086 108.074 655.769 105.96C655.452 103.741 654.818 101.839 653.867 100.254C651.859 97.2944 648.054 95.8148 642.453 95.8148H634.051ZM617.882 193.466V80.5964H643.88C662.903 80.5964 672.414 91.6403 672.414 113.728C672.414 120.386 671.358 126.04 669.244 130.69C667.236 135.34 663.643 139.092 658.464 141.946L675.902 193.466H658.781L643.721 145.275H634.051V193.466H617.882Z" fill="white"/>
572
+ <path d="M557.36 107.229C557.36 102.684 558.152 98.6683 559.738 95.1807C561.323 91.6932 563.437 88.7869 566.079 86.4618C568.615 84.2425 571.469 82.5516 574.639 81.389C577.915 80.2265 581.191 79.6453 584.468 79.6453C587.744 79.6453 590.967 80.2265 594.138 81.389C597.414 82.5516 600.373 84.2425 603.015 86.4618C605.551 88.7869 607.612 91.6932 609.198 95.1807C610.783 98.6683 611.575 102.684 611.575 107.229V166.834C611.575 171.59 610.783 175.659 609.198 179.04C607.612 182.422 605.551 185.223 603.015 187.442C600.373 189.767 597.414 191.511 594.138 192.674C590.967 193.836 587.744 194.417 584.468 194.417C581.191 194.417 577.915 193.836 574.639 192.674C571.469 191.511 568.615 189.767 566.079 187.442C563.437 185.223 561.323 182.422 559.738 179.04C558.152 175.659 557.36 171.59 557.36 166.834V107.229ZM573.529 166.834C573.529 170.744 574.586 173.651 576.7 175.553C578.919 177.35 581.509 178.248 584.468 178.248C587.427 178.248 589.963 177.35 592.077 175.553C594.296 173.651 595.406 170.744 595.406 166.834V107.229C595.406 103.318 594.296 100.465 592.077 98.6683C589.963 96.766 587.427 95.8148 584.468 95.8148C581.509 95.8148 578.919 96.766 576.7 98.6683C574.586 100.465 573.529 103.318 573.529 107.229V166.834Z" fill="white"/>
573
+ <path d="M478.15 193.466V80.5964H493.686L514.453 140.36H514.77L535.378 80.5964H551.072V193.466H534.902V124.825H534.585L518.574 173.334H510.489L494.637 124.825H494.32V193.466H478.15Z" fill="white"/>
574
+ <path d="M396.141 107.229C396.141 102.684 396.934 98.6683 398.519 95.1807C400.104 91.6932 402.218 88.7869 404.86 86.4618C407.396 84.2425 410.25 82.5516 413.42 81.389C416.697 80.2265 419.973 79.6453 423.249 79.6453C426.525 79.6453 429.748 80.2265 432.919 81.389C436.195 82.5516 439.154 84.2425 441.796 86.4618C444.333 88.7869 446.394 91.6932 447.979 95.1807C449.564 98.6683 450.357 102.684 450.357 107.229V166.834C450.357 171.59 449.564 175.659 447.979 179.04C446.394 182.422 444.333 185.223 441.796 187.442C439.154 189.767 436.195 191.511 432.919 192.674C429.748 193.836 426.525 194.417 423.249 194.417C419.973 194.417 416.697 193.836 413.42 192.674C410.25 191.511 407.396 189.767 404.86 187.442C402.218 185.223 400.104 182.422 398.519 179.04C396.934 175.659 396.141 171.59 396.141 166.834V107.229ZM412.311 166.834C412.311 170.744 413.367 173.651 415.481 175.553C417.701 177.35 420.29 178.248 423.249 178.248C426.208 178.248 428.744 177.35 430.858 175.553C433.077 173.651 434.187 170.744 434.187 166.834V107.229C434.187 103.318 433.077 100.465 430.858 98.6683C428.744 96.766 426.208 95.8148 423.249 95.8148C420.29 95.8148 417.701 96.766 415.481 98.6683C413.367 100.465 412.311 103.318 412.311 107.229V166.834Z" fill="white"/>
575
+ <path d="M333.946 193.466V80.5964H349.481L373.894 148.604H374.211V80.5964H390.381V193.466H375.163L350.433 125.618H350.116V193.466H333.946Z" fill="white"/>
576
+ <path d="M233.454 133.306C235.059 134.222 236.586 135.114 238.14 135.954C239.451 136.662 240.292 137.695 240.319 139.233C240.349 140.87 239.447 141.935 238.099 142.724C231.338 146.679 224.59 150.655 217.838 154.627C213.234 157.335 208.633 160.046 203.913 162.825C204.307 163.068 204.613 163.262 204.923 163.447C208.828 165.782 212.738 168.108 216.635 170.456C217.137 170.758 217.529 170.821 218.092 170.526C230.581 163.995 243.084 157.49 255.584 150.979C256.192 150.663 256.79 150.326 257.408 150.033C258.481 149.524 259.568 149.496 260.609 150.111C266.05 153.323 271.514 156.496 276.908 159.788C279.363 161.287 279.154 164.515 276.585 166.073C271.83 168.956 267.052 171.8 262.283 174.659C256.244 178.28 250.203 181.9 244.165 185.523C243.859 185.706 243.566 185.909 243.139 186.185C245.35 187.435 247.458 188.632 249.571 189.82C254.161 192.403 258.754 194.982 263.346 197.563C266.022 199.067 266.534 200.841 265.062 203.548C262.432 208.383 259.797 213.216 257.161 218.048C255.867 220.422 253.975 220.975 251.657 219.604C245.13 215.746 238.615 211.866 232.094 207.997C231.79 207.816 231.476 207.653 230.983 207.38C230.983 207.895 230.983 208.273 230.983 208.651C230.983 220.884 230.984 233.118 230.978 245.351C230.978 245.973 231.003 246.617 230.861 247.212C230.337 249.419 228.006 250.52 225.912 249.536C224.283 248.77 222.697 247.91 221.093 247.09C216.793 244.891 212.528 242.619 208.181 240.525C206.048 239.497 205.177 238.03 205.189 235.62C205.258 221.954 205.214 208.288 205.243 194.622C205.245 193.785 205.002 193.336 204.304 192.898C200.415 190.462 196.564 187.962 192.699 185.487C192.466 185.338 192.22 185.211 191.859 185.005C191.859 185.485 191.859 185.836 191.859 186.188C191.859 198.531 191.848 210.875 191.872 223.219C191.875 224.92 191.339 226.242 189.809 227.006C188.558 227.631 187.367 227.298 186.212 226.641C177.119 221.464 168.022 216.294 158.926 211.122C157.181 210.13 155.434 209.142 153.563 208.081C153.563 211.53 153.563 214.822 153.563 218.115C153.563 219.841 153.601 221.569 153.545 223.294C153.521 224.014 153.746 224.388 154.365 224.752C165.878 231.525 177.374 238.328 188.874 245.125C189.154 245.29 189.43 245.464 189.715 245.617C191.239 246.435 191.892 247.696 191.877 249.471C191.828 255.201 191.859 260.933 191.859 266.664C191.859 267.325 191.867 267.986 191.857 268.648C191.806 271.959 189.063 273.532 186.244 271.846C184.075 270.549 181.931 269.209 179.776 267.888C171.245 262.658 162.714 257.428 154.183 252.199C154.034 252.107 153.881 252.022 153.563 251.838C153.563 252.338 153.563 252.718 153.563 253.098C153.563 260.555 153.592 268.013 153.527 275.47C153.519 276.395 153.143 277.387 152.7 278.217C152.255 279.052 151.382 279.343 150.393 279.339C143.693 279.313 136.991 279.263 130.292 279.366C128.46 279.394 127.038 277.734 126.994 276.17C126.971 275.363 126.976 274.554 126.975 273.746C126.974 266.473 126.975 259.2 126.975 251.778C126.353 252.138 125.803 252.448 125.262 252.773C114.769 259.076 104.272 265.373 93.7898 271.697C92.4322 272.516 91.0954 272.93 89.6376 272.068C88.1821 271.206 87.8419 269.798 87.8454 268.204C87.8589 262.106 87.8942 256.007 87.8271 249.909C87.804 247.802 88.5654 246.425 90.3907 245.379C102.259 238.576 114.083 231.694 125.94 224.872C126.733 224.415 127.011 223.934 127 223.001C126.944 218.41 126.975 213.817 126.975 209.225C126.975 208.87 126.975 208.514 126.975 207.97C125.582 208.724 124.327 209.4 123.075 210.082C112.974 215.587 102.884 221.111 92.7573 226.565C91.893 227.031 90.7528 227.315 89.8035 227.189C88.0014 226.951 87.0278 225.417 87.0245 223.313C87.0156 217.655 87.0215 211.998 87.0215 206.34C87.0215 199.654 87.0215 192.968 87.0215 186.282C87.0215 185.894 87.0215 185.506 87.0215 184.959C84.6994 186.44 82.5157 187.831 80.3337 189.225C78.4146 190.451 76.5201 191.72 74.5678 192.888C73.8312 193.329 73.5627 193.805 73.5646 194.688C73.5954 208.464 73.5617 222.241 73.6132 236.017C73.6207 238.022 72.9098 239.322 71.1911 240.27C65.8535 243.213 60.561 246.241 55.2449 249.225C52.2667 250.897 49.5997 249.283 49.5963 245.786C49.5844 233.406 49.5917 221.025 49.5917 208.645C49.5917 208.241 49.5917 207.837 49.5917 207.308C49.2247 207.495 48.916 207.636 48.6226 207.805C41.8329 211.708 35.0449 215.614 28.2564 219.519C25.6884 220.997 23.8955 220.477 22.4547 217.83C19.8406 213.028 17.2267 208.227 14.619 203.421C13.2541 200.906 13.7786 199.03 16.2331 197.649C22.9933 193.846 29.7566 190.048 36.6814 186.156C36.2616 185.884 35.9255 185.654 35.5792 185.442C25.1388 179.044 14.6974 172.647 4.25626 166.25C2.08447 164.919 1.383 163.015 2.46295 161.12C2.79083 160.545 3.31652 160.012 3.87307 159.659C8.8162 156.523 13.7913 153.439 18.7459 150.321C20.0664 149.49 21.348 149.499 22.7159 150.214C35.6553 156.976 48.6014 163.724 61.5566 170.453C61.9117 170.638 62.5003 170.769 62.7955 170.597C67.128 168.067 71.429 165.481 75.8485 162.843C74.4749 162.034 73.1789 161.27 71.8821 160.508C61.7993 154.581 51.7194 148.649 41.6293 142.734C40.4432 142.039 39.5305 141.178 39.4066 139.711C39.2639 138.02 40.0268 136.834 41.4475 136.03C43.6155 134.805 45.7784 133.57 47.9457 132.343C57.0193 127.206 66.0937 122.071 75.1678 116.935C75.3775 116.816 75.5865 116.696 75.9374 116.496C74.1879 115.38 72.553 114.338 70.9184 113.294C68.2988 111.623 65.6702 109.965 63.068 108.266C62.5518 107.929 62.1817 107.907 61.63 108.218C49.0317 115.33 36.4202 122.418 23.8112 129.511C23.4339 129.723 23.0516 129.927 22.6803 130.149C21.376 130.932 20.0891 130.88 18.8066 130.093C13.2363 126.673 7.64965 123.28 2.10022 119.825C-0.530479 118.187 -0.369747 114.971 2.3949 113.362C9.25659 109.368 16.1339 105.402 23.0047 101.425C27.066 99.0742 31.1274 96.7232 35.1873 94.3696C35.4349 94.226 35.6697 94.0597 35.9497 93.8787C29.59 89.8407 23.2774 85.8309 16.9629 81.8243C14.5933 80.3208 14.1407 78.5932 15.4407 76.0732C18.0647 70.9863 20.6823 65.8959 23.295 60.8029C24.6774 58.1081 26.5328 57.5698 29.1455 59.1232C35.6026 62.9624 42.06 66.8009 48.5177 70.6391C48.8224 70.8202 49.1302 70.9958 49.5917 71.2641C49.5917 70.7571 49.5917 70.3738 49.5917 69.9905C49.5917 57.2794 49.5889 44.5682 49.5939 31.8571C49.595 29.23 51.2971 27.5333 53.6209 27.8878C54.2034 27.9767 54.7903 28.2531 55.3033 28.566C60.7305 31.877 66.1367 35.2238 71.5643 38.5341C72.9624 39.3869 73.607 40.5449 73.6034 42.2361C73.5731 56.4167 73.5951 70.5973 73.5639 84.7779C73.5621 85.6273 73.8134 86.0702 74.5249 86.4854C78.3599 88.723 82.1625 91.0181 85.9781 93.2902C86.2756 93.4674 86.5867 93.6205 87.0215 93.8549C87.0215 93.3229 87.0215 92.932 87.0215 92.5412C87.0215 79.977 87.0166 67.4129 87.0342 54.8487C87.0352 54.1287 87.1015 53.3648 87.3411 52.6974C88.095 50.5974 90.3404 49.8616 92.4432 51.017C95.0049 52.4245 97.5346 53.8927 100.078 55.3349C108.776 60.267 117.474 65.1996 126.174 70.1297C126.385 70.2493 126.61 70.3427 126.975 70.5191C126.975 69.5682 126.975 68.7424 126.975 67.9167C126.975 64.096 126.933 60.2745 127.004 56.4552C127.022 55.5077 126.714 55.0324 125.951 54.576C114.052 47.4568 102.181 40.2895 90.2689 33.1922C88.5417 32.1632 87.8095 30.8327 87.8283 28.814C87.8889 22.3121 87.8451 15.8092 87.8541 9.30669C87.8572 7.09371 88.9141 5.45861 90.7354 5.28962C91.6948 5.2006 92.8147 5.51996 93.6815 5.99663C103.069 11.1589 112.419 16.3894 121.781 21.6005C123.446 22.5276 125.114 23.4512 126.975 24.4844C126.975 23.968 126.975 23.5921 126.975 23.2162C126.975 17.0811 126.982 10.9459 126.969 4.81083C126.967 3.48432 127.305 2.31647 128.43 1.57153C128.913 1.25166 129.537 0.983905 130.098 0.980597C136.871 0.940688 143.643 0.949913 150.416 0.95798C152.232 0.960145 153.551 2.5048 153.558 4.6728C153.574 10.0364 153.563 15.4001 153.563 20.7637C153.563 21.9283 153.563 23.0929 153.563 24.4236C155.337 23.416 156.986 22.4792 158.635 21.5419C167.827 16.3181 177.016 11.09 186.211 5.87288C188.601 4.51703 191.013 5.34414 191.698 7.75772C191.844 8.27399 191.852 8.8435 191.852 9.3886C191.862 15.9646 191.826 22.5408 191.88 29.1164C191.895 30.9854 191.147 32.1888 189.603 33.1305C177.975 40.2196 166.378 47.3611 154.748 54.4456C153.877 54.9761 153.513 55.4953 153.532 56.5691C153.607 60.7925 153.563 65.0181 153.563 69.2429C153.563 69.5945 153.563 69.946 153.563 70.4486C157.131 68.3395 160.57 66.3063 164.009 64.2742C171.376 59.9212 178.739 55.5628 186.112 51.2196C188.531 49.7942 190.88 50.511 191.646 52.9238C191.84 53.5335 191.85 54.222 191.851 54.8744C191.862 67.4018 191.859 79.9293 191.859 92.4567C191.859 92.8599 191.859 93.2632 191.859 93.8062C192.173 93.6625 192.426 93.5741 192.652 93.4392C196.559 91.109 200.457 88.7611 204.375 86.4506C204.998 86.0831 205.244 85.6814 205.242 84.918C205.215 70.9211 205.251 56.924 205.194 42.9274C205.184 40.6325 205.998 39.2045 208.015 38.1247C213.864 34.9931 219.631 31.7029 225.421 28.4579C226.446 27.8839 227.466 27.6073 228.612 28.0291C230.014 28.5447 230.758 29.5735 230.937 31.0471C230.995 31.5186 230.981 32.0004 230.981 32.4775C230.983 45.2986 230.983 58.1196 230.983 71.107C231.327 70.9261 231.6 70.8023 231.854 70.6464C238.041 66.8467 244.225 63.0415 250.413 59.242C253.201 57.5301 254.883 57.9838 256.523 60.8832C259.378 65.9278 262.233 70.9728 265.082 76.0206C266.501 78.5343 266.028 80.3738 263.585 81.8238C257.097 85.6759 250.605 89.521 244.115 93.371C243.811 93.5513 243.519 93.7514 243.093 94.0243C245.642 95.5065 248.083 96.931 250.529 98.3474C259.15 103.339 267.773 108.324 276.391 113.321C278.161 114.348 278.95 115.672 278.464 117.333C278.199 118.237 277.572 119.263 276.81 119.746C271.228 123.289 265.57 126.706 259.938 130.167C258.534 131.03 257.237 130.738 255.885 129.958C247.227 124.961 238.552 119.998 229.882 115.023C225.938 112.76 221.998 110.488 218.039 108.253C217.733 108.079 217.182 107.987 216.922 108.15C212.666 110.819 208.439 113.536 204.207 116.245C204.123 116.298 204.067 116.396 203.913 116.568C213.769 122.15 223.579 127.705 233.454 133.306ZM145.934 196.748C161.059 187.85 176.179 178.944 191.32 170.076C192.033 169.659 192.096 169.17 192.096 168.478C192.085 149.632 192.077 130.787 192.115 111.942C192.117 110.874 191.785 110.347 190.897 109.827C174.037 99.9645 157.195 90.0697 140.366 80.1529C139.682 79.7498 139.23 79.88 138.625 80.2357C121.728 90.1798 104.824 100.113 87.9079 110.023C87.2387 110.415 86.9699 110.804 86.9711 111.62C86.9985 130.576 86.9999 149.531 86.9678 168.487C86.9664 169.354 87.2482 169.797 87.9433 170.205C104.919 180.156 121.887 190.122 138.845 200.106C139.4 200.433 139.772 200.387 140.292 200.071C142.112 198.964 143.964 197.913 145.934 196.748ZM171.788 22.291C165.231 26.0157 158.679 29.7484 152.116 33.4612C149.263 35.0749 146.56 33.4574 146.537 30.1429C146.524 28.2328 146.535 26.3226 146.535 24.4125C146.535 18.9796 146.535 13.5468 146.535 8.08491C142.334 8.08491 138.183 8.08491 134.003 8.08491C134.003 15.3959 134.008 22.6318 133.994 29.8677C133.993 30.4829 133.963 31.1312 133.776 31.7069C133.042 33.9767 130.688 34.7224 128.382 33.4401C117.634 27.463 106.889 21.4782 96.1422 15.4975C95.7758 15.2935 95.4018 15.1039 94.879 14.8268C94.879 15.366 94.879 15.7218 94.879 16.0775C94.879 19.5672 94.9052 23.0573 94.8593 26.5463C94.8487 27.352 95.1115 27.7703 95.7876 28.1749C107.717 35.3128 119.617 42.5002 131.556 49.6203C133.27 50.6422 134.047 51.9442 134.027 53.977C133.962 60.4414 134.003 66.9069 134.003 73.372C134.003 73.7518 134.003 74.1317 134.003 74.6788C135.674 73.6939 137.179 72.8495 138.637 71.9279C139.262 71.5325 139.729 71.5279 140.37 71.9282C142.35 73.163 144.379 74.3136 146.535 75.5827C146.535 74.9965 146.535 74.5993 146.535 74.2021C146.535 67.4799 146.574 60.7573 146.511 54.0357C146.492 52.0195 147.217 50.6873 148.929 49.6454C160.624 42.5308 172.279 35.3471 183.961 28.2099C184.62 27.807 184.906 27.3969 184.89 26.5824C184.833 23.7551 184.868 20.9259 184.868 18.0974C184.868 17.0871 184.868 16.0767 184.868 14.8643C180.432 17.3768 176.176 19.7878 171.788 22.291ZM257.021 76.0945C255.28 73.0215 253.54 69.9486 251.768 66.82C251.354 67.0646 250.984 67.2766 250.62 67.4999C243.663 71.7712 236.702 76.0376 229.752 80.3215C228.468 81.1133 227.157 81.4519 225.782 80.6683C224.373 79.8647 223.972 78.5539 223.975 76.9524C224.005 64.2047 223.992 51.4568 223.992 38.709C223.992 38.3326 223.992 37.9563 223.992 37.4251C220.278 39.4983 216.77 41.4909 213.223 43.4092C212.481 43.8105 212.227 44.2389 212.229 45.0961C212.259 59.1664 212.233 73.2368 212.27 87.3071C212.275 89.2012 211.596 90.4734 209.973 91.4171C205.698 93.9026 201.476 96.484 197.233 99.0266C195.466 100.085 193.698 101.142 191.846 102.251C193.685 103.336 195.374 104.384 197.116 105.333C197.725 105.665 197.891 106.042 197.873 106.701C197.829 108.336 197.859 109.973 197.859 111.775C198.34 111.491 198.674 111.307 198.996 111.102C204.237 107.757 209.498 104.444 214.703 101.042C216.414 99.9239 217.929 99.8906 219.708 100.919C232.172 108.13 244.675 115.273 257.152 122.461C257.787 122.827 258.252 122.929 258.891 122.467C259.797 121.812 260.792 121.284 261.746 120.697C263.838 119.409 265.93 118.119 268.105 116.778C267.698 116.541 267.419 116.378 267.139 116.216C256.363 109.976 245.612 103.691 234.797 97.5238C231.661 95.7358 231.942 92.1678 234.729 90.5889C241.355 86.8363 247.858 82.8585 254.409 78.9699C255.452 78.3507 256.49 77.7221 257.552 77.0847C257.371 76.7448 257.234 76.4896 257.021 76.0945ZM206.149 172.496C203.429 170.879 200.708 169.262 197.859 167.568C197.859 169.645 197.832 171.576 197.873 173.507C197.887 174.169 197.722 174.56 197.11 174.883C195.768 175.593 194.479 176.406 193.086 177.225C193.495 177.504 193.786 177.714 194.087 177.907C199.351 181.279 204.591 184.689 209.895 187.995C211.59 189.051 212.284 190.391 212.277 192.41C212.226 206.109 212.257 219.809 212.231 233.508C212.23 234.281 212.466 234.677 213.135 235.012C216.422 236.655 219.685 238.349 222.958 240.02C223.26 240.175 223.578 240.297 223.992 240.48C223.992 239.905 223.992 239.505 223.992 239.105C223.992 226.691 223.99 214.277 223.999 201.863C223.999 201.245 223.994 200.595 224.17 200.016C224.891 197.647 227.286 196.864 229.601 198.231C235.816 201.902 242.022 205.592 248.232 209.272C249.645 210.11 251.061 210.942 252.53 211.808C254.244 208.652 255.903 205.598 257.553 202.559C257.402 202.441 257.35 202.388 257.289 202.353C252.48 199.648 247.669 196.944 242.86 194.24C240.125 192.701 237.379 191.182 234.66 189.616C231.764 187.947 231.723 184.731 234.548 182.977C234.732 182.863 234.916 182.747 235.102 182.635C245.783 176.229 256.465 169.824 267.146 163.416C267.43 163.245 267.699 163.049 268.065 162.805C265.25 161.134 262.535 159.562 259.867 157.912C259.129 157.455 258.58 157.454 257.811 157.857C245.235 164.445 232.623 170.963 220.067 177.592C218.016 178.675 216.317 178.745 214.354 177.437C211.742 175.696 208.978 174.193 206.149 172.496ZM80.4573 98.3211C76.6167 96.0226 72.7952 93.6903 68.9266 91.442C67.3244 90.5108 66.5976 89.2865 66.6046 87.356C66.6554 73.2153 66.6266 59.0742 66.6471 44.9333C66.6482 44.1937 66.4637 43.7504 65.8083 43.3609C63.0465 41.72 60.3236 40.0112 57.5837 38.3322C57.3188 38.1699 57.0341 38.0413 56.6193 37.8241C56.6193 38.3704 56.6193 38.7635 56.6193 39.1567C56.6193 51.6448 56.6199 64.1329 56.6167 76.621C56.6166 77.0603 56.6069 77.5032 56.5536 77.9382C56.3346 79.7254 55.1079 81.0733 53.3719 81.0729C52.4641 81.0726 51.4707 80.6786 50.6623 80.2035C43.5043 75.9974 36.3792 71.7333 29.2442 67.4864C28.8856 67.273 28.5261 67.0612 28.132 66.8279C26.3457 70.3041 24.616 73.6702 22.861 77.0854C23.2722 77.3616 23.623 77.6092 23.9848 77.8388C30.7574 82.1361 37.5365 86.4228 44.3024 90.731C47.1797 92.5632 47.0902 95.737 44.1344 97.4467C34.5443 102.994 24.9517 108.537 15.3617 114.084C13.852 114.957 12.3506 115.846 10.7494 116.784C13.9312 118.727 16.9973 120.566 20.0214 122.474C20.6716 122.884 21.1202 122.848 21.7617 122.486C34.518 115.287 47.299 108.133 60.043 100.912C61.8248 99.902 63.3349 99.9253 65.0484 101.047C70.0668 104.333 75.1474 107.52 80.2042 110.745C80.4824 110.922 80.7654 111.092 81.1628 111.337C81.1628 109.679 81.2211 108.243 81.1404 106.817C81.0937 105.99 81.4002 105.587 82.0805 105.214C83.7528 104.296 85.3786 103.291 87.0996 102.276C84.8685 100.943 82.7339 99.6677 80.4573 98.3211ZM146.535 264.923C146.535 258.679 146.538 252.435 146.533 246.191C146.532 245.069 146.656 243.993 147.42 243.106C148.693 241.628 150.381 241.5 152.39 242.732C162.827 249.133 173.263 255.535 183.701 261.934C184.054 262.15 184.426 262.333 184.868 262.575C184.868 259.015 184.836 255.601 184.89 252.188C184.904 251.34 184.649 250.888 183.931 250.466C172.296 243.625 160.691 236.731 149.044 229.912C147.28 228.879 146.489 227.559 146.51 225.482C146.577 218.981 146.535 212.48 146.535 205.979C146.535 205.595 146.535 205.211 146.535 204.637C144.645 205.733 142.875 206.628 141.251 207.743C140.012 208.594 139.026 208.668 137.796 207.745C136.669 206.899 135.369 206.294 134.003 205.5C134.003 206.14 134.003 206.542 134.003 206.943C134.003 213.187 133.975 219.431 134.02 225.675C134.033 227.563 133.328 228.834 131.697 229.772C119.72 236.663 107.772 243.606 95.8011 250.508C95.1243 250.898 94.8448 251.308 94.8581 252.123C94.9093 255.281 94.8774 258.44 94.8813 261.599C94.8816 261.911 94.9148 262.223 94.9394 262.652C95.2841 262.452 95.5274 262.315 95.7667 262.171C103.905 257.281 112.044 252.39 120.182 247.499C122.937 245.844 125.682 244.174 128.448 242.539C130.476 241.341 132.72 241.892 133.595 243.87C133.906 244.573 133.984 245.432 133.986 246.22C134.013 254.52 134.003 262.821 134.003 271.122C134.003 271.508 134.003 271.894 134.003 272.268C138.262 272.268 142.382 272.268 146.535 272.268C146.535 269.843 146.535 267.493 146.535 264.923ZM22.4842 203.101C24.0609 206 25.6377 208.899 27.2424 211.85C27.756 211.558 28.1616 211.33 28.5651 211.098C35.9505 206.855 43.3329 202.607 50.7261 198.378C51.3125 198.042 51.9523 197.733 52.6042 197.602C54.4906 197.22 56.6623 198.663 56.6466 201.672C56.5816 214.088 56.6193 226.505 56.6193 238.921C56.6193 239.305 56.6193 239.689 56.6193 240.262C59.7806 238.476 62.7416 236.768 65.7415 235.134C66.4489 234.749 66.6529 234.318 66.6514 233.521C66.6244 219.672 66.6466 205.822 66.6129 191.973C66.6088 190.289 67.2055 189.117 68.6059 188.249C71.2471 186.612 73.8516 184.914 76.4696 183.238C79.5699 181.254 82.6682 179.266 85.8765 177.21C84.4703 176.382 83.1904 175.589 81.8706 174.871C81.3134 174.568 81.1336 174.205 81.1481 173.576C81.1897 171.763 81.1628 169.95 81.1628 168.02C80.7425 168.258 80.4633 168.408 80.1909 168.57C75.0423 171.638 69.8842 174.688 64.7533 177.786C63.3302 178.645 61.9943 178.778 60.4849 177.988C47.5842 171.235 34.6641 164.521 21.765 157.765C21.1199 157.427 20.7002 157.486 20.1195 157.861C17.8432 159.331 15.5291 160.741 13.2324 162.179C12.9376 162.363 12.663 162.581 12.3293 162.82C12.6055 162.99 12.7892 163.104 12.9735 163.216C23.6608 169.763 34.3507 176.306 45.034 182.86C48.1141 184.75 48.0356 187.95 44.8821 189.729C41.9279 191.396 38.9717 193.06 36.0154 194.723C31.6458 197.181 27.274 199.635 22.9086 202.102C22.5962 202.278 21.9983 202.337 22.4842 203.101ZM99.9436 94.7373C101.034 94.1 102.082 93.3634 103.226 92.8513C104.59 92.2408 105.047 91.368 104.973 89.823C104.845 87.1444 107.315 85.5052 109.787 86.4555C110.325 86.6619 110.868 86.8658 111.374 87.138C111.981 87.4644 112.47 87.3884 113.067 87.0315C117.435 84.4208 121.827 81.8532 126.211 79.2697C126.432 79.1393 126.641 78.9879 126.962 78.7769C115.949 72.5382 105.077 66.3797 94.1408 60.1845C94.1408 72.8968 94.1408 85.463 94.1408 98.1504C96.0926 97.0065 97.952 95.9167 99.9436 94.7373ZM170.994 68.4343C164.948 72.0112 158.902 75.5881 152.734 79.2372C156.863 81.6662 160.889 83.9216 164.79 86.3835C166.411 87.4066 167.826 87.8503 169.475 86.6718C169.732 86.4878 170.061 86.3896 170.371 86.3023C172.481 85.7066 174.519 87.0816 174.774 89.2931C174.853 89.9825 174.872 90.6857 174.843 91.3793C174.818 91.9951 174.99 92.3666 175.554 92.6897C178.405 94.3226 181.223 96.0129 184.057 97.6759C184.285 97.81 184.544 97.8904 184.821 98.0097C184.821 85.4222 184.821 72.9499 184.821 60.2745C180.179 63.0181 175.657 65.6904 170.994 68.4343ZM197.859 153.825C197.859 155.192 197.859 156.558 197.859 158.099C208.545 151.813 219.033 145.643 229.684 139.378C219.006 133.328 208.497 127.374 197.859 121.346C197.859 132.248 197.859 142.926 197.859 153.825ZM71.0815 127.463C64.1079 131.409 57.1343 135.354 50.0191 139.38C60.4689 145.518 70.7403 151.551 81.0884 157.629C81.0884 145.6 81.0884 133.747 81.0884 121.797C77.7334 123.694 74.4755 125.536 71.0815 127.463ZM94.0852 210.917C94.0852 213.14 94.0852 215.363 94.0852 217.745C104.659 211.981 115.082 206.3 125.613 200.559C121.22 197.974 116.945 195.49 112.709 192.939C111.886 192.443 111.236 192.385 110.353 192.784C107.263 194.182 104.94 192.632 104.946 189.213C104.947 188.568 104.727 188.243 104.202 187.941C101.574 186.429 98.9667 184.878 96.3508 183.344C95.6459 182.93 94.9361 182.525 94.0852 182.034C94.0852 191.698 94.0852 201.197 94.0852 210.917ZM170.511 193.23C169.782 192.927 169.064 192.587 168.318 192.337C168.024 192.239 167.6 192.225 167.347 192.372C162.957 194.927 158.584 197.513 154.091 200.16C164.369 206 174.555 211.788 184.807 217.613C184.807 205.663 184.807 193.944 184.807 182.088C181.882 183.81 179.088 185.521 176.226 187.105C175.224 187.66 174.806 188.247 174.814 189.461C174.832 192.097 173.109 193.588 170.511 193.23Z" fill="white"/>
577
+ <path d="M139.46 149.235C139.422 149.401 139.319 149.497 139.139 149.568C139.173 149.417 139.284 149.291 139.46 149.235Z" fill="white"/>
578
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M159.548 140.158C159.548 129.047 150.54 120.039 139.428 120.039C128.317 120.039 119.309 129.047 119.309 140.158C119.309 151.27 128.317 160.278 139.428 160.278C150.54 160.278 159.548 151.27 159.548 140.158ZM139.428 127.108C146.636 127.108 152.479 132.951 152.479 140.158C152.479 147.366 146.636 153.209 139.428 153.209C132.221 153.209 126.378 147.366 126.378 140.158C126.378 132.951 132.221 127.108 139.428 127.108Z" fill="white"/>
579
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M139.429 104.819L108.824 122.489V157.828L139.429 175.498L170.034 157.828V122.489L139.429 104.819ZM177.103 118.407L139.429 96.6562L101.755 118.407V161.91L139.429 183.661L177.103 161.91V118.407Z" fill="white"/>
580
+ <path d="M1029.93 70.6102V74.9266H1032.65C1033.84 74.9266 1034.72 74.7573 1035.3 74.4188C1035.91 74.056 1036.21 73.4636 1036.21 72.6414C1036.21 71.9402 1035.94 71.4324 1035.41 71.118C1034.9 70.7795 1034.24 70.6102 1033.42 70.6102H1029.93ZM1027.54 83.7407V68.4339H1033.34C1036.85 68.4339 1038.6 69.8727 1038.6 72.7502C1038.6 73.4757 1038.49 74.0923 1038.28 74.6001C1038.08 75.1079 1037.8 75.5311 1037.44 75.8696C1037.08 76.2082 1036.66 76.4742 1036.17 76.6676C1035.71 76.8369 1035.22 76.9578 1034.69 77.0303L1039.07 83.7407H1036.17L1031.78 77.1029H1029.93V83.7407H1027.54ZM1043.03 76.0873C1043.03 74.6122 1042.75 73.2218 1042.19 71.916C1041.64 70.6102 1040.89 69.4737 1039.94 68.5064C1039 67.5392 1037.89 66.7774 1036.61 66.2213C1035.33 65.6409 1033.96 65.3507 1032.51 65.3507C1031.06 65.3507 1029.69 65.6409 1028.41 66.2213C1027.13 66.7774 1026.02 67.5392 1025.07 68.5064C1024.13 69.4737 1023.38 70.6102 1022.82 71.916C1022.27 73.2218 1021.99 74.6122 1021.99 76.0873C1021.99 77.5623 1022.27 78.9528 1022.82 80.2586C1023.38 81.5643 1024.13 82.7009 1025.07 83.6681C1026.02 84.6354 1027.13 85.4092 1028.41 85.9895C1029.69 86.5457 1031.06 86.8238 1032.51 86.8238C1033.96 86.8238 1035.33 86.5457 1036.61 85.9895C1037.89 85.4092 1039 84.6354 1039.94 83.6681C1040.89 82.7009 1041.64 81.5643 1042.19 80.2586C1042.75 78.9528 1043.03 77.5623 1043.03 76.0873ZM1019.38 76.0873C1019.38 74.2737 1019.72 72.5689 1020.39 70.9729C1021.1 69.3769 1022.04 67.9865 1023.22 66.8016C1024.41 65.6167 1025.8 64.6858 1027.39 64.0087C1028.99 63.3074 1030.7 62.9568 1032.51 62.9568C1034.32 62.9568 1036.03 63.3074 1037.62 64.0087C1039.22 64.6858 1040.61 65.6167 1041.79 66.8016C1042.98 67.9865 1043.91 69.3769 1044.59 70.9729C1045.29 72.5689 1045.64 74.2737 1045.64 76.0873C1045.64 77.9009 1045.29 79.6057 1044.59 81.2016C1043.91 82.7976 1042.98 84.188 1041.79 85.3729C1040.61 86.5578 1039.22 87.5009 1037.62 88.2021C1036.03 88.8792 1034.32 89.2177 1032.51 89.2177C1030.7 89.2177 1028.99 88.8792 1027.39 88.2021C1025.8 87.5009 1024.41 86.5578 1023.22 85.3729C1022.04 84.188 1021.1 82.7976 1020.39 81.2016C1019.72 79.6057 1019.38 77.9009 1019.38 76.0873Z" fill="white"/>
581
+ </svg>
582
+ <p>This ticket is valid for a single entry only</p>
583
+ <div>
584
+ <span>DIGITAL TICKET</span>
585
+ </div>
586
+ </div>
587
+ <div class="info passenger">
588
+ <div class="info__item">Customer</div>
589
+ <div class="info__detail">{{clientName}}</div>
590
+ </div>
591
+ <div class="info platform">
592
+ <span>SHOW </span><span>THIS </span><span>QR CODE</span>
593
+ <img src="{{qrCode}}" alt="QR Code" />
594
+ </div>
595
+ <div class="info departure">
596
+ <div class="info__item">Location</div>
597
+ <div class="info__detail">{{eventLocation}}</div>
598
+ </div>
599
+ <div class="info arrival">
600
+ <div class="info__item">Event</div>
601
+ <div class="info__detail">{{eventName}}</div>
602
+ </div>
603
+ <div class="info date">
604
+ <div class="info__item">Date</div>
605
+ <div class="info__detail">{{eventDate}}</div>
606
+ </div>
607
+ <div class="info time">
608
+ <div class="info__item">Time</div>
609
+ <div class="info__detail">{{eventTime}}</div>
610
+ </div>
611
+ </div>
612
+ </div>
613
+ </div>
614
+ </body>
615
+ </html>
616
+ `;
617
+ function renderTemplate$1(data) {
618
+ return Mustache$1.render(template$1, data);
619
+ }
620
+ var templateTicket = { renderTemplate: renderTemplate$1 };
621
+ const Mustache = require$$0$1;
622
+ const template = `
623
+ <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Ticket Confirmation</title></head><body style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;margin:0;padding:0;color:#333;background-color:#f9f9f9"><span style="opacity:0">{{ randomness }}</span><div class="container" style="border-radius:48px;width:100%;max-width:650px;background:#fff;margin:20px auto;overflow:hidden"><div class="header" style="background:#e31c25;color:#fff;text-align:left"><img alt="NO MORE SNOW" style="max-width:150px;height:auto;padding:20px" src="https://thecommunephuket.com/logo/nms_logotype-white.jpg"><h1 style="box-sizing:border-box;border-top:2px solid rgba(0,0,0,.1);padding:40px;text-align:center;margin:0;text-transform:uppercase;width:100%">Confirmation of Your Ticket Purchase</h1></div><div class="content" style="padding:20px;text-align:center"><h2 style="color:#000">Thank You, {{clientName}}!</h2><p style="color:#000;opacity:.5">Your purchase has been confirmed. Please find your ticket attached to this email.</p><div class="details" style="background-color:#f5f5f5;padding:10px;margin-top:20px;margin-bottom:20px;border-radius:24px"><h3 style="color:#000;margin:0">Event Details</h3><p style="display:flex;color:#000"><strong style="display:block;width:100%;opacity:.5;text-align:right;margin-right:.5rem">Event:</strong><span style="text-align:left;width:100%">{{eventName}}</span></p><p style="display:flex;color:#000"><strong style="display:block;width:100%;opacity:.5;text-align:right;margin-right:.5rem">Date:</strong><span style="text-align:left;width:100%">{{eventDate}}</span></p><p style="display:flex;color:#000"><strong style="display:block;width:100%;opacity:.5;text-align:right;margin-right:.5rem">Time:</strong><span style="text-align:left;width:100%">{{eventTime}}</span></p></div><div class="social-links" style="text-align:center"><h3 style="color:#000">Stay Connected</h3><p style="color:#000;opacity:.5">Follow us on Instagram for the latest updates and exclusive content!</p><table border="0" cellpadding="0" cellspacing="0" style="margin: 0 auto; border-collapse:separate;mso-table-lspace:0;mso-table-rspace:0;width:auto"><tr><td style="font-family:sans-serif;font-size:14px;vertical-align:top;background-color:#e31c25;border-radius:48px;text-align:center" valign="top" bgcolor="#e31c25" align="center"><a href="https://www.instagram.com/no.more.snow/?hl=en" target="_blank" style="display:inline-block;color:#fff;background-color:#e31c25;border:solid 1px #e31c25;border-radius:48px;box-sizing:border-box;cursor:pointer;text-decoration:none;font-size:14px;font-weight:700;margin:0;padding:12px 25px;text-transform:capitalize;border-color:#e31c25">Instagram</a></td></tr></table></div><div class="footer" style="text-align:center;padding:10px 20px;border-radius:24px"><p style="color:#000">Need help? Contact us:<a href="https://t.me/thecommunebar" style="color:#e31c25">@thecommunebar</a></p></div><p class="details copyright" style="color:#000;background-color:#f5f5f5;padding:20px;margin-top:20px;margin-bottom:20px;border-radius:24px;margin:0;box-sizing:border-box;text-align:center">&copy; 2024 NO MORE SNOW Ltd. All Rights Reserved.</p></div></div><span style="opacity:0">{{ randomness }}</span></body></html>
624
+ `;
625
+ function renderTemplate(data) {
626
+ return Mustache.render(template, data);
627
+ }
628
+ var templateEmail = { renderTemplate };
629
+ const path = require$$0$2;
630
+ const puppeteer = require$$2;
631
+ const QRCode = require$$3;
434
632
  const { sendEmail } = mailing;
633
+ const { renderTemplate: renderTicketTemplate } = templateTicket;
634
+ const { renderTemplate: renderEmailTemplate } = templateEmail;
635
+ function formatDate(dateString) {
636
+ const date = new Date(dateString);
637
+ const options = { day: "numeric", month: "long" };
638
+ return date.toLocaleDateString("en-US", options);
639
+ }
640
+ function formatTime(dateString) {
641
+ const date = new Date(dateString);
642
+ const options = { hour: "2-digit", minute: "2-digit", hour12: false };
643
+ return date.toLocaleTimeString("en-US", options);
644
+ }
435
645
  const controllerFactory$1 = (db, publicPath) => {
436
646
  const Ticket = db.ticket;
647
+ const Event = db.event;
437
648
  async function saveAndSendTicket(ticketData) {
438
649
  console.log(ticketData);
439
- const ticket = new Ticket(ticketData);
440
- const data = await ticket.save();
441
- const qrData = data._id.toString();
442
- const qrCode = await QRCode.toDataURL(qrData, { errorCorrectionLevel: "H", type: "image/png" });
443
- data.status = "unused";
444
- data.qrcode = qrCode;
445
- data.client_refactor.name = ticketData.name;
446
- data.client_refactor.email = ticketData.email;
447
- const templatePath = path.join(publicPath, "tickets", "template.png");
448
- const outputPath = path.join(publicPath, "tickets", `ticket-${data._id}.png`);
449
- data.image = `/tickets/ticket-${data._id}.png`;
450
- const ticketTemplate = await Jimp.read(templatePath);
451
- const qrImage = await Jimp.read(Buffer.from(qrCode.split(",")[1], "base64"));
452
- const resizedQrWidth = qrImage.bitmap.width * 1.5;
453
- const resizedQrHeight = qrImage.bitmap.height * 1.5;
454
- qrImage.resize(resizedQrWidth, resizedQrHeight);
455
- const { width: templateWidth, height: templateHeight } = ticketTemplate.bitmap;
456
- const xPosition = (templateWidth - resizedQrWidth) / 2;
457
- const yPosition = templateHeight / 2 - resizedQrHeight / 2 + 275;
458
- await ticketTemplate.composite(qrImage, xPosition, yPosition);
459
- await ticketTemplate.writeAsync(outputPath);
650
+ const quantity = ticketData.quantity || 1;
651
+ const ticketIds = [];
652
+ const pdfFiles = [];
653
+ const event = await Event.findById(ticketData.target).exec();
654
+ if (!event) {
655
+ console.error("Event not found!");
656
+ return;
657
+ }
658
+ for (let i = 0; i < quantity; i++) {
659
+ const ticket = new Ticket(ticketData);
660
+ const data = await ticket.save();
661
+ ticketIds.push(data._id.toString());
662
+ const qrData = data._id.toString();
663
+ const qrCode = await QRCode.toDataURL(qrData, {
664
+ errorCorrectionLevel: "H",
665
+ type: "image/png"
666
+ });
667
+ data.status = "unused";
668
+ data.qrcode = qrCode;
669
+ data.client_refactor.name = ticketData.name;
670
+ data.client_refactor.email = ticketData.email;
671
+ const renderedHtml = renderTicketTemplate({
672
+ clientName: ticketData.name || "No name",
673
+ qrCode,
674
+ eventLocation: event.location || process.env.APP_NAME,
675
+ eventName: event.name,
676
+ eventDate: formatDate(event.date.start),
677
+ eventTime: formatTime(event.date.start)
678
+ });
679
+ const dirPath = path.join(publicPath, "tickets");
680
+ const fileName = `ticket-${data._id.toString()}.pdf`;
681
+ const filePath = path.join(dirPath, fileName);
682
+ pdfFiles.push(filePath);
683
+ const browser = await puppeteer.launch();
684
+ const page = await browser.newPage();
685
+ await page.setContent(renderedHtml);
686
+ await page.pdf({
687
+ path: filePath,
688
+ format: "A4"
689
+ });
690
+ await browser.close();
691
+ data.image = `/tickets/${fileName}`;
692
+ await data.save();
693
+ }
460
694
  if (ticketData.email) {
461
- const emailBody = `
462
- <h1>Your Ticket from ${process.env.APP_NAME}</h1>
463
- <p>Dear ${ticketData.name || "Anonymous"},<br>
464
- Your ticket is now ready.<br>
465
- Please find your ticket attached below:</p>
466
- <img src="${process.env.API_URL + data.image}" alt="Ticket Image" style="width:100%;max-width:600px;height:auto;">
467
- Keep this ticket safe, and show the QR code at the entrance.<br>
468
- Looking forward to seeing you!<br>
469
- Best regards,<br>
470
- <p>The ${process.env.APP_NAME} Team</p>
471
- `;
695
+ const renderedHtmlEmail = renderEmailTemplate({
696
+ clientName: ticketData.name || "No name",
697
+ eventLocation: event.location || process.env.APP_NAME,
698
+ eventName: event.name,
699
+ eventDate: formatDate(event.date.start),
700
+ eventTime: formatTime(event.date.start),
701
+ randomness: Date.now()
702
+ });
472
703
  try {
473
- const emailSent = await sendEmail(ticketData.email, `Your Ticket from ${process.env.APP_NAME}`, emailBody);
704
+ const emailSent = await sendEmail(ticketData.email, `Your Tickets for ${event.name}`, renderedHtmlEmail, pdfFiles);
474
705
  } catch (err) {
475
- console.log(err);
706
+ console.error("Email sending failed:", err);
476
707
  }
477
708
  }
478
- await data.save();
479
- return data;
709
+ return {
710
+ tickets: ticketIds
711
+ };
480
712
  }
481
713
  const create = async (req, res) => {
482
714
  if (Array.isArray(req.body)) {
@@ -489,7 +721,9 @@ const controllerFactory$1 = (db, publicPath) => {
489
721
  res.json(tickets);
490
722
  } catch (err) {
491
723
  console.log(err);
492
- res.status(500).send({ errorCode: "SERVER_ERROR" });
724
+ res.status(500).send({
725
+ errorCode: "SERVER_ERROR"
726
+ });
493
727
  }
494
728
  } else {
495
729
  try {
@@ -497,7 +731,9 @@ const controllerFactory$1 = (db, publicPath) => {
497
731
  res.json(data);
498
732
  } catch (err) {
499
733
  console.log(err);
500
- res.status(500).send({ errorCode: "SERVER_ERROR" });
734
+ res.status(500).send({
735
+ errorCode: "SERVER_ERROR"
736
+ });
501
737
  }
502
738
  }
503
739
  };
@@ -516,6 +752,25 @@ const controllerFactory$1 = (db, publicPath) => {
516
752
  if (req.query.role) {
517
753
  query.role = req.query.role;
518
754
  }
755
+ options.limit = req.query.limit || 10;
756
+ options.skip = req.query.skip || 0;
757
+ const sortParam = req.query.sortParam || "createdAt";
758
+ const sortOrder = req.query.sortOrder === "asc" ? 1 : -1;
759
+ options.sort = {
760
+ [sortParam]: sortOrder,
761
+ "_id": 1
762
+ };
763
+ const search = req.query.search;
764
+ if (search) {
765
+ const parts = search.split(".");
766
+ let regexPattern = "";
767
+ if (parts.length === 2) {
768
+ regexPattern = parts.map((part) => part.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*")).join("\\.");
769
+ } else {
770
+ regexPattern = search.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
771
+ }
772
+ query["client_refactor.name"] = { $regex: new RegExp(regexPattern, "i") };
773
+ }
519
774
  try {
520
775
  const tickets = await Ticket.find(query, null, options).populate("user");
521
776
  if (!tickets) {
@@ -533,10 +788,13 @@ const controllerFactory$1 = (db, publicPath) => {
533
788
  if (!ticket) {
534
789
  return res.status(404).send({ errorCode: "TICKET_NOT_FOUND" });
535
790
  }
536
- if (ticket.status === "used") {
791
+ if (ticket.status === "used" && req.body.check) {
537
792
  return res.status(500).send({ errorCode: "TICKET_ALREADY_USED" });
538
793
  }
539
- const updatedTicket = await Ticket.findByIdAndUpdate(_id, req.body, { new: true });
794
+ if (ticket.status === "deactivated" && req.body.check) {
795
+ return res.status(500).send({ errorCode: "TICKET_DEACTIVATED" });
796
+ }
797
+ const updatedTicket = await Ticket.findOneAndUpdate({ _id }, req.body, { new: true });
540
798
  res.send(updatedTicket);
541
799
  } catch (err) {
542
800
  res.status(500).send({ errorCode: "SERVER_ERROR" });
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
3
- const require$$2 = require("path");
3
+ const require$$0 = require("path");
4
4
  const index = require("./index-CL9l0HRS.js");
5
- const require$$0 = require("sharp");
6
- const require$$1 = require("fs");
7
- const require$$2$1 = require("fs/promises");
5
+ const require$$0$1 = require("sharp");
6
+ const require$$0$2 = require("fs");
7
+ const require$$2 = require("fs/promises");
8
8
  const require$$4 = require("busboy");
9
- const path = require$$2;
9
+ const path = require$$0;
10
10
  const controllerFactory$1 = (db, publicPath) => {
11
11
  const uploadMultipleFileController = async (req, res, next) => {
12
12
  console.log("uploadMultipleFileController called");
@@ -40,10 +40,10 @@ function requireMiddlewareBusboy() {
40
40
  if (hasRequiredMiddlewareBusboy)
41
41
  return middlewareBusboy;
42
42
  hasRequiredMiddlewareBusboy = 1;
43
- const sharp = require$$0;
44
- const fs = require$$1;
45
- const fsp = require$$2$1;
46
- const path2 = require$$2;
43
+ const sharp = require$$0$1;
44
+ const fs = require$$0$2;
45
+ const fsp = require$$2;
46
+ const path2 = require$$0;
47
47
  const busboy = require$$4;
48
48
  const createThumbnail = async (originalPath) => {
49
49
  const thumbnailPath = path2.join(
@@ -1,11 +1,11 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
2
- import require$$2 from "path";
2
+ import require$$0 from "path";
3
3
  import { s as server$1 } from "./index-CGIn4v5E.mjs";
4
- import require$$0 from "sharp";
5
- import require$$1 from "fs";
6
- import require$$2$1 from "fs/promises";
4
+ import require$$0$1 from "sharp";
5
+ import require$$0$2 from "fs";
6
+ import require$$2 from "fs/promises";
7
7
  import require$$4 from "busboy";
8
- const path = require$$2;
8
+ const path = require$$0;
9
9
  const controllerFactory$1 = (db, publicPath) => {
10
10
  const uploadMultipleFileController = async (req, res, next) => {
11
11
  console.log("uploadMultipleFileController called");
@@ -39,10 +39,10 @@ function requireMiddlewareBusboy() {
39
39
  if (hasRequiredMiddlewareBusboy)
40
40
  return middlewareBusboy;
41
41
  hasRequiredMiddlewareBusboy = 1;
42
- const sharp = require$$0;
43
- const fs = require$$1;
44
- const fsp = require$$2$1;
45
- const path2 = require$$2;
42
+ const sharp = require$$0$1;
43
+ const fs = require$$0$2;
44
+ const fsp = require$$2;
45
+ const path2 = require$$0;
46
46
  const busboy = require$$4;
47
47
  const createThumbnail = async (originalPath) => {
48
48
  const thumbnailPath = path2.join(
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
3
- const require$$2 = require("path");
3
+ const require$$0 = require("path");
4
4
  const index = require("./index-CL9l0HRS.js");
5
- const path = require$$2;
5
+ const path = require$$0;
6
6
  const controllerFactory$1 = (db) => {
7
7
  const Photo = db.photo;
8
8
  const read = async (req, res) => {
@@ -1,7 +1,7 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
2
- import require$$2 from "path";
2
+ import require$$0 from "path";
3
3
  import { s as server } from "./index-CGIn4v5E.mjs";
4
- const path = require$$2;
4
+ const path = require$$0;
5
5
  const controllerFactory$1 = (db) => {
6
6
  const Photo = db.photo;
7
7
  const read = async (req, res) => {
@@ -2,7 +2,7 @@
2
2
  const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
3
3
  const require$$0 = require("sitemap");
4
4
  const require$$1 = require("zlib");
5
- const mailing$1 = require("./mailing-CxEcQ8NY.js");
5
+ const mailing$1 = require("./mailing-BX0q8DIs.js");
6
6
  const { SitemapStream, streamToPromise } = require$$0;
7
7
  const { createGzip } = require$$1;
8
8
  async function generateSitemap(db, req, res) {
@@ -1,7 +1,7 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
2
2
  import require$$0 from "sitemap";
3
3
  import require$$1 from "zlib";
4
- import { m as mailing$1 } from "./mailing-DT2ZSkCD.mjs";
4
+ import { m as mailing$1 } from "./mailing-Cdp8NXhP.mjs";
5
5
  const { SitemapStream, streamToPromise } = require$$0;
6
6
  const { createGzip } = require$$1;
7
7
  async function generateSitemap(db, req, res) {