@ozdao/prometheus-framework 0.2.60 → 0.2.62

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. package/dist/auth.server.js +8 -190
  2. package/dist/auth.server.mjs +8 -190
  3. package/dist/community.server.js +3 -2
  4. package/dist/community.server.mjs +2 -1
  5. package/dist/events.server.js +101 -29
  6. package/dist/events.server.mjs +100 -28
  7. package/dist/files.server.js +7 -7
  8. package/dist/files.server.mjs +7 -7
  9. package/dist/gallery.server.js +2 -2
  10. package/dist/gallery.server.mjs +2 -2
  11. package/dist/main-DsseFd2d.mjs +13753 -0
  12. package/dist/main-U466Gwzt.js +91 -0
  13. package/dist/main.css +1 -1
  14. package/dist/metadata.schema-CS6_9GLU.js +174 -0
  15. package/dist/metadata.schema-D88c1Ebp.mjs +175 -0
  16. package/dist/organizations.server.js +212 -16
  17. package/dist/organizations.server.mjs +212 -16
  18. package/dist/ownership.schema-DN0SlQL6.js +36 -0
  19. package/dist/ownership.schema-oyx6eNkZ.mjs +37 -0
  20. package/dist/products.server.js +8 -5
  21. package/dist/products.server.mjs +8 -5
  22. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +19 -14
  24. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +1 -55
  26. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +55 -1
  28. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +27 -27
  30. package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -51
  32. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +51 -1
  34. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -97
  36. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +97 -1
  38. package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
  40. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -36
  42. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +36 -1
  44. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  46. package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/auth/auth.client.js +12 -14
  48. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +1 -1
  50. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  52. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  54. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +197 -183
  66. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -0
  67. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +168 -0
  68. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue2.cjs +1 -0
  69. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue2.js +1 -0
  70. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  74. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
  76. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
  78. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/events/router/events.js +11 -2
  80. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  82. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  84. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +67 -64
  86. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  90. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  92. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  94. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  102. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +3 -3
  104. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +24 -24
  106. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +1 -1
  112. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  114. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  116. package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -38
  118. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +19 -19
  120. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +5 -5
  122. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +36 -27
  124. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +7 -7
  132. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +20 -20
  134. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
  136. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +36 -50
  138. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +1 -1
  144. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  148. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
  150. package/dist/prometheus-framework.cjs.js +1 -1
  151. package/dist/prometheus-framework.es.js +1 -1
  152. package/dist/style.css +1 -1
  153. package/dist/web-D7bW32Ul.mjs +54 -0
  154. package/dist/web-DpE9HxA3.js +1 -0
  155. package/package.json +1 -1
  156. package/src/components/Chips/Chips.vue +2 -2
  157. package/src/components/Feed/Feed.vue +2 -1
  158. package/src/modules/auth/auth.client.js +0 -2
  159. package/src/modules/auth/auth.server.js +1 -6
  160. package/src/modules/auth/components/pages/Invite.vue +1 -1
  161. package/src/modules/events/components/pages/EditEvent.vue +19 -0
  162. package/src/modules/events/components/pages/EditEventTickets.vue +194 -0
  163. package/src/modules/events/controllers/tickets.controller.js +103 -28
  164. package/src/modules/events/models/ticket.model.js +22 -4
  165. package/src/modules/events/router/events.js +5 -0
  166. package/src/modules/events/routes/tickets.routes.js +2 -2
  167. package/src/modules/events/store/tickets.js +1 -0
  168. package/src/modules/globals/components/blocks/CardHeader.vue +6 -6
  169. package/src/modules/organizations/components/pages/Members.vue +1 -1
  170. package/src/modules/organizations/components/pages/Organization.vue +4 -4
  171. package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
  172. package/src/modules/organizations/controllers/departments.controller.js +14 -1
  173. package/src/modules/organizations/models/department.model.js +5 -1
  174. package/src/modules/organizations/organizations.client.js +2 -0
  175. package/src/modules/organizations/organizations.server.js +6 -2
  176. package/src/modules/organizations/routes/departments.routes.js +1 -1
  177. package/src/modules/organizations/store/departments.js +3 -2
  178. package/src/modules/products/components/blocks/CardLeftover.vue +19 -7
  179. package/src/modules/products/components/pages/EditLeftover.vue +1 -1
  180. package/src/modules/products/components/pages/Leftovers.vue +14 -3
  181. package/src/modules/products/components/pages/Products.vue +8 -8
  182. package/src/modules/products/models/leftover.model.js +9 -5
  183. package/src/modules/users/models/client.model.js +60 -0
  184. /package/src/modules/{auth → organizations}/controllers/invites.controller.js +0 -0
  185. /package/src/modules/{auth → organizations}/models/invite.model.js +0 -0
  186. /package/src/modules/{auth → organizations}/routes/invites.routes.js +0 -0
  187. /package/src/modules/{auth → organizations}/store/invites.js +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue2.cjs");const g=require("../EmptyState/EmptyState.vue.cjs");require("vue-i18n");const k=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),v={__name:"Feed",props:{search:{type:Boolean,default:!1},showLoadMore:{type:Boolean,default:!0},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},setup(s){const a=s,r=e.ref([]),o=e.ref(!1);let i=e.ref(!0),u=e.ref(a.options.skip?a.options.skip:0),l=e.ref(a.options.limit?a.options.limit:10);const d=async()=>{if(o.value){u.value+=l.value;const t=await a.store.read({skip:u.value,limit:l.value,...a.options});t.length===0||t.length<l.value?o.value=!1:o.value=!0,r.value=[...r.value,...t]}},c=async()=>{const t=await a.store.read({skip:u.value,limit:l.value,...a.options});t.length===0||t.length<l.value?o.value=!1:o.value=!0,console.log(t),r.value=t,i.value=!1};e.watch(()=>a.options,(t,n)=>{(t.organization!==n.organization||t.categories!==n.categories||t.prices!==n.prices||t.delivery!==n.delivery||t.search!==n.search||t.status!==n.status)&&c()},{deep:!0});function m(t){a.options.search=t,console.log(t),c()}return e.onMounted(async()=>{await c()}),(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition"},{default:e.withCtx(()=>[s.search?(e.openBlock(),e.createBlock(k.default,{key:0,onSearch:m,placeholder:"Enter product name",class:"bg-white mn-b-thin"})):e.createCommentVNode("",!0)]),_:1}),e.unref(i)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:0,tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(l),p=>(e.openBlock(),e.createBlock(f.default,{key:p}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(i)&&r.value.length<1?(e.openBlock(),e.createBlock(g.default,{key:0,title:s.states.empty.title,description:s.states.empty.description,class:"pd-medium mn-b-thin bg-grey radius-big"},null,8,["title","description"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(i)&&r.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:r.value,user:t.user}):e.createCommentVNode("",!0),s.showLoadMore&&o.value&&r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"col-w-100 w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:3},8,["class"])],64))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const g=require("../EmptyState/EmptyState.vue.cjs");require("vue-i18n");const h=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),k={__name:"Feed",props:{search:{type:Boolean,default:!1},showLoadMore:{type:Boolean,default:!0},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},setup(s){const a=s,r=e.ref([]),o=e.ref(!1);let i=e.ref(!0),u=e.ref(a.options.skip?a.options.skip:0),l=e.ref(a.options.limit?a.options.limit:10);const d=async()=>{if(o.value){u.value+=l.value;const t=await a.store.read({skip:u.value,limit:l.value,...a.options});t.length===0||t.length<l.value?o.value=!1:o.value=!0,r.value=[...r.value,...t]}},c=async()=>{const t=await a.store.read({skip:u.value,limit:l.value,...a.options});t.length===0||t.length<l.value?o.value=!1:o.value=!0,console.log(t),r.value=t,i.value=!1};e.watch(()=>a.options,(t,n)=>{(t.organization!==n.organization||t.categories!==n.categories||t.prices!==n.prices||t.delivery!==n.delivery||t.search!==n.search||t.status!==n.status||t.hidden!==n.hidden)&&c()},{deep:!0});function m(t){a.options.search=t,console.log(t),c()}return e.onMounted(async()=>{await c()}),(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition"},{default:e.withCtx(()=>[s.search?(e.openBlock(),e.createBlock(h.default,{key:0,onSearch:m,placeholder:"Enter product name",class:"bg-white mn-b-thin"})):e.createCommentVNode("",!0)]),_:1}),e.unref(i)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:0,tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(l),p=>(e.openBlock(),e.createBlock(f.default,{key:p}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(i)&&r.value.length<1?(e.openBlock(),e.createBlock(g.default,{key:0,title:s.states.empty.title,description:s.states.empty.description,class:"pd-medium mn-b-thin bg-grey radius-big"},null,8,["title","description"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(i)&&r.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:r.value,user:t.user}):e.createCommentVNode("",!0),s.showLoadMore&&o.value&&r.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"col-w-100 w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:3},8,["class"])],64))}};exports.default=k;
@@ -1,6 +1,6 @@
1
- import { ref as c, watch as w, onMounted as T, openBlock as l, createElementBlock as v, Fragment as k, createVNode as h, TransitionGroup as y, withCtx as p, createBlock as d, createCommentVNode as o, unref as m, renderList as B, Transition as M, normalizeClass as j, renderSlot as C } from "vue";
1
+ import { ref as c, watch as T, onMounted as w, openBlock as n, createElementBlock as h, Fragment as k, createVNode as v, TransitionGroup as y, withCtx as d, createBlock as p, createCommentVNode as o, unref as m, renderList as B, Transition as M, normalizeClass as j, renderSlot as C } from "vue";
2
2
  import O from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
3
- import "../Loader/Loader.vue2.js";
3
+ import "../Loader/Loader.vue.js";
4
4
  import $ from "../EmptyState/EmptyState.vue.js";
5
5
  import "vue-i18n";
6
6
  import z from "../../modules/globals/components/blocks/BlockSearch.vue.js";
@@ -47,41 +47,41 @@ const q = {
47
47
  }
48
48
  },
49
49
  setup(r) {
50
- const t = r, s = c([]), a = c(!1);
51
- let u = c(!0), f = c(t.options.skip ? t.options.skip : 0), n = c(t.options.limit ? t.options.limit : 10);
50
+ const t = r, i = c([]), a = c(!1);
51
+ let u = c(!0), f = c(t.options.skip ? t.options.skip : 0), l = c(t.options.limit ? t.options.limit : 10);
52
52
  const b = async () => {
53
53
  if (a.value) {
54
- f.value += n.value;
54
+ f.value += l.value;
55
55
  const e = await t.store.read({
56
56
  skip: f.value,
57
- limit: n.value,
57
+ limit: l.value,
58
58
  ...t.options
59
59
  });
60
- e.length === 0 || e.length < n.value ? a.value = !1 : a.value = !0, s.value = [...s.value, ...e];
60
+ e.length === 0 || e.length < l.value ? a.value = !1 : a.value = !0, i.value = [...i.value, ...e];
61
61
  }
62
62
  }, g = async () => {
63
63
  const e = await t.store.read({
64
64
  skip: f.value,
65
- limit: n.value,
65
+ limit: l.value,
66
66
  ...t.options
67
67
  });
68
- e.length === 0 || e.length < n.value ? a.value = !1 : a.value = !0, console.log(e), s.value = e, u.value = !1;
68
+ e.length === 0 || e.length < l.value ? a.value = !1 : a.value = !0, console.log(e), i.value = e, u.value = !1;
69
69
  };
70
- w(() => t.options, (e, i) => {
71
- (e.organization !== i.organization || e.categories !== i.categories || e.prices !== i.prices || e.delivery !== i.delivery || e.search !== i.search || e.status !== i.status) && g();
70
+ T(() => t.options, (e, s) => {
71
+ (e.organization !== s.organization || e.categories !== s.categories || e.prices !== s.prices || e.delivery !== s.delivery || e.search !== s.search || e.status !== s.status || e.hidden !== s.hidden) && g();
72
72
  }, { deep: !0 });
73
73
  function L(e) {
74
74
  t.options.search = e, console.log(e), g();
75
75
  }
76
- return T(async () => {
76
+ return w(async () => {
77
77
  await g();
78
- }), (e, i) => (l(), v(k, null, [
79
- h(y, {
78
+ }), (e, s) => (n(), h(k, null, [
79
+ v(y, {
80
80
  tag: "ul",
81
81
  name: "scaleTransition"
82
82
  }, {
83
- default: p(() => [
84
- r.search ? (l(), d(z, {
83
+ default: d(() => [
84
+ r.search ? (n(), p(z, {
85
85
  key: 0,
86
86
  onSearch: L,
87
87
  placeholder: "Enter product name",
@@ -90,20 +90,20 @@ const q = {
90
90
  ]),
91
91
  _: 1
92
92
  }),
93
- m(u) ? (l(), d(y, {
93
+ m(u) ? (n(), p(y, {
94
94
  key: 0,
95
95
  tag: "ul",
96
96
  name: "scaleTransition",
97
97
  class: "o-hidden bg-grey radius-big"
98
98
  }, {
99
- default: p(() => [
100
- m(u) ? (l(!0), v(k, { key: 0 }, B(m(n), (S) => (l(), d(O, { key: S }))), 128)) : o("", !0)
99
+ default: d(() => [
100
+ m(u) ? (n(!0), h(k, { key: 0 }, B(m(l), (S) => (n(), p(O, { key: S }))), 128)) : o("", !0)
101
101
  ]),
102
102
  _: 1
103
103
  })) : o("", !0),
104
- h(M, { name: "scaleTransition" }, {
105
- default: p(() => [
106
- !m(u) && s.value.length < 1 ? (l(), d($, {
104
+ v(M, { name: "scaleTransition" }, {
105
+ default: d(() => [
106
+ !m(u) && i.value.length < 1 ? (n(), p($, {
107
107
  key: 0,
108
108
  title: r.states.empty.title,
109
109
  description: r.states.empty.description,
@@ -112,18 +112,18 @@ const q = {
112
112
  ]),
113
113
  _: 1
114
114
  }),
115
- h(y, {
115
+ v(y, {
116
116
  tag: "ul",
117
117
  name: "scaleTransition",
118
118
  class: j(e.$attrs.class)
119
119
  }, {
120
- default: p(() => [
121
- !m(u) && s.value.length > 0 ? C(e.$slots, "default", {
120
+ default: d(() => [
121
+ !m(u) && i.value.length > 0 ? C(e.$slots, "default", {
122
122
  key: 0,
123
- items: s.value,
123
+ items: i.value,
124
124
  user: e.user
125
125
  }) : o("", !0),
126
- r.showLoadMore && a.value && s.value.length > 0 ? (l(), v("button", {
126
+ r.showLoadMore && a.value && i.value.length > 0 ? (n(), h("button", {
127
127
  key: 1,
128
128
  onClick: b,
129
129
  class: "col-w-100 w-100 bg-main button"
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Loader.vue2.cjs");const r=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),s={props:{progress:{type:Number,default:null},status:{type:String,default:null}}},c={class:"circular-loader"},o=e.createElementVNode("svg",{viewBox:"25 25 50 50"},[e.createElementVNode("circle",{class:"circular-loader-fill",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"}),e.createElementVNode("circle",{class:"circular-loader-circle",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})],-1),l={key:0,class:"progress-text"},i={key:1,class:"uppercase t-semi w-m-10r status-text"};function a(u,d,t,m,_,p){return e.openBlock(),e.createElementBlock("div",c,[o,t.progress?(e.openBlock(),e.createElementBlock("div",l,e.toDisplayString(t.progress),1)):e.createCommentVNode("",!0),t.status?(e.openBlock(),e.createElementBlock("div",i,e.toDisplayString(t.status),1)):e.createCommentVNode("",!0)])}const n=r.default(s,[["render",a]]);exports.default=n;
1
+ "use strict";
@@ -1,51 +1 @@
1
- import { openBlock as t, createElementBlock as r, toDisplayString as c, createCommentVNode as o, createElementVNode as s } from "vue";
2
- import "./Loader.vue2.js";
3
- import i from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const l = {
5
- props: {
6
- progress: {
7
- type: Number,
8
- default: null
9
- },
10
- status: {
11
- type: String,
12
- default: null
13
- }
14
- }
15
- }, a = { class: "circular-loader" }, n = /* @__PURE__ */ s("svg", { viewBox: "25 25 50 50" }, [
16
- /* @__PURE__ */ s("circle", {
17
- class: "circular-loader-fill",
18
- cx: "50",
19
- cy: "50",
20
- r: "20",
21
- fill: "none",
22
- "stroke-width": "4",
23
- "stroke-miterlimit": "10"
24
- }),
25
- /* @__PURE__ */ s("circle", {
26
- class: "circular-loader-circle",
27
- cx: "50",
28
- cy: "50",
29
- r: "20",
30
- fill: "none",
31
- "stroke-width": "4",
32
- "stroke-miterlimit": "10"
33
- })
34
- ], -1), d = {
35
- key: 0,
36
- class: "progress-text"
37
- }, u = {
38
- key: 1,
39
- class: "uppercase t-semi w-m-10r status-text"
40
- };
41
- function m(_, p, e, f, k, x) {
42
- return t(), r("div", a, [
43
- n,
44
- e.progress ? (t(), r("div", d, c(e.progress), 1)) : o("", !0),
45
- e.status ? (t(), r("div", u, c(e.status), 1)) : o("", !0)
46
- ]);
47
- }
48
- const v = /* @__PURE__ */ i(l, [["render", m]]);
49
- export {
50
- v as default
51
- };
1
+
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Loader.vue.cjs");const r=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),s={props:{progress:{type:Number,default:null},status:{type:String,default:null}}},c={class:"circular-loader"},o=e.createElementVNode("svg",{viewBox:"25 25 50 50"},[e.createElementVNode("circle",{class:"circular-loader-fill",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"}),e.createElementVNode("circle",{class:"circular-loader-circle",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})],-1),l={key:0,class:"progress-text"},i={key:1,class:"uppercase t-semi w-m-10r status-text"};function a(u,d,t,m,_,p){return e.openBlock(),e.createElementBlock("div",c,[o,t.progress?(e.openBlock(),e.createElementBlock("div",l,e.toDisplayString(t.progress),1)):e.createCommentVNode("",!0),t.status?(e.openBlock(),e.createElementBlock("div",i,e.toDisplayString(t.status),1)):e.createCommentVNode("",!0)])}const n=r.default(s,[["render",a]]);exports.default=n;
@@ -1 +1,51 @@
1
-
1
+ import { openBlock as t, createElementBlock as r, toDisplayString as c, createCommentVNode as o, createElementVNode as s } from "vue";
2
+ import "./Loader.vue.js";
3
+ import i from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const l = {
5
+ props: {
6
+ progress: {
7
+ type: Number,
8
+ default: null
9
+ },
10
+ status: {
11
+ type: String,
12
+ default: null
13
+ }
14
+ }
15
+ }, a = { class: "circular-loader" }, n = /* @__PURE__ */ s("svg", { viewBox: "25 25 50 50" }, [
16
+ /* @__PURE__ */ s("circle", {
17
+ class: "circular-loader-fill",
18
+ cx: "50",
19
+ cy: "50",
20
+ r: "20",
21
+ fill: "none",
22
+ "stroke-width": "4",
23
+ "stroke-miterlimit": "10"
24
+ }),
25
+ /* @__PURE__ */ s("circle", {
26
+ class: "circular-loader-circle",
27
+ cx: "50",
28
+ cy: "50",
29
+ r: "20",
30
+ fill: "none",
31
+ "stroke-width": "4",
32
+ "stroke-miterlimit": "10"
33
+ })
34
+ ], -1), d = {
35
+ key: 0,
36
+ class: "progress-text"
37
+ }, u = {
38
+ key: 1,
39
+ class: "uppercase t-semi w-m-10r status-text"
40
+ };
41
+ function m(_, p, e, f, k, x) {
42
+ return t(), r("div", a, [
43
+ n,
44
+ e.progress ? (t(), r("div", d, c(e.progress), 1)) : o("", !0),
45
+ e.status ? (t(), r("div", u, c(e.status), 1)) : o("", !0)
46
+ ]);
47
+ }
48
+ const v = /* @__PURE__ */ i(l, [["render", m]]);
49
+ export {
50
+ v as default
51
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../FieldPhone/click-outside.cjs");require("./Select.vue2.cjs");const g=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),B={key:0,class:"t-transp mn-r-small"},w={class:"w-100"},b=["onClick"],S={key:0,class:"w-100"},_={key:0,class:"mn-t-thin invalid-feedback"},C={__name:"Select",props:{label:String,select:[String,Object],property:String,placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(o,{emit:m}){const i=m;let f=y.default;const t=o,n=e.ref(t.property?u(t.select,t.property,t.options):t.select),a=e.ref(!1);function v(){a.value=!1}function u(l,p,c){for(const s of c)if(s[p]===l||s===l)return s;return null}e.watch(()=>t.select,l=>{n.value=t.property?u(t.select,t.property,t.options):t.select});const k=e.computed(()=>t.select?t.options.filter(l=>l!==t.select):t.options),d=()=>{a.value=!a.value,i(a.value?"focus":"blur")},h=l=>{n.value=l,d(),t.property?i("update:select",n.value[t.property]):i("update:select",n.value)};return(l,p)=>{var c,s;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),class:e.normalizeClass([l.$attrs.class,"cursor-pointer flex-v-center flex-nowrap flex pos-relative"])},[o.label?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("span",null,e.toDisplayString(o.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",w,[e.createElementVNode("span",null,e.toDisplayString((c=n.value)!=null&&c.name?(s=n.value)==null?void 0:s.name:n.value||o.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("ul",{class:e.normalizeClass([l.$attrs.class,"bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),style:{"min-width":"max-content"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,r=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(V=>h(r),["stop"])},[r?(e.openBlock(),e.createElementBlock("span",S,e.toDisplayString(r.name||r),1)):e.createCommentVNode("",!0)],8,b))),256))],2),[[e.vShow,a.value]])]),_:1})],2)),[[e.unref(f),v]]),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[o.validation?(e.openBlock(),e.createElementBlock("div",_," * "+e.toDisplayString(o.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},E=g.default(C,[["__scopeId","data-v-67f55841"]]);exports.default=E;
1
+ "use strict";
@@ -1,97 +1 @@
1
- import { ref as y, watch as M, computed as N, openBlock as s, createElementBlock as n, Fragment as k, withDirectives as b, withModifiers as w, normalizeClass as _, createElementVNode as u, toDisplayString as d, createCommentVNode as m, createVNode as g, Transition as S, withCtx as x, renderList as T, vShow as $, unref as z } from "vue";
2
- import D from "../FieldPhone/click-outside.js";
3
- import "./Select.vue2.js";
4
- import E from "../../../../_virtual/_plugin-vue_export-helper.js";
5
- const L = {
6
- key: 0,
7
- class: "t-transp mn-r-small"
8
- }, A = { class: "w-100" }, F = ["onClick"], I = {
9
- key: 0,
10
- class: "w-100"
11
- }, P = {
12
- key: 0,
13
- class: "mn-t-thin invalid-feedback"
14
- }, Y = {
15
- __name: "Select",
16
- props: {
17
- label: String,
18
- select: [String, Object],
19
- property: String,
20
- placeholder: { type: String, default: "Please select an item" },
21
- options: { type: Array, default: () => [] },
22
- validation: Boolean
23
- },
24
- emits: ["update:select", "focus", "blur"],
25
- setup(o, { emit: C }) {
26
- const p = C;
27
- let O = D;
28
- const e = o, l = y(e.property ? f(e.select, e.property, e.options) : e.select), i = y(!1);
29
- function B() {
30
- i.value = !1;
31
- }
32
- function f(t, h, c) {
33
- for (const a of c)
34
- if (a[h] === t || a === t)
35
- return a;
36
- return null;
37
- }
38
- M(() => e.select, (t) => {
39
- l.value = e.property ? f(e.select, e.property, e.options) : e.select;
40
- });
41
- const V = N(() => e.select ? e.options.filter((t) => t !== e.select) : e.options), v = () => {
42
- i.value = !i.value, p(i.value ? "focus" : "blur");
43
- }, j = (t) => {
44
- l.value = t, v(), e.property ? p("update:select", l.value[e.property]) : p("update:select", l.value);
45
- };
46
- return (t, h) => {
47
- var c, a;
48
- return s(), n(k, null, [
49
- b((s(), n("div", {
50
- onClick: w(v, ["stop"]),
51
- class: _([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
52
- }, [
53
- o.label ? (s(), n("div", L, [
54
- u("span", null, d(o.label), 1)
55
- ])) : m("", !0),
56
- u("li", A, [
57
- u("span", null, d((c = l.value) != null && c.name ? (a = l.value) == null ? void 0 : a.name : l.value || o.placeholder), 1)
58
- ]),
59
- g(S, {
60
- mode: "out-in",
61
- name: "TransitionTranslateY"
62
- }, {
63
- default: x(() => [
64
- b(u("ul", {
65
- class: _([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),
66
- style: { "min-width": "max-content" }
67
- }, [
68
- (s(!0), n(k, null, T(V.value, (r) => (s(), n("li", {
69
- onClick: w((q) => j(r), ["stop"])
70
- }, [
71
- r ? (s(), n("span", I, d(r.name || r), 1)) : m("", !0)
72
- ], 8, F))), 256))
73
- ], 2), [
74
- [$, i.value]
75
- ])
76
- ]),
77
- _: 1
78
- })
79
- ], 2)), [
80
- [z(O), B]
81
- ]),
82
- g(S, {
83
- mode: "out-in",
84
- name: "fade"
85
- }, {
86
- default: x(() => [
87
- o.validation ? (s(), n("div", P, " * " + d(o.validation.message), 1)) : m("", !0)
88
- ]),
89
- _: 1
90
- })
91
- ], 64);
92
- };
93
- }
94
- }, Q = /* @__PURE__ */ E(Y, [["__scopeId", "data-v-67f55841"]]);
95
- export {
96
- Q as default
97
- };
1
+
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../FieldPhone/click-outside.cjs");require("./Select.vue.cjs");const g=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),B={key:0,class:"t-transp mn-r-small"},w={class:"w-100"},b=["onClick"],S={key:0,class:"w-100"},_={key:0,class:"mn-t-thin invalid-feedback"},C={__name:"Select",props:{label:String,select:[String,Object],property:String,placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(o,{emit:m}){const i=m;let f=y.default;const t=o,n=e.ref(t.property?u(t.select,t.property,t.options):t.select),a=e.ref(!1);function v(){a.value=!1}function u(l,p,c){for(const s of c)if(s[p]===l||s===l)return s;return null}e.watch(()=>t.select,l=>{n.value=t.property?u(t.select,t.property,t.options):t.select});const k=e.computed(()=>t.select?t.options.filter(l=>l!==t.select):t.options),d=()=>{a.value=!a.value,i(a.value?"focus":"blur")},h=l=>{n.value=l,d(),t.property?i("update:select",n.value[t.property]):i("update:select",n.value)};return(l,p)=>{var c,s;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),class:e.normalizeClass([l.$attrs.class,"cursor-pointer flex-v-center flex-nowrap flex pos-relative"])},[o.label?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("span",null,e.toDisplayString(o.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",w,[e.createElementVNode("span",null,e.toDisplayString((c=n.value)!=null&&c.name?(s=n.value)==null?void 0:s.name:n.value||o.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("ul",{class:e.normalizeClass([l.$attrs.class,"bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),style:{"min-width":"max-content"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,r=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(V=>h(r),["stop"])},[r?(e.openBlock(),e.createElementBlock("span",S,e.toDisplayString(r.name||r),1)):e.createCommentVNode("",!0)],8,b))),256))],2),[[e.vShow,a.value]])]),_:1})],2)),[[e.unref(f),v]]),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[o.validation?(e.openBlock(),e.createElementBlock("div",_," * "+e.toDisplayString(o.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},E=g.default(C,[["__scopeId","data-v-67f55841"]]);exports.default=E;
@@ -1 +1,97 @@
1
-
1
+ import { ref as y, watch as M, computed as N, openBlock as s, createElementBlock as n, Fragment as k, withDirectives as b, withModifiers as w, normalizeClass as _, createElementVNode as u, toDisplayString as d, createCommentVNode as m, createVNode as g, Transition as S, withCtx as x, renderList as T, vShow as $, unref as z } from "vue";
2
+ import D from "../FieldPhone/click-outside.js";
3
+ import "./Select.vue.js";
4
+ import E from "../../../../_virtual/_plugin-vue_export-helper.js";
5
+ const L = {
6
+ key: 0,
7
+ class: "t-transp mn-r-small"
8
+ }, A = { class: "w-100" }, F = ["onClick"], I = {
9
+ key: 0,
10
+ class: "w-100"
11
+ }, P = {
12
+ key: 0,
13
+ class: "mn-t-thin invalid-feedback"
14
+ }, Y = {
15
+ __name: "Select",
16
+ props: {
17
+ label: String,
18
+ select: [String, Object],
19
+ property: String,
20
+ placeholder: { type: String, default: "Please select an item" },
21
+ options: { type: Array, default: () => [] },
22
+ validation: Boolean
23
+ },
24
+ emits: ["update:select", "focus", "blur"],
25
+ setup(o, { emit: C }) {
26
+ const p = C;
27
+ let O = D;
28
+ const e = o, l = y(e.property ? f(e.select, e.property, e.options) : e.select), i = y(!1);
29
+ function B() {
30
+ i.value = !1;
31
+ }
32
+ function f(t, h, c) {
33
+ for (const a of c)
34
+ if (a[h] === t || a === t)
35
+ return a;
36
+ return null;
37
+ }
38
+ M(() => e.select, (t) => {
39
+ l.value = e.property ? f(e.select, e.property, e.options) : e.select;
40
+ });
41
+ const V = N(() => e.select ? e.options.filter((t) => t !== e.select) : e.options), v = () => {
42
+ i.value = !i.value, p(i.value ? "focus" : "blur");
43
+ }, j = (t) => {
44
+ l.value = t, v(), e.property ? p("update:select", l.value[e.property]) : p("update:select", l.value);
45
+ };
46
+ return (t, h) => {
47
+ var c, a;
48
+ return s(), n(k, null, [
49
+ b((s(), n("div", {
50
+ onClick: w(v, ["stop"]),
51
+ class: _([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
52
+ }, [
53
+ o.label ? (s(), n("div", L, [
54
+ u("span", null, d(o.label), 1)
55
+ ])) : m("", !0),
56
+ u("li", A, [
57
+ u("span", null, d((c = l.value) != null && c.name ? (a = l.value) == null ? void 0 : a.name : l.value || o.placeholder), 1)
58
+ ]),
59
+ g(S, {
60
+ mode: "out-in",
61
+ name: "TransitionTranslateY"
62
+ }, {
63
+ default: x(() => [
64
+ b(u("ul", {
65
+ class: _([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),
66
+ style: { "min-width": "max-content" }
67
+ }, [
68
+ (s(!0), n(k, null, T(V.value, (r) => (s(), n("li", {
69
+ onClick: w((q) => j(r), ["stop"])
70
+ }, [
71
+ r ? (s(), n("span", I, d(r.name || r), 1)) : m("", !0)
72
+ ], 8, F))), 256))
73
+ ], 2), [
74
+ [$, i.value]
75
+ ])
76
+ ]),
77
+ _: 1
78
+ })
79
+ ], 2)), [
80
+ [z(O), B]
81
+ ]),
82
+ g(S, {
83
+ mode: "out-in",
84
+ name: "fade"
85
+ }, {
86
+ default: x(() => [
87
+ o.validation ? (s(), n("div", P, " * " + d(o.validation.message), 1)) : m("", !0)
88
+ ]),
89
+ _: 1
90
+ })
91
+ ], 64);
92
+ };
93
+ }
94
+ }, Q = /* @__PURE__ */ E(Y, [["__scopeId", "data-v-67f55841"]]);
95
+ export {
96
+ Q as default
97
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("vue-router"),m=require("vue-i18n"),f=require("../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs"),v=require("../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs");require("../Loader/Loader.vue2.cjs");const _={class:"embla__container"},b={__name:"Slider",props:{store:Object,options:Object,text:Object},setup(s){const n=s;p.useRouter(),m.useI18n(n.text||{messages:{en:{title:"Explore Our Collection"}}});const l=e.ref([]),r=e.ref(!0),u={delay:2e3,jump:!1,stopOnInteraction:!1,stopOnMouseEnter:!1,stopOnFocusIn:!0,stopOnLastSnap:!1,rootNode:o=>o.parentElement},[c,t]=f.default({loop:!0},[v.default(u)]),a=o=>selectedIndex.value=t.value.selectedScrollSnap();return e.onMounted(async()=>{l.value=await n.store.read({...n.options}),console.log(l.value),r.value=!1,onInit(t),a(),t.value.on("reInit",onInit),t.value.on("reInit",a),t.value.on("select",a)}),(o,O)=>(e.openBlock(),e.createElementBlock("div",{class:"embla",ref_key:"emblaNode",ref:c},[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(i,d,I)=>(e.openBlock(),e.createElementBlock("div",{class:"embla__slide pd-nano",key:d},[e.createVNode(e.Transition,{name:"fade",mode:"out-in",appear:""},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{item:i,user:o.user})]),_:2},1024)]))),128))])],512))}};exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("vue-router"),m=require("vue-i18n"),f=require("../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs"),v=require("../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs");require("../Loader/Loader.vue.cjs");const _={class:"embla__container"},b={__name:"Slider",props:{store:Object,options:Object,text:Object},setup(s){const n=s;p.useRouter(),m.useI18n(n.text||{messages:{en:{title:"Explore Our Collection"}}});const l=e.ref([]),r=e.ref(!0),u={delay:2e3,jump:!1,stopOnInteraction:!1,stopOnMouseEnter:!1,stopOnFocusIn:!0,stopOnLastSnap:!1,rootNode:o=>o.parentElement},[c,t]=f.default({loop:!0},[v.default(u)]),a=o=>selectedIndex.value=t.value.selectedScrollSnap();return e.onMounted(async()=>{l.value=await n.store.read({...n.options}),console.log(l.value),r.value=!1,onInit(t),a(),t.value.on("reInit",onInit),t.value.on("reInit",a),t.value.on("select",a)}),(o,O)=>(e.openBlock(),e.createElementBlock("div",{class:"embla",ref_key:"emblaNode",ref:c},[e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(i,d,I)=>(e.openBlock(),e.createElementBlock("div",{class:"embla__slide pd-nano",key:d},[e.createVNode(e.Transition,{name:"fade",mode:"out-in",appear:""},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{item:i,user:o.user})]),_:2},1024)]))),128))])],512))}};exports.default=b;
@@ -3,7 +3,7 @@ import { useRouter as y } from "vue-router";
3
3
  import { useI18n as E } from "vue-i18n";
4
4
  import N from "../../../../node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js";
5
5
  import g from "../../../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";
6
- import "../Loader/Loader.vue2.js";
6
+ import "../Loader/Loader.vue.js";
7
7
  const j = { class: "embla__container" }, F = {
8
8
  __name: "Slider",
9
9
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Spoiler.vue2.cjs");const n={key:0,class:"spoiler"},a={__name:"Spoiler",props:{status:{type:Boolean,default:!1}},setup(r){const l=r,t=e.ref(!1);return l.status&&(t.value=l.status),(o,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{onClick:s[0]||(s[0]=u=>t.value=!t.value),class:"flex-v-center flex-nowrap flex"},[e.renderSlot(o.$slots,"header",{isOpen:t.value})]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(o.$slots,"content")])):e.createCommentVNode("",!0)]),_:3})]))}};exports.default=a;
1
+ "use strict";
@@ -1,36 +1 @@
1
- import { ref as i, openBlock as s, createElementBlock as a, createElementVNode as p, renderSlot as n, createVNode as u, Transition as c, withCtx as d, createCommentVNode as f } from "vue";
2
- import "./Spoiler.vue2.js";
3
- const m = {
4
- key: 0,
5
- class: "spoiler"
6
- }, x = {
7
- __name: "Spoiler",
8
- props: {
9
- status: {
10
- type: Boolean,
11
- default: !1
12
- }
13
- },
14
- setup(r) {
15
- const t = r, e = i(!1);
16
- return t.status && (e.value = t.status), (o, l) => (s(), a("div", null, [
17
- p("div", {
18
- onClick: l[0] || (l[0] = (v) => e.value = !e.value),
19
- class: "flex-v-center flex-nowrap flex"
20
- }, [
21
- n(o.$slots, "header", { isOpen: e.value })
22
- ]),
23
- u(c, { name: "collapse" }, {
24
- default: d(() => [
25
- e.value ? (s(), a("div", m, [
26
- n(o.$slots, "content")
27
- ])) : f("", !0)
28
- ]),
29
- _: 3
30
- })
31
- ]));
32
- }
33
- };
34
- export {
35
- x as default
36
- };
1
+
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Spoiler.vue.cjs");const n={key:0,class:"spoiler"},a={__name:"Spoiler",props:{status:{type:Boolean,default:!1}},setup(r){const l=r,t=e.ref(!1);return l.status&&(t.value=l.status),(o,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{onClick:s[0]||(s[0]=u=>t.value=!t.value),class:"flex-v-center flex-nowrap flex"},[e.renderSlot(o.$slots,"header",{isOpen:t.value})]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(o.$slots,"content")])):e.createCommentVNode("",!0)]),_:3})]))}};exports.default=a;
@@ -1 +1,36 @@
1
-
1
+ import { ref as i, openBlock as s, createElementBlock as a, createElementVNode as p, renderSlot as n, createVNode as u, Transition as c, withCtx as d, createCommentVNode as f } from "vue";
2
+ import "./Spoiler.vue.js";
3
+ const m = {
4
+ key: 0,
5
+ class: "spoiler"
6
+ }, x = {
7
+ __name: "Spoiler",
8
+ props: {
9
+ status: {
10
+ type: Boolean,
11
+ default: !1
12
+ }
13
+ },
14
+ setup(r) {
15
+ const t = r, e = i(!1);
16
+ return t.status && (e.value = t.status), (o, l) => (s(), a("div", null, [
17
+ p("div", {
18
+ onClick: l[0] || (l[0] = (v) => e.value = !e.value),
19
+ class: "flex-v-center flex-nowrap flex"
20
+ }, [
21
+ n(o.$slots, "header", { isOpen: e.value })
22
+ ]),
23
+ u(c, { name: "collapse" }, {
24
+ default: d(() => [
25
+ e.value ? (s(), a("div", m, [
26
+ n(o.$slots, "content")
27
+ ])) : f("", !0)
28
+ ]),
29
+ _: 3
30
+ })
31
+ ]));
32
+ }
33
+ };
34
+ export {
35
+ x as default
36
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../../../node_modules/axios/lib/axios.cjs"),b=require("../Loader/Loader.vue.cjs"),x=require("../../modules/icons/navigation/IconUpload.vue.cjs"),y={key:0,class:"t-center"},g={key:0,class:"mn-t-thin mn-b-thin d-block h3 t-black"},v={key:1,class:"mn-b-thin t-transp d-block"},B={key:2,class:"mn-b-thin uppercase p-small t-medium d-block"},w={key:3,class:"cursor-pointer mn-b-small br-2px br-main br-solid radius-extra pd-l-thin pd-r-thin t-main"},C={key:4,class:"uppercase p-small t-medium d-block"},T={__name:"UploadImageMultiple",props:{uploadPath:{type:Object,required:!0},options:{type:Object,default:()=>({mimeType:["jpg","png","gif"],maxSize:10*1024*1024,showText:!0,showTitle:!0})},text:{type:Object,default:()=>({title:"Drag & Drop Your Images Here",subtitle:"Files supported: JPG, PNG, GIF"})}},emits:["update:images"],setup(t,{emit:u}){const s=e.ref([]),l=e.ref(!1),r=e.ref(null),p=t,m=u;function d(){r.value.click()}async function i(o){l.value=!0;let n=o.target.files,c=new FormData;for(const a of n)c.append("file",a);try{(await k.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(p.uploadPath)}`,c,{headers:{"Content-Type":"multipart/form-data"}})).data.forEach(h=>{s.value.push(h.filepath)}),m("update:images",s.value),l.value=!1}catch(a){console.error(a),l.value=!1}}function f(o){o.preventDefault(),i({target:{files:o.dataTransfer.files}})}return(o,n)=>(e.openBlock(),e.createElementBlock("div",{onClick:d,onDrop:f,onDragover:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),class:"cursor-pointer t-black w-100 flex-v-center flex-h-center flex pos-relative"},[e.createVNode(e.Transition,{name:"moveFromTop",mode:"out-in"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createBlock(b.default,{key:1,class:"pos-absolute"})):(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(x.default,{style:{"max-height":"4rem"},class:"w-100 h-100",fill:"rgb(var(--main))"}),t.options.showText||t.options.showTitle?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(t.text.title),1)):e.createCommentVNode("",!0),t.options.showText?(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(t.text.subtitle),1)):e.createCommentVNode("",!0),t.options.showText?(e.openBlock(),e.createElementBlock("span",B,"or")):e.createCommentVNode("",!0),t.options.showText?(e.openBlock(),e.createElementBlock("button",w,"Browse Files")):e.createCommentVNode("",!0),t.options.showText?(e.openBlock(),e.createElementBlock("span",C,"Maximum size: 2MB")):e.createCommentVNode("",!0)]))]),_:1}),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:r,onChange:i,multiple:"",style:{display:"none"}},null,544)],32))}};exports.default=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../../../node_modules/axios/lib/axios.cjs"),b=require("../Loader/Loader.vue2.cjs"),x=require("../../modules/icons/navigation/IconUpload.vue.cjs"),y={key:0,class:"t-center"},g={key:0,class:"mn-t-thin mn-b-thin d-block h3 t-black"},v={key:1,class:"mn-b-thin t-transp d-block"},B={key:2,class:"mn-b-thin uppercase p-small t-medium d-block"},w={key:3,class:"cursor-pointer mn-b-small br-2px br-main br-solid radius-extra pd-l-thin pd-r-thin t-main"},C={key:4,class:"uppercase p-small t-medium d-block"},T={__name:"UploadImageMultiple",props:{uploadPath:{type:Object,required:!0},options:{type:Object,default:()=>({mimeType:["jpg","png","gif"],maxSize:10*1024*1024,showText:!0,showTitle:!0})},text:{type:Object,default:()=>({title:"Drag & Drop Your Images Here",subtitle:"Files supported: JPG, PNG, GIF"})}},emits:["update:images"],setup(t,{emit:u}){const s=e.ref([]),l=e.ref(!1),r=e.ref(null),p=t,m=u;function d(){r.value.click()}async function i(o){l.value=!0;let n=o.target.files,c=new FormData;for(const a of n)c.append("file",a);try{(await k.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(p.uploadPath)}`,c,{headers:{"Content-Type":"multipart/form-data"}})).data.forEach(h=>{s.value.push(h.filepath)}),m("update:images",s.value),l.value=!1}catch(a){console.error(a),l.value=!1}}function f(o){o.preventDefault(),i({target:{files:o.dataTransfer.files}})}return(o,n)=>(e.openBlock(),e.createElementBlock("div",{onClick:d,onDrop:f,onDragover:n[0]||(n[0]=e.withModifiers(()=>{},["prevent"])),class:"cursor-pointer t-black w-100 flex-v-center flex-h-center flex pos-relative"},[e.createVNode(e.Transition,{name:"moveFromTop",mode:"out-in"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createBlock(b.default,{key:1,class:"pos-absolute"})):(e.openBlock(),e.createElementBlock("div",y,[e.createVNode(x.default,{style:{"max-height":"4rem"},class:"w-100 h-100",fill:"rgb(var(--main))"}),t.options.showText||t.options.showTitle?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(t.text.title),1)):e.createCommentVNode("",!0),t.options.showText?(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(t.text.subtitle),1)):e.createCommentVNode("",!0),t.options.showText?(e.openBlock(),e.createElementBlock("span",B,"or")):e.createCommentVNode("",!0),t.options.showText?(e.openBlock(),e.createElementBlock("button",w,"Browse Files")):e.createCommentVNode("",!0),t.options.showText?(e.openBlock(),e.createElementBlock("span",C,"Maximum size: 2MB")):e.createCommentVNode("",!0)]))]),_:1}),e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:r,onChange:i,multiple:"",style:{display:"none"}},null,544)],32))}};exports.default=T;
@@ -1,6 +1,6 @@
1
1
  import { ref as r, openBlock as t, createElementBlock as o, withModifiers as v, createVNode as d, Transition as w, withCtx as T, toDisplayString as f, createCommentVNode as a, createBlock as C, createElementVNode as D } from "vue";
2
2
  import I from "../../../node_modules/axios/lib/axios.js";
3
- import F from "../Loader/Loader.vue.js";
3
+ import F from "../Loader/Loader.vue2.js";
4
4
  import B from "../../modules/icons/navigation/IconUpload.vue.js";
5
5
  const N = {
6
6
  key: 0,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/layouts/Auth.vue.cjs"),t=require("./components/pages/EnterCode.vue.cjs"),r=require("./components/pages/Invite.vue.cjs"),u=require("./components/pages/EnterPassword.vue.cjs"),s=require("./components/pages/ResetPassword.vue.cjs"),n=require("./components/pages/SignUp.vue.cjs"),o=require("./components/pages/SignIn.vue.cjs"),i=require("./components/sections/SliderFeatures.vue.cjs"),a=require("./store/auth.cjs"),d=require("./store/twofa.cjs"),c=require("./store/invites.cjs"),l=require("./router/auth.cjs");exports.Auth=e.default;exports.EnterCode=t.default;exports.Invite=r.default;exports.EnterPassword=u.default;exports.ResetPassword=s.default;exports.SignUp=n.default;exports.SignIn=o.default;exports.SliderFeatures=i.default;exports.authStore=a;exports.twofaStore=d;exports.invitesStore=c;exports.authRoutes=l.default;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/layouts/Auth.vue.cjs"),t=require("./components/pages/EnterCode.vue.cjs"),r=require("./components/pages/Invite.vue.cjs"),u=require("./components/pages/EnterPassword.vue.cjs"),o=require("./components/pages/ResetPassword.vue.cjs"),s=require("./components/pages/SignUp.vue.cjs"),n=require("./components/pages/SignIn.vue.cjs"),a=require("./components/sections/SliderFeatures.vue.cjs"),i=require("./store/auth.cjs"),d=require("./store/twofa.cjs"),l=require("./router/auth.cjs");exports.Auth=e.default;exports.EnterCode=t.default;exports.Invite=r.default;exports.EnterPassword=u.default;exports.ResetPassword=o.default;exports.SignUp=s.default;exports.SignIn=n.default;exports.SliderFeatures=a.default;exports.authStore=i;exports.twofaStore=d;exports.authRoutes=l.default;