@ozdao/prometheus-framework 0.2.132 → 0.2.134

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. package/dist/_virtual/alignment-pattern.cjs +1 -0
  2. package/dist/_virtual/alignment-pattern.js +4 -0
  3. package/dist/_virtual/browser.cjs +1 -0
  4. package/dist/_virtual/browser.js +4 -0
  5. package/dist/_virtual/canvas.cjs +1 -0
  6. package/dist/_virtual/canvas.js +4 -0
  7. package/dist/_virtual/dijkstra.cjs +1 -0
  8. package/dist/_virtual/dijkstra.js +4 -0
  9. package/dist/_virtual/error-correction-code.cjs +1 -0
  10. package/dist/_virtual/error-correction-code.js +4 -0
  11. package/dist/_virtual/error-correction-level.cjs +1 -0
  12. package/dist/_virtual/error-correction-level.js +4 -0
  13. package/dist/_virtual/finder-pattern.cjs +1 -0
  14. package/dist/_virtual/finder-pattern.js +4 -0
  15. package/dist/_virtual/format-info.cjs +1 -0
  16. package/dist/_virtual/format-info.js +4 -0
  17. package/dist/_virtual/galois-field.cjs +1 -0
  18. package/dist/_virtual/galois-field.js +4 -0
  19. package/dist/_virtual/mask-pattern.cjs +1 -0
  20. package/dist/_virtual/mask-pattern.js +4 -0
  21. package/dist/_virtual/mode.cjs +1 -0
  22. package/dist/_virtual/mode.js +4 -0
  23. package/dist/_virtual/polynomial.cjs +1 -0
  24. package/dist/_virtual/polynomial.js +4 -0
  25. package/dist/_virtual/qrcode.cjs +1 -0
  26. package/dist/_virtual/qrcode.js +4 -0
  27. package/dist/_virtual/regex.cjs +1 -0
  28. package/dist/_virtual/regex.js +4 -0
  29. package/dist/_virtual/segments.cjs +1 -0
  30. package/dist/_virtual/segments.js +4 -0
  31. package/dist/_virtual/svg-tag.cjs +1 -0
  32. package/dist/_virtual/svg-tag.js +4 -0
  33. package/dist/_virtual/utils.cjs +1 -0
  34. package/dist/_virtual/utils.js +4 -0
  35. package/dist/_virtual/utils2.cjs +1 -0
  36. package/dist/_virtual/utils2.js +4 -0
  37. package/dist/_virtual/version-check.cjs +1 -0
  38. package/dist/_virtual/version-check.js +4 -0
  39. package/dist/_virtual/version.cjs +1 -0
  40. package/dist/_virtual/version.js +4 -0
  41. package/dist/auth.server.js +1 -1
  42. package/dist/auth.server.mjs +1 -1
  43. package/dist/community.server.js +1 -1
  44. package/dist/community.server.mjs +1 -1
  45. package/dist/events.server.js +1 -1
  46. package/dist/events.server.mjs +1 -1
  47. package/dist/files.server.js +1 -1
  48. package/dist/files.server.mjs +1 -1
  49. package/dist/gallery.server.js +1 -1
  50. package/dist/gallery.server.mjs +1 -1
  51. package/dist/index-C-8xOJnM.mjs +244 -0
  52. package/dist/index-CDbtWkBj.js +243 -0
  53. package/dist/main-5IrI2IOV.js +92 -0
  54. package/dist/main-BY2OvGB9.mjs +14509 -0
  55. package/dist/main.css +1 -1
  56. package/dist/middlewares.server.js +1 -1
  57. package/dist/middlewares.server.mjs +1 -1
  58. package/dist/node_modules/dijkstrajs/dijkstra.cjs +1 -0
  59. package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
  60. package/dist/node_modules/encode-utf8/index.cjs +1 -0
  61. package/dist/node_modules/encode-utf8/index.js +30 -0
  62. package/dist/node_modules/qrcode/lib/browser.cjs +1 -0
  63. package/dist/node_modules/qrcode/lib/browser.js +45 -0
  64. package/dist/node_modules/qrcode/lib/can-promise.cjs +1 -0
  65. package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
  66. package/dist/node_modules/qrcode/lib/core/alignment-pattern.cjs +1 -0
  67. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
  68. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.cjs +1 -0
  69. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
  70. package/dist/node_modules/qrcode/lib/core/bit-buffer.cjs +1 -0
  71. package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
  72. package/dist/node_modules/qrcode/lib/core/bit-matrix.cjs +1 -0
  73. package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
  74. package/dist/node_modules/qrcode/lib/core/byte-data.cjs +1 -0
  75. package/dist/node_modules/qrcode/lib/core/byte-data.js +24 -0
  76. package/dist/node_modules/qrcode/lib/core/error-correction-code.cjs +1 -0
  77. package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
  78. package/dist/node_modules/qrcode/lib/core/error-correction-level.cjs +1 -0
  79. package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
  80. package/dist/node_modules/qrcode/lib/core/finder-pattern.cjs +1 -0
  81. package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
  82. package/dist/node_modules/qrcode/lib/core/format-info.cjs +1 -0
  83. package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
  84. package/dist/node_modules/qrcode/lib/core/galois-field.cjs +1 -0
  85. package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
  86. package/dist/node_modules/qrcode/lib/core/kanji-data.cjs +2 -0
  87. package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
  88. package/dist/node_modules/qrcode/lib/core/mask-pattern.cjs +1 -0
  89. package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
  90. package/dist/node_modules/qrcode/lib/core/mode.cjs +1 -0
  91. package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
  92. package/dist/node_modules/qrcode/lib/core/numeric-data.cjs +1 -0
  93. package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
  94. package/dist/node_modules/qrcode/lib/core/polynomial.cjs +1 -0
  95. package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
  96. package/dist/node_modules/qrcode/lib/core/qrcode.cjs +4 -0
  97. package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
  98. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.cjs +1 -0
  99. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
  100. package/dist/node_modules/qrcode/lib/core/regex.cjs +2 -0
  101. package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
  102. package/dist/node_modules/qrcode/lib/core/segments.cjs +2 -0
  103. package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
  104. package/dist/node_modules/qrcode/lib/core/utils.cjs +1 -0
  105. package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
  106. package/dist/node_modules/qrcode/lib/core/version-check.cjs +1 -0
  107. package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
  108. package/dist/node_modules/qrcode/lib/core/version.cjs +1 -0
  109. package/dist/node_modules/qrcode/lib/core/version.js +74 -0
  110. package/dist/node_modules/qrcode/lib/renderer/canvas.cjs +1 -0
  111. package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
  112. package/dist/node_modules/qrcode/lib/renderer/svg-tag.cjs +2 -0
  113. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
  114. package/dist/node_modules/qrcode/lib/renderer/utils.cjs +1 -0
  115. package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
  116. package/dist/orders.server.js +1 -1
  117. package/dist/orders.server.mjs +1 -1
  118. package/dist/organizations.server.js +1 -1
  119. package/dist/organizations.server.mjs +1 -1
  120. package/dist/products.server.js +1 -1
  121. package/dist/products.server.mjs +1 -1
  122. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
  124. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
  126. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/components/Field/Field.vue.js +19 -20
  128. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +4 -4
  129. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
  130. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
  131. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +14 -14
  132. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +15 -15
  133. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +11 -11
  134. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +34 -34
  135. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +27 -27
  136. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +22 -22
  143. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +13 -13
  144. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +9 -9
  145. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +19 -19
  146. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +7 -7
  147. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +8 -8
  149. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  150. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  151. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +3 -3
  152. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +8 -8
  153. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
  160. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +9 -9
  161. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +13 -13
  162. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +17 -17
  163. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +6 -6
  164. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +10 -10
  165. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +17 -17
  166. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +30 -30
  167. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +9 -9
  168. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  169. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  170. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  171. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +7 -7
  172. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +1 -1
  174. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
  177. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardBalanceReplenished.vue.js +34 -0
  178. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -0
  179. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +42 -0
  180. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.cjs +1 -0
  181. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CashDeposit.vue.js +26 -0
  182. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -0
  183. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +76 -0
  184. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.cjs +1 -0
  185. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue.js +105 -0
  186. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.cjs +1 -0
  187. package/dist/prometheus-framework/src/modules/wallet/views/components/elements/ConnectMetamask.vue.js +106 -0
  188. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  189. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +137 -122
  190. package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.cjs +1 -0
  191. package/dist/prometheus-framework/src/modules/wallet/views/localization/wallet.json.js +41 -0
  192. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.cjs +1 -1
  193. package/dist/prometheus-framework/src/modules/wallet/views/store/wallet.store.js +98 -22
  194. package/dist/prometheus-framework.cjs.js +1 -1
  195. package/dist/prometheus-framework.es.js +1 -1
  196. package/dist/reports.server.js +1 -1
  197. package/dist/reports.server.mjs +1 -1
  198. package/dist/style.css +1 -1
  199. package/dist/wallet.server.js +103 -13
  200. package/dist/wallet.server.mjs +103 -13
  201. package/dist/web-5eyiz9L7.mjs +54 -0
  202. package/dist/web-C04IcLk4.js +1 -0
  203. package/package.json +1 -1
  204. package/src/components/Field/Field.vue +1 -1
  205. package/src/modules/community/components/pages/Blog.vue +1 -1
  206. package/src/modules/globals/components/partials/Header.vue +2 -2
  207. package/src/modules/globals/localization/vue-i18n.js +5 -5
  208. package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -3
  209. package/src/modules/landing/components/sections/SectionEarn.vue +1 -6
  210. package/src/modules/middlewares/server/authSecret.js +22 -0
  211. package/src/modules/middlewares/server/index.js +7 -5
  212. package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -2
  213. package/src/modules/wallet/controllers/routes/rewards.routes.js +27 -3
  214. package/src/modules/wallet/models/wallet.model.js +5 -5
  215. package/src/modules/wallet/{components → views/components}/blocks/CardBalanceReplenished.vue +17 -7
  216. package/src/modules/wallet/{components/blocks/CardDeposite.vue → views/components/blocks/CardDeposit.vue} +4 -4
  217. package/src/modules/wallet/views/components/blocks/CryptoDeposit.vue +98 -0
  218. package/src/modules/wallet/views/components/blocks/CryptoDepositProcessing.vue +144 -0
  219. package/src/modules/wallet/views/components/elements/ConnectMetamask.vue +131 -0
  220. package/src/modules/wallet/views/components/pages/Wallet.vue +95 -68
  221. package/src/modules/wallet/views/localization/wallet.json +37 -0
  222. package/src/modules/wallet/views/store/wallet.store.js +145 -28
  223. package/src/modules/wallet/wallet.server.js +2 -2
  224. package/src/modules/wallet/components/blocks/CryptoDeposite.vue +0 -55
  225. package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +0 -181
  226. package/src/modules/wallet/controllers/factories/rewards.factory.population.js +0 -213
  227. package/src/modules/wallet/localization/Wallet.json +0 -22
  228. /package/src/modules/wallet/{components/blocks/CashDeposite.vue → views/components/blocks/CashDeposit.vue} +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Menu/Menu.vue.cjs"),o=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const l=require("../../../icons/entities/IconProducts.vue.cjs"),d=require("../../../icons/entities/IconEvents.vue.cjs"),m=require("../../../icons/entities/IconGroups.vue.cjs"),f=require("../../../icons/entities/IconGallery.vue.cjs"),p=require("../../../icons/entities/IconOrders.vue.cjs"),_=require("../../../icons/entities/IconLeftovers.vue.cjs"),u=require("vue-router"),n=require("../../../auth/store/auth.cjs");require("../../store/organizations.cjs");const k={class:""},h=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),v=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Products ",-1),V=e.createElementVNode("span",null," Leftovers ",-1),B=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),b=e.createElementVNode("span",null," Events ",-1),g={__name:"OrganizationBackoffice",props:{favorites:Array},setup(q){const r=u.useRoute(),t=u.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(a,s)=>(e.openBlock(),e.createElementBlock("div",k,[h,e.createVNode(i.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[a.hasAccess(e.unref(r).params._id,"members","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:0,onClick:s[0]||(s[0]=c=>e.unref(t).push({name:"Organization Members",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(m.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"products","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:1,onClick:s[1]||(s[1]=c=>e.unref(t).push({name:"Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(l.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"leftovers","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:2,onClick:s[2]||(s[2]=c=>e.unref(t).push({name:"Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(_.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"orders","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:3,onClick:s[3]||(s[3]=c=>e.unref(t).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),B]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"gallery","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:4,onClick:s[4]||(s[4]=c=>e.unref(t).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"events","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:5,onClick:s[5]||(s[5]=c=>e.unref(t).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),b]),_:1})):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Menu/Menu.vue2.cjs"),o=require("../../../../components/Menu/MenuItem.vue.cjs");;/* empty css */const l=require("../../../icons/entities/IconProducts.vue.cjs"),d=require("../../../icons/entities/IconEvents.vue.cjs"),m=require("../../../icons/entities/IconGroups.vue.cjs"),f=require("../../../icons/entities/IconGallery.vue.cjs"),p=require("../../../icons/entities/IconOrders.vue.cjs"),_=require("../../../icons/entities/IconLeftovers.vue.cjs"),u=require("vue-router"),n=require("../../../auth/store/auth.cjs");require("../../store/organizations.cjs");const k={class:""},h=e.createElementVNode("h1",{class:"pd-medium radius-medium bg-light mn-b-small"},"Welcome to Backoffice",-1),v=e.createElementVNode("span",null," Members ",-1),N=e.createElementVNode("span",null," Products ",-1),V=e.createElementVNode("span",null," Leftovers ",-1),B=e.createElementVNode("span",null," Orders ",-1),C=e.createElementVNode("span",null," Gallery ",-1),b=e.createElementVNode("span",null," Events ",-1),g={__name:"OrganizationBackoffice",props:{favorites:Array},setup(q){const r=u.useRoute(),t=u.useRouter();return e.ref(null),e.ref([]),e.onMounted(async()=>{}),(a,s)=>(e.openBlock(),e.createElementBlock("div",k,[h,e.createVNode(i.default,{class:"bg-light mn-b-semi"},{default:e.withCtx(()=>[a.hasAccess(e.unref(r).params._id,"members","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:0,onClick:s[0]||(s[0]=c=>e.unref(t).push({name:"Organization Members",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(m.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),v]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"products","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:1,onClick:s[1]||(s[1]=c=>e.unref(t).push({name:"Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(l.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),N]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"leftovers","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:2,onClick:s[2]||(s[2]=c=>e.unref(t).push({name:"Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(_.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),V]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"orders","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:3,onClick:s[3]||(s[3]=c=>e.unref(t).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(p.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),B]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"gallery","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:4,onClick:s[4]||(s[4]=c=>e.unref(t).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(f.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),C]),_:1})):e.createCommentVNode("",!0),a.hasAccess(e.unref(r).params._id,"events","read",n.state.accesses)?(e.openBlock(),e.createBlock(o.default,{key:5,onClick:s[5]||(s[5]=c=>e.unref(t).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[e.createVNode(d.default,{class:"i-semi",icon:!0,fill:"rgb(var(--white))"}),b]),_:1})):e.createCommentVNode("",!0)]),_:1})]))}};exports.default=g;
@@ -1,5 +1,5 @@
1
1
  import { ref as f, onMounted as _, openBlock as a, createElementBlock as k, createVNode as i, withCtx as o, unref as s, createBlock as c, createCommentVNode as l, createElementVNode as t } from "vue";
2
- import v from "../../../../components/Menu/Menu.vue.js";
2
+ import v from "../../../../components/Menu/Menu.vue2.js";
3
3
  import p from "../../../../components/Menu/MenuItem.vue.js";
4
4
  /* empty css */
5
5
  import h from "../../../icons/entities/IconProducts.vue.js";
@@ -14,7 +14,7 @@ import U from "../../../../components/Button/Button.vue.js";
14
14
  import { state as k } from "../../../auth/store/auth.js";
15
15
  import { actions as s, state as e } from "../../store/organizations.js";
16
16
  import "../../store/memberships.js";
17
- const T = { class: "for-transition pd-thin" }, z = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Type of group", -1), V = /* @__PURE__ */ r("p", { class: "mn-b-thin" }, "Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.", -1), P = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Profile", -1), N = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, S = /* @__PURE__ */ r("h4", null, "Upload photo", -1), $ = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Socials", -1), B = /* @__PURE__ */ r("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), X = {
17
+ const T = { class: "for-transition pd-thin" }, z = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Type of group", -1), V = /* @__PURE__ */ r("p", { class: "mn-b-thin" }, "Public groups are open to everyone, whereas in exclusive groups only members can post. If you wish to make a group private, select 'hidden'.", -1), P = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Profile", -1), $ = { class: "mn-b-thin radius-small w-100 h-10r bg-light flex-center flex-column flex" }, N = /* @__PURE__ */ r("h4", null, "Upload photo", -1), S = /* @__PURE__ */ r("h3", { class: "mn-b-small" }, "Socials", -1), B = /* @__PURE__ */ r("p", { class: "mn-b-thin" }, "Please provide only the username for social media profiles, without full links.", -1), X = {
18
18
  __name: "OrganizationEdit",
19
19
  setup(E) {
20
20
  const a = _(), n = y();
@@ -41,14 +41,14 @@ const T = { class: "for-transition pd-thin" }, z = /* @__PURE__ */ r("h3", { cla
41
41
  class: "mn-b-semi bg-light pd-medium radius-small"
42
42
  }, null, 8, ["modelValue"]),
43
43
  P,
44
- r("div", N, [
44
+ r("div", $, [
45
45
  i(v, {
46
46
  photo: e.current.profile.photo,
47
47
  "onUpdate:photo": t[1] || (t[1] = (l) => e.current.profile.photo = l),
48
48
  uploadPath: "organizations/" + e.current._id + "/avatars",
49
49
  class: "h-4r w-4r aspect-1x1 o-hidden mn-b-thin radius-extra"
50
50
  }, null, 8, ["photo", "uploadPath"]),
51
- S
51
+ N
52
52
  ]),
53
53
  i(o, {
54
54
  field: e.current.profile.name,
@@ -66,7 +66,7 @@ const T = { class: "for-transition pd-thin" }, z = /* @__PURE__ */ r("h3", { cla
66
66
  onTagsChanged: t[4] || (t[4] = (l) => e.current.profile.tags = l),
67
67
  tags: e.current.profile.tags
68
68
  }, null, 8, ["tags"]),
69
- $,
69
+ S,
70
70
  B,
71
71
  i(o, {
72
72
  field: e.current.socials.instagram,
@@ -7,7 +7,7 @@ import "vue-i18n";
7
7
  import S from "../../../../../../_virtual/_plugin-vue_export-helper.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
- const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "documents" }, F = /* @__PURE__ */ E(() => /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Список документов", -1)), N = { class: "mn-b-big cols-4" }, O = ["onClick"], R = { class: "mn-b-small" }, U = { class: "t-semi t-transp radius-small" }, V = {
10
+ const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "documents" }, N = /* @__PURE__ */ E(() => /* @__PURE__ */ o("h3", { class: "mn-b-small" }, "Список документов", -1)), O = { class: "mn-b-big cols-4" }, R = ["onClick"], U = { class: "mn-b-small" }, V = { class: "t-semi t-transp radius-small" }, $ = {
11
11
  __name: "Documents",
12
12
  setup(a) {
13
13
  I(), g();
@@ -54,19 +54,19 @@ const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "document
54
54
  m();
55
55
  };
56
56
  return y(() => {
57
- }), (u, L) => {
57
+ }), (u, F) => {
58
58
  const x = P("Popup");
59
59
  return t(), s("div", B, [
60
- F,
61
- o("div", N, [
60
+ N,
61
+ o("div", O, [
62
62
  (t(!0), s(i, null, d(_(p), (e, n) => (t(), s("div", {
63
63
  key: n,
64
- onClick: ($) => v(n),
64
+ onClick: (L) => v(n),
65
65
  class: "h-100 pd-medium bg-white radius-small"
66
66
  }, [
67
- o("h3", R, f(e.name), 1),
68
- o("p", U, f(e.status), 1)
69
- ], 8, O))), 128))
67
+ o("h3", U, f(e.name), 1),
68
+ o("p", V, f(e.status), 1)
69
+ ], 8, R))), 128))
70
70
  ]),
71
71
  h(x, {
72
72
  title: "Добавить документ",
@@ -96,7 +96,7 @@ const E = (a) => (w("data-v-f93fcad7"), a = a(), C(), a), B = { class: "document
96
96
  ]);
97
97
  };
98
98
  }
99
- }, Q = /* @__PURE__ */ S(V, [["__scopeId", "data-v-f93fcad7"]]);
99
+ }, Q = /* @__PURE__ */ S($, [["__scopeId", "data-v-f93fcad7"]]);
100
100
  export {
101
101
  Q as default
102
102
  };
@@ -1,4 +1,4 @@
1
- import { ref as r, openBlock as t, createElementBlock as e, createElementVNode as a, toDisplayString as _, Fragment as g, renderList as h, createVNode as s, withCtx as c } from "vue";
1
+ import { ref as r, openBlock as t, createElementBlock as e, createElementVNode as l, toDisplayString as b, Fragment as g, renderList as h, createVNode as s, withCtx as c } from "vue";
2
2
  import v from "../../../../components/Field/Field.vue.js";
3
3
  /* empty css */
4
4
  import x from "../../../../components/Button/Button.vue.js";
@@ -6,7 +6,7 @@ import k from "../../../icons/navigation/IconDelete.vue.js";
6
6
  import w from "../../../icons/navigation/IconAdd.vue.js";
7
7
  import "../../../middlewares/client/inputs.validation.js";
8
8
  import "../../store/invites.js";
9
- const y = { class: "mn-b-thin t-transp p-medium" }, C = { class: "cols-1 mn-b-small radius-medium pd-semi bg-light" }, E = ["onClick"], V = /* @__PURE__ */ a("span", null, "Invite to organization", -1), A = {
9
+ const y = { class: "mn-b-thin t-transp p-medium" }, C = { class: "cols-1 mn-b-small radius-medium pd-semi bg-light" }, $ = ["onClick"], E = /* @__PURE__ */ l("span", null, "Invite to organization", -1), D = {
10
10
  __name: "MembersAdd",
11
11
  props: {
12
12
  organization: Object,
@@ -18,22 +18,22 @@ const y = { class: "mn-b-thin t-transp p-medium" }, C = { class: "cols-1 mn-b-sm
18
18
  async function f() {
19
19
  u("send-invite", i.value);
20
20
  }
21
- return ($, n) => (t(), e("div", null, [
22
- a("p", y, _(m.text), 1),
23
- a("section", C, [
24
- (t(!0), e(g, null, h(i.value, (o, l) => (t(), e("div", {
25
- key: l,
21
+ return (V, n) => (t(), e("div", null, [
22
+ l("p", y, b(m.text), 1),
23
+ l("section", C, [
24
+ (t(!0), e(g, null, h(i.value, (o, a) => (t(), e("div", {
25
+ key: a,
26
26
  class: "br-1px br-solid br-grey-transp-25 flex gap-thin radius-small mn-b-thin"
27
27
  }, [
28
28
  s(v, {
29
29
  field: o.contact,
30
- "onUpdate:field": (b) => o.contact = b,
30
+ "onUpdate:field": (_) => o.contact = _,
31
31
  placeholder: "Enter email or phone",
32
32
  class: "w-100 pd-small radius-small bg-white",
33
33
  validation: p.value
34
34
  }, {
35
35
  default: c(() => [
36
- l < 1 ? (t(), e("div", {
36
+ a < 1 ? (t(), e("div", {
37
37
  key: 0,
38
38
  onClick: n[0] || (n[0] = () => i.value.push({ contact: "" })),
39
39
  class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-green"
@@ -44,14 +44,14 @@ const y = { class: "mn-b-thin t-transp p-medium" }, C = { class: "cols-1 mn-b-sm
44
44
  })
45
45
  ])) : (t(), e("div", {
46
46
  key: 1,
47
- onClick: () => i.value.splice(l, 1),
47
+ onClick: () => i.value.splice(a, 1),
48
48
  class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red"
49
49
  }, [
50
50
  s(k, {
51
51
  class: "i-medium",
52
52
  fill: "rgb(var(--white)"
53
53
  })
54
- ], 8, E))
54
+ ], 8, $))
55
55
  ]),
56
56
  _: 2
57
57
  }, 1032, ["field", "onUpdate:field", "validation"])
@@ -62,7 +62,7 @@ const y = { class: "mn-b-thin t-transp p-medium" }, C = { class: "cols-1 mn-b-sm
62
62
  class: "w-100 bg-main"
63
63
  }, {
64
64
  default: c(() => [
65
- V
65
+ E
66
66
  ]),
67
67
  _: 1
68
68
  })
@@ -70,5 +70,5 @@ const y = { class: "mn-b-thin t-transp p-medium" }, C = { class: "cols-1 mn-b-sm
70
70
  }
71
71
  };
72
72
  export {
73
- A as default
73
+ D as default
74
74
  };
@@ -1,13 +1,13 @@
1
- import { ref as n, computed as q, watch as v, openBlock as o, createElementBlock as p, createElementVNode as y, toDisplayString as U, createBlock as B, withCtx as f, createVNode as i, createCommentVNode as c, unref as h } from "vue";
1
+ import { ref as n, computed as _, watch as v, openBlock as o, createElementBlock as p, createElementVNode as f, toDisplayString as q, createBlock as U, withCtx as y, createVNode as i, createCommentVNode as c, unref as h } from "vue";
2
2
  import b from "../../../../components/Field/Field.vue.js";
3
3
  import w from "../../../../components/Select/Select.vue.js";
4
4
  /* empty css */
5
- import Q from "../../../icons/navigation/IconAdd.vue.js";
6
- import V from "../../../icons/navigation/IconDelete.vue.js";
7
- const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap flex" }, S = { class: "bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small" }, A = ["disabled"], E = {
5
+ import B from "../../../icons/navigation/IconAdd.vue.js";
6
+ import Q from "../../../icons/navigation/IconDelete.vue.js";
7
+ const V = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap flex" }, S = { class: "bg-white w-100 w-min-15r br-solid br-1px br-black-transp-5 pd-small radius-small" }, $ = ["disabled"], A = {
8
8
  key: 0,
9
9
  class: "gap-thin flex-nowrap flex"
10
- }, z = {
10
+ }, F = {
11
11
  __name: "CardPosition",
12
12
  props: {
13
13
  product: Object,
@@ -24,7 +24,7 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
24
24
  "update"
25
25
  ],
26
26
  setup(d, { emit: g }) {
27
- const t = d, m = g, r = n(null), e = n(1), l = n("pcs"), s = n(0), k = q(
27
+ const t = d, m = g, r = n(null), e = n(1), l = n("pcs"), s = n(0), k = _(
28
28
  () => r.value && e.value > 0 && s.value >= 0
29
29
  );
30
30
  v(t.array, () => {
@@ -53,10 +53,10 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
53
53
  type: l.value
54
54
  });
55
55
  }
56
- return (C, a) => (o(), p("div", _, [
57
- y("div", N, [
58
- y("div", S, U(r.value.name || r.value._id.name), 1),
59
- d.showPrice ? c("", !0) : (o(), B(b, {
56
+ return (C, a) => (o(), p("div", V, [
57
+ f("div", N, [
58
+ f("div", S, q(r.value.name || r.value._id.name), 1),
59
+ d.showPrice ? c("", !0) : (o(), U(b, {
60
60
  key: 0,
61
61
  field: e.value,
62
62
  "onUpdate:field": a[1] || (a[1] = (u) => e.value = u),
@@ -64,7 +64,7 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
64
64
  label: "Qty",
65
65
  class: "bg-white w-100 w-max-10r br-solid br-1px br-black-transp-5 pd-small radius-small"
66
66
  }, {
67
- default: f(() => [
67
+ default: y(() => [
68
68
  i(w, {
69
69
  select: l.value,
70
70
  "onUpdate:select": a[0] || (a[0] = (u) => l.value = u),
@@ -84,17 +84,17 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
84
84
  onClick: x,
85
85
  class: "bg-main aspect-1x1 radius-small pd-small"
86
86
  }, [
87
- i(h(Q), { class: "i-semi" })
88
- ], 8, A)),
87
+ i(h(B), { class: "i-semi" })
88
+ ], 8, $)),
89
89
  d.product ? (o(), p("button", {
90
90
  key: 2,
91
91
  onClick: P,
92
92
  class: "bg-red aspect-1x1 radius-small pd-small"
93
93
  }, [
94
- i(h(V), { class: "i-semi" })
94
+ i(h(Q), { class: "i-semi" })
95
95
  ])) : c("", !0)
96
96
  ]),
97
- d.showPrice ? (o(), p("div", E, [
97
+ d.showPrice ? (o(), p("div", A, [
98
98
  i(b, {
99
99
  field: s.value,
100
100
  "onUpdate:field": a[2] || (a[2] = (u) => s.value = u),
@@ -110,7 +110,7 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
110
110
  label: "Qty",
111
111
  class: "bg-white w-100 br-solid br-1px br-black-transp-5 pd-small radius-small"
112
112
  }, {
113
- default: f(() => [
113
+ default: y(() => [
114
114
  i(w, {
115
115
  select: l.value,
116
116
  "onUpdate:select": a[3] || (a[3] = (u) => l.value = u),
@@ -129,5 +129,5 @@ const _ = { class: "gap-thin" }, N = { class: "gap-thin mn-b-thin flex-nowrap fl
129
129
  }
130
130
  };
131
131
  export {
132
- z as default
132
+ F as default
133
133
  };
@@ -6,16 +6,16 @@ import { actions as g } from "../../store/leftovers.js";
6
6
  const h = { class: "flex-column flex-wrap block" }, k = {
7
7
  key: 0,
8
8
  class: "w-100"
9
- }, x = { class: "mn-r-regular w-100" }, w = ["onClick"], P = {
9
+ }, x = { class: "mn-r-regular w-100" }, w = ["onClick"], V = {
10
10
  __name: "LeftoverPositions",
11
11
  props: {
12
12
  order: Object
13
13
  },
14
14
  setup(n) {
15
15
  b(), _();
16
- const d = n;
17
- function m(s) {
18
- g.deleteItemFromLeftover(d.order.positions[s]);
16
+ const m = n;
17
+ function d(s) {
18
+ g.deleteItemFromLeftover(m.order.positions[s]);
19
19
  }
20
20
  return (s, v) => (l(), o("div", null, [
21
21
  i("ul", h, [
@@ -43,7 +43,7 @@ const h = { class: "flex-column flex-wrap block" }, k = {
43
43
  }, null, 8, ["field", "onUpdate:field", "symbol"]),
44
44
  i("a", {
45
45
  class: "button",
46
- onClick: (t) => m(c)
46
+ onClick: (t) => d(c)
47
47
  }, " Delete ", 8, w)
48
48
  ]))), 128))
49
49
  ])
@@ -51,5 +51,5 @@ const h = { class: "flex-column flex-wrap block" }, k = {
51
51
  }
52
52
  };
53
53
  export {
54
- P as default
54
+ V as default
55
55
  };
@@ -1,4 +1,4 @@
1
- import { computed as h, openBlock as o, createElementBlock as c, Fragment as m, createVNode as l, withCtx as u, createElementVNode as d, toDisplayString as _, unref as U, createTextVNode as C, renderList as b } from "vue";
1
+ import { computed as h, openBlock as o, createElementBlock as c, Fragment as m, createVNode as l, withCtx as u, createElementVNode as d, toDisplayString as y, unref as U, createTextVNode as C, renderList as b } from "vue";
2
2
  import { useRoute as k, useRouter as v } from "vue-router";
3
3
  import g from "../../../icons/navigation/IconDelete.vue.js";
4
4
  import S from "../../../../components/Button/Button.vue.js";
@@ -7,15 +7,15 @@ import i from "../../../../components/Field/Field.vue.js";
7
7
  import p from "../../../../components/Block/Block.vue.js";
8
8
  import { actions as f, state as t } from "../../store/categories.js";
9
9
  /* empty css */
10
- const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap gap-thin flex" }, F = { class: "flex-v-center flex-nowrap flex" }, L = /* @__PURE__ */ d("h4", { class: "mn-r-thin t-medium" }, "Localization", -1), R = ["onClick"], T = ["onClick"], V = ["onClick"], J = {
10
+ const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap gap-thin flex" }, L = { class: "flex-v-center flex-nowrap flex" }, F = /* @__PURE__ */ d("h4", { class: "mn-r-thin t-medium" }, "Localization", -1), R = ["onClick"], $ = ["onClick"], T = ["onClick"], J = {
11
11
  __name: "CategoryEdit",
12
- setup($) {
12
+ setup(V) {
13
13
  const n = k(), w = v();
14
14
  n.params.category ? f.fetchCategory(n.params.category) : f.resetCategory(), h(() => t.current), h(() => n.name);
15
15
  function x() {
16
16
  n.params.category ? f.updateCategory(n.params.category) : f.addCategory();
17
17
  }
18
- function y() {
18
+ function _() {
19
19
  w.push({
20
20
  name: "Categories Organization",
21
21
  params: {
@@ -26,10 +26,10 @@ const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap ga
26
26
  return (B, r) => (o(), c(m, null, [
27
27
  l(p, { class: "radius-big mn-b-thin flex-nowrap flex-v-center flex" }, {
28
28
  default: u(() => [
29
- d("h1", N, _(U(n).params.category ? "Edit Category" : "Add Category"), 1),
29
+ d("h1", N, y(U(n).params.category ? "Edit Category" : "Add Category"), 1),
30
30
  l(S, {
31
31
  submit: x,
32
- callback: y,
32
+ callback: _,
33
33
  class: "pd-small radius-big bg-main t-black uppercase t-medium"
34
34
  }, {
35
35
  default: u(() => [
@@ -81,8 +81,8 @@ const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap ga
81
81
  placeholder: "Display product",
82
82
  class: "pos-relative w-100 mn-b-small bg-white radius-small pd-medium"
83
83
  }, null, 8, ["select"]),
84
- d("div", F, [
85
- L,
84
+ d("div", L, [
85
+ F,
86
86
  d("button", {
87
87
  onClick: r[4] || (r[4] = () => t.current.localization.push({ locale: "", text: "" })),
88
88
  class: "i-small pd-thin button-delete button"
@@ -145,7 +145,7 @@ const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap ga
145
145
  class: "radius-small pd-small flex-center flex aspect-1x1 bg-red"
146
146
  }, [
147
147
  l(g, { class: "i-medium" })
148
- ], 8, T)
148
+ ], 8, $)
149
149
  ]))), 128))
150
150
  ]),
151
151
  _: 1
@@ -180,7 +180,7 @@ const N = { class: "mn-r-auto" }, z = { class: "mn-b-medium w-100 flex-nowrap ga
180
180
  class: "radius-small pd-small flex-center flex aspect-1x1 bg-red"
181
181
  }, [
182
182
  l(g, { class: "i-medium" })
183
- ], 8, V)
183
+ ], 8, T)
184
184
  ]))), 128))
185
185
  ]),
186
186
  _: 1
@@ -1,12 +1,12 @@
1
- import { ref as h, computed as z, onMounted as E, openBlock as l, createElementBlock as m, createElementVNode as n, toDisplayString as k, unref as b, createVNode as a, withCtx as c, Fragment as P, renderList as x, createBlock as $, createCommentVNode as U } from "vue";
1
+ import { ref as h, computed as z, onMounted as E, openBlock as l, createElementBlock as p, createElementVNode as n, toDisplayString as k, unref as b, createVNode as a, withCtx as c, Fragment as P, renderList as $, createBlock as x, createCommentVNode as U } from "vue";
2
2
  import v from "../../../../components/Block/Block.vue.js";
3
3
  import B from "../../../../components/Field/Field.vue.js";
4
- import F from "../../../../components/Feed/Feed.vue.js";
5
- import I from "../../../../components/Select/Select.vue.js";
6
- import O from "../../../../components/Popup/Popup.vue.js";
4
+ import I from "../../../../components/Feed/Feed.vue.js";
5
+ import O from "../../../../components/Select/Select.vue.js";
6
+ import V from "../../../../components/Popup/Popup.vue.js";
7
7
  /* empty css */
8
- import V from "../blocks/CardPosition.vue.js";
9
- import A from "../../../orders/components/blocks/CardOrderItem.vue.js";
8
+ import A from "../blocks/CardPosition.vue.js";
9
+ import F from "../../../orders/components/blocks/CardOrderItem.vue.js";
10
10
  import { useRoute as j, useRouter as q } from "vue-router";
11
11
  import { actions as y } from "../../../globals/store/globals.js";
12
12
  import { state as M } from "../../../auth/store/auth.js";
@@ -68,10 +68,10 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
68
68
  (s) => console.error("error")
69
69
  );
70
70
  }
71
- return (s, o) => (l(), m("div", H, [
71
+ return (s, o) => (l(), p("div", H, [
72
72
  n("header", J, [
73
73
  n("h2", K, k(b(t).params.leftover ? "Edit " : "Add ") + " Inventory", 1),
74
- a(I, {
74
+ a(O, {
75
75
  select: e.current.type,
76
76
  "onUpdate:select": o[0] || (o[0] = (r) => e.current.type = r),
77
77
  options: [
@@ -82,7 +82,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
82
82
  class: "bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"
83
83
  }, null, 8, ["select"])
84
84
  ]),
85
- a(O, {
85
+ a(V, {
86
86
  title: "Add position",
87
87
  onClosePopup: w,
88
88
  isPopupOpen: f.value,
@@ -90,7 +90,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
90
90
  }, {
91
91
  default: c(() => [
92
92
  n("div", Q, [
93
- a(F, {
93
+ a(I, {
94
94
  search: !0,
95
95
  states: {
96
96
  empty: {
@@ -110,7 +110,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
110
110
  default: c(({
111
111
  items: r
112
112
  }) => [
113
- (l(!0), m(P, null, x(r, (i, p) => (l(), $(A, {
113
+ (l(!0), p(P, null, $(r, (i, m) => (l(), x(F, {
114
114
  key: i._id,
115
115
  editable: !1,
116
116
  product: i,
@@ -137,19 +137,19 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
137
137
  class: "mn-b-semi"
138
138
  }, {
139
139
  default: c(() => [
140
- (l(!0), m(P, null, x(e.current.positions, (r, i) => (l(), $(V, {
140
+ (l(!0), p(P, null, $(e.current.positions, (r, i) => (l(), x(A, {
141
141
  key: r._id,
142
142
  product: r,
143
143
  array: e.current.positions,
144
144
  products: g.value,
145
- onUpdate: (p) => y.update(
145
+ onUpdate: (m) => y.update(
146
146
  e.current.positions,
147
- p,
147
+ m,
148
148
  i
149
149
  ),
150
- onDelete: (p) => y.delete(
150
+ onDelete: (m) => y.delete(
151
151
  e.current.positions,
152
- p,
152
+ m,
153
153
  i
154
154
  ),
155
155
  class: "mn-b-small radius-medium bg-white pd-small"
@@ -184,7 +184,7 @@ const H = { class: "pd-thin" }, J = { class: "mn-b-medium gap-small flex-v-cente
184
184
  class: "t-white bg-second button",
185
185
  onClick: o[3] || (o[3] = (r) => D())
186
186
  }, " Reset "),
187
- b(t).params.leftover ? (l(), m("a", {
187
+ b(t).params.leftover ? (l(), p("a", {
188
188
  key: 0,
189
189
  onClick: o[4] || (o[4] = (r) => R()),
190
190
  class: "t-white bg-red button"