@ozdao/prometheus-framework 0.1.81 → 0.1.83

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +4 -4
  2. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +3 -3
  3. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  4. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2981 -2804
  5. package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.cjs +1 -0
  6. package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.js +10 -0
  7. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
  8. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +26 -26
  9. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.cjs +1 -0
  10. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.js +7 -0
  11. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
  12. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +28 -29
  13. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.cjs +2 -2
  14. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.js +55 -65
  15. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  16. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  17. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/Address/Address.vue.js +23 -23
  19. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +31 -31
  21. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +22 -22
  23. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +18 -18
  25. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +24 -24
  27. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +32 -32
  29. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +31 -30
  31. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
  32. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +20 -20
  34. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +32 -32
  36. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +21 -21
  38. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  39. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +8 -8
  40. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  41. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +12 -12
  42. package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/components/Text/Text.vue.js +11 -11
  44. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +27 -27
  46. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +18 -18
  48. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +17 -17
  50. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +41 -40
  52. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/auth/store/auth.js +17 -18
  54. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +24 -24
  56. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +19 -19
  58. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +2 -2
  59. package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +16 -16
  60. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +13 -13
  62. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +16 -16
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +3 -3
  65. package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +30 -30
  66. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +22 -22
  68. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +3 -3
  69. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +25 -25
  70. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +56 -56
  72. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +44 -43
  74. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +15 -15
  76. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +10 -10
  77. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +51 -53
  79. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +59 -61
  81. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +22 -22
  83. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +23 -23
  85. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +9 -9
  87. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +23 -23
  89. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +11 -11
  91. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +18 -18
  93. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +30 -30
  96. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +24 -24
  98. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +20 -20
  100. package/dist/prometheus-framework.cjs.js +27 -27
  101. package/dist/prometheus-framework.es.js +1949 -1937
  102. package/dist/style.css +1 -1
  103. package/package.json +2 -4
  104. package/src/modules/auth/components/pages/SignIn.vue +1 -0
  105. package/src/modules/auth/store/auth.js +2 -7
@@ -1,8 +1,8 @@
1
- import { openBlock as n, createBlock as m, withCtx as l, createTextVNode as g, toDisplayString as h } from "vue";
2
- import y from "../../../../components/Button/Button.vue2.js";
1
+ import { openBlock as m, createBlock as l, withCtx as g, createTextVNode as h, toDisplayString as y } from "vue";
2
+ import b from "../../../../components/Button/Button.vue2.js";
3
3
  import "../../../auth/store/auth.js";
4
4
  import { actions as i } from "../../store/memberships.js";
5
- const x = {
5
+ const M = {
6
6
  __name: "ButtonToggleMembership",
7
7
  props: {
8
8
  user: {
@@ -34,11 +34,11 @@ const x = {
34
34
  }
35
35
  },
36
36
  emits: ["updateMembership"],
37
- setup(a, { emit: o }) {
38
- const e = a, p = async () => {
39
- e.status ? await u() : await c();
37
+ setup(a, { emit: c }) {
38
+ const o = c, e = a, p = async () => {
39
+ e.status ? await u() : await n();
40
40
  };
41
- async function c() {
41
+ async function n() {
42
42
  try {
43
43
  const t = {
44
44
  user: e.user,
@@ -73,18 +73,18 @@ const x = {
73
73
  throw console.log(s), s;
74
74
  }
75
75
  }
76
- return (t, r) => (n(), m(y, {
76
+ return (t, r) => (m(), l(b, {
77
77
  submit: p,
78
78
  showSucces: !1,
79
79
  class: "button-small button"
80
80
  }, {
81
- default: l(() => [
82
- g(h(a.status ? e.text.remove : e.text.create), 1)
81
+ default: g(() => [
82
+ h(y(a.status ? e.text.remove : e.text.create), 1)
83
83
  ]),
84
84
  _: 1
85
85
  }));
86
86
  }
87
87
  };
88
88
  export {
89
- x as default
89
+ M as default
90
90
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let u,l;const o=a;e.ref("departments"),[u,l]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await u,l();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.unref(i).length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organization/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),e.unref(i).length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organization/${o.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const c=require("../blocks/EmptyState.vue.cjs"),m=require("../blocks/CardDepartment.vue.cjs"),d=require("../../store/departments.cjs"),p=require("../../../auth/store/auth.cjs"),g={__name:"FeedDepartments",props:{organization:Object,units:Array,memberships:Array},async setup(a){let l,u;const o=a;e.ref("departments"),[l,u]=e.withAsyncContext(()=>d.actions.read(o.organization._id)),await l,u();const i=e.computed(()=>{const n=d.state.departments,r=n.flatMap(t=>t.subdepartments.map(s=>s._id));return n.filter(t=>!r.includes(t._id))});return(n,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[i.value.length<1?(e.openBlock(),e.createBlock(c.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>n.$router.push(`/organization/${o.organization._id}/departments/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(t,s)=>(e.openBlock(),e.createBlock(m.default,{key:s,department:t,organization:a.organization,class:"radius-big bg-grey mn-thin"},null,8,["department","organization"]))),128)),i.value.length>0&&p.state.user._id===a.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=t=>n.$router.push(`/organization/${o.organization._id}/departments/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
@@ -1,10 +1,10 @@
1
- import { ref as f, withAsyncContext as b, computed as y, openBlock as n, createBlock as d, Transition as _, withCtx as h, createElementVNode as u, unref as m, createCommentVNode as c, createElementBlock as g, Fragment as z, renderList as k } from "vue";
1
+ import { ref as g, withAsyncContext as f, computed as b, openBlock as n, createBlock as d, Transition as y, withCtx as _, createElementVNode as u, createCommentVNode as p, createElementBlock as c, Fragment as h, renderList as z } from "vue";
2
2
  import "../../../../components/Tab/Tab.vue.js";
3
- import $ from "../blocks/EmptyState.vue.js";
4
- import A from "../blocks/CardDepartment.vue.js";
5
- import { actions as v, state as w } from "../../store/departments.js";
6
- import { state as C } from "../../../auth/store/auth.js";
7
- const N = {
3
+ import k from "../blocks/EmptyState.vue.js";
4
+ import v from "../blocks/CardDepartment.vue.js";
5
+ import { actions as $, state as A } from "../../store/departments.js";
6
+ import { state as w } from "../../../auth/store/auth.js";
7
+ const L = {
8
8
  __name: "FeedDepartments",
9
9
  props: {
10
10
  organization: Object,
@@ -12,39 +12,39 @@ const N = {
12
12
  memberships: Array
13
13
  },
14
14
  async setup(a) {
15
- let l, p;
15
+ let m, l;
16
16
  const o = a;
17
- f("departments"), [l, p] = b(() => v.read(o.organization._id)), await l, p();
18
- const i = y(() => {
19
- const e = w.departments, r = e.flatMap(
17
+ g("departments"), [m, l] = f(() => $.read(o.organization._id)), await m, l();
18
+ const i = b(() => {
19
+ const e = A.departments, r = e.flatMap(
20
20
  (t) => t.subdepartments.map((s) => s._id)
21
21
  );
22
22
  return e.filter(
23
23
  (t) => !r.includes(t._id)
24
24
  );
25
25
  });
26
- return (e, r) => (n(), d(_, { name: "slide-fade" }, {
27
- default: h(() => [
26
+ return (e, r) => (n(), d(y, { name: "slide-fade" }, {
27
+ default: _(() => [
28
28
  u("div", null, [
29
- m(i).length < 1 ? (n(), d($, {
29
+ i.value.length < 1 ? (n(), d(k, {
30
30
  key: 0,
31
31
  title: "You don't have any spots yet.",
32
32
  description: "Add spots to your hub.",
33
33
  action: "Add spot",
34
34
  callback: () => e.$router.push(`/organization/${o.organization._id}/departments/create`)
35
- }, null, 8, ["callback"])) : c("", !0),
35
+ }, null, 8, ["callback"])) : p("", !0),
36
36
  u("div", null, [
37
- (n(!0), g(z, null, k(m(i), (t, s) => (n(), d(A, {
37
+ (n(!0), c(h, null, z(i.value, (t, s) => (n(), d(v, {
38
38
  key: s,
39
39
  department: t,
40
40
  organization: a.organization,
41
41
  class: "radius-big bg-grey mn-thin"
42
42
  }, null, 8, ["department", "organization"]))), 128)),
43
- m(i).length > 0 && C.user._id === a.organization.owner ? (n(), g("button", {
43
+ i.value.length > 0 && w.user._id === a.organization.owner ? (n(), c("button", {
44
44
  key: 0,
45
45
  onClick: r[0] || (r[0] = (t) => e.$router.push(`/organization/${o.organization._id}/departments/create`)),
46
46
  class: "mn-thin button w-100"
47
- }, " Add spot ")) : c("", !0)
47
+ }, " Add spot ")) : p("", !0)
48
48
  ])
49
49
  ])
50
50
  ]),
@@ -53,5 +53,5 @@ const N = {
53
53
  }
54
54
  };
55
55
  export {
56
- N as default
56
+ L as default
57
57
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("../../../../components/Field/Field.vue2.cjs"),_=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),h={class:"mn-medium radius-medium pd-semi bg-white"},b=e.createElementVNode("h3",{class:"mn-medium"},"Добавить участников",-1),k=e.createElementVNode("p",{class:"mn-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),E={class:"w-100 flex-nowrap flex"},V={key:0,class:"mn-r-medium flex-v-center flex"},N=["onClick"],g=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),w=[g],B=e.createElementVNode("span",null,"Отправить приглашения ",-1),x={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(s,{emit:q}){const i=s,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(n){t.value.splice(n,1)}async function u(n){await c.actions.create(i.organization._id,t.value)}function p(){}return(n,y)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",h,[b,k,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(l,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"br-1px br-solid br-grey flex radius-small mn-thin"},[e.createElementVNode("div",E,[e.createVNode(v.default,{field:l.contact,"onUpdate:field":a=>l.contact=a,placeholder:"Email или телефон",class:"w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),o>0?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("button",{onClick:a=>m(o),class:"button-small button"},"×",8,N)])):e.createCommentVNode("",!0)]),e.createVNode(_.default,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:l,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-small flex-v-center flex-nowrap flex"},w),e.createVNode(f.default,{submit:n.a=()=>u(c.state.invites),callback:p,class:"mn-t-medium"},{default:e.withCtx(()=>[B]),_:1},8,["submit"])])]))}};exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../../../../components/Field/Field.vue2.cjs"),v=require("../../../../components/Select/Select.vue2.cjs"),f=require("../../../../components/Button/Button.vue2.cjs");require("../../../middlewares/client/inputs.validation.cjs");const c=require("../../store/invites.cjs"),h={class:"mn-medium radius-medium pd-semi bg-white"},b=e.createElementVNode("h3",{class:"mn-medium"},"Добавить участников",-1),k=e.createElementVNode("p",{class:"mn-small t-transp p-medium"},"Укажите email или телефон, чтобы отправить ссылку с приглашением:",-1),E={class:"w-100 flex-nowrap flex"},V={key:0,class:"mn-r-medium flex-v-center flex"},N=["onClick"],g=e.createElementVNode("p",{class:"t-blue mn-r-small"},"+ Добавить приглашение",-1),w=[g],B=e.createElementVNode("span",null,"Отправить приглашения ",-1),x={__name:"MembersAdd",props:{organization:Object},emits:["send-invite"],setup(s,{emit:q}){const i=s,r=e.ref(null),t=e.ref([{contact:"",role:""}]);function d(){t.value.push({contact:"",role:""})}function m(n){t.value.splice(n,1)}async function u(n){await c.actions.create(i.organization._id,t.value)}function p(){}return(n,y)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("section",h,[b,k,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(l,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"br-1px br-solid br-grey flex radius-small mn-thin"},[e.createElementVNode("div",E,[e.createVNode(_.default,{field:l.contact,"onUpdate:field":a=>l.contact=a,placeholder:"Email или телефон",class:"w-100 bg-white",validation:r.value},null,8,["field","onUpdate:field","validation"]),o>0?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("button",{onClick:a=>m(o),class:"button-small button"},"×",8,N)])):e.createCommentVNode("",!0)]),e.createVNode(v.default,{options:[{name:"Директор",value:"director"},{name:"Менеджер",value:"manager"},{name:"Сотрудник",value:"member"}],prop:l,content:"role",placeholder:"Роль",size:"small",class:"w-80"},null,8,["prop"])]))),128)),e.createElementVNode("div",{onClick:d,class:"mn-small flex-v-center flex-nowrap flex"},w),e.createVNode(f.default,{submit:n.a=()=>u(c.state.invites),callback:p,class:"mn-t-medium"},{default:e.withCtx(()=>[B]),_:1},8,["submit"])])]))}};exports.default=x;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Tab/Tab.vue2.cjs"),p={class:"mn-big radius-medium bg-white"},v={key:0,class:"pd-semi"},b={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},_={class:"w-100 mn-r-small"},k={class:"t-transp"},h={key:0,class:"mn-l-medium flex-v-center flex"},B=["onClick"],f={key:1,class:"pd-semi"},g={key:0},E={class:"br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium"},y={class:"w-100 mn-r-small"},x={class:"t-transp"},N={class:"mn-l-medium flex-v-center flex"},V=["onClick"],C={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(n,{emit:i}){const c=n,o=e.ref("members");function a(l,s){c.memberships.splice(l,1),i("removeMember",s)}function m(l,s){c.invites.splice(l,1),i("removeInvite",s)}return(l,s)=>(e.openBlock(),e.createElementBlock("section",p,[e.createVNode(u.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=t=>o.value=t),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),o.value==="members"?(e.openBlock(),e.createElementBlock("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.memberships,(t,r)=>(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",_,e.toDisplayString(t.user.email)+" "+e.toDisplayString(t.user.phone),1),e.createElementVNode("span",k,e.toDisplayString(t.position),1),t.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("button",{onClick:d=>a(r,t),class:"button-small button"},"×",8,B)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),o.value==="invites"?(e.openBlock(),e.createElementBlock("div",f,[n.invites.length<1?(e.openBlock(),e.createElementBlock("span",g,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("span",y,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",x,e.toDisplayString(t.status),1),e.createElementVNode("div",N,[e.createElementVNode("button",{onClick:d=>m(r,t),class:"button-small button"},"×",8,V)])]))),256))])):e.createCommentVNode("",!0)]))}};exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("../../../../components/Tab/Tab.vue2.cjs"),v={class:"mn-big radius-medium bg-white"},b={key:0,class:"pd-semi"},_={class:"br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium"},k={class:"w-100 mn-r-small"},h={class:"t-transp"},B={key:0,class:"mn-l-medium flex-v-center flex"},f=["onClick"],g={key:1,class:"pd-semi"},E={key:0},y={class:"br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium"},x={class:"w-100 mn-r-small"},N={class:"t-transp"},V={class:"mn-l-medium flex-v-center flex"},C=["onClick"],S={__name:"MembersList",props:{organization:Object,memberships:Array,invites:Array},emits:[["removeMember","removeInvite"]],setup(n,{emit:a}){const i=n,c=a,o=e.ref("members");function m(l,s){i.memberships.splice(l,1),c("removeMember",s)}function d(l,s){i.invites.splice(l,1),c("removeInvite",s)}return(l,s)=>(e.openBlock(),e.createElementBlock("section",v,[e.createVNode(p.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=t=>o.value=t),class:"br-grey br-b br-solid radius-small",tabs:[{name:"Участники",value:"members"},{name:"Приглашения",value:"invites"}]},null,8,["selected"]),o.value==="members"?(e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.memberships,(t,r)=>(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",k,e.toDisplayString(t.user.email)+" "+e.toDisplayString(t.user.phone),1),e.createElementVNode("span",h,e.toDisplayString(t.position),1),t.position!=="Основатель"?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("button",{onClick:u=>m(r,t),class:"button-small button"},"×",8,f)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),o.value==="invites"?(e.openBlock(),e.createElementBlock("div",g,[n.invites.length<1?(e.openBlock(),e.createElementBlock("span",E,"В организации нет приглашений")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.invites,(t,r)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("span",x,e.toDisplayString(t.invitedEmail)+" "+e.toDisplayString(t.invitedPhone),1),e.createElementVNode("span",N,e.toDisplayString(t.status),1),e.createElementVNode("div",V,[e.createElementVNode("button",{onClick:u=>d(r,t),class:"button-small button"},"×",8,C)])]))),256))])):e.createCommentVNode("",!0)]))}};exports.default=S;
@@ -1,15 +1,15 @@
1
- import { ref as f, openBlock as s, createElementBlock as t, createVNode as x, Fragment as v, renderList as p, createElementVNode as n, toDisplayString as o, createCommentVNode as m } from "vue";
2
- import k from "../../../../components/Tab/Tab.vue2.js";
3
- const y = { class: "mn-big radius-medium bg-white" }, g = {
1
+ import { ref as x, openBlock as s, createElementBlock as t, createVNode as k, Fragment as v, renderList as p, createElementVNode as n, toDisplayString as o, createCommentVNode as m } from "vue";
2
+ import y from "../../../../components/Tab/Tab.vue2.js";
3
+ const g = { class: "mn-big radius-medium bg-white" }, w = {
4
4
  key: 0,
5
5
  class: "pd-semi"
6
- }, w = { class: "br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium" }, C = { class: "w-100 mn-r-small" }, M = { class: "t-transp" }, E = {
6
+ }, C = { class: "br-grey br-1px br-solid radius-small flex-nowrap flex-v-center flex pd-medium" }, M = { class: "w-100 mn-r-small" }, E = { class: "t-transp" }, I = {
7
7
  key: 0,
8
8
  class: "mn-l-medium flex-v-center flex"
9
- }, I = ["onClick"], N = {
9
+ }, N = ["onClick"], V = {
10
10
  key: 1,
11
11
  class: "pd-semi"
12
- }, V = { key: 0 }, $ = { class: "br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium" }, A = { class: "w-100 mn-r-small" }, B = { class: "t-transp" }, L = { class: "mn-l-medium flex-v-center flex" }, j = ["onClick"], F = {
12
+ }, $ = { key: 0 }, A = { class: "br-grey br-1px br-solid radius-small mn-thin flex-nowrap flex-v-center flex pd-medium" }, B = { class: "w-100 mn-r-small" }, L = { class: "t-transp" }, j = { class: "mn-l-medium flex-v-center flex" }, z = ["onClick"], O = {
13
13
  __name: "MembersList",
14
14
  props: {
15
15
  organization: Object,
@@ -17,16 +17,16 @@ const y = { class: "mn-big radius-medium bg-white" }, g = {
17
17
  invites: Array
18
18
  },
19
19
  emits: [["removeMember", "removeInvite"]],
20
- setup(l, { emit: d }) {
21
- const u = l, r = f("members");
22
- function b(a, i) {
23
- u.memberships.splice(a, 1), d("removeMember", i);
24
- }
20
+ setup(l, { emit: b }) {
21
+ const d = l, u = b, r = x("members");
25
22
  function _(a, i) {
26
- u.invites.splice(a, 1), d("removeInvite", i);
23
+ d.memberships.splice(a, 1), u("removeMember", i);
24
+ }
25
+ function h(a, i) {
26
+ d.invites.splice(a, 1), u("removeInvite", i);
27
27
  }
28
- return (a, i) => (s(), t("section", y, [
29
- x(k, {
28
+ return (a, i) => (s(), t("section", g, [
29
+ k(y, {
30
30
  selected: r.value,
31
31
  "onUpdate:selected": i[0] || (i[0] = (e) => r.value = e),
32
32
  class: "br-grey br-b br-solid radius-small",
@@ -35,28 +35,28 @@ const y = { class: "mn-big radius-medium bg-white" }, g = {
35
35
  { name: "Приглашения", value: "invites" }
36
36
  ]
37
37
  }, null, 8, ["selected"]),
38
- r.value === "members" ? (s(), t("div", g, [
39
- (s(!0), t(v, null, p(l.memberships, (e, c) => (s(), t("div", w, [
40
- n("span", C, o(e.user.email) + " " + o(e.user.phone), 1),
41
- n("span", M, o(e.position), 1),
42
- e.position !== "Основатель" ? (s(), t("div", E, [
38
+ r.value === "members" ? (s(), t("div", w, [
39
+ (s(!0), t(v, null, p(l.memberships, (e, c) => (s(), t("div", C, [
40
+ n("span", M, o(e.user.email) + " " + o(e.user.phone), 1),
41
+ n("span", E, o(e.position), 1),
42
+ e.position !== "Основатель" ? (s(), t("div", I, [
43
43
  n("button", {
44
- onClick: (h) => b(c, e),
44
+ onClick: (f) => _(c, e),
45
45
  class: "button-small button"
46
- }, "×", 8, I)
46
+ }, "×", 8, N)
47
47
  ])) : m("", !0)
48
48
  ]))), 256))
49
49
  ])) : m("", !0),
50
- r.value === "invites" ? (s(), t("div", N, [
51
- l.invites.length < 1 ? (s(), t("span", V, "В организации нет приглашений")) : m("", !0),
52
- (s(!0), t(v, null, p(l.invites, (e, c) => (s(), t("div", $, [
53
- n("span", A, o(e.invitedEmail) + " " + o(e.invitedPhone), 1),
54
- n("span", B, o(e.status), 1),
55
- n("div", L, [
50
+ r.value === "invites" ? (s(), t("div", V, [
51
+ l.invites.length < 1 ? (s(), t("span", $, "В организации нет приглашений")) : m("", !0),
52
+ (s(!0), t(v, null, p(l.invites, (e, c) => (s(), t("div", A, [
53
+ n("span", B, o(e.invitedEmail) + " " + o(e.invitedPhone), 1),
54
+ n("span", L, o(e.status), 1),
55
+ n("div", j, [
56
56
  n("button", {
57
- onClick: (h) => _(c, e),
57
+ onClick: (f) => h(c, e),
58
58
  class: "button-small button"
59
- }, "×", 8, j)
59
+ }, "×", 8, z)
60
60
  ])
61
61
  ]))), 256))
62
62
  ])) : m("", !0)
@@ -64,5 +64,5 @@ const y = { class: "mn-big radius-medium bg-white" }, g = {
64
64
  }
65
65
  };
66
66
  export {
67
- F as default
67
+ O as default
68
68
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),c=require("../../../../components/Checkbox/Checkbox.vue.cjs"),_=require("vue-i18n"),u=require("../../store/categories.cjs");require("./FilterProducts.vue2.cjs");const v={class:"pd-medium bg-grey radius-big"},x={class:"mn-small"},y=e.createElementVNode("hr",{class:"mn-small"},null,-1),k={class:"mn-r-auto t-medium p-big"},C=e.createElementVNode("hr",{class:"mn-small"},null,-1),w={class:"mn-r-auto t-medium p-big"},E=e.createElementVNode("hr",{class:"mn-small"},null,-1),F=e.createElementVNode("p",{class:"mn-r-auto t-medium p-big"},"Delivery",-1),B=e.createElementVNode("hr",{class:"mn-semi"},null,-1),N={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under $5",value:{min:0,max:5}},{label:"$5 to $10",value:{min:5,max:10}},{label:"$10 to $20",value:{min:10,max:20}},{label:"$20 and above",value:{min:20,max:1/0}}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(m,{emit:d}){let h,g;[h,g]=e.withAsyncContext(()=>u.actions.fetchCategories()),await h,g();let n=e.ref({categories:[],prices:[],delivery:[],extra:[]});const i=(s,l)=>{d("updateFilters",{filterType:s,value:l})},f=()=>{d("resetFilters")},b={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(s=>{s.localization.forEach(l=>{b.messages[l.locale].categories.push(l.text)})});const{t:r}=_.useI18n(b);return(s,l)=>(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("h3",x,e.toDisplayString(e.unref(r)("filters.title")),1),y,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",k,e.toDisplayString(e.unref(r)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.name,value:t.url,class:"w-100 mn-t-small mn-small bg-white radius-small pd-small",radio:e.unref(n).categories,onChange:p=>i("categories",t.url)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),C,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",w,e.toDisplayString(e.unref(r)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.prices,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).prices,onChange:p=>i("prices",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),E,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[F]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.deliveryOptions,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).delivery,onChange:p=>i("delivery",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),B,e.createElementVNode("button",{onClick:f,class:"bg-main w-100 button"},e.toDisplayString(e.unref(r)("filters.reset")),1)]))}};exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../../../../components/Spoiler/Spoiler.vue2.cjs"),c=require("../../../../components/Checkbox/Checkbox.vue.cjs"),v=require("vue-i18n"),u=require("../../store/categories.cjs");require("./FilterProducts.vue2.cjs");const x={class:"pd-medium bg-grey radius-big"},y={class:"mn-small"},k=e.createElementVNode("hr",{class:"mn-small"},null,-1),C={class:"mn-r-auto t-medium p-big"},w=e.createElementVNode("hr",{class:"mn-small"},null,-1),E={class:"mn-r-auto t-medium p-big"},F=e.createElementVNode("hr",{class:"mn-small"},null,-1),B=e.createElementVNode("p",{class:"mn-r-auto t-medium p-big"},"Delivery",-1),N=e.createElementVNode("hr",{class:"mn-semi"},null,-1),V={__name:"FilterProducts",props:{selectedFilters:Object,prices:{type:Array,default:()=>[{label:"Under $5",value:{min:0,max:5}},{label:"$5 to $10",value:{min:5,max:10}},{label:"$10 to $20",value:{min:10,max:20}},{label:"$20 and above",value:{min:20,max:1/0}}]},deliveryOptions:{type:Array,default:()=>[{label:"Pickup",value:{min:0,max:25}},{label:"Courier",value:{min:25,max:50}},{label:"Post",value:{min:50,max:100}}]}},emits:["updateFilters","resetFilters"],async setup(m,{emit:f}){let d,h;[d,h]=e.withAsyncContext(()=>u.actions.fetchCategories()),await d,h();let n=e.ref({categories:[],prices:[],delivery:[],extra:[]});const g=f,i=(r,l)=>{g("updateFilters",{filterType:r,value:l})},_=()=>{g("resetFilters")},b={locale:"en",messages:{en:{categoriesTitle:"Category",categories:[],filters:{title:"Filters",price:{title:"Price",from:"From",to:"To"},filters:[],reset:"Reset Filters"}},ru:{categoriesTitle:"Категория",categories:[],filters:{title:"Фильтры",price:{title:"Цена",from:"От",to:"До"},filters:[],reset:"Сбросить фильтры"}}}};u.state.all.forEach(r=>{r.localization.forEach(l=>{b.messages[l.locale].categories.push(l.text)})});const{t:s}=v.useI18n(b);return(r,l)=>(e.openBlock(),e.createElementBlock("div",x,[e.createElementVNode("h3",y,e.toDisplayString(e.unref(s)("filters.title")),1),k,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!0},{header:e.withCtx(()=>[e.createElementVNode("p",C,e.toDisplayString(e.unref(s)("categoriesTitle")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.state.all,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.name,value:t.url,class:"w-100 mn-t-small mn-small bg-white radius-small pd-small",radio:e.unref(n).categories,onChange:p=>i("categories",t.url)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),w,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[e.createElementVNode("p",E,e.toDisplayString(e.unref(s)("filters.price.title")),1)]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.prices,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).prices,onChange:p=>i("prices",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),F,e.createVNode(o.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-small",status:!1},{header:e.withCtx(()=>[B]),content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.deliveryOptions,(t,a)=>(e.openBlock(),e.createBlock(c.default,{key:a,label:t.label,value:t.value,class:"w-100 mn-t-small bg-white radius-small pd-small",radio:e.unref(n).delivery,onChange:p=>i("delivery",t.value)},null,8,["label","value","radio","onChange"]))),128))]),_:1}),N,e.createElementVNode("button",{onClick:_,class:"bg-main w-100 button"},e.toDisplayString(e.unref(s)("filters.reset")),1)]))}};exports.default=V;
@@ -1,10 +1,10 @@
1
- import { withAsyncContext as E, ref as P, openBlock as t, createElementBlock as m, createElementVNode as l, toDisplayString as c, unref as s, createVNode as b, withCtx as a, Fragment as h, renderList as p, createBlock as g } from "vue";
1
+ import { withAsyncContext as P, ref as T, openBlock as t, createElementBlock as m, createElementVNode as l, toDisplayString as c, unref as s, createVNode as b, withCtx as a, Fragment as h, renderList as p, createBlock as g } from "vue";
2
2
  import _ from "../../../../components/Spoiler/Spoiler.vue2.js";
3
3
  import f from "../../../../components/Checkbox/Checkbox.vue.js";
4
- import { useI18n as T } from "vue-i18n";
5
- import { actions as A, state as $ } from "../../store/categories.js";
4
+ import { useI18n as A } from "vue-i18n";
5
+ import { actions as B, state as $ } from "../../store/categories.js";
6
6
  import "./FilterProducts.vue2.js";
7
- const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" }, I = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), N = { class: "mn-r-auto t-medium p-big" }, V = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), j = { class: "mn-r-auto t-medium p-big" }, L = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), O = /* @__PURE__ */ l("p", { class: "mn-r-auto t-medium p-big" }, "Delivery", -1), R = /* @__PURE__ */ l("hr", { class: "mn-semi" }, null, -1), J = {
7
+ const D = { class: "pd-medium bg-grey radius-big" }, I = { class: "mn-small" }, N = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), V = { class: "mn-r-auto t-medium p-big" }, j = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), L = { class: "mn-r-auto t-medium p-big" }, O = /* @__PURE__ */ l("hr", { class: "mn-small" }, null, -1), R = /* @__PURE__ */ l("p", { class: "mn-r-auto t-medium p-big" }, "Delivery", -1), S = /* @__PURE__ */ l("hr", { class: "mn-semi" }, null, -1), K = {
8
8
  __name: "FilterProducts",
9
9
  props: {
10
10
  selectedFilters: Object,
@@ -27,19 +27,19 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
27
27
  }
28
28
  },
29
29
  emits: ["updateFilters", "resetFilters"],
30
- async setup(v, { emit: x }) {
31
- let y, C;
32
- [y, C] = E(() => A.fetchCategories()), await y, C();
33
- let u = P({
30
+ async setup(v, { emit: k }) {
31
+ let x, y;
32
+ [x, y] = P(() => B.fetchCategories()), await x, y();
33
+ let u = T({
34
34
  categories: [],
35
35
  prices: [],
36
36
  delivery: [],
37
37
  extra: []
38
38
  });
39
- const d = (o, r) => {
40
- x("updateFilters", { filterType: o, value: r });
41
- }, k = () => {
42
- x("resetFilters");
39
+ const C = k, d = (o, r) => {
40
+ C("updateFilters", { filterType: o, value: r });
41
+ }, E = () => {
42
+ C("resetFilters");
43
43
  }, F = {
44
44
  locale: "en",
45
45
  messages: {
@@ -78,16 +78,16 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
78
78
  F.messages[r.locale].categories.push(r.text);
79
79
  });
80
80
  });
81
- const { t: n } = T(F);
82
- return (o, r) => (t(), m("div", B, [
83
- l("h3", D, c(s(n)("filters.title")), 1),
84
- I,
81
+ const { t: n } = A(F);
82
+ return (o, r) => (t(), m("div", D, [
83
+ l("h3", I, c(s(n)("filters.title")), 1),
84
+ N,
85
85
  b(_, {
86
86
  class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
87
87
  status: !0
88
88
  }, {
89
89
  header: a(() => [
90
- l("p", N, c(s(n)("categoriesTitle")), 1)
90
+ l("p", V, c(s(n)("categoriesTitle")), 1)
91
91
  ]),
92
92
  content: a(() => [
93
93
  (t(!0), m(h, null, p($.all, (e, i) => (t(), g(f, {
@@ -101,13 +101,13 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
101
101
  ]),
102
102
  _: 1
103
103
  }),
104
- V,
104
+ j,
105
105
  b(_, {
106
106
  class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
107
107
  status: !1
108
108
  }, {
109
109
  header: a(() => [
110
- l("p", j, c(s(n)("filters.price.title")), 1)
110
+ l("p", L, c(s(n)("filters.price.title")), 1)
111
111
  ]),
112
112
  content: a(() => [
113
113
  (t(!0), m(h, null, p(v.prices, (e, i) => (t(), g(f, {
@@ -121,13 +121,13 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
121
121
  ]),
122
122
  _: 1
123
123
  }),
124
- L,
124
+ O,
125
125
  b(_, {
126
126
  class: "radius-small o-hidden br-1px br-solid br-grey mn-small",
127
127
  status: !1
128
128
  }, {
129
129
  header: a(() => [
130
- O
130
+ R
131
131
  ]),
132
132
  content: a(() => [
133
133
  (t(!0), m(h, null, p(v.deliveryOptions, (e, i) => (t(), g(f, {
@@ -141,14 +141,14 @@ const B = { class: "pd-medium bg-grey radius-big" }, D = { class: "mn-small" },
141
141
  ]),
142
142
  _: 1
143
143
  }),
144
- R,
144
+ S,
145
145
  l("button", {
146
- onClick: k,
146
+ onClick: E,
147
147
  class: "bg-main w-100 button"
148
148
  }, c(s(n)("filters.reset")), 1)
149
149
  ]));
150
150
  }
151
151
  };
152
152
  export {
153
- J as default
153
+ K as default
154
154
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../../organizations/components/blocks/EmptyState.vue.cjs"),p=require("../blocks/CardSpot.vue.cjs"),c=require("../../store/spots.cjs"),m=require("../../../auth/store/auth.cjs"),g={__name:"Feed",props:{organization:Object,units:Array,memberships:Array},async setup(r){let u,l;const s=r;e.ref("spots"),[u,l]=e.withAsyncContext(()=>c.actions.read(s.organization._id)),await u,l();const a=e.computed(()=>{const o=c.state.spots,n=o.flatMap(t=>t.subspots.map(i=>i._id));return o.filter(t=>!n.includes(t._id))});return(o,n)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.unref(a).length<1?(e.openBlock(),e.createBlock(d.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>o.$router.push(`/spots/${s.organization._id}/spots/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),(t,i)=>(e.openBlock(),e.createBlock(p.default,{key:i,spot:t,organization:r.organization,class:"radius-big bg-grey mn-thin"},null,8,["spot","organization"]))),128)),e.unref(a).length>0&&m.state.user._id===r.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=t=>o.$router.push(`/spots/${s.organization._id}/spots/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Tab/Tab.vue.cjs");const d=require("../../../organizations/components/blocks/EmptyState.vue.cjs"),p=require("../blocks/CardSpot.vue.cjs"),c=require("../../store/spots.cjs"),m=require("../../../auth/store/auth.cjs"),g={__name:"Feed",props:{organization:Object,units:Array,memberships:Array},async setup(r){let l,u;const s=r;e.ref("spots"),[l,u]=e.withAsyncContext(()=>c.actions.read(s.organization._id)),await l,u();const a=e.computed(()=>{const o=c.state.spots,n=o.flatMap(t=>t.subspots.map(i=>i._id));return o.filter(t=>!n.includes(t._id))});return(o,n)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[a.value.length<1?(e.openBlock(),e.createBlock(d.default,{key:0,title:"You don't have any spots yet.",description:"Add spots to your hub.",action:"Add spot",callback:()=>o.$router.push(`/spots/${s.organization._id}/spots/create`)},null,8,["callback"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(t,i)=>(e.openBlock(),e.createBlock(p.default,{key:i,spot:t,organization:r.organization,class:"radius-big bg-grey mn-thin"},null,8,["spot","organization"]))),128)),a.value.length>0&&m.state.user._id===r.organization.owner?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:n[0]||(n[0]=t=>o.$router.push(`/spots/${s.organization._id}/spots/create`)),class:"mn-thin button w-100"}," Add spot ")):e.createCommentVNode("",!0)])])]),_:1}))}};exports.default=g;
@@ -1,10 +1,10 @@
1
- import { ref as g, withAsyncContext as b, computed as y, openBlock as o, createBlock as p, Transition as _, withCtx as h, createElementVNode as c, unref as l, createCommentVNode as m, createElementBlock as f, Fragment as k, renderList as z } from "vue";
1
+ import { ref as g, withAsyncContext as f, computed as b, openBlock as o, createBlock as l, Transition as y, withCtx as _, createElementVNode as d, createCommentVNode as c, createElementBlock as m, Fragment as h, renderList as k } from "vue";
2
2
  import "../../../../components/Tab/Tab.vue.js";
3
- import $ from "../../../organizations/components/blocks/EmptyState.vue.js";
4
- import A from "../blocks/CardSpot.vue.js";
5
- import { actions as v, state as w } from "../../store/spots.js";
6
- import { state as C } from "../../../auth/store/auth.js";
7
- const S = {
3
+ import v from "../../../organizations/components/blocks/EmptyState.vue.js";
4
+ import z from "../blocks/CardSpot.vue.js";
5
+ import { actions as $, state as A } from "../../store/spots.js";
6
+ import { state as w } from "../../../auth/store/auth.js";
7
+ const N = {
8
8
  __name: "Feed",
9
9
  props: {
10
10
  organization: Object,
@@ -12,39 +12,39 @@ const S = {
12
12
  memberships: Array
13
13
  },
14
14
  async setup(r) {
15
- let u, d;
15
+ let p, u;
16
16
  const s = r;
17
- g("spots"), [u, d] = b(() => v.read(s.organization._id)), await u, d();
18
- const a = y(() => {
19
- const e = w.spots, n = e.flatMap(
17
+ g("spots"), [p, u] = f(() => $.read(s.organization._id)), await p, u();
18
+ const a = b(() => {
19
+ const e = A.spots, n = e.flatMap(
20
20
  (t) => t.subspots.map((i) => i._id)
21
21
  );
22
22
  return e.filter(
23
23
  (t) => !n.includes(t._id)
24
24
  );
25
25
  });
26
- return (e, n) => (o(), p(_, { name: "slide-fade" }, {
27
- default: h(() => [
28
- c("div", null, [
29
- l(a).length < 1 ? (o(), p($, {
26
+ return (e, n) => (o(), l(y, { name: "slide-fade" }, {
27
+ default: _(() => [
28
+ d("div", null, [
29
+ a.value.length < 1 ? (o(), l(v, {
30
30
  key: 0,
31
31
  title: "You don't have any spots yet.",
32
32
  description: "Add spots to your hub.",
33
33
  action: "Add spot",
34
34
  callback: () => e.$router.push(`/spots/${s.organization._id}/spots/create`)
35
- }, null, 8, ["callback"])) : m("", !0),
36
- c("div", null, [
37
- (o(!0), f(k, null, z(l(a), (t, i) => (o(), p(A, {
35
+ }, null, 8, ["callback"])) : c("", !0),
36
+ d("div", null, [
37
+ (o(!0), m(h, null, k(a.value, (t, i) => (o(), l(z, {
38
38
  key: i,
39
39
  spot: t,
40
40
  organization: r.organization,
41
41
  class: "radius-big bg-grey mn-thin"
42
42
  }, null, 8, ["spot", "organization"]))), 128)),
43
- l(a).length > 0 && C.user._id === r.organization.owner ? (o(), f("button", {
43
+ a.value.length > 0 && w.user._id === r.organization.owner ? (o(), m("button", {
44
44
  key: 0,
45
45
  onClick: n[0] || (n[0] = (t) => e.$router.push(`/spots/${s.organization._id}/spots/create`)),
46
46
  class: "mn-thin button w-100"
47
- }, " Add spot ")) : m("", !0)
47
+ }, " Add spot ")) : c("", !0)
48
48
  ])
49
49
  ])
50
50
  ]),
@@ -53,5 +53,5 @@ const S = {
53
53
  }
54
54
  };
55
55
  export {
56
- S as default
56
+ N as default
57
57
  };