@ozdao/prometheus-framework 0.2.198 → 0.2.199

Sign up to get free protection for your applications and to get access to all the features.
Files changed (463) hide show
  1. package/dist/builder.js +3 -10
  2. package/dist/builder.mjs +3 -10
  3. package/dist/events.server.js +1 -1
  4. package/dist/events.server.mjs +1 -1
  5. package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -0
  6. package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5042 -0
  7. package/dist/node_modules/date-fns/_lib/addLeadingZeros.cjs +1 -0
  8. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  9. package/dist/node_modules/date-fns/_lib/defaultOptions.cjs +1 -0
  10. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  11. package/dist/node_modules/date-fns/_lib/format/formatters.cjs +1 -0
  12. package/dist/node_modules/date-fns/_lib/format/formatters.js +518 -0
  13. package/dist/node_modules/date-fns/_lib/format/lightFormatters.cjs +1 -0
  14. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  15. package/dist/node_modules/date-fns/_lib/format/longFormatters.cjs +1 -0
  16. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  17. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
  18. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  19. package/dist/node_modules/date-fns/_lib/protectedTokens.cjs +1 -0
  20. package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
  21. package/dist/node_modules/date-fns/add.cjs +1 -0
  22. package/dist/node_modules/date-fns/add.js +20 -0
  23. package/dist/node_modules/date-fns/addDays.cjs +1 -0
  24. package/dist/node_modules/date-fns/addDays.js +10 -0
  25. package/dist/node_modules/date-fns/addHours.cjs +1 -0
  26. package/dist/node_modules/date-fns/addHours.js +9 -0
  27. package/dist/node_modules/date-fns/addMilliseconds.cjs +1 -0
  28. package/dist/node_modules/date-fns/addMilliseconds.js +10 -0
  29. package/dist/node_modules/date-fns/addMonths.cjs +1 -0
  30. package/dist/node_modules/date-fns/addMonths.js +20 -0
  31. package/dist/node_modules/date-fns/addQuarters.cjs +1 -0
  32. package/dist/node_modules/date-fns/addQuarters.js +9 -0
  33. package/dist/node_modules/date-fns/addYears.cjs +1 -0
  34. package/dist/node_modules/date-fns/addYears.js +8 -0
  35. package/dist/node_modules/date-fns/compareAsc.cjs +1 -0
  36. package/dist/node_modules/date-fns/compareAsc.js +9 -0
  37. package/dist/node_modules/date-fns/constants.cjs +1 -0
  38. package/dist/node_modules/date-fns/constants.js +8 -0
  39. package/dist/node_modules/date-fns/constructFrom.cjs +1 -0
  40. package/dist/node_modules/date-fns/constructFrom.js +7 -0
  41. package/dist/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
  42. package/dist/node_modules/date-fns/differenceInCalendarDays.js +11 -0
  43. package/dist/node_modules/date-fns/differenceInCalendarYears.cjs +1 -0
  44. package/dist/node_modules/date-fns/differenceInCalendarYears.js +9 -0
  45. package/dist/node_modules/date-fns/differenceInYears.cjs +1 -0
  46. package/dist/node_modules/date-fns/differenceInYears.js +13 -0
  47. package/dist/node_modules/date-fns/eachDayOfInterval.cjs +1 -0
  48. package/dist/node_modules/date-fns/eachDayOfInterval.js +16 -0
  49. package/dist/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -0
  50. package/dist/node_modules/date-fns/eachQuarterOfInterval.js +17 -0
  51. package/dist/node_modules/date-fns/endOfQuarter.cjs +1 -0
  52. package/dist/node_modules/date-fns/endOfQuarter.js +9 -0
  53. package/dist/node_modules/date-fns/endOfWeek.cjs +1 -0
  54. package/dist/node_modules/date-fns/endOfWeek.js +11 -0
  55. package/dist/node_modules/date-fns/endOfYear.cjs +1 -0
  56. package/dist/node_modules/date-fns/endOfYear.js +9 -0
  57. package/dist/node_modules/date-fns/format.cjs +1 -0
  58. package/dist/node_modules/date-fns/format.js +59 -0
  59. package/dist/node_modules/date-fns/getDay.cjs +1 -0
  60. package/dist/node_modules/date-fns/getDay.js +8 -0
  61. package/dist/node_modules/date-fns/getDayOfYear.cjs +1 -0
  62. package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
  63. package/dist/node_modules/date-fns/getDaysInMonth.cjs +1 -0
  64. package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
  65. package/dist/node_modules/date-fns/getDefaultOptions.cjs +1 -0
  66. package/dist/node_modules/date-fns/getDefaultOptions.js +8 -0
  67. package/dist/node_modules/date-fns/getHours.cjs +1 -0
  68. package/dist/node_modules/date-fns/getHours.js +8 -0
  69. package/dist/node_modules/date-fns/getISODay.cjs +1 -0
  70. package/dist/node_modules/date-fns/getISODay.js +9 -0
  71. package/dist/node_modules/date-fns/getISOWeek.cjs +1 -0
  72. package/dist/node_modules/date-fns/getISOWeek.js +12 -0
  73. package/dist/node_modules/date-fns/getISOWeekYear.cjs +1 -0
  74. package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
  75. package/dist/node_modules/date-fns/getMinutes.cjs +1 -0
  76. package/dist/node_modules/date-fns/getMinutes.js +8 -0
  77. package/dist/node_modules/date-fns/getMonth.cjs +1 -0
  78. package/dist/node_modules/date-fns/getMonth.js +8 -0
  79. package/dist/node_modules/date-fns/getQuarter.cjs +1 -0
  80. package/dist/node_modules/date-fns/getQuarter.js +9 -0
  81. package/dist/node_modules/date-fns/getSeconds.cjs +1 -0
  82. package/dist/node_modules/date-fns/getSeconds.js +8 -0
  83. package/dist/node_modules/date-fns/getWeek.cjs +1 -0
  84. package/dist/node_modules/date-fns/getWeek.js +12 -0
  85. package/dist/node_modules/date-fns/getWeekYear.cjs +1 -0
  86. package/dist/node_modules/date-fns/getWeekYear.js +17 -0
  87. package/dist/node_modules/date-fns/getYear.cjs +1 -0
  88. package/dist/node_modules/date-fns/getYear.js +8 -0
  89. package/dist/node_modules/date-fns/isAfter.cjs +1 -0
  90. package/dist/node_modules/date-fns/isAfter.js +9 -0
  91. package/dist/node_modules/date-fns/isBefore.cjs +1 -0
  92. package/dist/node_modules/date-fns/isBefore.js +9 -0
  93. package/dist/node_modules/date-fns/isDate.cjs +1 -0
  94. package/dist/node_modules/date-fns/isDate.js +7 -0
  95. package/dist/node_modules/date-fns/isEqual.cjs +1 -0
  96. package/dist/node_modules/date-fns/isEqual.js +9 -0
  97. package/dist/node_modules/date-fns/isSameQuarter.cjs +1 -0
  98. package/dist/node_modules/date-fns/isSameQuarter.js +9 -0
  99. package/dist/node_modules/date-fns/isValid.cjs +1 -0
  100. package/dist/node_modules/date-fns/isValid.js +12 -0
  101. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +1 -0
  102. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  103. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +1 -0
  104. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  105. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +1 -0
  106. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  107. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +1 -0
  108. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  109. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +1 -0
  110. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  111. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +1 -0
  112. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  113. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +1 -0
  114. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  115. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.cjs +1 -0
  116. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  117. package/dist/node_modules/date-fns/locale/en-US/_lib/match.cjs +1 -0
  118. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  119. package/dist/node_modules/date-fns/locale/en-US.cjs +1 -0
  120. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  121. package/dist/node_modules/date-fns/parse/_lib/Parser.cjs +1 -0
  122. package/dist/node_modules/date-fns/parse/_lib/Parser.js +22 -0
  123. package/dist/node_modules/date-fns/parse/_lib/Setter.cjs +1 -0
  124. package/dist/node_modules/date-fns/parse/_lib/Setter.js +40 -0
  125. package/dist/node_modules/date-fns/parse/_lib/constants.cjs +1 -0
  126. package/dist/node_modules/date-fns/parse/_lib/constants.js +49 -0
  127. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.cjs +1 -0
  128. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
  129. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.cjs +1 -0
  130. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
  131. package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.cjs +1 -0
  132. package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +61 -0
  133. package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.cjs +1 -0
  134. package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
  135. package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.cjs +1 -0
  136. package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
  137. package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.cjs +1 -0
  138. package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
  139. package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.cjs +1 -0
  140. package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
  141. package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.cjs +1 -0
  142. package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
  143. package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs +1 -0
  144. package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
  145. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.cjs +1 -0
  146. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
  147. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.cjs +1 -0
  148. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
  149. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.cjs +1 -0
  150. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
  151. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.cjs +1 -0
  152. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
  153. package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.cjs +1 -0
  154. package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +99 -0
  155. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.cjs +1 -0
  156. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
  157. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.cjs +1 -0
  158. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
  159. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.cjs +1 -0
  160. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
  161. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.cjs +1 -0
  162. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
  163. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.cjs +1 -0
  164. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +74 -0
  165. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.cjs +1 -0
  166. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
  167. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.cjs +1 -0
  168. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
  169. package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.cjs +1 -0
  170. package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
  171. package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.cjs +1 -0
  172. package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +71 -0
  173. package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.cjs +1 -0
  174. package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +70 -0
  175. package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.cjs +1 -0
  176. package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
  177. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.cjs +1 -0
  178. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +74 -0
  179. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.cjs +1 -0
  180. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +71 -0
  181. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.cjs +1 -0
  182. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +70 -0
  183. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.cjs +1 -0
  184. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
  185. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.cjs +1 -0
  186. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
  187. package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.cjs +1 -0
  188. package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +49 -0
  189. package/dist/node_modules/date-fns/parse/_lib/parsers.cjs +1 -0
  190. package/dist/node_modules/date-fns/parse/_lib/parsers.js +67 -0
  191. package/dist/node_modules/date-fns/parse/_lib/utils.cjs +1 -0
  192. package/dist/node_modules/date-fns/parse/_lib/utils.js +103 -0
  193. package/dist/node_modules/date-fns/parse.cjs +1 -0
  194. package/dist/node_modules/date-fns/parse.js +90 -0
  195. package/dist/node_modules/date-fns/set.cjs +1 -0
  196. package/dist/node_modules/date-fns/set.js +11 -0
  197. package/dist/node_modules/date-fns/setDay.cjs +1 -0
  198. package/dist/node_modules/date-fns/setDay.js +12 -0
  199. package/dist/node_modules/date-fns/setHours.cjs +1 -0
  200. package/dist/node_modules/date-fns/setHours.js +9 -0
  201. package/dist/node_modules/date-fns/setISODay.cjs +1 -0
  202. package/dist/node_modules/date-fns/setISODay.js +11 -0
  203. package/dist/node_modules/date-fns/setISOWeek.cjs +1 -0
  204. package/dist/node_modules/date-fns/setISOWeek.js +10 -0
  205. package/dist/node_modules/date-fns/setMilliseconds.cjs +1 -0
  206. package/dist/node_modules/date-fns/setMilliseconds.js +9 -0
  207. package/dist/node_modules/date-fns/setMinutes.cjs +1 -0
  208. package/dist/node_modules/date-fns/setMinutes.js +9 -0
  209. package/dist/node_modules/date-fns/setMonth.cjs +1 -0
  210. package/dist/node_modules/date-fns/setMonth.js +13 -0
  211. package/dist/node_modules/date-fns/setSeconds.cjs +1 -0
  212. package/dist/node_modules/date-fns/setSeconds.js +9 -0
  213. package/dist/node_modules/date-fns/setWeek.cjs +1 -0
  214. package/dist/node_modules/date-fns/setWeek.js +10 -0
  215. package/dist/node_modules/date-fns/setYear.cjs +1 -0
  216. package/dist/node_modules/date-fns/setYear.js +10 -0
  217. package/dist/node_modules/date-fns/startOfDay.cjs +1 -0
  218. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  219. package/dist/node_modules/date-fns/startOfISOWeek.cjs +1 -0
  220. package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
  221. package/dist/node_modules/date-fns/startOfISOWeekYear.cjs +1 -0
  222. package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  223. package/dist/node_modules/date-fns/startOfMonth.cjs +1 -0
  224. package/dist/node_modules/date-fns/startOfMonth.js +9 -0
  225. package/dist/node_modules/date-fns/startOfQuarter.cjs +1 -0
  226. package/dist/node_modules/date-fns/startOfQuarter.js +9 -0
  227. package/dist/node_modules/date-fns/startOfWeek.cjs +1 -0
  228. package/dist/node_modules/date-fns/startOfWeek.js +11 -0
  229. package/dist/node_modules/date-fns/startOfWeekYear.cjs +1 -0
  230. package/dist/node_modules/date-fns/startOfWeekYear.js +13 -0
  231. package/dist/node_modules/date-fns/startOfYear.cjs +1 -0
  232. package/dist/node_modules/date-fns/startOfYear.js +10 -0
  233. package/dist/node_modules/date-fns/sub.cjs +1 -0
  234. package/dist/node_modules/date-fns/sub.js +19 -0
  235. package/dist/node_modules/date-fns/subDays.cjs +1 -0
  236. package/dist/node_modules/date-fns/subDays.js +8 -0
  237. package/dist/node_modules/date-fns/subMonths.cjs +1 -0
  238. package/dist/node_modules/date-fns/subMonths.js +8 -0
  239. package/dist/node_modules/date-fns/subYears.cjs +1 -0
  240. package/dist/node_modules/date-fns/subYears.js +8 -0
  241. package/dist/node_modules/date-fns/toDate.cjs +1 -0
  242. package/dist/node_modules/date-fns/toDate.js +8 -0
  243. package/dist/node_modules/date-fns/transpose.cjs +1 -0
  244. package/dist/node_modules/date-fns/transpose.js +18 -0
  245. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +16 -15
  247. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +13 -12
  249. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +12 -11
  251. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +6 -5
  253. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  255. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
  257. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +11 -10
  259. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  261. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  263. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  265. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +11 -9
  267. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +8 -7
  269. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -4
  271. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +7 -6
  275. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +16 -15
  277. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +11 -8
  279. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +7 -6
  281. package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.js +9 -8
  283. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +5 -4
  285. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +27 -25
  287. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +22 -20
  289. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +87 -93
  291. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +142 -73
  293. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  295. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -0
  296. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +110 -0
  297. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +8 -7
  299. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  301. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +2 -2
  303. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +19 -18
  305. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +124 -132
  307. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  309. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +2 -4
  311. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  313. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  315. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  317. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +2 -1
  319. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.js +5 -5
  321. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  323. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  325. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +76 -70
  327. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  329. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  331. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -1
  333. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  335. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  337. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  339. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  341. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +9 -9
  343. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  345. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -0
  347. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +28 -27
  349. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +14 -13
  351. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  353. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  354. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  355. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  357. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  359. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +3 -2
  361. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -0
  363. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  365. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  367. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  369. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.js +1 -1
  371. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
  373. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +3 -2
  375. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +8 -7
  377. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  379. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +12 -9
  381. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  383. package/dist/prometheus-framework.cjs.js +22 -22
  384. package/dist/prometheus-framework.es.js +3228 -3201
  385. package/dist/style.css +1 -1
  386. package/dist/tickets.controller-CB549rZT.mjs +402 -0
  387. package/dist/tickets.controller-yqXXLR62.js +401 -0
  388. package/dist/wallet.server.js +1 -1
  389. package/dist/wallet.server.mjs +1 -1
  390. package/package.json +1 -2
  391. package/src/builder/webpack/webpack.config.base.js +2 -2
  392. package/src/builder/webpack/webpack.config.client.js +1 -1
  393. package/src/builder/webpack/webpack.config.spa.js +0 -6
  394. package/src/components/AskToLogin/AskToLogin.vue +1 -1
  395. package/src/components/EditImages/EditImages.vue +1 -1
  396. package/src/components/Error/Error.vue +1 -1
  397. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  398. package/src/components/UploadImage/UploadImage.vue +1 -1
  399. package/src/modules/auth/views/components/pages/EnterCode.vue +1 -1
  400. package/src/modules/auth/views/components/pages/EnterPassword.vue +1 -1
  401. package/src/modules/auth/views/components/pages/ResetPassword.vue +1 -1
  402. package/src/modules/auth/views/components/pages/SignIn.vue +1 -1
  403. package/src/modules/auth/views/components/pages/SignUp.vue +1 -1
  404. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  405. package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
  406. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  407. package/src/modules/constructor/components/elements/Image.vue +2 -2
  408. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  409. package/src/modules/events/components/blocks/CardEvent.vue +2 -2
  410. package/src/modules/events/components/pages/EditEvent.vue +12 -1
  411. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  412. package/src/modules/events/components/pages/Event.vue +1 -1
  413. package/src/modules/events/components/sections/HeroEvent.vue +4 -4
  414. package/src/modules/events/components/sections/SectionPreviousEvents.vue +1 -1
  415. package/src/modules/events/components/sections/SectionSpecialGuests.vue +1 -1
  416. package/src/modules/events/controllers/utils/templateEmail.js +1 -1
  417. package/src/modules/events/controllers/utils/templateTicket.js +1 -1
  418. package/src/modules/gallery/components/pages/Gallery.vue +1 -1
  419. package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -2
  420. package/src/modules/globals/views/components/blocks/CardHeader.vue +2 -2
  421. package/src/modules/globals/views/components/layouts/App.vue +15 -39
  422. package/src/modules/globals/views/components/layouts/Client.vue +89 -45
  423. package/src/modules/globals/views/components/partials/Footer.vue +7 -7
  424. package/src/modules/globals/views/components/partials/NavigationBar.vue +39 -16
  425. package/src/modules/globals/views/components/sections/Walkthrough.vue +2 -2
  426. package/src/modules/landing/components/sections/Examples.vue +1 -1
  427. package/src/modules/landing/components/sections/HowItWorksSection.vue +3 -3
  428. package/src/modules/landing/components/sections/HowToBuyWDR.vue +1 -1
  429. package/src/modules/landing/components/sections/InstagramSection.vue +2 -2
  430. package/src/modules/landing/components/sections/MobileApp.vue +1 -1
  431. package/src/modules/landing/components/sections/SectionEarn.vue +2 -2
  432. package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
  433. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +1 -1
  434. package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
  435. package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
  436. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +3 -3
  437. package/src/modules/landing/router/landing.js +1 -1
  438. package/src/modules/orders/components/blocks/CardOrder.vue +7 -7
  439. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  440. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  441. package/src/modules/orders/components/pages/OrderBackoffice.vue +3 -4
  442. package/src/modules/orders/components/pages/Orders.vue +0 -3
  443. package/src/modules/orders/components/pages/Orders_refact.vue +7 -7
  444. package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
  445. package/src/modules/organizations/components/blocks/CardOrganization.vue +2 -2
  446. package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
  447. package/src/modules/organizations/components/blocks/DepartmentSub.vue +1 -1
  448. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  449. package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
  450. package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
  451. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  452. package/src/modules/products/components/blocks/EditFilters.vue +1 -1
  453. package/src/modules/products/components/blocks/Images360.vue +1 -1
  454. package/src/modules/products/components/blocks/ImagesThumbnails.vue +1 -1
  455. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  456. package/src/modules/products/components/sections/MenuSection.vue +1 -1
  457. package/src/modules/products/components/sections/ProductInformationSection.vue +5 -5
  458. package/src/modules/products/components/sections/SectionProduct.vue +1 -1
  459. package/src/modules/spots/components/blocks/SpotSub.vue +1 -1
  460. package/src/modules/users/components/blocks/CardUser.vue +1 -1
  461. package/src/modules/users/components/pages/Profile.vue +1 -1
  462. package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +3 -3
  463. package/src/modules/wallet/views/components/pages/Wallet.vue +4 -4
@@ -1,7 +1,7 @@
1
- import { ref as v, watchEffect as _, openBlock as t, createElementBlock as l, createBlock as u, unref as b, withCtx as k, Fragment as V, renderList as E, createElementVNode as w, createVNode as c, createCommentVNode as n } from "vue";
2
- import { VueDraggableNext as C } from "../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
1
+ import { ref as v, watchEffect as _, openBlock as t, createElementBlock as o, createBlock as u, unref as b, withCtx as k, Fragment as V, renderList as E, createElementVNode as w, createVNode as c, createCommentVNode as n } from "vue";
2
+ import { VueDraggableNext as y } from "../../../../node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js";
3
3
  import p from "../UploadImageMultiple/UploadImageMultiple.vue.js";
4
- import y from "../../modules/icons/navigation/IconCross.vue.js";
4
+ import C from "../../modules/icons/navigation/IconCross.vue.js";
5
5
  import "./EditImages.vue2.js";
6
6
  const I = { class: "flex-nowrap flex gap-small" }, P = { class: "pos-relative" }, U = ["src"], j = {
7
7
  key: 1,
@@ -23,28 +23,29 @@ const I = { class: "flex-nowrap flex gap-small" }, P = { class: "pos-relative" }
23
23
  _(() => {
24
24
  e.value = [...a.images];
25
25
  });
26
- const o = () => {
26
+ const s = () => {
27
27
  f("update:images", e.value);
28
- }, i = (s) => {
29
- e.value = [...e.value, ...s], o();
30
- }, x = (s) => {
31
- e.value.splice(s, 1), o();
28
+ }, i = (l) => {
29
+ e.value = [...e.value, ...l], s();
30
+ }, x = (l) => {
31
+ e.value.splice(l, 1), s();
32
32
  };
33
- return (s, d) => (t(), l("div", I, [
34
- e.value.length > 0 ? (t(), u(b(C), {
33
+ return (l, d) => (t(), o("div", I, [
34
+ e.value.length > 0 ? (t(), u(b(y), {
35
35
  key: 0,
36
36
  class: "gap-small flex dragArea list-group w-full",
37
37
  modelValue: e.value,
38
38
  "onUpdate:modelValue": d[0] || (d[0] = (r) => e.value = r),
39
- onChange: o
39
+ onChange: s
40
40
  }, {
41
41
  default: k(() => [
42
- (t(!0), l(V, null, E(e.value, (r, h) => (t(), l("div", P, [
42
+ (t(!0), o(V, null, E(e.value, (r, h) => (t(), o("div", P, [
43
43
  w("img", {
44
+ loading: "lazy",
44
45
  class: "i-extra object-fit-contain bg-black-transp-5 pd-nano radius-small o-hidden",
45
- src: (s.FILE_SERVER_URL || "") + r
46
+ src: (l.FILE_SERVER_URL || "") + r
46
47
  }, null, 8, U),
47
- c(y, {
48
+ c(C, {
48
49
  onClick: (N) => x(h),
49
50
  class: "cursor-pointer pos-absolute t-center flex-center flex radius-extra i-medium bg-red pos-t-10-negative pos-r-10-negative pd-micro"
50
51
  }, null, 8, ["onClick"])
@@ -52,7 +53,7 @@ const I = { class: "flex-nowrap flex gap-small" }, P = { class: "pos-relative" }
52
53
  ]),
53
54
  _: 1
54
55
  }, 8, ["modelValue"])) : n("", !0),
55
- e.value.length > 0 ? (t(), l("div", j, [
56
+ e.value.length > 0 ? (t(), o("div", j, [
56
57
  c(p, {
57
58
  "onUpdate:images": i,
58
59
  text: "Add",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue");;/* empty css */const X=["src"],_={__name:"PhotoViewer",props:{photoUrl:String,show:Boolean},setup(v){const s=o.ref(1),a=o.reactive({x:0,y:0}),r=o.ref(!1),u=o.reactive({x:0,y:0}),d=o.ref(1),i=o.ref(0),p=o.computed(()=>({transform:`scale(${s.value}) translate(${a.x}px, ${a.y}px)`})),f=e=>{e.preventDefault();const t=e.deltaY>0?-.1:.1;s.value=Math.min(Math.max(1,s.value+t),3)},m=e=>{e.preventDefault(),r.value=!0,u.x=e.type==="mousedown"?e.clientX:e.touches[0].clientX,u.y=e.type==="mousedown"?e.clientY:e.touches[0].clientY;const t=n=>{if(r.value){const l=n.type==="mousemove"?n.clientX:n.touches[0].clientX,h=n.type==="mousemove"?n.clientY:n.touches[0].clientY;a.x+=(l-u.x)/s.value,a.y+=(h-u.y)/s.value,u.x=l,u.y=h}},c=()=>{r.value=!1,document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",c),document.removeEventListener("touchmove",t),document.removeEventListener("touchend",c)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",c),document.addEventListener("touchmove",t),document.addEventListener("touchend",c)},y=e=>{if(e.touches.length===2){const t=e.touches[0],c=e.touches[1],n=Math.abs(t.clientX-c.clientX),l=Math.abs(t.clientY-c.clientY);i.value=Math.sqrt(n**2+l**2),d.value=s.value}else m(e)},g=e=>{if(e.touches.length===2){e.preventDefault();const t=e.touches[0],c=e.touches[1],n=Math.abs(t.clientX-c.clientX),l=Math.abs(t.clientY-c.clientY),Y=Math.sqrt(n**2+l**2)/i.value;s.value=Math.min(Math.max(1,d.value*Y),3)}},M=e=>{e.touches.length===0&&(i.value=0)},x=()=>{s.value=1,a.x=0,a.y=0};return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:"photo-container",onWheel:f,onMousedown:m,onTouchstart:y,onTouchmove:g,onTouchend:M},[o.createElementVNode("img",{src:v.photoUrl,style:o.normalizeStyle(p.value),ref:"image",onLoad:x},null,44,X)],32))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue");;/* empty css */const X=["src"],_={__name:"PhotoViewer",props:{photoUrl:String,show:Boolean},setup(v){const s=o.ref(1),a=o.reactive({x:0,y:0}),r=o.ref(!1),u=o.reactive({x:0,y:0}),d=o.ref(1),i=o.ref(0),p=o.computed(()=>({transform:`scale(${s.value}) translate(${a.x}px, ${a.y}px)`})),f=e=>{e.preventDefault();const t=e.deltaY>0?-.1:.1;s.value=Math.min(Math.max(1,s.value+t),3)},m=e=>{e.preventDefault(),r.value=!0,u.x=e.type==="mousedown"?e.clientX:e.touches[0].clientX,u.y=e.type==="mousedown"?e.clientY:e.touches[0].clientY;const t=c=>{if(r.value){const l=c.type==="mousemove"?c.clientX:c.touches[0].clientX,h=c.type==="mousemove"?c.clientY:c.touches[0].clientY;a.x+=(l-u.x)/s.value,a.y+=(h-u.y)/s.value,u.x=l,u.y=h}},n=()=>{r.value=!1,document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n),document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),document.addEventListener("touchmove",t),document.addEventListener("touchend",n)},y=e=>{if(e.touches.length===2){const t=e.touches[0],n=e.touches[1],c=Math.abs(t.clientX-n.clientX),l=Math.abs(t.clientY-n.clientY);i.value=Math.sqrt(c**2+l**2),d.value=s.value}else m(e)},g=e=>{if(e.touches.length===2){e.preventDefault();const t=e.touches[0],n=e.touches[1],c=Math.abs(t.clientX-n.clientX),l=Math.abs(t.clientY-n.clientY),Y=Math.sqrt(c**2+l**2)/i.value;s.value=Math.min(Math.max(1,d.value*Y),3)}},M=e=>{e.touches.length===0&&(i.value=0)},x=()=>{s.value=1,a.x=0,a.y=0};return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:"photo-container",onWheel:f,onMousedown:m,onTouchstart:y,onTouchmove:g,onTouchend:M},[o.createElementVNode("img",{loading:"lazy",src:v.photoUrl,style:o.normalizeStyle(p.value),ref:"image",onLoad:x},null,44,X)],32))}};exports.default=_;
@@ -1,15 +1,15 @@
1
- import { ref as l, reactive as p, computed as L, openBlock as D, createElementBlock as _, createElementVNode as w, normalizeStyle as E } from "vue";
1
+ import { ref as u, reactive as p, computed as L, openBlock as D, createElementBlock as _, createElementVNode as w, normalizeStyle as E } from "vue";
2
2
  /* empty css */
3
- const T = ["src"], B = {
3
+ const T = ["src"], z = {
4
4
  __name: "PhotoViewer",
5
5
  props: {
6
6
  photoUrl: String,
7
7
  show: Boolean
8
8
  },
9
9
  setup(v) {
10
- const c = l(1), s = p({ x: 0, y: 0 }), i = l(!1), a = p({ x: 0, y: 0 }), d = l(1), r = l(0), f = L(() => ({
10
+ const c = u(1), s = p({ x: 0, y: 0 }), i = u(!1), a = p({ x: 0, y: 0 }), d = u(1), r = u(0), y = L(() => ({
11
11
  transform: `scale(${c.value}) translate(${s.x}px, ${s.y}px)`
12
- })), y = (t) => {
12
+ })), f = (t) => {
13
13
  t.preventDefault();
14
14
  const e = t.deltaY > 0 ? -0.1 : 0.1;
15
15
  c.value = Math.min(Math.max(1, c.value + e), 3);
@@ -17,8 +17,8 @@ const T = ["src"], B = {
17
17
  t.preventDefault(), i.value = !0, a.x = t.type === "mousedown" ? t.clientX : t.touches[0].clientX, a.y = t.type === "mousedown" ? t.clientY : t.touches[0].clientY;
18
18
  const e = (n) => {
19
19
  if (i.value) {
20
- const u = n.type === "mousemove" ? n.clientX : n.touches[0].clientX, h = n.type === "mousemove" ? n.clientY : n.touches[0].clientY;
21
- s.x += (u - a.x) / c.value, s.y += (h - a.y) / c.value, a.x = u, a.y = h;
20
+ const l = n.type === "mousemove" ? n.clientX : n.touches[0].clientX, h = n.type === "mousemove" ? n.clientY : n.touches[0].clientY;
21
+ s.x += (l - a.x) / c.value, s.y += (h - a.y) / c.value, a.x = l, a.y = h;
22
22
  }
23
23
  }, o = () => {
24
24
  i.value = !1, document.removeEventListener("mousemove", e), document.removeEventListener("mouseup", o), document.removeEventListener("touchmove", e), document.removeEventListener("touchend", o);
@@ -26,14 +26,14 @@ const T = ["src"], B = {
26
26
  document.addEventListener("mousemove", e), document.addEventListener("mouseup", o), document.addEventListener("touchmove", e), document.addEventListener("touchend", o);
27
27
  }, x = (t) => {
28
28
  if (t.touches.length === 2) {
29
- const e = t.touches[0], o = t.touches[1], n = Math.abs(e.clientX - o.clientX), u = Math.abs(e.clientY - o.clientY);
30
- r.value = Math.sqrt(n ** 2 + u ** 2), d.value = c.value;
29
+ const e = t.touches[0], o = t.touches[1], n = Math.abs(e.clientX - o.clientX), l = Math.abs(e.clientY - o.clientY);
30
+ r.value = Math.sqrt(n ** 2 + l ** 2), d.value = c.value;
31
31
  } else
32
32
  m(t);
33
33
  }, g = (t) => {
34
34
  if (t.touches.length === 2) {
35
35
  t.preventDefault();
36
- const e = t.touches[0], o = t.touches[1], n = Math.abs(e.clientX - o.clientX), u = Math.abs(e.clientY - o.clientY), X = Math.sqrt(n ** 2 + u ** 2) / r.value;
36
+ const e = t.touches[0], o = t.touches[1], n = Math.abs(e.clientX - o.clientX), l = Math.abs(e.clientY - o.clientY), X = Math.sqrt(n ** 2 + l ** 2) / r.value;
37
37
  c.value = Math.min(Math.max(1, d.value * X), 3);
38
38
  }
39
39
  }, M = (t) => {
@@ -43,15 +43,16 @@ const T = ["src"], B = {
43
43
  };
44
44
  return (t, e) => (D(), _("div", {
45
45
  class: "photo-container",
46
- onWheel: y,
46
+ onWheel: f,
47
47
  onMousedown: m,
48
48
  onTouchstart: x,
49
49
  onTouchmove: g,
50
50
  onTouchend: M
51
51
  }, [
52
52
  w("img", {
53
+ loading: "lazy",
53
54
  src: v.photoUrl,
54
- style: E(f.value),
55
+ style: E(y.value),
55
56
  ref: "image",
56
57
  onLoad: Y
57
58
  }, null, 44, T)
@@ -59,5 +60,5 @@ const T = ["src"], B = {
59
60
  }
60
61
  };
61
62
  export {
62
- B as default
63
+ z as default
63
64
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("axios"),C=["src"],v={key:1,class:"flex-v-center flex-h-center flex w-100 h-100 bg-second"},g=e.createElementVNode("svg",{class:"i-medium",width:"104",height:"104",viewBox:"0 0 104 104",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"rgb(var(--white))",d:"M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"})],-1),w=[g],_={__name:"UploadImage",props:["uploadPath","photo"],emits:["update:photo"],setup(n,{emit:u}){const l=e.ref(null),a=e.ref(null),r=n,d=u;e.watch(r,({photo:t})=>{t&&(l.value=t)});function f(){a.value.click()}async function i(t){let o=t.target.files[0];if(!o){console.error("No file selected");return}let s=new FormData;s.append("file",o),console.log("Sending file:",o.name);try{let p=await h.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(r.uploadPath)}`,s);console.log("Upload response:",p),l.value=p.data[0].filepath,d("update:photo",l.value)}catch(c){console.error("Upload error:",c)}}function m(t){t.preventDefault(),i({target:{files:t.dataTransfer.files}})}return(t,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:f,onDrop:m,onDragover:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),class:"image-upload-area flex-v-center flex-h-center flex"},[l.value||n.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:(t.FILE_SERVER_URL||"")+(l.value||n.photo),alt:"Uploaded image",class:"w-100 h-100 object-fit-cover"},null,8,C)):(e.openBlock(),e.createElementBlock("div",v,w)),e.createElementVNode("input",{type:"file",name:"file",ref_key:"fileInput",ref:a,onChange:i,style:{display:"none"}},null,544)],32))}};exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("axios"),C=["src"],g={key:1,class:"flex-v-center flex-h-center flex w-100 h-100 bg-second"},v=e.createElementVNode("svg",{class:"i-medium",width:"104",height:"104",viewBox:"0 0 104 104",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"rgb(var(--white))",d:"M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"})],-1),w=[v],_={__name:"UploadImage",props:["uploadPath","photo"],emits:["update:photo"],setup(n,{emit:u}){const l=e.ref(null),a=e.ref(null),r=n,d=u;e.watch(r,({photo:o})=>{o&&(l.value=o)});function f(){a.value.click()}async function i(o){let t=o.target.files[0];if(!t){console.error("No file selected");return}let s=new FormData;s.append("file",t),console.log("Sending file:",t.name);try{let p=await h.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(r.uploadPath)}`,s);console.log("Upload response:",p),l.value=p.data[0].filepath,d("update:photo",l.value)}catch(c){console.error("Upload error:",c)}}function m(o){o.preventDefault(),i({target:{files:o.dataTransfer.files}})}return(o,t)=>(e.openBlock(),e.createElementBlock("div",{onClick:f,onDrop:m,onDragover:t[0]||(t[0]=e.withModifiers(()=>{},["prevent"])),class:"image-upload-area flex-v-center flex-h-center flex"},[l.value||n.photo?(e.openBlock(),e.createElementBlock("img",{key:0,loading:"lazy",src:(o.FILE_SERVER_URL||"")+(l.value||n.photo),alt:"Uploaded image",class:"w-100 h-100 object-fit-cover"},null,8,C)):(e.openBlock(),e.createElementBlock("div",g,w)),e.createElementVNode("input",{type:"file",name:"file",ref_key:"fileInput",ref:a,onChange:i,style:{display:"none"}},null,544)],32))}};exports.default=_;
@@ -1,9 +1,9 @@
1
- import { ref as u, watch as v, openBlock as n, createElementBlock as a, withModifiers as w, createElementVNode as r } from "vue";
1
+ import { ref as u, watch as v, openBlock as n, createElementBlock as a, withModifiers as w, createElementVNode as i } from "vue";
2
2
  import x from "axios";
3
- const _ = ["src"], U = {
3
+ const _ = ["src"], y = {
4
4
  key: 1,
5
5
  class: "flex-v-center flex-h-center flex w-100 h-100 bg-second"
6
- }, k = /* @__PURE__ */ r("svg", {
6
+ }, U = /* @__PURE__ */ i("svg", {
7
7
  class: "i-medium",
8
8
  width: "104",
9
9
  height: "104",
@@ -11,12 +11,12 @@ const _ = ["src"], U = {
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  }, [
14
- /* @__PURE__ */ r("path", {
14
+ /* @__PURE__ */ i("path", {
15
15
  fill: "rgb(var(--white))",
16
16
  d: "M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"
17
17
  })
18
- ], -1), y = [
19
- k
18
+ ], -1), k = [
19
+ U
20
20
  ], I = {
21
21
  __name: "UploadImage",
22
22
  props: [
@@ -27,12 +27,12 @@ const _ = ["src"], U = {
27
27
  ],
28
28
  emits: ["update:photo"],
29
29
  setup(l, { emit: m }) {
30
- const t = u(null), i = u(null), s = l, h = m;
30
+ const t = u(null), r = u(null), s = l, h = m;
31
31
  v(s, ({ photo: e }) => {
32
32
  e && (t.value = e);
33
33
  });
34
34
  function C() {
35
- i.value.click();
35
+ r.value.click();
36
36
  }
37
37
  async function c(e) {
38
38
  let o = e.target.files[0];
@@ -65,15 +65,16 @@ const _ = ["src"], U = {
65
65
  }, [
66
66
  t.value || l.photo ? (n(), a("img", {
67
67
  key: 0,
68
+ loading: "lazy",
68
69
  src: (e.FILE_SERVER_URL || "") + (t.value || l.photo),
69
70
  alt: "Uploaded image",
70
71
  class: "w-100 h-100 object-fit-cover"
71
- }, null, 8, _)) : (n(), a("div", U, y)),
72
- r("input", {
72
+ }, null, 8, _)) : (n(), a("div", y, k)),
73
+ i("input", {
73
74
  type: "file",
74
75
  name: "file",
75
76
  ref_key: "fileInput",
76
- ref: i,
77
+ ref: r,
77
78
  onChange: c,
78
79
  style: { display: "none" }
79
80
  }, null, 544)
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../../components/Field/Field.vue2.cjs"),w=require("../../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../../components/Button/Button.vue2.cjs"),h=require("vue-router"),N=require("vue-i18n"),y=require("../../localization/SignIn.json.cjs"),s=require("../../store/auth.cjs"),r=require("../../validations/inputs.validation.cjs");;/* empty css */const S={class:""},q=e.createElementVNode("img",{src:"/logo/logo.svg",class:"i-extra radius-small mn-b-small"},null,-1),E={class:"mn-b-medium"},x=e.createElementVNode("br",null,null,-1),C={class:"t-semi"},D={class:"mn-b-big"},P={class:"mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden"},T={class:"pos-relative"},I={class:"mn-b-thin radius-small"},U={class:"mn-b-thin radius-small o-hidden"},k={class:"w-100 mn-b-big"},O={__name:"SignIn",setup(j){const d=e.ref(null),f=e.ref(null),u=e.ref(null),c=h.useRoute(),p=h.useRouter(),{t:l}=N.useI18n({useScope:"global",...y.default}),n=e.ref("phone"),v=o=>new Promise((a,i)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=a,t.onerror=i,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function _(){try{n.value==="phone"&&await r.validateInputs(d,r.validatePhone,s.state.user.phone,"Некорректный телефон"),n.value==="email"&&await r.validateInputs(u,r.validateEmail,s.state.user.email,"Некорректный email")}catch{throw new Error}const o={...s.state.user};await s.actions.login(o,n.value)}function g(){c.query.returnUrl?p.push({path:c.query.returnUrl,query:{afterAuth:"true"}}):p.push({name:"User Profile",params:{_id:s.state.user._id},query:{afterAuth:"true"}})}return(o,a)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",S,[q,e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(l)("title"))+" ",1),x,e.createElementVNode("span",C,e.toDisplayString(e.unref(l)("subtitle")),1)]),e.createElementVNode("p",D,[e.createVNode(i,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signup")),1)]),_:1})]),e.createElementVNode("div",P,[e.createVNode(b.default,{selected:n.value,"onUpdate:selected":a[0]||(a[0]=t=>n.value=t),tabs:[{name:e.unref(l)("phone"),value:"phone"},{name:e.unref(l)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(w.default,{onChange:a[1]||(a[1]=t=>s.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validCharactersOnly:!0,validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(l)("phonePlaceholder"),type:"tel"},class:"bg-light pd-small radius-small mn-b-thin"},null,8,["validation","inputOptions"])],512),[[e.vShow,n.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",U,[e.createVNode(m.default,{field:s.state.user.email,"onUpdate:field":a[2]||(a[2]=t=>s.state.user.email=t),placeholder:e.unref(l)("emailPlaceholder"),validation:u.value,class:"bg-light pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,n.value==="email"]])]),_:1})]),e.createVNode(m.default,{field:s.state.user.password,"onUpdate:field":a[3]||(a[3]=t=>s.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(l)("passwordPlaceholder"),class:"bg-light pd-medium radius-small mn-b-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",k,[e.createVNode(i,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("forgotPassword")),1)]),_:1})]),e.createVNode(V.default,{submit:_,callback:g,class:"w-100 bg-main mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signin")),1)]),_:1})])}}};exports.default=O;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("../../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../../components/Field/Field.vue2.cjs"),w=require("../../../../../components/FieldPhone/FieldPhone.vue.cjs"),V=require("../../../../../components/Button/Button.vue2.cjs"),h=require("vue-router"),N=require("vue-i18n"),y=require("../../localization/SignIn.json.cjs"),s=require("../../store/auth.cjs"),r=require("../../validations/inputs.validation.cjs");;/* empty css */const S={class:""},q=e.createElementVNode("img",{loading:"lazy",src:"/logo/logo.svg",class:"i-extra radius-small mn-b-small"},null,-1),E={class:"mn-b-medium"},x=e.createElementVNode("br",null,null,-1),C={class:"t-semi"},D={class:"mn-b-big"},P={class:"mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden"},T={class:"pos-relative"},I={class:"mn-b-thin radius-small"},U={class:"mn-b-thin radius-small o-hidden"},k={class:"w-100 mn-b-big"},O={__name:"SignIn",setup(j){const d=e.ref(null),f=e.ref(null),u=e.ref(null),c=h.useRoute(),p=h.useRouter(),{t:l}=N.useI18n({useScope:"global",...y.default}),n=e.ref("phone"),v=o=>new Promise((a,i)=>{const t=document.createElement("script");t.type="text/javascript",t.src=o,t.onload=a,t.onerror=i,document.head.appendChild(t)});e.onMounted(async()=>{await v("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js")});async function _(){try{n.value==="phone"&&await r.validateInputs(d,r.validatePhone,s.state.user.phone,"Некорректный телефон"),n.value==="email"&&await r.validateInputs(u,r.validateEmail,s.state.user.email,"Некорректный email")}catch{throw new Error}const o={...s.state.user};await s.actions.login(o,n.value)}function g(){c.query.returnUrl?p.push({path:c.query.returnUrl,query:{afterAuth:"true"}}):p.push({name:"User Profile",params:{_id:s.state.user._id},query:{afterAuth:"true"}})}return(o,a)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",S,[q,e.createElementVNode("h3",E,[e.createTextVNode(e.toDisplayString(e.unref(l)("title"))+" ",1),x,e.createElementVNode("span",C,e.toDisplayString(e.unref(l)("subtitle")),1)]),e.createElementVNode("p",D,[e.createVNode(i,{to:{name:"Sign Up"},class:"underline t-second"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signup")),1)]),_:1})]),e.createElementVNode("div",P,[e.createVNode(b.default,{selected:n.value,"onUpdate:selected":a[0]||(a[0]=t=>n.value=t),tabs:[{name:e.unref(l)("phone"),value:"phone"},{name:e.unref(l)("email"),value:"email"}]},null,8,["selected","tabs"])]),e.createElementVNode("div",T,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",I,[e.createVNode(w.default,{onChange:a[1]||(a[1]=t=>s.state.user.phone=t),dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},validCharactersOnly:!0,validation:d.value,mode:"national",inputOptions:{placeholder:e.unref(l)("phonePlaceholder"),type:"tel"},class:"bg-light pd-small radius-small mn-b-thin"},null,8,["validation","inputOptions"])],512),[[e.vShow,n.value==="phone"]])]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",U,[e.createVNode(m.default,{field:s.state.user.email,"onUpdate:field":a[2]||(a[2]=t=>s.state.user.email=t),placeholder:e.unref(l)("emailPlaceholder"),validation:u.value,class:"bg-light pd-medium radius-small"},null,8,["field","placeholder","validation"])],512),[[e.vShow,n.value==="email"]])]),_:1})]),e.createVNode(m.default,{field:s.state.user.password,"onUpdate:field":a[3]||(a[3]=t=>s.state.user.password=t),type:"password",validation:f.value,placeholder:e.unref(l)("passwordPlaceholder"),class:"bg-light pd-medium radius-small mn-b-semi"},null,8,["field","validation","placeholder"]),e.createElementVNode("div",k,[e.createVNode(i,{to:"/auth/reset-password",class:"underline d-block t-blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("forgotPassword")),1)]),_:1})]),e.createVNode(V.default,{submit:_,callback:g,class:"w-100 bg-main mn-b-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("signin")),1)]),_:1})])}}};exports.default=O;
@@ -9,10 +9,11 @@ import T from "../../localization/SignIn.json.js";
9
9
  import { state as i, actions as $ } from "../../store/auth.js";
10
10
  import { validateInputs as S, validatePhone as B, validateEmail as F } from "../../validations/inputs.validation.js";
11
11
  /* empty css */
12
- const R = { class: "" }, L = /* @__PURE__ */ s("img", {
12
+ const R = { class: "" }, z = /* @__PURE__ */ s("img", {
13
+ loading: "lazy",
13
14
  src: "/logo/logo.svg",
14
15
  class: "i-extra radius-small mn-b-small"
15
- }, null, -1), M = { class: "mn-b-medium" }, z = /* @__PURE__ */ s("br", null, null, -1), G = { class: "t-semi" }, H = { class: "mn-b-big" }, J = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, K = { class: "pos-relative" }, Q = { class: "mn-b-thin radius-small" }, W = { class: "mn-b-thin radius-small o-hidden" }, X = { class: "w-100 mn-b-big" }, ue = {
16
+ }, null, -1), L = { class: "mn-b-medium" }, M = /* @__PURE__ */ s("br", null, null, -1), G = { class: "t-semi" }, H = { class: "mn-b-big" }, J = { class: "mn-b-small p-small uppercase t-semi bg-light radius-big o-hidden" }, K = { class: "pos-relative" }, Q = { class: "mn-b-thin radius-small" }, W = { class: "mn-b-thin radius-small o-hidden" }, X = { class: "w-100 mn-b-big" }, ue = {
16
17
  __name: "SignIn",
17
18
  setup(Y) {
18
19
  const h = p(null), x = p(null), f = p(null), _ = j(), v = A(), { t: a } = N({
@@ -63,10 +64,10 @@ const R = { class: "" }, L = /* @__PURE__ */ s("img", {
63
64
  return (u, t) => {
64
65
  const m = E("router-link");
65
66
  return V(), I("section", R, [
66
- L,
67
- s("h3", M, [
67
+ z,
68
+ s("h3", L, [
68
69
  c(r(l(a)("title")) + " ", 1),
69
- z,
70
+ M,
70
71
  s("span", G, r(l(a)("subtitle")), 1)
71
72
  ]),
72
73
  s("p", H, [
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const r=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const t={class:""},o=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),u=[o],s={__name:"Dashboard",props:{favorites:Array},setup(c){return r.useRoute(),r.useRouter(),e.ref(null),e.ref([]),e.onMounted(async()=>{}),(i,n)=>(e.openBlock(),e.createElementBlock("div",t,u))}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const r=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const t={class:""},o=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),u=[o],s={__name:"Dashboard",props:{favorites:Array},setup(c){return r.useRoute(),r.useRouter(),e.ref(null),e.ref([]),e.onMounted(async()=>{}),(i,n)=>(e.openBlock(),e.createElementBlock("div",t,u))}};exports.default=s;
@@ -1,5 +1,5 @@
1
1
  import { ref as e, onMounted as o, openBlock as t, createElementBlock as r, createElementVNode as s } from "vue";
2
- /* empty css */
2
+ /* empty css */
3
3
  import "../../../../components/Menu/MenuItem.vue.js";
4
4
  /* empty css */
5
5
  import { useRoute as m, useRouter as c } from "vue-router";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Menu/Menu.vue.cjs"),n=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const u=require("../../../icons/entities/IconProducts.vue.cjs"),a=require("../../../icons/entities/IconEvents.vue.cjs"),i=require("../../../icons/entities/IconGroups.vue.cjs"),c=require("../../../icons/entities/IconGallery.vue.cjs"),d=require("../../../icons/entities/IconOrders.vue.cjs"),f=require("../../../icons/entities/IconLeftovers.vue.cjs"),l=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Community ",-1),V=e.createElementVNode("span",null," Products ",-1),v=e.createElementVNode("span",null," Leftovers ",-1),C=e.createElementVNode("span",null," Orders ",-1),_=e.createElementVNode("span",null," Gallery ",-1),h=e.createElementVNode("span",null," Events ",-1),k=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),g=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),b={__name:"Sidebar",props:{favorites:Array},setup(x){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(q,t)=>(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(o.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=s=>e.unref(r).push({name:"Organization Members"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),p]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=s=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=s=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=s=>e.unref(r).push({name:"Leftovers"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=s=>e.unref(r).push({name:"Backoffice Orders"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=s=>e.unref(r).push({name:"Backoffice Gallery"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=s=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=s=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1})]),_:1}),e.createVNode(o.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[8]||(t[8]=s=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(n.default,{onClick:t[9]||(t[9]=s=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1}),e.createVNode(n.default,{onClick:t[10]||(t[10]=s=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Menu/Menu.vue2.cjs"),n=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const u=require("../../../icons/entities/IconProducts.vue.cjs"),a=require("../../../icons/entities/IconEvents.vue.cjs"),i=require("../../../icons/entities/IconGroups.vue.cjs"),c=require("../../../icons/entities/IconGallery.vue.cjs"),d=require("../../../icons/entities/IconOrders.vue.cjs"),f=require("../../../icons/entities/IconLeftovers.vue.cjs"),l=require("vue-router");require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const m={class:""},p=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Community ",-1),V=e.createElementVNode("span",null," Products ",-1),v=e.createElementVNode("span",null," Leftovers ",-1),C=e.createElementVNode("span",null," Orders ",-1),_=e.createElementVNode("span",null," Gallery ",-1),h=e.createElementVNode("span",null," Events ",-1),k=e.createElementVNode("span",null," Payments ",-1),w=e.createElementVNode("span",null," Organizations ",-1),g=e.createElementVNode("span",null," Pages ",-1),E=e.createElementVNode("span",null," Reports ",-1),b={__name:"Sidebar",props:{favorites:Array},setup(x){l.useRoute();const r=l.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(q,t)=>(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(o.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[0]||(t[0]=s=>e.unref(r).push({name:"Organization Members"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),p]),_:1}),e.createVNode(n.default,{onClick:t[1]||(t[1]=s=>e.unref(r).push({name:"Backoffice Community"})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=s=>e.unref(r).push({name:"Products"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(u.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=s=>e.unref(r).push({name:"Leftovers"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=s=>e.unref(r).push({name:"Backoffice Orders"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=s=>e.unref(r).push({name:"Backoffice Gallery"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(c.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),_]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=s=>e.unref(r).push({name:"Backoffice Events"})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(a.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),h]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=s=>e.unref(r).push({name:"Payments"})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1})]),_:1}),e.createVNode(o.default,{class:"bg-light"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[8]||(t[8]=s=>e.unref(r).push({name:"Backoffice Organizations"})),class:"cursor-pointer"},{default:e.withCtx(()=>[w]),_:1}),e.createVNode(n.default,{onClick:t[9]||(t[9]=s=>e.unref(r).push({name:"Backoffice Pages"})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1}),e.createVNode(n.default,{onClick:t[10]||(t[10]=s=>e.unref(r).push({name:"Backoffice Reports"})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=b;
@@ -1,5 +1,5 @@
1
1
  import { ref as a, onMounted as m, openBlock as f, createElementBlock as p, createVNode as e, withCtx as o, unref as n, createElementVNode as i } from "vue";
2
- import u from "../../../../components/Menu/Menu.vue.js";
2
+ import u from "../../../../components/Menu/Menu.vue2.js";
3
3
  import r from "../../../../components/Menu/MenuItem.vue.js";
4
4
  /* empty css */
5
5
  import c from "../../../icons/entities/IconProducts.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const g=require("vue-router"),b={class:"pos-relative bg-light radius-big flex-column flex"},p={class:"pd-t-zero pd-b-zero pd-medium"},y={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},f={key:1,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},h={key:1,class:"mn-b-small t-transp p-big"},k={key:2,class:"mn-b-small h2"},v=["src"],B={key:1,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},x=["src"],V={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1}},setup(t){const i=g.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),s=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),a=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,r)=>{var c;return e.openBlock(),e.createElementBlock("article",b,[e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt,actions:t.user&&t.user===t.blogpost.creator.target._id?[{to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},label:"Edit"}]:null},null,8,["class","entity","user","owner","creator","date","actions"]),e.createElementVNode("section",p,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",y,[t.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m.default,{key:0,text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:r[0]||(r[0]=E=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"])),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.value&&a.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(a.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"&&!t.hideTitle?(e.openBlock(),e.createElementBlock("h3",k,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,v)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",B,[e.createElementVNode("source",{src:s.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const g=require("vue-router"),b={class:"pos-relative bg-light radius-big flex-column flex"},p={class:"pd-t-zero pd-b-zero pd-medium"},y={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},f={key:1,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},h={key:1,class:"mn-b-small t-transp p-big"},k={key:2,class:"mn-b-small h2"},v=["src"],B={key:1,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},x=["src"],V={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1}},setup(t){const i=g.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),s=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),a=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,r)=>{var c;return e.openBlock(),e.createElementBlock("article",b,[e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt,actions:t.user&&t.user===t.blogpost.creator.target._id?[{to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},label:"Edit"}]:null},null,8,["class","entity","user","owner","creator","date","actions"]),e.createElementVNode("section",p,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",y,[t.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m.default,{key:0,text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:r[0]||(r[0]=E=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"])),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.value&&a.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(a.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"&&!t.hideTitle?(e.openBlock(),e.createElementBlock("h3",k,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,loading:"lazy",src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,v)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",B,[e.createElementVNode("source",{src:s.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=V;
@@ -1,19 +1,19 @@
1
- import { computed as c, openBlock as o, createElementBlock as l, createVNode as g, normalizeClass as f, createElementVNode as b, createBlock as h, unref as y, createCommentVNode as s, toDisplayString as u, renderSlot as v, createTextVNode as x } from "vue";
1
+ import { computed as c, openBlock as o, createElementBlock as l, createVNode as g, normalizeClass as f, createElementVNode as b, createBlock as y, unref as h, createCommentVNode as s, toDisplayString as u, renderSlot as v, createTextVNode as x } from "vue";
2
2
  import k from "../../../globals/views/components/blocks/CardHeader.vue.js";
3
3
  import w from "./FooterBlogpost.vue.js";
4
4
  import B from "../../../../components/Text/Text.vue.js";
5
- /* empty css */
5
+ /* empty css */
6
6
  import { useRouter as E } from "vue-router";
7
7
  const P = { class: "pos-relative bg-light radius-big flex-column flex" }, T = { class: "pd-t-zero pd-b-zero pd-medium" }, V = {
8
8
  key: 0,
9
9
  class: "cursor-pointer mn-b-thin flex-nowrap flex w-100"
10
- }, S = {
10
+ }, z = {
11
11
  key: 1,
12
12
  class: "pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"
13
- }, $ = {
13
+ }, S = {
14
14
  key: 1,
15
15
  class: "mn-b-small t-transp p-big"
16
- }, z = {
16
+ }, $ = {
17
17
  key: 2,
18
18
  class: "mn-b-small h2"
19
19
  }, C = ["src"], N = {
@@ -63,26 +63,27 @@ const P = { class: "pos-relative bg-light radius-big flex-column flex" }, T = {
63
63
  }, null, 8, ["class", "entity", "user", "owner", "creator", "date", "actions"]),
64
64
  b("section", T, [
65
65
  e.type !== "blogpostPage" ? (o(), l("div", V, [
66
- e.hideTitle ? s("", !0) : (o(), h(B, {
66
+ e.hideTitle ? s("", !0) : (o(), y(B, {
67
67
  key: 0,
68
68
  text: e.blogpost.name || "",
69
69
  maxLen: 80,
70
70
  class: "h3 d-block",
71
- onClick: d[0] || (d[0] = (j) => y(p).push({
71
+ onClick: d[0] || (d[0] = (j) => h(p).push({
72
72
  name: "BlogPost",
73
73
  params: {
74
74
  url: e.blogpost.url
75
75
  }
76
76
  }))
77
77
  }, null, 8, ["text"])),
78
- e.blogpost.status === "draft" ? (o(), l("div", S, u(e.blogpost.status), 1)) : s("", !0)
78
+ e.blogpost.status === "draft" ? (o(), l("div", z, u(e.blogpost.status), 1)) : s("", !0)
79
79
  ])) : s("", !0),
80
- i.value && i.value.content && e.type !== "blogpostPage" && !e.hideDescription ? (o(), l("p", $, u(i.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
81
- e.type === "blogpostPage" && !e.hideTitle ? (o(), l("h3", z, u(e.blogpost.name), 1)) : s("", !0),
80
+ i.value && i.value.content && e.type !== "blogpostPage" && !e.hideDescription ? (o(), l("p", S, u(i.value.content.slice(0, 120)) + "... ", 1)) : s("", !0),
81
+ e.type === "blogpostPage" && !e.hideTitle ? (o(), l("h3", $, u(e.blogpost.name), 1)) : s("", !0),
82
82
  v(t.$slots, "default")
83
83
  ]),
84
84
  n.value && n.value.content && e.type !== "blogpostPage" ? (o(), l("img", {
85
85
  key: 0,
86
+ loading: "lazy",
86
87
  src: (t.FILE_SERVER_URL || "") + n.value.content,
87
88
  alt: "Blog post image",
88
89
  class: "mn-b-medium object-fit-cover w-100 h-min-10r h-100"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),f=require("../../../../components/Select/Select.vue.cjs"),g=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),x=require("../../../icons/entities/IconFeatured.vue.cjs"),b=require("../../../icons/entities/IconPopular.vue.cjs"),w=require("../../../icons/entities/IconRecent.vue.cjs"),_=require("../../../icons/entities/IconFollowing.vue.cjs"),a=require("../../store/blogposts.cjs"),i=require("../../../auth/views/store/auth.cjs"),d=require("../../../organizations/store/organizations.cjs"),k=require("../../../organizations/store/memberships.cjs"),N={style:{"grid-template-columns":"2fr 4fr 2fr"},class:"cols-3 gap-thin pd-thin"},V={class:"align-self-start pos-sticky pos-t-0 w-100 bg-light radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex"},v={class:"pos-relative"},C={class:"bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex"},y={class:"pos-relative flex-v-center flex-nowrap flex"},B=e.createElementVNode("span",{class:"mn-r-thin"},"Topics for ",-1),q={class:"align-self-start bg-light radius-big pd-medium"},E={class:"gap-thin flex-nowrap flex"},z=e.createElementVNode("p",{class:"t-medium mn-b-small"},"Popular Communities",-1),T={__name:"Community",setup(F){const o=m.useRoute(),s=m.useRouter();o.params.category==="popular"&&(a.state.sort.param="views"),o.params.category==="new"&&(a.state.sort.param="createdAt");const p=({membership:u,status:t,target:n},c,r)=>{k.mutations.handleMembershipUpdate(d.state.current,u,t,n,c,r)};return(u,t)=>{const n=e.resolveComponent("router-link"),c=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("ul",V,[e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="featured"},"cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"]),onClick:t[0]||(t[0]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"featured"}})})},[e.createVNode(x.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Featured ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="popular"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[1]||(t[1]=()=>{a.state.sort.param="views",e.unref(s).push({name:"Blog",params:{category:"popular"}})})},[e.createVNode(b.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Popular ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="new"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[2]||(t[2]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"new"}})})},[e.createVNode(w.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Recent ")],2),i.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="following"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[3]||(t[3]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"following"}})})},[e.createVNode(_.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Following ")],2)):e.createCommentVNode("",!0),e.createVNode(n,{to:{name:"Create BlogPost"},class:"button t-medium mn-t-small bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Create Post ")]),_:1})]),e.createElementVNode("section",v,[e.createElementVNode("header",C,[e.createElementVNode("h3",y,[B,e.createVNode(f.default,{options:["today","week","month","year","all time"],select:a.state.filter.period,"onUpdate:select":t[4]||(t[4]=r=>a.state.filter.period=r),placeholder:"all time",class:"t-semi pos-relative w-max bg-main t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10"},null,8,["select"])])]),e.createVNode(c,null,{default:e.withCtx(({Component:r,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r),{ref:"page",key:l.query}))]),_:2},1024)]),_:1})]),e.createElementVNode("div",q,[e.createElementVNode("div",E,[z,i.state.user._id?(e.openBlock(),e.createBlock(n,{key:0,to:{name:"Create Organization"},class:"t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" + ")]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createVNode(g.default,{states:{empty:{title:"No Organization Found",description:"Currently, there are no organization available."}},store:{read:r=>d.actions.read(r),state:d.state},options:{user:i.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,l=>(e.openBlock(),e.createBlock(h.default,{key:l._id,organization:l,user:i.state.user,showProducts:!1,showRating:!1,showFeatured:!1,showFollowers:!1,onUpdateMembership:p,class:"mn-b-thin w-100 pd-0 bg-white radius-big o-hidden"},null,8,["organization","user"]))),128))]),_:1},8,["store","options"])]),_:1})])])}}};exports.default=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("vue-router"),f=require("../../../../components/Select/Select.vue2.cjs"),g=require("../../../../components/Feed/Feed.vue.cjs"),h=require("../../../organizations/components/blocks/CardOrganization.vue.cjs"),x=require("../../../icons/entities/IconFeatured.vue.cjs"),b=require("../../../icons/entities/IconPopular.vue.cjs"),w=require("../../../icons/entities/IconRecent.vue.cjs"),_=require("../../../icons/entities/IconFollowing.vue.cjs"),a=require("../../store/blogposts.cjs"),i=require("../../../auth/views/store/auth.cjs"),d=require("../../../organizations/store/organizations.cjs"),k=require("../../../organizations/store/memberships.cjs"),N={style:{"grid-template-columns":"2fr 4fr 2fr"},class:"cols-3 gap-thin pd-thin"},V={class:"align-self-start pos-sticky pos-t-0 w-100 bg-light radius-big pd-medium p-medium gap-thin flex-column flex-nowrap flex"},v={class:"pos-relative"},C={class:"bg-main t-black radius-big pd-medium pos-relative mn-b-thin flex-v-center t-left flex-nowrap flex"},y={class:"pos-relative flex-v-center flex-nowrap flex"},B=e.createElementVNode("span",{class:"mn-r-thin"},"Topics for ",-1),q={class:"align-self-start bg-light radius-big pd-medium"},E={class:"gap-thin flex-nowrap flex"},z=e.createElementVNode("p",{class:"t-medium mn-b-small"},"Popular Communities",-1),T={__name:"Community",setup(F){const o=m.useRoute(),s=m.useRouter();o.params.category==="popular"&&(a.state.sort.param="views"),o.params.category==="new"&&(a.state.sort.param="createdAt");const p=({membership:u,status:t,target:n},c,r)=>{k.mutations.handleMembershipUpdate(d.state.current,u,t,n,c,r)};return(u,t)=>{const n=e.resolveComponent("router-link"),c=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("ul",V,[e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="featured"},"cursor-pointer flex-v-center flex t-medium pd-thin radius-extra"]),onClick:t[0]||(t[0]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"featured"}})})},[e.createVNode(x.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Featured ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="popular"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[1]||(t[1]=()=>{a.state.sort.param="views",e.unref(s).push({name:"Blog",params:{category:"popular"}})})},[e.createVNode(b.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Popular ")],2),e.createElementVNode("li",{class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="new"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[2]||(t[2]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"new"}})})},[e.createVNode(w.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Recent ")],2),i.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-black bg-white":e.unref(o).params.category==="following"},"cursor-pointer t-medium flex-v-center flex pd-thin radius-extra"]),onClick:t[3]||(t[3]=()=>{a.state.sort.param="createdAt",e.unref(s).push({name:"Blog",params:{category:"following"}})})},[e.createVNode(_.default,{class:"i-medium mn-r-thin t-transp"}),e.createTextVNode(" Following ")],2)):e.createCommentVNode("",!0),e.createVNode(n,{to:{name:"Create BlogPost"},class:"button t-medium mn-t-small bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Create Post ")]),_:1})]),e.createElementVNode("section",v,[e.createElementVNode("header",C,[e.createElementVNode("h3",y,[B,e.createVNode(f.default,{options:["today","week","month","year","all time"],select:a.state.filter.period,"onUpdate:select":t[4]||(t[4]=r=>a.state.filter.period=r),placeholder:"all time",class:"t-semi pos-relative w-max bg-main t-black pd-thin radius-medium h3 t-center br-solid br-2px br-black-transp-10"},null,8,["select"])])]),e.createVNode(c,null,{default:e.withCtx(({Component:r,route:l})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r),{ref:"page",key:l.query}))]),_:2},1024)]),_:1})]),e.createElementVNode("div",q,[e.createElementVNode("div",E,[z,i.state.user._id?(e.openBlock(),e.createBlock(n,{key:0,to:{name:"Create Organization"},class:"t-medium cursor-pointer hover-scale-1 radius-extra flex-center flex i-medium bg-main"},{default:e.withCtx(()=>[e.createTextVNode(" + ")]),_:1})):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createVNode(g.default,{states:{empty:{title:"No Organization Found",description:"Currently, there are no organization available."}},store:{read:r=>d.actions.read(r),state:d.state},options:{user:i.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,l=>(e.openBlock(),e.createBlock(h.default,{key:l._id,organization:l,user:i.state.user,showProducts:!1,showRating:!1,showFeatured:!1,showFollowers:!1,onUpdateMembership:p,class:"mn-b-thin w-100 pd-0 bg-white radius-big o-hidden"},null,8,["organization","user"]))),128))]),_:1},8,["store","options"])]),_:1})])])}}};exports.default=T;
@@ -1,6 +1,6 @@
1
1
  import { resolveComponent as x, openBlock as n, createElementBlock as h, createElementVNode as t, normalizeClass as u, unref as s, createVNode as r, createTextVNode as l, createCommentVNode as w, withCtx as m, Transition as y, createBlock as _, resolveDynamicComponent as C, Fragment as B, renderList as $ } from "vue";
2
2
  import { useRoute as F, useRouter as z } from "vue-router";
3
- import N from "../../../../components/Select/Select.vue.js";
3
+ import N from "../../../../components/Select/Select.vue2.js";
4
4
  import P from "../../../../components/Feed/Feed.vue.js";
5
5
  import A from "../../../organizations/components/blocks/CardOrganization.vue.js";
6
6
  import M from "../../../icons/entities/IconFeatured.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const p=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */;/* empty css */require("axios");;/* empty css */const _=require("../blocks/CardBlogpost.vue.cjs"),n=require("../../store/blogposts.cjs"),f=require("../../../auth/views/store/auth.cjs"),b=require("vue-router");;/* empty css */const v=l=>(e.pushScopeId("data-v-2fc13a78"),l=l(),e.popScopeId(),l),g={class:"flex-v-center flex-nowrap flex mn-b-medium"},h=v(()=>e.createElementVNode("h3",{class:"mn-r-medium"},"Blog",-1)),k={class:""},w={class:"flex-nowrap flex pd-t-zero pd-b-zero pd-big"},q=["onClick"],y=["onClick"],C={__name:"Community",async setup(l){let s,c;const i=b.useRouter();[s,c]=e.withAsyncContext(()=>n.read()),await s,c(),console.log(n.state),e.ref({title:"",content:"",categories:[]});const d=async t=>{window.confirm("Are you sure you want to delete this post?")&&(console.log(t),await n.remove(t))};let u=e.ref("all");const a=e.computed(()=>u.value==="all"?n.state.all:n.state.all.filter(t=>t.categories.includes(u.value)));return e.computed(()=>{for(let t of a.value)if(t.blocks&&t.blocks.length>0){const r=t.blocks.find(o=>o.type.name==="ImageUpload");if(r)return r.content}return null}),(t,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",g,[h,e.createElementVNode("button",{onClick:r[0]||(r[0]=o=>e.unref(i).push({name:"Create BlogPost"})),class:"t-white bg-second button-small button"},"+")]),e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,o=>(e.openBlock(),e.createBlock(_.default,{key:o._id,blogpost:o,owner:f.state.user._id,class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("button",{class:"mn-r-thin button-small w-100 button",onClick:m=>t.$router.push({path:"/community/posts/"+o.url+"/edit"})},"Edit",8,q),e.createElementVNode("button",{class:"button-small w-100 button",onClick:m=>d(o._id)},"Delete",8,y)])]),_:2},1032,["blogpost","owner"]))),128))])]))}},B=p.default(C,[["__scopeId","data-v-2fc13a78"]]);exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const p=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");;/* empty css */;/* empty css */;/* empty css */require("axios");;/* empty css */const _=require("../blocks/CardBlogpost.vue.cjs"),n=require("../../store/blogposts.cjs"),f=require("../../../auth/views/store/auth.cjs"),b=require("vue-router");;/* empty css */const v=l=>(e.pushScopeId("data-v-2fc13a78"),l=l(),e.popScopeId(),l),g={class:"flex-v-center flex-nowrap flex mn-b-medium"},h=v(()=>e.createElementVNode("h3",{class:"mn-r-medium"},"Blog",-1)),k={class:""},w={class:"flex-nowrap flex pd-t-zero pd-b-zero pd-big"},q=["onClick"],y=["onClick"],C={__name:"Community",async setup(l){let s,c;const i=b.useRouter();[s,c]=e.withAsyncContext(()=>n.read()),await s,c(),console.log(n.state),e.ref({title:"",content:"",categories:[]});const d=async t=>{window.confirm("Are you sure you want to delete this post?")&&(console.log(t),await n.remove(t))};let u=e.ref("all");const a=e.computed(()=>u.value==="all"?n.state.all:n.state.all.filter(t=>t.categories.includes(u.value)));return e.computed(()=>{for(let t of a.value)if(t.blocks&&t.blocks.length>0){const r=t.blocks.find(o=>o.type.name==="ImageUpload");if(r)return r.content}return null}),(t,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",g,[h,e.createElementVNode("button",{onClick:r[0]||(r[0]=o=>e.unref(i).push({name:"Create BlogPost"})),class:"t-white bg-second button-small button"},"+")]),e.createElementVNode("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,o=>(e.openBlock(),e.createBlock(_.default,{key:o._id,blogpost:o,owner:f.state.user._id,class:"mn-b-medium"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("button",{class:"mn-r-thin button-small w-100 button",onClick:m=>t.$router.push({path:"/community/posts/"+o.url+"/edit"})},"Edit",8,q),e.createElementVNode("button",{class:"button-small w-100 button",onClick:m=>d(o._id)},"Delete",8,y)])]),_:2},1032,["blogpost","owner"]))),128))])]))}},B=p.default(C,[["__scopeId","data-v-2fc13a78"]]);exports.default=B;
@@ -1,7 +1,7 @@
1
1
  import { withAsyncContext as b, ref as u, computed as d, openBlock as r, createElementBlock as p, createElementVNode as o, unref as v, Fragment as w, renderList as g, createBlock as k, withCtx as y, pushScopeId as C, popScopeId as x } from "vue";
2
2
  /* empty css */
3
3
  import B from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- /* empty css */
4
+ /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  import "axios";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("isomorphic-dompurify");;/* empty css */const w=require("../../../constructor/components/sections/Constructor.vue.cjs"),V=require("../../../../components/Popup/Popup.vue.cjs");;/* empty css */;/* empty css */const N=require("../../../../components/FieldTags/BlockTags.vue.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),y=require("../../../../components/Field/Field.vue2.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),C=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/views/store/auth.cjs"),x=require("../../../organizations/store/organizations.cjs"),q={class:"pd-thin"},E={style:{"min-height":"100%"},class:"w-100 bg-light pd-big radius-big"},T=e.createElementVNode("div",{class:"w-full h-full"},null,-1),z={key:0,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},A={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},O=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),U=e.createElementVNode("h5",{class:"mn-b-thin"},"Add source:",-1),D=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),M={key:0,class:"mn-b-thin"},S={key:1,class:"mn-b-medium br-grey-transp-25 br-2px br-solid pd-small radius-big"},R={__name:"CreateBlogPost",setup($){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{const o=await x.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});if(p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo})),s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo})});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function h(){d.value=!0}function v(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",t.value.name=t.value.content[0].content,s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.name=t.value.content[0].content,s.params.url?n.update(t.value).then(o=>{console.log(t.value),u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",q,[e.createElementVNode("section",E,[T,e.unref(t)?(e.openBlock(),e.createBlock(w.default,{key:0,content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"scaleIn"},{default:e.withCtx(()=>[e.unref(t)?(e.openBlock(),e.createElementBlock("section",z,[e.createElementVNode("div",A,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>h()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(V.default,{onClosePopup:v,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[O,e.createVNode(N.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags,class:"mn-b-small"},null,8,["tags"]),U,e.createVNode(y.default,{field:e.unref(t).source,"onUpdate:field":a[5]||(a[5]=l=>e.unref(t).source=l),placeholder:"Add full link to the source",class:"mn-b-medium bg-light radius-medium pd-small"},null,8,["field"]),D,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[6]||(a[6]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-light radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",M,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(B.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[7]||(a[7]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(C.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=R;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("isomorphic-dompurify");;/* empty css */const w=require("../../../constructor/components/sections/Constructor.vue.cjs"),V=require("../../../../components/Popup/Popup.vue2.cjs");;/* empty css */;/* empty css */const N=require("../../../../components/FieldTags/BlockTags.vue.cjs"),B=require("../../../../components/Checkbox/Checkbox.vue.cjs"),y=require("../../../../components/Field/Field.vue2.cjs"),P=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),C=require("../../../../components/Button/Button.vue2.cjs"),f=require("vue-router"),n=require("../../store/blogposts.cjs"),i=require("../../../auth/views/store/auth.cjs"),x=require("../../../organizations/store/organizations.cjs"),q={class:"pd-thin"},E={style:{"min-height":"100%"},class:"w-100 bg-light pd-big radius-big"},T=e.createElementVNode("div",{class:"w-full h-full"},null,-1),z={key:0,class:"pd-thin pos-sticky pos-l-0 pos-b-0 w-100"},A={class:"pd-thin radius-big bg-main w-100 flex-nowrap flex"},O=e.createElementVNode("h3",{class:"mn-b-small"},"Final Touches",-1),U=e.createElementVNode("h5",{class:"mn-b-thin"},"Add source:",-1),D=e.createElementVNode("h5",{class:"mn-b-thin"},"Add to public:",-1),M={key:0,class:"mn-b-thin"},S={key:1,class:"mn-b-medium br-grey-transp-25 br-2px br-solid pd-small radius-big"},R={__name:"CreateBlogPost",setup($){const s=f.useRoute(),u=f.useRouter();let t=e.ref(null),p=e.ref(null);const c=e.ref([]),r=e.ref(null);e.onMounted(async()=>{const o=await x.actions.read({user:i.state.user._id,postable:i.state.user._id,limit:100});if(p.value=o.map(a=>({name:a.profile.name,_id:a._id,photo:a.profile.photo})),s.params.url){const a=await n.read({user:i.state.user._id,url:s.params.url});t.value=a.pop()}else n.clean(),t.value=n.state.current;t.value.owner||(t.value.owner={target:i.state.user._id,type:"user"}),t.value.creator||(t.value.creator={target:i.state.user._id,type:"user",hidden:!1}),t.value.owner.type==="organization"&&(r.value={_id:t.value.owner.target._id,name:t.value.owner.target.profile.name,photo:t.value.owner.target.profile.photo})});const g=e.ref(""),m=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);e.computed(()=>m.value.filter(o=>o.text.toLowerCase().includes(g.value.toLowerCase()))),e.computed(()=>m.value.filter(o=>!c.value.some(a=>a.text===o.text)));const d=e.ref(!1);function h(){d.value=!0}function v(){d.value=!1}function b(){c.value.length>0&&c.value.map(o=>o.text),t.value.status="draft",t.value.name=t.value.content[0].content,s.params.url?n.update(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.log(o)})}function k(){r.value&&(t.value.owner={target:r.value._id,type:"organization"}),r.value||(t.value.creator.hidden=!1),r.value||(t.value.organization=t.value.creator),t.value.status="published",t.value.name=t.value.content[0].content,s.params.url?n.update(t.value).then(o=>{console.log(t.value),u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)}):n.create(t.value).then(o=>{u.push({name:"BlogPost",params:{url:o.url}})}).catch(o=>{console.error(o)})}function _(){confirm("Are you sure you want to delete this post?")&&n.remove(t.value._id).then(o=>{u.push({name:"User Blogposts",params:{_id:t.value.creator.target._id}})}).catch(o=>{console.log(o)})}return(o,a)=>(e.openBlock(),e.createElementBlock("article",q,[e.createElementVNode("section",E,[T,e.unref(t)?(e.openBlock(),e.createBlock(w.default,{key:0,content:e.unref(t).content,onUpdate:a[0]||(a[0]=l=>e.unref(t).content=l)},null,8,["content"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"scaleIn"},{default:e.withCtx(()=>[e.unref(t)?(e.openBlock(),e.createElementBlock("section",z,[e.createElementVNode("div",A,[e.unref(s).params.url?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=l=>_()),class:"mn-r-auto bg-red t-white t-black button"},"Delete")):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:a[2]||(a[2]=l=>b()),class:"mn-l-auto bg-white t-black button"},"To Drafts"),e.createElementVNode("a",{onClick:a[3]||(a[3]=l=>h()),class:"mn-l-thin bg-black t-white button"},"Publish")])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(V.default,{onClosePopup:v,isPopupOpen:d.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[O,e.createVNode(N.default,{onTagsChanged:a[4]||(a[4]=l=>e.unref(t).tags=l),tags:e.unref(t).tags,class:"mn-b-small"},null,8,["tags"]),U,e.createVNode(y.default,{field:e.unref(t).source,"onUpdate:field":a[5]||(a[5]=l=>e.unref(t).source=l),placeholder:"Add full link to the source",class:"mn-b-medium bg-light radius-medium pd-small"},null,8,["field"]),D,e.createVNode(P.default,{modelValue:r.value,"onUpdate:modelValue":a[6]||(a[6]=l=>r.value=l),options:e.unref(p),multiple:!1,taggable:!1,placeholder:"Type to search or add tag",label:"name","track-by":"_id",class:"mn-b-medium bg-light radius-medium pd-small"},null,8,["modelValue","options"]),r.value?(e.openBlock(),e.createElementBlock("h5",M,"Options:")):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(B.default,{label:"Hide Author",radio:e.unref(t).creator.hidden,"onUpdate:radio":a[7]||(a[7]=l=>e.unref(t).creator.hidden=l),name:"prices",class:"w-100"},null,8,["radio"])])):e.createCommentVNode("",!0),e.createVNode(C.default,{submit:k,callback:o.redirectTo,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode("Publish")]),_:1},8,["callback"])]),_:1},8,["isPopupOpen"])]))}};exports.default=R;
@@ -2,7 +2,7 @@ import { ref as n, onMounted as V, computed as w, openBlock as u, createElementB
2
2
  import "isomorphic-dompurify";
3
3
  /* empty css */
4
4
  import D from "../../../constructor/components/sections/Constructor.vue.js";
5
- import N from "../../../../components/Popup/Popup.vue.js";
5
+ import N from "../../../../components/Popup/Popup.vue2.js";
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  import O from "../../../../components/FieldTags/BlockTags.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o={key:0,class:"o-hidden radius-big pos-relative bg-light mn-b-small w-100 flex-center flex"},r=["src"],n=["src"],s={__name:"Image",props:["label","value","prop"],setup(t){return(l,a)=>t.prop.content?(e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("img",{src:(l.FILE_SERVER_URL||"")+t.prop.content,alt:"Event image",class:"pos-relative z-index-1 d-block mn-auto w-100 h-100 object-fit-contain",style:{"max-height":"40rem"}},null,8,r),e.createElementVNode("img",{src:(l.FILE_SERVER_URL||"")+t.prop.content,alt:"Event Background",class:"z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",style:{transform:"scale(1.5)",filter:"blur(2rem)","-webkit-filter":"blur(2rem)"}},null,8,n)])):e.createCommentVNode("",!0)}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o={key:0,class:"o-hidden radius-big pos-relative bg-light mn-b-small w-100 flex-center flex"},n=["src"],r=["src"],a={__name:"Image",props:["label","value","prop"],setup(t){return(l,s)=>t.prop.content?(e.openBlock(),e.createElementBlock("div",o,[e.createElementVNode("img",{loading:"lazy",src:(l.FILE_SERVER_URL||"")+t.prop.content,alt:"Event image",class:"pos-relative z-index-1 d-block mn-auto w-100 h-100 object-fit-contain",style:{"max-height":"40rem"}},null,8,n),e.createElementVNode("img",{loading:"lazy",src:(l.FILE_SERVER_URL||"")+t.prop.content,alt:"Event Background",class:"z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",style:{transform:"scale(1.5)",filter:"blur(2rem)","-webkit-filter":"blur(2rem)"}},null,8,r)])):e.createCommentVNode("",!0)}};exports.default=a;
@@ -1,8 +1,8 @@
1
- import { openBlock as l, createElementBlock as r, createElementVNode as o, createCommentVNode as n } from "vue";
2
- const s = {
1
+ import { openBlock as o, createElementBlock as n, createElementVNode as l, createCommentVNode as r } from "vue";
2
+ const a = {
3
3
  key: 0,
4
4
  class: "o-hidden radius-big pos-relative bg-light mn-b-small w-100 flex-center flex"
5
- }, a = ["src"], c = ["src"], p = {
5
+ }, s = ["src"], c = ["src"], d = {
6
6
  __name: "Image",
7
7
  props: [
8
8
  "label",
@@ -10,22 +10,24 @@ const s = {
10
10
  "prop"
11
11
  ],
12
12
  setup(e) {
13
- return (t, i) => e.prop.content ? (l(), r("div", s, [
14
- o("img", {
13
+ return (t, i) => e.prop.content ? (o(), n("div", a, [
14
+ l("img", {
15
+ loading: "lazy",
15
16
  src: (t.FILE_SERVER_URL || "") + e.prop.content,
16
17
  alt: "Event image",
17
18
  class: "pos-relative z-index-1 d-block mn-auto w-100 h-100 object-fit-contain",
18
19
  style: { "max-height": "40rem" }
19
- }, null, 8, a),
20
- o("img", {
20
+ }, null, 8, s),
21
+ l("img", {
22
+ loading: "lazy",
21
23
  src: (t.FILE_SERVER_URL || "") + e.prop.content,
22
24
  alt: "Event Background",
23
25
  class: "z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",
24
26
  style: { transform: "scale(1.5)", filter: "blur(2rem)", "-webkit-filter": "blur(2rem)" }
25
27
  }, null, 8, c)
26
- ])) : n("", !0);
28
+ ])) : r("", !0);
27
29
  }
28
30
  };
29
31
  export {
30
- p as default
32
+ d as default
31
33
  };