@ozdao/prometheus-framework 0.2.197 → 0.2.199

Sign up to get free protection for your applications and to get access to all the features.
Files changed (417) 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/@googlemaps/js-api-loader/dist/index.cjs +1 -1
  6. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +21 -20
  7. package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -0
  8. package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5042 -0
  9. package/dist/node_modules/date-fns/_lib/addLeadingZeros.cjs +1 -0
  10. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  11. package/dist/node_modules/date-fns/_lib/defaultOptions.cjs +1 -0
  12. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  13. package/dist/node_modules/date-fns/_lib/format/formatters.cjs +1 -0
  14. package/dist/node_modules/date-fns/_lib/format/formatters.js +518 -0
  15. package/dist/node_modules/date-fns/_lib/format/lightFormatters.cjs +1 -0
  16. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  17. package/dist/node_modules/date-fns/_lib/format/longFormatters.cjs +1 -0
  18. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  19. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
  20. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  21. package/dist/node_modules/date-fns/_lib/protectedTokens.cjs +1 -0
  22. package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
  23. package/dist/node_modules/date-fns/add.cjs +1 -0
  24. package/dist/node_modules/date-fns/add.js +20 -0
  25. package/dist/node_modules/date-fns/addDays.cjs +1 -0
  26. package/dist/node_modules/date-fns/addDays.js +10 -0
  27. package/dist/node_modules/date-fns/addHours.cjs +1 -0
  28. package/dist/node_modules/date-fns/addHours.js +9 -0
  29. package/dist/node_modules/date-fns/addMilliseconds.cjs +1 -0
  30. package/dist/node_modules/date-fns/addMilliseconds.js +10 -0
  31. package/dist/node_modules/date-fns/addMonths.cjs +1 -0
  32. package/dist/node_modules/date-fns/addMonths.js +20 -0
  33. package/dist/node_modules/date-fns/addQuarters.cjs +1 -0
  34. package/dist/node_modules/date-fns/addQuarters.js +9 -0
  35. package/dist/node_modules/date-fns/addYears.cjs +1 -0
  36. package/dist/node_modules/date-fns/addYears.js +8 -0
  37. package/dist/node_modules/date-fns/compareAsc.cjs +1 -0
  38. package/dist/node_modules/date-fns/compareAsc.js +9 -0
  39. package/dist/node_modules/date-fns/constants.cjs +1 -0
  40. package/dist/node_modules/date-fns/constants.js +8 -0
  41. package/dist/node_modules/date-fns/constructFrom.cjs +1 -0
  42. package/dist/node_modules/date-fns/constructFrom.js +7 -0
  43. package/dist/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
  44. package/dist/node_modules/date-fns/differenceInCalendarDays.js +11 -0
  45. package/dist/node_modules/date-fns/differenceInCalendarYears.cjs +1 -0
  46. package/dist/node_modules/date-fns/differenceInCalendarYears.js +9 -0
  47. package/dist/node_modules/date-fns/differenceInYears.cjs +1 -0
  48. package/dist/node_modules/date-fns/differenceInYears.js +13 -0
  49. package/dist/node_modules/date-fns/eachDayOfInterval.cjs +1 -0
  50. package/dist/node_modules/date-fns/eachDayOfInterval.js +16 -0
  51. package/dist/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -0
  52. package/dist/node_modules/date-fns/eachQuarterOfInterval.js +17 -0
  53. package/dist/node_modules/date-fns/endOfQuarter.cjs +1 -0
  54. package/dist/node_modules/date-fns/endOfQuarter.js +9 -0
  55. package/dist/node_modules/date-fns/endOfWeek.cjs +1 -0
  56. package/dist/node_modules/date-fns/endOfWeek.js +11 -0
  57. package/dist/node_modules/date-fns/endOfYear.cjs +1 -0
  58. package/dist/node_modules/date-fns/endOfYear.js +9 -0
  59. package/dist/node_modules/date-fns/format.cjs +1 -0
  60. package/dist/node_modules/date-fns/format.js +59 -0
  61. package/dist/node_modules/date-fns/getDay.cjs +1 -0
  62. package/dist/node_modules/date-fns/getDay.js +8 -0
  63. package/dist/node_modules/date-fns/getDayOfYear.cjs +1 -0
  64. package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
  65. package/dist/node_modules/date-fns/getDaysInMonth.cjs +1 -0
  66. package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
  67. package/dist/node_modules/date-fns/getDefaultOptions.cjs +1 -0
  68. package/dist/node_modules/date-fns/getDefaultOptions.js +8 -0
  69. package/dist/node_modules/date-fns/getHours.cjs +1 -0
  70. package/dist/node_modules/date-fns/getHours.js +8 -0
  71. package/dist/node_modules/date-fns/getISODay.cjs +1 -0
  72. package/dist/node_modules/date-fns/getISODay.js +9 -0
  73. package/dist/node_modules/date-fns/getISOWeek.cjs +1 -0
  74. package/dist/node_modules/date-fns/getISOWeek.js +12 -0
  75. package/dist/node_modules/date-fns/getISOWeekYear.cjs +1 -0
  76. package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
  77. package/dist/node_modules/date-fns/getMinutes.cjs +1 -0
  78. package/dist/node_modules/date-fns/getMinutes.js +8 -0
  79. package/dist/node_modules/date-fns/getMonth.cjs +1 -0
  80. package/dist/node_modules/date-fns/getMonth.js +8 -0
  81. package/dist/node_modules/date-fns/getQuarter.cjs +1 -0
  82. package/dist/node_modules/date-fns/getQuarter.js +9 -0
  83. package/dist/node_modules/date-fns/getSeconds.cjs +1 -0
  84. package/dist/node_modules/date-fns/getSeconds.js +8 -0
  85. package/dist/node_modules/date-fns/getWeek.cjs +1 -0
  86. package/dist/node_modules/date-fns/getWeek.js +12 -0
  87. package/dist/node_modules/date-fns/getWeekYear.cjs +1 -0
  88. package/dist/node_modules/date-fns/getWeekYear.js +17 -0
  89. package/dist/node_modules/date-fns/getYear.cjs +1 -0
  90. package/dist/node_modules/date-fns/getYear.js +8 -0
  91. package/dist/node_modules/date-fns/isAfter.cjs +1 -0
  92. package/dist/node_modules/date-fns/isAfter.js +9 -0
  93. package/dist/node_modules/date-fns/isBefore.cjs +1 -0
  94. package/dist/node_modules/date-fns/isBefore.js +9 -0
  95. package/dist/node_modules/date-fns/isDate.cjs +1 -0
  96. package/dist/node_modules/date-fns/isDate.js +7 -0
  97. package/dist/node_modules/date-fns/isEqual.cjs +1 -0
  98. package/dist/node_modules/date-fns/isEqual.js +9 -0
  99. package/dist/node_modules/date-fns/isSameQuarter.cjs +1 -0
  100. package/dist/node_modules/date-fns/isSameQuarter.js +9 -0
  101. package/dist/node_modules/date-fns/isValid.cjs +1 -0
  102. package/dist/node_modules/date-fns/isValid.js +12 -0
  103. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +1 -0
  104. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  105. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +1 -0
  106. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  107. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +1 -0
  108. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  109. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +1 -0
  110. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  111. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +1 -0
  112. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  113. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +1 -0
  114. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  115. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +1 -0
  116. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  117. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.cjs +1 -0
  118. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  119. package/dist/node_modules/date-fns/locale/en-US/_lib/match.cjs +1 -0
  120. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  121. package/dist/node_modules/date-fns/locale/en-US.cjs +1 -0
  122. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  123. package/dist/node_modules/date-fns/parse/_lib/Parser.cjs +1 -0
  124. package/dist/node_modules/date-fns/parse/_lib/Parser.js +22 -0
  125. package/dist/node_modules/date-fns/parse/_lib/Setter.cjs +1 -0
  126. package/dist/node_modules/date-fns/parse/_lib/Setter.js +40 -0
  127. package/dist/node_modules/date-fns/parse/_lib/constants.cjs +1 -0
  128. package/dist/node_modules/date-fns/parse/_lib/constants.js +49 -0
  129. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.cjs +1 -0
  130. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
  131. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.cjs +1 -0
  132. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
  133. package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.cjs +1 -0
  134. package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +61 -0
  135. package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.cjs +1 -0
  136. package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
  137. package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.cjs +1 -0
  138. package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
  139. package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.cjs +1 -0
  140. package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
  141. package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.cjs +1 -0
  142. package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
  143. package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.cjs +1 -0
  144. package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
  145. package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs +1 -0
  146. package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
  147. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.cjs +1 -0
  148. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
  149. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.cjs +1 -0
  150. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
  151. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.cjs +1 -0
  152. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
  153. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.cjs +1 -0
  154. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
  155. package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.cjs +1 -0
  156. package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +99 -0
  157. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.cjs +1 -0
  158. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
  159. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.cjs +1 -0
  160. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
  161. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.cjs +1 -0
  162. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
  163. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.cjs +1 -0
  164. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
  165. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.cjs +1 -0
  166. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +74 -0
  167. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.cjs +1 -0
  168. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
  169. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.cjs +1 -0
  170. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
  171. package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.cjs +1 -0
  172. package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
  173. package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.cjs +1 -0
  174. package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +71 -0
  175. package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.cjs +1 -0
  176. package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +70 -0
  177. package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.cjs +1 -0
  178. package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
  179. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.cjs +1 -0
  180. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +74 -0
  181. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.cjs +1 -0
  182. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +71 -0
  183. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.cjs +1 -0
  184. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +70 -0
  185. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.cjs +1 -0
  186. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
  187. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.cjs +1 -0
  188. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
  189. package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.cjs +1 -0
  190. package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +49 -0
  191. package/dist/node_modules/date-fns/parse/_lib/parsers.cjs +1 -0
  192. package/dist/node_modules/date-fns/parse/_lib/parsers.js +67 -0
  193. package/dist/node_modules/date-fns/parse/_lib/utils.cjs +1 -0
  194. package/dist/node_modules/date-fns/parse/_lib/utils.js +103 -0
  195. package/dist/node_modules/date-fns/parse.cjs +1 -0
  196. package/dist/node_modules/date-fns/parse.js +90 -0
  197. package/dist/node_modules/date-fns/set.cjs +1 -0
  198. package/dist/node_modules/date-fns/set.js +11 -0
  199. package/dist/node_modules/date-fns/setDay.cjs +1 -0
  200. package/dist/node_modules/date-fns/setDay.js +12 -0
  201. package/dist/node_modules/date-fns/setHours.cjs +1 -0
  202. package/dist/node_modules/date-fns/setHours.js +9 -0
  203. package/dist/node_modules/date-fns/setISODay.cjs +1 -0
  204. package/dist/node_modules/date-fns/setISODay.js +11 -0
  205. package/dist/node_modules/date-fns/setISOWeek.cjs +1 -0
  206. package/dist/node_modules/date-fns/setISOWeek.js +10 -0
  207. package/dist/node_modules/date-fns/setMilliseconds.cjs +1 -0
  208. package/dist/node_modules/date-fns/setMilliseconds.js +9 -0
  209. package/dist/node_modules/date-fns/setMinutes.cjs +1 -0
  210. package/dist/node_modules/date-fns/setMinutes.js +9 -0
  211. package/dist/node_modules/date-fns/setMonth.cjs +1 -0
  212. package/dist/node_modules/date-fns/setMonth.js +13 -0
  213. package/dist/node_modules/date-fns/setSeconds.cjs +1 -0
  214. package/dist/node_modules/date-fns/setSeconds.js +9 -0
  215. package/dist/node_modules/date-fns/setWeek.cjs +1 -0
  216. package/dist/node_modules/date-fns/setWeek.js +10 -0
  217. package/dist/node_modules/date-fns/setYear.cjs +1 -0
  218. package/dist/node_modules/date-fns/setYear.js +10 -0
  219. package/dist/node_modules/date-fns/startOfDay.cjs +1 -0
  220. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  221. package/dist/node_modules/date-fns/startOfISOWeek.cjs +1 -0
  222. package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
  223. package/dist/node_modules/date-fns/startOfISOWeekYear.cjs +1 -0
  224. package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  225. package/dist/node_modules/date-fns/startOfMonth.cjs +1 -0
  226. package/dist/node_modules/date-fns/startOfMonth.js +9 -0
  227. package/dist/node_modules/date-fns/startOfQuarter.cjs +1 -0
  228. package/dist/node_modules/date-fns/startOfQuarter.js +9 -0
  229. package/dist/node_modules/date-fns/startOfWeek.cjs +1 -0
  230. package/dist/node_modules/date-fns/startOfWeek.js +11 -0
  231. package/dist/node_modules/date-fns/startOfWeekYear.cjs +1 -0
  232. package/dist/node_modules/date-fns/startOfWeekYear.js +13 -0
  233. package/dist/node_modules/date-fns/startOfYear.cjs +1 -0
  234. package/dist/node_modules/date-fns/startOfYear.js +10 -0
  235. package/dist/node_modules/date-fns/sub.cjs +1 -0
  236. package/dist/node_modules/date-fns/sub.js +19 -0
  237. package/dist/node_modules/date-fns/subDays.cjs +1 -0
  238. package/dist/node_modules/date-fns/subDays.js +8 -0
  239. package/dist/node_modules/date-fns/subMonths.cjs +1 -0
  240. package/dist/node_modules/date-fns/subMonths.js +8 -0
  241. package/dist/node_modules/date-fns/subYears.cjs +1 -0
  242. package/dist/node_modules/date-fns/subYears.js +8 -0
  243. package/dist/node_modules/date-fns/toDate.cjs +1 -0
  244. package/dist/node_modules/date-fns/toDate.js +8 -0
  245. package/dist/node_modules/date-fns/transpose.cjs +1 -0
  246. package/dist/node_modules/date-fns/transpose.js +18 -0
  247. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
  248. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +629 -622
  249. package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -1
  250. package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +19 -17
  251. package/dist/node_modules/qrcode/lib/core/byte-data.cjs +1 -1
  252. package/dist/node_modules/qrcode/lib/core/byte-data.js +6 -7
  253. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +1 -1
  254. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +3 -3
  255. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  256. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +3356 -3363
  257. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  258. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  259. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +16 -15
  261. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +13 -12
  263. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +12 -11
  265. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +6 -5
  267. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +10 -9
  269. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +11 -9
  271. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +8 -7
  273. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +17 -17
  275. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +5 -3
  277. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +17 -16
  279. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +15 -14
  281. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +11 -8
  283. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +7 -6
  285. package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.js +9 -8
  287. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +5 -4
  289. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +25 -23
  291. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +22 -20
  293. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +87 -93
  295. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  296. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +142 -73
  297. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -0
  298. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +110 -0
  299. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +8 -7
  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 +127 -135
  307. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +2 -4
  309. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -0
  311. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.js +5 -5
  313. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +75 -69
  315. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -0
  317. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +9 -9
  319. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -0
  321. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +28 -27
  323. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +13 -12
  325. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +3 -2
  327. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -0
  329. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.js +1 -1
  331. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +3 -2
  333. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +7 -6
  335. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +12 -9
  337. package/dist/prometheus-framework.cjs.js +27 -27
  338. package/dist/prometheus-framework.es.js +3819 -3782
  339. package/dist/style.css +1 -1
  340. package/dist/tickets.controller-CB549rZT.mjs +402 -0
  341. package/dist/tickets.controller-yqXXLR62.js +401 -0
  342. package/dist/wallet.server.js +1 -1
  343. package/dist/wallet.server.mjs +1 -1
  344. package/package.json +24 -25
  345. package/src/builder/webpack/webpack.config.base.js +2 -2
  346. package/src/builder/webpack/webpack.config.client.js +1 -1
  347. package/src/builder/webpack/webpack.config.spa.js +0 -6
  348. package/src/components/AskToLogin/AskToLogin.vue +1 -1
  349. package/src/components/EditImages/EditImages.vue +1 -1
  350. package/src/components/Error/Error.vue +1 -1
  351. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  352. package/src/components/UploadImage/UploadImage.vue +1 -1
  353. package/src/modules/auth/views/components/pages/EnterCode.vue +1 -1
  354. package/src/modules/auth/views/components/pages/EnterPassword.vue +1 -1
  355. package/src/modules/auth/views/components/pages/ResetPassword.vue +1 -1
  356. package/src/modules/auth/views/components/pages/SignIn.vue +1 -1
  357. package/src/modules/auth/views/components/pages/SignUp.vue +1 -1
  358. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  359. package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
  360. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  361. package/src/modules/constructor/components/elements/Image.vue +2 -2
  362. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  363. package/src/modules/events/components/blocks/CardEvent.vue +2 -2
  364. package/src/modules/events/components/pages/EditEvent.vue +12 -1
  365. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  366. package/src/modules/events/components/pages/Event.vue +1 -1
  367. package/src/modules/events/components/sections/HeroEvent.vue +4 -4
  368. package/src/modules/events/components/sections/SectionPreviousEvents.vue +1 -1
  369. package/src/modules/events/components/sections/SectionSpecialGuests.vue +1 -1
  370. package/src/modules/events/controllers/utils/templateEmail.js +1 -1
  371. package/src/modules/events/controllers/utils/templateTicket.js +1 -1
  372. package/src/modules/gallery/components/pages/Gallery.vue +1 -1
  373. package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -2
  374. package/src/modules/globals/views/components/blocks/CardHeader.vue +2 -2
  375. package/src/modules/globals/views/components/layouts/App.vue +15 -39
  376. package/src/modules/globals/views/components/layouts/Client.vue +89 -45
  377. package/src/modules/globals/views/components/partials/Footer.vue +7 -7
  378. package/src/modules/globals/views/components/partials/NavigationBar.vue +39 -16
  379. package/src/modules/globals/views/components/sections/Walkthrough.vue +2 -2
  380. package/src/modules/landing/components/sections/Examples.vue +1 -1
  381. package/src/modules/landing/components/sections/HowItWorksSection.vue +3 -3
  382. package/src/modules/landing/components/sections/HowToBuyWDR.vue +1 -1
  383. package/src/modules/landing/components/sections/InstagramSection.vue +2 -2
  384. package/src/modules/landing/components/sections/MobileApp.vue +1 -1
  385. package/src/modules/landing/components/sections/SectionEarn.vue +2 -2
  386. package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
  387. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +1 -1
  388. package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
  389. package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
  390. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +3 -3
  391. package/src/modules/landing/router/landing.js +1 -1
  392. package/src/modules/orders/components/blocks/CardOrder.vue +7 -7
  393. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  394. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  395. package/src/modules/orders/components/pages/OrderBackoffice.vue +3 -4
  396. package/src/modules/orders/components/pages/Orders.vue +0 -3
  397. package/src/modules/orders/components/pages/Orders_refact.vue +7 -7
  398. package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
  399. package/src/modules/organizations/components/blocks/CardOrganization.vue +2 -2
  400. package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
  401. package/src/modules/organizations/components/blocks/DepartmentSub.vue +1 -1
  402. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  403. package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
  404. package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
  405. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  406. package/src/modules/products/components/blocks/EditFilters.vue +1 -1
  407. package/src/modules/products/components/blocks/Images360.vue +1 -1
  408. package/src/modules/products/components/blocks/ImagesThumbnails.vue +1 -1
  409. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  410. package/src/modules/products/components/sections/MenuSection.vue +1 -1
  411. package/src/modules/products/components/sections/ProductInformationSection.vue +5 -5
  412. package/src/modules/products/components/sections/SectionProduct.vue +1 -1
  413. package/src/modules/spots/components/blocks/SpotSub.vue +1 -1
  414. package/src/modules/users/components/blocks/CardUser.vue +1 -1
  415. package/src/modules/users/components/pages/Profile.vue +1 -1
  416. package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +3 -3
  417. package/src/modules/wallet/views/components/pages/Wallet.vue +4 -4
@@ -1,235 +1,227 @@
1
- import { ref as f, onMounted as W, computed as R, openBlock as n, createElementBlock as m, createElementVNode as t, createTextVNode as F, toDisplayString as l, Fragment as I, renderList as D, normalizeClass as H, createCommentVNode as b, createVNode as x, unref as v, withCtx as j, createBlock as C, pushScopeId as G, popScopeId as J } from "vue";
1
+ import { ref as v, onMounted as W, computed as F, openBlock as r, createElementBlock as c, createElementVNode as t, createTextVNode as P, toDisplayString as a, Fragment as I, renderList as D, normalizeClass as L, createCommentVNode as h, createVNode as M, unref as f, withCtx as j, createBlock as x, pushScopeId as G, popScopeId as J } from "vue";
2
2
  import { useRouter as K, useRoute as Q } from "vue-router";
3
- import X from "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
4
- /* empty css */
5
3
  /* empty css */
6
- import Y from "../../../../components/Popup/Popup.vue2.js";
7
- import Z from "../../../icons/entities/IconTime.vue.js";
8
- import L from "../blocks/CardOrderItem.vue.js";
9
- import tt from "../../../organizations/components/blocks/CardOrganization.vue.js";
10
- import st from "../../../chats/components/pages/ChatPage.vue.js";
11
- import et from "../blocks/StatusHistory.vue.js";
12
- import { state as at } from "../../../globals/views/store/globals.js";
13
- import { actions as T, state as g } from "../../store/orders.js";
14
- import { actions as lt } from "../../../products/store/products.js";
4
+ import X from "../../../../components/Popup/Popup.vue2.js";
5
+ import Y from "../../../icons/entities/IconTime.vue.js";
6
+ import T from "../blocks/CardOrderItem.vue.js";
7
+ import Z from "../../../organizations/components/blocks/CardOrganization.vue.js";
8
+ import tt from "../../../chats/components/pages/ChatPage.vue.js";
9
+ import st from "../blocks/StatusHistory.vue.js";
10
+ import { state as et } from "../../../globals/views/store/globals.js";
11
+ import { actions as q, state as g } from "../../store/orders.js";
12
+ import { actions as at } from "../../../products/store/products.js";
15
13
  import { actions as it } from "../../../organizations/store/organizations.js";
16
14
  /* empty css */
17
- import nt from "../../../../../../_virtual/_plugin-vue_export-helper.js";
18
- const i = (k) => (G("data-v-ad498447"), k = k(), J(), k), ot = {
15
+ import lt from "../../../../../../_virtual/_plugin-vue_export-helper.js";
16
+ const l = (k) => (G("data-v-5785b6f6"), k = k(), J(), k), rt = {
19
17
  key: 0,
20
18
  class: "pd-thin"
21
- }, rt = {
19
+ }, nt = {
22
20
  key: 0,
23
21
  class: "mn-b-thin pos-relative w-100 bg-main radius-big pd-medium"
24
- }, dt = { class: "mn-b-small flex-nowrap flex" }, ut = { class: "t-medium p-medium" }, ct = { class: "p-small t-transp" }, mt = { class: "flex-nowrap flex gap-thin pos-relative" }, pt = { class: "bg-light mn-b-thin pd-thin radius-extra flex-nowrap flex" }, _t = { class: "w-max flex-v-center gap-thin flex-nowrap flex pd-thin radius-small bg-white-transp-20" }, ht = { class: "t-medium mn-r-auto" }, bt = /* @__PURE__ */ i(() => /* @__PURE__ */ t("span", { class: "p-small t-transp" }, "Estimated Arrival", -1)), vt = /* @__PURE__ */ i(() => /* @__PURE__ */ t("br", null, null, -1)), ft = /* @__PURE__ */ i(() => /* @__PURE__ */ t("p", { class: "t-medium p-medium mn-b-thin" }, " Positions ", -1)), gt = { class: "bg-light pd-small radius-small flex gap-thin flex-column mn-b-semi" }, wt = {
22
+ }, ot = { class: "mn-b-small flex-nowrap flex" }, ut = { class: "t-medium p-medium" }, dt = { class: "p-small t-transp" }, ct = { class: "flex-nowrap flex gap-thin pos-relative" }, mt = { class: "bg-light mn-b-thin pd-thin radius-extra flex-nowrap flex" }, pt = { class: "w-max flex-v-center gap-thin flex-nowrap flex pd-thin radius-small bg-white-transp-20" }, _t = { class: "t-medium mn-r-auto" }, ht = /* @__PURE__ */ l(() => /* @__PURE__ */ t("span", { class: "p-small t-transp" }, "Estimated Arrival", -1)), bt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("br", null, null, -1)), vt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "t-medium p-medium mn-b-thin" }, " Positions ", -1)), ft = { class: "bg-light pd-small radius-small flex gap-thin flex-column mn-b-semi" }, gt = {
25
23
  key: 1,
26
24
  class: "gap-thin cols-2"
27
- }, yt = { class: "w-100" }, kt = { class: "mn-b-thin bg-light w-100 o-hidden radius-medium" }, xt = { class: "pd-small flex-nowrap flex" }, Ct = { class: "mn-r-auto" }, Ot = /* @__PURE__ */ i(() => /* @__PURE__ */ t("span", { class: "d-block t-medium p-medium" }, "Order is", -1)), St = /* @__PURE__ */ i(() => /* @__PURE__ */ t("span", { class: "t-lh-075 h2 d-block mn-b-small" }, "created", -1)), Nt = { class: "pd-t-nano pd-b-nano pd-r-thin pd-l-thin radius-extra bg-black t-white w-max" }, Pt = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, It = /* @__PURE__ */ i(() => /* @__PURE__ */ t("p", { class: "w-100 t-medium p-medium" }, " Phone ", -1)), Dt = { class: "w-100 t-right" }, Mt = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, $t = /* @__PURE__ */ i(() => /* @__PURE__ */ t("p", { class: "t-medium p-medium" }, " Address ", -1)), zt = { class: "w-100 t-right" }, Vt = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, Et = /* @__PURE__ */ i(() => /* @__PURE__ */ t("p", { class: "mn-b-small t-medium p-medium" }, " Delivery ", -1)), Bt = { class: "w-100 t-right mn-b-small" }, At = {
25
+ }, wt = { class: "w-100" }, yt = { class: "mn-b-thin bg-light w-100 o-hidden radius-medium" }, kt = { class: "pd-small flex-nowrap flex" }, xt = { class: "mn-r-auto" }, Ct = /* @__PURE__ */ l(() => /* @__PURE__ */ t("span", { class: "d-block t-medium p-medium" }, "Order is", -1)), Ot = /* @__PURE__ */ l(() => /* @__PURE__ */ t("span", { class: "t-lh-075 h2 d-block mn-b-small" }, "created", -1)), St = { class: "pd-t-nano pd-b-nano pd-r-thin pd-l-thin radius-extra bg-black t-white w-max" }, Nt = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, Pt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "w-100 t-medium p-medium" }, " Phone ", -1)), It = { class: "w-100 t-right" }, Dt = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, Mt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "t-medium p-medium" }, " Address ", -1)), $t = { class: "w-100 t-right" }, zt = { class: "pd-small cols-2 br-t br-black-transp-10 br-solid" }, Et = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "mn-b-small t-medium p-medium" }, " Delivery ", -1)), Bt = { class: "w-100 t-right mn-b-small" }, At = {
28
26
  key: 2,
29
27
  class: "t-transp"
30
- }, Rt = { class: "bg-light radius-big pd-medium mn-r-bold pd-r-big br-right-dark w-100" }, Ft = /* @__PURE__ */ i(() => /* @__PURE__ */ t("h3", { class: "mn-b-small" }, "Order Summary", -1)), Ht = { class: "flex gap-thin flex-column mn-b-semi" }, Lt = { class: "mn-b-medium radius-small br-solid br-1px br-black-transp-10 w-100" }, Tt = { class: "pd-small br-solid br-b br-black-transp-10 flex" }, Ut = /* @__PURE__ */ i(() => /* @__PURE__ */ t("p", { class: "mn-r-auto t-transp" }, "In total", -1)), qt = { class: "pd-small br-solid br-b br-black-transp-10 flex" }, Wt = /* @__PURE__ */ i(() => /* @__PURE__ */ t("p", { class: "mn-r-auto t-transp" }, "Delivery", -1)), jt = { class: "pd-small flex-bottom flex" }, Gt = /* @__PURE__ */ i(() => /* @__PURE__ */ t("p", { class: "mn-r-auto t-transp" }, "In total to pay", -1)), Jt = { class: "p-big t-semi" }, Kt = /* @__PURE__ */ i(() => /* @__PURE__ */ t("h3", { class: "mn-b-small" }, "Chat With Us", -1)), Qt = {
28
+ }, Rt = { class: "bg-light radius-big pd-medium mn-r-bold pd-r-big br-right-dark w-100" }, Vt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("h3", { class: "mn-b-small" }, "Order Summary", -1)), Ft = { class: "flex gap-thin flex-column mn-b-semi" }, Lt = { class: "mn-b-medium radius-small br-solid br-1px br-black-transp-10 w-100" }, Tt = { class: "pd-small br-solid br-b br-black-transp-10 flex" }, qt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "mn-r-auto t-transp" }, "In total", -1)), Ht = { class: "pd-small br-solid br-b br-black-transp-10 flex" }, Ut = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "mn-r-auto t-transp" }, "Delivery", -1)), Wt = { class: "pd-small flex-bottom flex" }, jt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("p", { class: "mn-r-auto t-transp" }, "In total to pay", -1)), Gt = { class: "p-big t-semi" }, Jt = /* @__PURE__ */ l(() => /* @__PURE__ */ t("h3", { class: "mn-b-small" }, "Chat With Us", -1)), Kt = {
31
29
  __name: "OrderBackoffice",
32
30
  setup(k) {
33
31
  K();
34
- const w = Q(), e = f(null), O = f(null), r = f(null), d = ["created", "confirmed", "packing", "in delivery", "delivered"], M = ["Created", "Confirmed", "Packing", "In Delivery", "Delivered"], S = (s) => d.slice(s).includes(e.value.status), N = f(!1), $ = f(null), P = f([]);
35
- function U(s) {
36
- N.value = !0, typeof s == "number" && ($.value = s);
32
+ const w = Q(), e = v(null), C = v(null), o = v(null), u = ["created", "confirmed", "packing", "in delivery", "delivered"], $ = ["Created", "Confirmed", "Packing", "In Delivery", "Delivered"], O = (s) => u.slice(s).includes(e.value.status), S = v(!1), z = v(null), N = v([]);
33
+ function H(s) {
34
+ S.value = !0, typeof s == "number" && (z.value = s);
37
35
  }
38
- function z() {
39
- N.value = !1, $.value = null;
36
+ function E() {
37
+ S.value = !1, z.value = null;
40
38
  }
41
39
  W(async () => {
42
- var a, o;
43
- e.value = await T.read({ _id: w.params.order }), e.value = e.value[0], O.value = await lt.read({
40
+ var i, n;
41
+ e.value = await q.read({ _id: w.params.order }), e.value = e.value[0], C.value = await at.read({
44
42
  organization: e.value.owner.target._id,
45
43
  limit: 1e3
46
- }), console.log(O.value);
47
- const s = O.value.reduce((p, _) => (p[_._id] = _, p), {});
48
- console.log(s), P.value = e.value.positions.map(({ _id: p, quantity: _ }) => {
49
- const h = s[p];
44
+ }), console.log(C.value);
45
+ const s = C.value.reduce((m, p) => (m[p._id] = p, m), {});
46
+ console.log(s), N.value = e.value.positions.map(({ _id: m, quantity: p }) => {
47
+ const _ = s[m];
50
48
  return {
51
- name: h.name,
52
- images: h.images,
53
- price: h.price,
54
- _id: h._id,
55
- quantity: _
49
+ name: _.name,
50
+ images: _.images,
51
+ price: _.price,
52
+ _id: _._id,
53
+ quantity: p
56
54
  };
57
- }), r.value = await it.read({
58
- _id: (a = e.value) == null ? void 0 : a.owner.target._id,
59
- location: (o = at.position) == null ? void 0 : o.location
55
+ }), o.value = await it.read({
56
+ _id: (i = e.value) == null ? void 0 : i.owner.target._id,
57
+ location: (n = et.position) == null ? void 0 : n.location
60
58
  });
61
59
  });
62
- let V = R(() => {
60
+ let B = F(() => {
63
61
  var s;
64
- return Number((s = e.value) == null ? void 0 : s.positions.reduce((a, o) => a + o.price * o.quantity, 0));
62
+ return Number((s = e.value) == null ? void 0 : s.positions.reduce((i, n) => i + n.price * n.quantity, 0));
65
63
  });
66
- R(() => {
64
+ F(() => {
67
65
  var s;
68
- return Number((s = e.value) == null ? void 0 : s.positions.reduce((a, o) => a + o.quantity, 0));
66
+ return Number((s = e.value) == null ? void 0 : s.positions.reduce((i, n) => i + n.quantity, 0));
69
67
  });
70
68
  function y(s) {
71
- const a = d.indexOf(s);
72
- return a !== -1 && a + 1 < d.length ? d[a + 1] : null;
69
+ const i = u.indexOf(s);
70
+ return i !== -1 && i + 1 < u.length ? u[i + 1] : null;
73
71
  }
74
- function E(s) {
75
- const a = d.indexOf(s);
76
- return s ? M[a] : "";
72
+ function A(s) {
73
+ const i = u.indexOf(s);
74
+ return s ? $[i] : "";
77
75
  }
78
- async function q() {
76
+ async function U() {
79
77
  const s = y(g.current.status);
80
- s ? (g.current.status = s, await T.update(g.current)) : console.error("Next status is void. Must handle somehow."), z();
78
+ s ? (g.current.status = s, await q.update(g.current)) : console.error("Next status is void. Must handle somehow."), E();
81
79
  }
82
- return (s, a) => {
83
- var o, p, _, h, B, A;
84
- return e.value && r.value ? (n(), m("div", ot, [
85
- e.value ? (n(), m("div", rt, [
86
- t("div", dt, [
80
+ return (s, i) => {
81
+ var n, m, p, _, R, V;
82
+ return e.value && o.value ? (r(), c("div", rt, [
83
+ e.value ? (r(), c("div", nt, [
84
+ t("div", ot, [
87
85
  t("p", ut, [
88
- F(" Order No: "),
89
- t("span", ct, "#" + l(e.value._id), 1)
86
+ P(" Order No: "),
87
+ t("span", dt, "#" + a(e.value._id), 1)
90
88
  ])
91
89
  ]),
92
- t("div", mt, [
93
- (n(), m(I, null, D(d, (u, c) => t("div", {
94
- key: c,
90
+ t("div", ct, [
91
+ (r(), c(I, null, D(u, (b, d) => t("div", {
92
+ key: d,
95
93
  class: "w-20"
96
94
  }, [
97
95
  t("div", {
98
- class: H([
96
+ class: L([
99
97
  "bg-light br-anim br-glow radius-extra h-1r w-100",
100
- { "br-glow-anim": S(c) },
101
- { "t-transp": !S(c) },
102
- { blink: e.value.status === d[c] && y(e.value.status) }
98
+ { "br-glow-anim": O(d) },
99
+ { "t-transp": !O(d) },
100
+ { blink: e.value.status === u[d] && y(e.value.status) }
103
101
  ])
104
102
  }, null, 2),
105
103
  t("div", {
106
- class: H([{ "t-transp": !S(c) }, "mn-t-thin p-small t-medium uppercase"])
107
- }, l(M[c]), 3)
104
+ class: L([{ "t-transp": !O(d) }, "mn-t-thin p-small t-medium uppercase"])
105
+ }, a($[d]), 3)
108
106
  ])), 64))
109
107
  ])
110
- ])) : b("", !0),
111
- t("div", pt, [
112
- t("div", _t, [
113
- x(Z, {
108
+ ])) : h("", !0),
109
+ t("div", mt, [
110
+ t("div", pt, [
111
+ M(Y, {
114
112
  class: "i-semi t-transp",
115
113
  fill: "rgb(var(--black)"
116
114
  }),
117
- t("p", ht, [
115
+ t("p", _t, [
116
+ ht,
118
117
  bt,
119
- vt,
120
- F(l(s.formatDate(e.value.deadline)), 1)
118
+ P(a(s.formatDate(e.value.deadline)), 1)
121
119
  ])
122
120
  ]),
123
- y(e.value.status) && v(w).name === "Order Edit" ? (n(), m("button", {
121
+ y(e.value.status) && f(w).name === "Order Edit" ? (r(), c("button", {
124
122
  key: 0,
125
- onClick: U,
123
+ onClick: H,
126
124
  class: "mn-l-auto bg-black t-white button"
127
- }, " Mark as " + l(E(y(e.value.status))), 1)) : b("", !0)
125
+ }, " Mark as " + a(A(y(e.value.status))), 1)) : h("", !0)
128
126
  ]),
129
- x(Y, {
127
+ M(X, {
130
128
  title: "Change status",
131
- onClosePopup: z,
132
- isPopupOpen: N.value,
129
+ onClosePopup: E,
130
+ isPopupOpen: S.value,
133
131
  class: "bg-white w-min-30r w-max-30r radius-big pd-big"
134
132
  }, {
135
133
  default: j(() => [
136
- x(v(X), {
137
- modelValue: e.value.deadline,
138
- "onUpdate:modelValue": a[0] || (a[0] = (u) => e.value.deadline = u),
139
- "hide-navigation": ["calendar"],
140
- flow: ["time"],
141
- class: "z-index-3 bg-light radius-small pd-small mn-b-thin mn-b-semi"
142
- }, null, 8, ["modelValue"]),
143
- ft,
144
- t("ul", gt, [
145
- (n(!0), m(I, null, D(P.value, (u, c) => (n(), C(L, {
146
- key: u._id,
134
+ P(a(e.value.deadline) + " ", 1),
135
+ vt,
136
+ t("ul", ft, [
137
+ (r(!0), c(I, null, D(N.value, (b, d) => (r(), x(T, {
138
+ key: b._id,
147
139
  editable: !1,
148
- product: u
140
+ product: b
149
141
  }, null, 8, ["product"]))), 128))
150
142
  ]),
151
143
  t("button", {
152
- onClick: q,
144
+ onClick: U,
153
145
  class: "w-100 bg-black-small t-white button"
154
- }, l("Confirm Changing to " + E(y(e.value.status))), 1)
146
+ }, a("Confirm Changing to " + A(y(e.value.status))), 1)
155
147
  ]),
156
148
  _: 1
157
149
  }, 8, ["isPopupOpen"]),
158
- e.value ? (n(), m("div", wt, [
159
- t("div", yt, [
160
- r.value[0] ? (n(), C(tt, {
150
+ e.value ? (r(), c("div", gt, [
151
+ t("div", wt, [
152
+ o.value[0] ? (r(), x(Z, {
161
153
  key: 0,
162
- organization: r.value[0],
154
+ organization: o.value[0],
163
155
  showRating: !0,
164
156
  showFollowers: !1,
165
157
  showProducts: !1,
166
158
  class: "bg-light mn-b-thin w-100 o-hidden radius-big pd-small"
167
- }, null, 8, ["organization"])) : b("", !0),
168
- t("div", kt, [
169
- t("div", xt, [
170
- t("div", Ct, [
159
+ }, null, 8, ["organization"])) : h("", !0),
160
+ t("div", yt, [
161
+ t("div", kt, [
162
+ t("div", xt, [
163
+ Ct,
171
164
  Ot,
172
- St,
173
- t("p", Nt, l(s.formatDate(e.value.createdAt)), 1)
165
+ t("p", St, a(s.formatDate(e.value.createdAt)), 1)
174
166
  ])
175
167
  ]),
176
- t("div", Pt, [
177
- It,
178
- t("p", Dt, l(((o = e.value.customer.target) == null ? void 0 : o.number) || "Not specified"), 1)
168
+ t("div", Nt, [
169
+ Pt,
170
+ t("p", It, a(((n = e.value.customer.target) == null ? void 0 : n.number) || "Not specified"), 1)
179
171
  ]),
180
- t("div", Mt, [
181
- $t,
182
- t("p", zt, l(e.value.delivery.address ? e.value.delivery.address.slice(0, 64) : "Not specified"), 1)
172
+ t("div", Dt, [
173
+ Mt,
174
+ t("p", $t, a(e.value.delivery.address ? e.value.delivery.address.slice(0, 64) : "Not specified"), 1)
183
175
  ]),
184
- t("div", Vt, [
176
+ t("div", zt, [
185
177
  Et,
186
- t("p", Bt, l(e.value.delivery.type ? e.value.delivery.type : "Not specified"), 1)
178
+ t("p", Bt, a(e.value.delivery.type ? e.value.delivery.type : "Not specified"), 1)
187
179
  ])
188
180
  ]),
189
- g.current.status_history ? (n(), C(et, {
181
+ g.current.status_history ? (r(), x(st, {
190
182
  key: 1,
191
- statuses: d,
183
+ statuses: u,
192
184
  statusHistory: g.current.status_history,
193
185
  statusCurrent: g.current.status,
194
- edit: v(w).name === "Order Edit"
195
- }, null, 8, ["statusHistory", "statusCurrent", "edit"])) : b("", !0),
196
- s.payment && s.payment.Status === "CONFIRMED" ? (n(), m("span", At, "Paid")) : b("", !0)
186
+ edit: f(w).name === "Order Edit"
187
+ }, null, 8, ["statusHistory", "statusCurrent", "edit"])) : h("", !0),
188
+ s.payment && s.payment.Status === "CONFIRMED" ? (r(), c("span", At, "Paid")) : h("", !0)
197
189
  ]),
198
190
  t("div", Rt, [
199
- Ft,
200
- t("ul", Ht, [
201
- (n(!0), m(I, null, D(P.value, (u, c) => (n(), C(L, {
202
- key: u._id,
191
+ Vt,
192
+ t("ul", Ft, [
193
+ (r(!0), c(I, null, D(N.value, (b, d) => (r(), x(T, {
194
+ key: b._id,
203
195
  editable: !1,
204
- product: u
196
+ product: b
205
197
  }, null, 8, ["product"]))), 128))
206
198
  ]),
207
199
  t("div", Lt, [
208
200
  t("div", Tt, [
209
- Ut,
210
- t("p", null, l(v(V)) + " " + l(s.returnCurrency()), 1)
201
+ qt,
202
+ t("p", null, a(f(B)) + " " + a(s.returnCurrency()), 1)
211
203
  ]),
212
- t("div", qt, [
213
- Wt,
214
- t("p", null, l(s.returnCurrency()) + " " + l(Math.trunc(100 + 20 * ((p = r.value[0]) == null ? void 0 : p.distance) - 7, 5 * (((_ = r.value[0]) == null ? void 0 : _.distance) / 10))), 1)
204
+ t("div", Ht, [
205
+ Ut,
206
+ t("p", null, a(s.returnCurrency()) + " " + a(Math.trunc(100 + 20 * ((m = o.value[0]) == null ? void 0 : m.distance) - 7, 5 * (((p = o.value[0]) == null ? void 0 : p.distance) / 10))), 1)
215
207
  ]),
216
- t("div", jt, [
217
- Gt,
218
- t("p", Jt, l(s.returnCurrency()) + " " + l(Math.trunc(100 + 20 * ((h = r.value[0]) == null ? void 0 : h.distance) - 7, 5 * (((B = r.value[0]) == null ? void 0 : B.distance) / 10)) + v(V)), 1)
208
+ t("div", Wt, [
209
+ jt,
210
+ t("p", Gt, a(s.returnCurrency()) + " " + a(Math.trunc(100 + 20 * ((_ = o.value[0]) == null ? void 0 : _.distance) - 7, 5 * (((R = o.value[0]) == null ? void 0 : R.distance) / 10)) + f(B)), 1)
219
211
  ])
220
212
  ]),
221
- Kt,
222
- x(st, {
223
- username: v(w).name === "Order Status" ? ((A = e.value.user) == null ? void 0 : A.name) || "User" : "Weeder Support",
224
- chatID: v(w).params.order,
213
+ Jt,
214
+ M(tt, {
215
+ username: f(w).name === "Order Status" ? ((V = e.value.user) == null ? void 0 : V.name) || "User" : "Weeder Support",
216
+ chatID: f(w).params.order,
225
217
  class: "radius-semi bg-white o-hidden"
226
218
  }, null, 8, ["username", "chatID"])
227
219
  ])
228
- ])) : b("", !0)
229
- ])) : b("", !0);
220
+ ])) : h("", !0)
221
+ ])) : h("", !0);
230
222
  };
231
223
  }
232
- }, _s = /* @__PURE__ */ nt(Qt, [["__scopeId", "data-v-ad498447"]]);
224
+ }, cs = /* @__PURE__ */ lt(Kt, [["__scopeId", "data-v-5785b6f6"]]);
233
225
  export {
234
- _s as default
226
+ cs as default
235
227
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("vue-router");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");;/* empty css */;/* empty css */const f=require("../../../../components/Block/Block.vue.cjs"),d=require("../../store/orders.cjs"),y=require("../../../auth/views/store/auth.cjs");;/* empty css */const N=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),b=require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs"),V=require("../../../../components/Feed/Feed.vue.cjs"),E=require("../../../icons/entities/IconTime.vue.cjs"),k={class:"pd-thin"},w={class:"gap-micro flex-nowrap flex"},S={class:"w-100 bg-white radius-small pd-small"},D=e.createElementVNode("p",{class:"mn-b-thin"},"Total",-1),B={class:"w-100 bg-white radius-small pd-small"},x=e.createElementVNode("p",{class:"mn-b-thin"},"Paid",-1),C={class:"w-100 bg-white radius-small pd-small"},q=e.createElementVNode("p",{class:"mn-b-thin"},"Unpaid",-1),P={class:"mn-b-small pd-small bg-white radius-small flex-nowrap flex"},T={class:"w-100"},O={class:"mn-b-thin"},F={class:"t-truncate"},A={class:"w-100 t-right"},M={class:"mn-b-thin"},U={class:"cols-1 mn-b-small gap-thin pd-small bg-white radius-small"},L={class:"mn-r-auto"},R={class:"t-right"},z={class:"t-transp"},H={key:0},I={class:"mn-r-auto"},$={class:"t-right"},j={class:"t-transp"},G={class:"pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex"},J={class:"t-medium mn-r-auto"},K={class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"},Q=e.createElementVNode("span",{class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin t-white bg-red"}," Unpaid ",-1),W={key:0,class:"pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"},X=e.createElementVNode("p",{class:"mn-b-thin t-transp uppercase p-small t-medium"},"Comment",-1),Y={__name:"Orders",setup(Z){const h=p.useRoute();p.useRouter();const i=e.ref(!1),o=e.ref("all"),m=e.computed(()=>g(d.state.all)),_=e.computed(()=>v(d.state.all,"unpaid"));function g(a){return a.reduce((s,r)=>s+r.positions.reduce((l,t)=>l+t.price,0),0)}function v(a,s){return a.reduce((r,l)=>l.payment.status===s?r+l.positions.reduce((t,c)=>t+c.price,0):r,0)}return e.onMounted(async()=>{}),(a,s)=>{const r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",k,[e.createVNode(b.default,{title:"Orders","onUpdate:tabs_current":s[0]||(s[0]=l=>o.value=l),tabs_current:o.value,tabs:[{name:"All",value:"all"},{name:"Created",value:"created"},{name:"Confirmed",value:"confirmed"},{name:"Preparing",value:"preparing"},{name:"Prepared",value:"prepared"},{name:"In delivery",value:"in delivery"},{name:"Delivered",value:"delivered"},{name:"Closed",value:"closed"}],actions:[{to:{name:"AdminOrderAdd"},label:"Create Order"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current"]),e.createVNode(f.default,{title:"Balance",class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("div",S,[D,e.createElementVNode("h3",null,e.toDisplayString(a.formatPrice(m.value)),1)]),e.createElementVNode("div",B,[x,e.createElementVNode("h3",null,e.toDisplayString(a.formatPrice(_.value)),1)]),e.createElementVNode("div",C,[q,e.createElementVNode("h3",null,e.toDisplayString(a.formatPrice(m.value)),1)])])]),_:1}),e.createVNode(V.default,{search:!0,states:{empty:{title:"No Orders Found",description:"Currently, there are no orders."}},store:{read:l=>d.actions.read(l)},options:{limit:15,owner:e.unref(h).params._id,...o.value!=="all"&&{status:o.value}},class:"gap-thin cols-3"},{default:e.withCtx(({items:l})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,t=>(e.openBlock(),e.createBlock(r,{to:{name:"Order Edit",params:{order:t._id}},class:"bg-light pos-relative pd-medium radius-big"},{default:e.withCtx(()=>{var c;return[e.createVNode(N.default,{entity:t,entityType:"order",user:y.state.user,owner:t.creator,creator:t.creator,date:t.createdAt,class:"mn-b-small"},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",P,[e.createElementVNode("div",T,[e.createElementVNode("h3",O,e.toDisplayString(((c=t.customer.target.profile)==null?void 0:c.name)||t.customer.target.phone||t.customer.target.email||"No name"),1),e.createElementVNode("p",F,e.toDisplayString(t.delivery.address||"Not specified"),1)]),e.createElementVNode("div",A,[e.createElementVNode("h3",M,e.toDisplayString(a.returnCurrency())+e.toDisplayString(d.getters.getTotal(t.positions)),1),e.createElementVNode("p",null,"#"+e.toDisplayString(t._id.slice(0,4)+"..."+t._id.slice(-4)),1)])]),e.createElementVNode("div",U,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(0,2),(n,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"w-100 flex"},[e.createElementVNode("p",L,e.toDisplayString(n.name),1),e.createElementVNode("p",R,[e.createTextVNode(e.toDisplayString(n.quantity)+" "+e.toDisplayString(n.type)+" x "+e.toDisplayString(n.price)+" ",1),e.createElementVNode("span",z,e.toDisplayString(a.returnCurrency()),1)])]))),128)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value&&t.positions.length>2?(e.openBlock(),e.createElementBlock("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(2),(n,u)=>(e.openBlock(),e.createElementBlock("div",{key:u+2,class:"w-100 flex"},[e.createElementVNode("p",I,e.toDisplayString(n.name),1),e.createElementVNode("p",$,[e.createTextVNode(e.toDisplayString(n.quantity)+" "+e.toDisplayString(n.type)+" x "+e.toDisplayString(n.price)+" ",1),e.createElementVNode("span",j,e.toDisplayString(a.returnCurrency()),1)])]))),128))])):e.createCommentVNode("",!0)]),_:2},1024),t.positions.length>2?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[1]||(s[1]=e.withModifiers(n=>i.value=!i.value,["prevent"])),class:"radius-big bg-light-transp-50 pd-nano w-100 flex-center flex"},e.toDisplayString(i.value?"Hide":`+${t.positions.length-2} more`),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",G,[e.createVNode(E.default,{class:"i-semi t-transp",fill:"rgb(var(--black)"}),e.createElementVNode("p",J,e.toDisplayString(a.formatDate(t.deadline)),1),e.createElementVNode("span",K,e.toDisplayString(t.status),1),Q]),t.comment?(e.openBlock(),e.createElementBlock("div",W,[X,e.createElementVNode("p",null,e.toDisplayString(t.comment),1)])):e.createCommentVNode("",!0)]}),_:2},1032,["to"]))),256))]),_:1},8,["store","options"])])}}};exports.default=Y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("vue-router");;/* empty css */const f=require("../../../../components/Block/Block.vue.cjs"),d=require("../../store/orders.cjs"),y=require("../../../auth/views/store/auth.cjs");;/* empty css */const N=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),b=require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs"),V=require("../../../../components/Feed/Feed.vue.cjs"),E=require("../../../icons/entities/IconTime.vue.cjs"),k={class:"pd-thin"},w={class:"gap-micro flex-nowrap flex"},S={class:"w-100 bg-white radius-small pd-small"},D=e.createElementVNode("p",{class:"mn-b-thin"},"Total",-1),B={class:"w-100 bg-white radius-small pd-small"},x=e.createElementVNode("p",{class:"mn-b-thin"},"Paid",-1),C={class:"w-100 bg-white radius-small pd-small"},q=e.createElementVNode("p",{class:"mn-b-thin"},"Unpaid",-1),P={class:"mn-b-small pd-small bg-white radius-small flex-nowrap flex"},T={class:"w-100"},O={class:"mn-b-thin"},F={class:"t-truncate"},A={class:"w-100 t-right"},M={class:"mn-b-thin"},U={class:"cols-1 mn-b-small gap-thin pd-small bg-white radius-small"},L={class:"mn-r-auto"},R={class:"t-right"},z={class:"t-transp"},H={key:0},I={class:"mn-r-auto"},$={class:"t-right"},j={class:"t-transp"},G={class:"pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex"},J={class:"t-medium mn-r-auto"},K={class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"},Q=e.createElementVNode("span",{class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin t-white bg-red"}," Unpaid ",-1),W={key:0,class:"pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"},X=e.createElementVNode("p",{class:"mn-b-thin t-transp uppercase p-small t-medium"},"Comment",-1),Y={__name:"Orders",setup(Z){const h=p.useRoute();p.useRouter();const i=e.ref(!1),o=e.ref("all"),m=e.computed(()=>g(d.state.all)),_=e.computed(()=>v(d.state.all,"unpaid"));function g(a){return a.reduce((s,r)=>s+r.positions.reduce((l,t)=>l+t.price,0),0)}function v(a,s){return a.reduce((r,l)=>l.payment.status===s?r+l.positions.reduce((t,c)=>t+c.price,0):r,0)}return e.onMounted(async()=>{}),(a,s)=>{const r=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",k,[e.createVNode(b.default,{title:"Orders","onUpdate:tabs_current":s[0]||(s[0]=l=>o.value=l),tabs_current:o.value,tabs:[{name:"All",value:"all"},{name:"Created",value:"created"},{name:"Confirmed",value:"confirmed"},{name:"Preparing",value:"preparing"},{name:"Prepared",value:"prepared"},{name:"In delivery",value:"in delivery"},{name:"Delivered",value:"delivered"},{name:"Closed",value:"closed"}],actions:[{to:{name:"AdminOrderAdd"},label:"Create Order"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current"]),e.createVNode(f.default,{title:"Balance",class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("div",S,[D,e.createElementVNode("h3",null,e.toDisplayString(a.formatPrice(m.value)),1)]),e.createElementVNode("div",B,[x,e.createElementVNode("h3",null,e.toDisplayString(a.formatPrice(_.value)),1)]),e.createElementVNode("div",C,[q,e.createElementVNode("h3",null,e.toDisplayString(a.formatPrice(m.value)),1)])])]),_:1}),e.createVNode(V.default,{search:!0,states:{empty:{title:"No Orders Found",description:"Currently, there are no orders."}},store:{read:l=>d.actions.read(l)},options:{limit:15,owner:e.unref(h).params._id,...o.value!=="all"&&{status:o.value}},class:"gap-thin cols-3"},{default:e.withCtx(({items:l})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,t=>(e.openBlock(),e.createBlock(r,{to:{name:"Order Edit",params:{order:t._id}},class:"bg-light pos-relative pd-medium radius-big"},{default:e.withCtx(()=>{var c;return[e.createVNode(N.default,{entity:t,entityType:"order",user:y.state.user,owner:t.creator,creator:t.creator,date:t.createdAt,class:"mn-b-small"},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",P,[e.createElementVNode("div",T,[e.createElementVNode("h3",O,e.toDisplayString(((c=t.customer.target.profile)==null?void 0:c.name)||t.customer.target.phone||t.customer.target.email||"No name"),1),e.createElementVNode("p",F,e.toDisplayString(t.delivery.address||"Not specified"),1)]),e.createElementVNode("div",A,[e.createElementVNode("h3",M,e.toDisplayString(a.returnCurrency())+e.toDisplayString(d.getters.getTotal(t.positions)),1),e.createElementVNode("p",null,"#"+e.toDisplayString(t._id.slice(0,4)+"..."+t._id.slice(-4)),1)])]),e.createElementVNode("div",U,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(0,2),(n,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"w-100 flex"},[e.createElementVNode("p",L,e.toDisplayString(n.name),1),e.createElementVNode("p",R,[e.createTextVNode(e.toDisplayString(n.quantity)+" "+e.toDisplayString(n.type)+" x "+e.toDisplayString(n.price)+" ",1),e.createElementVNode("span",z,e.toDisplayString(a.returnCurrency()),1)])]))),128)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value&&t.positions.length>2?(e.openBlock(),e.createElementBlock("div",H,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(2),(n,u)=>(e.openBlock(),e.createElementBlock("div",{key:u+2,class:"w-100 flex"},[e.createElementVNode("p",I,e.toDisplayString(n.name),1),e.createElementVNode("p",$,[e.createTextVNode(e.toDisplayString(n.quantity)+" "+e.toDisplayString(n.type)+" x "+e.toDisplayString(n.price)+" ",1),e.createElementVNode("span",j,e.toDisplayString(a.returnCurrency()),1)])]))),128))])):e.createCommentVNode("",!0)]),_:2},1024),t.positions.length>2?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[1]||(s[1]=e.withModifiers(n=>i.value=!i.value,["prevent"])),class:"radius-big bg-light-transp-50 pd-nano w-100 flex-center flex"},e.toDisplayString(i.value?"Hide":`+${t.positions.length-2} more`),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",G,[e.createVNode(E.default,{class:"i-semi t-transp",fill:"rgb(var(--black)"}),e.createElementVNode("p",J,e.toDisplayString(a.formatDate(t.deadline)),1),e.createElementVNode("span",K,e.toDisplayString(t.status),1),Q]),t.comment?(e.openBlock(),e.createElementBlock("div",W,[X,e.createElementVNode("p",null,e.toDisplayString(t.comment),1)])):e.createCommentVNode("",!0)]}),_:2},1032,["to"]))),256))]),_:1},8,["store","options"])])}}};exports.default=Y;
@@ -1,7 +1,5 @@
1
1
  import { ref as w, computed as y, onMounted as $, resolveComponent as O, openBlock as i, createElementBlock as r, createVNode as d, withCtx as _, createElementVNode as e, toDisplayString as s, unref as A, Fragment as f, renderList as v, createBlock as B, createTextVNode as x, Transition as U, createCommentVNode as g, withModifiers as V } from "vue";
2
2
  import { useRoute as D, useRouter as E } from "vue-router";
3
- import "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
4
- /* empty css */
5
3
  /* empty css */
6
4
  import q from "../../../../components/Block/Block.vue.js";
7
5
  import { state as k, actions as z, getters as F } from "../../store/orders.js";
@@ -14,7 +12,7 @@ import H from "../../../icons/entities/IconTime.vue.js";
14
12
  const L = { class: "pd-thin" }, j = { class: "gap-micro flex-nowrap flex" }, G = { class: "w-100 bg-white radius-small pd-small" }, J = /* @__PURE__ */ e("p", { class: "mn-b-thin" }, "Total", -1), K = { class: "w-100 bg-white radius-small pd-small" }, Q = /* @__PURE__ */ e("p", { class: "mn-b-thin" }, "Paid", -1), W = { class: "w-100 bg-white radius-small pd-small" }, X = /* @__PURE__ */ e("p", { class: "mn-b-thin" }, "Unpaid", -1), Y = { class: "mn-b-small pd-small bg-white radius-small flex-nowrap flex" }, Z = { class: "w-100" }, ee = { class: "mn-b-thin" }, te = { class: "t-truncate" }, se = { class: "w-100 t-right" }, ae = { class: "mn-b-thin" }, ne = { class: "cols-1 mn-b-small gap-thin pd-small bg-white radius-small" }, le = { class: "mn-r-auto" }, ie = { class: "t-right" }, re = { class: "t-transp" }, oe = { key: 0 }, ce = { class: "mn-r-auto" }, de = { class: "t-right" }, me = { class: "t-transp" }, ue = { class: "pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex" }, pe = { class: "t-medium mn-r-auto" }, _e = { class: "flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main" }, he = /* @__PURE__ */ e("span", { class: "flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin t-white bg-red" }, " Unpaid ", -1), fe = {
15
13
  key: 0,
16
14
  class: "pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"
17
- }, ve = /* @__PURE__ */ e("p", { class: "mn-b-thin t-transp uppercase p-small t-medium" }, "Comment", -1), Ue = {
15
+ }, ve = /* @__PURE__ */ e("p", { class: "mn-b-thin t-transp uppercase p-small t-medium" }, "Comment", -1), Ae = {
18
16
  __name: "Orders",
19
17
  setup(ge) {
20
18
  const C = D();
@@ -182,5 +180,5 @@ const L = { class: "pd-thin" }, j = { class: "gap-micro flex-nowrap flex" }, G =
182
180
  }
183
181
  };
184
182
  export {
185
- Ue as default
183
+ Ae as default
186
184
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),d=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),u=require("../../../../components/Chips/Chips.vue.cjs"),m=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),h=require("../../../icons/entities/IconPrice.vue.cjs"),g=require("../../../icons/entities/IconShopcart.vue.cjs"),f=require("../../../icons/entities/IconTime.vue.cjs"),k=require("../elements/ButtonToggleMembership.vue.cjs"),w={class:"flex pos-relative"},b=["src"],z={class:"pos-relative w-100 flex-h-center flex flex-column flex-child-1 flex-child mn-l-thin w-100"},B={class:"h4 t-truncate"},y={key:1,class:"flex-center gap-thin pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"},p={class:"mn-t-thin mn-b-thin"},V={key:0,class:"mn-b-small mn-t-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},v={class:"mn-r-thin"},E={key:0,class:"t-transp mn-r-thin"},N={key:1,class:"mn-r-thin"},x={class:"mn-r-thin"},S={class:"mn-r-thin"},C={key:1,class:"w-100 o-scroll radius-medium"},M={class:"w-max flex-nowrap flex gap-thin"},q=e.createElementVNode("button",{class:"pd-thin w-15r radius-medium bg-main button"}," View menu ",-1),O={__name:"CardOrganization",props:{user:String,organization:Object,showProducts:{type:Boolean,default:!1},showFollowers:{type:Boolean,default:!0},showRating:{type:Boolean,default:!1},showFeatured:{type:Boolean,default:!0},showTags:{type:Boolean,default:!0}},emits:["updateMembership"],setup(t,{emit:l}){const s=l;return c.useRouter(),(o,i)=>{var a,r;return e.openBlock(),e.createElementBlock("div",{class:"o-hidden pos-relative cursor-pointer bg-light pd-small",onClick:i[1]||(i[1]=n=>o.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",w,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,b)):(e.openBlock(),e.createBlock(m.default,{key:1,class:"h-4r w-4r"})),e.createElementVNode("div",z,[e.createElementVNode("p",B,e.toDisplayString(t.organization.profile.name),1),t.showTags&&((a=t.organization.profile.tags)==null?void 0:a.length)>0?(e.openBlock(),e.createBlock(u.default,{key:0,chips:t.organization.profile.tags.slice(0,3),class:"pos-relative p-small"},null,8,["chips"])):e.createCommentVNode("",!0),t.showFollowers?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("p",p,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),(r=t.user)!=null&&r._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(k.default,{key:0,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"+",remove:"-"},onUpdateMembership:i[0]||(i[0]=n=>s("updateMembership",n,"isSubscriber","numberOfSubscribers")),class:"i-semi"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),t.showProducts?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(f.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",v,e.toDisplayString(t.organization.distance?t.organization.distance>50?"3-5 days":Math.ceil((10+3*t.organization.distance)/5)*5+"-"+Math.ceil((20+3*t.organization.distance)/5)*5+" MIN":"Unavailable"),1),t.organization.distance&&t.organization.distance<50?(e.openBlock(),e.createElementBlock("span",E,"|")):e.createCommentVNode("",!0),t.organization.distance&&t.organization.distance<50?(e.openBlock(),e.createElementBlock("span",N,e.toDisplayString(t.organization.distance?t.organization.distance.toFixed(1)+" KM":""),1)):e.createCommentVNode("",!0),e.createVNode(h.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",x,e.toDisplayString(o.returnCurrency())+"500 ",1),e.createVNode(g.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",S,e.toDisplayString(t.organization.products.length)+" products",1)])):e.createCommentVNode("",!0),t.showProducts&&t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products.slice(0,5),n=>(e.openBlock(),e.createBlock(d.default,{onClick:e.withModifiers(P=>o.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:n._id}}),["stop"]),key:n._id,editable:!1,product:n,class:"pd-thin w-15r radius-medium bg-white"},null,8,["onClick","product"]))),128)),q])])):e.createCommentVNode("",!0)])}}};exports.default=O;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),d=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),u=require("../../../../components/Chips/Chips.vue.cjs"),m=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),h=require("../../../icons/entities/IconPrice.vue.cjs"),g=require("../../../icons/entities/IconShopcart.vue.cjs"),f=require("../../../icons/entities/IconTime.vue.cjs"),k=require("../elements/ButtonToggleMembership.vue.cjs"),w={class:"flex pos-relative"},z=["src"],b={class:"pos-relative w-100 flex-h-center flex flex-column flex-child-1 flex-child mn-l-thin w-100"},B={class:"h4 t-truncate"},y={key:1,class:"flex-center gap-thin pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"},p={class:"mn-t-thin mn-b-thin"},V={key:0,class:"mn-b-small mn-t-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},v={class:"mn-r-thin"},E={key:0,class:"t-transp mn-r-thin"},N={key:1,class:"mn-r-thin"},x={class:"mn-r-thin"},S={class:"mn-r-thin"},C={key:1,class:"w-100 o-scroll radius-medium"},M={class:"w-max flex-nowrap flex gap-thin"},q=e.createElementVNode("button",{class:"pd-thin w-15r radius-medium bg-main button"}," View menu ",-1),O={__name:"CardOrganization",props:{user:String,organization:Object,showProducts:{type:Boolean,default:!1},showFollowers:{type:Boolean,default:!0},showRating:{type:Boolean,default:!1},showFeatured:{type:Boolean,default:!0},showTags:{type:Boolean,default:!0}},emits:["updateMembership"],setup(t,{emit:l}){const s=l;return c.useRouter(),(o,i)=>{var a,r;return e.openBlock(),e.createElementBlock("div",{class:"o-hidden pos-relative cursor-pointer bg-light pd-small",onClick:i[1]||(i[1]=n=>o.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",w,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,loading:"lazy",src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,z)):(e.openBlock(),e.createBlock(m.default,{key:1,class:"h-4r w-4r"})),e.createElementVNode("div",b,[e.createElementVNode("p",B,e.toDisplayString(t.organization.profile.name),1),t.showTags&&((a=t.organization.profile.tags)==null?void 0:a.length)>0?(e.openBlock(),e.createBlock(u.default,{key:0,chips:t.organization.profile.tags.slice(0,3),class:"pos-relative p-small"},null,8,["chips"])):e.createCommentVNode("",!0),t.showFollowers?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("p",p,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),(r=t.user)!=null&&r._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(k.default,{key:0,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"+",remove:"-"},onUpdateMembership:i[0]||(i[0]=n=>s("updateMembership",n,"isSubscriber","numberOfSubscribers")),class:"i-semi"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),t.showProducts?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(f.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",v,e.toDisplayString(t.organization.distance?t.organization.distance>50?"3-5 days":Math.ceil((10+3*t.organization.distance)/5)*5+"-"+Math.ceil((20+3*t.organization.distance)/5)*5+" MIN":"Unavailable"),1),t.organization.distance&&t.organization.distance<50?(e.openBlock(),e.createElementBlock("span",E,"|")):e.createCommentVNode("",!0),t.organization.distance&&t.organization.distance<50?(e.openBlock(),e.createElementBlock("span",N,e.toDisplayString(t.organization.distance?t.organization.distance.toFixed(1)+" KM":""),1)):e.createCommentVNode("",!0),e.createVNode(h.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",x,e.toDisplayString(o.returnCurrency())+"500 ",1),e.createVNode(g.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",S,e.toDisplayString(t.organization.products.length)+" products",1)])):e.createCommentVNode("",!0),t.showProducts&&t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products.slice(0,5),n=>(e.openBlock(),e.createBlock(d.default,{onClick:e.withModifiers(P=>o.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:n._id}}),["stop"]),key:n._id,editable:!1,product:n,class:"pd-thin w-15r radius-medium bg-white"},null,8,["onClick","product"]))),128)),q])])):e.createCommentVNode("",!0)])}}};exports.default=O;
@@ -62,6 +62,7 @@ const $ = { class: "flex pos-relative" }, O = ["src"], P = { class: "pos-relativ
62
62
  t("div", $, [
63
63
  e.organization.profile.photo && e.organization.profile.photo.length > 0 ? (i(), n("img", {
64
64
  key: 0,
65
+ loading: "lazy",
65
66
  src: (r.FILE_SERVER_URL || "") + e.organization.profile.photo,
66
67
  class: "h-4r w-4r radius-extra bg-white"
67
68
  }, null, 8, O)) : (i(), c(k, {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),n={class:"pd-small flex-nowrap flex"},a={class:"user-card__info"},s={class:"user-card__name"},c={class:"user-card__position"},o={__name:"DepartmentSub",props:{department:{type:Object,required:!0}},setup(t){return(l,u)=>(e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",a,[e.createElementVNode("p",s,e.toDisplayString(t.department.name?t.department.name:"Безымянный"),1),e.createElementVNode("p",c,e.toDisplayString(t.department.members?t.department.members.length:"0")+" человек",1)])]))}},d=r.default(o,[["__scopeId","data-v-d65b1483"]]);exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),a={class:"pd-small flex-nowrap flex"},n={class:"user-card__info"},s={class:"user-card__name"},c={class:"user-card__position"},o={__name:"DepartmentSub",props:{department:{type:Object,required:!0}},setup(t){return(l,u)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",n,[e.createElementVNode("p",s,e.toDisplayString(t.department.name?t.department.name:"Безымянный"),1),e.createElementVNode("p",c,e.toDisplayString(t.department.members?t.department.members.length:"0")+" человек",1)])]))}},d=r.default(o,[["__scopeId","data-v-aa5fbfa8"]]);exports.default=d;
@@ -1,4 +1,4 @@
1
- import { openBlock as a, createElementBlock as s, createElementVNode as t, toDisplayString as r } from "vue";
1
+ import { openBlock as r, createElementBlock as s, createElementVNode as t, toDisplayString as a } from "vue";
2
2
  /* empty css */
3
3
  import n from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const o = { class: "pd-small flex-nowrap flex" }, c = { class: "user-card__info" }, m = { class: "user-card__name" }, d = { class: "user-card__position" }, p = {
@@ -11,14 +11,14 @@ const o = { class: "pd-small flex-nowrap flex" }, c = { class: "user-card__info"
11
11
  // Define other props here
12
12
  },
13
13
  setup(e) {
14
- return (_, i) => (a(), s("div", o, [
14
+ return (_, i) => (r(), s("div", o, [
15
15
  t("div", c, [
16
- t("p", m, r(e.department.name ? e.department.name : "Безымянный"), 1),
17
- t("p", d, r(e.department.members ? e.department.members.length : "0") + " человек", 1)
16
+ t("p", m, a(e.department.name ? e.department.name : "Безымянный"), 1),
17
+ t("p", d, a(e.department.members ? e.department.members.length : "0") + " человек", 1)
18
18
  ])
19
19
  ]));
20
20
  }
21
- }, b = /* @__PURE__ */ n(p, [["__scopeId", "data-v-d65b1483"]]);
21
+ }, b = /* @__PURE__ */ n(p, [["__scopeId", "data-v-aa5fbfa8"]]);
22
22
  export {
23
23
  b as default
24
24
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");;/* empty css */const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),c=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const h=require("../../../events/components/sections/Feed.vue.cjs"),g=require("../../../spots/components/blocks/CardSpot.vue.cjs"),v=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/views/store/auth.cjs"),s=require("../../store/organizations.cjs"),B=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../community/store/blogposts.cjs"),q=require("../../../spots/store/spots.cjs");;/* empty css */const w={key:0,class:"pd-thin for-transition w-100"},y={class:"pos-relative"},N={key:0},V={__name:"Organization",setup(x){d.useRouter();const t=d.useRoute();let p=t.query.tab?t.query.tab:"products";const l=e.ref(null);e.onMounted(async()=>{l.value=await s.actions.read({_id:t.params._id,user:o.state.user._id}),await B.actions.read({target:t.params._id})});const a=e.ref(p);return t.query.tab=a.value,(m,n)=>{const u=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(f.default,{selected:a.value,"onUpdate:selected":n[0]||(n[0]=r=>a.value=r),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",y,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="community"?(e.openBlock(),e.createBlock(c.default,{key:0,showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:r=>C.read(r)},options:{status:"published",user:o.state.user._id,owner:e.unref(t).params._id},class:"row-1 gap-thin"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,i=>(e.openBlock(),e.createBlock(b.default,{key:i._id,blogpost:i,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="events"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),a.value==="products"&&o.state.user._id===s.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="products"?(e.openBlock(),e.createBlock(v.default,{key:0,organization:s.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="spots"?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(c.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:r=>q.actions.read(e.unref(t).params._id),state:s.state},options:{user:o.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,(i,_)=>(e.openBlock(),e.createBlock(g.default,{key:_,spot:i,organization:s.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===s.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=r=>m.$router.push(`/spots/${s.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");;/* empty css */const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),c=require("../../../../components/Feed/Feed.vue.cjs"),b=require("../../../community/components/blocks/CardBlogpost.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const h=,/* empty css */g=require("../../../events/components/sections/Feed.vue.cjs"),v=require("../../../spots/components/blocks/CardSpot.vue.cjs"),B=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/views/store/auth.cjs"),s=require("../../store/organizations.cjs"),q=require("../../store/memberships.cjs");require("../../store/departments.cjs");const C=require("../../../community/store/blogposts.cjs"),w=require("../../../spots/store/spots.cjs");;/* empty css */const N={key:0,class:"pd-thin for-transition w-100"},y={class:"pos-relative"},V={key:0},x={__name:"Organization",setup(z){d.useRouter();const t=d.useRoute();let m=t.query.tab?t.query.tab:"products";const l=e.ref(null);e.onMounted(async()=>{l.value=await s.actions.read({_id:t.params._id,user:o.state.user._id}),await q.actions.read({target:t.params._id})});const a=e.ref(m);return t.query.tab=a.value,(p,n)=>{const u=e.resolveComponent("router-link");return l.value?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(h.default,{organization:s.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(f.default,{selected:a.value,"onUpdate:selected":n[0]||(n[0]=r=>a.value=r),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",y,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="community"?(e.openBlock(),e.createBlock(c.default,{key:0,showLoadMore:!1,states:{empty:{title:"No Blog Posts Found",description:"Currently, there are no posts available in this blog. Please check back later."}},store:{read:r=>C.read(r)},options:{status:"published",user:o.state.user._id,owner:e.unref(t).params._id},class:"row-1 gap-thin"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,i=>(e.openBlock(),e.createBlock(b.default,{key:i._id,blogpost:i,user:o.state.user._id,class:"h-max-40r mn-b-medium"},null,8,["blogpost","user"]))),128))]),_:1},8,["store","options"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="events"?(e.openBlock(),e.createBlock(g.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),a.value==="products"&&o.state.user._id===s.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="products"?(e.openBlock(),e.createBlock(B.default,{key:0,organization:s.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[a.value==="spots"?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(c.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:r=>w.actions.read(e.unref(t).params._id),state:s.state},options:{user:o.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,(i,_)=>(e.openBlock(),e.createBlock(v.default,{key:_,spot:i,organization:s.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===s.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=r=>p.$router.push(`/spots/${s.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=x;