@ozdao/prometheus-framework 0.2.198 → 0.2.199

Sign up to get free protection for your applications and to get access to all the features.
Files changed (463) hide show
  1. package/dist/builder.js +3 -10
  2. package/dist/builder.mjs +3 -10
  3. package/dist/events.server.js +1 -1
  4. package/dist/events.server.mjs +1 -1
  5. package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -0
  6. package/dist/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5042 -0
  7. package/dist/node_modules/date-fns/_lib/addLeadingZeros.cjs +1 -0
  8. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  9. package/dist/node_modules/date-fns/_lib/defaultOptions.cjs +1 -0
  10. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  11. package/dist/node_modules/date-fns/_lib/format/formatters.cjs +1 -0
  12. package/dist/node_modules/date-fns/_lib/format/formatters.js +518 -0
  13. package/dist/node_modules/date-fns/_lib/format/lightFormatters.cjs +1 -0
  14. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  15. package/dist/node_modules/date-fns/_lib/format/longFormatters.cjs +1 -0
  16. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  17. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +1 -0
  18. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  19. package/dist/node_modules/date-fns/_lib/protectedTokens.cjs +1 -0
  20. package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
  21. package/dist/node_modules/date-fns/add.cjs +1 -0
  22. package/dist/node_modules/date-fns/add.js +20 -0
  23. package/dist/node_modules/date-fns/addDays.cjs +1 -0
  24. package/dist/node_modules/date-fns/addDays.js +10 -0
  25. package/dist/node_modules/date-fns/addHours.cjs +1 -0
  26. package/dist/node_modules/date-fns/addHours.js +9 -0
  27. package/dist/node_modules/date-fns/addMilliseconds.cjs +1 -0
  28. package/dist/node_modules/date-fns/addMilliseconds.js +10 -0
  29. package/dist/node_modules/date-fns/addMonths.cjs +1 -0
  30. package/dist/node_modules/date-fns/addMonths.js +20 -0
  31. package/dist/node_modules/date-fns/addQuarters.cjs +1 -0
  32. package/dist/node_modules/date-fns/addQuarters.js +9 -0
  33. package/dist/node_modules/date-fns/addYears.cjs +1 -0
  34. package/dist/node_modules/date-fns/addYears.js +8 -0
  35. package/dist/node_modules/date-fns/compareAsc.cjs +1 -0
  36. package/dist/node_modules/date-fns/compareAsc.js +9 -0
  37. package/dist/node_modules/date-fns/constants.cjs +1 -0
  38. package/dist/node_modules/date-fns/constants.js +8 -0
  39. package/dist/node_modules/date-fns/constructFrom.cjs +1 -0
  40. package/dist/node_modules/date-fns/constructFrom.js +7 -0
  41. package/dist/node_modules/date-fns/differenceInCalendarDays.cjs +1 -0
  42. package/dist/node_modules/date-fns/differenceInCalendarDays.js +11 -0
  43. package/dist/node_modules/date-fns/differenceInCalendarYears.cjs +1 -0
  44. package/dist/node_modules/date-fns/differenceInCalendarYears.js +9 -0
  45. package/dist/node_modules/date-fns/differenceInYears.cjs +1 -0
  46. package/dist/node_modules/date-fns/differenceInYears.js +13 -0
  47. package/dist/node_modules/date-fns/eachDayOfInterval.cjs +1 -0
  48. package/dist/node_modules/date-fns/eachDayOfInterval.js +16 -0
  49. package/dist/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -0
  50. package/dist/node_modules/date-fns/eachQuarterOfInterval.js +17 -0
  51. package/dist/node_modules/date-fns/endOfQuarter.cjs +1 -0
  52. package/dist/node_modules/date-fns/endOfQuarter.js +9 -0
  53. package/dist/node_modules/date-fns/endOfWeek.cjs +1 -0
  54. package/dist/node_modules/date-fns/endOfWeek.js +11 -0
  55. package/dist/node_modules/date-fns/endOfYear.cjs +1 -0
  56. package/dist/node_modules/date-fns/endOfYear.js +9 -0
  57. package/dist/node_modules/date-fns/format.cjs +1 -0
  58. package/dist/node_modules/date-fns/format.js +59 -0
  59. package/dist/node_modules/date-fns/getDay.cjs +1 -0
  60. package/dist/node_modules/date-fns/getDay.js +8 -0
  61. package/dist/node_modules/date-fns/getDayOfYear.cjs +1 -0
  62. package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
  63. package/dist/node_modules/date-fns/getDaysInMonth.cjs +1 -0
  64. package/dist/node_modules/date-fns/getDaysInMonth.js +10 -0
  65. package/dist/node_modules/date-fns/getDefaultOptions.cjs +1 -0
  66. package/dist/node_modules/date-fns/getDefaultOptions.js +8 -0
  67. package/dist/node_modules/date-fns/getHours.cjs +1 -0
  68. package/dist/node_modules/date-fns/getHours.js +8 -0
  69. package/dist/node_modules/date-fns/getISODay.cjs +1 -0
  70. package/dist/node_modules/date-fns/getISODay.js +9 -0
  71. package/dist/node_modules/date-fns/getISOWeek.cjs +1 -0
  72. package/dist/node_modules/date-fns/getISOWeek.js +12 -0
  73. package/dist/node_modules/date-fns/getISOWeekYear.cjs +1 -0
  74. package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
  75. package/dist/node_modules/date-fns/getMinutes.cjs +1 -0
  76. package/dist/node_modules/date-fns/getMinutes.js +8 -0
  77. package/dist/node_modules/date-fns/getMonth.cjs +1 -0
  78. package/dist/node_modules/date-fns/getMonth.js +8 -0
  79. package/dist/node_modules/date-fns/getQuarter.cjs +1 -0
  80. package/dist/node_modules/date-fns/getQuarter.js +9 -0
  81. package/dist/node_modules/date-fns/getSeconds.cjs +1 -0
  82. package/dist/node_modules/date-fns/getSeconds.js +8 -0
  83. package/dist/node_modules/date-fns/getWeek.cjs +1 -0
  84. package/dist/node_modules/date-fns/getWeek.js +12 -0
  85. package/dist/node_modules/date-fns/getWeekYear.cjs +1 -0
  86. package/dist/node_modules/date-fns/getWeekYear.js +17 -0
  87. package/dist/node_modules/date-fns/getYear.cjs +1 -0
  88. package/dist/node_modules/date-fns/getYear.js +8 -0
  89. package/dist/node_modules/date-fns/isAfter.cjs +1 -0
  90. package/dist/node_modules/date-fns/isAfter.js +9 -0
  91. package/dist/node_modules/date-fns/isBefore.cjs +1 -0
  92. package/dist/node_modules/date-fns/isBefore.js +9 -0
  93. package/dist/node_modules/date-fns/isDate.cjs +1 -0
  94. package/dist/node_modules/date-fns/isDate.js +7 -0
  95. package/dist/node_modules/date-fns/isEqual.cjs +1 -0
  96. package/dist/node_modules/date-fns/isEqual.js +9 -0
  97. package/dist/node_modules/date-fns/isSameQuarter.cjs +1 -0
  98. package/dist/node_modules/date-fns/isSameQuarter.js +9 -0
  99. package/dist/node_modules/date-fns/isValid.cjs +1 -0
  100. package/dist/node_modules/date-fns/isValid.js +12 -0
  101. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +1 -0
  102. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  103. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +1 -0
  104. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  105. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +1 -0
  106. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  107. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +1 -0
  108. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  109. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +1 -0
  110. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  111. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +1 -0
  112. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  113. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +1 -0
  114. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  115. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.cjs +1 -0
  116. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  117. package/dist/node_modules/date-fns/locale/en-US/_lib/match.cjs +1 -0
  118. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  119. package/dist/node_modules/date-fns/locale/en-US.cjs +1 -0
  120. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  121. package/dist/node_modules/date-fns/parse/_lib/Parser.cjs +1 -0
  122. package/dist/node_modules/date-fns/parse/_lib/Parser.js +22 -0
  123. package/dist/node_modules/date-fns/parse/_lib/Setter.cjs +1 -0
  124. package/dist/node_modules/date-fns/parse/_lib/Setter.js +40 -0
  125. package/dist/node_modules/date-fns/parse/_lib/constants.cjs +1 -0
  126. package/dist/node_modules/date-fns/parse/_lib/constants.js +49 -0
  127. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.cjs +1 -0
  128. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
  129. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.cjs +1 -0
  130. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
  131. package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.cjs +1 -0
  132. package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +61 -0
  133. package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.cjs +1 -0
  134. package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
  135. package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.cjs +1 -0
  136. package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
  137. package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.cjs +1 -0
  138. package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
  139. package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.cjs +1 -0
  140. package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
  141. package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.cjs +1 -0
  142. package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
  143. package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs +1 -0
  144. package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
  145. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.cjs +1 -0
  146. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
  147. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.cjs +1 -0
  148. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
  149. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.cjs +1 -0
  150. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
  151. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.cjs +1 -0
  152. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
  153. package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.cjs +1 -0
  154. package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +99 -0
  155. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.cjs +1 -0
  156. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
  157. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.cjs +1 -0
  158. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
  159. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.cjs +1 -0
  160. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
  161. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.cjs +1 -0
  162. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
  163. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.cjs +1 -0
  164. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +74 -0
  165. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.cjs +1 -0
  166. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
  167. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.cjs +1 -0
  168. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
  169. package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.cjs +1 -0
  170. package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
  171. package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.cjs +1 -0
  172. package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +71 -0
  173. package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.cjs +1 -0
  174. package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +70 -0
  175. package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.cjs +1 -0
  176. package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
  177. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.cjs +1 -0
  178. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +74 -0
  179. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.cjs +1 -0
  180. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +71 -0
  181. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.cjs +1 -0
  182. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +70 -0
  183. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.cjs +1 -0
  184. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
  185. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.cjs +1 -0
  186. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
  187. package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.cjs +1 -0
  188. package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +49 -0
  189. package/dist/node_modules/date-fns/parse/_lib/parsers.cjs +1 -0
  190. package/dist/node_modules/date-fns/parse/_lib/parsers.js +67 -0
  191. package/dist/node_modules/date-fns/parse/_lib/utils.cjs +1 -0
  192. package/dist/node_modules/date-fns/parse/_lib/utils.js +103 -0
  193. package/dist/node_modules/date-fns/parse.cjs +1 -0
  194. package/dist/node_modules/date-fns/parse.js +90 -0
  195. package/dist/node_modules/date-fns/set.cjs +1 -0
  196. package/dist/node_modules/date-fns/set.js +11 -0
  197. package/dist/node_modules/date-fns/setDay.cjs +1 -0
  198. package/dist/node_modules/date-fns/setDay.js +12 -0
  199. package/dist/node_modules/date-fns/setHours.cjs +1 -0
  200. package/dist/node_modules/date-fns/setHours.js +9 -0
  201. package/dist/node_modules/date-fns/setISODay.cjs +1 -0
  202. package/dist/node_modules/date-fns/setISODay.js +11 -0
  203. package/dist/node_modules/date-fns/setISOWeek.cjs +1 -0
  204. package/dist/node_modules/date-fns/setISOWeek.js +10 -0
  205. package/dist/node_modules/date-fns/setMilliseconds.cjs +1 -0
  206. package/dist/node_modules/date-fns/setMilliseconds.js +9 -0
  207. package/dist/node_modules/date-fns/setMinutes.cjs +1 -0
  208. package/dist/node_modules/date-fns/setMinutes.js +9 -0
  209. package/dist/node_modules/date-fns/setMonth.cjs +1 -0
  210. package/dist/node_modules/date-fns/setMonth.js +13 -0
  211. package/dist/node_modules/date-fns/setSeconds.cjs +1 -0
  212. package/dist/node_modules/date-fns/setSeconds.js +9 -0
  213. package/dist/node_modules/date-fns/setWeek.cjs +1 -0
  214. package/dist/node_modules/date-fns/setWeek.js +10 -0
  215. package/dist/node_modules/date-fns/setYear.cjs +1 -0
  216. package/dist/node_modules/date-fns/setYear.js +10 -0
  217. package/dist/node_modules/date-fns/startOfDay.cjs +1 -0
  218. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  219. package/dist/node_modules/date-fns/startOfISOWeek.cjs +1 -0
  220. package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
  221. package/dist/node_modules/date-fns/startOfISOWeekYear.cjs +1 -0
  222. package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  223. package/dist/node_modules/date-fns/startOfMonth.cjs +1 -0
  224. package/dist/node_modules/date-fns/startOfMonth.js +9 -0
  225. package/dist/node_modules/date-fns/startOfQuarter.cjs +1 -0
  226. package/dist/node_modules/date-fns/startOfQuarter.js +9 -0
  227. package/dist/node_modules/date-fns/startOfWeek.cjs +1 -0
  228. package/dist/node_modules/date-fns/startOfWeek.js +11 -0
  229. package/dist/node_modules/date-fns/startOfWeekYear.cjs +1 -0
  230. package/dist/node_modules/date-fns/startOfWeekYear.js +13 -0
  231. package/dist/node_modules/date-fns/startOfYear.cjs +1 -0
  232. package/dist/node_modules/date-fns/startOfYear.js +10 -0
  233. package/dist/node_modules/date-fns/sub.cjs +1 -0
  234. package/dist/node_modules/date-fns/sub.js +19 -0
  235. package/dist/node_modules/date-fns/subDays.cjs +1 -0
  236. package/dist/node_modules/date-fns/subDays.js +8 -0
  237. package/dist/node_modules/date-fns/subMonths.cjs +1 -0
  238. package/dist/node_modules/date-fns/subMonths.js +8 -0
  239. package/dist/node_modules/date-fns/subYears.cjs +1 -0
  240. package/dist/node_modules/date-fns/subYears.js +8 -0
  241. package/dist/node_modules/date-fns/toDate.cjs +1 -0
  242. package/dist/node_modules/date-fns/toDate.js +8 -0
  243. package/dist/node_modules/date-fns/transpose.cjs +1 -0
  244. package/dist/node_modules/date-fns/transpose.js +18 -0
  245. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  246. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +16 -15
  247. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +13 -12
  249. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +12 -11
  251. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +6 -5
  253. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  254. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  255. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  256. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
  257. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  258. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +11 -10
  259. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  260. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  261. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  262. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  263. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  264. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  265. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  266. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +11 -9
  267. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  268. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +8 -7
  269. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  270. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -4
  271. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  272. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  273. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  274. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +7 -6
  275. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  276. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +16 -15
  277. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +11 -8
  279. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +7 -6
  281. package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.js +9 -8
  283. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +5 -4
  285. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +27 -25
  287. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +22 -20
  289. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/App.vue.js +87 -93
  291. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +142 -73
  293. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  295. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -0
  296. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +110 -0
  297. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  298. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +8 -7
  299. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  300. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  301. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +2 -2
  303. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +19 -18
  305. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +124 -132
  307. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  308. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  309. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +2 -4
  311. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  312. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  313. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  314. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  315. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  316. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  317. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  318. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +2 -1
  319. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs +1 -1
  320. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.js +5 -5
  321. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  323. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  325. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +76 -70
  327. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  329. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  331. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -1
  333. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  335. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  337. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  338. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  339. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  341. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +9 -9
  343. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  345. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  346. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -0
  347. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +28 -27
  349. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +14 -13
  351. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  353. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  354. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  355. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  357. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  359. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +3 -2
  361. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -0
  363. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  365. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  367. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  369. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.js +1 -1
  371. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +2 -2
  373. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +3 -2
  375. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +8 -7
  377. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  379. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +12 -9
  381. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  383. package/dist/prometheus-framework.cjs.js +22 -22
  384. package/dist/prometheus-framework.es.js +3228 -3201
  385. package/dist/style.css +1 -1
  386. package/dist/tickets.controller-CB549rZT.mjs +402 -0
  387. package/dist/tickets.controller-yqXXLR62.js +401 -0
  388. package/dist/wallet.server.js +1 -1
  389. package/dist/wallet.server.mjs +1 -1
  390. package/package.json +1 -2
  391. package/src/builder/webpack/webpack.config.base.js +2 -2
  392. package/src/builder/webpack/webpack.config.client.js +1 -1
  393. package/src/builder/webpack/webpack.config.spa.js +0 -6
  394. package/src/components/AskToLogin/AskToLogin.vue +1 -1
  395. package/src/components/EditImages/EditImages.vue +1 -1
  396. package/src/components/Error/Error.vue +1 -1
  397. package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
  398. package/src/components/UploadImage/UploadImage.vue +1 -1
  399. package/src/modules/auth/views/components/pages/EnterCode.vue +1 -1
  400. package/src/modules/auth/views/components/pages/EnterPassword.vue +1 -1
  401. package/src/modules/auth/views/components/pages/ResetPassword.vue +1 -1
  402. package/src/modules/auth/views/components/pages/SignIn.vue +1 -1
  403. package/src/modules/auth/views/components/pages/SignUp.vue +1 -1
  404. package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
  405. package/src/modules/chats/components/blocks/ChatMessage.vue +1 -1
  406. package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
  407. package/src/modules/constructor/components/elements/Image.vue +2 -2
  408. package/src/modules/constructor/components/elements/ImageUpload.vue +1 -1
  409. package/src/modules/events/components/blocks/CardEvent.vue +2 -2
  410. package/src/modules/events/components/pages/EditEvent.vue +12 -1
  411. package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
  412. package/src/modules/events/components/pages/Event.vue +1 -1
  413. package/src/modules/events/components/sections/HeroEvent.vue +4 -4
  414. package/src/modules/events/components/sections/SectionPreviousEvents.vue +1 -1
  415. package/src/modules/events/components/sections/SectionSpecialGuests.vue +1 -1
  416. package/src/modules/events/controllers/utils/templateEmail.js +1 -1
  417. package/src/modules/events/controllers/utils/templateTicket.js +1 -1
  418. package/src/modules/gallery/components/pages/Gallery.vue +1 -1
  419. package/src/modules/gallery/components/sections/BackofficeGallery.vue +2 -2
  420. package/src/modules/globals/views/components/blocks/CardHeader.vue +2 -2
  421. package/src/modules/globals/views/components/layouts/App.vue +15 -39
  422. package/src/modules/globals/views/components/layouts/Client.vue +89 -45
  423. package/src/modules/globals/views/components/partials/Footer.vue +7 -7
  424. package/src/modules/globals/views/components/partials/NavigationBar.vue +39 -16
  425. package/src/modules/globals/views/components/sections/Walkthrough.vue +2 -2
  426. package/src/modules/landing/components/sections/Examples.vue +1 -1
  427. package/src/modules/landing/components/sections/HowItWorksSection.vue +3 -3
  428. package/src/modules/landing/components/sections/HowToBuyWDR.vue +1 -1
  429. package/src/modules/landing/components/sections/InstagramSection.vue +2 -2
  430. package/src/modules/landing/components/sections/MobileApp.vue +1 -1
  431. package/src/modules/landing/components/sections/SectionEarn.vue +2 -2
  432. package/src/modules/landing/components/sections/SectionFeature.vue +1 -1
  433. package/src/modules/landing/components/sections/SectionFeaturesImages.vue +1 -1
  434. package/src/modules/landing/components/sections/SectionHeroToken.vue +1 -1
  435. package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
  436. package/src/modules/landing/components/sections/WhatIsWDRSection.vue +3 -3
  437. package/src/modules/landing/router/landing.js +1 -1
  438. package/src/modules/orders/components/blocks/CardOrder.vue +7 -7
  439. package/src/modules/orders/components/blocks/CardOrderItem.vue +1 -1
  440. package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
  441. package/src/modules/orders/components/pages/OrderBackoffice.vue +3 -4
  442. package/src/modules/orders/components/pages/Orders.vue +0 -3
  443. package/src/modules/orders/components/pages/Orders_refact.vue +7 -7
  444. package/src/modules/orders/components/sections/AskToLogin.vue +1 -1
  445. package/src/modules/organizations/components/blocks/CardOrganization.vue +2 -2
  446. package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
  447. package/src/modules/organizations/components/blocks/DepartmentSub.vue +1 -1
  448. package/src/modules/organizations/components/pages/Organization.vue +3 -3
  449. package/src/modules/organizations/components/sections/DetailsTab.vue +1 -1
  450. package/src/modules/products/components/blocks/CardLeftover.vue +1 -1
  451. package/src/modules/products/components/blocks/CardProduct.vue +1 -1
  452. package/src/modules/products/components/blocks/EditFilters.vue +1 -1
  453. package/src/modules/products/components/blocks/Images360.vue +1 -1
  454. package/src/modules/products/components/blocks/ImagesThumbnails.vue +1 -1
  455. package/src/modules/products/components/sections/HeroRecommendation.vue +1 -1
  456. package/src/modules/products/components/sections/MenuSection.vue +1 -1
  457. package/src/modules/products/components/sections/ProductInformationSection.vue +5 -5
  458. package/src/modules/products/components/sections/SectionProduct.vue +1 -1
  459. package/src/modules/spots/components/blocks/SpotSub.vue +1 -1
  460. package/src/modules/users/components/blocks/CardUser.vue +1 -1
  461. package/src/modules/users/components/pages/Profile.vue +1 -1
  462. package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +3 -3
  463. package/src/modules/wallet/views/components/pages/Wallet.vue +4 -4
@@ -1,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 L, 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.vue.js";
7
- import Z from "../../../icons/entities/IconTime.vue.js";
4
+ import X from "../../../../components/Popup/Popup.vue2.js";
5
+ import Y from "../../../icons/entities/IconTime.vue.js";
8
6
  import T 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 U, state as g } from "../../store/orders.js";
14
- import { actions as lt } from "../../../products/store/products.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" }, Vt = /* @__PURE__ */ i(() => /* @__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__ */ 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)), Lt = { class: "flex gap-thin flex-column mn-b-semi" }, Tt = { class: "mn-b-medium radius-small br-solid br-1px br-black-transp-10 w-100" }, Ut = { class: "pd-small br-solid br-b br-black-transp-10 flex" }, qt = /* @__PURE__ */ i(() => /* @__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" }, 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), V = f(null), P = f([]);
35
- function q(s) {
36
- N.value = !0, typeof s == "number" && (V.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 $() {
39
- N.value = !1, V.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 U.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 z = 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 H() {
76
+ async function U() {
79
77
  const s = y(g.current.status);
80
- s ? (g.current.status = s, await U.update(g.current)) : console.error("Next status is void. Must handle somehow."), $();
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
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: L([{ "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: q,
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: $,
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(T, {
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: H,
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
- Vt,
182
- t("p", $t, 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
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", Lt, [
201
- (n(!0), m(I, null, D(P.value, (u, c) => (n(), C(T, {
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
- t("div", Tt, [
208
- t("div", Ut, [
199
+ t("div", Lt, [
200
+ t("div", Tt, [
209
201
  qt,
210
- t("p", null, l(v(z)) + " " + l(s.returnCurrency()), 1)
202
+ t("p", null, a(f(B)) + " " + a(s.returnCurrency()), 1)
211
203
  ]),
212
204
  t("div", Ht, [
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)
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(z)), 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"),f=require("vue-router");;/* empty css */const P=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Popup/Popup.vue.cjs"),u=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs"),_=require("../blocks/CardOrderItem.vue.cjs");;/* empty css */;/* empty css */const C=require("../../../users/components/blocks/CardUser.vue.cjs"),V=require("../sections/FormAddCustomer.vue.cjs"),O=require("../sections/FormDelivery.vue.cjs"),E=require("../sections/FormPayment.vue.cjs"),l=require("../../../globals/views/store/globals.cjs"),F=require("../../../auth/views/store/auth.cjs"),t=require("../../store/orders.cjs"),S=require("../../../products/store/products.cjs"),D=require("../../store/customers.store.cjs");;/* empty css */const R={class:"h-100 flex flex-column pd-thin"},T={class:"flex-v-center flex-nowrap flex"},A=e.createElementVNode("h2",{class:"mn-r-auto"},"Create Order",-1),I=e.createElementVNode("h3",{class:"mn-b-small"},"Add to order",-1),z={class:"bg-light h-max-100 mn-b-thin o-scroll pd-medium radius-big"},L={key:0,class:"w-100"},M={class:"h3 flex"},U=e.createElementVNode("span",{class:"mn-r-auto t-transp"},"In total",-1),j={__name:"OrderCreateBackoffice",setup(G){const a=f.useRoute(),g=f.useRouter();t.mutations.resetOrder(t.state.current);let v=e.computed(()=>Number(t.state.current.positions.reduce((d,n)=>d+n.price*n.quantity,0)));const s=e.ref("positions"),c=e.ref(!1);function y(){c.value=!0}function m(){c.value=!1}const i=e.ref(!1);function B(){i.value=!0}function p(){i.value=!1}e.ref(null);function w(){t.state.current.creator={type:"User",target:F.state.user._id},t.state.current.owner={type:"Organization",target:a.params._id},t.state.current.customer={type:"Customer",target:t.state.current.customer._id||null},t.actions.create(t.state.current)}function x(){g.push({name:"Backoffice Orders",params:{_id:a.params._id}})}return e.onMounted(()=>{}),(d,n)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(u.default,{class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("header",T,[A,e.createVNode(P.default,{submit:w,callback:x,class:"pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Order ")]),_:1})])]),_:1}),e.createVNode(q.default,{selected:s.value,"onUpdate:selected":n[0]||(n[0]=r=>s.value=r),tabs:[{name:"Positions",value:"positions"},{name:"Customer",value:"customer"},{name:"Delivery",value:"delivery"},{name:"Payment",value:"payment"}],class:"t-medium radius-medium bg-light mn-b-small"},null,8,["selected"]),e.createVNode(k.default,{onClosePopup:m,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r h-max-100 flex flex-column radius-big pd-medium pos-relative"},{default:e.withCtx(()=>[I,e.createElementVNode("div",z,[e.createVNode(b.default,{search:{placeholder:"Search products...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>S.actions.read(r),state:null},options:{organization:e.unref(a).params._id},class:""},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,N)=>(e.openBlock(),e.createBlock(_.default,{key:o._id,editable:!1,product:o,onClick:()=>{let h={...o};h.quantity=1,l.actions.add(t.state.current.positions,h),m()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),s.value==="positions"?(e.openBlock(),e.createBlock(u.default,{key:0,title:"Positions",actions:[{label:"+",function:()=>y()}],class:"mn-b-small"},{default:e.withCtx(()=>[t.state.current.positions.length===0?(e.openBlock(),e.createElementBlock("span",L," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(r,o)=>(e.openBlock(),e.createBlock(_.default,{key:r._id,editable:!0,product:r,onIncrease:()=>{l.actions.increment(t.state.current.positions,r)},onDecrease:()=>{l.actions.decrement(t.state.current.positions,r)},onRemove:()=>{l.actions.delete(t.state.current.positions,r)},class:"mn-b-thin pd-thin radius-medium bg-white"},null,8,["product","onIncrease","onDecrease","onRemove"]))),128))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="customer"?(e.openBlock(),e.createBlock(u.default,{key:1,title:"Customer",class:"mn-b-semi",actions:[{label:"+",function:()=>B()}]},{default:e.withCtx(()=>[t.state.current.customer._id?(e.openBlock(),e.createBlock(C.default,{key:0,user:t.state.current.customer,photo:t.state.current.customer.profile.photo,name:t.state.current.customer.profile.name||t.state.current.customer.phone||t.state.current.customer.email,onClick:n[1]||(n[1]=()=>{t.mutations.resetCustomer(t.state.current.customer)}),class:"bg-white pd-thin h-4r radius-medium w-100 mn-b-thin"},null,8,["user","photo","name"])):(e.openBlock(),e.createBlock(b.default,{key:1,search:{placeholder:"Search customer...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>e.unref(D.default).read(r),state:null},options:{owner:e.unref(a).params._id},class:"bg-light h-max-20r o-scroll"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,N)=>(e.openBlock(),e.createBlock(C.default,{key:o._id,user:o,photo:o.profile.photo,name:o.profile.name||o.phone||o.email,onClick:()=>{t.state.current.customer=o},class:"bg-white pd-thin h-4r radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"]))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="delivery"?(e.openBlock(),e.createBlock(O.default,{key:2,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),s.value==="payment"?(e.openBlock(),e.createBlock(E.default,{key:3,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),e.createVNode(k.default,{title:"Add customer",onClosePopup:p,isPopupOpen:i.value,class:e.normalizeClass("bg-white w-min-30r w-max-30r radius-big pd-medium")},{default:e.withCtx(()=>[e.createVNode(V.default,{onCallbackCustomer:p})]),_:1},8,["isPopupOpen"]),e.createVNode(u.default,{class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",M,[U,e.createElementVNode("span",null,e.toDisplayString(e.unref(v))+" "+e.toDisplayString(d.returnCurrency()),1)])]),_:1})]))}};exports.default=j;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("vue-router");;/* empty css */const P=require("../../../../components/Button/Button.vue2.cjs"),q=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Popup/Popup.vue2.cjs"),u=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs"),_=require("../blocks/CardOrderItem.vue.cjs");;/* empty css */;/* empty css */const C=require("../../../users/components/blocks/CardUser.vue.cjs"),V=require("../sections/FormAddCustomer.vue.cjs"),O=require("../sections/FormDelivery.vue.cjs"),E=require("../sections/FormPayment.vue.cjs"),l=require("../../../globals/views/store/globals.cjs"),F=require("../../../auth/views/store/auth.cjs"),t=require("../../store/orders.cjs"),S=require("../../../products/store/products.cjs"),D=require("../../store/customers.store.cjs");;/* empty css */const R={class:"h-100 flex flex-column pd-thin"},T={class:"flex-v-center flex-nowrap flex"},A=e.createElementVNode("h2",{class:"mn-r-auto"},"Create Order",-1),I=e.createElementVNode("h3",{class:"mn-b-small"},"Add to order",-1),z={class:"bg-light h-max-100 mn-b-thin o-scroll pd-medium radius-big"},L={key:0,class:"w-100"},M={class:"h3 flex"},U=e.createElementVNode("span",{class:"mn-r-auto t-transp"},"In total",-1),j={__name:"OrderCreateBackoffice",setup(G){const a=f.useRoute(),g=f.useRouter();t.mutations.resetOrder(t.state.current);let v=e.computed(()=>Number(t.state.current.positions.reduce((d,n)=>d+n.price*n.quantity,0)));const s=e.ref("positions"),c=e.ref(!1);function y(){c.value=!0}function m(){c.value=!1}const i=e.ref(!1);function B(){i.value=!0}function p(){i.value=!1}e.ref(null);function w(){t.state.current.creator={type:"User",target:F.state.user._id},t.state.current.owner={type:"Organization",target:a.params._id},t.state.current.customer={type:"Customer",target:t.state.current.customer._id||null},t.actions.create(t.state.current)}function x(){g.push({name:"Backoffice Orders",params:{_id:a.params._id}})}return e.onMounted(()=>{}),(d,n)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(u.default,{class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("header",T,[A,e.createVNode(P.default,{submit:w,callback:x,class:"pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Order ")]),_:1})])]),_:1}),e.createVNode(q.default,{selected:s.value,"onUpdate:selected":n[0]||(n[0]=r=>s.value=r),tabs:[{name:"Positions",value:"positions"},{name:"Customer",value:"customer"},{name:"Delivery",value:"delivery"},{name:"Payment",value:"payment"}],class:"t-medium radius-medium bg-light mn-b-small"},null,8,["selected"]),e.createVNode(k.default,{onClosePopup:m,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r h-max-100 flex flex-column radius-big pd-medium pos-relative"},{default:e.withCtx(()=>[I,e.createElementVNode("div",z,[e.createVNode(b.default,{search:{placeholder:"Search products...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>S.actions.read(r),state:null},options:{organization:e.unref(a).params._id},class:""},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,N)=>(e.openBlock(),e.createBlock(_.default,{key:o._id,editable:!1,product:o,onClick:()=>{let h={...o};h.quantity=1,l.actions.add(t.state.current.positions,h),m()},class:"bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["product","onClick"]))),128))]),_:1},8,["store","options"])])]),_:1},8,["isPopupOpen"]),s.value==="positions"?(e.openBlock(),e.createBlock(u.default,{key:0,title:"Positions",actions:[{label:"+",function:()=>y()}],class:"mn-b-small"},{default:e.withCtx(()=>[t.state.current.positions.length===0?(e.openBlock(),e.createElementBlock("span",L," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(r,o)=>(e.openBlock(),e.createBlock(_.default,{key:r._id,editable:!0,product:r,onIncrease:()=>{l.actions.increment(t.state.current.positions,r)},onDecrease:()=>{l.actions.decrement(t.state.current.positions,r)},onRemove:()=>{l.actions.delete(t.state.current.positions,r)},class:"mn-b-thin pd-thin radius-medium bg-white"},null,8,["product","onIncrease","onDecrease","onRemove"]))),128))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="customer"?(e.openBlock(),e.createBlock(u.default,{key:1,title:"Customer",class:"mn-b-semi",actions:[{label:"+",function:()=>B()}]},{default:e.withCtx(()=>[t.state.current.customer._id?(e.openBlock(),e.createBlock(C.default,{key:0,user:t.state.current.customer,photo:t.state.current.customer.profile.photo,name:t.state.current.customer.profile.name||t.state.current.customer.phone||t.state.current.customer.email,onClick:n[1]||(n[1]=()=>{t.mutations.resetCustomer(t.state.current.customer)}),class:"bg-white pd-thin h-4r radius-medium w-100 mn-b-thin"},null,8,["user","photo","name"])):(e.openBlock(),e.createBlock(b.default,{key:1,search:{placeholder:"Search customer...",class:"bg-white mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:r=>e.unref(D.default).read(r),state:null},options:{owner:e.unref(a).params._id},class:"bg-light h-max-20r o-scroll"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(o,N)=>(e.openBlock(),e.createBlock(C.default,{key:o._id,user:o,photo:o.profile.photo,name:o.profile.name||o.phone||o.email,onClick:()=>{t.state.current.customer=o},class:"bg-white pd-thin h-4r radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"]))]),_:1},8,["actions"])):e.createCommentVNode("",!0),s.value==="delivery"?(e.openBlock(),e.createBlock(O.default,{key:2,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),s.value==="payment"?(e.openBlock(),e.createBlock(E.default,{key:3,order:t.state.current},null,8,["order"])):e.createCommentVNode("",!0),e.createVNode(k.default,{title:"Add customer",onClosePopup:p,isPopupOpen:i.value,class:e.normalizeClass("bg-white w-min-30r w-max-30r radius-big pd-medium")},{default:e.withCtx(()=>[e.createVNode(V.default,{onCallbackCustomer:p})]),_:1},8,["isPopupOpen"]),e.createVNode(u.default,{class:"mn-b-semi"},{default:e.withCtx(()=>[e.createElementVNode("div",M,[U,e.createElementVNode("span",null,e.toDisplayString(e.unref(v))+" "+e.toDisplayString(d.returnCurrency()),1)])]),_:1})]))}};exports.default=j;
@@ -3,11 +3,11 @@ import { useRoute as L, useRouter as M } from "vue-router";
3
3
  /* empty css */
4
4
  import j from "../../../../components/Button/Button.vue2.js";
5
5
  import G from "../../../../components/Tab/Tab.vue2.js";
6
- import O from "../../../../components/Popup/Popup.vue.js";
6
+ import O from "../../../../components/Popup/Popup.vue2.js";
7
7
  import h from "../../../../components/Block/Block.vue.js";
8
8
  import $ from "../../../../components/Feed/Feed.vue.js";
9
9
  import N from "../blocks/CardOrderItem.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  /* empty css */
12
12
  import B from "../../../users/components/blocks/CardUser.vue.js";
13
13
  import H from "../sections/FormAddCustomer.vue.js";
@@ -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"),h=require("vue-router"),k=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const b=require("../../../../components/FieldPhone/click-outside.cjs");;/* empty css */const g=require("../../../../components/Feed/Feed.vue.cjs"),v=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../globals/views/components/blocks/BlockSearch.vue.cjs"),n=require("../../../users/components/blocks/CardUser.vue.cjs"),q=require("./FormCustomerDetails.vue.cjs"),_=require("../../../users/store/users.cjs"),w=require("../../../auth/views/store/auth.cjs"),B=require("../../../globals/views/store/globals.cjs"),y=require("../../store/customers.store.cjs"),x=require("../../store/models/customer.cjs"),E={key:2,class:"mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-light pd-small radius-small"},N={__name:"FormAddCustomer",props:{order:Object},emits:["callbackCustomer"],setup(V,{emit:i}){let c=b.default;const d=i,m=h.useRoute();let r=e.ref(x.default),u=e.ref(null),l=e.ref(!1);async function f(){let a={identity:{type:r.value.user?"User":"Visitor",target:r.value.user?r.value.user._id:null},owner:{type:"Organization",target:m.params._id},creator:{type:"User",target:w.state.user._id},phone:r.value.phone,email:r.value.email,profile:r.value.profile,socials:r.value.socials};try{let o=await y.default.create(a);r.value=o}catch(o){console.log(o)}}function p(){d("callbackCustomer",r.value)}return(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k.default,{class:"pos-relative mn-b-thin"},{default:e.withCtx(()=>[e.unref(r).user?(e.openBlock(),e.createBlock(n.default,{key:1,user:e.unref(r).user,photo:e.unref(r).user.profile.photo,name:e.unref(r).user.profile.name||e.unref(r).user.phone||e.unref(r).user.email,onClick:o[1]||(o[1]=()=>{e.unref(r).user=null}),class:"bg-white h-2r pd-thin radius-medium w-100"},null,8,["user","photo","name"])):e.withDirectives((e.openBlock(),e.createBlock(C.default,{key:0,onSearch:o[0]||(o[0]=s=>{e.isRef(u)?u.value=s:u=s,e.isRef(l)?l.value=!0:l=!0}),placeholder:"Enter name, phone or email",class:"bg-white"},null,512)),[[e.unref(c),()=>{e.isRef(l)?l.value=!1:l=!1}]]),e.unref(u)&&e.unref(l)&&!e.unref(r).user?(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(g.default,{states:{empty:{title:"No User Found",description:"Currently, there are no such user."}},store:{read:s=>_.actions.read(s),state:null},options:{search:e.unref(u)},showLoadMore:!1,class:"h-max-20r o-scroll"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(t,F)=>(e.openBlock(),e.createBlock(n.default,{key:t._id,user:t,photo:t.profile.photo,name:t.profile.name||t.phone||t.email,onClick:()=>{e.unref(r).user=t,e.unref(r).profile=t.profile,e.unref(r).phone=t.phone,e.unref(r).email=t.email,e.unref(r).socials=t.socials},class:"bg-white h-2r pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(q.default,{customer:e.unref(r),class:"mn-b-thin bg-light"},null,8,["customer"]),e.createVNode(v.default,{submit:f,callback:p,onError:e.unref(B.setError),class:"w-100 pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Customer ")]),_:1},8,["onError"])],64))}};exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("vue-router"),k=require("../../../../components/Block/Block.vue.cjs");;/* empty css */const b=require("../../../../components/FieldPhone/click-outside.cjs");;/* empty css */const g=require("../../../../components/Feed/Feed.vue.cjs"),v=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../globals/views/components/blocks/BlockSearch.vue.cjs"),n=require("../../../users/components/blocks/CardUser.vue.cjs"),q=require("./FormCustomerDetails.vue.cjs"),_=require("../../../users/store/users.cjs"),w=require("../../../auth/views/store/auth.cjs"),B=require("../../../globals/views/store/globals.cjs"),y=require("../../store/customers.store.cjs"),x=require("../../store/models/customer.cjs"),E={key:2,class:"mn-t-thin pos-absolute w-100 pos-t-100 pos-l-0 z-index-3 bg-light pd-small radius-small"},N={__name:"FormAddCustomer",props:{order:Object},emits:["callbackCustomer"],setup(V,{emit:i}){let c=b.default;const d=i,m=h.useRoute();let r=e.ref(x.default),u=e.ref(null),l=e.ref(!1);async function f(){let a={identity:{type:r.value.user?"User":"Visitor",target:r.value.user?r.value.user._id:null},owner:{type:"Organization",target:m.params._id},creator:{type:"User",target:w.state.user._id},phone:r.value.phone,email:r.value.email,profile:r.value.profile,socials:r.value.socials};try{let o=await y.default.create(a);r.value=o}catch(o){console.log(o)}}function p(){d("callbackCustomer",r.value)}return(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(k.default,{class:"pos-relative mn-b-thin"},{default:e.withCtx(()=>[e.unref(r).user?(e.openBlock(),e.createBlock(n.default,{key:1,user:e.unref(r).user,photo:e.unref(r).user.profile.photo,name:e.unref(r).user.profile.name||e.unref(r).user.phone||e.unref(r).user.email,onClick:o[1]||(o[1]=()=>{e.unref(r).user=null}),class:"bg-white h-2r pd-thin radius-medium w-100"},null,8,["user","photo","name"])):e.withDirectives((e.openBlock(),e.createBlock(C.default,{key:0,onSearch:o[0]||(o[0]=s=>{e.isRef(u)?u.value=s:u=s,e.isRef(l)?l.value=!0:l=!0}),placeholder:"Enter name, phone or email",class:"bg-white"},null,512)),[[e.unref(c),()=>{e.isRef(l)?l.value=!1:l=!1}]]),e.unref(u)&&e.unref(l)&&!e.unref(r).user?(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(g.default,{states:{empty:{title:"No User Found",description:"Currently, there are no such user."}},store:{read:s=>_.actions.read(s),state:null},options:{search:e.unref(u)},showLoadMore:!1,class:"h-max-20r o-scroll"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(t,F)=>(e.openBlock(),e.createBlock(n.default,{key:t._id,user:t,photo:t.profile.photo,name:t.profile.name||t.phone||t.email,onClick:()=>{e.unref(r).user=t,e.unref(r).profile=t.profile,e.unref(r).phone=t.phone,e.unref(r).email=t.email,e.unref(r).socials=t.socials},class:"bg-white h-2r pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(q.default,{customer:e.unref(r),class:"mn-b-thin bg-light"},null,8,["customer"]),e.createVNode(v.default,{submit:f,callback:p,onError:e.unref(B.setError),class:"w-100 pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Add Customer ")]),_:1},8,["onError"])],64))}};exports.default=N;
@@ -3,7 +3,7 @@ import { useRoute as U } from "vue-router";
3
3
  import N from "../../../../components/Block/Block.vue.js";
4
4
  /* empty css */
5
5
  import O from "../../../../components/FieldPhone/click-outside.js";
6
- /* empty css */
6
+ /* empty css */
7
7
  import V from "../../../../components/Feed/Feed.vue.js";
8
8
  import B from "../../../../components/Button/Button.vue2.js";
9
9
  import F from "../../../globals/views/components/blocks/BlockSearch.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Field/Field.vue2.cjs"),o=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),u=require("../../../../components/Select/Select.vue.cjs"),i={class:"gap-thin flex-justify-between flex-nowrap flex"},d={__name:"FormCustomerDetails",props:{customer:Object,title:{type:String,default:"Personal Data"}},setup(a){let s=e.ref("instagram");return(m,l)=>(e.openBlock(),e.createBlock(r.default,{title:a.title,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createVNode(n.default,{field:a.customer.profile.name,"onUpdate:field":l[0]||(l[0]=t=>a.customer.profile.name=t),label:"Name",placeholder:"Enter name",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["field"]),e.createVNode(o.default,{modelValue:a.customer.phone,"onUpdate:modelValue":l[1]||(l[1]=t=>a.customer.phone=t),onCountry:l[2]||(l[2]=t=>{a.customer.number=t}),inputOptions:{placeholder:"Enter phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"w-100 bg-white pd-small mn-b-thin radius-small"},null,8,["modelValue"]),e.createElementVNode("div",i,[e.createVNode(u.default,{select:e.unref(s),options:[{name:"Instagram",value:"instagram"},{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"}],"onUpdate:select":l[3]||(l[3]=t=>e.isRef(s)?s.value=t:s=t),placeholder:"Messenger",size:"small",class:"bg-white pd-small radius-small"},null,8,["select"]),e.createVNode(n.default,{field:a.customer.socials[e.unref(s)],"onUpdate:field":l[4]||(l[4]=t=>a.customer.socials[e.unref(s)]=t),label:"@",placeholder:"Enter username",class:"bg-white pd-small radius-small w-100"},null,8,["field"])])]),_:1},8,["title"]))}};exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Field/Field.vue2.cjs"),o=require("../../../../components/FieldPhone/FieldPhone.vue.cjs"),u=require("../../../../components/Select/Select.vue2.cjs"),i={class:"gap-thin flex-justify-between flex-nowrap flex"},d={__name:"FormCustomerDetails",props:{customer:Object,title:{type:String,default:"Personal Data"}},setup(a){let s=e.ref("instagram");return(m,l)=>(e.openBlock(),e.createBlock(r.default,{title:a.title,class:"mn-b-thin"},{default:e.withCtx(()=>[e.createVNode(n.default,{field:a.customer.profile.name,"onUpdate:field":l[0]||(l[0]=t=>a.customer.profile.name=t),label:"Name",placeholder:"Enter name",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["field"]),e.createVNode(o.default,{modelValue:a.customer.phone,"onUpdate:modelValue":l[1]||(l[1]=t=>a.customer.phone=t),onCountry:l[2]||(l[2]=t=>{a.customer.number=t}),inputOptions:{placeholder:"Enter phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"w-100 bg-white pd-small mn-b-thin radius-small"},null,8,["modelValue"]),e.createElementVNode("div",i,[e.createVNode(u.default,{select:e.unref(s),options:[{name:"Instagram",value:"instagram"},{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"}],"onUpdate:select":l[3]||(l[3]=t=>e.isRef(s)?s.value=t:s=t),placeholder:"Messenger",size:"small",class:"bg-white pd-small radius-small"},null,8,["select"]),e.createVNode(n.default,{field:a.customer.socials[e.unref(s)],"onUpdate:field":l[4]||(l[4]=t=>a.customer.socials[e.unref(s)]=t),label:"@",placeholder:"Enter username",class:"bg-white pd-small radius-small w-100"},null,8,["field"])])]),_:1},8,["title"]))}};exports.default=d;
@@ -2,7 +2,7 @@ import { ref as o, openBlock as m, createBlock as i, withCtx as u, createVNode a
2
2
  import p from "../../../../components/Block/Block.vue.js";
3
3
  import r from "../../../../components/Field/Field.vue2.js";
4
4
  import c from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import g from "../../../../components/Select/Select.vue.js";
5
+ import g from "../../../../components/Select/Select.vue2.js";
6
6
  const h = { class: "gap-thin flex-justify-between flex-nowrap flex" }, V = {
7
7
  __name: "FormCustomerDetails",
8
8
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Select/Select.vue.cjs"),o={class:"mn-b-small flex-nowrap flex"},s={__name:"FormPayment",props:{order:Object},setup(t){return(c,l)=>(e.openBlock(),e.createBlock(r.default,{title:"Payment"},{default:e.withCtx(()=>[e.createElementVNode("div",o,[e.createVNode(n.default,{select:t.order.payment.type,"onUpdate:select":l[0]||(l[0]=a=>t.order.payment.type=a),property:"value",options:[{name:"Cash On Delivery",value:"cash"},{name:"Bank Transfer",value:"bank"},{name:"Crypto",value:"crypto"}],placeholder:"Select type of payment",size:"small",class:"bg-white pd-medium radius-small w-100"},null,8,["select"])])]),_:1}))}};exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Select/Select.vue2.cjs"),o={class:"mn-b-small flex-nowrap flex"},s={__name:"FormPayment",props:{order:Object},setup(t){return(c,l)=>(e.openBlock(),e.createBlock(r.default,{title:"Payment"},{default:e.withCtx(()=>[e.createElementVNode("div",o,[e.createVNode(n.default,{select:t.order.payment.type,"onUpdate:select":l[0]||(l[0]=a=>t.order.payment.type=a),property:"value",options:[{name:"Cash On Delivery",value:"cash"},{name:"Bank Transfer",value:"bank"},{name:"Crypto",value:"crypto"}],placeholder:"Select type of payment",size:"small",class:"bg-white pd-medium radius-small w-100"},null,8,["select"])])]),_:1}))}};exports.default=s;
@@ -1,6 +1,6 @@
1
1
  import { openBlock as r, createBlock as l, withCtx as o, createElementVNode as n, createVNode as m } from "vue";
2
2
  import s from "../../../../components/Block/Block.vue.js";
3
- import p from "../../../../components/Select/Select.vue.js";
3
+ import p from "../../../../components/Select/Select.vue2.js";
4
4
  const c = { class: "mn-b-small flex-nowrap flex" }, f = {
5
5
  __name: "FormPayment",
6
6
  props: {