@ozdao/prometheus-framework 0.2.129 → 0.2.130

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1139) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +1 -1
  2. package/dist/_virtual/_commonjsHelpers.js +3 -5
  3. package/dist/community.server.js +11 -21
  4. package/dist/community.server.mjs +11 -21
  5. package/dist/{engagement.schema-CI2ifjXN.mjs → engagement.schema-CCdSLKd4.mjs} +1 -2
  6. package/dist/{engagement.schema-fdLNO2_6.js → engagement.schema-D-9md46B.js} +1 -2
  7. package/dist/events.server.js +4 -7
  8. package/dist/events.server.mjs +4 -7
  9. package/dist/files.server.js +1 -2
  10. package/dist/files.server.mjs +1 -2
  11. package/dist/gallery.server.js +1 -1
  12. package/dist/gallery.server.mjs +1 -1
  13. package/dist/main-Ckn0Sslr.js +92 -0
  14. package/dist/{main-DvdaURTh.mjs → main-DxyAONrm.mjs} +4250 -4142
  15. package/dist/main.css +1 -1
  16. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +10 -20
  17. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +22 -41
  18. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +3 -6
  19. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +2 -4
  20. package/dist/node_modules/fast-deep-equal/index.js +10 -20
  21. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +14 -28
  22. package/dist/organizations.server.js +5 -9
  23. package/dist/organizations.server.mjs +5 -9
  24. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +1 -2
  25. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  26. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +3414 -3284
  27. package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.js +84 -163
  28. package/dist/prometheus-framework/node_modules/date-fns/_lib/protectedTokens.js +1 -2
  29. package/dist/prometheus-framework/node_modules/date-fns/addMonths.js +1 -2
  30. package/dist/prometheus-framework/node_modules/date-fns/compareAsc.cjs +1 -0
  31. package/dist/prometheus-framework/node_modules/date-fns/compareAsc.js +9 -0
  32. package/dist/prometheus-framework/node_modules/date-fns/differenceInCalendarYears.cjs +1 -0
  33. package/dist/prometheus-framework/node_modules/date-fns/differenceInCalendarYears.js +9 -0
  34. package/dist/prometheus-framework/node_modules/date-fns/differenceInYears.cjs +1 -0
  35. package/dist/prometheus-framework/node_modules/date-fns/differenceInYears.js +13 -0
  36. package/dist/prometheus-framework/node_modules/date-fns/format.js +1 -2
  37. package/dist/prometheus-framework/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +2 -4
  38. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/Setter.cjs +1 -1
  39. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/Setter.js +11 -11
  40. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.cjs +1 -1
  41. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +1 -1
  42. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMParser.cjs +1 -1
  43. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +1 -1
  44. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DateParser.cjs +1 -1
  45. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DateParser.js +1 -1
  46. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.cjs +1 -1
  47. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +1 -1
  48. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayParser.cjs +1 -1
  49. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayParser.js +1 -1
  50. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.cjs +1 -1
  51. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +1 -1
  52. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/EraParser.cjs +1 -1
  53. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/EraParser.js +1 -1
  54. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.cjs +1 -1
  55. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +1 -1
  56. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.cjs +1 -1
  57. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +1 -1
  58. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.cjs +1 -1
  59. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +1 -1
  60. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.cjs +1 -1
  61. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +1 -1
  62. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.cjs +1 -1
  63. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +1 -1
  64. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.cjs +1 -1
  65. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +1 -1
  66. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISODayParser.cjs +1 -1
  67. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +1 -1
  68. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.cjs +1 -1
  69. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +1 -1
  70. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.cjs +1 -1
  71. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +1 -1
  72. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.cjs +1 -1
  73. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +1 -1
  74. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.cjs +1 -1
  75. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +1 -1
  76. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.cjs +1 -1
  77. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +1 -1
  78. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.cjs +1 -1
  79. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +1 -1
  80. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.cjs +1 -1
  81. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +1 -1
  82. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MinuteParser.cjs +1 -1
  83. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +1 -1
  84. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MonthParser.cjs +1 -1
  85. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +1 -1
  86. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/QuarterParser.cjs +1 -1
  87. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +1 -1
  88. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/SecondParser.cjs +1 -1
  89. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +1 -1
  90. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.cjs +1 -1
  91. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +1 -1
  92. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.cjs +1 -1
  93. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +1 -1
  94. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.cjs +1 -1
  95. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +1 -1
  96. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.cjs +1 -1
  97. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +6 -6
  98. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.cjs +1 -1
  99. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +6 -6
  100. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/YearParser.cjs +1 -1
  101. package/dist/prometheus-framework/node_modules/date-fns/parse/_lib/parsers/YearParser.js +1 -1
  102. package/dist/prometheus-framework/node_modules/date-fns/startOfMonth.cjs +1 -0
  103. package/dist/prometheus-framework/node_modules/date-fns/startOfMonth.js +9 -0
  104. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/ParseError.js +4 -8
  105. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/format.js +5 -10
  106. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +4 -8
  107. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +4 -8
  108. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.js +7 -14
  109. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parse.js +1 -2
  110. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +4 -8
  111. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +1 -2
  112. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/tools/semver-compare.js +4 -8
  113. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  114. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  115. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  116. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +89 -1
  117. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js +2 -4
  118. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  119. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -1
  120. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +1 -2
  121. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +27 -1
  123. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
  124. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +1 -1
  125. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +58 -1
  127. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +3 -3
  129. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  130. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -1
  131. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  133. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +1 -1
  135. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
  136. package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +1 -1
  137. package/dist/prometheus-framework/src/components/FieldTags/create-tags.js +4 -8
  138. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
  139. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +1 -1
  140. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.js +5 -10
  141. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
  142. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +1 -1
  143. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  144. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +127 -1
  145. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/components/Map/Map.vue.js +1 -1
  147. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +1 -1
  149. package/dist/prometheus-framework/src/components/Menu/Menu.vue2.cjs +1 -1
  150. package/dist/prometheus-framework/src/components/Menu/Menu.vue2.js +13 -1
  151. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
  152. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +1 -1
  153. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -1
  155. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  156. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
  157. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js +1 -1
  159. package/dist/prometheus-framework/src/components/SelectMulti/multiselectMixin.js +5 -10
  160. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  162. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  163. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +1 -1
  164. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  165. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -1
  166. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -1
  168. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +2 -2
  170. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  172. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  174. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +5 -5
  176. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  178. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  180. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  182. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +1 -1
  184. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +1 -1
  188. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue.js +1 -1
  190. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/auth/store/auth.js +1 -1
  192. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  194. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +2 -2
  196. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +1 -1
  198. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue.js +1 -1
  200. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue.js +1 -1
  202. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  204. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  206. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +1 -1
  208. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  210. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +10 -10
  212. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  214. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  216. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +7 -7
  218. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +1 -1
  220. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  221. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  222. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  223. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  224. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +1 -1
  225. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +1 -1
  226. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  227. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  228. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  229. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  230. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -1
  231. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +4 -3
  232. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  233. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +2 -3
  234. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  235. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  236. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  237. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  238. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  239. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  240. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  241. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  242. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  243. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  244. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  245. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  246. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  247. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
  248. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  249. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  250. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
  251. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +1 -1
  252. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  253. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +2 -2
  254. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.cjs +1 -1
  255. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.js +1 -1
  256. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  257. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  258. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  259. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  260. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  261. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +4 -4
  262. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  263. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +3 -3
  264. package/dist/prometheus-framework/src/modules/landing/components/elements/AnimatedGrid.vue.cjs +1 -1
  265. package/dist/prometheus-framework/src/modules/landing/components/elements/AnimatedGrid.vue.js +1 -1
  266. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  267. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +1 -1
  268. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -1
  269. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +1 -1
  270. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  271. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +4 -4
  272. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
  273. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +1 -1
  274. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
  275. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +1 -1
  276. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  277. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +31 -31
  278. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
  279. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +3 -5
  280. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  281. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +4 -4
  282. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  283. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +3 -3
  284. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
  285. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
  286. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  287. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  288. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  289. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  290. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  291. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
  292. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  293. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  294. package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -1
  295. package/dist/prometheus-framework/src/modules/orders/store/applications.js +1 -1
  296. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  297. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  298. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  299. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +3 -3
  300. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  301. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  302. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs +1 -1
  303. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.js +1 -1
  304. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  305. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +1 -1
  306. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  307. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  308. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  309. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +8 -8
  310. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  311. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +3 -3
  312. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  313. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -4
  314. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  315. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +2 -2
  316. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  317. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
  318. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  319. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +2 -2
  320. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  321. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +4 -4
  322. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  323. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  324. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  325. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  326. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  327. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +10 -10
  328. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
  329. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +1 -1
  330. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  331. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  332. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  333. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  334. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  335. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  336. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  337. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  338. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  339. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +1 -1
  340. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  341. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  342. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  343. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +2 -3
  344. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  345. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  346. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  347. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  348. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  349. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +2 -2
  350. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +1 -1
  351. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +1 -1
  352. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
  353. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +1 -1
  354. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  355. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  356. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  357. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +3 -3
  358. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  359. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  360. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  361. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +1 -1
  362. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  363. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  364. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  365. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -3
  366. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  367. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  368. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  369. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  370. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
  371. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +1 -1
  372. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  373. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  374. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  375. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  376. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  377. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  378. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  379. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  380. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  381. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
  382. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  383. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  384. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  385. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  386. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  387. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +2 -2
  388. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  389. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  390. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  391. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +5 -5
  392. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  393. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  394. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -1
  395. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +1 -1
  396. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  397. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  398. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  399. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
  400. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  401. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +39 -85
  402. package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.cjs +1 -1
  403. package/dist/prometheus-framework/src/modules/wallet/views/store/payments.store.js +1 -1
  404. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
  405. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +1 -1
  406. package/dist/prometheus-framework.cjs.js +1 -1
  407. package/dist/prometheus-framework.es.js +1 -1
  408. package/dist/reports.server.js +2 -4
  409. package/dist/reports.server.mjs +2 -4
  410. package/dist/style.css +1 -1
  411. package/dist/users.server.js +2 -4
  412. package/dist/users.server.mjs +2 -4
  413. package/dist/wallet.server.js +6 -12
  414. package/dist/wallet.server.mjs +6 -12
  415. package/dist/{web-Dt2JR41o.mjs → web-Be96Xqd4.mjs} +1 -1
  416. package/dist/{web-CVIepGUM.js → web-CgjTW1bL.js} +1 -1
  417. package/package.json +1 -2
  418. package/src/main.js +0 -3
  419. package/dist/_virtual/browser-ponyfill.cjs +0 -1
  420. package/dist/_virtual/browser-ponyfill.js +0 -4
  421. package/dist/_virtual/crc32.cjs +0 -1
  422. package/dist/_virtual/crc32.js +0 -4
  423. package/dist/_virtual/index.cjs +0 -1
  424. package/dist/_virtual/index.js +0 -4
  425. package/dist/_virtual/index2.cjs +0 -1
  426. package/dist/_virtual/index2.js +0 -4
  427. package/dist/main-hLtpe4Hr.js +0 -92
  428. package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +0 -1
  429. package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +0 -561
  430. package/dist/node_modules/@ethereumjs/rlp/dist/index.cjs +0 -1
  431. package/dist/node_modules/@ethereumjs/rlp/dist/index.js +0 -164
  432. package/dist/node_modules/@noble/curves/esm/_shortw_utils.cjs +0 -1
  433. package/dist/node_modules/@noble/curves/esm/_shortw_utils.js +0 -19
  434. package/dist/node_modules/@noble/curves/esm/abstract/curve.cjs +0 -1
  435. package/dist/node_modules/@noble/curves/esm/abstract/curve.js +0 -88
  436. package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +0 -1
  437. package/dist/node_modules/@noble/curves/esm/abstract/modular.js +0 -221
  438. package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +0 -1
  439. package/dist/node_modules/@noble/curves/esm/abstract/utils.js +0 -201
  440. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +0 -1
  441. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +0 -581
  442. package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +0 -1
  443. package/dist/node_modules/@noble/curves/esm/secp256k1.js +0 -50
  444. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +0 -1
  445. package/dist/node_modules/@noble/hashes/esm/_assert.js +0 -44
  446. package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +0 -1
  447. package/dist/node_modules/@noble/hashes/esm/_sha2.js +0 -61
  448. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +0 -1
  449. package/dist/node_modules/@noble/hashes/esm/_u64.js +0 -21
  450. package/dist/node_modules/@noble/hashes/esm/crypto.cjs +0 -1
  451. package/dist/node_modules/@noble/hashes/esm/crypto.js +0 -4
  452. package/dist/node_modules/@noble/hashes/esm/hmac.cjs +0 -1
  453. package/dist/node_modules/@noble/hashes/esm/hmac.js +0 -43
  454. package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +0 -1
  455. package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +0 -32
  456. package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +0 -1
  457. package/dist/node_modules/@noble/hashes/esm/scrypt.js +0 -73
  458. package/dist/node_modules/@noble/hashes/esm/sha256.cjs +0 -1
  459. package/dist/node_modules/@noble/hashes/esm/sha256.js +0 -114
  460. package/dist/node_modules/@noble/hashes/esm/sha3.cjs +0 -1
  461. package/dist/node_modules/@noble/hashes/esm/sha3.js +0 -107
  462. package/dist/node_modules/@noble/hashes/esm/utils.cjs +0 -1
  463. package/dist/node_modules/@noble/hashes/esm/utils.js +0 -68
  464. package/dist/node_modules/abitype/dist/chunk-NHABU752.cjs +0 -1
  465. package/dist/node_modules/abitype/dist/chunk-NHABU752.js +0 -4
  466. package/dist/node_modules/abitype/dist/chunk-WP7KDV47.cjs +0 -1
  467. package/dist/node_modules/abitype/dist/chunk-WP7KDV47.js +0 -11
  468. package/dist/node_modules/abitype/dist/index.cjs +0 -2
  469. package/dist/node_modules/abitype/dist/index.js +0 -299
  470. package/dist/node_modules/crc-32/crc32.cjs +0 -1
  471. package/dist/node_modules/crc-32/crc32.js +0 -51
  472. package/dist/node_modules/cross-fetch/dist/browser-ponyfill.cjs +0 -2
  473. package/dist/node_modules/cross-fetch/dist/browser-ponyfill.js +0 -320
  474. package/dist/node_modules/ethereum-cryptography/esm/aes.cjs +0 -1
  475. package/dist/node_modules/ethereum-cryptography/esm/aes.js +0 -61
  476. package/dist/node_modules/ethereum-cryptography/esm/keccak.cjs +0 -1
  477. package/dist/node_modules/ethereum-cryptography/esm/keccak.js +0 -9
  478. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.cjs +0 -1
  479. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.js +0 -14
  480. package/dist/node_modules/ethereum-cryptography/esm/random.cjs +0 -1
  481. package/dist/node_modules/ethereum-cryptography/esm/random.js +0 -7
  482. package/dist/node_modules/ethereum-cryptography/esm/scrypt.cjs +0 -1
  483. package/dist/node_modules/ethereum-cryptography/esm/scrypt.js +0 -8
  484. package/dist/node_modules/ethereum-cryptography/esm/secp256k1.cjs +0 -1
  485. package/dist/node_modules/ethereum-cryptography/esm/secp256k1.js +0 -4
  486. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +0 -1
  487. package/dist/node_modules/ethereum-cryptography/esm/utils.js +0 -31
  488. package/dist/node_modules/eventemitter3/index.cjs +0 -1
  489. package/dist/node_modules/eventemitter3/index.js +0 -117
  490. package/dist/node_modules/eventemitter3/index2.cjs +0 -1
  491. package/dist/node_modules/eventemitter3/index2.js +0 -5
  492. package/dist/node_modules/isomorphic-ws/browser.cjs +0 -1
  493. package/dist/node_modules/isomorphic-ws/browser.js +0 -6
  494. package/dist/node_modules/setimmediate/setImmediate.cjs +0 -1
  495. package/dist/node_modules/setimmediate/setImmediate.js +0 -99
  496. package/dist/node_modules/web3/lib/esm/abi.cjs +0 -1
  497. package/dist/node_modules/web3/lib/esm/abi.js +0 -19
  498. package/dist/node_modules/web3/lib/esm/accounts.cjs +0 -1
  499. package/dist/node_modules/web3/lib/esm/accounts.js +0 -107
  500. package/dist/node_modules/web3/lib/esm/index.cjs +0 -1
  501. package/dist/node_modules/web3/lib/esm/index.js +0 -81
  502. package/dist/node_modules/web3/lib/esm/version.cjs +0 -1
  503. package/dist/node_modules/web3/lib/esm/version.js +0 -4
  504. package/dist/node_modules/web3/lib/esm/web3.cjs +0 -1
  505. package/dist/node_modules/web3/lib/esm/web3.js +0 -91
  506. package/dist/node_modules/web3/lib/esm/web3_eip6963.cjs +0 -1
  507. package/dist/node_modules/web3/lib/esm/web3_eip6963.js +0 -50
  508. package/dist/node_modules/web3-core/lib/esm/utils.cjs +0 -1
  509. package/dist/node_modules/web3-core/lib/esm/utils.js +0 -13
  510. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +0 -1
  511. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +0 -83
  512. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +0 -1
  513. package/dist/node_modules/web3-core/lib/esm/web3_config.js +0 -356
  514. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +0 -1
  515. package/dist/node_modules/web3-core/lib/esm/web3_context.js +0 -245
  516. package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.cjs +0 -1
  517. package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.js +0 -39
  518. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +0 -1
  519. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +0 -58
  520. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +0 -1
  521. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +0 -245
  522. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +0 -1
  523. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +0 -155
  524. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +0 -1
  525. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +0 -111
  526. package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +0 -1
  527. package/dist/node_modules/web3-errors/lib/esm/error_codes.js +0 -108
  528. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.cjs +0 -1
  529. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +0 -58
  530. package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.cjs +0 -1
  531. package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.js +0 -37
  532. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +0 -1
  533. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +0 -49
  534. package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.cjs +0 -1
  535. package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.js +0 -16
  536. package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.cjs +0 -1
  537. package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.js +0 -16
  538. package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.cjs +0 -1
  539. package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.js +0 -49
  540. package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.cjs +0 -1
  541. package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.js +0 -28
  542. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +0 -1
  543. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +0 -30
  544. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.cjs +0 -1
  545. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.js +0 -161
  546. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs +0 -1
  547. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.js +0 -129
  548. package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.cjs +0 -1
  549. package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.js +0 -13
  550. package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.cjs +0 -1
  551. package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.js +0 -10
  552. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +0 -5
  553. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +0 -256
  554. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +0 -1
  555. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +0 -82
  556. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +0 -1
  557. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +0 -49
  558. package/dist/node_modules/web3-eth/lib/esm/constants.cjs +0 -1
  559. package/dist/node_modules/web3-eth/lib/esm/constants.js +0 -14
  560. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +0 -1
  561. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +0 -424
  562. package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +0 -1
  563. package/dist/node_modules/web3-eth/lib/esm/schemas.js +0 -595
  564. package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.cjs +0 -1
  565. package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.js +0 -31
  566. package/dist/node_modules/web3-eth/lib/esm/utils/decoding.cjs +0 -1
  567. package/dist/node_modules/web3-eth/lib/esm/utils/decoding.js +0 -34
  568. package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.cjs +0 -1
  569. package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.js +0 -90
  570. package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.cjs +0 -1
  571. package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.js +0 -30
  572. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +0 -1
  573. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +0 -77
  574. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +0 -1
  575. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +0 -50
  576. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +0 -1
  577. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +0 -80
  578. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +0 -1
  579. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +0 -102
  580. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +0 -1
  581. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +0 -109
  582. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +0 -1
  583. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +0 -145
  584. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +0 -1
  585. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +0 -131
  586. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +0 -1
  587. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +0 -52
  588. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +0 -1
  589. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +0 -61
  590. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +0 -1
  591. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +0 -51
  592. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +0 -1
  593. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +0 -79
  594. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +0 -1
  595. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +0 -44
  596. package/dist/node_modules/web3-eth/lib/esm/validation.cjs +0 -1
  597. package/dist/node_modules/web3-eth/lib/esm/validation.js +0 -111
  598. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +0 -1
  599. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +0 -1661
  600. package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.cjs +0 -1
  601. package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.js +0 -65
  602. package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.cjs +0 -1
  603. package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.js +0 -13
  604. package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.cjs +0 -1
  605. package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.js +0 -13
  606. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +0 -1
  607. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +0 -26
  608. package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.cjs +0 -1
  609. package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.js +0 -14
  610. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +0 -1
  611. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +0 -24
  612. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.cjs +0 -1
  613. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.js +0 -47
  614. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.cjs +0 -1
  615. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.js +0 -72
  616. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.cjs +0 -1
  617. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.js +0 -37
  618. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +0 -1
  619. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +0 -66
  620. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +0 -1
  621. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +0 -67
  622. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs +0 -1
  623. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.js +0 -85
  624. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.cjs +0 -1
  625. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.js +0 -15
  626. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.cjs +0 -1
  627. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.js +0 -22
  628. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.cjs +0 -1
  629. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.js +0 -77
  630. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.cjs +0 -1
  631. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.js +0 -15
  632. package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.cjs +0 -1
  633. package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.js +0 -16
  634. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +0 -1
  635. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +0 -50
  636. package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.cjs +0 -1
  637. package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.js +0 -58
  638. package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.cjs +0 -1
  639. package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.js +0 -18
  640. package/dist/node_modules/web3-eth-abi/lib/esm/utils.cjs +0 -1
  641. package/dist/node_modules/web3-eth-abi/lib/esm/utils.js +0 -39
  642. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +0 -2
  643. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +0 -223
  644. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.cjs +0 -1
  645. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.js +0 -99
  646. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.cjs +0 -1
  647. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.js +0 -115
  648. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.cjs +0 -1
  649. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.js +0 -102
  650. package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.cjs +0 -1
  651. package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.js +0 -741
  652. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.cjs +0 -1
  653. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.js +0 -25
  654. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.cjs +0 -1
  655. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.js +0 -29
  656. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.cjs +0 -1
  657. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.js +0 -28
  658. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.cjs +0 -1
  659. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.js +0 -181
  660. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.cjs +0 -1
  661. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.js +0 -20
  662. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.cjs +0 -1
  663. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.js +0 -14
  664. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.cjs +0 -1
  665. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.js +0 -87
  666. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.cjs +0 -1
  667. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.js +0 -24
  668. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.cjs +0 -1
  669. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.js +0 -20
  670. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.cjs +0 -1
  671. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.js +0 -29
  672. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.cjs +0 -1
  673. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.js +0 -16
  674. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.cjs +0 -1
  675. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.js +0 -15
  676. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.cjs +0 -1
  677. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.js +0 -20
  678. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.cjs +0 -1
  679. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.js +0 -16
  680. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.cjs +0 -1
  681. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.js +0 -16
  682. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.cjs +0 -1
  683. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.js +0 -16
  684. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.cjs +0 -1
  685. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.js +0 -16
  686. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.cjs +0 -1
  687. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.js +0 -21
  688. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.cjs +0 -1
  689. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.js +0 -26
  690. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.cjs +0 -1
  691. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.js +0 -20
  692. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.cjs +0 -1
  693. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.js +0 -16
  694. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.cjs +0 -1
  695. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.js +0 -20
  696. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.cjs +0 -1
  697. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.js +0 -49
  698. package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.cjs +0 -1
  699. package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.js +0 -27
  700. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.cjs +0 -1
  701. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.js +0 -14
  702. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.cjs +0 -1
  703. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.js +0 -10
  704. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.cjs +0 -1
  705. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.js +0 -59
  706. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.cjs +0 -1
  707. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.js +0 -441
  708. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.cjs +0 -1
  709. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.js +0 -71
  710. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.cjs +0 -1
  711. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.js +0 -13
  712. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.cjs +0 -1
  713. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.js +0 -14
  714. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.cjs +0 -1
  715. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.js +0 -18
  716. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.cjs +0 -1
  717. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.js +0 -39
  718. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.cjs +0 -1
  719. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.js +0 -90
  720. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.cjs +0 -1
  721. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.js +0 -10
  722. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.cjs +0 -1
  723. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.js +0 -15
  724. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.cjs +0 -1
  725. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.js +0 -10
  726. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.cjs +0 -1
  727. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.js +0 -18
  728. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.cjs +0 -1
  729. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.js +0 -42
  730. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.cjs +0 -1
  731. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.js +0 -10
  732. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.cjs +0 -1
  733. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.js +0 -23
  734. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.cjs +0 -1
  735. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.js +0 -46
  736. package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.cjs +0 -1
  737. package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.js +0 -7
  738. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +0 -1
  739. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +0 -279
  740. package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.cjs +0 -1
  741. package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.js +0 -25
  742. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.cjs +0 -1
  743. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.js +0 -57
  744. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +0 -1
  745. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +0 -288
  746. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs +0 -1
  747. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.js +0 -11
  748. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs +0 -1
  749. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.js +0 -285
  750. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs +0 -1
  751. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.js +0 -268
  752. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.cjs +0 -1
  753. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.js +0 -256
  754. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +0 -1
  755. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +0 -90
  756. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.cjs +0 -1
  757. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.js +0 -18
  758. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.cjs +0 -1
  759. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.js +0 -80
  760. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +0 -1
  761. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +0 -361
  762. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +0 -3
  763. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +0 -540
  764. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +0 -1
  765. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +0 -89
  766. package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +0 -1
  767. package/dist/node_modules/web3-eth-contract/lib/esm/index.js +0 -30
  768. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +0 -1
  769. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +0 -39
  770. package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +0 -1
  771. package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +0 -78
  772. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.cjs +0 -1
  773. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.js +0 -168
  774. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.cjs +0 -1
  775. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.js +0 -596
  776. package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +0 -1
  777. package/dist/node_modules/web3-eth-ens/lib/esm/config.js +0 -29
  778. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +0 -1
  779. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +0 -280
  780. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +0 -1
  781. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +0 -108
  782. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +0 -1
  783. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +0 -113
  784. package/dist/node_modules/web3-eth-ens/lib/esm/utils.cjs +0 -1
  785. package/dist/node_modules/web3-eth-ens/lib/esm/utils.js +0 -19
  786. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +0 -1
  787. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +0 -283
  788. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +0 -1
  789. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +0 -265
  790. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +0 -1
  791. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +0 -96
  792. package/dist/node_modules/web3-net/lib/esm/net.cjs +0 -1
  793. package/dist/node_modules/web3-net/lib/esm/net.js +0 -97
  794. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +0 -1
  795. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +0 -51
  796. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +0 -1
  797. package/dist/node_modules/web3-providers-http/lib/esm/index.js +0 -98
  798. package/dist/node_modules/web3-providers-ws/lib/esm/index.cjs +0 -1
  799. package/dist/node_modules/web3-providers-ws/lib/esm/index.js +0 -70
  800. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +0 -1
  801. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +0 -416
  802. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +0 -1
  803. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +0 -56
  804. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +0 -1
  805. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +0 -84
  806. package/dist/node_modules/web3-types/lib/esm/data_format_types.cjs +0 -1
  807. package/dist/node_modules/web3-types/lib/esm/data_format_types.js +0 -15
  808. package/dist/node_modules/web3-types/lib/esm/eth_types.cjs +0 -1
  809. package/dist/node_modules/web3-types/lib/esm/eth_types.js +0 -12
  810. package/dist/node_modules/web3-types/lib/esm/primitives_types.cjs +0 -1
  811. package/dist/node_modules/web3-types/lib/esm/primitives_types.js +0 -4
  812. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +0 -1
  813. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +0 -89
  814. package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.cjs +0 -1
  815. package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.js +0 -8
  816. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +0 -1
  817. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +0 -37
  818. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +0 -1
  819. package/dist/node_modules/web3-utils/lib/esm/converters.js +0 -199
  820. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +0 -1
  821. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +0 -15
  822. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +0 -1
  823. package/dist/node_modules/web3-utils/lib/esm/formatter.js +0 -153
  824. package/dist/node_modules/web3-utils/lib/esm/hash.cjs +0 -1
  825. package/dist/node_modules/web3-utils/lib/esm/hash.js +0 -108
  826. package/dist/node_modules/web3-utils/lib/esm/index.cjs +0 -1
  827. package/dist/node_modules/web3-utils/lib/esm/index.js +0 -109
  828. package/dist/node_modules/web3-utils/lib/esm/json_rpc.cjs +0 -1
  829. package/dist/node_modules/web3-utils/lib/esm/json_rpc.js +0 -41
  830. package/dist/node_modules/web3-utils/lib/esm/objects.cjs +0 -1
  831. package/dist/node_modules/web3-utils/lib/esm/objects.js +0 -20
  832. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +0 -1
  833. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +0 -104
  834. package/dist/node_modules/web3-utils/lib/esm/random.cjs +0 -1
  835. package/dist/node_modules/web3-utils/lib/esm/random.js +0 -7
  836. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +0 -1
  837. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +0 -233
  838. package/dist/node_modules/web3-utils/lib/esm/string_manipulation.cjs +0 -1
  839. package/dist/node_modules/web3-utils/lib/esm/string_manipulation.js +0 -48
  840. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +0 -1
  841. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +0 -26
  842. package/dist/node_modules/web3-utils/lib/esm/uuid.cjs +0 -1
  843. package/dist/node_modules/web3-utils/lib/esm/uuid.js +0 -17
  844. package/dist/node_modules/web3-utils/lib/esm/validation.cjs +0 -1
  845. package/dist/node_modules/web3-utils/lib/esm/validation.js +0 -62
  846. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +0 -1
  847. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +0 -114
  848. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +0 -1
  849. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +0 -86
  850. package/dist/node_modules/web3-validator/lib/esm/constants.cjs +0 -1
  851. package/dist/node_modules/web3-validator/lib/esm/constants.js +0 -4
  852. package/dist/node_modules/web3-validator/lib/esm/default_validator.cjs +0 -1
  853. package/dist/node_modules/web3-validator/lib/esm/default_validator.js +0 -5
  854. package/dist/node_modules/web3-validator/lib/esm/errors.cjs +0 -3
  855. package/dist/node_modules/web3-validator/lib/esm/errors.js +0 -17
  856. package/dist/node_modules/web3-validator/lib/esm/formats.cjs +0 -1
  857. package/dist/node_modules/web3-validator/lib/esm/formats.js +0 -31
  858. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +0 -1
  859. package/dist/node_modules/web3-validator/lib/esm/utils.js +0 -190
  860. package/dist/node_modules/web3-validator/lib/esm/validation/abi.cjs +0 -1
  861. package/dist/node_modules/web3-validator/lib/esm/validation/abi.js +0 -4
  862. package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +0 -1
  863. package/dist/node_modules/web3-validator/lib/esm/validation/address.js +0 -23
  864. package/dist/node_modules/web3-validator/lib/esm/validation/block.cjs +0 -1
  865. package/dist/node_modules/web3-validator/lib/esm/validation/block.js +0 -10
  866. package/dist/node_modules/web3-validator/lib/esm/validation/bloom.cjs +0 -1
  867. package/dist/node_modules/web3-validator/lib/esm/validation/bloom.js +0 -29
  868. package/dist/node_modules/web3-validator/lib/esm/validation/boolean.cjs +0 -1
  869. package/dist/node_modules/web3-validator/lib/esm/validation/boolean.js +0 -5
  870. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +0 -1
  871. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +0 -31
  872. package/dist/node_modules/web3-validator/lib/esm/validation/filter.cjs +0 -1
  873. package/dist/node_modules/web3-validator/lib/esm/validation/filter.js +0 -26
  874. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +0 -1
  875. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +0 -54
  876. package/dist/node_modules/web3-validator/lib/esm/validation/object.cjs +0 -1
  877. package/dist/node_modules/web3-validator/lib/esm/validation/object.js +0 -13
  878. package/dist/node_modules/web3-validator/lib/esm/validation/string.cjs +0 -1
  879. package/dist/node_modules/web3-validator/lib/esm/validation/string.js +0 -23
  880. package/dist/node_modules/web3-validator/lib/esm/validation/topic.cjs +0 -1
  881. package/dist/node_modules/web3-validator/lib/esm/validation/topic.js +0 -6
  882. package/dist/node_modules/web3-validator/lib/esm/validator.cjs +0 -1
  883. package/dist/node_modules/web3-validator/lib/esm/validator.js +0 -86
  884. package/dist/node_modules/web3-validator/lib/esm/web3_validator.cjs +0 -1
  885. package/dist/node_modules/web3-validator/lib/esm/web3_validator.js +0 -31
  886. package/dist/node_modules/zod/lib/index.cjs +0 -1
  887. package/dist/node_modules/zod/lib/index.js +0 -2983
  888. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/main.css.cjs +0 -1
  889. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/main.css.js +0 -1
  890. package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.cjs +0 -3
  891. package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.js +0 -51
  892. package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.cjs +0 -1
  893. package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.js +0 -109
  894. package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +0 -1
  895. package/dist/prometheus-framework/node_modules/axios/lib/axios.js +0 -46
  896. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +0 -1
  897. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +0 -72
  898. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.cjs +0 -1
  899. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.js +0 -11
  900. package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.cjs +0 -1
  901. package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.js +0 -6
  902. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +0 -2
  903. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +0 -130
  904. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.cjs +0 -1
  905. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.js +0 -54
  906. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +0 -2
  907. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +0 -164
  908. package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.cjs +0 -1
  909. package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.js +0 -58
  910. package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.cjs +0 -1
  911. package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.js +0 -8
  912. package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.cjs +0 -1
  913. package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.js +0 -31
  914. package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.cjs +0 -1
  915. package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.js +0 -72
  916. package/dist/prometheus-framework/node_modules/axios/lib/core/settle.cjs +0 -1
  917. package/dist/prometheus-framework/node_modules/axios/lib/core/settle.js +0 -14
  918. package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.cjs +0 -1
  919. package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.js +0 -13
  920. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +0 -1
  921. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +0 -87
  922. package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.cjs +0 -1
  923. package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.js +0 -8
  924. package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +0 -1
  925. package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +0 -4
  926. package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.cjs +0 -1
  927. package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -33
  928. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +0 -1
  929. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
  930. package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.cjs +0 -1
  931. package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.js +0 -8
  932. package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.cjs +0 -1
  933. package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.js +0 -19
  934. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +0 -1
  935. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +0 -6
  936. package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.cjs +0 -1
  937. package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.js +0 -32
  938. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +0 -1
  939. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +0 -32
  940. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +0 -1
  941. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -6
  942. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.cjs +0 -1
  943. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
  944. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +0 -1
  945. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -37
  946. package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.cjs +0 -1
  947. package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.js +0 -4
  948. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.cjs +0 -2
  949. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.js +0 -30
  950. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.cjs +0 -1
  951. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  952. package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.cjs +0 -1
  953. package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.js +0 -19
  954. package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.cjs +0 -1
  955. package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.js +0 -8
  956. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.cjs +0 -1
  957. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.js +0 -84
  958. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.cjs +0 -1
  959. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -13
  960. package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.cjs +0 -1
  961. package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.js +0 -51
  962. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.cjs +0 -1
  963. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  964. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.cjs +0 -1
  965. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  966. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.cjs +0 -1
  967. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  968. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.cjs +0 -1
  969. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.js +0 -15
  970. package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +0 -1
  971. package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +0 -7
  972. package/dist/prometheus-framework/node_modules/axios/lib/platform/index.cjs +0 -1
  973. package/dist/prometheus-framework/node_modules/axios/lib/platform/index.js +0 -9
  974. package/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +0 -1
  975. package/dist/prometheus-framework/node_modules/axios/lib/utils.js +0 -224
  976. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +0 -1
  977. package/dist/prometheus-framework/src/components/Address/Address.vue.js +0 -89
  978. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +0 -1
  979. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +0 -1
  980. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +0 -1
  981. package/dist/prometheus-framework/src/components/Button/Button.vue.js +0 -1
  982. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +0 -1
  983. package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +0 -27
  984. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +0 -1
  985. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +0 -1
  986. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +0 -1
  987. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +0 -58
  988. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +0 -1
  989. package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +0 -1
  990. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +0 -1
  991. package/dist/prometheus-framework/src/components/Field/Field.vue.js +0 -1
  992. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +0 -1
  993. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +0 -1
  994. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +0 -1
  995. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +0 -1
  996. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +0 -1
  997. package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +0 -1
  998. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +0 -1
  999. package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +0 -1
  1000. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +0 -1
  1001. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +0 -1
  1002. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +0 -1
  1003. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +0 -127
  1004. package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +0 -1
  1005. package/dist/prometheus-framework/src/components/Map/Map.vue2.js +0 -1
  1006. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue2.cjs +0 -1
  1007. package/dist/prometheus-framework/src/components/Marquee/Marquee.vue2.js +0 -1
  1008. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +0 -1
  1009. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +0 -13
  1010. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue2.cjs +0 -1
  1011. package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue2.js +0 -1
  1012. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +0 -1
  1013. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +0 -1
  1014. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +0 -1
  1015. package/dist/prometheus-framework/src/components/Select/Select.vue.js +0 -103
  1016. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +0 -1
  1017. package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +0 -1
  1018. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +0 -1
  1019. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +0 -1
  1020. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +0 -1
  1021. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +0 -1
  1022. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +0 -1
  1023. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +0 -1
  1024. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +0 -1
  1025. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +0 -1
  1026. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +0 -1
  1027. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +0 -1
  1028. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +0 -1
  1029. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +0 -1
  1030. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +0 -1
  1031. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +0 -1
  1032. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +0 -1
  1033. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +0 -1
  1034. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +0 -1
  1035. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +0 -1
  1036. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +0 -1
  1037. package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +0 -1
  1038. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +0 -1
  1039. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +0 -1
  1040. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue2.cjs +0 -1
  1041. package/dist/prometheus-framework/src/modules/chats/components/pages/ChatPage.vue2.js +0 -1
  1042. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue2.cjs +0 -1
  1043. package/dist/prometheus-framework/src/modules/chats/components/sections/ChatWindow.vue2.js +0 -1
  1044. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.cjs +0 -1
  1045. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +0 -1
  1046. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +0 -1
  1047. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +0 -1
  1048. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +0 -1
  1049. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +0 -1
  1050. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +0 -1
  1051. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +0 -1
  1052. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +0 -5
  1053. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -67
  1054. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue2.cjs +0 -1
  1055. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue2.js +0 -1
  1056. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.cjs +0 -1
  1057. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +0 -1
  1058. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +0 -1
  1059. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +0 -1
  1060. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue2.cjs +0 -1
  1061. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue2.js +0 -1
  1062. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +0 -1
  1063. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +0 -1
  1064. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +0 -1
  1065. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +0 -1
  1066. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +0 -1
  1067. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +0 -1
  1068. package/dist/prometheus-framework/src/modules/landing/components/elements/AnimatedGrid.vue2.cjs +0 -1
  1069. package/dist/prometheus-framework/src/modules/landing/components/elements/AnimatedGrid.vue2.js +0 -1
  1070. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +0 -1
  1071. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +0 -1
  1072. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +0 -1
  1073. package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +0 -1
  1074. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue2.cjs +0 -1
  1075. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue2.js +0 -1
  1076. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue2.cjs +0 -1
  1077. package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue2.js +0 -1
  1078. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.cjs +0 -1
  1079. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue2.js +0 -1
  1080. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue2.cjs +0 -1
  1081. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue2.js +0 -1
  1082. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.cjs +0 -1
  1083. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.js +0 -1
  1084. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue2.cjs +0 -1
  1085. package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue2.js +0 -1
  1086. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +0 -1
  1087. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +0 -1
  1088. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +0 -1
  1089. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +0 -1
  1090. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +0 -1
  1091. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +0 -1
  1092. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +0 -1
  1093. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +0 -1
  1094. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.cjs +0 -1
  1095. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +0 -1
  1096. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +0 -1
  1097. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +0 -1
  1098. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +0 -1
  1099. package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +0 -1
  1100. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +0 -1
  1101. package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +0 -1
  1102. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +0 -1
  1103. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +0 -1
  1104. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +0 -1
  1105. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +0 -1
  1106. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.cjs +0 -1
  1107. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +0 -1
  1108. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +0 -1
  1109. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +0 -1
  1110. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +0 -1
  1111. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +0 -1
  1112. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +0 -1
  1113. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +0 -1
  1114. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +0 -1
  1115. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +0 -1
  1116. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.cjs +0 -1
  1117. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.js +0 -1
  1118. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +0 -1
  1119. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +0 -1
  1120. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +0 -1
  1121. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +0 -1
  1122. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +0 -1
  1123. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +0 -1
  1124. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +0 -1
  1125. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +0 -1
  1126. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +0 -1
  1127. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +0 -1
  1128. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.cjs +0 -1
  1129. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +0 -1
  1130. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +0 -1
  1131. package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +0 -1
  1132. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +0 -1
  1133. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +0 -1
  1134. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +0 -1
  1135. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +0 -1
  1136. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue2.cjs +0 -1
  1137. package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue2.js +0 -1
  1138. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue2.cjs +0 -1
  1139. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue2.js +0 -1
@@ -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");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");require("../../../../components/Tab/Tab.vue.cjs");const f=require("../../../../components/Block/Block.vue.cjs"),d=require("../../store/orders.cjs"),y=require("../../../auth/store/auth.cjs");require("../blocks/CardOrder.vue2.cjs");const N=require("../../../globals/components/blocks/CardHeader.vue.cjs"),b=require("../../../globals/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");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/store/auth.cjs");;/* empty css */const N=require("../../../globals/components/blocks/CardHeader.vue.cjs"),b=require("../../../globals/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,12 +1,12 @@
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
3
  import "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
4
- import "../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.js";
5
- import "../../../../components/Tab/Tab.vue.js";
4
+ /* empty css */
5
+ /* empty css */
6
6
  import q from "../../../../components/Block/Block.vue.js";
7
7
  import { state as k, actions as z, getters as F } from "../../store/orders.js";
8
8
  import { state as I } from "../../../auth/store/auth.js";
9
- import "../blocks/CardOrder.vue2.js";
9
+ /* empty css */
10
10
  import M from "../../../globals/components/blocks/CardHeader.vue.js";
11
11
  import R from "../../../globals/components/sections/SectionPageTitle.vue.js";
12
12
  import S from "../../../../components/Feed/Feed.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("vue-router"),p=require("vue-i18n"),g=require("../blocks/CardOrderItem.vue.cjs"),h=require("../../../icons/navigation/IconCross.vue.cjs"),t=require("../../store/shopcart.cjs");require("./ShopCart.vue2.cjs");const b={class:"flex-nowrap flex"},_={class:"mn-b-small w-100"},y={class:"mn-b-thin p-big"},k={class:"t-transp p-small"},f={class:"mn-b-big shopcart-content"},v={key:0,class:"mn-t-medium"},S={class:"shopcart-footer pd-b-medium pd-t-medium pd-big transition-cubic bg-black t-white"},E={key:0,class:"mn-b-small total-price"},C={class:"t-transp t-white mn-b-micro"},N={class:"t-demi t-white p-big"},V={__name:"ShopCart",setup(B){i.useRoute();const a=i.useRouter(),c=t.getters.cartTotalPrice,l=t.getters.cartTotalAmount,u={messages:{en:{title:"Your order",subtitle:"You have",positions:"no products in shop cart | 1 product in shop cart | {count} products in shop card",emptystate:"You don't have any positions in your shop cart yet. Maybe something needs to be added?",intotal:"In total",fastorder:"Checkout"},ru:{title:"Ваш заказ",subtitle:"У вас",positions:"нет товаров в корзине | 1 товар в корзине | {count} товаров в корзине",emptystate:"У вас еще нет товаров в корзине. Может стоит что-нибудь добавить?",intotal:"Итого",fastorder:"Подтвердить заказ"}}},{t:o}=p.useI18n(u);function d(){a.push({name:"Form Order"}),t.actions.toggleShopcart()}return(m,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("section",{class:e.normalizeClass(["z-index-4 transition-cubic pd-big bg-white shop-cart",{"shop-cart-active":t.state.currentState===!0}])},[e.createElementVNode("div",b,[e.createElementVNode("div",_,[e.createElementVNode("h4",y,e.toDisplayString(e.unref(o)("title")),1),e.createElementVNode("p",k,e.toDisplayString(e.unref(o)("subtitle"))+" "+e.toDisplayString(e.unref(o)("positions",{count:e.unref(l)})),1)]),e.createVNode(h.default,{onClick:t.actions.toggleShopcart,class:"button-icon"},null,8,["onClick"])]),e.createElementVNode("div",f,[t.state.positions.length>0?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",v,[e.createElementVNode("i",null,e.toDisplayString(e.unref(o)("emptystate")),1)])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.positions,n=>(e.openBlock(),e.createBlock(g.default,{key:n._id,editable:!0,product:n,increase:r=>t.actions.incrementItemQuantity(r._id),decrease:r=>t.actions.decrementItemQuantity(r._id),remove:r=>t.actions.removeProduct(r._id)},null,8,["product","increase","decrease","remove"]))),128))]),e.createElementVNode("div",S,[t.state.positions.length>0?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("p",C,e.toDisplayString(e.unref(o)("intotal")),1),e.createElementVNode("p",N,e.toDisplayString(e.unref(c))+" "+e.toDisplayString(m.returnCurrency()),1)])):e.createCommentVNode("",!0),t.state.positions.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:s[0]||(s[0]=n=>d()),class:"bg-main t-black w-100 button"},e.toDisplayString(e.unref(o)("fastorder")),1)):e.createCommentVNode("",!0)])],2),e.createElementVNode("div",{onClick:s[1]||(s[1]=(...n)=>t.actions.toggleShopcart&&t.actions.toggleShopcart(...n)),class:e.normalizeClass([{active:t.state.currentState===!0},"color-overlay z-index-3"])},null,2)],64))}};exports.default=V;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("vue-router"),p=require("vue-i18n"),g=require("../blocks/CardOrderItem.vue.cjs"),h=require("../../../icons/navigation/IconCross.vue.cjs"),t=require("../../store/shopcart.cjs");;/* empty css */const b={class:"flex-nowrap flex"},_={class:"mn-b-small w-100"},y={class:"mn-b-thin p-big"},k={class:"t-transp p-small"},f={class:"mn-b-big shopcart-content"},v={key:0,class:"mn-t-medium"},S={class:"shopcart-footer pd-b-medium pd-t-medium pd-big transition-cubic bg-black t-white"},E={key:0,class:"mn-b-small total-price"},C={class:"t-transp t-white mn-b-micro"},N={class:"t-demi t-white p-big"},V={__name:"ShopCart",setup(B){i.useRoute();const a=i.useRouter(),c=t.getters.cartTotalPrice,l=t.getters.cartTotalAmount,u={messages:{en:{title:"Your order",subtitle:"You have",positions:"no products in shop cart | 1 product in shop cart | {count} products in shop card",emptystate:"You don't have any positions in your shop cart yet. Maybe something needs to be added?",intotal:"In total",fastorder:"Checkout"},ru:{title:"Ваш заказ",subtitle:"У вас",positions:"нет товаров в корзине | 1 товар в корзине | {count} товаров в корзине",emptystate:"У вас еще нет товаров в корзине. Может стоит что-нибудь добавить?",intotal:"Итого",fastorder:"Подтвердить заказ"}}},{t:o}=p.useI18n(u);function d(){a.push({name:"Form Order"}),t.actions.toggleShopcart()}return(m,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("section",{class:e.normalizeClass(["z-index-4 transition-cubic pd-big bg-white shop-cart",{"shop-cart-active":t.state.currentState===!0}])},[e.createElementVNode("div",b,[e.createElementVNode("div",_,[e.createElementVNode("h4",y,e.toDisplayString(e.unref(o)("title")),1),e.createElementVNode("p",k,e.toDisplayString(e.unref(o)("subtitle"))+" "+e.toDisplayString(e.unref(o)("positions",{count:e.unref(l)})),1)]),e.createVNode(h.default,{onClick:t.actions.toggleShopcart,class:"button-icon"},null,8,["onClick"])]),e.createElementVNode("div",f,[t.state.positions.length>0?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",v,[e.createElementVNode("i",null,e.toDisplayString(e.unref(o)("emptystate")),1)])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.positions,n=>(e.openBlock(),e.createBlock(g.default,{key:n._id,editable:!0,product:n,increase:r=>t.actions.incrementItemQuantity(r._id),decrease:r=>t.actions.decrementItemQuantity(r._id),remove:r=>t.actions.removeProduct(r._id)},null,8,["product","increase","decrease","remove"]))),128))]),e.createElementVNode("div",S,[t.state.positions.length>0?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("p",C,e.toDisplayString(e.unref(o)("intotal")),1),e.createElementVNode("p",N,e.toDisplayString(e.unref(c))+" "+e.toDisplayString(m.returnCurrency()),1)])):e.createCommentVNode("",!0),t.state.positions.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:s[0]||(s[0]=n=>d()),class:"bg-main t-black w-100 button"},e.toDisplayString(e.unref(o)("fastorder")),1)):e.createCommentVNode("",!0)])],2),e.createElementVNode("div",{onClick:s[1]||(s[1]=(...n)=>t.actions.toggleShopcart&&t.actions.toggleShopcart(...n)),class:e.normalizeClass([{active:t.state.currentState===!0},"color-overlay z-index-3"])},null,2)],64))}};exports.default=V;
@@ -4,7 +4,7 @@ import { useI18n as I } from "vue-i18n";
4
4
  import z from "../blocks/CardOrderItem.vue.js";
5
5
  import B from "../../../icons/navigation/IconCross.vue.js";
6
6
  import { getters as h, state as i, actions as s } from "../../store/shopcart.js";
7
- import "./ShopCart.vue2.js";
7
+ /* empty css */
8
8
  const N = { class: "flex-nowrap flex" }, P = { class: "mn-b-small w-100" }, T = { class: "mn-b-thin p-big" }, V = { class: "t-transp p-small" }, Y = { class: "mn-b-big shopcart-content" }, $ = {
9
9
  key: 0,
10
10
  class: "mn-t-medium"
@@ -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");require("../../../../components/Field/Field.vue.cjs");const b=require("../../../../components/FieldPhone/click-outside.cjs");require("../../../../components/Select/Select.vue2.cjs");const g=require("../../../../components/Feed/Feed.vue.cjs"),v=require("../../../../components/Button/Button.vue2.cjs"),C=require("../../../globals/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/store/auth.cjs"),B=require("../../../globals/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 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 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/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/store/auth.cjs"),B=require("../../../globals/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 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 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,9 +1,9 @@
1
1
  import { ref as n, openBlock as l, createElementBlock as u, Fragment as h, createVNode as m, withCtx as c, unref as t, withDirectives as y, createBlock as p, isRef as d, renderList as x, createCommentVNode as $, createTextVNode as E } from "vue";
2
2
  import { useRoute as U } from "vue-router";
3
3
  import N from "../../../../components/Block/Block.vue.js";
4
- import "../../../../components/Field/Field.vue.js";
4
+ /* empty css */
5
5
  import O from "../../../../components/FieldPhone/click-outside.js";
6
- import "../../../../components/Select/Select.vue2.js";
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/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 r, openBlock as m, createBlock as i, withCtx as u, createVNode a
2
2
  import p from "../../../../components/Block/Block.vue.js";
3
3
  import o from "../../../../components/Field/Field.vue2.js";
4
4
  import c from "../../../../components/FieldPhone/FieldPhone.vue.js";
5
- import h from "../../../../components/Select/Select.vue.js";
5
+ import h from "../../../../components/Select/Select.vue2.js";
6
6
  const g = { 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 t=require("vue"),l=require("../../../globals/store/globals.cjs"),s=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Address/Address.vue.cjs"),u=require("../../../../components/LocationMarker/LocationMarker.vue.cjs"),i=require("../../../../components/Radio/Radio.vue.cjs"),m=require("../../../../components/Field/Field.vue2.cjs"),y=t.createElementVNode("h4",{class:"font-second mn-b-thin"},"Select deliverty type",-1),c={class:"mn-b-small flex-nowrap flex"},v=t.createElementVNode("h4",{class:"font-second mn-b-thin"},"Address",-1),b={__name:"FormDelivery",props:{order:Object},setup(e){const o=e;return t.onMounted(()=>{l.state.position&&(o.order.delivery.address=l.state.position.address),l.state.position&&(o.order.delivery.location=l.state.position.location)}),(a,d)=>(t.openBlock(),t.createBlock(s.default,{title:"Delivery",class:"mn-b-thin",tooltip:"Delivery by mail takes 3-5 days."},{default:t.withCtx(()=>[y,t.createElementVNode("div",c,[t.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[0]||(d[0]=r=>e.order.delivery.type=r),label:"Pickup",value:"pickup",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),t.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[1]||(d[1]=r=>e.order.delivery.type=r),label:"Courier",value:"courier",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),t.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[2]||(d[2]=r=>e.order.delivery.type=r),label:"Post",value:"mail",class:"bg-white pd-medium radius-small w-100"},null,8,["radio"])]),v,t.createVNode(n.default,{label:"Location",apiKey:a.GOOGLE_MAPS_API_KEY,address:e.order.delivery.address,location:e.order.delivery.location,placeholder:"Enter your address",class:"bg-white radius-tl-medium radius-tr-medium t-black pd-medium","onUpdate:location":d[3]||(d[3]=r=>{e.order.delivery.location=r}),"onUpdate:address":d[4]||(d[4]=r=>{e.order.delivery.address=r})},null,8,["apiKey","address","location"]),t.createVNode(u.default,{apiKey:a.GOOGLE_MAPS_API_KEY,address:e.order.delivery.address,location:e.order.delivery.location,class:"mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden","onUpdate:location":d[5]||(d[5]=r=>{e.order.delivery.location=r}),"onUpdate:address":d[6]||(d[6]=r=>{e.order.delivery.address=r})},null,8,["apiKey","address","location"]),t.createVNode(m.default,{field:e.order.comment,"onUpdate:field":d[7]||(d[7]=r=>e.order.comment=r),placeholder:"Comments regarding the address (apartment unit, floor level, building section)",type:"textarea",class:"bg-white pd-medium radius-small"},null,8,["field"])]),_:1}))}};exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),l=require("../../../globals/store/globals.cjs"),s=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Address/Address.vue2.cjs"),u=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),i=require("../../../../components/Radio/Radio.vue.cjs"),m=require("../../../../components/Field/Field.vue2.cjs"),y=t.createElementVNode("h4",{class:"font-second mn-b-thin"},"Select deliverty type",-1),c={class:"mn-b-small flex-nowrap flex"},v=t.createElementVNode("h4",{class:"font-second mn-b-thin"},"Address",-1),b={__name:"FormDelivery",props:{order:Object},setup(e){const o=e;return t.onMounted(()=>{l.state.position&&(o.order.delivery.address=l.state.position.address),l.state.position&&(o.order.delivery.location=l.state.position.location)}),(a,d)=>(t.openBlock(),t.createBlock(s.default,{title:"Delivery",class:"mn-b-thin",tooltip:"Delivery by mail takes 3-5 days."},{default:t.withCtx(()=>[y,t.createElementVNode("div",c,[t.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[0]||(d[0]=r=>e.order.delivery.type=r),label:"Pickup",value:"pickup",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),t.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[1]||(d[1]=r=>e.order.delivery.type=r),label:"Courier",value:"courier",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),t.createVNode(i.default,{radio:e.order.delivery.type,"onUpdate:radio":d[2]||(d[2]=r=>e.order.delivery.type=r),label:"Post",value:"mail",class:"bg-white pd-medium radius-small w-100"},null,8,["radio"])]),v,t.createVNode(n.default,{label:"Location",apiKey:a.GOOGLE_MAPS_API_KEY,address:e.order.delivery.address,location:e.order.delivery.location,placeholder:"Enter your address",class:"bg-white radius-tl-medium radius-tr-medium t-black pd-medium","onUpdate:location":d[3]||(d[3]=r=>{e.order.delivery.location=r}),"onUpdate:address":d[4]||(d[4]=r=>{e.order.delivery.address=r})},null,8,["apiKey","address","location"]),t.createVNode(u.default,{apiKey:a.GOOGLE_MAPS_API_KEY,address:e.order.delivery.address,location:e.order.delivery.location,class:"mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden","onUpdate:location":d[5]||(d[5]=r=>{e.order.delivery.location=r}),"onUpdate:address":d[6]||(d[6]=r=>{e.order.delivery.address=r})},null,8,["apiKey","address","location"]),t.createVNode(m.default,{field:e.order.comment,"onUpdate:field":d[7]||(d[7]=r=>e.order.comment=r),placeholder:"Comments regarding the address (apartment unit, floor level, building section)",type:"textarea",class:"bg-white pd-medium radius-small"},null,8,["field"])]),_:1}))}};exports.default=b;
@@ -1,8 +1,8 @@
1
1
  import { onMounted as n, openBlock as m, createBlock as u, withCtx as y, createElementVNode as t, createVNode as i } from "vue";
2
2
  import { state as o } from "../../../globals/store/globals.js";
3
3
  import v from "../../../../components/Block/Block.vue.js";
4
- import f from "../../../../components/Address/Address.vue.js";
5
- import b from "../../../../components/LocationMarker/LocationMarker.vue.js";
4
+ import f from "../../../../components/Address/Address.vue2.js";
5
+ import b from "../../../../components/LocationMarker/LocationMarker.vue2.js";
6
6
  import l from "../../../../components/Radio/Radio.vue.js";
7
7
  import c from "../../../../components/Field/Field.vue2.js";
8
8
  const p = /* @__PURE__ */ t("h4", { class: "font-second mn-b-thin" }, "Select deliverty type", -1), w = { class: "mn-b-small flex-nowrap flex" }, g = /* @__PURE__ */ t("h4", { class: "font-second mn-b-thin" }, "Address", -1), O = {
@@ -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: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("../../globals/store/globals.cjs"),o=require("../../../../node_modules/axios/lib/axios.cjs");process.env.NODE_ENV;const c=o.default.create({baseURL:process.env.API_URL}),a=t.reactive({all:[],current:{_id:"",status:"",name:"",email:"",chat:"",text:""},form:{status:!1,data:{name:"",phone:"",chat:"",text:""}}});async function n(r){return await c.post("/applications",r).then(e=>Promise.resolve(e.data),e=>(s.setError(e),Promise.reject(e)))}t.computed(()=>a.all);t.watch(a,(r,e)=>{});exports.create=n;exports.state=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("../../globals/store/globals.cjs"),o=require("axios");process.env.NODE_ENV;const c=o.create({baseURL:process.env.API_URL}),a=t.reactive({all:[],current:{_id:"",status:"",name:"",email:"",chat:"",text:""},form:{status:!1,data:{name:"",phone:"",chat:"",text:""}}});async function n(r){return await c.post("/applications",r).then(e=>Promise.resolve(e.data),e=>(s.setError(e),Promise.reject(e)))}t.computed(()=>a.all);t.watch(a,(r,e)=>{});exports.create=n;exports.state=a;
@@ -1,6 +1,6 @@
1
1
  import { reactive as r, computed as o, watch as s } from "vue";
2
2
  import { setError as n } from "../../globals/store/globals.js";
3
- import c from "../../../../node_modules/axios/lib/axios.js";
3
+ import c from "axios";
4
4
  process.env.NODE_ENV;
5
5
  const i = c.create({ baseURL: process.env.API_URL }), a = r({
6
6
  all: [],
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),u=require("../../../../node_modules/axios/lib/axios.cjs"),s=require("../../globals/store/globals.cjs"),d=require("./models/order.cjs"),n=u.default.create({baseURL:process.env.API_URL,withCredentials:!0}),r=i.reactive({all:[],current:{...d.default}}),p={async create(e){try{const t=await n.post("/api/orders/create",e);return r.all.push(t.data),t.data}catch(t){s.setError(t)}},async read(e={}){try{const t=await n.get("/api/orders/read",{params:e});return e._id?o(t.data[0],"current"):o(t.data,"all"),t.data}catch(t){throw s.setError(t),t}},async update(e){try{const t=await n.post("/api/orders/update",e),a=r.all.findIndex(c=>c._id===e._id);return a!==-1&&(r.all[a]=t.data),t.data}catch(t){s.setError(t)}},async delete(e){try{await n.delete(`/api/orders/${e}`),r.all=r.all.filter(t=>t._id!==e)}catch(t){s.setError(t)}},async changePaymentStatus(e,t){try{const a=await n.post(`/api/orders/payment/${e}`,{status:t}),c=r.all.findIndex(l=>l._id===e);c!==-1&&(r.all[c]=a.data)}catch(a){s.setError(a)}}},y={resetCustomer(e){Object.assign(e,customerInitState)},resetOrder(e){r.current={...d.default}}},f={getTotal(e){return e.reduce((t,a)=>t+a.price*a.quantity,0)}};function o(e,t){r[t]=e}i.watch(r,(e,t)=>{});exports.actions=p;exports.getters=f;exports.mutations=y;exports.state=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),u=require("axios"),s=require("../../globals/store/globals.cjs"),d=require("./models/order.cjs"),n=u.create({baseURL:process.env.API_URL,withCredentials:!0}),r=i.reactive({all:[],current:{...d.default}}),p={async create(e){try{const t=await n.post("/api/orders/create",e);return r.all.push(t.data),t.data}catch(t){s.setError(t)}},async read(e={}){try{const t=await n.get("/api/orders/read",{params:e});return e._id?o(t.data[0],"current"):o(t.data,"all"),t.data}catch(t){throw s.setError(t),t}},async update(e){try{const t=await n.post("/api/orders/update",e),a=r.all.findIndex(c=>c._id===e._id);return a!==-1&&(r.all[a]=t.data),t.data}catch(t){s.setError(t)}},async delete(e){try{await n.delete(`/api/orders/${e}`),r.all=r.all.filter(t=>t._id!==e)}catch(t){s.setError(t)}},async changePaymentStatus(e,t){try{const a=await n.post(`/api/orders/payment/${e}`,{status:t}),c=r.all.findIndex(l=>l._id===e);c!==-1&&(r.all[c]=a.data)}catch(a){s.setError(a)}}},y={resetCustomer(e){Object.assign(e,customerInitState)},resetOrder(e){r.current={...d.default}}},f={getTotal(e){return e.reduce((t,a)=>t+a.price*a.quantity,0)}};function o(e,t){r[t]=e}i.watch(r,(e,t)=>{});exports.actions=p;exports.getters=f;exports.mutations=y;exports.state=r;
@@ -1,5 +1,5 @@
1
1
  import { reactive as l, watch as p } from "vue";
2
- import u from "../../../../node_modules/axios/lib/axios.js";
2
+ import u from "axios";
3
3
  import { setError as s } from "../../globals/store/globals.js";
4
4
  import i from "./models/order.js";
5
5
  const n = u.create({ baseURL: process.env.API_URL, withCredentials: !0 }), a = l({
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../icons/navigation/IconEdit.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("./DepartmentSub.vue2.cjs");const u=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),d=require("../../../users/components/blocks/CardUser.vue.cjs");require("./CardDepartment.vue2.cjs");const c={class:""},p={class:"pd-medium w-100"},m=["innerHTML"],h={key:0},k={__name:"CardDepartment",props:{department:Object,organization:Object},setup(r){const n=r;return(o,a)=>{const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",p,[e.createVNode(s,{to:{name:"Department Edit",params:{_id:n.organization,department:r.department._id}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"]),e.createElementVNode("h3",{onClick:a[0]||(a[0]=t=>o.$router.push(`/organizations/${n.organization}/departments/${r.department._id}`)),class:"mn-b-small w-100",innerHTML:r.department.profile.name},null,8,m),e.createElementVNode("ul",null,[r.department.members.length<1?(e.openBlock(),e.createElementBlock("li",h,"No members in department")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.department.members,(t,l)=>(e.openBlock(),e.createBlock(d.default,{class:"h-4r pd-small br-solid br-1px br-black-transp-5 radius-small mn-b-thin",key:l,user:t.user,photo:t.user.profile.photo,name:t.user.profile.name||t.user.phone||t.user.email||t.user._id,position:t.position,onClick:g=>o.$router.push(`/app/profile/${t.user._id}`)},null,8,["user","photo","name","position","onClick"]))),128))])])])}}},_=u.default(k,[["__scopeId","data-v-de9a0606"]]);exports.default=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../icons/navigation/IconEdit.vue.cjs");;/* empty css */;/* empty css */const u=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),d=require("../../../users/components/blocks/CardUser.vue.cjs");;/* empty css */const c={class:""},p={class:"pd-medium w-100"},m=["innerHTML"],h={key:0},k={__name:"CardDepartment",props:{department:Object,organization:Object},setup(r){const n=r;return(o,a)=>{const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",p,[e.createVNode(s,{to:{name:"Department Edit",params:{_id:n.organization,department:r.department._id}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(i.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"]),e.createElementVNode("h3",{onClick:a[0]||(a[0]=t=>o.$router.push(`/organizations/${n.organization}/departments/${r.department._id}`)),class:"mn-b-small w-100",innerHTML:r.department.profile.name},null,8,m),e.createElementVNode("ul",null,[r.department.members.length<1?(e.openBlock(),e.createElementBlock("li",h,"No members in department")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.department.members,(t,l)=>(e.openBlock(),e.createBlock(d.default,{class:"h-4r pd-small br-solid br-1px br-black-transp-5 radius-small mn-b-thin",key:l,user:t.user,photo:t.user.profile.photo,name:t.user.profile.name||t.user.phone||t.user.email||t.user._id,position:t.position,onClick:g=>o.$router.push(`/app/profile/${t.user._id}`)},null,8,["user","photo","name","position","onClick"]))),128))])])])}}},_=u.default(k,[["__scopeId","data-v-de9a0606"]]);exports.default=_;
@@ -1,10 +1,10 @@
1
1
  import { resolveComponent as m, openBlock as r, createElementBlock as o, createElementVNode as n, createVNode as l, withCtx as u, createCommentVNode as c, Fragment as _, renderList as h, createBlock as f } from "vue";
2
2
  import k from "../../../icons/navigation/IconEdit.vue.js";
3
- import "../../../../components/Spoiler/Spoiler.vue.js";
4
- import "./DepartmentSub.vue2.js";
3
+ /* empty css */
4
+ /* empty css */
5
5
  import g from "../../../../../../_virtual/_plugin-vue_export-helper.js";
6
6
  import $ from "../../../users/components/blocks/CardUser.vue.js";
7
- import "./CardDepartment.vue2.js";
7
+ /* empty css */
8
8
  const C = { class: "" }, b = { class: "pd-medium w-100" }, v = ["innerHTML"], w = { key: 0 }, x = {
9
9
  __name: "CardDepartment",
10
10
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),s=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),c=require("../../../../components/Chips/Chips.vue2.cjs"),d=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),u=require("../../../icons/entities/IconPrice.vue.cjs"),m=require("../../../icons/entities/IconShopcart.vue.cjs"),h=require("../../../icons/entities/IconTime.vue.cjs"),g=require("../elements/ButtonToggleMembership.vue.cjs"),f={class:"flex pos-relative"},k=["src"],w={class:"pos-relative w-100 flex-h-center flex flex-column flex-child-1 flex-child mn-l-thin w-100"},b={class:"h4 t-truncate"},p={key:1,class:"flex-center gap-thin pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"},B={class:"mn-t-thin mn-b-thin"},z={key:0,class:"mn-b-small mn-t-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},y={class:"mn-r-thin"},V={key:0,class:"t-transp mn-r-thin"},v={class:"mn-r-thin"},E={class:"mn-r-thin"},N={class:"mn-r-thin"},x={key:1,class:"w-100 o-scroll radius-medium"},S={class:"w-max flex-nowrap flex gap-thin"},C=e.createElementVNode("button",{class:"pd-thin w-15r radius-medium bg-main button"}," View menu ",-1),M={__name:"CardOrganization",props:{user:String,organization:Object,showProducts:{type:Boolean,default:!1},showFollowers:{type:Boolean,default:!0},showRating:{type:Boolean,default:!1},showFeatured:{type:Boolean,default:!0},showTags:{type:Boolean,default:!0}},emits:["updateMembership"],setup(t,{emit:q}){return l.useRouter(),(o,i)=>{var a,r;return e.openBlock(),e.createElementBlock("div",{class:"o-hidden pos-relative cursor-pointer bg-light pd-small",onClick:i[1]||(i[1]=n=>o.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",f,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,k)):(e.openBlock(),e.createBlock(d.default,{key:1,class:"h-4r w-4r"})),e.createElementVNode("div",w,[e.createElementVNode("p",b,e.toDisplayString(t.organization.profile.name),1),t.showTags&&((a=t.organization.profile.tags)==null?void 0:a.length)>0?(e.openBlock(),e.createBlock(c.default,{key:0,chips:t.organization.profile.tags.slice(0,3),class:"pos-relative p-small"},null,8,["chips"])):e.createCommentVNode("",!0),t.showFollowers?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("p",B,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),(r=t.user)!=null&&r._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"+",remove:"-"},onUpdateMembership:i[0]||(i[0]=n=>o.handleMembershipUpdate(n,"isSubscriber","numberOfSubscribers")),class:"i-semi"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),t.showProducts?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(h.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",y,e.toDisplayString(t.organization.distance?Math.ceil((10+3*t.organization.distance)/5)*5+"-"+Math.ceil((20+3*t.organization.distance)/5)*5+" MIN":"Unavailable"),1),t.organization.distance?(e.openBlock(),e.createElementBlock("span",V,"|")):e.createCommentVNode("",!0),e.createElementVNode("span",v,e.toDisplayString(t.organization.distance?t.organization.distance.toFixed(1)+" KM":""),1),e.createVNode(u.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",E,e.toDisplayString(o.returnCurrency())+"500 ",1),e.createVNode(m.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",N,e.toDisplayString(t.organization.products.length)+" products",1)])):e.createCommentVNode("",!0),t.showProducts&&t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products.slice(0,10),n=>(e.openBlock(),e.createBlock(s.default,{onClick:e.withModifiers(O=>o.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:n._id}}),["stop"]),key:n._id,editable:!1,product:n,class:"pd-thin w-15r radius-medium bg-white"},null,8,["onClick","product"]))),128)),C])])):e.createCommentVNode("",!0)])}}};exports.default=M;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("vue-router"),s=require("../../../orders/components/blocks/CardOrderItem.vue.cjs"),c=require("../../../../components/Chips/Chips.vue.cjs"),d=require("../../../icons/placeholders/PlaceholderOrganizationPic.vue.cjs"),u=require("../../../icons/entities/IconPrice.vue.cjs"),m=require("../../../icons/entities/IconShopcart.vue.cjs"),h=require("../../../icons/entities/IconTime.vue.cjs"),g=require("../elements/ButtonToggleMembership.vue.cjs"),f={class:"flex pos-relative"},k=["src"],w={class:"pos-relative w-100 flex-h-center flex flex-column flex-child-1 flex-child mn-l-thin w-100"},b={class:"h4 t-truncate"},p={key:1,class:"flex-center gap-thin pd-r-thin pd-l-thin flex-nowrap flex mn-t-thin bg-white radius-extra w-max"},B={class:"mn-t-thin mn-b-thin"},z={key:0,class:"mn-b-small mn-t-small w-100 flex-nowrap flex flex-v-center pd-small bg-white radius-medium"},y={class:"mn-r-thin"},V={key:0,class:"t-transp mn-r-thin"},v={class:"mn-r-thin"},E={class:"mn-r-thin"},N={class:"mn-r-thin"},x={key:1,class:"w-100 o-scroll radius-medium"},S={class:"w-max flex-nowrap flex gap-thin"},C=e.createElementVNode("button",{class:"pd-thin w-15r radius-medium bg-main button"}," View menu ",-1),M={__name:"CardOrganization",props:{user:String,organization:Object,showProducts:{type:Boolean,default:!1},showFollowers:{type:Boolean,default:!0},showRating:{type:Boolean,default:!1},showFeatured:{type:Boolean,default:!0},showTags:{type:Boolean,default:!0}},emits:["updateMembership"],setup(t,{emit:q}){return l.useRouter(),(o,i)=>{var a,r;return e.openBlock(),e.createElementBlock("div",{class:"o-hidden pos-relative cursor-pointer bg-light pd-small",onClick:i[1]||(i[1]=n=>o.$router.push({name:"Organization",params:{_id:t.organization._id}}))},[e.createElementVNode("div",f,[t.organization.profile.photo&&t.organization.profile.photo.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.organization.profile.photo,class:"h-4r w-4r radius-extra bg-white"},null,8,k)):(e.openBlock(),e.createBlock(d.default,{key:1,class:"h-4r w-4r"})),e.createElementVNode("div",w,[e.createElementVNode("p",b,e.toDisplayString(t.organization.profile.name),1),t.showTags&&((a=t.organization.profile.tags)==null?void 0:a.length)>0?(e.openBlock(),e.createBlock(c.default,{key:0,chips:t.organization.profile.tags.slice(0,3),class:"pos-relative p-small"},null,8,["chips"])):e.createCommentVNode("",!0),t.showFollowers?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("p",B,e.toDisplayString(t.organization.numberOfSubscribers)+" followers",1),(r=t.user)!=null&&r._id&&t.organization.owner!==t.user._id?(e.openBlock(),e.createBlock(g.default,{key:0,user:t.user._id,type:"organization",role:"subscriber",target:t.organization._id,status:t.organization.isSubscriber,text:{create:"+",remove:"-"},onUpdateMembership:i[0]||(i[0]=n=>o.handleMembershipUpdate(n,"isSubscriber","numberOfSubscribers")),class:"i-semi"},null,8,["user","target","status"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),t.showProducts?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(h.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",y,e.toDisplayString(t.organization.distance?Math.ceil((10+3*t.organization.distance)/5)*5+"-"+Math.ceil((20+3*t.organization.distance)/5)*5+" MIN":"Unavailable"),1),t.organization.distance?(e.openBlock(),e.createElementBlock("span",V,"|")):e.createCommentVNode("",!0),e.createElementVNode("span",v,e.toDisplayString(t.organization.distance?t.organization.distance.toFixed(1)+" KM":""),1),e.createVNode(u.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",E,e.toDisplayString(o.returnCurrency())+"500 ",1),e.createVNode(m.default,{class:"i-medium mn-r-micro"}),e.createElementVNode("span",N,e.toDisplayString(t.organization.products.length)+" products",1)])):e.createCommentVNode("",!0),t.showProducts&&t.organization.products.length>0?(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("div",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.organization.products.slice(0,10),n=>(e.openBlock(),e.createBlock(s.default,{onClick:e.withModifiers(O=>o.$router.push({name:"Product Organization",params:{_id:t.organization._id,product:n._id}}),["stop"]),key:n._id,editable:!1,product:n,class:"pd-thin w-15r radius-medium bg-white"},null,8,["onClick","product"]))),128)),C])])):e.createCommentVNode("",!0)])}}};exports.default=M;
@@ -1,7 +1,7 @@
1
1
  import { openBlock as t, createElementBlock as n, createElementVNode as i, createBlock as c, toDisplayString as o, createCommentVNode as s, createVNode as d, Fragment as h, renderList as g, withModifiers as f } from "vue";
2
2
  import { useRouter as w } from "vue-router";
3
3
  import b from "../../../orders/components/blocks/CardOrderItem.vue.js";
4
- import z from "../../../../components/Chips/Chips.vue2.js";
4
+ import z from "../../../../components/Chips/Chips.vue.js";
5
5
  import p from "../../../icons/placeholders/PlaceholderOrganizationPic.vue.js";
6
6
  import x from "../../../icons/entities/IconPrice.vue.js";
7
7
  import y from "../../../icons/entities/IconShopcart.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./DepartmentSub.vue2.cjs");const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),n={class:"pd-small flex-nowrap flex"},a={class:"user-card__info"},s={class:"user-card__name"},c={class:"user-card__position"},o={__name:"DepartmentSub",props:{department:{type:Object,required:!0}},setup(t){return(l,u)=>(e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",a,[e.createElementVNode("p",s,e.toDisplayString(t.department.name?t.department.name:"Безымянный"),1),e.createElementVNode("p",c,e.toDisplayString(t.department.members?t.department.members.length:"0")+" человек",1)])]))}},d=r.default(o,[["__scopeId","data-v-d65b1483"]]);exports.default=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),n={class:"pd-small flex-nowrap flex"},a={class:"user-card__info"},s={class:"user-card__name"},c={class:"user-card__position"},o={__name:"DepartmentSub",props:{department:{type:Object,required:!0}},setup(t){return(l,u)=>(e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",a,[e.createElementVNode("p",s,e.toDisplayString(t.department.name?t.department.name:"Безымянный"),1),e.createElementVNode("p",c,e.toDisplayString(t.department.members?t.department.members.length:"0")+" человек",1)])]))}},d=r.default(o,[["__scopeId","data-v-d65b1483"]]);exports.default=d;
@@ -1,5 +1,5 @@
1
1
  import { openBlock as a, createElementBlock as s, createElementVNode as t, toDisplayString as r } from "vue";
2
- import "./DepartmentSub.vue2.js";
2
+ /* empty css */
3
3
  import n from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const o = { class: "pd-small flex-nowrap flex" }, c = { class: "user-card__info" }, m = { class: "user-card__name" }, d = { class: "user-card__position" }, p = {
5
5
  __name: "DepartmentSub",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("./EditArray.vue2.cjs");const m={class:"w-100"},d={class:"flex"},_={class:"mn-b-regular"},f={class:"flex-column flex-wrap block"},k={key:0,class:"w-100"},h={class:"w-100 flex-center flex-nowrap flex"},v={class:"mn-r-regular w-100"},E=["onClick"],g={key:0,class:"mn-t-small mn-b-small w-100"},p={__name:"EditArray",props:{name:Object,items:Array},emits:["add","remove"],setup(t,{emit:B}){s.useRouter(),s.useRoute();let r=e.reactive([]);e.toRefs(r);const n=e.ref(null),a=e.ref(null),o=e.ref(null);e.computed(()=>{if(n.value===null||o.value===null||o.value==="")return!0;if(n.value.modifications.length>0)return a.value===null});function u(c){store.commit("leftovers/deleteItemFromLeftover",c)}return(c,w)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",d,[e.createElementVNode("h3",_,e.toDisplayString(t.name),1)]),e.createElementVNode("ul",f,[t.items.length<1?(e.openBlock(),e.createElementBlock("span",k,"Вы еще не добавили позиции")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,i)=>(e.openBlock(),e.createElementBlock("li",{key:l._id,class:"w-100"},[e.createElementVNode("div",h,[e.createElementVNode("span",v,e.toDisplayString(l.name),1),e.createElementVNode("a",{class:"w-20 button",onClick:y=>u(l)},"Удалить",8,E)]),i!=t.items.length-1?(e.openBlock(),e.createElementBlock("hr",g)):e.createCommentVNode("",!0)]))),128))])]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");;/* empty css */const m={class:"w-100"},d={class:"flex"},_={class:"mn-b-regular"},f={class:"flex-column flex-wrap block"},k={key:0,class:"w-100"},h={class:"w-100 flex-center flex-nowrap flex"},v={class:"mn-r-regular w-100"},E=["onClick"],g={key:0,class:"mn-t-small mn-b-small w-100"},p={__name:"EditArray",props:{name:Object,items:Array},emits:["add","remove"],setup(t,{emit:B}){s.useRouter(),s.useRoute();let r=e.reactive([]);e.toRefs(r);const n=e.ref(null),a=e.ref(null),o=e.ref(null);e.computed(()=>{if(n.value===null||o.value===null||o.value==="")return!0;if(n.value.modifications.length>0)return a.value===null});function u(c){store.commit("leftovers/deleteItemFromLeftover",c)}return(c,w)=>(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",d,[e.createElementVNode("h3",_,e.toDisplayString(t.name),1)]),e.createElementVNode("ul",f,[t.items.length<1?(e.openBlock(),e.createElementBlock("span",k,"Вы еще не добавили позиции")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(l,i)=>(e.openBlock(),e.createElementBlock("li",{key:l._id,class:"w-100"},[e.createElementVNode("div",h,[e.createElementVNode("span",v,e.toDisplayString(l.name),1),e.createElementVNode("a",{class:"w-20 button",onClick:y=>u(l)},"Удалить",8,E)]),i!=t.items.length-1?(e.openBlock(),e.createElementBlock("hr",g)):e.createCommentVNode("",!0)]))),128))])]))}};exports.default=p;
@@ -1,6 +1,6 @@
1
1
  import { reactive as h, toRefs as v, ref as o, computed as k, openBlock as t, createElementBlock as l, createElementVNode as e, toDisplayString as i, createCommentVNode as u, Fragment as w, renderList as p } from "vue";
2
2
  import { useRouter as x, useRoute as g } from "vue-router";
3
- import "./EditArray.vue2.js";
3
+ /* empty css */
4
4
  const y = { class: "w-100" }, b = { class: "flex" }, S = { class: "mn-b-regular" }, C = { class: "flex-column flex-wrap block" }, E = {
5
5
  key: 0,
6
6
  class: "w-100"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("vue-router");require("../../../../components/Spoiler/Spoiler.vue.cjs");const u=require("../blocks/DepartmentSub.vue.cjs"),m=require("../../../users/components/blocks/CardUser.vue.cjs"),r=require("../../store/departments.cjs"),p=require("../../../icons/navigation/IconEdit.vue.cjs"),_={class:"for-transition w-100"},h={key:0,id:"dash",class:"pd-medium bg-light"},k={class:"mn-b-medium radius-medium pd-semi bg-white"},g={class:"flex-nowrap flex mn-b-small"},b={class:"w-100"},E=["innerHTML"],f={class:"mn-b-medium radius-medium pd-semi bg-white"},B=e.createElementVNode("h3",{class:"mn-b-regular"},"Команда",-1),N={key:0},V={class:"mn-b-medium radius-medium pd-semi bg-white"},y=e.createElementVNode("h3",{class:"mn-b-regular"},"Подотделы",-1),C={key:0},v={__name:"Department",async setup(w){let s,a;i.useRouter();const n=i.useRoute();return[s,a]=e.withAsyncContext(()=>r.actions.readOne(n.params.department)),await s,a(),(l,q)=>{const c=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",_,[r.state.department?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("section",k,[e.createElementVNode("div",g,[e.createElementVNode("h2",b,e.toDisplayString(r.state.department.profile.name),1),e.createVNode(c,{to:{name:"Department Edit",params:{_id:e.unref(n).params._id,department:e.unref(n).params.department}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"])]),e.createElementVNode("p",{class:"t-transp p-big",innerHTML:r.state.department.description},null,8,E)]),e.createElementVNode("section",f,[B,e.createElementVNode("ul",null,[r.state.department.members.length<1?(e.openBlock(),e.createElementBlock("li",N,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.state.department.members,(t,o)=>(e.openBlock(),e.createBlock(m.default,{class:"br-b br-solid br-grey-transp-25",key:o,user:t.user,photo:t.user.profile.photo,name:t.user.profile.name||t.user.phone||t.user.email||t.user._id,position:t.position,onClick:d=>l.$router.push(`/app/profile/${t.user._id}`)},null,8,["user","photo","name","position","onClick"]))),128))])]),e.createElementVNode("section",V,[y,e.createElementVNode("ul",null,[r.state.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",C,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.state.department.subdepartments,(t,o)=>(e.openBlock(),e.createBlock(u.default,{onClick:d=>l.$router.push(`/app/organization/departments/${t._id}`),key:o,class:"br-b br-solid br-grey-transp-25",department:t},null,8,["onClick","department"]))),128))])])])):e.createCommentVNode("",!0)])}}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("vue-router");;/* empty css */const u=require("../blocks/DepartmentSub.vue.cjs"),m=require("../../../users/components/blocks/CardUser.vue.cjs"),r=require("../../store/departments.cjs"),p=require("../../../icons/navigation/IconEdit.vue.cjs"),_={class:"for-transition w-100"},h={key:0,id:"dash",class:"pd-medium bg-light"},k={class:"mn-b-medium radius-medium pd-semi bg-white"},g={class:"flex-nowrap flex mn-b-small"},b={class:"w-100"},E=["innerHTML"],f={class:"mn-b-medium radius-medium pd-semi bg-white"},B=e.createElementVNode("h3",{class:"mn-b-regular"},"Команда",-1),N={key:0},V={class:"mn-b-medium radius-medium pd-semi bg-white"},y=e.createElementVNode("h3",{class:"mn-b-regular"},"Подотделы",-1),C={key:0},v={__name:"Department",async setup(w){let s,a;i.useRouter();const n=i.useRoute();return[s,a]=e.withAsyncContext(()=>r.actions.readOne(n.params.department)),await s,a(),(l,q)=>{const c=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",_,[r.state.department?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("section",k,[e.createElementVNode("div",g,[e.createElementVNode("h2",b,e.toDisplayString(r.state.department.profile.name),1),e.createVNode(c,{to:{name:"Department Edit",params:{_id:e.unref(n).params._id,department:e.unref(n).params.department}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"])]),e.createElementVNode("p",{class:"t-transp p-big",innerHTML:r.state.department.description},null,8,E)]),e.createElementVNode("section",f,[B,e.createElementVNode("ul",null,[r.state.department.members.length<1?(e.openBlock(),e.createElementBlock("li",N,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.state.department.members,(t,o)=>(e.openBlock(),e.createBlock(m.default,{class:"br-b br-solid br-grey-transp-25",key:o,user:t.user,photo:t.user.profile.photo,name:t.user.profile.name||t.user.phone||t.user.email||t.user._id,position:t.position,onClick:d=>l.$router.push(`/app/profile/${t.user._id}`)},null,8,["user","photo","name","position","onClick"]))),128))])]),e.createElementVNode("section",V,[y,e.createElementVNode("ul",null,[r.state.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",C,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.state.department.subdepartments,(t,o)=>(e.openBlock(),e.createBlock(u.default,{onClick:d=>l.$router.push(`/app/organization/departments/${t._id}`),key:o,class:"br-b br-solid br-grey-transp-25",department:t},null,8,["onClick","department"]))),128))])])])):e.createCommentVNode("",!0)])}}};exports.default=v;
@@ -1,6 +1,6 @@
1
1
  import { withAsyncContext as b, resolveComponent as k, openBlock as s, createElementBlock as n, createElementVNode as t, toDisplayString as w, createVNode as d, unref as u, withCtx as y, createCommentVNode as a, Fragment as c, renderList as _, createBlock as h } from "vue";
2
2
  import { useRouter as C, useRoute as $ } from "vue-router";
3
- import "../../../../components/Spoiler/Spoiler.vue.js";
3
+ /* empty css */
4
4
  import v from "../blocks/DepartmentSub.vue.js";
5
5
  import x from "../../../users/components/blocks/CardUser.vue.js";
6
6
  import { actions as D, state as r } from "../../store/departments.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const P=require("../../../../components/UploadImage/UploadImage.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");const u=require("../../../../components/Field/Field.vue2.cjs");require("../../../../components/Select/Select.vue2.cjs");const r=require("../../../../components/Checkbox/Checkbox.vue.cjs");require("../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");require("../../../../components/Address/Address.vue2.cjs");require("../../../../components/Loader/Loader.vue.cjs");require("../../../../components/LocationMarker/LocationMarker.vue2.cjs");const f=require("../../../../components/Button/Button.vue2.cjs"),x=require("../../../../components/Popup/Popup.vue.cjs"),h=require("../../../../components/Block/Block.vue.cjs"),B=require("../../../../components/Feed/Feed.vue.cjs"),D=require("../../../icons/navigation/IconDelete.vue.cjs");require("../blocks/EditArray.vue2.cjs");require("../blocks/DepartmentSub.vue2.cjs");const b=require("../../../users/components/blocks/CardUser.vue.cjs"),g=require("../../../globals/store/globals.cjs"),t=require("../../store/departments.cjs"),w=require("../../store/memberships.cjs"),U={class:"for-transition pd-thin w-100"},C={class:"mn-b-thin flex-nowrap flex bg-light pd-medium radius-big"},O={key:0,class:"mn-r-auto"},M={key:1,class:"mn-r-auto"},R={class:"flex-nowrap flex gap-thin pd-thin"},S={class:"cols-2-fit-content"},T={class:"w-100 flex-child-grow-1 flex-child"},z={class:"cols-2 gap-thin"},A={class:"bg-light pd-medium o-hidden radius-big"},F=e.createElementVNode("h3",{class:"mn-b-semi"},"Department Settings",-1),I=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please settings for your department:",-1),L={class:"cols-1 gap-thin"},j={class:"bg-light pd-medium o-hidden radius-big"},G=e.createElementVNode("h3",{class:"mn-b-semi"},"Acessess",-1),H=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please select organization accesses for user in department:",-1),J={class:"cols-1 gap-thin"},K=e.createElementVNode("h4",null,"Gallery",-1),Q=e.createElementVNode("h4",null,"Products",-1),W=e.createElementVNode("h4",null,"Orders",-1),X=e.createElementVNode("h4",null,"Departments",-1),Y={__name:"DepartmentEdit",setup(Z){const N=c.useRouter(),d=c.useRoute();async function V(){e.ref(w.state.memberships),d.params.department&&await t.actions.readOne(d.params.department)}V();const n=e.ref(!1),_=e.ref(null);function y(o){n.value=!0}function i(){n.value=!1,_.value=null}e.ref(!1),e.ref(null);async function k(){d.params.department&&await t.actions.update(d.params._id,t.state.department),d.params.department||await t.actions.create(d.params._id,t.state.department)}function E(){N.push({name:"Organization Members",params:{_id:d.params._id}})}async function q(){confirm("Are you sure you want to delete this department?")&&await t.actions.delete(d.params._id,t.state.department)}function v(o){confirm("Are you sure you want to remove this member?")&&g.actions.delete(t.state.department.members,{_id:o.user._id})}return(o,a)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("header",C,[e.unref(d).params.department?(e.openBlock(),e.createElementBlock("h1",O,"Edit Department")):(e.openBlock(),e.createElementBlock("h1",M,"Create Department")),e.createElementVNode("section",R,[e.unref(d).params.department?(e.openBlock(),e.createBlock(f.default,{key:0,submit:q,callback:o.redirectToDash,class:"bg-red"},{default:e.withCtx(()=>[e.createTextVNode("Delete")]),_:1},8,["callback"])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:k,callback:E,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode("Save")]),_:1})])]),t.state.department.profile?(e.openBlock(),e.createBlock(h.default,{key:0,title:"Profile",class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("div",S,[e.createVNode(P.default,{photo:t.state.department.profile.photo,"onUpdate:photo":a[0]||(a[0]=s=>t.state.department.profile.photo=s),uploadPath:"organizations/"+t.state.department.name+"/avatars",class:"w-8r aspect-1x1 o-hidden mn-r-small radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",T,[e.createVNode(u.default,{field:t.state.department.profile.name,"onUpdate:field":a[1]||(a[1]=s=>t.state.department.profile.name=s),label:"Name",placeholder:"Department Name",class:"mn-b-small bg-white radius-small pd-medium",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(u.default,{field:t.state.department.profile.description,"onUpdate:field":a[2]||(a[2]=s=>t.state.department.profile.description=s),label:"Description",placeholder:"Department description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:o.organizationName},null,8,["field","validation"])])])]),_:1})):e.createCommentVNode("",!0),e.createVNode(h.default,{title:"Team",placeholder:"No members added yet",actions:[{label:"+",function:()=>y()}],class:"cols-1 gap-thin mn-b-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.department.members,(s,l)=>(e.openBlock(),e.createBlock(b.default,{class:"h-4r bg-white pd-thin radius-medium w-100",key:l,user:s.user,photo:s.user.profile.photo,name:s.user.profile.name||s.user.phone||s.user.email||s.user._id,position:s.position,action:{label:{is:D.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>v(s)}},null,8,["user","photo","name","position","action"]))),128))]),_:1},8,["actions"]),e.createVNode(x.default,{title:"Add member",onClosePopup:i,isPopupOpen:n.value,class:"bg-white w-max-30r radius-big pd-big"},{default:e.withCtx(()=>[e.createVNode(B.default,{search:{placeholder:"Search customer...",class:"bg-light mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:s=>w.actions.read(s),state:null},options:{target:e.unref(d).params._id},class:"bg-light pd-medium w-min-20r w-max-40r radius-big h-max-20r o-scroll"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(l,$)=>{var m,p;return e.openBlock(),e.createBlock(b.default,{key:l._id,user:l.user,photo:(m=l.user.profile)==null?void 0:m.photo,name:((p=l.user.profile)==null?void 0:p.name)||l.user.phone||l.user.email,onClick:()=>{g.actions.add(t.state.department.members,{_id:l.user._id,user:l.user,position:"Member"}),i()},class:"h-4r bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"])}),128))]),_:1},8,["store","options"])]),_:1},8,["isPopupOpen"]),e.createElementVNode("div",z,[e.createElementVNode("div",A,[F,I,e.createElementVNode("div",L,[e.createVNode(r.default,{label:"Hidden department",name:"hidden",class:"w-100 mn-r-small bg-white radius-small pd-small","onUpdate:radio":a[3]||(a[3]=s=>t.state.department.hidden=!t.state.department.hidden),radio:t.state.department.hidden},null,8,["radio"])])]),e.createElementVNode("div",j,[G,H,e.createElementVNode("div",J,[K,e.createVNode(r.default,{label:"Read gallery",name:"readProducts",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.gallery.read,"onUpdate:radio":a[4]||(a[4]=s=>t.state.department.accesses.gallery.read=!t.state.department.accesses.gallery.read)},null,8,["radio"]),e.createVNode(r.default,{label:"Edit gallery",name:"editProducts",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.gallery.edit,"onUpdate:radio":a[5]||(a[5]=s=>t.state.department.accesses.gallery.edit=!t.state.department.accesses.gallery.edit)},null,8,["radio"]),e.createVNode(r.default,{label:"Delete gallery",name:"deleteProducts",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.accesses.gallery.delete,"onUpdate:radio":a[6]||(a[6]=s=>t.state.department.accesses.gallery.delete=!t.state.department.accesses.gallery.delete)},null,8,["radio"]),Q,e.createVNode(r.default,{label:"Read products",name:"readProducts",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.products.read,"onUpdate:radio":a[7]||(a[7]=s=>t.state.department.accesses.products.read=!t.state.department.accesses.products.read)},null,8,["radio"]),e.createVNode(r.default,{label:"Edit products",name:"editProducts",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.products.edit,"onUpdate:radio":a[8]||(a[8]=s=>t.state.department.accesses.products.edit=!t.state.department.accesses.products.edit)},null,8,["radio"]),e.createVNode(r.default,{label:"Delete products",name:"deleteProducts",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.accesses.products.delete,"onUpdate:radio":a[9]||(a[9]=s=>t.state.department.accesses.products.delete=!t.state.department.accesses.products.delete)},null,8,["radio"]),W,e.createVNode(r.default,{label:"Read orders",name:"readOrders",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.orders.read,"onUpdate:radio":a[10]||(a[10]=s=>t.state.department.accesses.orders.read=!t.state.department.accesses.orders.read)},null,8,["radio"]),e.createVNode(r.default,{label:"Confirm orders",name:"confirmOrders",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.orders.confirm,"onUpdate:radio":a[11]||(a[11]=s=>t.state.department.accesses.orders.confirm=!t.state.department.accesses.orders.confirm)},null,8,["radio"]),e.createVNode(r.default,{label:"Delete orders",name:"deleteOrders",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.accesses.orders.delete,"onUpdate:radio":a[12]||(a[12]=s=>t.state.department.accesses.orders.delete=!t.state.department.accesses.orders.delete)},null,8,["radio"]),X,e.createVNode(r.default,{label:"Read departments",name:"readDepartments",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.departments.read,"onUpdate:radio":a[13]||(a[13]=s=>t.state.department.accesses.departments.read=!t.state.department.accesses.departments.read)},null,8,["radio"]),e.createVNode(r.default,{label:"Edit departments",name:"editDepartments",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.departments.edit,"onUpdate:radio":a[14]||(a[14]=s=>t.state.department.accesses.departments.edit=!t.state.department.accesses.departments.edit)},null,8,["radio"]),e.createVNode(r.default,{label:"Delete departments",name:"deleteDepartments",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.accesses.departments.delete,"onUpdate:radio":a[15]||(a[15]=s=>t.state.department.accesses.departments.delete=!t.state.department.accesses.departments.delete)},null,8,["radio"])])])])]))}};exports.default=Y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const P=require("../../../../components/UploadImage/UploadImage.vue.cjs");;/* empty css */const u=require("../../../../components/Field/Field.vue2.cjs");;/* empty css */const r=require("../../../../components/Checkbox/Checkbox.vue.cjs");require("../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");;/* empty css */;/* empty css */;/* empty css */const f=require("../../../../components/Button/Button.vue2.cjs"),x=require("../../../../components/Popup/Popup.vue.cjs"),h=require("../../../../components/Block/Block.vue.cjs"),B=require("../../../../components/Feed/Feed.vue.cjs"),D=require("../../../icons/navigation/IconDelete.vue.cjs");;/* empty css */;/* empty css */const b=require("../../../users/components/blocks/CardUser.vue.cjs"),g=require("../../../globals/store/globals.cjs"),t=require("../../store/departments.cjs"),w=require("../../store/memberships.cjs"),U={class:"for-transition pd-thin w-100"},C={class:"mn-b-thin flex-nowrap flex bg-light pd-medium radius-big"},O={key:0,class:"mn-r-auto"},M={key:1,class:"mn-r-auto"},R={class:"flex-nowrap flex gap-thin pd-thin"},S={class:"cols-2-fit-content"},T={class:"w-100 flex-child-grow-1 flex-child"},z={class:"cols-2 gap-thin"},A={class:"bg-light pd-medium o-hidden radius-big"},F=e.createElementVNode("h3",{class:"mn-b-semi"},"Department Settings",-1),I=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please settings for your department:",-1),L={class:"cols-1 gap-thin"},j={class:"bg-light pd-medium o-hidden radius-big"},G=e.createElementVNode("h3",{class:"mn-b-semi"},"Acessess",-1),H=e.createElementVNode("p",{class:"p-medium mn-b-small"},"Please select organization accesses for user in department:",-1),J={class:"cols-1 gap-thin"},K=e.createElementVNode("h4",null,"Gallery",-1),Q=e.createElementVNode("h4",null,"Products",-1),W=e.createElementVNode("h4",null,"Orders",-1),X=e.createElementVNode("h4",null,"Departments",-1),Y={__name:"DepartmentEdit",setup(Z){const N=c.useRouter(),d=c.useRoute();async function V(){e.ref(w.state.memberships),d.params.department&&await t.actions.readOne(d.params.department)}V();const n=e.ref(!1),_=e.ref(null);function y(o){n.value=!0}function i(){n.value=!1,_.value=null}e.ref(!1),e.ref(null);async function k(){d.params.department&&await t.actions.update(d.params._id,t.state.department),d.params.department||await t.actions.create(d.params._id,t.state.department)}function E(){N.push({name:"Organization Members",params:{_id:d.params._id}})}async function q(){confirm("Are you sure you want to delete this department?")&&await t.actions.delete(d.params._id,t.state.department)}function v(o){confirm("Are you sure you want to remove this member?")&&g.actions.delete(t.state.department.members,{_id:o.user._id})}return(o,a)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("header",C,[e.unref(d).params.department?(e.openBlock(),e.createElementBlock("h1",O,"Edit Department")):(e.openBlock(),e.createElementBlock("h1",M,"Create Department")),e.createElementVNode("section",R,[e.unref(d).params.department?(e.openBlock(),e.createBlock(f.default,{key:0,submit:q,callback:o.redirectToDash,class:"bg-red"},{default:e.withCtx(()=>[e.createTextVNode("Delete")]),_:1},8,["callback"])):e.createCommentVNode("",!0),e.createVNode(f.default,{submit:k,callback:E,class:"bg-main"},{default:e.withCtx(()=>[e.createTextVNode("Save")]),_:1})])]),t.state.department.profile?(e.openBlock(),e.createBlock(h.default,{key:0,title:"Profile",class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("div",S,[e.createVNode(P.default,{photo:t.state.department.profile.photo,"onUpdate:photo":a[0]||(a[0]=s=>t.state.department.profile.photo=s),uploadPath:"organizations/"+t.state.department.name+"/avatars",class:"w-8r aspect-1x1 o-hidden mn-r-small radius-extra"},null,8,["photo","uploadPath"]),e.createElementVNode("div",T,[e.createVNode(u.default,{field:t.state.department.profile.name,"onUpdate:field":a[1]||(a[1]=s=>t.state.department.profile.name=s),label:"Name",placeholder:"Department Name",class:"mn-b-small bg-white radius-small pd-medium",validation:o.organizationName},null,8,["field","validation"]),e.createVNode(u.default,{field:t.state.department.profile.description,"onUpdate:field":a[2]||(a[2]=s=>t.state.department.profile.description=s),label:"Description",placeholder:"Department description (max 120 symbols)",class:"bg-white radius-small pd-medium",validation:o.organizationName},null,8,["field","validation"])])])]),_:1})):e.createCommentVNode("",!0),e.createVNode(h.default,{title:"Team",placeholder:"No members added yet",actions:[{label:"+",function:()=>y()}],class:"cols-1 gap-thin mn-b-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.department.members,(s,l)=>(e.openBlock(),e.createBlock(b.default,{class:"h-4r bg-white pd-thin radius-medium w-100",key:l,user:s.user,photo:s.user.profile.photo,name:s.user.profile.name||s.user.phone||s.user.email||s.user._id,position:s.position,action:{label:{is:D.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>v(s)}},null,8,["user","photo","name","position","action"]))),128))]),_:1},8,["actions"]),e.createVNode(x.default,{title:"Add member",onClosePopup:i,isPopupOpen:n.value,class:"bg-white w-max-30r radius-big pd-big"},{default:e.withCtx(()=>[e.createVNode(B.default,{search:{placeholder:"Search customer...",class:"bg-light mn-b-thin"},states:{empty:{title:"No Products Found",description:"Currently, there are no such products available."}},store:{read:s=>w.actions.read(s),state:null},options:{target:e.unref(d).params._id},class:"bg-light pd-medium w-min-20r w-max-40r radius-big h-max-20r o-scroll"},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(l,$)=>{var m,p;return e.openBlock(),e.createBlock(b.default,{key:l._id,user:l.user,photo:(m=l.user.profile)==null?void 0:m.photo,name:((p=l.user.profile)==null?void 0:p.name)||l.user.phone||l.user.email,onClick:()=>{g.actions.add(t.state.department.members,{_id:l.user._id,user:l.user,position:"Member"}),i()},class:"h-4r bg-white pd-thin radius-medium w-100 mn-b-thin"},null,8,["user","photo","name","onClick"])}),128))]),_:1},8,["store","options"])]),_:1},8,["isPopupOpen"]),e.createElementVNode("div",z,[e.createElementVNode("div",A,[F,I,e.createElementVNode("div",L,[e.createVNode(r.default,{label:"Hidden department",name:"hidden",class:"w-100 mn-r-small bg-white radius-small pd-small","onUpdate:radio":a[3]||(a[3]=s=>t.state.department.hidden=!t.state.department.hidden),radio:t.state.department.hidden},null,8,["radio"])])]),e.createElementVNode("div",j,[G,H,e.createElementVNode("div",J,[K,e.createVNode(r.default,{label:"Read gallery",name:"readProducts",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.gallery.read,"onUpdate:radio":a[4]||(a[4]=s=>t.state.department.accesses.gallery.read=!t.state.department.accesses.gallery.read)},null,8,["radio"]),e.createVNode(r.default,{label:"Edit gallery",name:"editProducts",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.gallery.edit,"onUpdate:radio":a[5]||(a[5]=s=>t.state.department.accesses.gallery.edit=!t.state.department.accesses.gallery.edit)},null,8,["radio"]),e.createVNode(r.default,{label:"Delete gallery",name:"deleteProducts",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.accesses.gallery.delete,"onUpdate:radio":a[6]||(a[6]=s=>t.state.department.accesses.gallery.delete=!t.state.department.accesses.gallery.delete)},null,8,["radio"]),Q,e.createVNode(r.default,{label:"Read products",name:"readProducts",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.products.read,"onUpdate:radio":a[7]||(a[7]=s=>t.state.department.accesses.products.read=!t.state.department.accesses.products.read)},null,8,["radio"]),e.createVNode(r.default,{label:"Edit products",name:"editProducts",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.products.edit,"onUpdate:radio":a[8]||(a[8]=s=>t.state.department.accesses.products.edit=!t.state.department.accesses.products.edit)},null,8,["radio"]),e.createVNode(r.default,{label:"Delete products",name:"deleteProducts",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.accesses.products.delete,"onUpdate:radio":a[9]||(a[9]=s=>t.state.department.accesses.products.delete=!t.state.department.accesses.products.delete)},null,8,["radio"]),W,e.createVNode(r.default,{label:"Read orders",name:"readOrders",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.orders.read,"onUpdate:radio":a[10]||(a[10]=s=>t.state.department.accesses.orders.read=!t.state.department.accesses.orders.read)},null,8,["radio"]),e.createVNode(r.default,{label:"Confirm orders",name:"confirmOrders",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.orders.confirm,"onUpdate:radio":a[11]||(a[11]=s=>t.state.department.accesses.orders.confirm=!t.state.department.accesses.orders.confirm)},null,8,["radio"]),e.createVNode(r.default,{label:"Delete orders",name:"deleteOrders",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.accesses.orders.delete,"onUpdate:radio":a[12]||(a[12]=s=>t.state.department.accesses.orders.delete=!t.state.department.accesses.orders.delete)},null,8,["radio"]),X,e.createVNode(r.default,{label:"Read departments",name:"readDepartments",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.departments.read,"onUpdate:radio":a[13]||(a[13]=s=>t.state.department.accesses.departments.read=!t.state.department.accesses.departments.read)},null,8,["radio"]),e.createVNode(r.default,{label:"Edit departments",name:"editDepartments",class:"w-100 mn-r-small bg-white radius-small pd-small",radio:t.state.department.accesses.departments.edit,"onUpdate:radio":a[14]||(a[14]=s=>t.state.department.accesses.departments.edit=!t.state.department.accesses.departments.edit)},null,8,["radio"]),e.createVNode(r.default,{label:"Delete departments",name:"deleteDepartments",class:"w-100 bg-white radius-small pd-small",radio:t.state.department.accesses.departments.delete,"onUpdate:radio":a[15]||(a[15]=s=>t.state.department.accesses.departments.delete=!t.state.department.accesses.departments.delete)},null,8,["radio"])])])])]))}};exports.default=Y;
@@ -3,23 +3,23 @@ import { useRouter as T, useRoute as V } from "vue-router";
3
3
  import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
4
4
  import "vue-i18n";
5
5
  import "../../../globals/localization/vue-i18n.js";
6
- import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
6
+ /* empty css */
7
7
  import B from "../../../../components/UploadImage/UploadImage.vue.js";
8
- import "../../../../components/Tab/Tab.vue.js";
8
+ /* empty css */
9
9
  import U from "../../../../components/Field/Field.vue2.js";
10
- import "../../../../components/Select/Select.vue2.js";
10
+ /* empty css */
11
11
  import d from "../../../../components/Checkbox/Checkbox.vue.js";
12
12
  import "../../../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
13
- import "../../../../components/Address/Address.vue2.js";
14
- import "../../../../components/Loader/Loader.vue.js";
15
- import "../../../../components/LocationMarker/LocationMarker.vue2.js";
13
+ /* empty css */
14
+ /* empty css */
15
+ /* empty css */
16
16
  import k from "../../../../components/Button/Button.vue2.js";
17
17
  import F from "../../../../components/Popup/Popup.vue.js";
18
18
  import x from "../../../../components/Block/Block.vue.js";
19
19
  import G from "../../../../components/Feed/Feed.vue.js";
20
20
  import H from "../../../icons/navigation/IconDelete.vue.js";
21
- import "../blocks/EditArray.vue2.js";
22
- import "../blocks/DepartmentSub.vue2.js";
21
+ /* empty css */
22
+ /* empty css */
23
23
  import $ from "../../../users/components/blocks/CardUser.vue.js";
24
24
  import { actions as N } from "../../../globals/store/globals.js";
25
25
  import { state as e, actions as f } from "../../store/departments.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("vue-router"),p=require("../../../../components/Feed/Feed.vue.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Tooltip/Tooltip.vue2.cjs");const q=require("../../../../components/Popup/Popup.vue.cjs"),M=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),N=require("../sections/MembersAdd.vue.cjs");require("../../../../components/Menu/Menu.vue2.cjs");require("../../../../components/Menu/MenuItem.vue.cjs");const g=require("../../../users/components/blocks/CardUser.vue.cjs"),x=require("../blocks/CardDepartment.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),m=require("../../../auth/store/auth.cjs"),u=require("../../store/invites.cjs"),f=require("../../store/memberships.cjs"),k=require("../../store/organizations.cjs"),b=require("../../store/departments.cjs"),z={class:"pd-thin"},P={key:2,class:"cols-1 gap-thin"},V={key:3},I={__name:"Members",setup(A){const o=v.useRoute();v.useRouter();const d=e.ref(null),s=e.ref("members"),c=e.ref(!1);function w(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{d.value=(await k.actions.read({_id:o.params._id,user:m.state.user._id}))[0]}),e.computed(()=>{const a=b.state.departments,n=a.flatMap(i=>i.subdepartments.map(r=>r._id));return a.filter(i=>!n.includes(i._id))});async function y(a){await u.actions.create({owner:{type:"Organization",target:d.value._id},creator:{type:"User",target:m.state.user._id},invites:a}),h()}async function B(a,n){confirm("Confirm remove of member")==!0&&(f.state.memberships.splice(a,1),await f.actions.delete(n._id))}async function C(a,n){confirm("Confirm remove of member")==!0&&(u.state.invites.splice(a,1),await u.actions.delete(n._id))}return(a,n)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(M.default,{title:"Members","onUpdate:tabs_current":n[0]||(n[0]=r=>s.value=r),tabs_current:s.value,tabs:[{name:`Members (${k.state.current.numberOfMembers||0})`,value:"members"},{name:"Departments",value:"departments"},{name:"Invites",value:"invites"}],actions:[{method:w,label:"Invite members"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","tabs","actions"]),e.createVNode(q.default,{title:"Add members",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createVNode(N.default,{text:"Please enter your email or phone number to send an invitation link:",organization:d.value,onSendInvite:y},null,8,["organization"])]),_:1},8,["isPopupOpen"]),s.value==="departments"?(e.openBlock(),e.createBlock(p.default,{key:0,states:{empty:{title:"No Departments Found",description:"Currently, there are no departments available.",action:"Add department",callback:()=>a.$router.push(`/organizations/${e.unref(o).params._id}/departments/create`)}},store:{read:r=>b.actions.read(r),state:null},options:{organization:e.unref(o).params._id,user:m.state.user._id}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(x.default,{key:l,department:t,organization:e.unref(o).params._id,class:"radius-semi bg-light pos-relative mn-b-thin"},null,8,["department","organization"]))),128))]),_:1},8,["states","store","options"])):e.createCommentVNode("",!0),s.value==="departments"&&b.state.departments.length>0?(e.openBlock(),e.createBlock(i,{key:1,to:{path:`/organizations/${e.unref(o).params._id}/departments/create`},class:"d-block flex-center flex uppercase t-semi bg-main w-100 pd-small radius-extra"},{default:e.withCtx(()=>[e.createTextVNode(" Add department ")]),_:1},8,["to"])):e.createCommentVNode("",!0),s.value==="members"?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Members Found",description:"Currently, there are no members."}},store:{read:r=>f.actions.read(r)},options:{target:e.unref(o).params._id,role:["member","owner"]},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(g.default,{key:l,user:t,_id:t.user._id,photo:t.user.profile.photo,phone:t.user.phone,email:t.user.email,name:t.user.profile.name||"No name",role:t.label||t.role,onClick:F=>a.$router.push(`/profile/${t.user._id}`),action:t.role!=="owner"?{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>B(l,t)}:null,class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["user","_id","photo","phone","email","name","role","onClick","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0),s.value==="invites"?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Invites Found",description:"Currently, there are no members."}},store:{read:r=>u.actions.read(r)},options:{owner:e.unref(o).params._id},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,t=>(e.openBlock(),e.createBlock(g.default,{key:a.index,user:{type:"invite"},name:t.email||t.phone,role:t.status,action:{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>C(a.index,t)},class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["name","role","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)])}}};exports.default=I;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("vue-router"),p=require("../../../../components/Feed/Feed.vue.cjs");;/* empty css */;/* empty css */const q=require("../../../../components/Popup/Popup.vue.cjs"),M=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),N=require("../sections/MembersAdd.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");const g=require("../../../users/components/blocks/CardUser.vue.cjs"),x=require("../blocks/CardDepartment.vue.cjs"),_=require("../../../icons/navigation/IconDelete.vue.cjs"),m=require("../../../auth/store/auth.cjs"),u=require("../../store/invites.cjs"),f=require("../../store/memberships.cjs"),k=require("../../store/organizations.cjs"),b=require("../../store/departments.cjs"),z={class:"pd-thin"},P={key:2,class:"cols-1 gap-thin"},V={key:3},I={__name:"Members",setup(A){const o=v.useRoute();v.useRouter();const d=e.ref(null),s=e.ref("members"),c=e.ref(!1);function w(){c.value=!0}function h(){c.value=!1}e.onMounted(async()=>{d.value=(await k.actions.read({_id:o.params._id,user:m.state.user._id}))[0]}),e.computed(()=>{const a=b.state.departments,n=a.flatMap(i=>i.subdepartments.map(r=>r._id));return a.filter(i=>!n.includes(i._id))});async function y(a){await u.actions.create({owner:{type:"Organization",target:d.value._id},creator:{type:"User",target:m.state.user._id},invites:a}),h()}async function B(a,n){confirm("Confirm remove of member")==!0&&(f.state.memberships.splice(a,1),await f.actions.delete(n._id))}async function C(a,n){confirm("Confirm remove of member")==!0&&(u.state.invites.splice(a,1),await u.actions.delete(n._id))}return(a,n)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(M.default,{title:"Members","onUpdate:tabs_current":n[0]||(n[0]=r=>s.value=r),tabs_current:s.value,tabs:[{name:`Members (${k.state.current.numberOfMembers||0})`,value:"members"},{name:"Departments",value:"departments"},{name:"Invites",value:"invites"}],actions:[{method:w,label:"Invite members"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","tabs","actions"]),e.createVNode(q.default,{title:"Add members",onClosePopup:h,isPopupOpen:c.value,class:"bg-white w-min-30r w-max-30r radius-big pd-medium"},{default:e.withCtx(()=>[e.createVNode(N.default,{text:"Please enter your email or phone number to send an invitation link:",organization:d.value,onSendInvite:y},null,8,["organization"])]),_:1},8,["isPopupOpen"]),s.value==="departments"?(e.openBlock(),e.createBlock(p.default,{key:0,states:{empty:{title:"No Departments Found",description:"Currently, there are no departments available.",action:"Add department",callback:()=>a.$router.push(`/organizations/${e.unref(o).params._id}/departments/create`)}},store:{read:r=>b.actions.read(r),state:null},options:{organization:e.unref(o).params._id,user:m.state.user._id}},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(x.default,{key:l,department:t,organization:e.unref(o).params._id,class:"radius-semi bg-light pos-relative mn-b-thin"},null,8,["department","organization"]))),128))]),_:1},8,["states","store","options"])):e.createCommentVNode("",!0),s.value==="departments"&&b.state.departments.length>0?(e.openBlock(),e.createBlock(i,{key:1,to:{path:`/organizations/${e.unref(o).params._id}/departments/create`},class:"d-block flex-center flex uppercase t-semi bg-main w-100 pd-small radius-extra"},{default:e.withCtx(()=>[e.createTextVNode(" Add department ")]),_:1},8,["to"])):e.createCommentVNode("",!0),s.value==="members"?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Members Found",description:"Currently, there are no members."}},store:{read:r=>f.actions.read(r)},options:{target:e.unref(o).params._id,role:["member","owner"]},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,(t,l)=>(e.openBlock(),e.createBlock(g.default,{key:l,user:t,_id:t.user._id,photo:t.user.profile.photo,phone:t.user.phone,email:t.user.email,name:t.user.profile.name||"No name",role:t.label||t.role,onClick:F=>a.$router.push(`/profile/${t.user._id}`),action:t.role!=="owner"?{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>B(l,t)}:null,class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["user","_id","photo","phone","email","name","role","onClick","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0),s.value==="invites"?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(p.default,{search:!0,states:{empty:{title:"No Invites Found",description:"Currently, there are no members."}},store:{read:r=>u.actions.read(r)},options:{owner:e.unref(o).params._id},class:"gap-thin cols-1"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,t=>(e.openBlock(),e.createBlock(g.default,{key:a.index,user:{type:"invite"},name:t.email||t.phone,role:t.status,action:{label:{is:_.default,props:{class:"i-medium",fill:"rgb(var(--white)"}},method:()=>C(a.index,t)},class:"h-4r w-100 bg-light radius-big flex-nowrap flex pd-medium"},null,8,["name","role","action"]))),128))]),_:1},8,["store","options"])])):e.createCommentVNode("",!0)])}}};exports.default=I;
@@ -1,12 +1,12 @@
1
1
  import { ref as h, onMounted as O, computed as D, resolveComponent as F, openBlock as a, createElementBlock as i, createVNode as p, withCtx as u, createBlock as d, unref as l, Fragment as v, renderList as g, createCommentVNode as f, createTextVNode as B } from "vue";
2
2
  import { useRoute as S, useRouter as V } from "vue-router";
3
3
  import y from "../../../../components/Feed/Feed.vue.js";
4
- import "../../../../components/Tab/Tab.vue.js";
5
- import "../../../../components/Tooltip/Tooltip.vue2.js";
4
+ /* empty css */
5
+ /* empty css */
6
6
  import R from "../../../../components/Popup/Popup.vue.js";
7
7
  import U from "../../../globals/components/sections/SectionPageTitle.vue.js";
8
8
  import E from "../sections/MembersAdd.vue.js";
9
- import "../../../../components/Menu/Menu.vue2.js";
9
+ /* empty css */
10
10
  import "../../../../components/Menu/MenuItem.vue.js";
11
11
  import C from "../../../users/components/blocks/CardUser.vue.js";
12
12
  import L from "../blocks/CardDepartment.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs");require("../../../../components/Menu/Menu.vue2.cjs");require("../../../../components/Menu/MenuItem.vue.cjs");require("../blocks/DepartmentSub.vue2.cjs");const v=require("../../../events/components/sections/Feed.vue.cjs"),h=require("../../../community/components/sections/Feed.vue.cjs"),g=require("../../../spots/components/blocks/CardSpot.vue.cjs"),q=require("../sections/DetailsTab.vue.cjs"),w=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),a=require("../../store/organizations.cjs"),C=require("../../store/memberships.cjs");require("../../store/departments.cjs");const N=require("../../../spots/store/spots.cjs");require("./Organization.vue2.cjs");const V={key:0,class:"pd-thin for-transition w-100"},B={class:"pos-relative"},y={key:0},x={__name:"Organization",setup(z){const c=d.useRouter(),t=d.useRoute();let m=t.query.tab?t.query.tab:"products";const i=e.ref(null);e.onMounted(async()=>{i.value=await a.actions.read({_id:t.params._id,user:o.state.user._id}),await C.actions.read({target:t.params._id})});const r=e.ref(m);return t.query.tab=r.value,e.watch(r,l=>{c.replace({query:null})}),(l,n)=>{const u=e.resolveComponent("router-link");return i.value?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(q.default,{organization:a.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(f.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=s=>r.value=s),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",B,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="events"?(e.openBlock(),e.createBlock(v.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),r.value==="products"&&o.state.user._id===a.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="products"?(e.openBlock(),e.createBlock(w.default,{key:0,organization:a.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(b.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:s=>N.actions.read(e.unref(t).params._id),state:a.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(p,_)=>(e.openBlock(),e.createBlock(g.default,{key:_,spot:p,organization:a.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===a.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=s=>l.$router.push(`/spots/${a.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("vue-router");require("vue-i18n");require("../../../globals/localization/vue-i18n.cjs");;/* empty css */const f=require("../../../../components/Tab/Tab.vue2.cjs"),k=require("../../../../components/Block/Block.vue.cjs"),b=require("../../../../components/Feed/Feed.vue.cjs");;/* empty css */require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const v=require("../../../events/components/sections/Feed.vue.cjs"),h=require("../../../community/components/sections/Feed.vue.cjs"),g=require("../../../spots/components/blocks/CardSpot.vue.cjs"),q=,/* empty css */w=require("../../../products/components/pages/Products.vue.cjs"),o=require("../../../auth/store/auth.cjs"),a=require("../../store/organizations.cjs"),C=require("../../store/memberships.cjs");require("../../store/departments.cjs");const N=require("../../../spots/store/spots.cjs");;/* empty css */const V={key:0,class:"pd-thin for-transition w-100"},B={class:"pos-relative"},y={key:0},x={__name:"Organization",setup(z){const c=d.useRouter(),t=d.useRoute();let m=t.query.tab?t.query.tab:"products";const i=e.ref(null);e.onMounted(async()=>{i.value=await a.actions.read({_id:t.params._id,user:o.state.user._id}),await C.actions.read({target:t.params._id})});const r=e.ref(m);return t.query.tab=r.value,e.watch(r,l=>{c.replace({query:null})}),(l,n)=>{const u=e.resolveComponent("router-link");return i.value?(e.openBlock(),e.createElementBlock("div",V,[e.createVNode(q.default,{organization:a.state.current,user:o.state.user,class:"mn-b-semi"},null,8,["organization","user"]),e.createVNode(f.default,{selected:r.value,"onUpdate:selected":n[0]||(n[0]=s=>r.value=s),tabs:[{name:"Community",value:"community"},{name:"Menu",value:"products"},{name:"Events",value:"events"},{name:"Spots",value:"spots"}],class:"mn-b-small o-hidden h5 radius-big bg-light"},null,8,["selected"]),e.createElementVNode("div",B,[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="community"?(e.openBlock(),e.createBlock(h.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="events"?(e.openBlock(),e.createBlock(v.default,{key:0,user:o.state.user._id,owner:e.unref(t).params._id,sortOrder:"desc",sortParam:"date.start"},null,8,["user","owner"])):e.createCommentVNode("",!0)]),_:1}),r.value==="products"&&o.state.user._id===a.state.current.owner?(e.openBlock(),e.createBlock(k.default,{key:0,class:"flex-nowrap gap-thin mn-b-small flex"},{default:e.withCtx(()=>[e.createVNode(u,{class:"bg-black t-white uppercase t-semi pd-thin radius-extra",to:{name:"ProductAdd",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Add Product ")]),_:1},8,["to"]),e.createVNode(u,{class:"uppercase t-semi pd-thin radius-extra",to:{name:"Leftovers",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Change Invetory ")]),_:1},8,["to"]),e.createVNode(u,{class:"d-block mn-l-auto uppercase t-semi bg-white pd-thin radius-extra",to:{name:"Backoffice",params:{_id:e.unref(t).params._id}}},{default:e.withCtx(()=>[e.createTextVNode(" Go to Backoffice ")]),_:1},8,["to"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="products"?(e.openBlock(),e.createBlock(w.default,{key:0,organization:a.state.current},null,8,["organization"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[r.value==="spots"?(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(b.default,{states:{empty:{title:"No Spots Found",description:"Currently, there are no spots available."}},store:{read:s=>N.actions.read(e.unref(t).params._id),state:a.state},options:{user:o.state.user._id,sort:"numberOfMemberships",contain:["blogposts"],limit:10}},{default:e.withCtx(({items:s})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,(p,_)=>(e.openBlock(),e.createBlock(g.default,{key:_,spot:p,organization:a.state.current,class:"radius-big bg-light mn-b-thin"},null,8,["spot","organization"]))),128))]),_:1},8,["store","options"]),o.state.user._id===a.state.current.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[1]||(n[1]=s=>l.$router.push(`/spots/${a.state.current._id}/spots/create`)),class:"mn-b-thin bg-main button w-100"}," Add spot ")):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})])])):e.createCommentVNode("",!0)}}};exports.default=x;