@ozdao/prometheus-framework 0.1.61 → 0.1.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. package/dist/BackofficeGallery-30022293.js +1 -0
  2. package/dist/BackofficeGallery-f64daa0d.mjs +264 -0
  3. package/dist/BackofficeReports-cb4b180d.mjs +44 -0
  4. package/dist/BackofficeReports-d021871f.js +1 -0
  5. package/dist/BlockTags-8cddaef7.js +1 -0
  6. package/dist/BlockTags-ee310572.mjs +853 -0
  7. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  8. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  9. package/dist/Button-7643c9aa.js +1 -0
  10. package/dist/Button-9e1a9284.mjs +226 -0
  11. package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  12. package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  13. package/dist/ButtonToggleMembership-7ee4dc8e.mjs +90 -0
  14. package/dist/ButtonToggleMembership-b9352cec.js +1 -0
  15. package/dist/CardBlogpost-3c92fbc9.mjs +246 -0
  16. package/dist/CardBlogpost-c7364b1e.js +1 -0
  17. package/dist/CardOrganization-647cb571.js +1 -0
  18. package/dist/CardOrganization-facb77f7.mjs +234 -0
  19. package/dist/CardProduct-92affca1.js +1 -0
  20. package/dist/CardProduct-fca53299.mjs +193 -0
  21. package/dist/Checkbox-5dbe7b23.mjs +62 -0
  22. package/dist/Checkbox-76f09248.js +1 -0
  23. package/dist/Chips-0fdb31c9.js +1 -0
  24. package/dist/Chips-f1a0d085.mjs +214 -0
  25. package/dist/Community-534d473c.mjs +132 -0
  26. package/dist/Community-e9aff969.js +1 -0
  27. package/dist/Dashboard-91d73bc5.js +1 -0
  28. package/dist/Dashboard-ea9035bc.mjs +152 -0
  29. package/dist/Dropdown-31115457.js +1 -0
  30. package/dist/Dropdown-cab3605b.mjs +146 -0
  31. package/dist/EULA-aba6a807.js +1 -0
  32. package/dist/EULA-e05236af.mjs +4210 -0
  33. package/dist/EditOrder-94bbebff.mjs +221 -0
  34. package/dist/EditOrder-c070d474.js +1 -0
  35. package/dist/EmptyState-d65bab5b.js +1 -0
  36. package/dist/EmptyState-e404b05d.mjs +36 -0
  37. package/dist/Events-46ae8fc6.mjs +123 -0
  38. package/dist/Events-813c8c7b.js +1 -0
  39. package/dist/Feed-2d443ad2.mjs +146 -0
  40. package/dist/Feed-3a4e7a9c.js +1 -0
  41. package/dist/Feed-8b554fc1.js +1 -0
  42. package/dist/Feed-98b47c6f.js +1 -0
  43. package/dist/Feed-a21d6007.mjs +124 -0
  44. package/dist/Feed-b39138c8.js +1 -0
  45. package/dist/Feed-c41ef736.mjs +361 -0
  46. package/dist/Feed-d114330c.mjs +112 -0
  47. package/dist/Field-e2a43424.js +1 -0
  48. package/dist/Field-e5ad88d3.mjs +75 -0
  49. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
  50. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
  51. package/dist/Gallery-46b5f939.js +1 -0
  52. package/dist/Gallery-762a9c2d.mjs +241 -0
  53. package/dist/IconChevronRight-a55f838e.js +1 -0
  54. package/dist/IconChevronRight-fae9d012.mjs +28 -0
  55. package/dist/IconCommunity-468dc457.mjs +65 -0
  56. package/dist/IconCommunity-b339e806.js +1 -0
  57. package/dist/IconCross-5bf93179.js +1 -0
  58. package/dist/IconCross-84cb1292.mjs +28 -0
  59. package/dist/IconEdit-9edfd74d.mjs +21 -0
  60. package/dist/IconEdit-c0469b45.js +1 -0
  61. package/dist/Image-4dcfddb8.js +9 -0
  62. package/dist/Image-e0da17ac.mjs +571 -0
  63. package/dist/LabelGooglePlay-24feb437.mjs +31 -0
  64. package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
  65. package/dist/LeftoverAdd-5a8988d9.js +1 -0
  66. package/dist/LeftoverAdd-c4f37f47.mjs +227 -0
  67. package/dist/Leftovers-470a1689.js +1 -0
  68. package/dist/Leftovers-69c7dcd9.mjs +136 -0
  69. package/dist/Loader-21f016da.js +1 -0
  70. package/dist/Loader-cd422786.mjs +41 -0
  71. package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  72. package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  73. package/dist/Members-04273cd4.mjs +114 -0
  74. package/dist/Members-0685a15f.js +1 -0
  75. package/dist/Menu-b5d6a0c7.js +1 -0
  76. package/dist/Menu-dd7645c1.mjs +13 -0
  77. package/dist/MenuItem-56ae7f94.js +1 -0
  78. package/dist/MenuItem-6296d02f.mjs +63 -0
  79. package/dist/Orders-b64e8cb9.js +1 -0
  80. package/dist/Orders-ff30db05.mjs +75 -0
  81. package/dist/Organizations-46aab2c8.mjs +73 -0
  82. package/dist/Organizations-a8627bc5.js +1 -0
  83. package/dist/Payments-53e5fecf.js +1 -0
  84. package/dist/Payments-82e545e1.mjs +87 -0
  85. package/dist/PlaceholderUserpic-14c6ea7e.mjs +28 -0
  86. package/dist/PlaceholderUserpic-47f6f319.js +1 -0
  87. package/dist/Popup-0915427c.mjs +74 -0
  88. package/dist/Popup-795f5c88.js +1 -0
  89. package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  90. package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  91. package/dist/Product-7e001b81.js +7 -0
  92. package/dist/Product-f3f42158.mjs +653 -0
  93. package/dist/ProductEdit-959b3cd3.mjs +295 -0
  94. package/dist/ProductEdit-bae5e898.js +1 -0
  95. package/dist/ProductsBackoffice-0716123f.js +1 -0
  96. package/dist/ProductsBackoffice-a36ecbc6.mjs +85 -0
  97. package/dist/ProfileBlogposts-c790d1b2.js +1 -0
  98. package/dist/ProfileBlogposts-f43cf32e.mjs +79 -0
  99. package/dist/ProfileEvents-12f80fff.mjs +70 -0
  100. package/dist/ProfileEvents-585570a3.js +1 -0
  101. package/dist/ProfileOrganizations-bbc2cf40.mjs +73 -0
  102. package/dist/ProfileOrganizations-d7103514.js +1 -0
  103. package/dist/Publics-094f3c2c.mjs +45 -0
  104. package/dist/Publics-1032c0f4.js +1 -0
  105. package/dist/Select-11ddabf5.mjs +79 -0
  106. package/dist/Select-3ca5ab39.js +1 -0
  107. package/dist/SelectMulti-58704d69.mjs +1038 -0
  108. package/dist/SelectMulti-c25765cf.js +1 -0
  109. package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
  110. package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
  111. package/dist/SkeletonEvent-8690422d.mjs +16 -0
  112. package/dist/SkeletonEvent-eb284de8.js +1 -0
  113. package/dist/SkeletonEventShort-6c9e3940.js +1 -0
  114. package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
  115. package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
  116. package/dist/SkeletonOrganization-8690422d.mjs +16 -0
  117. package/dist/Socials-31c06635.mjs +74 -0
  118. package/dist/Socials-cceaeaf2.js +1 -0
  119. package/dist/Tab-054b61f7.mjs +46 -0
  120. package/dist/Tab-2c1e4224.js +1 -0
  121. package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  122. package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  123. package/dist/Upload-06d93178.js +1 -0
  124. package/dist/Upload-23212d9d.mjs +74 -0
  125. package/dist/UploadImage-0f488170.js +1 -0
  126. package/dist/UploadImage-3c627d89.mjs +83 -0
  127. package/dist/UploadImageMultiple-cb6c7188.mjs +58 -0
  128. package/dist/UploadImageMultiple-eddaac87.js +1 -0
  129. package/dist/Wallet-2043b611.mjs +24682 -0
  130. package/dist/Wallet-8fa7386a.js +55 -0
  131. package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
  132. package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
  133. package/dist/auth-56dc2ba7.mjs +607 -0
  134. package/dist/auth-f018f5b3.js +7 -0
  135. package/dist/auth.client.cjs +7 -0
  136. package/dist/auth.client.js +3874 -0
  137. package/dist/auth.validation-c31a60e7.mjs +24 -0
  138. package/dist/auth.validation-d049b341.js +1 -0
  139. package/dist/backoffice.client.cjs +1 -0
  140. package/dist/backoffice.client.js +265 -0
  141. package/dist/carousel.es-44c501bc.mjs +383 -0
  142. package/dist/carousel.es-cdfb392c.js +5 -0
  143. package/dist/categories-5b08da53.mjs +121 -0
  144. package/dist/categories-7ccd6be9.js +1 -0
  145. package/dist/click-outside-0b0727d1.js +2 -0
  146. package/dist/click-outside-6101836c.mjs +19 -0
  147. package/dist/community.client.cjs +1 -0
  148. package/dist/community.client.js +692 -0
  149. package/dist/dribbble-8e8e169b.js +1 -0
  150. package/dist/dribbble-ae37c2ac.mjs +127 -0
  151. package/dist/events.client.cjs +2 -0
  152. package/dist/events.client.js +8885 -0
  153. package/dist/files.client.cjs +1 -0
  154. package/dist/files.client.js +1 -0
  155. package/dist/gallery-d4297191.mjs +54 -0
  156. package/dist/gallery-f92912df.js +1 -0
  157. package/dist/gallery.client.cjs +1 -0
  158. package/dist/gallery.client.js +18 -0
  159. package/dist/globals-928eb13c.js +1 -0
  160. package/dist/globals-96ba60e4.mjs +91 -0
  161. package/dist/globals.client.cjs +1 -0
  162. package/dist/globals.client.js +12 -0
  163. package/dist/icons.client.cjs +1 -0
  164. package/dist/icons.client.js +84 -0
  165. package/dist/index-a661083c.mjs +934 -0
  166. package/dist/index-b41aac19.js +2 -0
  167. package/dist/inputs.validation-d7cef32b.js +1 -0
  168. package/dist/inputs.validation-db65277a.mjs +83 -0
  169. package/dist/landing.client.cjs +1 -0
  170. package/dist/landing.client.js +111 -0
  171. package/dist/leftovers-5d1ff88b.mjs +67 -0
  172. package/dist/leftovers-b60180cf.js +1 -0
  173. package/dist/legal.client.cjs +1 -0
  174. package/dist/legal.client.js +8512 -0
  175. package/dist/memberships-12210953.mjs +68 -0
  176. package/dist/memberships-393765d8.js +1 -0
  177. package/dist/middlewares.client.cjs +1 -0
  178. package/dist/middlewares.client.js +1 -0
  179. package/dist/orders-13c10d49.mjs +85 -0
  180. package/dist/orders-37f041aa.js +1 -0
  181. package/dist/organizations-587d5a4d.mjs +122 -0
  182. package/dist/organizations-b4d902a2.js +1 -0
  183. package/dist/organizations.client-35b74e44.mjs +2997 -0
  184. package/dist/organizations.client-f982f55a.js +3 -0
  185. package/dist/organizations.client.cjs +1 -0
  186. package/dist/organizations.client.js +86 -0
  187. package/dist/products-3c43eb18.js +1 -0
  188. package/dist/products-943fb95e.mjs +107 -0
  189. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  190. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
  191. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  192. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
  193. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  194. package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
  195. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  196. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
  197. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  198. package/dist/prometheus-framework/src/modules/auth/store/auth.js +75 -93
  199. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  200. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  201. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  202. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  203. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
  204. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
  205. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
  206. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
  207. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  208. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  209. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  210. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  211. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  212. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  213. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  214. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  215. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  216. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  217. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  218. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  219. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  220. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  221. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  222. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  223. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  224. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  225. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  226. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  227. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  228. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  229. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  230. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  231. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  232. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  233. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  234. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  235. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
  236. package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.js +1 -1
  237. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  238. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  239. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  240. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  241. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  242. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  243. package/dist/prometheus-framework.cjs.js +19 -19
  244. package/dist/prometheus-framework.es.js +2208 -2198
  245. package/dist/reports-270f69df.js +1 -0
  246. package/dist/reports-79cd9459.mjs +91 -0
  247. package/dist/reports.client.cjs +1 -0
  248. package/dist/reports.client.js +8 -0
  249. package/dist/states.validation-3b70f83a.js +1 -0
  250. package/dist/states.validation-944e334c.mjs +13 -0
  251. package/dist/style.css +1 -1
  252. package/dist/users.client.cjs +1 -0
  253. package/dist/users.client.js +632 -0
  254. package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
  255. package/dist/vue-draggable-next.esm-bundler-ff6e3f52.mjs +1557 -0
  256. package/dist/vuex.esm-bundler-57d8b6ba.mjs +750 -0
  257. package/dist/vuex.esm-bundler-685cf29f.js +5 -0
  258. package/package.json +1 -1
  259. package/src/modules/auth/store/auth.js +20 -20
@@ -1,5 +1,5 @@
1
1
  import { ref as r, openBlock as o, createElementBlock as i, createElementVNode as p, Fragment as d, renderList as _, createVNode as c, withCtx as f } from "vue";
2
- import g from "../../../../components/Popup/Popup.vue2.js";
2
+ import g from "../../../../components/Popup/Popup.vue.js";
3
3
  import h from "../../../../components/Magnifier/Magnifier.vue.js";
4
4
  import "./ImagesThumbnails.vue2.js";
5
5
  import v from "../../../../../../_virtual/_plugin-vue_export-helper.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");const h=require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const _=require("../blocks/LeftoverPositions.vue.cjs"),v=require("../blocks/CardPosition.vue.cjs"),l=require("vue-router"),t=require("../../store/leftovers.cjs"),i=require("../../store/products.cjs");require("./LeftoverAdd.vue2.cjs");const y=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory")],-1),N=e.createElementVNode("h5",{class:"mn-small"},"Select Type",-1),V=e.createElementVNode("h5",{class:"mn-small"},"Add Position",-1),k={class:"mn-semi gap-thin flex-nowrap flex"},q={class:"gap-thin flex-v-center flex-nojustify flex"},E={class:"mn-r-auto"},g={__name:"LeftoverAdd",setup(b){const s=l.useRoute(),n=l.useRouter(),c=e.ref(i.state.all),u=e.computed(()=>t.state.current.positions.reduce((r,o)=>r+o.price*(o.quantity||1),0));e.onMounted(async()=>{if(s.params._id)try{await t.actions.fetch(s.params._id)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const r=await i.actions.read({organization:"65141c476cf9860013b49f6d"});c.value=r}catch{console.error("error")}});function d(){s.params._id?t.actions.fetch(s.params._id):t.state.current={type:"",order:"",positions:[]}}function m(r){t.actions.addProductToLeftover(r)}function f(){s.params._id?t.actions.update(t.state.current).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error")):t.actions.create(t.state.current).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error"))}function p(){t.actions.delete(s.params._id).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error"))}return(r,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y,N,e.createVNode(h.default,{select:t.state.current.type,"onUpdate:select":o[0]||(o[0]=a=>t.state.current.type=a),options:["stock-in","stock-out","write-off"],placeholder:"Select type",class:"mn-semi bg-grey pd-medium radius-small"},null,8,["select"]),V,e.createElementVNode("div",k,[e.createVNode(v.default,{onAdd:m,products:c.value},null,8,["products"])]),e.createElementVNode("h5",{class:"mn-small"},[e.createTextVNode(" Invetory Sheet "),e.createElementVNode("a",{class:"mn-l-thin t-main",onClick:d}," Reset ")]),e.createVNode(_.default,{order:t.state.current,products:c.value,class:"mn-semi"},null,8,["order","products"]),e.createElementVNode("section",q,[e.createElementVNode("h3",E," In total: "+e.toDisplayString(r.formatPrice(e.unref(u))),1),e.createElementVNode("a",{onClick:o[1]||(o[1]=a=>f()),class:"bg-main button"}," Save "),e.unref(s).params._id?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:o[2]||(o[2]=a=>p()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])],64))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");const h=require("../../../../components/Select/Select.vue.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const _=require("../blocks/LeftoverPositions.vue.cjs"),v=require("../blocks/CardPosition.vue.cjs"),l=require("vue-router"),t=require("../../store/leftovers.cjs"),i=require("../../store/products.cjs");require("./LeftoverAdd.vue2.cjs");const y=e.createElementVNode("header",{class:"mn-medium flex-v-center flex-nowrap flex"},[e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory")],-1),N=e.createElementVNode("h5",{class:"mn-small"},"Select Type",-1),V=e.createElementVNode("h5",{class:"mn-small"},"Add Position",-1),k={class:"mn-semi gap-thin flex-nowrap flex"},q={class:"gap-thin flex-v-center flex-nojustify flex"},E={class:"mn-r-auto"},g={__name:"LeftoverAdd",setup(b){const s=l.useRoute(),n=l.useRouter(),c=e.ref(i.state.all),u=e.computed(()=>t.state.current.positions.reduce((r,o)=>r+o.price*(o.quantity||1),0));e.onMounted(async()=>{if(s.params._id)try{await t.actions.fetch(s.params._id)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const r=await i.actions.read({organization:"65141c476cf9860013b49f6d"});c.value=r}catch{console.error("error")}});function d(){s.params._id?t.actions.fetch(s.params._id):t.state.current={type:"",order:"",positions:[]}}function m(r){t.actions.addProductToLeftover(r)}function f(){s.params._id?t.actions.update(t.state.current).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error")):t.actions.create(t.state.current).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error"))}function p(){t.actions.delete(s.params._id).then(()=>n.push({name:"Backoffice Leftovers"}),r=>console.error("error"))}return(r,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y,N,e.createVNode(h.default,{select:t.state.current.type,"onUpdate:select":o[0]||(o[0]=a=>t.state.current.type=a),options:["stock-in","stock-out","write-off"],placeholder:"Select type",class:"mn-semi bg-grey pd-medium radius-small"},null,8,["select"]),V,e.createElementVNode("div",k,[e.createVNode(v.default,{onAdd:m,products:c.value},null,8,["products"])]),e.createElementVNode("h5",{class:"mn-small"},[e.createTextVNode(" Invetory Sheet "),e.createElementVNode("a",{class:"mn-l-thin t-main",onClick:d}," Reset ")]),e.createVNode(_.default,{order:t.state.current,products:c.value,class:"mn-semi"},null,8,["order","products"]),e.createElementVNode("section",q,[e.createElementVNode("h3",E," In total: "+e.toDisplayString(r.formatPrice(e.unref(u))),1),e.createElementVNode("a",{onClick:o[1]||(o[1]=a=>f()),class:"bg-main button"}," Save "),e.unref(s).params._id?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:o[2]||(o[2]=a=>p()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])],64))}};exports.default=g;
@@ -1,6 +1,6 @@
1
1
  import { ref as y, computed as k, onMounted as x, openBlock as m, createElementBlock as u, Fragment as g, createVNode as l, createElementVNode as r, createTextVNode as b, toDisplayString as S, unref as d, createCommentVNode as w } from "vue";
2
2
  import "../../../../components/Field/Field.vue.js";
3
- import L from "../../../../components/Select/Select.vue2.js";
3
+ import L from "../../../../components/Select/Select.vue.js";
4
4
  import "../../../../components/SelectMulti/SelectMulti.vue2.js";
5
5
  import P from "../blocks/LeftoverPositions.vue.js";
6
6
  import $ from "../blocks/CardPosition.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),g=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");const N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");const E=require("../sections/EditProductInfo.vue.cjs"),i=require("../sections/EditParameters.vue.cjs"),V=require("../sections/EditProductImages.vue.cjs"),t=require("../../store/products.cjs"),d=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const v={class:"for-transition w-100"},q={class:"pd-b-zero pd-t-zero pd-thin"},k={class:"pd-thin"},y={class:"flex-nowrap flex bg-grey pd-medium radius-big"},B={key:0,class:"mn-r-auto"},x={key:1,class:"mn-r-auto"},P={class:"flex-nowrap flex pd-thin"},w={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},z={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},I=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),C={class:"mn-semi"},A=e.createElementVNode("h5",null,"Categories",-1),L={class:""},M={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},S=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),R={__name:"ProductEdit",async setup(T){let a,r;const o=c.useRoute(),l=c.useRouter();[a,r]=e.withAsyncContext(()=>d.actions.fetchCategories()),await a,r(),o.params.product&&([a,r]=e.withAsyncContext(()=>t.actions.read({_id:o.params.product})),await a,r());function u(){t.state.current.information.push({name:"",value:""})}function m(s){t.state.current.information.splice(s,1)}function p(){t.state.current.localization.push({locale:"",text:""})}function _(s){t.state.current.localization.splice(s,1)}function h(){o.params.product?t.actions.update(o.params.product,t.state.current):t.actions.create(o.params._id,t.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:o.params._id,product:t.state.current._id}})}return(s,D)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",q,[e.createVNode(g.default,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",k,[e.createElementVNode("header",y,[e.unref(o).params.product?(e.openBlock(),e.createElementBlock("h1",B,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",x,"Create Product")),e.createElementVNode("section",P,[e.createVNode(b.default,{submit:h,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",w,[e.createElementVNode("div",z,[I,e.createVNode(E.default,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",C,[A,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.state.all,(n,$)=>(e.openBlock(),e.createBlock(N.default,{label:n.name,name:"categories",value:n.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(i.default,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:u,onDeleteInfo:m},null,8,["items"]),e.createVNode(i.default,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:p,onDeleteInfo:_},null,8,["items"])]),e.createElementVNode("div",L,[e.createElementVNode("div",M,[S,e.createVNode(V.default,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=R;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),g=require("../../../../components/Breadcrumbs/Breadcrumbs.vue2.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue2.cjs");const N=require("../../../../components/Checkbox/Checkbox.vue.cjs"),b=require("../../../../components/Button/Button.vue2.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue2.cjs");const E=require("../sections/EditProductInfo.vue.cjs"),i=require("../sections/EditParameters.vue.cjs"),V=require("../sections/EditProductImages.vue.cjs"),t=require("../../store/products.cjs"),d=require("../../store/categories.cjs");require("./ProductEdit.vue2.cjs");const v={class:"for-transition w-100"},q={class:"pd-b-zero pd-t-zero pd-thin"},k={class:"pd-thin"},y={class:"flex-nowrap flex bg-grey pd-medium radius-big"},B={key:0,class:"mn-r-auto"},x={key:1,class:"mn-r-auto"},P={class:"flex-nowrap flex pd-thin"},w={class:"pd-b-zero pd-t-zero pd-thin cols-2 gap-thin"},z={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},I=e.createElementVNode("h3",{class:"mn-semi"},"Profile",-1),C={class:"mn-semi"},A=e.createElementVNode("h5",null,"Categories",-1),L={class:""},M={class:"mn-thin bg-grey pd-medium o-hidden radius-big"},S=e.createElementVNode("h3",{class:"mn-semi"},"Images",-1),R={__name:"ProductEdit",async setup(T){let a,r;const o=c.useRoute(),l=c.useRouter();[a,r]=e.withAsyncContext(()=>d.actions.fetchCategories()),await a,r(),o.params.product&&([a,r]=e.withAsyncContext(()=>t.actions.read({_id:o.params.product})),await a,r());function u(){t.state.current.information.push({name:"",value:""})}function m(s){t.state.current.information.splice(s,1)}function p(){t.state.current.localization.push({locale:"",text:""})}function _(s){t.state.current.localization.splice(s,1)}function h(){o.params.product?t.actions.update(o.params.product,t.state.current):t.actions.create(o.params._id,t.state.current)}function f(){l.push({name:"ProductEdit",params:{_id:o.params._id,product:t.state.current._id}})}return(s,D)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",q,[e.createVNode(g.default,{class:"pd-medium bg-grey radius-big"})]),e.createElementVNode("div",k,[e.createElementVNode("header",y,[e.unref(o).params.product?(e.openBlock(),e.createElementBlock("h1",B,"Edit Product")):(e.openBlock(),e.createElementBlock("h1",x,"Create Product")),e.createElementVNode("section",P,[e.createVNode(b.default,{submit:h,callback:f},{default:e.withCtx(()=>[e.createTextVNode("Save Product")]),_:1})])])]),e.createElementVNode("div",w,[e.createElementVNode("div",z,[I,e.createVNode(E.default,{product:t.state.current},null,8,["product"]),e.createElementVNode("div",C,[A,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.state.all,(n,$)=>(e.openBlock(),e.createBlock(N.default,{label:n.name,name:"categories",value:n.url,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:t.state.current.category},null,8,["label","value","radio"]))),256))]),e.createVNode(i.default,{items:t.state.current.information,title:"Parameters",emptyMessage:"No parameters",addButtonLabel:"Add parameter",keyName:"name",valueName:"value",onAddInfo:u,onDeleteInfo:m},null,8,["items"]),e.createVNode(i.default,{items:t.state.current.localization,title:"Localization",emptyMessage:"No localizations",addButtonLabel:"Add localization",keyName:"locale",valueName:"text",onAddInfo:p,onDeleteInfo:_},null,8,["items"])]),e.createElementVNode("div",L,[e.createElementVNode("div",M,[S,e.createVNode(V.default,{product:t.state.current},null,8,["product"])])])])]))}};exports.default=R;
@@ -3,11 +3,11 @@ import { useRoute as I, useRouter as P } from "vue-router";
3
3
  import $ from "../../../../components/Breadcrumbs/Breadcrumbs.vue2.js";
4
4
  import "../../../../components/Tab/Tab.vue.js";
5
5
  import "../../../../components/Field/Field.vue.js";
6
- import "../../../../components/Select/Select.vue.js";
6
+ import "../../../../components/Select/Select.vue2.js";
7
7
  import C from "../../../../components/Checkbox/Checkbox.vue.js";
8
8
  import L from "../../../../components/Button/Button.vue2.js";
9
9
  import "vue-i18n";
10
- import "../../../../components/Popup/Popup.vue.js";
10
+ import "../../../../components/Popup/Popup.vue2.js";
11
11
  import A from "../sections/EditProductInfo.vue.js";
12
12
  import u from "../sections/EditParameters.vue.js";
13
13
  import B from "../sections/EditProductImages.vue.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Button/Button.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs"),n=require("../../../../components/Select/Select.vue2.cjs"),o=require("../../../../../../node_modules/vuex/dist/vuex.esm-bundler.cjs"),a={class:"mn-big flex-column flex"},i={__name:"EditProductInfo",props:{product:Object},setup(u){const d=u,t=o.useStore();return e.toRefs(d),(c,r)=>(e.openBlock(),e.createElementBlock("div",a,[e.createTextVNode(e.toDisplayString(e.unref(t).products.current)+" ",1),e.createVNode(n.default,{options:["unpublished","published","archivied"],select:e.unref(t).products.state.current.status,"onUpdate:select":r[0]||(r[0]=s=>e.unref(t).products.state.current.status=s),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(l.default,{field:e.unref(t).products.state.current.name,"onUpdate:field":r[1]||(r[1]=s=>e.unref(t).products.state.current.name=s),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(l.default,{field:e.unref(t).products.state.current.price,"onUpdate:field":r[2]||(r[2]=s=>e.unref(t).products.state.current.price=s),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(l.default,{field:e.unref(t).products.state.current.description,"onUpdate:field":r[3]||(r[3]=s=>e.unref(t).products.state.current.description=s),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}};exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Button/Button.vue.cjs");const l=require("../../../../components/Field/Field.vue2.cjs"),n=require("../../../../components/Select/Select.vue.cjs"),o=require("../../../../../../node_modules/vuex/dist/vuex.esm-bundler.cjs"),a={class:"mn-big flex-column flex"},i={__name:"EditProductInfo",props:{product:Object},setup(u){const d=u,t=o.useStore();return e.toRefs(d),(c,r)=>(e.openBlock(),e.createElementBlock("div",a,[e.createTextVNode(e.toDisplayString(e.unref(t).products.current)+" ",1),e.createVNode(n.default,{options:["unpublished","published","archivied"],select:e.unref(t).products.state.current.status,"onUpdate:select":r[0]||(r[0]=s=>e.unref(t).products.state.current.status=s),placeholder:"Display product",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["select"]),e.createVNode(l.default,{field:e.unref(t).products.state.current.name,"onUpdate:field":r[1]||(r[1]=s=>e.unref(t).products.state.current.name=s),placeholder:"Введите название",class:"w-100 mn-small bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(l.default,{field:e.unref(t).products.state.current.price,"onUpdate:field":r[2]||(r[2]=s=>e.unref(t).products.state.current.price=s),placeholder:"Введите цену",class:"w-100 mn-small bg-white radius-small pd-medium",type:"number"},null,8,["field"]),e.createVNode(l.default,{field:e.unref(t).products.state.current.description,"onUpdate:field":r[3]||(r[3]=s=>e.unref(t).products.state.current.description=s),placeholder:"Введите описание",class:"w-100 mn-small bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])]))}};exports.default=i;
@@ -1,7 +1,7 @@
1
1
  import { toRefs as p, openBlock as u, createElementBlock as n, createTextVNode as a, toDisplayString as c, unref as t, createVNode as l } from "vue";
2
2
  import "../../../../components/Button/Button.vue.js";
3
3
  import d from "../../../../components/Field/Field.vue2.js";
4
- import m from "../../../../components/Select/Select.vue2.js";
4
+ import m from "../../../../components/Select/Select.vue.js";
5
5
  import { useStore as f } from "../../../../../../node_modules/vuex/dist/vuex.esm-bundler.js";
6
6
  const b = { class: "mn-big flex-column flex" }, S = {
7
7
  __name: "EditProductInfo",
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue2.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../store/reports.cjs"),g=e.createElementVNode("h3",{class:"mn-small"}," Report Content ",-1),b=e.createElementVNode("p",{class:"p-medium mn-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),h=e.createElementVNode("p",{class:"p-medium mn-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),v={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(l){const t=l,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function i(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:o[0]||(o[0]=n=>u())},[e.renderSlot(p.$slots,"default")]),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[g,b,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[1]||(o[1]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),h,e.createVNode(d.default,{submit:i,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])],64))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Popup/Popup.vue.cjs"),d=require("../../../../components/Button/Button.vue2.cjs"),m=require("../../../../components/Select/Select.vue.cjs"),f=require("../../store/reports.cjs"),g=e.createElementVNode("h3",{class:"mn-small"}," Report Content ",-1),b=e.createElementVNode("p",{class:"p-medium mn-small"}," We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ",-1),h=e.createElementVNode("p",{class:"p-medium mn-small"},"Our moderators will review your report within 24 hours and take action if it violates our policies.",-1),v={__name:"FormReport",props:{user:{type:String,required:!1},type:{type:String,required:!1},reason:{type:String,required:!1},target:{type:String,required:!0},text:{type:String,default:"!"},status:{type:String,default:"new"}},setup(l){const t=l,r=e.reactive({user:t.user,type:t.type,reason:t.reason,target:t.target,status:t.status});function i(){r.user===null&&delete r.user,f.actions.create(r)}const s=e.ref(!1);function u(){s.value=!0}function a(){s.value=!1}return(p,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:o[0]||(o[0]=n=>u())},[e.renderSlot(p.$slots,"default")]),e.createVNode(c.default,{onClosePopup:a,isPopupOpen:s.value,class:"w-m-33r t-left pd-big bg-white radius-big"},{default:e.withCtx(()=>[g,b,e.createVNode(m.default,{select:r.reason,"onUpdate:select":o[1]||(o[1]=n=>r.reason=n),options:["harassment","spam","inappropriate","misinformation","copyright","other"],placeholder:"Select reason",class:"mn-small bg-white br-solid br-black-transp br-1px uppercase pd-medium t-semi bg-white t-black radius-medium"},null,8,["select"]),h,e.createVNode(d.default,{submit:i,callback:a,class:"w-100 bg-black t-white"},{default:e.withCtx(()=>[e.createTextVNode(" Report ")]),_:1})]),_:1},8,["isPopupOpen"])],64))}};exports.default=v;
@@ -1,7 +1,7 @@
1
1
  import { reactive as d, ref as f, openBlock as g, createElementBlock as b, Fragment as h, createElementVNode as o, renderSlot as y, createVNode as a, withCtx as l, createTextVNode as _ } from "vue";
2
- import v from "../../../../components/Popup/Popup.vue2.js";
2
+ import v from "../../../../components/Popup/Popup.vue.js";
3
3
  import w from "../../../../components/Button/Button.vue2.js";
4
- import S from "../../../../components/Select/Select.vue2.js";
4
+ import S from "../../../../components/Select/Select.vue.js";
5
5
  import { actions as k } from "../../store/reports.js";
6
6
  const P = /* @__PURE__ */ o("h3", { class: "mn-small" }, " Report Content ", -1), R = /* @__PURE__ */ o("p", { class: "p-medium mn-small" }, " We strive to maintain a safe and comfortable environment for all users. If you encounter content that you believe violates our guidelines, please report it: ", -1), x = /* @__PURE__ */ o("p", { class: "p-medium mn-small" }, "Our moderators will review your report within 24 hours and take action if it violates our policies.", -1), V = {
7
7
  __name: "FormReport",