@ozdao/prometheus-framework 0.2.51 → 0.2.53

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. package/dist/main-0a2437f4.js +91 -0
  2. package/dist/main-482dc398.mjs +13626 -0
  3. package/dist/main-4fnApBsF.js +91 -0
  4. package/dist/main-b2JI9sFg.js +91 -0
  5. package/dist/main-c56d4c09.js +91 -0
  6. package/dist/main-cdd0be68.mjs +13628 -0
  7. package/dist/main-kjbLXQEa.mjs +13606 -0
  8. package/dist/main-x-9D8zvb.mjs +13604 -0
  9. package/dist/main.css +1 -1
  10. package/dist/organizations.server.js +2 -2
  11. package/dist/organizations.server.mjs +2 -2
  12. package/dist/products.server.js +81 -56
  13. package/dist/products.server.mjs +81 -56
  14. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +18 -20
  16. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +19 -19
  18. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +28 -26
  20. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +2 -2
  22. package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Map/Map.vue.js +35 -2
  24. package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Map/Map.vue2.js +2 -35
  26. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  28. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -0
  29. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +37 -0
  30. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.js +21 -14
  32. package/dist/prometheus-framework/src/modules/icons/navigation/IconSearch.vue.cjs +1 -0
  33. package/dist/prometheus-framework/src/modules/icons/navigation/IconSearch.vue.js +24 -0
  34. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  36. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
  38. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
  40. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +49 -101
  42. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +25 -25
  43. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +68 -39
  45. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +38 -48
  47. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +69 -62
  49. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +131 -126
  51. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  53. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +117 -146
  55. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +13 -13
  57. package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +22 -0
  59. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs +1 -0
  60. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js +45 -0
  61. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.cjs +1 -0
  62. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue2.js +4 -0
  63. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -0
  64. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +79 -0
  65. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -0
  66. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +193 -0
  67. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.cjs +1 -0
  68. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue2.js +4 -0
  69. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +43 -43
  71. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +65 -55
  73. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +64 -51
  75. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +35 -33
  77. package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/products/products.client.js +2 -2
  79. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/products/store/categories.js +39 -27
  81. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/products/store/products.js +23 -23
  83. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  87. package/dist/prometheus-framework.cjs.js +1 -1
  88. package/dist/prometheus-framework.es.js +1 -1
  89. package/dist/style.css +1 -1
  90. package/dist/web-0066fd51.mjs +55 -0
  91. package/dist/web-6b9fa713.js +1 -0
  92. package/dist/web-6dcbb74b.mjs +55 -0
  93. package/dist/web-caJAdsxy.js +1 -0
  94. package/dist/web-ee302c1d.js +1 -0
  95. package/dist/web-i08OVMw9.mjs +55 -0
  96. package/dist/web-ngl7bNhF.js +1 -0
  97. package/dist/web-t91TrxXa.mjs +55 -0
  98. package/package.json +1 -1
  99. package/src/components/Button/Button.vue +4 -6
  100. package/src/components/Feed/Feed.vue +2 -1
  101. package/src/components/Field/Field.vue +3 -1
  102. package/src/components/LocationMarker/LocationMarker.vue +1 -0
  103. package/src/modules/applications/applications.client.js +0 -1
  104. package/src/modules/globals/components/blocks/BlockSearch.vue +42 -0
  105. package/src/modules/icons/entities/IconProfile.vue +10 -1
  106. package/src/modules/icons/entities/IconShopcart.vue +12 -2
  107. package/src/modules/marketplace/components/layouts/Marketplace.vue +7 -14
  108. package/src/modules/marketplace/components/sections/Filters.vue +7 -1
  109. package/src/modules/mobile/components/NavigationBar/NavigationBar.vue +27 -7
  110. package/src/modules/orders/components/partials/ShopCart.vue +4 -1
  111. package/src/modules/organizations/components/blocks/CardDepartment.vue +34 -66
  112. package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +50 -13
  113. package/src/modules/organizations/components/blocks/User.vue +18 -9
  114. package/src/modules/organizations/components/pages/Department.vue +19 -3
  115. package/src/modules/organizations/components/pages/DepartmentEdit.vue +14 -10
  116. package/src/modules/organizations/components/pages/Organization.vue +38 -71
  117. package/src/modules/organizations/components/sections/Feed.vue +1 -1
  118. package/src/modules/organizations/controllers/memberships.controller.js +2 -2
  119. package/src/modules/organizations/controllers/organizations.controller.js +0 -1
  120. package/src/modules/organizations/router/products.router.js +24 -4
  121. package/src/modules/products/components/blocks/CardCategory.vue +53 -0
  122. package/src/modules/products/components/pages/Categories.vue +90 -0
  123. package/src/modules/products/components/pages/CategoryEdit.vue +214 -0
  124. package/src/modules/products/components/pages/EditLeftover.vue +6 -4
  125. package/src/modules/products/components/pages/ProductEdit.vue +9 -1
  126. package/src/modules/products/components/pages/Products.vue +58 -38
  127. package/src/modules/products/components/sections/FilterProducts.vue +9 -6
  128. package/src/modules/products/controllers/categories.controller.js +30 -13
  129. package/src/modules/products/controllers/leftovers.controller.js +12 -5
  130. package/src/modules/products/controllers/products.controller.js +18 -0
  131. package/src/modules/products/models/category.model.js +42 -32
  132. package/src/modules/products/products.client.js +4 -2
  133. package/src/modules/products/store/categories.js +17 -3
  134. package/src/modules/products/store/products.js +4 -0
  135. package/src/modules/backoffice/components/admin/Categories.vue +0 -53
  136. package/src/modules/backoffice/components/admin/CategoryEdit.vue +0 -98
  137. package/src/modules/products/components/blocks/CategoryCard.vue +0 -42
  138. package/src/modules/products/router/products.router.js +0 -48
  139. /package/src/modules/{products → organizations}/components/pages/OrganizationCreate.vue +0 -0
  140. /package/src/modules/{products → organizations}/components/pages/OrganizationDetails.vue +0 -0
  141. /package/src/modules/{products → organizations}/components/pages/OrganizationDocuments.vue +0 -0
  142. /package/src/modules/{products → organizations}/components/pages/OrganizationPeople.vue +0 -0
@@ -1,4 +1,4 @@
1
- import { ref as r, watch as L, onMounted as M, openBlock as i, createElementBlock as d, Fragment as y, unref as u, createBlock as f, TransitionGroup as k, withCtx as v, renderList as S, createCommentVNode as c, createVNode as h, Transition as T, normalizeClass as j, renderSlot as B } from "vue";
1
+ import { ref as r, watch as w, onMounted as M, openBlock as n, createElementBlock as d, Fragment as y, unref as u, createBlock as f, TransitionGroup as h, withCtx as v, renderList as S, createCommentVNode as c, createVNode as k, Transition as T, normalizeClass as j, renderSlot as B } from "vue";
2
2
  import C from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
3
3
  import "../Loader/Loader.vue.js";
4
4
  import O from "../EmptyState/EmptyState.vue.js";
@@ -42,45 +42,45 @@ const N = {
42
42
  }
43
43
  },
44
44
  setup(m) {
45
- const t = m, l = r([]), a = r(!1);
46
- let n = r(!0), p = r(t.options.skip ? t.options.skip : 0), s = r(t.options.limit ? t.options.limit : 10);
45
+ const t = m, s = r([]), a = r(!1);
46
+ let o = r(!0), p = r(t.options.skip ? t.options.skip : 0), i = r(t.options.limit ? t.options.limit : 10);
47
47
  const b = async () => {
48
48
  if (a.value) {
49
- p.value += s.value;
49
+ p.value += i.value;
50
50
  const e = await t.store.read({
51
51
  skip: p.value,
52
- limit: s.value,
52
+ limit: i.value,
53
53
  ...t.options
54
54
  });
55
- e.length === 0 || e.length < s.value ? a.value = !1 : a.value = !0, l.value = [...l.value, ...e];
55
+ e.length === 0 || e.length < i.value ? a.value = !1 : a.value = !0, s.value = [...s.value, ...e];
56
56
  }
57
57
  }, g = async () => {
58
58
  const e = await t.store.read({
59
59
  skip: p.value,
60
- limit: s.value,
60
+ limit: i.value,
61
61
  ...t.options
62
62
  });
63
- e.length === 0 || e.length < s.value ? a.value = !1 : a.value = !0, console.log(e), l.value = e, n.value = !1;
63
+ e.length === 0 || e.length < i.value ? a.value = !1 : a.value = !0, console.log(e), s.value = e, o.value = !1;
64
64
  };
65
- return L(() => t.options, (e, o) => {
66
- (e.organization !== o.organization || e.categories !== o.categories || e.prices !== o.prices || e.delivery !== o.delivery) && g();
65
+ return w(() => t.options, (e, l) => {
66
+ (e.organization !== l.organization || e.categories !== l.categories || e.prices !== l.prices || e.delivery !== l.delivery || e.search !== l.search) && g();
67
67
  }, { deep: !0 }), M(async () => {
68
68
  await g();
69
- }), (e, o) => (i(), d(y, null, [
70
- u(n) ? (i(), f(k, {
69
+ }), (e, l) => (n(), d(y, null, [
70
+ u(o) ? (n(), f(h, {
71
71
  key: 0,
72
72
  tag: "ul",
73
73
  name: "scaleTransition",
74
74
  class: "o-hidden bg-grey radius-big"
75
75
  }, {
76
76
  default: v(() => [
77
- u(n) ? (i(!0), d(y, { key: 0 }, S(u(s), (w) => (i(), f(C, { key: w }))), 128)) : c("", !0)
77
+ u(o) ? (n(!0), d(y, { key: 0 }, S(u(i), (L) => (n(), f(C, { key: L }))), 128)) : c("", !0)
78
78
  ]),
79
79
  _: 1
80
80
  })) : c("", !0),
81
- h(T, { name: "scaleTransition" }, {
81
+ k(T, { name: "scaleTransition" }, {
82
82
  default: v(() => [
83
- !u(n) && l.value.length < 1 ? (i(), f(O, {
83
+ !u(o) && s.value.length < 1 ? (n(), f(O, {
84
84
  key: 0,
85
85
  title: m.states.empty.title,
86
86
  description: m.states.empty.description,
@@ -89,18 +89,18 @@ const N = {
89
89
  ]),
90
90
  _: 1
91
91
  }),
92
- h(k, {
92
+ k(h, {
93
93
  tag: "ul",
94
94
  name: "scaleTransition",
95
95
  class: j(e.$attrs.class)
96
96
  }, {
97
97
  default: v(() => [
98
- !u(n) && l.value.length > 0 ? B(e.$slots, "default", {
98
+ !u(o) && s.value.length > 0 ? B(e.$slots, "default", {
99
99
  key: 0,
100
- items: l.value,
100
+ items: s.value,
101
101
  user: e.user
102
102
  }) : c("", !0),
103
- m.showLoadMore && a.value && l.value.length > 0 ? (i(), d("button", {
103
+ m.showLoadMore && a.value && s.value.length > 0 ? (n(), d("button", {
104
104
  key: 1,
105
105
  onClick: b,
106
106
  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("./Field.vue.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex"],f=["value","placeholder","tabindex"],b={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1,tabindex:-1},emits:["update:field","focus","blur"],setup(t,{emit:i}){const a=i,s=t,o=e.ref(s.field);return(d,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[d.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[t.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:l[0]||(l[0]=n=>o.value=a("update:field",n.target.value)),onFocus:l[1]||(l[1]=n=>a("focus",n)),onBlur:l[2]||(l[2]=n=>a("blur",n)),type:t.type,class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:l[3]||(l[3]=n=>o.value=a("update:field",n.target.value)),onFocus:l[4]||(l[4]=n=>a("focus",n)),onBlur:l[5]||(l[5]=n=>a("blur",n)),class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,f))]),e.renderSlot(d.$slots,"default",{},void 0,!0),t.symbol?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",null,e.toDisplayString(t.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-5e69d3c2"]]);exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex","disabled"],b=["value","placeholder","tabindex","disabled"],f={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:null,tabindex:-1},emits:["update:field","focus","blur"],setup(l,{emit:i}){const a=i,s=l,d=e.ref(s.field);return(o,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[o.$attrs.class,{"bg-fourth-nano":l.validation}],"flex-center flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[l.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:t[0]||(t[0]=n=>d.value=a("update:field",n.target.value)),onFocus:t[1]||(t[1]=n=>a("focus",n)),onBlur:t[2]||(t[2]=n=>a("blur",n)),type:l.type,class:"w-100",value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:t[3]||(t[3]=n=>d.value=a("update:field",n.target.value)),onFocus:t[4]||(t[4]=n=>a("focus",n)),onBlur:t[5]||(t[5]=n=>a("blur",n)),class:"w-100",value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,b))]),e.renderSlot(o.$slots,"default",{},void 0,!0),l.symbol?(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("span",null,e.toDisplayString(l.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-3352d0f9"]]);exports.default=y;
@@ -1,10 +1,10 @@
1
- import { ref as f, openBlock as a, createElementBlock as d, Fragment as b, createElementVNode as i, normalizeClass as c, toDisplayString as o, createCommentVNode as s, renderSlot as v, createVNode as x, Transition as y, withCtx as h } from "vue";
1
+ import { ref as b, openBlock as n, createElementBlock as d, Fragment as f, createElementVNode as i, normalizeClass as c, toDisplayString as s, createCommentVNode as o, renderSlot as v, createVNode as x, Transition as y, withCtx as h } from "vue";
2
2
  import "./Field.vue.js";
3
3
  import k from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = {
4
+ const g = {
5
5
  key: 0,
6
6
  class: "t-transp mn-r-small"
7
- }, g = { class: "w-100" }, w = ["type", "value", "placeholder", "tabindex"], F = ["value", "placeholder", "tabindex"], B = {
7
+ }, w = { class: "w-100" }, F = ["type", "value", "placeholder", "tabindex", "disabled"], p = ["value", "placeholder", "tabindex", "disabled"], B = {
8
8
  key: 1,
9
9
  class: "t-transp mn-l-small"
10
10
  }, C = {
@@ -19,13 +19,13 @@ const p = {
19
19
  placeholder: "Enter something here",
20
20
  field: null,
21
21
  validation: !1,
22
- disabled: !1,
22
+ disabled: null,
23
23
  tabindex: -1
24
24
  },
25
25
  emits: ["update:field", "focus", "blur"],
26
26
  setup(e, { emit: m }) {
27
- const n = m, u = f(e.field);
28
- return (r, t) => (a(), d(b, null, [
27
+ const a = m, u = b(e.field);
28
+ return (r, l) => (n(), d(f, null, [
29
29
  i("div", {
30
30
  class: c([[
31
31
  r.$attrs.class,
@@ -34,45 +34,47 @@ const p = {
34
34
  }
35
35
  ], "flex-center flex-nowrap flex"])
36
36
  }, [
37
- e.label ? (a(), d("div", p, [
38
- i("span", null, o(e.label), 1)
39
- ])) : s("", !0),
40
- i("div", g, [
41
- e.type !== "textarea" ? (a(), d("input", {
37
+ e.label ? (n(), d("div", g, [
38
+ i("span", null, s(e.label), 1)
39
+ ])) : o("", !0),
40
+ i("div", w, [
41
+ e.type !== "textarea" ? (n(), d("input", {
42
42
  key: 0,
43
- onInput: t[0] || (t[0] = (l) => u.value = n("update:field", l.target.value)),
44
- onFocus: t[1] || (t[1] = (l) => n("focus", l)),
45
- onBlur: t[2] || (t[2] = (l) => n("blur", l)),
43
+ onInput: l[0] || (l[0] = (t) => u.value = a("update:field", t.target.value)),
44
+ onFocus: l[1] || (l[1] = (t) => a("focus", t)),
45
+ onBlur: l[2] || (l[2] = (t) => a("blur", t)),
46
46
  type: e.type,
47
47
  class: "w-100",
48
48
  value: e.field,
49
49
  placeholder: e.placeholder,
50
- tabindex: e.tabindex
51
- }, null, 40, w)) : (a(), d("textarea", {
50
+ tabindex: e.tabindex,
51
+ disabled: e.disabled
52
+ }, null, 40, F)) : (n(), d("textarea", {
52
53
  key: 1,
53
- onInput: t[3] || (t[3] = (l) => u.value = n("update:field", l.target.value)),
54
- onFocus: t[4] || (t[4] = (l) => n("focus", l)),
55
- onBlur: t[5] || (t[5] = (l) => n("blur", l)),
54
+ onInput: l[3] || (l[3] = (t) => u.value = a("update:field", t.target.value)),
55
+ onFocus: l[4] || (l[4] = (t) => a("focus", t)),
56
+ onBlur: l[5] || (l[5] = (t) => a("blur", t)),
56
57
  class: "w-100",
57
58
  value: e.field,
58
59
  placeholder: e.placeholder,
59
- tabindex: e.tabindex
60
- }, null, 40, F))
60
+ tabindex: e.tabindex,
61
+ disabled: e.disabled
62
+ }, null, 40, p))
61
63
  ]),
62
64
  v(r.$slots, "default", {}, void 0, !0),
63
- e.symbol ? (a(), d("div", B, [
64
- i("span", null, o(e.symbol), 1)
65
- ])) : s("", !0)
65
+ e.symbol ? (n(), d("div", B, [
66
+ i("span", null, s(e.symbol), 1)
67
+ ])) : o("", !0)
66
68
  ], 2),
67
69
  x(y, { name: "fade" }, {
68
70
  default: h(() => [
69
- e.validation ? (a(), d("div", C, " * " + o(e.validation.message), 1)) : s("", !0)
71
+ e.validation ? (n(), d("div", C, " * " + s(e.validation.message), 1)) : o("", !0)
70
72
  ]),
71
73
  _: 1
72
74
  })
73
75
  ], 64));
74
76
  }
75
- }, $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-5e69d3c2"]]);
77
+ }, $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-3352d0f9"]]);
76
78
  export {
77
79
  $ as default
78
80
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../Loader/Loader.vue2.cjs");require("./LocationMarker.vue.cjs");const y=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_=r=>(e.pushScopeId("data-v-e6e63879"),r=r(),e.popScopeId(),r),L={class:"pos-relative"},k={key:0,class:"i-regular",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b=_(()=>e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"rgb(var(--white))"},null,-1)),M=_(()=>e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"rgb(var(--white))"},null,-1)),E=[b,M],V={__name:"LocationMarker",props:{location:{type:Object,default:()=>({lat:15.87,lng:100.9925})},address:{type:String,default:null},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(r,{emit:v}){const t=r,n=v,u=e.ref(null),s=e.ref(!1);let c,i;e.onMounted(()=>{console.log(t.location),c=new google.maps.Map(u.value,{center:t.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1,disableDefaultUI:!0}),i=new google.maps.Marker({position:t.location,map:c,draggable:!0}),i.addListener("dragend",o=>{const a={lat:o.latLng.lat(),lng:o.latLng.lng()};n("update:location",a),p(a)})}),e.watchEffect(()=>{t.location&&i&&i.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng))}),e.watchEffect(()=>{if(t.location&&c){const o=new google.maps.LatLng(t.location.lat,t.location.lng);c.setCenter(o),c.setZoom(15)}});function p(o){new google.maps.Geocoder().geocode({location:o},(d,g)=>{if(g==="OK")if(d[0]){n("update:address",d[0].formatted_address);let f="",m="",C="";d[0].address_components.forEach(l=>{l.types.includes("country")&&(f=l.long_name),l.types.includes("administrative_area_level_1")&&(m=l.long_name),l.types.includes("locality")&&(C=l.long_name)}),n("update:country",f),n("update:state",m),n("update:city",C)}else console.error("No results found");else console.error("Geocoder failed due to: "+g)})}async function h(){s.value=!0,navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{const a={lat:o.coords.latitude,lng:o.coords.longitude};n("update:location",a),p(a),s.value=!1},()=>{console.error("Error getting location"),s.value=!1}):(console.error("Geolocation is not supported by this browser."),s.value=!1)}return(o,a)=>(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",{ref_key:"mapContainer",ref:u,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra",onClick:h},[e.createVNode(e.Transition,{name:"ScaleOut",mode:"out-in"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createBlock(w.default,{key:1,class:"pos-t-0 pos-l-0 i-small"})):(e.openBlock(),e.createElementBlock("svg",k,E))]),_:1})])]))}},x=y.default(V,[["__scopeId","data-v-e6e63879"]]);exports.default=x;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../Loader/Loader.vue2.cjs");require("./LocationMarker.vue.cjs");const y=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_=r=>(e.pushScopeId("data-v-37aafea9"),r=r(),e.popScopeId(),r),L={class:"pos-relative"},k={key:0,class:"i-regular",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b=_(()=>e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"rgb(var(--white))"},null,-1)),M=_(()=>e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"rgb(var(--white))"},null,-1)),E=[b,M],V={__name:"LocationMarker",props:{location:{type:Object,default:()=>({lat:15.87,lng:100.9925})},address:{type:String,default:null},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(r,{emit:v}){const t=r,n=v,u=e.ref(null),s=e.ref(!1);let c,i;e.onMounted(()=>{console.log(t.location),c=new google.maps.Map(u.value,{center:t.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1,disableDefaultUI:!0}),i=new google.maps.Marker({position:t.location,map:c,draggable:!0}),i.addListener("dragend",o=>{const a={lat:o.latLng.lat(),lng:o.latLng.lng()};n("update:location",a),p(a)})}),e.watchEffect(()=>{t.location&&i&&i.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng))}),e.watchEffect(()=>{if(t.location&&c){const o=new google.maps.LatLng(t.location.lat,t.location.lng);c.setCenter(o),c.setZoom(15)}});function p(o){new google.maps.Geocoder().geocode({location:o},(d,g)=>{if(g==="OK")if(d[0]){n("update:address",d[0].formatted_address);let f="",m="",C="";d[0].address_components.forEach(l=>{l.types.includes("country")&&(f=l.long_name),l.types.includes("administrative_area_level_1")&&(m=l.long_name),l.types.includes("locality")&&(C=l.long_name)}),n("update:country",f),n("update:state",m),n("update:city",C)}else console.error("No results found");else console.error("Geocoder failed due to: "+g)})}async function h(){s.value=!0,navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{const a={lat:o.coords.latitude,lng:o.coords.longitude};n("update:location",a),p(a),s.value=!1},()=>{console.error("Error getting location"),s.value=!1}):(console.error("Geolocation is not supported by this browser."),s.value=!1)}return(o,a)=>(e.openBlock(),e.createElementBlock("div",L,[e.createElementVNode("div",{ref_key:"mapContainer",ref:u,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"cursor-pointer flex-center flex pos-absolute pos-t-regular pos-r-regular i-semi bg-second pd-nano radius-extra",onClick:h},[e.createVNode(e.Transition,{name:"ScaleOut",mode:"out-in"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createBlock(w.default,{key:1,class:"pos-t-0 pos-l-0 i-small"})):(e.openBlock(),e.createElementBlock("svg",k,E))]),_:1})])]))}},x=y.default(V,[["__scopeId","data-v-37aafea9"]]);exports.default=x;
@@ -2,7 +2,7 @@ import { ref as h, onMounted as b, watchEffect as w, openBlock as p, createEleme
2
2
  import Z from "../Loader/Loader.vue2.js";
3
3
  import "./LocationMarker.vue.js";
4
4
  import B from "../../../../_virtual/_plugin-vue_export-helper.js";
5
- const y = (l) => (E("data-v-e6e63879"), l = l(), I(), l), H = { class: "pos-relative" }, G = {
5
+ const y = (l) => (E("data-v-37aafea9"), l = l(), I(), l), H = { class: "pos-relative" }, G = {
6
6
  key: 0,
7
7
  class: "i-regular",
8
8
  width: "98",
@@ -107,7 +107,7 @@ const y = (l) => (E("data-v-e6e63879"), l = l(), I(), l), H = { class: "pos-rela
107
107
  ])
108
108
  ]));
109
109
  }
110
- }, A = /* @__PURE__ */ B(P, [["__scopeId", "data-v-e6e63879"]]);
110
+ }, A = /* @__PURE__ */ B(P, [["__scopeId", "data-v-37aafea9"]]);
111
111
  export {
112
112
  A as default
113
113
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue");require("./Map.vue2.cjs");const c=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={__name:"Map",props:{location:Object},setup(n){const e=n;let a=o.ref(null),t=null,l=null;return o.onMounted(async()=>{t=new google.maps.Map(a.value,{zoom:13,center:{lat:e.location.lat,lng:e.location.lng}}),l=new google.maps.Marker({position:{lat:e.location.lat,lng:e.location.lng},map:t})}),o.watch(()=>e.location,()=>{t&&l&&(l.setPosition(new google.maps.LatLng(e.location.lat,e.location.lng)),t.setCenter(new google.maps.LatLng(e.location.lat,e.location.lng)))},{deep:!0}),(p,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"gmap",ref:a,class:"gmap"},null,512))}},i=c.default(r,[["__scopeId","data-v-c194b4a5"]]);exports.default=i;
@@ -1,4 +1,37 @@
1
- const _ = "";
1
+ import { ref as n, onMounted as c, watch as p, openBlock as r, createElementBlock as s } from "vue";
2
+ import "./Map.vue2.js";
3
+ import i from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const g = {
5
+ __name: "Map",
6
+ props: {
7
+ location: Object
8
+ },
9
+ setup(l) {
10
+ const o = l;
11
+ let e = n(null), t = null, a = null;
12
+ return c(async () => {
13
+ t = new google.maps.Map(e.value, {
14
+ zoom: 13,
15
+ center: {
16
+ lat: o.location.lat,
17
+ lng: o.location.lng
18
+ }
19
+ }), a = new google.maps.Marker({
20
+ position: {
21
+ lat: o.location.lat,
22
+ lng: o.location.lng
23
+ },
24
+ map: t
25
+ });
26
+ }), p(() => o.location, () => {
27
+ t && a && (a.setPosition(new google.maps.LatLng(o.location.lat, o.location.lng)), t.setCenter(new google.maps.LatLng(o.location.lat, o.location.lng)));
28
+ }, { deep: !0 }), (m, u) => (r(), s("div", {
29
+ ref_key: "gmap",
30
+ ref: e,
31
+ class: "gmap"
32
+ }, null, 512));
33
+ }
34
+ }, k = /* @__PURE__ */ i(g, [["__scopeId", "data-v-c194b4a5"]]);
2
35
  export {
3
- _ as default
36
+ k as default
4
37
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue");require("./Map.vue.cjs");const c=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={__name:"Map",props:{location:Object},setup(n){const e=n;let a=o.ref(null),t=null,l=null;return o.onMounted(async()=>{t=new google.maps.Map(a.value,{zoom:13,center:{lat:e.location.lat,lng:e.location.lng}}),l=new google.maps.Marker({position:{lat:e.location.lat,lng:e.location.lng},map:t})}),o.watch(()=>e.location,()=>{t&&l&&(l.setPosition(new google.maps.LatLng(e.location.lat,e.location.lng)),t.setCenter(new google.maps.LatLng(e.location.lat,e.location.lng)))},{deep:!0}),(p,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"gmap",ref:a,class:"gmap"},null,512))}},i=c.default(r,[["__scopeId","data-v-c194b4a5"]]);exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,37 +1,4 @@
1
- import { ref as n, onMounted as c, watch as p, openBlock as r, createElementBlock as s } from "vue";
2
- import "./Map.vue.js";
3
- import i from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const g = {
5
- __name: "Map",
6
- props: {
7
- location: Object
8
- },
9
- setup(l) {
10
- const o = l;
11
- let e = n(null), t = null, a = null;
12
- return c(async () => {
13
- t = new google.maps.Map(e.value, {
14
- zoom: 13,
15
- center: {
16
- lat: o.location.lat,
17
- lng: o.location.lng
18
- }
19
- }), a = new google.maps.Marker({
20
- position: {
21
- lat: o.location.lat,
22
- lng: o.location.lng
23
- },
24
- map: t
25
- });
26
- }), p(() => o.location, () => {
27
- t && a && (a.setPosition(new google.maps.LatLng(o.location.lat, o.location.lng)), t.setCenter(new google.maps.LatLng(o.location.lat, o.location.lng)));
28
- }, { deep: !0 }), (m, u) => (r(), s("div", {
29
- ref_key: "gmap",
30
- ref: e,
31
- class: "gmap"
32
- }, null, 512));
33
- }
34
- }, k = /* @__PURE__ */ i(g, [["__scopeId", "data-v-c194b4a5"]]);
1
+ const _ = "";
35
2
  export {
36
- k as default
3
+ _ as default
37
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../mobile/components/Menu/Menu.vue.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),c=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),d=require("vue-router"),f=require("../../../auth/store/auth.cjs"),p=require("../../../organizations/store/organizations.cjs"),m={class:""},_=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Events ",-1),v=e.createElementVNode("span",null," Community ",-1),C=e.createElementVNode("span",null," Products ",-1),k=e.createElementVNode("span",null," Leftovers ",-1),N=e.createElementVNode("span",null," Orders ",-1),h=e.createElementVNode("span",null," Payments ",-1),g=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Gallery ",-1),E=e.createElementVNode("span",null," Reports ",-1),w={__name:"Dashboard",props:{favorites:Array},setup(x){const r=d.useRoute(),s=d.useRouter(),u=e.ref(null),l=e.ref([]);return e.onMounted(async()=>{const o=await p.actions.read({user:f.state.user._id,postable:f.state.user._id,limit:100});console.log(o),l.value=o.map(t=>({name:t.profile.name,_id:t._id,photo:t.profile.photo}))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(c.default,{modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=a=>u.value=a),options:l.value,multiple:!1,taggable:!1,placeholder:"Select organization",label:"name","track-by":"_id",class:"mn-b-medium h1 bg-grey radius-medium pd-big"},null,8,["modelValue","options"]),e.createVNode(i.default,{class:"bg-grey mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[v]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[h]),_:1})]),_:1}),e.createVNode(i.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1}),e.createVNode(n.default,{onClick:t[9]||(t[9]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(n.default,{onClick:t[10]||(t[10]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=w;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../mobile/components/Menu/Menu.vue2.cjs"),n=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),c=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),d=require("vue-router"),f=require("../../../auth/store/auth.cjs"),p=require("../../../organizations/store/organizations.cjs"),m={class:""},_=e.createElementVNode("span",null," Members ",-1),V=e.createElementVNode("span",null," Events ",-1),v=e.createElementVNode("span",null," Community ",-1),C=e.createElementVNode("span",null," Products ",-1),k=e.createElementVNode("span",null," Leftovers ",-1),N=e.createElementVNode("span",null," Orders ",-1),h=e.createElementVNode("span",null," Payments ",-1),g=e.createElementVNode("span",null," Organizations ",-1),b=e.createElementVNode("span",null," Gallery ",-1),E=e.createElementVNode("span",null," Reports ",-1),w={__name:"Dashboard",props:{favorites:Array},setup(x){const r=d.useRoute(),s=d.useRouter(),u=e.ref(null),l=e.ref([]);return e.onMounted(async()=>{const o=await p.actions.read({user:f.state.user._id,postable:f.state.user._id,limit:100});console.log(o),l.value=o.map(t=>({name:t.profile.name,_id:t._id,photo:t.profile.photo}))}),(o,t)=>(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(c.default,{modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=a=>u.value=a),options:l.value,multiple:!1,taggable:!1,placeholder:"Select organization",label:"name","track-by":"_id",class:"mn-b-medium h1 bg-grey radius-medium pd-big"},null,8,["modelValue","options"]),e.createVNode(i.default,{class:"bg-grey mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[1]||(t[1]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[_]),_:1}),e.createVNode(n.default,{onClick:t[2]||(t[2]=a=>e.unref(s).push({name:"Backoffice Events",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[V]),_:1}),e.createVNode(n.default,{onClick:t[3]||(t[3]=a=>e.unref(s).push({name:"Backoffice Community",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[v]),_:1}),e.createVNode(n.default,{onClick:t[4]||(t[4]=a=>e.unref(s).push({name:"Backoffice Products",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(n.default,{onClick:t[5]||(t[5]=a=>e.unref(s).push({name:"Backoffice Leftovers",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[k]),_:1}),e.createVNode(n.default,{onClick:t[6]||(t[6]=a=>e.unref(s).push({name:"Backoffice Orders",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[N]),_:1}),e.createVNode(n.default,{onClick:t[7]||(t[7]=a=>e.unref(s).push({name:"Backoffice Payments",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[h]),_:1})]),_:1}),e.createVNode(i.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(n.default,{onClick:t[8]||(t[8]=a=>e.unref(s).push({name:"Backoffice Organizations",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[g]),_:1}),e.createVNode(n.default,{onClick:t[9]||(t[9]=a=>e.unref(s).push({name:"Backoffice Gallery",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[b]),_:1}),e.createVNode(n.default,{onClick:t[10]||(t[10]=a=>e.unref(s).push({name:"Backoffice Reports",params:{_id:e.unref(r).params._id}})),class:"cursor-pointer"},{default:e.withCtx(()=>[E]),_:1})]),_:1})]))}};exports.default=w;
@@ -1,5 +1,5 @@
1
1
  import { ref as d, onMounted as c, openBlock as k, createElementBlock as v, createVNode as o, withCtx as a, unref as e, createElementVNode as l } from "vue";
2
- import f from "../../../mobile/components/Menu/Menu.vue.js";
2
+ import f from "../../../mobile/components/Menu/Menu.vue2.js";
3
3
  import i from "../../../mobile/components/Menu/MenuItem.vue.js";
4
4
  import g from "../../../../components/SelectMulti/SelectMulti.vue.js";
5
5
  import { useRoute as C, useRouter as b } from "vue-router";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../icons/navigation/IconSearch.vue.cjs"),d=require("../../../../components/Field/Field.vue2.cjs"),i={class:"flex-v-center flex-nowrap flex pd-small bg-grey w-100 radius-big"},p={__name:"BlockSearch",props:{placeholder:{type:String,default:"Enter shop or product name"},button:{type:String,default:"Search"}},emits:["search"],setup(r,{emit:s}){const o=s,l=e.ref(null),c=a=>{o("search",a)};return(a,t)=>(e.openBlock(),e.createElementBlock("div",i,[e.createVNode(u.default,{class:"i-medium t-transp mn-r-thin"}),e.createVNode(d.default,{placeholder:r.placeholder,"onUpdate:field":t[0]||(t[0]=n=>l.value=n),class:"w-100"},null,8,["placeholder"]),e.createElementVNode("button",{class:"pd-r-small pd-l-small pd-t-thin pd-b-thin p-medium uppercase p-small t-medium cursor-pointer radius-extra bg-main",onClick:t[1]||(t[1]=n=>c(l.value))},e.toDisplayString(r.button),1)]))}};exports.default=p;
@@ -0,0 +1,37 @@
1
+ import { ref as p, openBlock as c, createElementBlock as m, createVNode as n, createElementVNode as d, toDisplayString as u } from "vue";
2
+ import f from "../../../icons/navigation/IconSearch.vue.js";
3
+ import h from "../../../../components/Field/Field.vue2.js";
4
+ const b = { class: "flex-v-center flex-nowrap flex pd-small bg-grey w-100 radius-big" }, v = {
5
+ __name: "BlockSearch",
6
+ props: {
7
+ placeholder: {
8
+ type: String,
9
+ default: "Enter shop or product name"
10
+ },
11
+ button: {
12
+ type: String,
13
+ default: "Search"
14
+ }
15
+ },
16
+ emits: ["search"],
17
+ setup(t, { emit: o }) {
18
+ const s = o, r = p(null), i = (l) => {
19
+ s("search", l);
20
+ };
21
+ return (l, e) => (c(), m("div", b, [
22
+ n(f, { class: "i-medium t-transp mn-r-thin" }),
23
+ n(h, {
24
+ placeholder: t.placeholder,
25
+ "onUpdate:field": e[0] || (e[0] = (a) => r.value = a),
26
+ class: "w-100"
27
+ }, null, 8, ["placeholder"]),
28
+ d("button", {
29
+ class: "pd-r-small pd-l-small pd-t-thin pd-b-thin p-medium uppercase p-small t-medium cursor-pointer radius-extra bg-main",
30
+ onClick: e[1] || (e[1] = (a) => i(r.value))
31
+ }, u(t.button), 1)
32
+ ]));
33
+ }
34
+ };
35
+ export {
36
+ v as default
37
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../../../../_virtual/_plugin-vue_export-helper.cjs"),o={},C={width:"49",height:"49",viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n=e.createElementVNode("path",{d:"M43.6479 32.1117C44.7969 31.1767 45.5809 29.8596 45.8562 28.404L48.8334 12.6366L13.0939 9.60262L12.5743 5.71378C12.3618 4.12526 11.5726 2.67323 10.3521 1.62504C9.131 0.577364 7.55684 0 5.91995 0H0.127808V3.05678H5.91943C7.7435 3.05678 9.23937 4.34089 9.47632 6.11052L13.2038 34.0001C13.4164 35.5886 14.2055 37.0411 15.4256 38.0898C16.6461 39.139 18.2203 39.7169 19.8577 39.7169H44.7404V36.6601H19.8577C18.0336 36.6601 16.5377 35.3745 16.3008 33.6038L16.2951 33.5622H39.5181C41.0326 33.5617 42.4989 33.0468 43.6479 32.1117ZM13.5087 12.7061L45.1365 15.391L42.7841 27.8484C42.4886 29.4126 41.1462 30.5049 39.5191 30.5049H15.887L13.5087 12.7061ZM22.166 40.4556C19.8416 40.4556 17.9506 42.3059 17.9506 44.5809C17.9506 46.8553 19.8416 48.7056 22.166 48.7056C24.4905 48.7056 26.3819 46.8553 26.3819 44.5809C26.3814 42.3059 24.4905 40.4556 22.166 40.4556ZM22.166 45.6488C21.5641 45.6488 21.0741 45.1694 21.0741 44.5803C21.0741 43.9913 21.5641 43.5119 22.166 43.5119C22.768 43.5119 23.258 43.9913 23.258 44.5803C23.2575 45.1699 22.768 45.6488 22.166 45.6488ZM37.3243 40.4556C34.9999 40.4556 33.1084 42.3059 33.1084 44.5809C33.1084 46.8553 34.9994 48.7056 37.3243 48.7056C39.6503 48.7056 41.5428 46.8553 41.5428 44.5809C41.5428 42.3059 39.6508 40.4556 37.3243 40.4556ZM37.3243 45.6488C36.7223 45.6488 36.2324 45.1694 36.2324 44.5803C36.2324 43.9913 36.7223 43.5119 37.3243 43.5119C37.9279 43.5119 38.4189 43.9913 38.4189 44.5803C38.4189 45.1699 37.9279 45.6488 37.3243 45.6488Z",fill:"rgb(var(--black))"},null,-1),r=[n];function c(s,i){return e.openBlock(),e.createElementBlock("svg",C,r)}const l=t.default(o,[["render",c]]);exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C={width:"49",height:"49",viewBox:"0 0 49 49",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s=["fill"],o={__name:"IconShopcart",props:{fill:{type:String,default:"rgb(var(--black))"}},setup(t){return(l,r)=>(e.openBlock(),e.createElementBlock("svg",C,[e.createElementVNode("path",{fill:t.fill,class:e.normalizeClass(l.$attrs.class),d:"M43.6479 32.1117C44.7969 31.1767 45.5809 29.8596 45.8562 28.404L48.8334 12.6366L13.0939 9.60262L12.5743 5.71378C12.3618 4.12526 11.5726 2.67323 10.3521 1.62504C9.131 0.577364 7.55684 0 5.91995 0H0.127808V3.05678H5.91943C7.7435 3.05678 9.23937 4.34089 9.47632 6.11052L13.2038 34.0001C13.4164 35.5886 14.2055 37.0411 15.4256 38.0898C16.6461 39.139 18.2203 39.7169 19.8577 39.7169H44.7404V36.6601H19.8577C18.0336 36.6601 16.5377 35.3745 16.3008 33.6038L16.2951 33.5622H39.5181C41.0326 33.5617 42.4989 33.0468 43.6479 32.1117ZM13.5087 12.7061L45.1365 15.391L42.7841 27.8484C42.4886 29.4126 41.1462 30.5049 39.5191 30.5049H15.887L13.5087 12.7061ZM22.166 40.4556C19.8416 40.4556 17.9506 42.3059 17.9506 44.5809C17.9506 46.8553 19.8416 48.7056 22.166 48.7056C24.4905 48.7056 26.3819 46.8553 26.3819 44.5809C26.3814 42.3059 24.4905 40.4556 22.166 40.4556ZM22.166 45.6488C21.5641 45.6488 21.0741 45.1694 21.0741 44.5803C21.0741 43.9913 21.5641 43.5119 22.166 43.5119C22.768 43.5119 23.258 43.9913 23.258 44.5803C23.2575 45.1699 22.768 45.6488 22.166 45.6488ZM37.3243 40.4556C34.9999 40.4556 33.1084 42.3059 33.1084 44.5809C33.1084 46.8553 34.9994 48.7056 37.3243 48.7056C39.6503 48.7056 41.5428 46.8553 41.5428 44.5809C41.5428 42.3059 39.6508 40.4556 37.3243 40.4556ZM37.3243 45.6488C36.7223 45.6488 36.2324 45.1694 36.2324 44.5803C36.2324 43.9913 36.7223 43.5119 37.3243 43.5119C37.9279 43.5119 38.4189 43.9913 38.4189 44.5803C38.4189 45.1699 37.9279 45.6488 37.3243 45.6488Z"},null,10,s)]))}};exports.default=o;
@@ -1,21 +1,28 @@
1
- import { openBlock as t, createElementBlock as e, createElementVNode as C } from "vue";
2
- import o from "../../../../../_virtual/_plugin-vue_export-helper.js";
3
- const c = {}, n = {
1
+ import { openBlock as e, createElementBlock as l, createElementVNode as o, normalizeClass as s } from "vue";
2
+ const a = {
4
3
  width: "49",
5
4
  height: "49",
6
5
  viewBox: "0 0 49 49",
7
6
  fill: "none",
8
7
  xmlns: "http://www.w3.org/2000/svg"
9
- }, r = /* @__PURE__ */ C("path", {
10
- d: "M43.6479 32.1117C44.7969 31.1767 45.5809 29.8596 45.8562 28.404L48.8334 12.6366L13.0939 9.60262L12.5743 5.71378C12.3618 4.12526 11.5726 2.67323 10.3521 1.62504C9.131 0.577364 7.55684 0 5.91995 0H0.127808V3.05678H5.91943C7.7435 3.05678 9.23937 4.34089 9.47632 6.11052L13.2038 34.0001C13.4164 35.5886 14.2055 37.0411 15.4256 38.0898C16.6461 39.139 18.2203 39.7169 19.8577 39.7169H44.7404V36.6601H19.8577C18.0336 36.6601 16.5377 35.3745 16.3008 33.6038L16.2951 33.5622H39.5181C41.0326 33.5617 42.4989 33.0468 43.6479 32.1117ZM13.5087 12.7061L45.1365 15.391L42.7841 27.8484C42.4886 29.4126 41.1462 30.5049 39.5191 30.5049H15.887L13.5087 12.7061ZM22.166 40.4556C19.8416 40.4556 17.9506 42.3059 17.9506 44.5809C17.9506 46.8553 19.8416 48.7056 22.166 48.7056C24.4905 48.7056 26.3819 46.8553 26.3819 44.5809C26.3814 42.3059 24.4905 40.4556 22.166 40.4556ZM22.166 45.6488C21.5641 45.6488 21.0741 45.1694 21.0741 44.5803C21.0741 43.9913 21.5641 43.5119 22.166 43.5119C22.768 43.5119 23.258 43.9913 23.258 44.5803C23.2575 45.1699 22.768 45.6488 22.166 45.6488ZM37.3243 40.4556C34.9999 40.4556 33.1084 42.3059 33.1084 44.5809C33.1084 46.8553 34.9994 48.7056 37.3243 48.7056C39.6503 48.7056 41.5428 46.8553 41.5428 44.5809C41.5428 42.3059 39.6508 40.4556 37.3243 40.4556ZM37.3243 45.6488C36.7223 45.6488 36.2324 45.1694 36.2324 44.5803C36.2324 43.9913 36.7223 43.5119 37.3243 43.5119C37.9279 43.5119 38.4189 43.9913 38.4189 44.5803C38.4189 45.1699 37.9279 45.6488 37.3243 45.6488Z",
11
- fill: "rgb(var(--black))"
12
- }, null, -1), s = [
13
- r
14
- ];
15
- function _(l, i) {
16
- return t(), e("svg", n, s);
17
- }
18
- const d = /* @__PURE__ */ o(c, [["render", _]]);
8
+ }, n = ["fill"], i = {
9
+ __name: "IconShopcart",
10
+ props: {
11
+ fill: {
12
+ type: String,
13
+ default: "rgb(var(--black))"
14
+ }
15
+ },
16
+ setup(t) {
17
+ return (C, r) => (e(), l("svg", a, [
18
+ o("path", {
19
+ fill: t.fill,
20
+ class: s(C.$attrs.class),
21
+ d: "M43.6479 32.1117C44.7969 31.1767 45.5809 29.8596 45.8562 28.404L48.8334 12.6366L13.0939 9.60262L12.5743 5.71378C12.3618 4.12526 11.5726 2.67323 10.3521 1.62504C9.131 0.577364 7.55684 0 5.91995 0H0.127808V3.05678H5.91943C7.7435 3.05678 9.23937 4.34089 9.47632 6.11052L13.2038 34.0001C13.4164 35.5886 14.2055 37.0411 15.4256 38.0898C16.6461 39.139 18.2203 39.7169 19.8577 39.7169H44.7404V36.6601H19.8577C18.0336 36.6601 16.5377 35.3745 16.3008 33.6038L16.2951 33.5622H39.5181C41.0326 33.5617 42.4989 33.0468 43.6479 32.1117ZM13.5087 12.7061L45.1365 15.391L42.7841 27.8484C42.4886 29.4126 41.1462 30.5049 39.5191 30.5049H15.887L13.5087 12.7061ZM22.166 40.4556C19.8416 40.4556 17.9506 42.3059 17.9506 44.5809C17.9506 46.8553 19.8416 48.7056 22.166 48.7056C24.4905 48.7056 26.3819 46.8553 26.3819 44.5809C26.3814 42.3059 24.4905 40.4556 22.166 40.4556ZM22.166 45.6488C21.5641 45.6488 21.0741 45.1694 21.0741 44.5803C21.0741 43.9913 21.5641 43.5119 22.166 43.5119C22.768 43.5119 23.258 43.9913 23.258 44.5803C23.2575 45.1699 22.768 45.6488 22.166 45.6488ZM37.3243 40.4556C34.9999 40.4556 33.1084 42.3059 33.1084 44.5809C33.1084 46.8553 34.9994 48.7056 37.3243 48.7056C39.6503 48.7056 41.5428 46.8553 41.5428 44.5809C41.5428 42.3059 39.6508 40.4556 37.3243 40.4556ZM37.3243 45.6488C36.7223 45.6488 36.2324 45.1694 36.2324 44.5803C36.2324 43.9913 36.7223 43.5119 37.3243 43.5119C37.9279 43.5119 38.4189 43.9913 38.4189 44.5803C38.4189 45.1699 37.9279 45.6488 37.3243 45.6488Z"
22
+ }, null, 10, n)
23
+ ]));
24
+ }
25
+ };
19
26
  export {
20
- d as default
27
+ i as default
21
28
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c=["fill"],o={__name:"IconSearch",props:{fill:{type:String,default:"rgb(var(--black))"}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock("svg",l,[e.createElementVNode("path",{fill:t.fill,d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6 .1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},null,8,c)]))}};exports.default=o;
@@ -0,0 +1,24 @@
1
+ import { openBlock as t, createElementBlock as c, createElementVNode as l } from "vue";
2
+ const o = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ viewBox: "0 0 512 512"
5
+ }, r = ["fill"], i = {
6
+ __name: "IconSearch",
7
+ props: {
8
+ fill: {
9
+ type: String,
10
+ default: "rgb(var(--black))"
11
+ }
12
+ },
13
+ setup(e) {
14
+ return (n, s) => (t(), c("svg", o, [
15
+ l("path", {
16
+ fill: e.fill,
17
+ d: "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6 .1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"
18
+ }, null, 8, r)
19
+ ]));
20
+ }
21
+ };
22
+ export {
23
+ i as default
24
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Button/Button.vue.cjs");const a=require("../../../mobile/components/Menu/Menu.vue2.cjs"),r=require("../../../mobile/components/Menu/MenuItem.vue.cjs"),n=require("vue-router");require("../../../auth/store/auth.cjs");require("./Legal.vue2.cjs");const u={class:"for-transition w-100 pd-medium"},l=e.createStaticVNode('<div class="bg-grey radius-medium pd-medium mn-b-small"><h2 class="mn-b-small">About No More Snow CO., LTD.</h2><p class="mn-b-small"> Welcome to NO MORE SNOW CO., LTD.! We are dedicated to providing top-notch services and creating a trustworthy environment for our users. Your trust and safety are our priority, and we are committed to being transparent about our policies and practices. </p><p class="mn-b-small"> If you have any questions, concerns, or feedback, please do not hesitate to contact us through the following details. Our team is always here to assist you! </p><p class="mn-b-small"> Address: 10/3 Laemsai Rd, Karon, Mueang Phuket District, Phuket 83100<br> Telephone: +660803202142<br> Email: <a href="mailto:hello@thecommunephuket.com">hello@thecommunephuket.com</a><br> Website: <a href="https://thecommunephuket.com" target="_blank">https://thecommunephuket.com</a></p></div>',1),i=e.createElementVNode("span",null,"Terms of Use",-1),c=e.createElementVNode("span",null,"Privacy Policy",-1),d=e.createElementVNode("span",null,"Cookie Policy",-1),m=e.createElementVNode("span",null,"EULA",-1),p={__name:"Legal",setup(h){n.useRoute();const o=n.useRouter();return e.ref(!1),(f,t)=>(e.openBlock(),e.createElementBlock("div",u,[l,e.createVNode(a.default,{class:"bg-grey"},{default:e.withCtx(()=>[e.createVNode(r.default,{onClick:t[0]||(t[0]=s=>e.unref(o).push({name:"Terms of Use"})),class:"cursor-pointer"},{default:e.withCtx(()=>[i]),_:1}),e.createVNode(r.default,{onClick:t[1]||(t[1]=s=>e.unref(o).push({name:"Privacy Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[c]),_:1}),e.createVNode(r.default,{onClick:t[2]||(t[2]=s=>e.unref(o).push({name:"Cookie Policy"})),class:"cursor-pointer"},{default:e.withCtx(()=>[d]),_:1}),e.createVNode(r.default,{onClick:t[3]||(t[3]=s=>e.unref(o).push({name:"EULA"})),class:"cursor-pointer"},{default:e.withCtx(()=>[m]),_:1})]),_:1})]))}};exports.default=p;
@@ -1,7 +1,7 @@
1
1
  import { ref as l, openBlock as m, createElementBlock as u, createVNode as t, withCtx as o, unref as r, createStaticVNode as c, createElementVNode as a } from "vue";
2
2
  import "../../../../components/Field/Field.vue.js";
3
3
  import "../../../../components/Button/Button.vue.js";
4
- import p from "../../../mobile/components/Menu/Menu.vue.js";
4
+ import p from "../../../mobile/components/Menu/Menu.vue2.js";
5
5
  import n from "../../../mobile/components/Menu/MenuItem.vue.js";
6
6
  import { useRoute as d, useRouter as h } from "vue-router";
7
7
  import "../../../auth/store/auth.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Menu.vue2.cjs");const r={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},o={__name:"Menu",setup(u){return(t,n)=>(e.openBlock(),e.createElementBlock("section",r,[e.renderSlot(t.$slots,"default")]))}};exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,13 +1,4 @@
1
- import { openBlock as t, createElementBlock as o, renderSlot as n } from "vue";
2
- import "./Menu.vue2.js";
3
- const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, d = {
4
- __name: "Menu",
5
- setup(s) {
6
- return (e, i) => (t(), o("section", r, [
7
- n(e.$slots, "default")
8
- ]));
9
- }
10
- };
1
+ const e = "";
11
2
  export {
12
- d as default
3
+ e as default
13
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Menu.vue.cjs");const r={class:"mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium"},o={__name:"Menu",setup(u){return(t,n)=>(e.openBlock(),e.createElementBlock("section",r,[e.renderSlot(t.$slots,"default")]))}};exports.default=o;
@@ -1,4 +1,13 @@
1
- const e = "";
1
+ import { openBlock as t, createElementBlock as o, renderSlot as n } from "vue";
2
+ import "./Menu.vue.js";
3
+ const r = { class: "mobile-menu-section pd-r-zero pd-t-thin pd-b-thin pd-medium radius-medium" }, d = {
4
+ __name: "Menu",
5
+ setup(s) {
6
+ return (e, i) => (t(), o("section", r, [
7
+ n(e.$slots, "default")
8
+ ]));
9
+ }
10
+ };
2
11
  export {
3
- e as default
12
+ d as default
4
13
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../../../../components/Spoiler/Spoiler.vue2.cjs");require("../../../../components/Map/Map.vue.cjs");const c=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),m=require("./DepartmentSub.vue.cjs"),u=require("./User.vue.cjs");require("./CardDepartment.vue2.cjs");const l=t=>(e.pushScopeId("data-v-05e8aa03"),t=t(),e.popScopeId(),t),p={class:"radius-big o-hidden cols-2-1_3"},h={class:"pd-medium w-100"},g=l(()=>e.createElementVNode("path",{d:"M515.693 9.52082C510.095 3.91669 502.49 0.765625 494.563 0.765625C486.635 0.765625 479.036 3.91669 473.432 9.52082L48.7255 434.307C44.8244 438.214 42.0848 443.125 40.8088 448.496L0.939444 615.069C-1.47202 625.168 1.528 635.788 8.86652 643.132C16.2103 650.47 26.8305 653.47 36.9292 651.059L203.516 611.261H203.511C208.88 609.985 213.792 607.246 217.699 603.35L642.485 178.496C648.089 172.892 651.241 165.293 651.241 157.366C651.241 149.439 648.089 141.835 642.485 136.235L515.693 9.52082ZM113.76 453.708L388.307 179.161L472.828 263.682L198.281 538.229L113.76 453.708ZM87.1041 511.5L140.416 564.812L70.3014 581.614L87.1041 511.5ZM515.091 221.793L430.195 136.897L494.184 72.9075L579.08 157.429L515.091 221.793Z",fill:"rgb(var(--black))"},null,-1)),L=[g],b=["innerHTML"],v={class:"pd-small flex-v-center flex-nowrap flex"},w=l(()=>e.createElementVNode("h5",{class:"w-100"},"Contacts ",-1)),k={class:"mn-r-small"},f=l(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),C={key:0},_={class:"pd-small flex-v-center flex-nowrap flex"},E=l(()=>e.createElementVNode("h5",{class:"w-100"},"Working Hours ",-1)),V={class:"mn-r-small"},B=l(()=>e.createElementVNode("svg",{width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4697 0.469727L13.5304 1.53039L7.00006 8.06072L0.469727 1.53039L1.53039 0.469727L7.00006 5.9394L12.4697 0.469727Z",fill:"#8A8A8A"})],-1)),N={key:0},x={__name:"CardDepartment",props:{department:Object,organization:Object},setup(t){const a=t;return(o,r)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",h,[(e.openBlock(),e.createElementBlock("svg",{onClick:r[0]||(r[0]=n=>o.$router.push(`/organizations/${a.organization}/departments/${t.department._id}/edit`)),class:"i-regular pos-absolute pos-r-0 pos-t-0 t-transp",width:"652",height:"652",viewBox:"0 0 652 652",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L)),e.createElementVNode("h3",{onClick:r[1]||(r[1]=n=>o.$router.push(`/organizations/${a.organization}/departments/${t.department._id}`)),class:"mn-b-small w-100",innerHTML:t.department.profile.name},null,8,b),e.createVNode(d.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",v,[w,e.createElementVNode("p",k,e.toDisplayString(t.department.members.length)+" человек",1),f])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.members.length<1?(e.openBlock(),e.createElementBlock("li",C,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.members,(n,s)=>(e.openBlock(),e.createBlock(u.default,{class:"br-b br-solid br-grey",key:s,user:n.user,position:n.position,onClick:i=>o.$router.push(`/app/profile/${n.user._id}`)},null,8,["user","position","onClick"]))),128))])]),_:1}),e.createVNode(d.default,{class:"radius-small o-hidden br-1px br-solid br-grey mn-b-thin"},{header:e.withCtx(()=>[e.createElementVNode("div",_,[E,e.createElementVNode("p",V,e.toDisplayString(t.department.subdepartments?t.department.subdepartments.length:0)+" отделов",1),B])]),content:e.withCtx(()=>[e.createElementVNode("ul",null,[t.department.subdepartments.length<1?(e.openBlock(),e.createElementBlock("li",N,"В отделе еще нет подотделов")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.subdepartments,(n,s)=>(e.openBlock(),e.createBlock(m.default,{onClick:i=>o.$router.push(`/organization/departments/${n._id}`),key:s,class:"br-b br-solid br-grey",department:n},null,8,["onClick","department"]))),128))])]),_:1})])]))}},$=c.default(x,[["__scopeId","data-v-05e8aa03"]]);exports.default=$;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../../icons/navigation/IconEdit.vue.cjs");require("../../../../components/Spoiler/Spoiler.vue.cjs");require("./DepartmentSub.vue2.cjs");const u=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),c=require("./User.vue.cjs");require("./CardDepartment.vue2.cjs");const d={class:"radius-big o-hidden cols-2-1_3"},p={class:"pd-medium w-100"},m=["innerHTML"],g={key:0},k={__name:"CardDepartment",props:{department:Object,organization:Object},setup(t){const n=t;return(o,a)=>{const s=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",p,[e.createVNode(s,{to:{name:"Department Edit",params:{_id:n.organization,department:t.department._id}},class:"cursor-pointer pos-absolute pos-t-regular pos-r-regular radius-extra pd-thin bg-second"},{default:e.withCtx(()=>[e.createVNode(l.default,{class:"i-regular",classes:"fill-white"})]),_:1},8,["to"]),e.createElementVNode("h3",{onClick:a[0]||(a[0]=r=>o.$router.push(`/organizations/${n.organization}/departments/${t.department._id}`)),class:"mn-b-small w-100",innerHTML:t.department.profile.name},null,8,m),e.createElementVNode("ul",null,[t.department.members.length<1?(e.openBlock(),e.createElementBlock("li",g,"В отделе еще нет участников")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.department.members,(r,i)=>(e.openBlock(),e.createBlock(c.default,{class:"br-b br-solid br-grey",key:i,user:r.user,position:r.position,onClick:b=>o.$router.push(`/app/profile/${r.user._id}`)},null,8,["user","position","onClick"]))),128))])])])}}},_=u.default(k,[["__scopeId","data-v-745afcf2"]]);exports.default=_;