@ozdao/prometheus-framework 0.2.81 → 0.2.82

Sign up to get free protection for your applications and to get access to all the features.
Files changed (327) hide show
  1. package/dist/auth.server.js +1 -1
  2. package/dist/auth.server.mjs +1 -1
  3. package/dist/community.server.js +3 -3
  4. package/dist/community.server.mjs +3 -3
  5. package/dist/credentials.schema-CDZCKfEI.mjs +106 -0
  6. package/dist/credentials.schema-CfhPcsuI.js +105 -0
  7. package/dist/events.server.js +4 -15
  8. package/dist/events.server.mjs +3 -14
  9. package/dist/files.server.js +1 -1
  10. package/dist/files.server.mjs +1 -1
  11. package/dist/gallery.server.js +1 -1
  12. package/dist/gallery.server.mjs +1 -1
  13. package/dist/index-B6a1mPgp.mjs +217 -0
  14. package/dist/index-BCCiEK_u.js +216 -0
  15. package/dist/main-8N2Jmsuk.js +91 -0
  16. package/dist/main-CkeuHuCY.mjs +13619 -0
  17. package/dist/main.css +1 -1
  18. package/dist/metadata.schema-Cu_mPkjE.js +77 -0
  19. package/dist/metadata.schema-cbFgazeK.mjs +78 -0
  20. package/dist/middlewares.server.js +1 -1
  21. package/dist/middlewares.server.mjs +1 -1
  22. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -0
  23. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +238 -0
  24. package/dist/organizations.server.js +297 -134
  25. package/dist/organizations.server.mjs +295 -132
  26. package/dist/products.server.js +2 -2
  27. package/dist/products.server.mjs +2 -2
  28. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +33 -24
  30. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Block/Block.vue.js +23 -20
  32. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
  34. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +102 -1
  36. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +71 -60
  38. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
  40. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
  42. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  44. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +325 -340
  46. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +2 -2
  48. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +53 -44
  50. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  51. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +41 -40
  52. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  53. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +37 -31
  54. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +18 -19
  56. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -36
  58. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  59. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +36 -1
  60. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  62. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  63. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  64. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  66. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  70. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +30 -30
  72. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  74. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  76. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  78. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/auth/store/auth.js +26 -26
  80. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +78 -103
  82. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  84. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  86. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +15 -15
  88. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +4 -4
  92. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  98. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  100. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +29 -27
  102. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  104. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
  106. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  110. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +33 -26
  112. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +6 -3
  114. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -0
  115. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +70 -0
  116. package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.cjs +1 -0
  117. package/dist/prometheus-framework/src/modules/icons/entities/IconGallery.vue.js +28 -0
  118. package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.cjs +1 -0
  119. package/dist/prometheus-framework/src/modules/icons/entities/IconLeftovers.vue.js +30 -0
  120. package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.cjs +1 -0
  121. package/dist/prometheus-framework/src/modules/icons/entities/IconOrders.vue.js +35 -0
  122. package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.cjs +1 -0
  123. package/dist/prometheus-framework/src/modules/icons/entities/IconProducts.vue.js +28 -0
  124. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +63 -86
  126. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  128. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +174 -114
  130. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +40 -40
  132. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -0
  133. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +141 -0
  134. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +1 -1
  136. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -0
  137. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +77 -0
  138. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +46 -35
  140. package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -0
  141. package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +5 -0
  142. package/dist/prometheus-framework/src/modules/orders/store/models/customer.cjs +1 -0
  143. package/dist/prometheus-framework/src/modules/orders/store/models/customer.js +30 -0
  144. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/orders/store/orders.js +24 -25
  146. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +16 -16
  148. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  150. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +38 -49
  152. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +6 -6
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +161 -138
  158. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +198 -78
  160. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +82 -125
  162. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  164. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  166. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  168. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +59 -70
  170. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  172. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +34 -36
  174. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +38 -18
  176. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +34 -35
  178. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  180. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +41 -21
  182. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  184. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  188. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  190. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  192. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  194. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  195. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  196. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  197. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +3 -3
  198. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  199. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  200. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  202. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  203. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  204. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +24 -26
  206. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -0
  207. package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +78 -0
  208. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  210. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  212. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  214. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  216. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/users/store/users.js +13 -14
  218. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  220. package/dist/prometheus-framework.cjs.js +1 -1
  221. package/dist/prometheus-framework.es.js +1 -1
  222. package/dist/queryProcessor-BJdKh0Ow.mjs +162 -0
  223. package/dist/queryProcessor-DRMo_GWK.js +161 -0
  224. package/dist/reports.server.js +1 -1
  225. package/dist/reports.server.mjs +1 -1
  226. package/dist/style.css +1 -1
  227. package/dist/users.server.js +69 -38
  228. package/dist/users.server.mjs +67 -36
  229. package/dist/wallet.server.js +2 -2
  230. package/dist/wallet.server.mjs +2 -2
  231. package/dist/web-CtVocufd.js +1 -0
  232. package/dist/web-DNq1tHCE.mjs +54 -0
  233. package/package.json +1 -1
  234. package/src/components/Address/Address.vue +13 -2
  235. package/src/components/Block/Block.vue +3 -2
  236. package/src/components/Button/Button.vue +9 -12
  237. package/src/components/Feed/Feed.vue +28 -6
  238. package/src/components/FieldPhone/FieldPhone.vue +592 -558
  239. package/src/components/LocationMarker/LocationMarker.vue +26 -22
  240. package/src/components/Popup/Popup.vue +22 -23
  241. package/src/components/Select/Select.vue +43 -32
  242. package/src/components/Slider/Slider.vue +3 -4
  243. package/src/modules/auth/components/pages/Invite.vue +7 -7
  244. package/src/modules/auth/store/auth.js +1 -1
  245. package/src/modules/backoffice/components/pages/Dashboard.vue +44 -29
  246. package/src/modules/community/components/sections/HotPosts.vue +1 -1
  247. package/src/modules/events/components/blocks/CardEvent.vue +4 -3
  248. package/src/modules/events/components/pages/Events.vue +23 -6
  249. package/src/modules/globals/components/sections/SectionPageTitle.vue +19 -7
  250. package/src/modules/globals/controllers/utils/queryProcessor.js +21 -7
  251. package/src/modules/globals/localization/vue-i18n.js +3 -0
  252. package/src/modules/globals/models/credentials.schema.js +7 -0
  253. package/src/modules/globals/models/metadata.schema.js +17 -0
  254. package/src/modules/globals/models/profile.schema.js +23 -0
  255. package/src/modules/globals/models/socials.schema.js +22 -0
  256. package/src/modules/globals/router/routerGuards.js +1 -0
  257. package/src/modules/globals/services/globals.cashe.js +26 -0
  258. package/src/modules/globals/services/globals.crud.js +115 -0
  259. package/src/modules/globals/services/globals.logger.js +41 -0
  260. package/src/modules/globals/services/globals.store.js +114 -0
  261. package/src/modules/icons/entities/IconGallery.vue +14 -0
  262. package/src/modules/icons/entities/IconLeftovers.vue +14 -0
  263. package/src/modules/icons/entities/IconOrders.vue +15 -0
  264. package/src/modules/icons/entities/IconProducts.vue +14 -0
  265. package/src/modules/landing/components/sections/HeroSection.vue +1 -1
  266. package/src/modules/landing/components/sections/MobileApp.vue +4 -4
  267. package/src/modules/landing/router/landing.js +1 -1
  268. package/src/modules/marketplace/components/sections/Filters.vue +3 -3
  269. package/src/modules/middlewares/server/accessors/AccessController.js +33 -0
  270. package/src/modules/middlewares/server/accessors/ReadDepartments.js +101 -0
  271. package/src/modules/middlewares/server/verifyAccesses.js +33 -0
  272. package/src/modules/middlewares/server/verifyInvites.js +4 -4
  273. package/src/modules/orders/components/pages/OrderCreate.vue +2 -2
  274. package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +105 -68
  275. package/src/modules/orders/components/pages/Orders.vue +2 -2
  276. package/src/modules/orders/components/sections/FormAddCustomer.vue +152 -0
  277. package/src/modules/orders/components/sections/FormCustomerDetails.vue +67 -0
  278. package/src/modules/orders/components/sections/FormDelivery.vue +17 -3
  279. package/src/modules/orders/controllers/applications.controller.js +2 -0
  280. package/src/modules/orders/controllers/orders.controller.js +77 -52
  281. package/src/modules/orders/models/customer.model.js +54 -18
  282. package/src/modules/orders/models/order.model.js +1 -1
  283. package/src/modules/orders/orders.client.js +51 -51
  284. package/src/modules/orders/orders.server.js +32 -12
  285. package/src/modules/orders/router/orders.router.js +36 -41
  286. package/src/modules/orders/routes/orders.routes.js +3 -21
  287. package/src/modules/orders/store/customers.store.js +5 -0
  288. package/src/modules/orders/store/models/customer.js +29 -0
  289. package/src/modules/orders/store/orders.js +14 -20
  290. package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
  291. package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
  292. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +1 -12
  293. package/src/modules/organizations/components/pages/Department.vue +1 -1
  294. package/src/modules/organizations/components/pages/DepartmentEdit.vue +72 -48
  295. package/src/modules/organizations/components/pages/Members.vue +178 -64
  296. package/src/modules/organizations/components/pages/Organization.vue +1 -41
  297. package/src/modules/organizations/components/sections/MembersAdd.vue +44 -52
  298. package/src/modules/organizations/controllers/departments.controller.js +2 -4
  299. package/src/modules/organizations/controllers/invites.controller.js +24 -23
  300. package/src/modules/organizations/controllers/organizations.controller.js +1 -1
  301. package/src/modules/organizations/models/department.model.js +52 -2
  302. package/src/modules/organizations/models/invite.model.js +29 -32
  303. package/src/modules/organizations/models/membership.model.js +2 -0
  304. package/src/modules/organizations/models/organization.model.js +2 -1
  305. package/src/modules/organizations/organizations.client.js +0 -2
  306. package/src/modules/organizations/routes/departments.routes.js +18 -7
  307. package/src/modules/organizations/routes/invites.routes.js +2 -2
  308. package/src/modules/organizations/store/departments.js +22 -1
  309. package/src/modules/organizations/store/invites.js +74 -90
  310. package/src/modules/products/components/blocks/CardProduct.vue +24 -0
  311. package/src/modules/products/components/pages/Products.vue +1 -1
  312. package/src/modules/reports/components/sections/FormReport.vue +40 -40
  313. package/src/modules/spots/components/pages/Spot.vue +1 -1
  314. package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
  315. package/src/modules/users/components/blocks/CardUser.vue +85 -0
  316. package/src/modules/users/controllers/users.controller.js +36 -13
  317. package/src/modules/users/middlewares/visitor.logger.js +66 -0
  318. package/src/modules/users/models/request.model.js +18 -0
  319. package/src/modules/users/models/user.model.js +26 -55
  320. package/src/modules/users/models/visitor.model.js +14 -0
  321. package/src/modules/users/store/users.js +2 -11
  322. package/src/modules/wallet/controllers/routes/payments.routes.js +2 -0
  323. package/src/components/FieldPhone/FieldPhone(script-setup).vue +0 -1646
  324. package/src/components/FieldPhone/FieldPhone2.vue +0 -671
  325. package/src/modules/orders/components/sections/FormClientDetails.vue +0 -61
  326. package/src/modules/organizations/components/blocks/User.vue +0 -69
  327. /package/src/modules/backoffice/components/admin/{User.vue → UserEdit.vue} +0 -0
@@ -1,74 +1,80 @@
1
- import { computed as D, ref as b, onMounted as I, openBlock as n, createElementBlock as u, createVNode as s, withCtx as o, createElementVNode as t, createTextVNode as S, unref as x, Fragment as P, renderList as y, createBlock as l, createCommentVNode as h, toDisplayString as C } from "vue";
2
- import { useRoute as T, useRouter as q } from "vue-router";
3
- import z from "../../../../components/Feed/Feed.vue.js";
4
- import "../../../../components/Field/Field.vue2.js";
5
- import E from "../../../../components/Button/Button.vue.js";
6
- import k from "../../../../components/Popup/Popup.vue2.js";
7
- import c from "../../../../components/Block/Block.vue.js";
8
- import v from "../blocks/CardOrderItem.vue.js";
1
+ import { computed as I, ref as d, onMounted as T, openBlock as r, createElementBlock as c, createVNode as a, withCtx as s, createElementVNode as u, createTextVNode as q, unref as f, Fragment as v, renderList as C, createBlock as n, createCommentVNode as m, normalizeClass as E, toDisplayString as x } from "vue";
2
+ import { useRoute as L, useRouter as M } from "vue-router";
3
+ import "../../../../components/Field/Field.vue.js";
4
+ import U from "../../../../components/Button/Button.vue2.js";
5
+ import j from "../../../../components/Tab/Tab.vue2.js";
6
+ import $ from "../../../../components/Popup/Popup.vue2.js";
7
+ import _ from "../../../../components/Block/Block.vue.js";
8
+ import O from "../../../../components/Feed/Feed.vue.js";
9
+ import N from "../blocks/CardOrderItem.vue.js";
9
10
  import "../../../../components/Select/Select.vue.js";
10
11
  import "../../../../components/SelectMulti/SelectMulti.vue2.js";
11
- import F from "../sections/FormClientDetails.vue.js";
12
- import L from "../sections/FormDelivery.vue.js";
13
- import M from "../sections/FormPayment.vue.js";
14
- import { state as j } from "../../../auth/store/auth.js";
15
- import { actions as m } from "../../../globals/store/globals.js";
16
- import { state as e, actions as G } from "../../store/orders.js";
17
- import { actions as H } from "../../../products/store/products.js";
12
+ import B from "../../../users/components/blocks/CardUser.vue.js";
13
+ import G from "../sections/FormAddCustomer.vue.js";
14
+ import H from "../sections/FormDelivery.vue.js";
15
+ import J from "../sections/FormPayment.vue.js";
16
+ import { actions as h } from "../../../globals/store/globals.js";
17
+ import { state as K } from "../../../auth/store/auth.js";
18
+ import { state as e, mutations as Q, actions as W } from "../../store/orders.js";
19
+ import { actions as X } from "../../../products/store/products.js";
20
+ import Y from "../../store/customers.store.js";
18
21
  import "./OrderCreateBackoffice.vue2.js";
19
- const J = { class: "flex-v-center flex-nowrap flex" }, K = /* @__PURE__ */ t("h2", { class: "mn-r-auto" }, "Create Order", -1), Q = /* @__PURE__ */ t("h3", { class: "mn-b-small" }, "Add to order", -1), U = { class: "bg-grey mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, W = {
22
+ const Z = { class: "h-100 flex flex-column pd-thin" }, ee = { class: "flex-v-center flex-nowrap flex" }, te = /* @__PURE__ */ u("h2", { class: "mn-r-auto" }, "Create Order", -1), re = /* @__PURE__ */ u("h3", { class: "mn-b-small" }, "Add to order", -1), oe = { class: "h-100 bg-grey mn-b-thin o-scroll pd-medium radius-big" }, se = {
20
23
  key: 0,
21
24
  class: "w-100"
22
- }, X = { class: "flex-nowrap flex" }, Y = /* @__PURE__ */ t("button", { class: "w-100 bg-main pd-small flex-center flex uppercase t-medium" }, "Select", -1), Z = /* @__PURE__ */ t("h3", { class: "mn-b-small" }, "Add New Client", -1), ee = { class: "h3 flex" }, te = /* @__PURE__ */ t("span", { class: "mn-r-auto t-transp" }, "In total", -1), ye = {
25
+ }, ne = { class: "h3 flex" }, ae = /* @__PURE__ */ u("span", { class: "mn-r-auto t-transp" }, "In total", -1), Be = {
23
26
  __name: "OrderCreateBackoffice",
24
- setup(re) {
25
- const d = T(), $ = q();
26
- let O = D(() => Number(e.current.positions.reduce((_, i) => _ + i.price * i.quantity, 0)));
27
- const p = b(!1);
28
- function N() {
29
- p.value = !0;
27
+ setup(ie) {
28
+ const p = L(), D = M();
29
+ let R = I(() => Number(e.current.positions.reduce((g, i) => g + i.price * i.quantity, 0)));
30
+ const l = d("positions"), b = d(!1);
31
+ function S() {
32
+ b.value = !0;
30
33
  }
31
- function g() {
32
- p.value = !1;
34
+ function k() {
35
+ b.value = !1;
33
36
  }
34
- const f = b(!1);
35
- function B() {
36
- f.value = !0;
37
+ const y = d(!1);
38
+ function V() {
39
+ y.value = !0;
37
40
  }
38
- function A() {
39
- f.value = !1;
41
+ function P() {
42
+ y.value = !1;
40
43
  }
41
- b(null);
42
- function R() {
44
+ d(null);
45
+ function z() {
43
46
  e.current.creator = {
44
47
  type: "user",
45
- target: j.user._id
48
+ target: K.user._id
46
49
  }, e.current.owner = {
47
50
  type: "organization",
48
- target: d.params._id
49
- }, G.create(e.current);
51
+ target: p.params._id
52
+ }, e.current.customer = {
53
+ type: "Customer",
54
+ target: e.current.customer._id || null
55
+ }, W.create(e.current);
50
56
  }
51
- function V() {
52
- $.push({
57
+ function A() {
58
+ D.push({
53
59
  name: "Backoffice Orders",
54
60
  params: {
55
- _id: d.params._id
61
+ _id: p.params._id
56
62
  }
57
63
  });
58
64
  }
59
- return I(async () => {
60
- }), (_, i) => (n(), u("div", null, [
61
- s(c, { class: "mn-b-thin" }, {
62
- default: o(() => [
63
- t("header", J, [
64
- K,
65
- s(E, {
66
- submit: R,
67
- callback: V,
65
+ return T(async () => {
66
+ }), (g, i) => (r(), c("div", Z, [
67
+ a(_, { class: "mn-b-thin" }, {
68
+ default: s(() => [
69
+ u("header", ee, [
70
+ te,
71
+ a(U, {
72
+ submit: z,
73
+ callback: A,
68
74
  class: "pd-small radius-big bg-main t-black uppercase t-medium"
69
75
  }, {
70
- default: o(() => [
71
- S(" Add Order ")
76
+ default: s(() => [
77
+ q(" Add Order ")
72
78
  ]),
73
79
  _: 1
74
80
  })
@@ -76,17 +82,30 @@ const J = { class: "flex-v-center flex-nowrap flex" }, K = /* @__PURE__ */ t("h2
76
82
  ]),
77
83
  _: 1
78
84
  }),
79
- s(k, {
80
- title: "Добавить участника",
81
- onClosePopup: g,
82
- isPopupOpen: p.value,
85
+ a(j, {
86
+ selected: l.value,
87
+ "onUpdate:selected": i[0] || (i[0] = (t) => l.value = t),
88
+ tabs: [
89
+ { name: "Positions", value: "positions" },
90
+ { name: "Customer", value: "customer" },
91
+ { name: "Delivery", value: "delivery" },
92
+ { name: "Payment", value: "payment" }
93
+ ],
94
+ class: "t-medium radius-medium bg-grey mn-b-small"
95
+ }, null, 8, ["selected"]),
96
+ a($, {
97
+ onClosePopup: k,
98
+ isPopupOpen: b.value,
83
99
  class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
84
100
  }, {
85
- default: o(() => [
86
- Q,
87
- t("div", U, [
88
- s(z, {
89
- search: !0,
101
+ default: s(() => [
102
+ re,
103
+ u("div", oe, [
104
+ a(O, {
105
+ search: {
106
+ placeholder: "Search products...",
107
+ class: "bg-white mn-b-thin"
108
+ },
90
109
  states: {
91
110
  empty: {
92
111
  title: "No Products Found",
@@ -94,105 +113,146 @@ const J = { class: "flex-v-center flex-nowrap flex" }, K = /* @__PURE__ */ t("h2
94
113
  }
95
114
  },
96
115
  store: {
97
- read: (r) => H.read(r),
116
+ read: (t) => X.read(t),
98
117
  state: null
99
118
  },
100
119
  options: {
101
- organization: x(d).params._id
120
+ organization: f(p).params._id
102
121
  },
103
122
  class: ""
104
123
  }, {
105
- default: o(({
106
- items: r
124
+ default: s(({
125
+ items: t
107
126
  }) => [
108
- (n(!0), u(P, null, y(r, (a, se) => (n(), l(v, {
109
- key: a._id,
127
+ (r(!0), c(v, null, C(t, (o, F) => (r(), n(N, {
128
+ key: o._id,
110
129
  editable: !1,
111
- product: a,
130
+ product: o,
112
131
  onClick: () => {
113
- let w = { ...a };
114
- w.quantity = 1, m.add(e.current.positions, w), g();
132
+ let w = { ...o };
133
+ w.quantity = 1, h.add(e.current.positions, w), k();
115
134
  },
116
135
  class: "bg-white pd-thin radius-medium w-100 mn-b-thin"
117
136
  }, null, 8, ["product", "onClick"]))), 128))
118
137
  ]),
119
138
  _: 1
120
- }, 8, ["states", "store", "options"])
139
+ }, 8, ["search", "states", "store", "options"])
121
140
  ])
122
141
  ]),
123
142
  _: 1
124
143
  }, 8, ["isPopupOpen"]),
125
- s(c, {
144
+ l.value === "positions" ? (r(), n(_, {
145
+ key: 0,
126
146
  title: "Positions",
127
147
  actions: [{
128
148
  label: "+",
129
- function: () => N()
149
+ function: () => S()
130
150
  }],
131
- class: "mn-b-semi"
151
+ class: "mn-b-small"
132
152
  }, {
133
- default: o(() => [
134
- e.current.positions.length === 0 ? (n(), u("span", W, " No positions added yet ")) : h("", !0),
135
- (n(!0), u(P, null, y(e.current.positions, (r, a) => (n(), l(v, {
136
- key: r._id,
153
+ default: s(() => [
154
+ e.current.positions.length === 0 ? (r(), c("span", se, " No positions added yet ")) : m("", !0),
155
+ (r(!0), c(v, null, C(e.current.positions, (t, o) => (r(), n(N, {
156
+ key: t._id,
137
157
  editable: !0,
138
- product: r,
158
+ product: t,
139
159
  onIncrease: () => {
140
- m.increment(e.current.positions, r);
160
+ h.increment(e.current.positions, t);
141
161
  },
142
162
  onDecrease: () => {
143
- m.decrement(e.current.positions, r);
163
+ h.decrement(e.current.positions, t);
144
164
  },
145
165
  onRemove: () => {
146
- m.delete(e.current.positions, r);
166
+ h.delete(e.current.positions, t);
147
167
  },
148
168
  class: "mn-b-thin pd-thin radius-medium bg-white"
149
169
  }, null, 8, ["product", "onIncrease", "onDecrease", "onRemove"]))), 128))
150
170
  ]),
151
171
  _: 1
152
- }, 8, ["actions"]),
153
- s(c, {
172
+ }, 8, ["actions"])) : m("", !0),
173
+ l.value === "customer" ? (r(), n(_, {
174
+ key: 1,
154
175
  title: "Customer",
155
- class: "mn-b-semi"
176
+ class: "mn-b-semi",
177
+ actions: [{
178
+ label: "+",
179
+ function: () => V()
180
+ }]
156
181
  }, {
157
- default: o(() => [
158
- t("div", X, [
159
- Y,
160
- t("button", {
161
- onClick: i[0] || (i[0] = (r) => B()),
162
- class: "w-100 bg-main pd-small flex-center flex uppercase t-medium"
163
- }, "Add new")
164
- ])
182
+ default: s(() => [
183
+ e.current.customer._id ? (r(), n(B, {
184
+ key: 0,
185
+ user: e.current.customer,
186
+ photo: e.current.customer.profile.photo,
187
+ name: e.current.customer.profile.name || e.current.customer.phone || e.current.customer.email,
188
+ onClick: i[1] || (i[1] = () => {
189
+ Q.resetCustomer(e.current.customer);
190
+ }),
191
+ class: "bg-white pd-thin radius-medium w-100 mn-b-thin"
192
+ }, null, 8, ["user", "photo", "name"])) : (r(), n(O, {
193
+ key: 1,
194
+ search: {
195
+ placeholder: "Search customer...",
196
+ class: "bg-white mn-b-thin"
197
+ },
198
+ states: {
199
+ empty: {
200
+ title: "No Products Found",
201
+ description: "Currently, there are no such products available."
202
+ }
203
+ },
204
+ store: {
205
+ read: (t) => f(Y).read(t),
206
+ state: null
207
+ },
208
+ options: {
209
+ owner: f(p).params._id
210
+ },
211
+ class: "bg-grey h-max-20r o-scroll"
212
+ }, {
213
+ default: s(({
214
+ items: t
215
+ }) => [
216
+ (r(!0), c(v, null, C(t, (o, F) => (r(), n(B, {
217
+ key: o._id,
218
+ user: o,
219
+ photo: o.profile.photo,
220
+ name: o.profile.name || o.phone || o.email,
221
+ onClick: () => {
222
+ e.current.customer = o;
223
+ },
224
+ class: "bg-white pd-thin radius-medium w-100 mn-b-thin"
225
+ }, null, 8, ["user", "photo", "name", "onClick"]))), 128))
226
+ ]),
227
+ _: 1
228
+ }, 8, ["search", "states", "store", "options"]))
165
229
  ]),
166
230
  _: 1
167
- }),
168
- e.current.status !== !0 ? (n(), l(L, {
169
- key: 0,
231
+ }, 8, ["actions"])) : m("", !0),
232
+ l.value === "delivery" ? (r(), n(H, {
233
+ key: 2,
170
234
  order: e.current
171
- }, null, 8, ["order"])) : h("", !0),
172
- e.current.status !== !0 ? (n(), l(M, {
173
- key: 1,
235
+ }, null, 8, ["order"])) : m("", !0),
236
+ l.value === "payment" ? (r(), n(J, {
237
+ key: 3,
174
238
  order: e.current
175
- }, null, 8, ["order"])) : h("", !0),
176
- s(k, {
177
- title: "Добавить участника",
178
- onClosePopup: A,
179
- isPopupOpen: f.value,
180
- class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
239
+ }, null, 8, ["order"])) : m("", !0),
240
+ a($, {
241
+ title: "Add customer",
242
+ onClosePopup: P,
243
+ isPopupOpen: y.value,
244
+ class: E("bg-white w-min-30r w-max-30r radius-big pd-medium")
181
245
  }, {
182
- default: o(() => [
183
- Z,
184
- s(F, {
185
- order: e.current,
186
- class: "bg-grey"
187
- }, null, 8, ["order"])
246
+ default: s(() => [
247
+ a(G, { onCallbackCustomer: P })
188
248
  ]),
189
249
  _: 1
190
250
  }, 8, ["isPopupOpen"]),
191
- s(c, { class: "mn-b-semi" }, {
192
- default: o(() => [
193
- t("div", ee, [
194
- te,
195
- t("span", null, C(x(O)) + " " + C(_.returnCurrency()), 1)
251
+ a(_, { class: "mn-b-semi" }, {
252
+ default: s(() => [
253
+ u("div", ne, [
254
+ ae,
255
+ u("span", null, x(f(R)) + " " + x(g.returnCurrency()), 1)
196
256
  ])
197
257
  ]),
198
258
  _: 1
@@ -201,5 +261,5 @@ const J = { class: "flex-v-center flex-nowrap flex" }, K = /* @__PURE__ */ t("h2
201
261
  }
202
262
  };
203
263
  export {
204
- ye as default
264
+ Be as default
205
265
  };
@@ -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/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");require("../../../../components/Tab/Tab.vue2.cjs");const d=require("../../store/orders.cjs"),p=require("../../../auth/store/auth.cjs");require("../blocks/CardOrder.vue.cjs");const _=require("../../../globals/components/blocks/CardHeader.vue.cjs"),g=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),h=require("../../../../components/Feed/Feed.vue.cjs"),y=require("../../../icons/entities/IconEvents.vue.cjs"),v={class:"pd-thin"},k={class:"mn-b-small pd-small bg-white radius-small flex-nowrap flex"},b={class:"w-100"},f={class:"mn-b-thin"},E={class:"t-truncate"},N={class:"w-100 t-right"},V={class:"mn-b-thin"},S={class:"cols-1 mn-b-small gap-thin pd-small bg-white radius-small"},w={class:"mn-r-auto"},x={class:"t-right"},B={class:"t-transp"},D={key:0},C={class:"mn-r-auto"},q={class:"t-right"},O={class:"t-transp"},T={class:"pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex"},F=e.createElementVNode("p",{class:"t-medium mn-r-auto"},"16:40, 21.04",-1),A={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"},M=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),P={key:0,class:"pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"},L=e.createElementVNode("p",{class:"mn-b-thin t-transp uppercase p-small t-medium"},"Comment",-1),R={__name:"Orders",setup(z){const u=c.useRoute();c.useRouter();const a=e.ref(!1),l=e.ref("all");return e.onMounted(async()=>{}),(o,r)=>{const m=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",v,[e.createVNode(g.default,{title:"Orders","onUpdate:tabs_current":r[0]||(r[0]=n=>l.value=n),tabs_current:l.value,tabs:[{name:"All",value:"all"},{name:"Created",value:"stock-in"},{name:"Confirmed",value:"stock-out"},{name:"Preparing",value:"stock-out"},{name:"Prepared",value:"stock-out"},{name:"In delivery",value:"stock-out"},{name:"Delivered",value:"stock-out"},{name:"Closed",value:"stock-out"}],actions:[{to:{name:"AdminOrderAdd"},label:"Create Order"}],class:"mn-b-small bg-grey bg-grey radius-big"},null,8,["tabs_current"]),e.createVNode(h.default,{search:!0,states:{empty:{title:"No Orders Found",description:"Currently, there are no orders."}},store:{read:n=>d.actions.read(n)},options:{limit:15,owner:e.unref(u).params._id,...l.value!=="all"&&{type:l.value}},class:"gap-thin cols-3"},{default:e.withCtx(({items:n})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n,t=>(e.openBlock(),e.createBlock(m,{to:{name:"Order Edit",params:{order:t._id}},class:"bg-grey pos-relative pd-medium radius-big"},{default:e.withCtx(()=>[e.createVNode(_.default,{entity:t,entityType:"order",user:p.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",k,[e.createElementVNode("div",b,[e.createElementVNode("h3",f,e.toDisplayString(t.customer.target.slice(0,8)),1),e.createElementVNode("p",E,e.toDisplayString(t.delivery.address),1)]),e.createElementVNode("div",N,[e.createElementVNode("h3",V,e.toDisplayString(o.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",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(0,2),(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"w-100 flex"},[e.createElementVNode("p",w,e.toDisplayString(s.name),1),e.createElementVNode("p",x,[e.createTextVNode(e.toDisplayString(s.quantity)+" "+e.toDisplayString(s.type)+" x "+e.toDisplayString(s.price)+" ",1),e.createElementVNode("span",B,e.toDisplayString(o.returnCurrency()),1)])]))),128)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[a.value&&t.positions.length>2?(e.openBlock(),e.createElementBlock("div",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(2),(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i+2,class:"w-100 flex"},[e.createElementVNode("p",C,e.toDisplayString(s.name),1),e.createElementVNode("p",q,[e.createTextVNode(e.toDisplayString(s.quantity)+" "+e.toDisplayString(s.type)+" x "+e.toDisplayString(s.price)+" ",1),e.createElementVNode("span",O,e.toDisplayString(o.returnCurrency()),1)])]))),128))])):e.createCommentVNode("",!0)]),_:2},1024),t.positions.length>2?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[1]||(r[1]=e.withModifiers(s=>a.value=!a.value,["prevent"])),class:"radius-big bg-grey-transp-50 pd-nano w-100 flex-center flex"},e.toDisplayString(a.value?"Hide":`+${t.positions.length-2} more`),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",T,[e.createVNode(y.default,{class:"i-semi t-transp",fill:"rgb(var(--black)"}),F,e.createElementVNode("span",A,e.toDisplayString(t.status),1),M]),t.comment?(e.openBlock(),e.createElementBlock("div",P,[L,e.createElementVNode("p",null,e.toDisplayString(t.comment),1)])):e.createCommentVNode("",!0)]),_:2},1032,["to"]))),256))]),_:1},8,["states","store","options"])])}}};exports.default=R;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=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 d=require("../../store/orders.cjs"),p=require("../../../auth/store/auth.cjs");require("../blocks/CardOrder.vue.cjs");const g=require("../../../globals/components/blocks/CardHeader.vue.cjs"),_=require("../../../globals/components/sections/SectionPageTitle.vue.cjs"),h=require("../../../../components/Feed/Feed.vue.cjs"),y=require("../../../icons/entities/IconEvents.vue.cjs"),v={class:"pd-thin"},k={class:"mn-b-small pd-small bg-white radius-small flex-nowrap flex"},b={class:"w-100"},f={class:"mn-b-thin"},N={class:"t-truncate"},E={class:"w-100 t-right"},V={class:"mn-b-thin"},S={class:"cols-1 mn-b-small gap-thin pd-small bg-white radius-small"},w={class:"mn-r-auto"},x={class:"t-right"},B={class:"t-transp"},D={key:0},C={class:"mn-r-auto"},q={class:"t-right"},O={class:"t-transp"},T={class:"pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex"},F=e.createElementVNode("p",{class:"t-medium mn-r-auto"},"16:40, 21.04",-1),A={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"},M=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),P={key:0,class:"pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"},L=e.createElementVNode("p",{class:"mn-b-thin t-transp uppercase p-small t-medium"},"Comment",-1),R={__name:"Orders",setup(z){const u=c.useRoute();c.useRouter();const n=e.ref(!1),l=e.ref("all");return e.onMounted(async()=>{}),(o,r)=>{const m=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",v,[e.createVNode(_.default,{title:"Orders","onUpdate:tabs_current":r[0]||(r[0]=a=>l.value=a),tabs_current:l.value,tabs:[{name:"All",value:"all"},{name:"Created",value:"stock-in"},{name:"Confirmed",value:"stock-out"},{name:"Preparing",value:"stock-out"},{name:"Prepared",value:"stock-out"},{name:"In delivery",value:"stock-out"},{name:"Delivered",value:"stock-out"},{name:"Closed",value:"stock-out"}],actions:[{to:{name:"AdminOrderAdd"},label:"Create Order"}],class:"mn-b-small bg-grey bg-grey radius-big"},null,8,["tabs_current"]),e.createVNode(h.default,{search:!0,states:{empty:{title:"No Orders Found",description:"Currently, there are no orders."}},store:{read:a=>d.actions.read(a)},options:{limit:15,owner:e.unref(u).params._id,...l.value!=="all"&&{type:l.value}},class:"gap-thin cols-3"},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,t=>(e.openBlock(),e.createBlock(m,{to:{name:"Order Edit",params:{order:t._id}},class:"bg-grey pos-relative pd-medium radius-big"},{default:e.withCtx(()=>[e.createVNode(g.default,{entity:t,entityType:"order",user:p.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",k,[e.createElementVNode("div",b,[e.createElementVNode("h3",f,e.toDisplayString(t.customer.target.profile.name||t.customer.target.phone||t.customer.target.email||"No name"),1),e.createElementVNode("p",N,e.toDisplayString(t.delivery.address||"Not specified"),1)]),e.createElementVNode("div",E,[e.createElementVNode("h3",V,e.toDisplayString(o.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",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(0,2),(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:"w-100 flex"},[e.createElementVNode("p",w,e.toDisplayString(s.name),1),e.createElementVNode("p",x,[e.createTextVNode(e.toDisplayString(s.quantity)+" "+e.toDisplayString(s.type)+" x "+e.toDisplayString(s.price)+" ",1),e.createElementVNode("span",B,e.toDisplayString(o.returnCurrency()),1)])]))),128)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[n.value&&t.positions.length>2?(e.openBlock(),e.createElementBlock("div",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(2),(s,i)=>(e.openBlock(),e.createElementBlock("div",{key:i+2,class:"w-100 flex"},[e.createElementVNode("p",C,e.toDisplayString(s.name),1),e.createElementVNode("p",q,[e.createTextVNode(e.toDisplayString(s.quantity)+" "+e.toDisplayString(s.type)+" x "+e.toDisplayString(s.price)+" ",1),e.createElementVNode("span",O,e.toDisplayString(o.returnCurrency()),1)])]))),128))])):e.createCommentVNode("",!0)]),_:2},1024),t.positions.length>2?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[1]||(r[1]=e.withModifiers(s=>n.value=!n.value,["prevent"])),class:"radius-big bg-grey-transp-50 pd-nano w-100 flex-center flex"},e.toDisplayString(n.value?"Hide":`+${t.positions.length-2} more`),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",T,[e.createVNode(y.default,{class:"i-semi t-transp",fill:"rgb(var(--black)"}),F,e.createElementVNode("span",A,e.toDisplayString(t.status),1),M]),t.comment?(e.openBlock(),e.createElementBlock("div",P,[L,e.createElementVNode("p",null,e.toDisplayString(t.comment),1)])):e.createCommentVNode("",!0)]),_:2},1032,["to"]))),256))]),_:1},8,["states","store","options"])])}}};exports.default=R;
@@ -1,8 +1,8 @@
1
- import { ref as v, onMounted as k, resolveComponent as w, openBlock as n, createElementBlock as l, createVNode as r, unref as x, withCtx as p, Fragment as _, renderList as h, createBlock as C, createElementVNode as t, toDisplayString as s, createTextVNode as g, Transition as O, createCommentVNode as f, withModifiers as $ } from "vue";
2
- import { useRoute as N, useRouter as A } from "vue-router";
1
+ import { ref as g, onMounted as k, resolveComponent as w, openBlock as n, createElementBlock as l, createVNode as r, unref as x, withCtx as p, Fragment as _, renderList as h, createBlock as C, createElementVNode as e, toDisplayString as s, createTextVNode as v, Transition as N, createCommentVNode as f, withModifiers as O } from "vue";
2
+ import { useRoute as $, useRouter as A } from "vue-router";
3
3
  import "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
4
4
  import "../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.js";
5
- import "../../../../components/Tab/Tab.vue2.js";
5
+ import "../../../../components/Tab/Tab.vue.js";
6
6
  import { actions as T, getters as V } from "../../store/orders.js";
7
7
  import { state as B } from "../../../auth/store/auth.js";
8
8
  import "../blocks/CardOrder.vue.js";
@@ -10,15 +10,15 @@ import E from "../../../globals/components/blocks/CardHeader.vue.js";
10
10
  import q from "../../../globals/components/sections/SectionPageTitle.vue.js";
11
11
  import z from "../../../../components/Feed/Feed.vue.js";
12
12
  import D from "../../../icons/entities/IconEvents.vue.js";
13
- const F = { class: "pd-thin" }, M = { class: "mn-b-small pd-small bg-white radius-small flex-nowrap flex" }, P = { class: "w-100" }, R = { class: "mn-b-thin" }, U = { class: "t-truncate" }, H = { class: "w-100 t-right" }, I = { class: "mn-b-thin" }, L = { class: "cols-1 mn-b-small gap-thin pd-small bg-white radius-small" }, S = { class: "mn-r-auto" }, j = { class: "t-right" }, G = { class: "t-transp" }, J = { key: 0 }, K = { class: "mn-r-auto" }, Q = { class: "t-right" }, W = { class: "t-transp" }, X = { class: "pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex" }, Y = /* @__PURE__ */ t("p", { class: "t-medium mn-r-auto" }, "16:40, 21.04", -1), Z = { 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" }, tt = /* @__PURE__ */ t("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), et = {
13
+ const F = { class: "pd-thin" }, M = { class: "mn-b-small pd-small bg-white radius-small flex-nowrap flex" }, P = { class: "w-100" }, R = { class: "mn-b-thin" }, U = { class: "t-truncate" }, H = { class: "w-100 t-right" }, I = { class: "mn-b-thin" }, L = { class: "cols-1 mn-b-small gap-thin pd-small bg-white radius-small" }, S = { class: "mn-r-auto" }, j = { class: "t-right" }, G = { class: "t-transp" }, J = { key: 0 }, K = { class: "mn-r-auto" }, Q = { class: "t-right" }, W = { class: "t-transp" }, X = { class: "pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex" }, Y = /* @__PURE__ */ e("p", { class: "t-medium mn-r-auto" }, "16:40, 21.04", -1), Z = { 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" }, tt = /* @__PURE__ */ e("span", { class: "flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin t-white bg-red" }, " Unpaid ", -1), et = {
14
14
  key: 0,
15
15
  class: "pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"
16
- }, st = /* @__PURE__ */ t("p", { class: "mn-b-thin t-transp uppercase p-small t-medium" }, "Comment", -1), ft = {
16
+ }, st = /* @__PURE__ */ e("p", { class: "mn-b-thin t-transp uppercase p-small t-medium" }, "Comment", -1), ft = {
17
17
  __name: "Orders",
18
18
  setup(at) {
19
- const b = N();
19
+ const b = $();
20
20
  A();
21
- const o = v(!1), c = v("all");
21
+ const o = g(!1), c = g("all");
22
22
  return k(async () => {
23
23
  }), (d, m) => {
24
24
  const y = w("router-link");
@@ -63,81 +63,81 @@ const F = { class: "pd-thin" }, M = { class: "mn-b-small pd-small bg-white radiu
63
63
  default: p(({
64
64
  items: i
65
65
  }) => [
66
- (n(!0), l(_, null, h(i, (e) => (n(), C(y, {
66
+ (n(!0), l(_, null, h(i, (t) => (n(), C(y, {
67
67
  to: {
68
68
  name: "Order Edit",
69
69
  params: {
70
- order: e._id
70
+ order: t._id
71
71
  }
72
72
  },
73
73
  class: "bg-grey pos-relative pd-medium radius-big"
74
74
  }, {
75
75
  default: p(() => [
76
76
  r(E, {
77
- entity: e,
77
+ entity: t,
78
78
  entityType: "order",
79
79
  user: B.user,
80
- owner: e.creator,
81
- creator: e.creator,
82
- date: e.createdAt,
80
+ owner: t.creator,
81
+ creator: t.creator,
82
+ date: t.createdAt,
83
83
  class: "mn-b-small"
84
84
  }, null, 8, ["entity", "user", "owner", "creator", "date"]),
85
- t("div", M, [
86
- t("div", P, [
87
- t("h3", R, s(e.customer.target.slice(0, 8)), 1),
88
- t("p", U, s(e.delivery.address), 1)
85
+ e("div", M, [
86
+ e("div", P, [
87
+ e("h3", R, s(t.customer.target.profile.name || t.customer.target.phone || t.customer.target.email || "No name"), 1),
88
+ e("p", U, s(t.delivery.address || "Not specified"), 1)
89
89
  ]),
90
- t("div", H, [
91
- t("h3", I, s(d.returnCurrency()) + s(V.getTotal(e.positions)), 1),
92
- t("p", null, "#" + s(e._id.slice(0, 4) + "..." + e._id.slice(-4)), 1)
90
+ e("div", H, [
91
+ e("h3", I, s(d.returnCurrency()) + s(V.getTotal(t.positions)), 1),
92
+ e("p", null, "#" + s(t._id.slice(0, 4) + "..." + t._id.slice(-4)), 1)
93
93
  ])
94
94
  ]),
95
- t("div", L, [
96
- (n(!0), l(_, null, h(e.positions.slice(0, 2), (a, u) => (n(), l("div", {
95
+ e("div", L, [
96
+ (n(!0), l(_, null, h(t.positions.slice(0, 2), (a, u) => (n(), l("div", {
97
97
  key: u,
98
98
  class: "w-100 flex"
99
99
  }, [
100
- t("p", S, s(a.name), 1),
101
- t("p", j, [
102
- g(s(a.quantity) + " " + s(a.type) + " x " + s(a.price) + " ", 1),
103
- t("span", G, s(d.returnCurrency()), 1)
100
+ e("p", S, s(a.name), 1),
101
+ e("p", j, [
102
+ v(s(a.quantity) + " " + s(a.type) + " x " + s(a.price) + " ", 1),
103
+ e("span", G, s(d.returnCurrency()), 1)
104
104
  ])
105
105
  ]))), 128)),
106
- r(O, { name: "fade" }, {
106
+ r(N, { name: "fade" }, {
107
107
  default: p(() => [
108
- o.value && e.positions.length > 2 ? (n(), l("div", J, [
109
- (n(!0), l(_, null, h(e.positions.slice(2), (a, u) => (n(), l("div", {
108
+ o.value && t.positions.length > 2 ? (n(), l("div", J, [
109
+ (n(!0), l(_, null, h(t.positions.slice(2), (a, u) => (n(), l("div", {
110
110
  key: u + 2,
111
111
  class: "w-100 flex"
112
112
  }, [
113
- t("p", K, s(a.name), 1),
114
- t("p", Q, [
115
- g(s(a.quantity) + " " + s(a.type) + " x " + s(a.price) + " ", 1),
116
- t("span", W, s(d.returnCurrency()), 1)
113
+ e("p", K, s(a.name), 1),
114
+ e("p", Q, [
115
+ v(s(a.quantity) + " " + s(a.type) + " x " + s(a.price) + " ", 1),
116
+ e("span", W, s(d.returnCurrency()), 1)
117
117
  ])
118
118
  ]))), 128))
119
119
  ])) : f("", !0)
120
120
  ]),
121
121
  _: 2
122
122
  }, 1024),
123
- e.positions.length > 2 ? (n(), l("button", {
123
+ t.positions.length > 2 ? (n(), l("button", {
124
124
  key: 0,
125
- onClick: m[1] || (m[1] = $((a) => o.value = !o.value, ["prevent"])),
125
+ onClick: m[1] || (m[1] = O((a) => o.value = !o.value, ["prevent"])),
126
126
  class: "radius-big bg-grey-transp-50 pd-nano w-100 flex-center flex"
127
- }, s(o.value ? "Hide" : `+${e.positions.length - 2} more`), 1)) : f("", !0)
127
+ }, s(o.value ? "Hide" : `+${t.positions.length - 2} more`), 1)) : f("", !0)
128
128
  ]),
129
- t("div", X, [
129
+ e("div", X, [
130
130
  r(D, {
131
131
  class: "i-semi t-transp",
132
132
  fill: "rgb(var(--black)"
133
133
  }),
134
134
  Y,
135
- t("span", Z, s(e.status), 1),
135
+ e("span", Z, s(t.status), 1),
136
136
  tt
137
137
  ]),
138
- e.comment ? (n(), l("div", et, [
138
+ t.comment ? (n(), l("div", et, [
139
139
  st,
140
- t("p", null, s(e.comment), 1)
140
+ e("p", null, s(t.comment), 1)
141
141
  ])) : f("", !0)
142
142
  ]),
143
143
  _: 2
@@ -0,0 +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.vue.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"),y=require("../../../globals/store/globals.cjs"),B=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-grey 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 B.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,["states","store","options"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(q.default,{customer:e.unref(r),class:"mn-b-thin bg-grey"},null,8,["customer"]),e.createVNode(v.default,{submit:f,callback:p,onError:e.unref(y.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;