@ozdao/prometheus-framework 0.1.62 → 0.1.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) 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.cjs.js +19 -19
  190. package/dist/prometheus-framework.es.js +2208 -2198
  191. package/dist/reports-270f69df.js +1 -0
  192. package/dist/reports-79cd9459.mjs +91 -0
  193. package/dist/reports.client.cjs +1 -0
  194. package/dist/reports.client.js +8 -0
  195. package/dist/states.validation-3b70f83a.js +1 -0
  196. package/dist/states.validation-944e334c.mjs +13 -0
  197. package/dist/style.css +1 -1
  198. package/dist/users.client.cjs +1 -0
  199. package/dist/users.client.js +632 -0
  200. package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
  201. package/dist/vue-draggable-next.esm-bundler-ff6e3f52.mjs +1557 -0
  202. package/dist/vuex.esm-bundler-57d8b6ba.mjs +750 -0
  203. package/dist/vuex.esm-bundler-685cf29f.js +5 -0
  204. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ import { useRouter as u } from "vue-router";
2
+ import { s as i } from "./auth-56dc2ba7.mjs";
3
+ u();
4
+ function a(r, o, s) {
5
+ if (i.access.status !== !0)
6
+ return s("/auth/signin");
7
+ s();
8
+ }
9
+ function f(r, o, s) {
10
+ var e;
11
+ if (((e = i.access.roles) != null && e.includes("ROLE_ADMIN") ? i.access.roles.includes("ROLE_ADMIN") : !1) !== !0)
12
+ return s("/404");
13
+ s();
14
+ }
15
+ function m(r, o, s) {
16
+ if (i.access.status)
17
+ return s("/profile/" + i.user._id);
18
+ s();
19
+ }
20
+ export {
21
+ a,
22
+ m as b,
23
+ f as r
24
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("vue-router"),e=require("./auth-f018f5b3.js");o.useRouter();function n(t,i,s){if(e.state.access.status!==!0)return s("/auth/signin");s()}function c(t,i,s){var u;if(((u=e.state.access.roles)!=null&&u.includes("ROLE_ADMIN")?e.state.access.roles.includes("ROLE_ADMIN"):!1)!==!0)return s("/404");s()}function a(t,i,s){if(e.state.access.status)return s("/profile/"+e.state.user._id);s()}exports.requiresAdmin=c;exports.requiresAuth=n;exports.requiresNoAuth=a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./_plugin-vue_export-helper-f246444f.js"),o=require("./auth.validation-d049b341.js");require("vue-router");require("./auth-f018f5b3.js");require("./index-b41aac19.js");require("./globals-928eb13c.js");require("vue-i18n");const c={},s={id:"account",class:"cols-1 gap-medium pd-medium"},m={class:"w-100"};function u(t,p){const r=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("section",s,[e.createElementVNode("div",m,[e.createVNode(r,null,{default:e.withCtx(({Component:n,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{ref:"page",key:i.path}))]),_:2},1024)]),_:1})])])}const f=a._export_sfc(c,[["render",u]]),l=[{path:"backoffice",component:f,beforeEnter:[o.requiresAdmin],children:[{path:"",name:"Backoffice",meta:{title:{en:"Backoffice",ru:"Управление"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Dashboard-91d73bc5.js"))},{path:"gallery",name:"Backoffice Gallery",meta:{title:{en:"Backoffice Gallery",ru:"Управление Галерей"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./BackofficeGallery-30022293.js"))},{path:"reports",name:"Backoffice Reports",meta:{title:{en:"Backoffice Reports",ru:"Управление Жалобами"}},component:()=>Promise.resolve().then(()=>require("./BackofficeReports-d021871f.js"))},{path:"organizations",name:"Backoffice Organizations",meta:{title:{en:"Backoffice Organizations",ru:"Управление Организациями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Organizations-a8627bc5.js"))},{path:"events",name:"Backoffice Events",meta:{title:{en:"Backoffice Events",ru:"Управление Событиями"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Events-813c8c7b.js")).then(t=>t.Events)},{path:"community",name:"Backoffice Community",meta:{title:{en:"Backoffice Community",ru:"Управление Сообществом"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Community-e9aff969.js"))},{path:"products",name:"Backoffice Products",meta:{title:{en:"Backoffice Products",ru:"Управление Продуктами"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./ProductsBackoffice-0716123f.js"))},{path:"products/add",name:"AddProduct",component:()=>Promise.resolve().then(()=>require("./ProductEdit-bae5e898.js"))},{path:"products/:product",name:"Product Backofffice",meta:{title:{en:"Product",ru:"Продукт"}},component:()=>Promise.resolve().then(()=>require("./Product-7e001b81.js"))},{path:"products/:product/edit",name:"ProductEdit",beforeEnter:[o.requiresAuth],component:()=>Promise.resolve().then(()=>require("./ProductEdit-bae5e898.js"))},{path:"leftovers",name:"Backoffice Leftovers",meta:{title:{en:"Backoffice Leftovers",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Leftovers-470a1689.js"))},{path:"leftovers/add",name:"LeftoverAdd",meta:{title:{en:"Backoffice Leftovers",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./LeftoverAdd-5a8988d9.js"))},{path:"leftovers/:_id",name:"LeftoverEdit",meta:{title:{en:"Backoffice Leftovers",ru:"Управление Остатками"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./LeftoverAdd-5a8988d9.js"))},{path:"orders",name:"Backoffice Orders",meta:{title:{en:"Backoffice Orders",ru:"Управление Заказами"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Orders-b64e8cb9.js"))},{path:"orders/add",name:"AdminOrder",component:()=>Promise.resolve().then(()=>require("./EditOrder-c070d474.js"))},{path:"orders/:_id",name:"AdminOrderEdit",component:()=>Promise.resolve().then(()=>require("./EditOrder-c070d474.js"))},{path:"payments",name:"Backoffice Payments",meta:{title:{en:"Backoffice Payments",ru:"Управление Платежами"},authorize:[]},component:()=>Promise.resolve().then(()=>require("./Payments-53e5fecf.js"))}]}];exports.backofficeRoutes=l;
@@ -0,0 +1,265 @@
1
+ import { resolveComponent as i, openBlock as t, createElementBlock as m, createElementVNode as p, createVNode as o, withCtx as r, Transition as f, createBlock as s, resolveDynamicComponent as u } from "vue";
2
+ import { _ as d } from "./_plugin-vue_export-helper-dad06003.mjs";
3
+ import { r as l, a as h } from "./auth.validation-c31a60e7.mjs";
4
+ import "vue-router";
5
+ import "./auth-56dc2ba7.mjs";
6
+ import "./index-a661083c.mjs";
7
+ import "./globals-96ba60e4.mjs";
8
+ import "vue-i18n";
9
+ const k = {}, B = {
10
+ id: "account",
11
+ class: "cols-1 gap-medium pd-medium"
12
+ }, _ = { class: "w-100" };
13
+ function v(e, z) {
14
+ const a = i("router-view");
15
+ return t(), m("section", B, [
16
+ p("div", _, [
17
+ o(a, null, {
18
+ default: r(({ Component: n, route: c }) => [
19
+ o(f, {
20
+ name: "scaleIn",
21
+ mode: "out-in"
22
+ }, {
23
+ default: r(() => [
24
+ (t(), s(u(n), {
25
+ ref: "page",
26
+ key: c.path
27
+ }))
28
+ ]),
29
+ _: 2
30
+ }, 1024)
31
+ ]),
32
+ _: 1
33
+ })
34
+ ])
35
+ ]);
36
+ }
37
+ const y = /* @__PURE__ */ d(k, [["render", v]]), b = [{
38
+ path: "backoffice",
39
+ component: y,
40
+ beforeEnter: [
41
+ l
42
+ ],
43
+ children: [
44
+ {
45
+ path: "",
46
+ name: "Backoffice",
47
+ meta: {
48
+ title: {
49
+ en: "Backoffice",
50
+ ru: "Управление"
51
+ },
52
+ authorize: []
53
+ },
54
+ component: () => import(
55
+ /* webpackChunkName: 'BackofficeGallery' */
56
+ "./Dashboard-ea9035bc.mjs"
57
+ )
58
+ },
59
+ {
60
+ path: "gallery",
61
+ name: "Backoffice Gallery",
62
+ meta: {
63
+ title: {
64
+ en: "Backoffice Gallery",
65
+ ru: "Управление Галерей"
66
+ },
67
+ authorize: []
68
+ },
69
+ component: () => import(
70
+ /* webpackChunkName: 'BackofficeGallery' */
71
+ "./BackofficeGallery-f64daa0d.mjs"
72
+ )
73
+ },
74
+ {
75
+ path: "reports",
76
+ name: "Backoffice Reports",
77
+ meta: {
78
+ title: {
79
+ en: "Backoffice Reports",
80
+ ru: "Управление Жалобами"
81
+ }
82
+ },
83
+ component: () => import(
84
+ /* webpackChunkName: 'BackofficeGallery' */
85
+ "./BackofficeReports-cb4b180d.mjs"
86
+ )
87
+ },
88
+ {
89
+ path: "organizations",
90
+ name: "Backoffice Organizations",
91
+ meta: {
92
+ title: {
93
+ en: "Backoffice Organizations",
94
+ ru: "Управление Организациями"
95
+ },
96
+ authorize: []
97
+ },
98
+ component: () => import(
99
+ /* webpackChunkName: 'BackofficeOrganizations' */
100
+ "./Organizations-46aab2c8.mjs"
101
+ )
102
+ },
103
+ {
104
+ path: "events",
105
+ name: "Backoffice Events",
106
+ meta: {
107
+ title: {
108
+ en: "Backoffice Events",
109
+ ru: "Управление Событиями"
110
+ },
111
+ authorize: []
112
+ },
113
+ component: () => import(
114
+ /* webpackChunkName: 'BackofficeEvents' */
115
+ "./Events-46ae8fc6.mjs"
116
+ ).then((e) => e.E)
117
+ },
118
+ {
119
+ path: "community",
120
+ name: "Backoffice Community",
121
+ meta: {
122
+ title: {
123
+ en: "Backoffice Community",
124
+ ru: "Управление Сообществом"
125
+ },
126
+ authorize: []
127
+ },
128
+ component: () => import(
129
+ /* webpackChunkName: 'BackofficeCommunity' */
130
+ "./Community-534d473c.mjs"
131
+ )
132
+ },
133
+ {
134
+ path: "products",
135
+ name: "Backoffice Products",
136
+ meta: {
137
+ title: {
138
+ en: "Backoffice Products",
139
+ ru: "Управление Продуктами"
140
+ },
141
+ authorize: []
142
+ },
143
+ component: () => import(
144
+ /* webpackChunkName: 'BackofficeProducts' */
145
+ "./ProductsBackoffice-a36ecbc6.mjs"
146
+ )
147
+ },
148
+ {
149
+ path: "products/add",
150
+ name: "AddProduct",
151
+ component: () => import("./ProductEdit-959b3cd3.mjs")
152
+ },
153
+ {
154
+ path: "products/:product",
155
+ name: "Product Backofffice",
156
+ meta: {
157
+ title: {
158
+ en: "Product",
159
+ ru: "Продукт"
160
+ }
161
+ },
162
+ component: () => import("./Product-f3f42158.mjs")
163
+ },
164
+ {
165
+ path: "products/:product/edit",
166
+ name: "ProductEdit",
167
+ beforeEnter: [h],
168
+ component: () => import("./ProductEdit-959b3cd3.mjs")
169
+ },
170
+ {
171
+ path: "leftovers",
172
+ name: "Backoffice Leftovers",
173
+ meta: {
174
+ title: {
175
+ en: "Backoffice Leftovers",
176
+ ru: "Управление Остатками"
177
+ },
178
+ authorize: []
179
+ },
180
+ component: () => import(
181
+ /* webpackChunkName: 'BackofficeLeftovers' */
182
+ "./Leftovers-69c7dcd9.mjs"
183
+ )
184
+ },
185
+ {
186
+ path: "leftovers/add",
187
+ name: "LeftoverAdd",
188
+ meta: {
189
+ title: {
190
+ en: "Backoffice Leftovers",
191
+ ru: "Управление Остатками"
192
+ },
193
+ authorize: []
194
+ },
195
+ component: () => import(
196
+ /* webpackChunkName: 'LeftoverEdit' */
197
+ "./LeftoverAdd-c4f37f47.mjs"
198
+ )
199
+ },
200
+ {
201
+ path: "leftovers/:_id",
202
+ name: "LeftoverEdit",
203
+ meta: {
204
+ title: {
205
+ en: "Backoffice Leftovers",
206
+ ru: "Управление Остатками"
207
+ },
208
+ authorize: []
209
+ },
210
+ component: () => import(
211
+ /* webpackChunkName: 'LeftoverEdit' */
212
+ "./LeftoverAdd-c4f37f47.mjs"
213
+ )
214
+ },
215
+ {
216
+ path: "orders",
217
+ name: "Backoffice Orders",
218
+ meta: {
219
+ title: {
220
+ en: "Backoffice Orders",
221
+ ru: "Управление Заказами"
222
+ },
223
+ authorize: []
224
+ },
225
+ component: () => import(
226
+ /* webpackChunkName: 'BackofficeOrders' */
227
+ "./Orders-ff30db05.mjs"
228
+ )
229
+ },
230
+ {
231
+ path: "orders/add",
232
+ name: "AdminOrder",
233
+ component: () => import(
234
+ /* webpackChunkName: 'AdminOrders' */
235
+ "./EditOrder-94bbebff.mjs"
236
+ )
237
+ },
238
+ {
239
+ path: "orders/:_id",
240
+ name: "AdminOrderEdit",
241
+ component: () => import(
242
+ /* webpackChunkName: 'AdminOrders' */
243
+ "./EditOrder-94bbebff.mjs"
244
+ )
245
+ },
246
+ {
247
+ path: "payments",
248
+ name: "Backoffice Payments",
249
+ meta: {
250
+ title: {
251
+ en: "Backoffice Payments",
252
+ ru: "Управление Платежами"
253
+ },
254
+ authorize: []
255
+ },
256
+ component: () => import(
257
+ /* webpackChunkName: 'BackofficePayments' */
258
+ "./Payments-82e545e1.mjs"
259
+ )
260
+ }
261
+ ]
262
+ }];
263
+ export {
264
+ b as backofficeRoutes
265
+ };
@@ -0,0 +1,383 @@
1
+ import { defineComponent as ce, ref as r, reactive as L, provide as T, onMounted as Se, nextTick as ge, onUnmounted as we, computed as W, watch as de, watchEffect as ye, h as P, withModifiers as re, inject as I } from "vue";
2
+ /**
3
+ * Vue 3 Carousel 0.1.48
4
+ * (c) 2022
5
+ * @license MIT
6
+ */
7
+ const f = {
8
+ itemsToShow: 1,
9
+ itemsToScroll: 1,
10
+ modelValue: 0,
11
+ transition: 300,
12
+ autoplay: 0,
13
+ snapAlign: "center",
14
+ wrapAround: !1,
15
+ pauseAutoplayOnHover: !1,
16
+ mouseDrag: !0,
17
+ touchDrag: !0,
18
+ dir: "ltr",
19
+ breakpoints: void 0
20
+ }, ue = {
21
+ // count of items to showed per view
22
+ itemsToShow: {
23
+ default: f.itemsToShow,
24
+ type: Number
25
+ },
26
+ // count of items to be scrolled
27
+ itemsToScroll: {
28
+ default: f.itemsToScroll,
29
+ type: Number
30
+ },
31
+ // control infinite scrolling mode
32
+ wrapAround: {
33
+ default: f.wrapAround,
34
+ type: Boolean
35
+ },
36
+ // control snap position alignment
37
+ snapAlign: {
38
+ default: f.snapAlign,
39
+ validator(t) {
40
+ return ["start", "end", "center", "center-even", "center-odd"].includes(t);
41
+ }
42
+ },
43
+ // sliding transition time in ms
44
+ transition: {
45
+ default: f.transition,
46
+ type: Number
47
+ },
48
+ // an object to store breakpoints
49
+ breakpoints: {
50
+ default: f.breakpoints,
51
+ type: Object
52
+ },
53
+ // time to auto advance slides in ms
54
+ autoplay: {
55
+ default: f.autoplay,
56
+ type: Number
57
+ },
58
+ // pause autoplay when mouse hover over the carousel
59
+ pauseAutoplayOnHover: {
60
+ default: f.pauseAutoplayOnHover,
61
+ type: Boolean
62
+ },
63
+ // slide number number of initial slide
64
+ modelValue: {
65
+ default: void 0,
66
+ type: Number
67
+ },
68
+ // toggle mouse dragging.
69
+ mouseDrag: {
70
+ default: f.mouseDrag,
71
+ type: Boolean
72
+ },
73
+ // toggle mouse dragging.
74
+ touchDrag: {
75
+ default: f.touchDrag,
76
+ type: Boolean
77
+ },
78
+ // control snap position alignment
79
+ dir: {
80
+ default: f.dir,
81
+ validator(t) {
82
+ return ["rtl", "ltr"].includes(t);
83
+ }
84
+ },
85
+ // an object to pass all settings
86
+ settings: {
87
+ default() {
88
+ return {};
89
+ },
90
+ type: Object
91
+ }
92
+ };
93
+ function xe(t, l) {
94
+ let o;
95
+ return function(...a) {
96
+ o && clearTimeout(o), o = setTimeout(() => {
97
+ t(...a), o = null;
98
+ }, l);
99
+ };
100
+ }
101
+ function be(t, l) {
102
+ let o;
103
+ return function(...a) {
104
+ const g = this;
105
+ o || (t.apply(g, a), o = !0, setTimeout(() => o = !1, l));
106
+ };
107
+ }
108
+ function Te(t) {
109
+ var l, o, a;
110
+ return t ? ((o = (l = t[0]) === null || l === void 0 ? void 0 : l.type) === null || o === void 0 ? void 0 : o.name) === "CarouselSlide" ? t : ((a = t[0]) === null || a === void 0 ? void 0 : a.children) || [] : [];
111
+ }
112
+ function Me(t, l) {
113
+ if (t.wrapAround)
114
+ return l - 1;
115
+ switch (t.snapAlign) {
116
+ case "start":
117
+ return l - t.itemsToShow;
118
+ case "end":
119
+ return l - 1;
120
+ case "center":
121
+ case "center-odd":
122
+ return l - Math.ceil(t.itemsToShow / 2);
123
+ case "center-even":
124
+ return l - Math.ceil(t.itemsToShow / 2);
125
+ default:
126
+ return 0;
127
+ }
128
+ }
129
+ function Ae(t) {
130
+ if (t.wrapAround)
131
+ return 0;
132
+ switch (t.snapAlign) {
133
+ case "start":
134
+ return 0;
135
+ case "end":
136
+ return t.itemsToShow - 1;
137
+ case "center":
138
+ case "center-odd":
139
+ return Math.floor((t.itemsToShow - 1) / 2);
140
+ case "center-even":
141
+ return Math.floor((t.itemsToShow - 2) / 2);
142
+ default:
143
+ return 0;
144
+ }
145
+ }
146
+ function se(t, l, o, a) {
147
+ return t.wrapAround ? l : Math.min(Math.max(l, a), o);
148
+ }
149
+ function Oe({ slidesBuffer: t, currentSlide: l, snapAlign: o, itemsToShow: a, wrapAround: g, slidesCount: p }) {
150
+ let c = t.indexOf(l);
151
+ if (c === -1 && (c = t.indexOf(Math.ceil(l))), o === "center" || o === "center-odd" ? c -= (a - 1) / 2 : o === "center-even" ? c -= (a - 2) / 2 : o === "end" && (c -= a - 1), !g) {
152
+ const w = p - a, y = 0;
153
+ c = Math.max(Math.min(c, w), y);
154
+ }
155
+ return c;
156
+ }
157
+ var ke = ce({
158
+ name: "Carousel",
159
+ props: ue,
160
+ setup(t, { slots: l, emit: o, expose: a }) {
161
+ var g;
162
+ const p = r(null), c = r([]), w = r([]), y = r(0), u = r(1);
163
+ let x, k, M = r({}), h = Object.assign({}, f);
164
+ const n = L(Object.assign({}, h)), d = r((g = n.modelValue) !== null && g !== void 0 ? g : 0), fe = r(0), z = r(0), O = r(0), _ = r(0);
165
+ T("config", n), T("slidesBuffer", w), T("slidesCount", u), T("currentSlide", d), T("maxSlide", O), T("minSlide", _);
166
+ function R() {
167
+ const e = Object.assign(Object.assign({}, t), t.settings);
168
+ M = r(Object.assign({}, e.breakpoints)), h = Object.assign(Object.assign({}, e), { settings: void 0, breakpoints: void 0 }), G(h);
169
+ }
170
+ function E() {
171
+ const e = Object.keys(M.value).map((s) => Number(s)).sort((s, m) => +m - +s);
172
+ let i = Object.assign({}, h);
173
+ e.some((s) => window.matchMedia(`(min-width: ${s}px)`).matches ? (i = Object.assign(Object.assign({}, i), M.value[s]), !0) : !1), G(i);
174
+ }
175
+ function G(e) {
176
+ for (let i in e)
177
+ n[i] = e[i];
178
+ }
179
+ const ve = xe(() => {
180
+ M.value && (E(), C()), D();
181
+ }, 16);
182
+ function D() {
183
+ if (!p.value)
184
+ return;
185
+ const e = p.value.getBoundingClientRect();
186
+ y.value = e.width / n.itemsToShow;
187
+ }
188
+ function C() {
189
+ u.value = Math.max(c.value.length, 1), !(u.value <= 0) && (z.value = Math.ceil((u.value - 1) / 2), O.value = Me(n, u.value), _.value = Ae(n), d.value = se(n, d.value, O.value, _.value));
190
+ }
191
+ function B() {
192
+ const e = [...Array(u.value).keys()];
193
+ if (n.wrapAround && n.itemsToShow + 1 <= u.value) {
194
+ let m = (n.itemsToShow !== 1 ? Math.round((u.value - n.itemsToShow) / 2) : 0) - d.value;
195
+ if (n.snapAlign === "end" ? m += Math.floor(n.itemsToShow - 1) : (n.snapAlign === "center" || n.snapAlign === "center-odd") && m++, m < 0)
196
+ for (let S = m; S < 0; S++)
197
+ e.push(Number(e.shift()));
198
+ else
199
+ for (let S = 0; S < m; S++)
200
+ e.unshift(Number(e.pop()));
201
+ }
202
+ w.value = e;
203
+ }
204
+ Se(() => {
205
+ M.value && (E(), C()), ge(() => setTimeout(D, 16)), K(), window.addEventListener("resize", ve, { passive: !0 });
206
+ }), we(() => {
207
+ k && clearTimeout(k), x && clearInterval(x);
208
+ });
209
+ let v = !1;
210
+ const V = { x: 0, y: 0 }, N = { x: 0, y: 0 }, A = L({ x: 0, y: 0 }), X = r(!1), me = () => {
211
+ X.value = !0;
212
+ }, he = () => {
213
+ X.value = !1;
214
+ };
215
+ function q(e) {
216
+ v = e.type === "touchstart", !(!v && e.button !== 0 || j.value) && (v || e.preventDefault(), V.x = v ? e.touches[0].clientX : e.clientX, V.y = v ? e.touches[0].clientY : e.clientY, document.addEventListener(v ? "touchmove" : "mousemove", F, !0), document.addEventListener(v ? "touchend" : "mouseup", J, !0));
217
+ }
218
+ const F = be((e) => {
219
+ N.x = v ? e.touches[0].clientX : e.clientX, N.y = v ? e.touches[0].clientY : e.clientY;
220
+ const i = N.x - V.x, s = N.y - V.y;
221
+ A.y = s, A.x = i;
222
+ }, 16);
223
+ function J() {
224
+ const e = n.dir === "rtl" ? -1 : 1, i = Math.sign(A.x) * 0.4, s = Math.round(A.x / y.value + i) * e;
225
+ let m = se(n, d.value - s, O.value, _.value);
226
+ if (s && !v) {
227
+ const S = ($) => {
228
+ $.stopPropagation(), window.removeEventListener("click", S, !0);
229
+ };
230
+ window.addEventListener("click", S, !0);
231
+ }
232
+ b(m), A.x = 0, A.y = 0, document.removeEventListener(v ? "touchmove" : "mousemove", F, !0), document.removeEventListener(v ? "touchend" : "mouseup", J, !0);
233
+ }
234
+ function K() {
235
+ !n.autoplay || n.autoplay <= 0 || (x = setInterval(() => {
236
+ n.pauseAutoplayOnHover && X.value || H();
237
+ }, n.autoplay));
238
+ }
239
+ function Q() {
240
+ x && (clearInterval(x), x = null), K();
241
+ }
242
+ const j = r(!1);
243
+ function b(e, i = !1) {
244
+ if (d.value === e || j.value)
245
+ return;
246
+ Q();
247
+ const s = u.value - 1;
248
+ if (e > s)
249
+ return b(e - u.value);
250
+ if (e < 0)
251
+ return b(e + u.value);
252
+ j.value = !0, fe.value = d.value, d.value = e, i || o("update:modelValue", d.value), k = setTimeout(() => {
253
+ n.wrapAround && B(), j.value = !1;
254
+ }, n.transition);
255
+ }
256
+ function H() {
257
+ let e = d.value + n.itemsToScroll;
258
+ n.wrapAround || (e = Math.min(e, O.value)), b(e);
259
+ }
260
+ function Z() {
261
+ let e = d.value - n.itemsToScroll;
262
+ n.wrapAround || (e = Math.max(e, _.value)), b(e);
263
+ }
264
+ const ee = { slideTo: b, next: H, prev: Z };
265
+ T("nav", ee);
266
+ const te = W(() => Oe({
267
+ slidesBuffer: w.value,
268
+ itemsToShow: n.itemsToShow,
269
+ snapAlign: n.snapAlign,
270
+ wrapAround: !!n.wrapAround,
271
+ currentSlide: d.value,
272
+ slidesCount: u.value
273
+ }));
274
+ T("slidesToScroll", te);
275
+ const pe = W(() => {
276
+ const e = n.dir === "rtl" ? -1 : 1, i = te.value * y.value * e;
277
+ return {
278
+ transform: `translateX(${A.x - i}px)`,
279
+ transition: `${j.value ? n.transition : 0}ms`
280
+ };
281
+ });
282
+ function ne() {
283
+ R();
284
+ }
285
+ function le() {
286
+ R(), E(), C(), B(), D(), Q();
287
+ }
288
+ function oe() {
289
+ C(), B();
290
+ }
291
+ Object.keys(ue).forEach((e) => {
292
+ ["modelValue"].includes(e) || de(() => t[e], le);
293
+ }), ne(), ye(() => {
294
+ const e = u.value !== c.value.length;
295
+ t.modelValue !== void 0 && d.value !== t.modelValue && b(Number(t.modelValue), !0), e && oe();
296
+ });
297
+ const ae = {
298
+ config: n,
299
+ slidesBuffer: w,
300
+ slidesCount: u,
301
+ slideWidth: y,
302
+ currentSlide: d,
303
+ maxSlide: O,
304
+ minSlide: _,
305
+ middleSlide: z
306
+ };
307
+ a({
308
+ updateBreakpointsConfigs: E,
309
+ updateSlidesData: C,
310
+ updateSlideWidth: D,
311
+ updateSlidesBuffer: B,
312
+ initCarousel: ne,
313
+ restartCarousel: le,
314
+ updateCarousel: oe,
315
+ slideTo: b,
316
+ next: H,
317
+ prev: Z,
318
+ nav: ee,
319
+ data: ae
320
+ });
321
+ const Y = l.default || l.slides, U = l.addons, ie = L(ae);
322
+ return () => {
323
+ const e = Te(Y == null ? void 0 : Y(ie)), i = (U == null ? void 0 : U(ie)) || [];
324
+ c.value = e, e.forEach((S, $) => S.props.index = $);
325
+ const s = P("ol", {
326
+ class: "carousel__track",
327
+ style: pe.value,
328
+ onMousedown: n.mouseDrag ? re(q, ["capture"]) : null,
329
+ onTouchstart: n.touchDrag ? re(q, ["capture"]) : null
330
+ }, e), m = P("div", { class: "carousel__viewport" }, s);
331
+ return P("section", {
332
+ ref: p,
333
+ class: {
334
+ carousel: !0,
335
+ "carousel--rtl": n.dir === "rtl"
336
+ },
337
+ dir: n.dir,
338
+ "aria-label": "Gallery",
339
+ onMouseenter: me,
340
+ onMouseleave: he
341
+ }, [m, i]);
342
+ };
343
+ }
344
+ }), Ce = ce({
345
+ name: "CarouselSlide",
346
+ props: {
347
+ index: {
348
+ type: Number,
349
+ default: 1
350
+ }
351
+ },
352
+ setup(t, { slots: l }) {
353
+ const o = I("config", L(Object.assign({}, f))), a = I("slidesBuffer", r([])), g = I("currentSlide", r(0)), p = I("slidesToScroll", r(0)), c = r(t.index);
354
+ o.wrapAround && (w(), de(a, w));
355
+ function w() {
356
+ c.value = a.value.indexOf(t.index);
357
+ }
358
+ const y = W(() => ({
359
+ width: `${1 / o.itemsToShow * 100}%`,
360
+ order: c.value.toString()
361
+ })), u = () => t.index === g.value, x = () => {
362
+ const h = Math.ceil(p.value), n = Math.floor(p.value + o.itemsToShow);
363
+ return a.value.slice(h, n).includes(t.index);
364
+ }, k = () => t.index === a.value[Math.ceil(p.value) - 1], M = () => t.index === a.value[Math.floor(p.value + o.itemsToShow)];
365
+ return () => {
366
+ var h;
367
+ return P("li", {
368
+ style: y.value,
369
+ class: {
370
+ carousel__slide: !0,
371
+ "carousel__slide--active": u(),
372
+ "carousel__slide--visible": x(),
373
+ "carousel__slide--prev": k(),
374
+ "carousel__slide--next": M()
375
+ }
376
+ }, (h = l.default) === null || h === void 0 ? void 0 : h.call(l));
377
+ };
378
+ }
379
+ });
380
+ export {
381
+ ke as C,
382
+ Ce as S
383
+ };