@ozdao/prometheus-framework 0.2.250 → 0.2.251

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/dist/builder.js +8 -9
  2. package/dist/builder.mjs +8 -9
  3. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  4. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +1 -1
  5. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  7. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +1 -1
  9. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
  11. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +1 -1
  12. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +1 -1
  13. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  17. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +1 -1
  19. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  21. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  23. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  25. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  27. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  29. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +2 -2
  30. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +2 -2
  31. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  33. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +0 -1
  36. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs.map +1 -1
  37. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +0 -1
  38. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js.map +1 -1
  39. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  41. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.cjs.map +1 -1
  45. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js +1 -1
  46. package/dist/prometheus-framework/src/modules/events/components/pages/EventsBackoffice.vue.js.map +1 -1
  47. package/dist/prometheus-framework/src/modules/events/events.client.cjs +35 -13
  48. package/dist/prometheus-framework/src/modules/events/events.client.cjs.map +1 -1
  49. package/dist/prometheus-framework/src/modules/events/events.client.js +41 -19
  50. package/dist/prometheus-framework/src/modules/events/events.client.js.map +1 -1
  51. package/dist/prometheus-framework/src/modules/events/router/events.cjs +95 -91
  52. package/dist/prometheus-framework/src/modules/events/router/events.cjs.map +1 -1
  53. package/dist/prometheus-framework/src/modules/events/router/events.js +94 -90
  54. package/dist/prometheus-framework/src/modules/events/router/events.js.map +1 -1
  55. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
  56. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  57. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  75. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +2 -2
  78. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js +2 -2
  79. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +2 -10
  86. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs.map +1 -1
  87. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +3 -11
  88. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js.map +1 -1
  89. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +590 -590
  90. package/dist/prometheus-framework/src/modules/pages/pages.client.js +590 -590
  91. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  113. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  117. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +2 -2
  118. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +2 -2
  119. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +2 -2
  122. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  123. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +1 -1
  125. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
  127. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
  130. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  131. package/package.json +1 -1
  132. package/src/builder/webpack/webpack.config.spa.js +7 -7
  133. package/src/modules/events/components/elements/ButtonCheck.vue +11 -11
  134. package/src/modules/events/components/pages/EventsBackoffice.vue +1 -1
  135. package/src/modules/events/events.client.js +43 -18
  136. package/src/modules/events/router/events.js +79 -66
  137. package/src/modules/governance/governance.client.js +62 -0
  138. package/src/modules/governance/governance.server.js +56 -0
  139. package/src/modules/organizations/router/organizations.js +4 -11
@@ -1 +1 @@
1
- {"version":3,"file":"EventsBackoffice.vue.js","sources":["../../../../../../../src/modules/events/components/pages/EventsBackoffice.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"pd-thin\"\n\t>\n\t\t<header \n\t\t\tclass=\"mn-b-medium flex-v-center flex-nowrap flex\"\n\t\t>\n\t \t<h2\n\t \t\tclass=\"mn-r-medium\"\n\t \t>\n\t \t\tEvents\n\t \t</h2>\n\t \t\n\t \t<button \n\t \t\tv-if=\"auth.state.user._id === route.params.user || route.params._id\"\n\t \t\t@click=\"router.push({name: 'Create Event'})\" \n\t \t\tclass=\"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second\"\n\t \t>\n\t \t\t+\n\t \t</button>\n\t\t</header>\n\n\t\t<Tab \n\t\t\tv-if=\"route.params._id\"\n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'My', \tvalue: 'owner' },\n\t\t\t\t{ name: 'Participant', \tvalue: 'participant' },\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-small o-hidden h5 radius-big bg-light\"\n\t\t/>\n\n\t\t\n\n\t\t<Feed\n :states=\"{\n empty: {\n title: 'No Events Found',\n description: 'Currently, there are no events available.'\n }\n }\"\n :store=\"{\n read: (options) => events.read(options),\n }\"\n :options=\"{\n user: auth.state.user._id,\n owner: route.params._id || route.params.user,\n creator: route.params.user\n }\"\n v-slot=\"{ \n items \n }\"\n >\n <CardEvent \n @click=\"$router.push({name: 'Event', params: {url: event.url}})\" \n v-for=\"(event,index) in items\" \n :key=\"event._id\" \n :event=\"event\" \n :user=\"auth.state.user._id\" \n :type=\"'normal'\"\n class=\"bg-light radius-big mn-b-medium\"\n >\n\n\t\t <div \n\t\t v-if=\"route.params._id && hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t class=\"mn-b-semi w-100 bg-second button t-white uppercase\"\n\t\t @click.stop=\"router.push({\n\t\t name: 'Edit Event Tickets',\n\t\t params: {\n\t\t url: event.url\n\t\t }\n\t\t })\"\n\t\t >\n\t\t Check tickets\n\t\t </div>\n </CardEvent>\n </Feed>\n\n <!-- <Feed \n\t\t\tv-if=\"tabOrganization ==='owner'\"\n\t \t:user=\"auth.state.user._id\"\n\t\t\t:creator=\"route.params.user\"\n\t\t\t:owner=\"route.params._id\"\n\t\t\t:sortOrder=\"'asc'\"\n\t\t/> -->\n\n\n\t\t<!-- <Feed \n\t\t\tv-if=\"tabOrganization ==='participant'\"\n \t\t:user=\"auth.state.user._id\"\n \t\t:participant=\"route.params.user\"\n \t\t:owner=\"route.params._id\"\n\t\t\t:sortOrder=\"'desc'\"\n\t\t/> -->\n\t</div>\n</template>\n\n<script setup>\n\timport { watch, ref } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Components\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardEvent from '@pf/src/modules/events/components/blocks/CardEvent.vue';\n\n\timport * as auth from '@pf/src/modules/auth/views/store/auth';\n\timport * as events from '@pf/src/modules/events/store/events.js'; \n\t// Accessing router\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// State\n\tlet tab = route.query.tab ? route.query.tab : 'owner';\n\n\tconst tabOrganization = ref(tab)\n\n\troute.query.tab = tabOrganization.value\n\n\twatch(tabOrganization, (newValue) => {\n\t router.replace({ query: { ...route.query, tab: newValue } });\n\t});\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;AA6GC,UAAM,QAAQ,SAAU;AACxB,UAAM,SAAS,UAAW;AAE1B,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,kBAAkB,IAAI,GAAG;AAE/B,UAAM,MAAM,MAAM,gBAAgB;AAElC,UAAM,iBAAiB,CAAC,aAAa;AACnC,aAAO,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,KAAK,SAAU,EAAA,CAAE;AAAA,IAC9D,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"EventsBackoffice.vue.js","sources":["../../../../../../../src/modules/events/components/pages/EventsBackoffice.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"pd-thin\"\n\t>\n\t\t<header \n\t\t\tclass=\"mn-b-medium flex-v-center flex-nowrap flex\"\n\t\t>\n\t \t<h2\n\t \t\tclass=\"mn-r-medium\"\n\t \t>\n\t \t\tEvents\n\t \t</h2>\n\t \t\n\t \t<button \n\t \t\tv-if=\"auth.state.user._id === route.params.user || route.params._id\"\n\t \t\t@click=\"router.push({name: 'Create Event'})\" \n\t \t\tclass=\"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second\"\n\t \t>\n\t \t\t+\n\t \t</button>\n\t\t</header>\n\n\t\t<Tab \n\t\t\tv-if=\"route.params._id\"\n\t\t\tv-model:selected=\"tabOrganization\"\n\t\t\t:tabs=\"[\n\t\t\t\t{ name: 'My', \tvalue: 'owner' },\n\t\t\t\t{ name: 'Participant', \tvalue: 'participant' },\t\n\t\t\t]\"\n\t\t\tclass=\"mn-b-small o-hidden h5 radius-big bg-light\"\n\t\t/>\n\n\t\t\n\n\t\t<Feed\n :states=\"{\n empty: {\n title: 'No Events Found',\n description: 'Currently, there are no events available.'\n }\n }\"\n :store=\"{\n read: (options) => events.read(options),\n }\"\n :options=\"{\n user: auth.state.user._id,\n owner: route.params._id || route.params.user,\n creator: route.params.user\n }\"\n v-slot=\"{ \n items \n }\"\n >\n <CardEvent \n @click=\"$router.push({name: 'Event', params: {url: event.url}})\" \n v-for=\"(event,index) in items\" \n :key=\"event._id\" \n :event=\"event\" \n :user=\"auth.state.user._id\" \n :type=\"'normal'\"\n class=\"bg-light radius-big mn-b-medium\"\n >\n\n\t\t <div \n\t\t v-if=\"route.params._id && hasAccess(route.params._id, 'gallery', 'read', auth.state.accesses)\"\n\t\t class=\"mn-b-semi w-100 bg-second button t-white uppercase\"\n\t\t @click.stop=\"router.push({\n\t\t name: 'Edit Event Tickets',\n\t\t params: {\n\t\t url: event.url\n\t\t }\n\t\t })\"\n\t\t >\n\t\t Manage Tickets\n\t\t </div>\n </CardEvent>\n </Feed>\n\n <!-- <Feed \n\t\t\tv-if=\"tabOrganization ==='owner'\"\n\t \t:user=\"auth.state.user._id\"\n\t\t\t:creator=\"route.params.user\"\n\t\t\t:owner=\"route.params._id\"\n\t\t\t:sortOrder=\"'asc'\"\n\t\t/> -->\n\n\n\t\t<!-- <Feed \n\t\t\tv-if=\"tabOrganization ==='participant'\"\n \t\t:user=\"auth.state.user._id\"\n \t\t:participant=\"route.params.user\"\n \t\t:owner=\"route.params._id\"\n\t\t\t:sortOrder=\"'desc'\"\n\t\t/> -->\n\t</div>\n</template>\n\n<script setup>\n\timport { watch, ref } from 'vue'\n\timport { useRoute, useRouter } from 'vue-router'\n\t// Components\n\timport Tab \t\tfrom '@pf/src/components/Tab/Tab.vue'\n import Feed from '@pf/src/components/Feed/Feed.vue'\n\n import CardEvent from '@pf/src/modules/events/components/blocks/CardEvent.vue';\n\n\timport * as auth from '@pf/src/modules/auth/views/store/auth';\n\timport * as events from '@pf/src/modules/events/store/events.js'; \n\t// Accessing router\n\tconst route = useRoute()\n\tconst router = useRouter()\n\t// State\n\tlet tab = route.query.tab ? route.query.tab : 'owner';\n\n\tconst tabOrganization = ref(tab)\n\n\troute.query.tab = tabOrganization.value\n\n\twatch(tabOrganization, (newValue) => {\n\t router.replace({ query: { ...route.query, tab: newValue } });\n\t});\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;AA6GC,UAAM,QAAQ,SAAU;AACxB,UAAM,SAAS,UAAW;AAE1B,QAAI,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM,MAAM;AAE9C,UAAM,kBAAkB,IAAI,GAAG;AAE/B,UAAM,MAAM,MAAM,gBAAgB;AAElC,UAAM,iBAAiB,CAAC,aAAa;AACnC,aAAO,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,KAAK,SAAU,EAAA,CAAE;AAAA,IAC9D,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const events = require("./store/events.cjs");
4
+ const events$1 = require("./router/events.cjs");
3
5
  const CardEvent = require("./components/blocks/CardEvent.vue.cjs");
4
6
  const Feed = require("./components/sections/Feed.vue.cjs");
5
7
  const List = require("./components/sections/List.vue.cjs");
@@ -8,16 +10,36 @@ const layoutEvents = require("./components/layouts/layoutEvents.vue.cjs");
8
10
  const EditEvent = require("./components/pages/EditEvent.vue.cjs");
9
11
  const Event = require("./components/pages/Event.vue.cjs");
10
12
  const Events = require("./components/pages/Events.vue.cjs");
11
- const events = require("./store/events.cjs");
12
- const events$1 = require("./router/events.cjs");
13
- exports.CardEvent = CardEvent.default;
14
- exports.Feed = Feed.default;
15
- exports.List = List.default;
16
- exports.FeaturedEvents = FeaturedEvents.default;
17
- exports.EventsLayout = layoutEvents.default;
18
- exports.EditEvent = EditEvent.default;
19
- exports.EventPage = Event.default;
20
- exports.EventsPage = Events.default;
21
- exports.eventsStore = events;
22
- exports.eventsRoutes = events$1.default;
13
+ function initializeEvents(app, store, router, options = {}) {
14
+ const route = options.route || "Home";
15
+ const routesEvents = events$1.createEventRoutes();
16
+ router.addRoute(route, routesEvents);
17
+ store.addStore("events", events);
18
+ }
19
+ const ModuleEvents = {
20
+ initialize: initializeEvents,
21
+ views: {
22
+ store: {
23
+ storeEvents: events
24
+ },
25
+ router: {
26
+ createEventRoutes: events$1.createEventRoutes
27
+ },
28
+ components: {
29
+ // Blocks
30
+ CardEvent: CardEvent.default,
31
+ // Sections
32
+ Feed: Feed.default,
33
+ List: List.default,
34
+ FeaturedEvents: FeaturedEvents.default,
35
+ // Layouts
36
+ EventsLayout: layoutEvents.default,
37
+ // Pages
38
+ EditEvent: EditEvent.default,
39
+ EventPage: Event.default,
40
+ EventsPage: Events.default
41
+ }
42
+ }
43
+ };
44
+ exports.default = ModuleEvents;
23
45
  //# sourceMappingURL=events.client.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.client.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"events.client.cjs","sources":["../../../../../src/modules/events/events.client.js"],"sourcesContent":["// Store\nimport * as storeEvents from './store/events.js';\n\n// Router\nimport { createEventRoutes } from './router/events';\n\n// Views\nimport CardEvent from './components/blocks/CardEvent.vue';\nimport Feed from './components/sections/Feed.vue';\nimport List from './components/sections/List.vue';\nimport FeaturedEvents from './components/sections/FeaturedEvents.vue';\nimport EventsLayout from './components/layouts/layoutEvents.vue';\nimport EditEvent from './components/pages/EditEvent.vue';\nimport EventPage from './components/pages/Event.vue';\nimport EventsPage from './components/pages/Events.vue';\n\n// Пример функции инициализации для модуля событий\nfunction initializeEvents(app, store, router, options = {}) {\n const route = options.route || 'Home';\n\n const routesEvents = createEventRoutes();\n \n router.addRoute(route, routesEvents);\n \n store.addStore('events', storeEvents);\n}\n\nconst ModuleEvents = {\n initialize: initializeEvents,\n views: {\n store: {\n storeEvents\n },\n router: {\n createEventRoutes\n },\n components: {\n // Blocks\n CardEvent,\n // Sections\n Feed,\n List,\n FeaturedEvents,\n // Layouts\n EventsLayout,\n // Pages\n EditEvent,\n EventPage,\n EventsPage\n }\n }\n}\n\nexport default ModuleEvents;\n"],"names":["createEventRoutes","storeEvents","CardEvent","Feed","List","FeaturedEvents","EventsLayout","EditEvent","EventPage","EventsPage"],"mappings":";;;;;;;;;;;;AAiBA,SAAS,iBAAiB,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AAC1D,QAAM,QAAQ,QAAQ,SAAS;AAE/B,QAAM,eAAeA,SAAAA;AAErB,SAAO,SAAS,OAAO,YAAY;AAEnC,QAAM,SAAS,UAAUC,MAAW;AACtC;AAEK,MAAC,eAAe;AAAA,EACnB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,aAAMA;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACZ,mBAAMD,SAAiB;AAAA,IAClB;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,WAAME,UAAS;AAAA;AAAA,MAEf,MAAMC,KAAI;AAAA,MACV,MAAMC,KAAI;AAAA,MACV,gBAAMC,eAAc;AAAA;AAAA,MAEpB,cAAMC,aAAY;AAAA;AAAA,MAElB,WAAMC,UAAS;AAAA,MACf,WAAMC,MAAS;AAAA,MACf,YAAMC,OAAU;AAAA,IACX;AAAA,EACF;AACH;;"}
@@ -1,23 +1,45 @@
1
- import { default as default2 } from "./components/blocks/CardEvent.vue.js";
2
- import { default as default3 } from "./components/sections/Feed.vue.js";
3
- import { default as default4 } from "./components/sections/List.vue.js";
4
- import { default as default5 } from "./components/sections/FeaturedEvents.vue.js";
5
- import { default as default6 } from "./components/layouts/layoutEvents.vue.js";
6
- import { default as default7 } from "./components/pages/EditEvent.vue.js";
7
- import { default as default8 } from "./components/pages/Event.vue.js";
8
- import { default as default9 } from "./components/pages/Events.vue.js";
9
1
  import * as events from "./store/events.js";
10
- import { default as default10 } from "./router/events.js";
2
+ import { createEventRoutes } from "./router/events.js";
3
+ import _sfc_main from "./components/blocks/CardEvent.vue.js";
4
+ import _sfc_main$1 from "./components/sections/Feed.vue.js";
5
+ import _sfc_main$2 from "./components/sections/List.vue.js";
6
+ import _sfc_main$3 from "./components/sections/FeaturedEvents.vue.js";
7
+ import _sfc_main$4 from "./components/layouts/layoutEvents.vue.js";
8
+ import _sfc_main$5 from "./components/pages/EditEvent.vue.js";
9
+ import _sfc_main$6 from "./components/pages/Event.vue.js";
10
+ import _sfc_main$7 from "./components/pages/Events.vue.js";
11
+ function initializeEvents(app, store, router, options = {}) {
12
+ const route = options.route || "Home";
13
+ const routesEvents = createEventRoutes();
14
+ router.addRoute(route, routesEvents);
15
+ store.addStore("events", events);
16
+ }
17
+ const ModuleEvents = {
18
+ initialize: initializeEvents,
19
+ views: {
20
+ store: {
21
+ storeEvents: events
22
+ },
23
+ router: {
24
+ createEventRoutes
25
+ },
26
+ components: {
27
+ // Blocks
28
+ CardEvent: _sfc_main,
29
+ // Sections
30
+ Feed: _sfc_main$1,
31
+ List: _sfc_main$2,
32
+ FeaturedEvents: _sfc_main$3,
33
+ // Layouts
34
+ EventsLayout: _sfc_main$4,
35
+ // Pages
36
+ EditEvent: _sfc_main$5,
37
+ EventPage: _sfc_main$6,
38
+ EventsPage: _sfc_main$7
39
+ }
40
+ }
41
+ };
11
42
  export {
12
- default2 as CardEvent,
13
- default7 as EditEvent,
14
- default8 as EventPage,
15
- default6 as EventsLayout,
16
- default9 as EventsPage,
17
- default5 as FeaturedEvents,
18
- default3 as Feed,
19
- default4 as List,
20
- default10 as eventsRoutes,
21
- events as eventsStore
43
+ ModuleEvents as default
22
44
  };
23
45
  //# sourceMappingURL=events.client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.client.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
1
+ {"version":3,"file":"events.client.js","sources":["../../../../../src/modules/events/events.client.js"],"sourcesContent":["// Store\nimport * as storeEvents from './store/events.js';\n\n// Router\nimport { createEventRoutes } from './router/events';\n\n// Views\nimport CardEvent from './components/blocks/CardEvent.vue';\nimport Feed from './components/sections/Feed.vue';\nimport List from './components/sections/List.vue';\nimport FeaturedEvents from './components/sections/FeaturedEvents.vue';\nimport EventsLayout from './components/layouts/layoutEvents.vue';\nimport EditEvent from './components/pages/EditEvent.vue';\nimport EventPage from './components/pages/Event.vue';\nimport EventsPage from './components/pages/Events.vue';\n\n// Пример функции инициализации для модуля событий\nfunction initializeEvents(app, store, router, options = {}) {\n const route = options.route || 'Home';\n\n const routesEvents = createEventRoutes();\n \n router.addRoute(route, routesEvents);\n \n store.addStore('events', storeEvents);\n}\n\nconst ModuleEvents = {\n initialize: initializeEvents,\n views: {\n store: {\n storeEvents\n },\n router: {\n createEventRoutes\n },\n components: {\n // Blocks\n CardEvent,\n // Sections\n Feed,\n List,\n FeaturedEvents,\n // Layouts\n EventsLayout,\n // Pages\n EditEvent,\n EventPage,\n EventsPage\n }\n }\n}\n\nexport default ModuleEvents;\n"],"names":["storeEvents","CardEvent","Feed","List","FeaturedEvents","EventsLayout","EditEvent","EventPage","EventsPage"],"mappings":";;;;;;;;;;AAiBA,SAAS,iBAAiB,KAAK,OAAO,QAAQ,UAAU,CAAA,GAAI;AAC1D,QAAM,QAAQ,QAAQ,SAAS;AAE/B,QAAM,eAAe;AAErB,SAAO,SAAS,OAAO,YAAY;AAEnC,QAAM,SAAS,UAAUA,MAAW;AACtC;AAEK,MAAC,eAAe;AAAA,EACnB,YAAY;AAAA,EACZ,OAAO;AAAA,IACL,OAAO;AAAA,MACX,aAAMA;AAAAA,IACD;AAAA,IACD,QAAQ;AAAA,MACN;AAAA,IACD;AAAA,IACD,YAAY;AAAA;AAAA,MAEhB,WAAMC;AAAAA;AAAAA,MAEN,MAAMC;AAAAA,MACN,MAAMC;AAAAA,MACN,gBAAMC;AAAAA;AAAAA,MAEN,cAAMC;AAAAA;AAAAA,MAEN,WAAMC;AAAAA,MACN,WAAMC;AAAAA,MACN,YAAMC;AAAAA,IACD;AAAA,EACF;AACH;"}
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const layoutEvents = require("../components/layouts/layoutEvents.vue.cjs");
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
3
  require("../../auth/views/store/auth.cjs");
5
- const eventsRoutes = [
6
- {
7
- path: "events",
8
- component: layoutEvents.default,
4
+ function createEventRoutes(prefix = "", options = {}) {
5
+ const nameWithPrefix = (name) => prefix ? `${prefix}${name}` : name;
6
+ const routes = {
7
+ path: options.basePath || "events",
9
8
  meta: {
10
9
  title: {
11
10
  en: "Events",
@@ -13,94 +12,99 @@ const eventsRoutes = [
13
12
  },
14
13
  title_hide: true
15
14
  },
16
- children: [{
17
- path: ":category?",
18
- name: "Events",
19
- meta: {
20
- title: {
21
- en: "Events",
22
- ru: "События"
15
+ children: [
16
+ {
17
+ path: "",
18
+ name: nameWithPrefix("Events"),
19
+ meta: {
20
+ title: {
21
+ en: "Events",
22
+ ru: "События"
23
+ },
24
+ title_hide: true
23
25
  },
24
- title_hide: true
26
+ component: () => Promise.resolve().then(() => require(
27
+ /* webpackChunkName: 'Events' */
28
+ "../components/pages/Events.vue.cjs"
29
+ ))
25
30
  },
26
- component: () => Promise.resolve().then(() => require(
27
- /* webpackChunkName: 'EventList' */
28
- "../components/pages/Events.vue.cjs"
29
- ))
30
- }]
31
- },
32
- {
33
- path: "events/backoffice",
34
- name: "Events Backoffice",
35
- meta: {
36
- title: {
37
- en: "Manage Events",
38
- ru: "Управление Событиями"
31
+ {
32
+ path: "backoffice",
33
+ name: nameWithPrefix("Events Backoffice"),
34
+ meta: {
35
+ title: {
36
+ en: "Manage Events",
37
+ ru: "Управление Событиями"
38
+ },
39
+ authorize: options.backofficeAuthorize || []
40
+ },
41
+ component: () => Promise.resolve().then(() => require(
42
+ /* webpackChunkName: 'Events' */
43
+ "../components/pages/EventsBackoffice.vue.cjs"
44
+ ))
39
45
  },
40
- authorize: []
41
- },
42
- component: () => Promise.resolve().then(() => require(
43
- /* webpackChunkName: 'CreateEvent' */
44
- "../components/pages/EventsBackoffice.vue.cjs"
45
- ))
46
- },
47
- {
48
- path: "events/create",
49
- name: "Create Event",
50
- meta: {
51
- title: {
52
- en: "Create Event",
53
- ru: "Создать Событие"
46
+ {
47
+ path: "create",
48
+ name: nameWithPrefix("Create Event"),
49
+ meta: {
50
+ title: {
51
+ en: "Create Event",
52
+ ru: "Создать Событие"
53
+ },
54
+ authorize: options.createEventAuthorize || []
55
+ },
56
+ component: () => Promise.resolve().then(() => require(
57
+ /* webpackChunkName: 'Events' */
58
+ "../components/pages/EditEvent.vue.cjs"
59
+ ))
54
60
  },
55
- authorize: []
56
- },
57
- component: () => Promise.resolve().then(() => require(
58
- /* webpackChunkName: 'CreateEvent' */
59
- "../components/pages/EditEvent.vue.cjs"
60
- ))
61
- },
62
- {
63
- path: "events/:url",
64
- name: "Event",
65
- meta: {
66
- title: {
67
- en: "Event",
68
- ru: "Событие"
69
- }
70
- },
71
- component: () => Promise.resolve().then(() => require(
72
- /* webpackChunkName: 'EventDetail' */
73
- "../components/pages/Event.vue.cjs"
74
- ))
75
- },
76
- {
77
- path: "events/:url/edit",
78
- name: "Edit Event",
79
- meta: {
80
- title: {
81
- en: "Edit Event",
82
- ru: "Редактировать Событие"
83
- }
84
- },
85
- component: () => Promise.resolve().then(() => require(
86
- /* webpackChunkName: 'EditEvent' */
87
- "../components/pages/EditEvent.vue.cjs"
88
- ))
89
- },
90
- {
91
- path: "events/:url/edit/tickets",
92
- name: "Edit Event Tickets",
93
- meta: {
94
- title: {
95
- en: "Event Tickets",
96
- ru: "Билеты События"
61
+ {
62
+ path: ":url",
63
+ name: nameWithPrefix("Event"),
64
+ meta: {
65
+ title: {
66
+ en: "Event",
67
+ ru: "Событие"
68
+ }
69
+ },
70
+ component: () => Promise.resolve().then(() => require(
71
+ /* webpackChunkName: 'Events' */
72
+ "../components/pages/Event.vue.cjs"
73
+ ))
74
+ },
75
+ {
76
+ path: ":url/edit",
77
+ name: nameWithPrefix("Edit Event"),
78
+ meta: {
79
+ title: {
80
+ en: "Edit Event",
81
+ ru: "Редактировать Событие"
82
+ },
83
+ authorize: options.editEventAuthorize || []
84
+ },
85
+ component: () => Promise.resolve().then(() => require(
86
+ /* webpackChunkName: 'Events' */
87
+ "../components/pages/EditEvent.vue.cjs"
88
+ ))
89
+ },
90
+ {
91
+ path: ":url/edit/tickets",
92
+ name: nameWithPrefix("Edit Event Tickets"),
93
+ meta: {
94
+ title: {
95
+ en: "Event Tickets",
96
+ ru: "Билеты События"
97
+ },
98
+ authorize: options.editTicketsAuthorize || []
99
+ },
100
+ component: () => Promise.resolve().then(() => require(
101
+ /* webpackChunkName: 'Events' */
102
+ "../components/pages/EditEventTickets.vue.cjs"
103
+ ))
97
104
  }
98
- },
99
- component: () => Promise.resolve().then(() => require(
100
- /* webpackChunkName: 'EditEvent' */
101
- "../components/pages/EditEventTickets.vue.cjs"
102
- ))
103
- }
104
- ];
105
- exports.default = eventsRoutes;
105
+ ]
106
+ };
107
+ return routes;
108
+ }
109
+ exports.createEventRoutes = createEventRoutes;
106
110
  //# sourceMappingURL=events.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.cjs","sources":["../../../../../../src/modules/events/router/events.js"],"sourcesContent":["import layoutEvents from '../components/layouts/layoutEvents.vue'\nimport * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nconst eventsRoutes = [\n {\n path: 'events',\n component: layoutEvents,\n meta: {\n title: {\n en: 'Events',\n ru: 'События'\n },\n title_hide: true\n },\n children: [{\n path: ':category?',\n name: 'Events',\n meta: {\n title: {\n en: 'Events',\n ru: 'События'\n },\n title_hide: true\n },\n component: () => import(/* webpackChunkName: 'EventList' */ '../components/pages/Events.vue')\n }]\n },{\n path: 'events/backoffice',\n name: 'Events Backoffice',\n meta: {\n title: {\n en: 'Manage Events',\n ru: 'Управление Событиями'\n },\n authorize: []\n },\n component: () => import(/* webpackChunkName: 'CreateEvent' */ '../components/pages/EventsBackoffice.vue')\n },{\n path: 'events/create',\n name: 'Create Event',\n meta: {\n title: {\n en: 'Create Event',\n ru: 'Создать Событие'\n },\n authorize: []\n },\n component: () => import(/* webpackChunkName: 'CreateEvent' */ '../components/pages/EditEvent.vue')\n },{\n path: 'events/:url',\n name: 'Event',\n meta: {\n title: {\n en: 'Event',\n ru: 'Событие'\n }\n },\n component: () => import(/* webpackChunkName: 'EventDetail' */ '../components/pages/Event.vue')\n },{\n path: 'events/:url/edit',\n name: 'Edit Event',\n meta: {\n title: {\n en: 'Edit Event',\n ru: 'Редактировать Событие'\n }\n },\n component: () => import(/* webpackChunkName: 'EditEvent' */ '../components/pages/EditEvent.vue')\n },{\n path: 'events/:url/edit/tickets',\n name: 'Edit Event Tickets',\n meta: {\n title: {\n en: 'Event Tickets',\n ru: 'Билеты События'\n }\n },\n component: () => import(/* webpackChunkName: 'EditEvent' */ '../components/pages/EditEventTickets.vue')\n }\n];\n\nexport default eventsRoutes;\n"],"names":["layoutEvents"],"mappings":";;;;AAGK,MAAC,eAAe;AAAA,EACnB;AAAA,IACE,MAAM;AAAA,IACN,WAAWA,aAAY;AAAA,IACvB,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,MACD,YAAY;AAAA,IACb;AAAA,IACD,UAAU,CAAC;AAAA,MACT,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ,OAAO;AAAA,UACL,IAAI;AAAA,UACJ,IAAI;AAAA,QACL;AAAA,QACD,YAAY;AAAA,MACb;AAAA,MACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,QAAoC;AAAA,MAAgC,CAAC;AAAA,IACnG,CAAK;AAAA,EACL;AAAA,EAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,MACD,WAAW,CAAE;AAAA,IACd;AAAA,IACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAsC;AAAA,IAA0C,CAAC;AAAA,EAC7G;AAAA,EAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,MACD,WAAW,CAAE;AAAA,IACd;AAAA,IACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAsC;AAAA,IAAmC,CAAC;AAAA,EACtG;AAAA,EAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAsC;AAAA,IAA+B,CAAC;AAAA,EAClG;AAAA,EAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAoC;AAAA,IAAmC,CAAC;AAAA,EACpG;AAAA,EAAI;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,IACF;AAAA,IACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,MAAoC;AAAA,IAA0C,CAAC;AAAA,EACxG;AACH;;"}
1
+ {"version":3,"file":"events.cjs","sources":["../../../../../../src/modules/events/router/events.js"],"sourcesContent":["import * as validationAuth from '@pf/src/modules/auth/views/middlewares/auth.validation';\n\nexport function createEventRoutes(prefix = '', options = {}) {\n const nameWithPrefix = (name) => prefix ? `${prefix}${name}` : name;\n\n const routes = {\n path: options.basePath || 'events',\n meta: {\n title: {\n en: 'Events',\n ru: 'События'\n },\n title_hide: true\n },\n children: [\n {\n path: '',\n name: nameWithPrefix('Events'),\n meta: {\n title: {\n en: 'Events',\n ru: 'События'\n },\n title_hide: true\n },\n component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/Events.vue')\n },\n {\n path: 'backoffice',\n name: nameWithPrefix('Events Backoffice'),\n meta: {\n title: {\n en: 'Manage Events',\n ru: 'Управление Событиями'\n },\n authorize: options.backofficeAuthorize || []\n },\n component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EventsBackoffice.vue')\n },\n {\n path: 'create',\n name: nameWithPrefix('Create Event'),\n meta: {\n title: {\n en: 'Create Event',\n ru: 'Создать Событие'\n },\n authorize: options.createEventAuthorize || []\n },\n component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EditEvent.vue')\n },\n {\n path: ':url',\n name: nameWithPrefix('Event'),\n meta: {\n title: {\n en: 'Event',\n ru: 'Событие'\n }\n },\n component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/Event.vue')\n },\n {\n path: ':url/edit',\n name: nameWithPrefix('Edit Event'),\n meta: {\n title: {\n en: 'Edit Event',\n ru: 'Редактировать Событие'\n },\n authorize: options.editEventAuthorize || []\n },\n component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EditEvent.vue')\n },\n {\n path: ':url/edit/tickets',\n name: nameWithPrefix('Edit Event Tickets'),\n meta: {\n title: {\n en: 'Event Tickets',\n ru: 'Билеты События'\n },\n authorize: options.editTicketsAuthorize || []\n },\n component: () => import(/* webpackChunkName: 'Events' */ '../components/pages/EditEventTickets.vue')\n }\n ]\n }\n\n return routes;\n}\n\n// Example usage:\n// const eventsRoutes = createEventRoutes('Admin', { basePath: 'admin/events' });\n// export default eventsRoutes;"],"names":[],"mappings":";;;AAEO,SAAS,kBAAkB,SAAS,IAAI,UAAU,CAAA,GAAI;AAC3D,QAAM,iBAAiB,CAAC,SAAS,SAAS,GAAG,MAAM,GAAG,IAAI,KAAK;AAE/D,QAAM,SAAS;AAAA,IACb,MAAM,QAAQ,YAAY;AAAA,IAC1B,MAAM;AAAA,MACJ,OAAO;AAAA,QACL,IAAI;AAAA,QACJ,IAAI;AAAA,MACL;AAAA,MACD,YAAY;AAAA,IACb;AAAA,IACD,UAAU;AAAA,MACR;AAAA,QACE,MAAM;AAAA,QACN,MAAM,eAAe,QAAQ;AAAA,QAC7B,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,UACD,YAAY;AAAA,QACb;AAAA,QACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,UAAiC;AAAA,QAAgC,CAAC;AAAA,MAC3F;AAAA,MACD;AAAA,QACE,MAAM;AAAA,QACN,MAAM,eAAe,mBAAmB;AAAA,QACxC,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,UACD,WAAW,QAAQ,uBAAuB,CAAE;AAAA,QAC7C;AAAA,QACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,UAAiC;AAAA,QAA0C,CAAC;AAAA,MACrG;AAAA,MACD;AAAA,QACE,MAAM;AAAA,QACN,MAAM,eAAe,cAAc;AAAA,QACnC,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,UACD,WAAW,QAAQ,wBAAwB,CAAE;AAAA,QAC9C;AAAA,QACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,UAAiC;AAAA,QAAmC,CAAC;AAAA,MAC9F;AAAA,MACD;AAAA,QACE,MAAM;AAAA,QACN,MAAM,eAAe,OAAO;AAAA,QAC5B,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,QACF;AAAA,QACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,UAAiC;AAAA,QAA+B,CAAC;AAAA,MAC1F;AAAA,MACD;AAAA,QACE,MAAM;AAAA,QACN,MAAM,eAAe,YAAY;AAAA,QACjC,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,UACD,WAAW,QAAQ,sBAAsB,CAAE;AAAA,QAC5C;AAAA,QACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,UAAiC;AAAA,QAAmC,CAAC;AAAA,MAC9F;AAAA,MACD;AAAA,QACE,MAAM;AAAA,QACN,MAAM,eAAe,oBAAoB;AAAA,QACzC,MAAM;AAAA,UACJ,OAAO;AAAA,YACL,IAAI;AAAA,YACJ,IAAI;AAAA,UACL;AAAA,UACD,WAAW,QAAQ,wBAAwB,CAAE;AAAA,QAC9C;AAAA,QACD,WAAW,MAAM,QAAO,QAAA,EAAA,KAAA,MAAA;AAAA;AAAA,UAAiC;AAAA,QAA0C,CAAC;AAAA,MACrG;AAAA,IACF;AAAA,EACF;AAED,SAAO;AACT;;"}
@@ -1,9 +1,8 @@
1
- import _sfc_main from "../components/layouts/layoutEvents.vue.js";
2
1
  import "../../auth/views/store/auth.js";
3
- const eventsRoutes = [
4
- {
5
- path: "events",
6
- component: _sfc_main,
2
+ function createEventRoutes(prefix = "", options = {}) {
3
+ const nameWithPrefix = (name) => prefix ? `${prefix}${name}` : name;
4
+ const routes = {
5
+ path: options.basePath || "events",
7
6
  meta: {
8
7
  title: {
9
8
  en: "Events",
@@ -11,96 +10,101 @@ const eventsRoutes = [
11
10
  },
12
11
  title_hide: true
13
12
  },
14
- children: [{
15
- path: ":category?",
16
- name: "Events",
17
- meta: {
18
- title: {
19
- en: "Events",
20
- ru: "События"
13
+ children: [
14
+ {
15
+ path: "",
16
+ name: nameWithPrefix("Events"),
17
+ meta: {
18
+ title: {
19
+ en: "Events",
20
+ ru: "События"
21
+ },
22
+ title_hide: true
21
23
  },
22
- title_hide: true
24
+ component: () => import(
25
+ /* webpackChunkName: 'Events' */
26
+ "../components/pages/Events.vue.js"
27
+ )
23
28
  },
24
- component: () => import(
25
- /* webpackChunkName: 'EventList' */
26
- "../components/pages/Events.vue.js"
27
- )
28
- }]
29
- },
30
- {
31
- path: "events/backoffice",
32
- name: "Events Backoffice",
33
- meta: {
34
- title: {
35
- en: "Manage Events",
36
- ru: "Управление Событиями"
29
+ {
30
+ path: "backoffice",
31
+ name: nameWithPrefix("Events Backoffice"),
32
+ meta: {
33
+ title: {
34
+ en: "Manage Events",
35
+ ru: "Управление Событиями"
36
+ },
37
+ authorize: options.backofficeAuthorize || []
38
+ },
39
+ component: () => import(
40
+ /* webpackChunkName: 'Events' */
41
+ "../components/pages/EventsBackoffice.vue.js"
42
+ )
37
43
  },
38
- authorize: []
39
- },
40
- component: () => import(
41
- /* webpackChunkName: 'CreateEvent' */
42
- "../components/pages/EventsBackoffice.vue.js"
43
- )
44
- },
45
- {
46
- path: "events/create",
47
- name: "Create Event",
48
- meta: {
49
- title: {
50
- en: "Create Event",
51
- ru: "Создать Событие"
44
+ {
45
+ path: "create",
46
+ name: nameWithPrefix("Create Event"),
47
+ meta: {
48
+ title: {
49
+ en: "Create Event",
50
+ ru: "Создать Событие"
51
+ },
52
+ authorize: options.createEventAuthorize || []
53
+ },
54
+ component: () => import(
55
+ /* webpackChunkName: 'Events' */
56
+ "../components/pages/EditEvent.vue.js"
57
+ )
52
58
  },
53
- authorize: []
54
- },
55
- component: () => import(
56
- /* webpackChunkName: 'CreateEvent' */
57
- "../components/pages/EditEvent.vue.js"
58
- )
59
- },
60
- {
61
- path: "events/:url",
62
- name: "Event",
63
- meta: {
64
- title: {
65
- en: "Event",
66
- ru: "Событие"
67
- }
68
- },
69
- component: () => import(
70
- /* webpackChunkName: 'EventDetail' */
71
- "../components/pages/Event.vue.js"
72
- )
73
- },
74
- {
75
- path: "events/:url/edit",
76
- name: "Edit Event",
77
- meta: {
78
- title: {
79
- en: "Edit Event",
80
- ru: "Редактировать Событие"
81
- }
82
- },
83
- component: () => import(
84
- /* webpackChunkName: 'EditEvent' */
85
- "../components/pages/EditEvent.vue.js"
86
- )
87
- },
88
- {
89
- path: "events/:url/edit/tickets",
90
- name: "Edit Event Tickets",
91
- meta: {
92
- title: {
93
- en: "Event Tickets",
94
- ru: "Билеты События"
59
+ {
60
+ path: ":url",
61
+ name: nameWithPrefix("Event"),
62
+ meta: {
63
+ title: {
64
+ en: "Event",
65
+ ru: "Событие"
66
+ }
67
+ },
68
+ component: () => import(
69
+ /* webpackChunkName: 'Events' */
70
+ "../components/pages/Event.vue.js"
71
+ )
72
+ },
73
+ {
74
+ path: ":url/edit",
75
+ name: nameWithPrefix("Edit Event"),
76
+ meta: {
77
+ title: {
78
+ en: "Edit Event",
79
+ ru: "Редактировать Событие"
80
+ },
81
+ authorize: options.editEventAuthorize || []
82
+ },
83
+ component: () => import(
84
+ /* webpackChunkName: 'Events' */
85
+ "../components/pages/EditEvent.vue.js"
86
+ )
87
+ },
88
+ {
89
+ path: ":url/edit/tickets",
90
+ name: nameWithPrefix("Edit Event Tickets"),
91
+ meta: {
92
+ title: {
93
+ en: "Event Tickets",
94
+ ru: "Билеты События"
95
+ },
96
+ authorize: options.editTicketsAuthorize || []
97
+ },
98
+ component: () => import(
99
+ /* webpackChunkName: 'Events' */
100
+ "../components/pages/EditEventTickets.vue.js"
101
+ )
95
102
  }
96
- },
97
- component: () => import(
98
- /* webpackChunkName: 'EditEvent' */
99
- "../components/pages/EditEventTickets.vue.js"
100
- )
101
- }
102
- ];
103
+ ]
104
+ };
105
+ return routes;
106
+ }
103
107
  export {
104
- eventsRoutes as default
108
+ createEventRoutes
105
109
  };
106
110
  //# sourceMappingURL=events.js.map