@ozdao/martyrs 0.2.603 → 0.2.604

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/martyrs/src/components/EditImages/{EditImages.vue.js → EditImages.vue2.js} +2 -2
  2. package/dist/martyrs/src/components/EditImages/EditImages.vue2.js.map +1 -0
  3. package/dist/martyrs/src/components/Feed/Carousel.vue.js +1 -1
  4. package/dist/martyrs/src/components/Feed/Feed.vue.js +2 -2
  5. package/dist/martyrs/src/components/Loader/{Loader.vue2.js → Loader.vue.js} +2 -2
  6. package/dist/martyrs/src/components/Loader/Loader.vue.js.map +1 -0
  7. package/dist/martyrs/src/components/LocationMarker/LocationMarker.vue2.js +1 -1
  8. package/dist/martyrs/src/components/Media/Media.vue.js +1 -1
  9. package/dist/martyrs/src/components/Tab/{Tab.vue.js → Tab.vue2.js} +2 -2
  10. package/dist/martyrs/src/components/Tab/Tab.vue2.js.map +1 -0
  11. package/dist/martyrs/src/components/UploadImage/UploadImage.vue.js +1 -1
  12. package/dist/martyrs/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  13. package/dist/martyrs/src/modules/auth/views/components/pages/Invite.vue.js +1 -1
  14. package/dist/martyrs/src/modules/auth/views/components/pages/ProfileEdit.vue.js +1 -1
  15. package/dist/martyrs/src/modules/auth/views/components/pages/ResetPassword.vue.js +1 -1
  16. package/dist/martyrs/src/modules/auth/views/components/pages/SignIn.vue.js +3 -3
  17. package/dist/martyrs/src/modules/auth/views/components/pages/SignUp.vue.js +1 -1
  18. package/dist/martyrs/src/modules/auth/views/store/auth.js +1 -1
  19. package/dist/martyrs/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  20. package/dist/martyrs/src/modules/community/components/sections/Comments.vue.js +1 -1
  21. package/dist/martyrs/src/modules/core/views/components/blocks/PopupDateSelector.vue.js +1 -1
  22. package/dist/martyrs/src/modules/core/views/components/layouts/App.vue.js +1 -1
  23. package/dist/martyrs/src/modules/core/views/components/layouts/Client.vue.js +2 -2
  24. package/dist/martyrs/src/modules/core/views/components/sections/{Filters.vue.js → Filters.vue2.js} +2 -2
  25. package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue2.js.map +1 -0
  26. package/dist/martyrs/src/modules/core/views/components/sections/SectionPageTitle.vue.js +1 -1
  27. package/dist/martyrs/src/modules/core/views/components/sections/Walkthrough.vue.js +1 -1
  28. package/dist/martyrs/src/modules/core/views/store/core.store.js +1 -1
  29. package/dist/martyrs/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  30. package/dist/martyrs/src/modules/events/components/pages/Event.vue.js +2 -2
  31. package/dist/martyrs/src/modules/events/components/sections/Feed.vue.js +1 -1
  32. package/dist/martyrs/src/modules/events/components/sections/List.vue.js +1 -1
  33. package/dist/martyrs/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  34. package/dist/martyrs/src/modules/governance/views/components/blocks/CardInitiativeItem.vue.js +2 -2
  35. package/dist/martyrs/src/modules/governance/views/components/blocks/CardSprintItem.vue.js +2 -2
  36. package/dist/martyrs/src/modules/governance/views/components/blocks/CardTaskItem.vue.js +2 -2
  37. package/dist/martyrs/src/modules/governance/views/components/blocks/CardVotingItem.vue.js +2 -2
  38. package/dist/martyrs/src/modules/governance/views/components/pages/Initiative.vue.js +2 -2
  39. package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeCreate.vue.js +2 -2
  40. package/dist/martyrs/src/modules/governance/views/components/pages/InitiativeSprints.vue.js +2 -2
  41. package/dist/martyrs/src/modules/governance/views/components/pages/Initiatives.vue.js +2 -2
  42. package/dist/martyrs/src/modules/governance/views/components/pages/Sprint.vue.js +2 -2
  43. package/dist/martyrs/src/modules/governance/views/components/pages/SprintCreate.vue.js +2 -2
  44. package/dist/martyrs/src/modules/governance/views/components/pages/Task.vue.js +2 -2
  45. package/dist/martyrs/src/modules/governance/views/components/pages/TaskCreate.vue.js +2 -2
  46. package/dist/martyrs/src/modules/governance/views/components/pages/Tasks.vue.js +2 -2
  47. package/dist/martyrs/src/modules/governance/views/components/pages/Voting.vue.js +2 -2
  48. package/dist/martyrs/src/modules/governance/views/components/pages/VotingCreate.vue.js +2 -2
  49. package/dist/martyrs/src/modules/governance/views/components/partials/LinkedEntityCard.vue.js +2 -2
  50. package/dist/martyrs/src/modules/governance/views/components/partials/VotingResults.vue.js +2 -2
  51. package/dist/martyrs/src/modules/marketplace/views/components/pages/Marketplace.vue.js +1 -1
  52. package/dist/martyrs/src/modules/marketplace/views/components/sections/SectionMenu.vue.js +1 -1
  53. package/dist/martyrs/src/modules/music/components/forms/ArtistForm.vue.js +1 -1
  54. package/dist/martyrs/src/modules/music/components/pages/Album.vue.js +1 -1
  55. package/dist/martyrs/src/modules/music/components/pages/Artist.vue.js +1 -1
  56. package/dist/martyrs/src/modules/music/components/pages/Playlist.vue.js +1 -1
  57. package/dist/martyrs/src/modules/music/components/pages/SearchResults.vue.js +1 -1
  58. package/dist/martyrs/src/modules/music/components/pages/Track.vue.js +1 -1
  59. package/dist/martyrs/src/modules/notifications/components/sections/NotificationPreferences.vue.js +1 -1
  60. package/dist/martyrs/src/modules/notifications/notifications.client.js +2 -2
  61. package/dist/martyrs/src/modules/notifications/notifications.client.js.map +1 -1
  62. package/dist/martyrs/src/modules/notifications/store/notifications.store.js +1 -1
  63. package/dist/martyrs/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +1 -1
  64. package/dist/martyrs/src/modules/orders/components/pages/Orders.vue.js +1 -1
  65. package/dist/martyrs/src/modules/orders/components/sections/FormDelivery.vue.js +2 -2
  66. package/dist/martyrs/src/modules/orders/store/shopcart.js +1 -1
  67. package/dist/martyrs/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  68. package/dist/martyrs/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  69. package/dist/martyrs/src/modules/products/components/elements/Image360.vue.js +1 -1
  70. package/dist/martyrs/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  71. package/dist/martyrs/src/modules/products/components/pages/Product.vue.js +1 -1
  72. package/dist/martyrs/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  73. package/dist/martyrs/src/modules/products/components/pages/Products.vue.js +2 -2
  74. package/dist/martyrs/src/modules/products/components/sections/EditVariants.vue.js +1 -1
  75. package/dist/martyrs/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  76. package/dist/martyrs/src/modules/rents/views/components/pages/Gant/GanttToolbar.vue.js +1 -1
  77. package/dist/martyrs/src/modules/rents/views/components/pages/Rents.vue.js +1 -1
  78. package/dist/martyrs/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
  79. package/dist/martyrs.es101.js +39 -0
  80. package/dist/martyrs.es102.js +24 -32
  81. package/dist/martyrs.es104.js +27 -0
  82. package/dist/martyrs.es105.js +6 -25
  83. package/dist/martyrs.es106.js +6 -5
  84. package/dist/martyrs.es107.js +76 -6
  85. package/dist/martyrs.es108.js +5 -77
  86. package/dist/martyrs.es109.js +119 -5
  87. package/dist/martyrs.es112.js +2 -119
  88. package/dist/martyrs.es113.js +169 -0
  89. package/dist/martyrs.es114.js +460 -0
  90. package/dist/martyrs.es115.js +40 -2
  91. package/dist/martyrs.es116.js +9 -22
  92. package/dist/martyrs.es117.js +49 -4
  93. package/dist/martyrs.es118.js +12 -8
  94. package/dist/martyrs.es119.js +41 -163
  95. package/dist/martyrs.es120.js +4 -457
  96. package/dist/martyrs.es121.js +125 -36
  97. package/dist/martyrs.es122.js +100 -9
  98. package/dist/martyrs.es123.js +76 -39
  99. package/dist/martyrs.es124.js +36 -10
  100. package/dist/martyrs.es125.js +10 -43
  101. package/dist/martyrs.es126.js +39 -4
  102. package/dist/martyrs.es127.js +8 -128
  103. package/dist/martyrs.es128.js +22 -100
  104. package/dist/martyrs.es129.js +4 -86
  105. package/dist/martyrs.es130.js +8 -38
  106. package/dist/martyrs.es131.js +115 -10
  107. package/dist/martyrs.es132.js +16 -38
  108. package/dist/martyrs.es133.js +15 -8
  109. package/dist/martyrs.es135.js +28 -112
  110. package/dist/martyrs.es136.js +9 -17
  111. package/dist/martyrs.es137.js +19 -14
  112. package/dist/martyrs.es138.js +9 -32
  113. package/dist/martyrs.es139.js +8 -9
  114. package/dist/martyrs.es140.js +43 -19
  115. package/dist/martyrs.es141.js +480 -9
  116. package/dist/martyrs.es142.js +5 -8
  117. package/dist/martyrs.es143.js +2 -45
  118. package/dist/martyrs.es144.js +29 -479
  119. package/dist/martyrs.es145.js +11 -5
  120. package/dist/martyrs.es146.js +17 -2
  121. package/dist/martyrs.es147.js +19 -11
  122. package/dist/martyrs.es148.js +27 -29
  123. package/dist/martyrs.es149.js +20 -16
  124. package/dist/martyrs.es54.js +2 -2
  125. package/dist/martyrs.es71.js +2 -2
  126. package/dist/martyrs.es74.js +1 -1
  127. package/dist/martyrs.es75.js +1 -1
  128. package/dist/martyrs.es76.js +6 -6
  129. package/dist/martyrs.es77.js +1 -1
  130. package/dist/martyrs.es78.js +1 -1
  131. package/dist/martyrs.es91.js +1 -1
  132. package/dist/martyrs.es92.js +33 -5
  133. package/dist/martyrs.es94.js +41 -0
  134. package/dist/martyrs.es95.js +46 -28
  135. package/dist/martyrs.es96.js +116 -52
  136. package/dist/martyrs.es97.js +33 -113
  137. package/dist/martyrs.es98.js +76 -33
  138. package/dist/martyrs.es99.js +24 -77
  139. package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/index.js +1 -1
  140. package/dist/node_modules/.pnpm/@capacitor-mlkit_barcode-scanning@7.3.0_@capacitor_core@7.4.4/node_modules/@capacitor-mlkit/barcode-scanning/dist/esm/web.js +1 -1
  141. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/index.js +1 -1
  142. package/dist/node_modules/.pnpm/capacitor-plugin-app-tracking-transparency@2.0.5_@capacitor_core@7.4.4/node_modules/capacitor-plugin-app-tracking-transparency/dist/esm/web.js +1 -1
  143. package/package.json +1 -1
  144. package/dist/martyrs/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js +0 -487
  145. package/dist/martyrs/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +0 -1
  146. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/index.js +0 -8
  147. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/index.js.map +0 -1
  148. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/web.js +0 -73
  149. package/dist/martyrs/node_modules/.pnpm/@capacitor_preferences@7.0.2_@capacitor_core@7.4.4/node_modules/@capacitor/preferences/dist/esm/web.js.map +0 -1
  150. package/dist/martyrs/src/components/EditImages/EditImages.vue.js.map +0 -1
  151. package/dist/martyrs/src/components/Loader/Loader.vue2.js.map +0 -1
  152. package/dist/martyrs/src/components/Tab/Tab.vue.js.map +0 -1
  153. package/dist/martyrs/src/modules/core/views/components/sections/Filters.vue.js.map +0 -1
  154. package/dist/martyrs.es100.js +0 -33
  155. package/dist/martyrs.es103.js +0 -31
  156. package/dist/martyrs.es110.js +0 -54
  157. package/dist/martyrs.es111.js +0 -327
  158. package/dist/martyrs.es150.js +0 -22
  159. package/dist/martyrs.es151.js +0 -31
  160. package/dist/martyrs.es152.js +0 -23
  161. package/dist/martyrs.es93.js +0 -35
  162. package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js +0 -487
  163. package/dist/node_modules/.pnpm/@capacitor_core@7.4.4/node_modules/@capacitor/core/dist/index.js.map +0 -1
@@ -1,19 +1,23 @@
1
- import I from "./martyrs.es120.js";
2
- import { VALID_DIGITS as l } from "./martyrs.es118.js";
3
- var c = new RegExp("([" + l + "])");
4
- function D(t, r, f, n) {
5
- if (r) {
6
- var a = new I(n);
7
- a.selectNumberingPlan(r, f);
8
- var i = new RegExp(a.IDDPrefix());
9
- if (t.search(i) === 0) {
10
- t = t.slice(t.match(i)[0].length);
11
- var e = t.match(c);
12
- if (!(e && e[1] != null && e[1].length > 0 && e[1] === "0"))
13
- return t;
14
- }
15
- }
1
+ import { VALID_DIGITS as n } from "./martyrs.es130.js";
2
+ var v = "+", I = "[\\-\\.\\(\\)]?", R = "([" + n + "]|" + I + ")", i = "^\\" + v + R + "*[" + n + "]" + R + "*$", N = new RegExp(i, "g"), r = n, C = "[" + r + "]+((\\-)*[" + r + "])*", L = "a-zA-Z", f = "[" + L + "]+((\\-)*[" + r + "])*", E = "^(" + C + "\\.)*" + f + "\\.?$", O = new RegExp(E, "g"), l = "tel:", a = ";phone-context=", u = ";isub=";
3
+ function D(_) {
4
+ var t = _.indexOf(a);
5
+ if (t < 0)
6
+ return null;
7
+ var e = t + a.length;
8
+ if (e >= _.length)
9
+ return "";
10
+ var A = _.indexOf(";", e);
11
+ return A >= 0 ? _.substring(e, A) : _.substring(e);
12
+ }
13
+ function S(_) {
14
+ return _ === null ? !0 : _.length === 0 ? !1 : N.test(_) || O.test(_);
16
15
  }
17
16
  export {
18
- D as default
17
+ v as PLUS_SIGN,
18
+ u as RFC3966_ISDN_SUBADDRESS_,
19
+ a as RFC3966_PHONE_CONTEXT_,
20
+ l as RFC3966_PREFIX_,
21
+ D as default,
22
+ S as isPhoneContextValid
19
23
  };
@@ -1,5 +1,5 @@
1
- import r from "./martyrs.es106.js";
2
- import e from "./martyrs.es107.js";
1
+ import r from "./martyrs.es105.js";
2
+ import e from "./martyrs.es106.js";
3
3
  function o() {
4
4
  return r(e, arguments);
5
5
  }
@@ -1,6 +1,6 @@
1
- import { Preferences as c } from "./martyrs.es92.js";
1
+ import { Preferences as c } from "@capacitor/preferences";
2
2
  import { reactive as r, isReactive as g } from "vue";
3
- import p from "./martyrs.es93.js";
3
+ import p from "./martyrs.es92.js";
4
4
  function m() {
5
5
  const o = r({
6
6
  loading: !1,
@@ -1,5 +1,5 @@
1
1
  import { ref as n, watch as s, createBlock as m, openBlock as i, withCtx as p, createVNode as f } from "vue";
2
- import h from "./martyrs.es95.js";
2
+ import h from "./martyrs.es94.js";
3
3
  import S from "./martyrs.es8.js";
4
4
  const v = {
5
5
  __name: "BlockSearch",
@@ -1,6 +1,6 @@
1
1
  import { mergeModels as f, useModel as o, createElementBlock as n, openBlock as t, createElementVNode as r, toDisplayString as v, Fragment as g, renderList as w, createBlock as x, normalizeClass as d, withModifiers as p, createVNode as u, createTextVNode as c } from "vue";
2
2
  import k from "./martyrs.es13.js";
3
- import m from "./martyrs.es96.js";
3
+ import m from "./martyrs.es95.js";
4
4
  const y = { class: "w-100 o-hidden" }, h = { class: "mn-b-thin" }, M = { class: "w-100 flex-nowrap flex gap-micro" }, D = {
5
5
  __name: "BlockSorting",
6
6
  props: /* @__PURE__ */ f({
@@ -2,14 +2,14 @@ import { mergeModels as N, useModel as $, ref as C, reactive as P, watch as A, c
2
2
  import { useGlobalMixins as q } from "./martyrs.es61.js";
3
3
  import O from "./martyrs.es12.js";
4
4
  import G from "./martyrs.es5.js";
5
- import H from "./martyrs.es97.js";
6
- import I from "./martyrs.es98.js";
7
- import L from "./martyrs.es99.js";
8
- import J from "./martyrs.es100.js";
5
+ import H from "./martyrs.es96.js";
6
+ import I from "./martyrs.es97.js";
7
+ import L from "./martyrs.es98.js";
8
+ import J from "./martyrs.es99.js";
9
9
  /* empty css */
10
10
  import K from "./martyrs.es46.js";
11
- import Q from "./martyrs.es102.js";
12
- import T from "./martyrs.es103.js";
11
+ import Q from "./martyrs.es101.js";
12
+ import T from "./martyrs.es102.js";
13
13
  /* empty css */
14
14
  const W = { class: "flex o-x-scroll scroll-hide ws-nowrap gap-thin" }, X = { key: 0 }, Y = ["onClick"], Z = { class: "ws-nowrap" }, S = {
15
15
  key: 1,
@@ -1,5 +1,5 @@
1
1
  import { toRefs as n, createElementBlock as a, openBlock as s, createVNode as l, unref as i } from "vue";
2
- import u from "./martyrs.es96.js";
2
+ import u from "./martyrs.es95.js";
3
3
  const _ = {
4
4
  __name: "ButtonSort",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { toRefs as g, computed as C, createElementBlock as y, openBlock as T, createVNode as v, createElementVNode as M, toDisplayString as U } from "vue";
2
- import k from "./martyrs.es105.js";
2
+ import k from "./martyrs.es104.js";
3
3
  const w = { class: "desktop-only mn-l-thin fw-semi" }, Y = {
4
4
  __name: "ButtonDate",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import r from "./martyrs.es109.js";
1
+ import r from "./martyrs.es108.js";
2
2
  class a {
3
3
  constructor() {
4
4
  this.moduleLocales = /* @__PURE__ */ new Map(), this.overrides = /* @__PURE__ */ new Map(), this.extensions = /* @__PURE__ */ new Map(), this.i18nInstance = null, this.supportedLocales = null;
@@ -1,7 +1,35 @@
1
- import { registerPlugin as r } from "./martyrs.es111.js";
2
- const t = r("Preferences", {
3
- web: () => import("./martyrs.es110.js").then((e) => new e.PreferencesWeb())
4
- });
1
+ class n {
2
+ constructor(s) {
3
+ this.sessionState = s, this.listeners = [];
4
+ }
5
+ get state() {
6
+ return this.sessionState;
7
+ }
8
+ set(s) {
9
+ this.sessionState.token = s.accessToken, this.sessionState.userId = s._id, this.sessionState.roles = s.roles, this.sessionState.accesses = s.accesses || [], this.emit("change", this.sessionState);
10
+ }
11
+ clear() {
12
+ this.sessionState.token = null, this.sessionState.userId = null, this.sessionState.roles = null, this.sessionState.accesses = [], this.emit("change", this.sessionState);
13
+ }
14
+ hydrate(s) {
15
+ s && (this.sessionState.token = s.accessToken, this.sessionState.userId = s._id, this.sessionState.roles = s.roles, this.sessionState.accesses = s.accesses || []);
16
+ }
17
+ isAuthenticated() {
18
+ return !!this.sessionState.token;
19
+ }
20
+ getAccesses() {
21
+ return this.sessionState.accesses;
22
+ }
23
+ getUserId() {
24
+ return this.sessionState.userId;
25
+ }
26
+ onChange(s) {
27
+ this.listeners.push(s);
28
+ }
29
+ emit(s, e) {
30
+ this.listeners.forEach((t) => t(s, e));
31
+ }
32
+ }
5
33
  export {
6
- t as Preferences
34
+ n as default
7
35
  };
@@ -0,0 +1,41 @@
1
+ import { createElementBlock as l, openBlock as n, createElementVNode as o, normalizeClass as s } from "vue";
2
+ const r = {
3
+ width: "49",
4
+ height: "49",
5
+ viewBox: "0 0 49 49",
6
+ fill: "none",
7
+ xmlns: "http://www.w3.org/2000/svg"
8
+ }, i = ["stroke"], a = ["stroke"], h = {
9
+ __name: "IconSearch",
10
+ props: {
11
+ fill: {
12
+ type: String,
13
+ default: "currentColor"
14
+ }
15
+ },
16
+ setup(e) {
17
+ return (t, c) => (n(), l("svg", r, [
18
+ o("path", {
19
+ fill: "none",
20
+ stroke: e.fill,
21
+ "stroke-width": "4",
22
+ "stroke-linecap": "round",
23
+ "stroke-linejoin": "round",
24
+ class: s(t.$attrs.class),
25
+ d: "M22.5 36C30.5081 36 37 29.5081 37 21.5C37 13.4919 30.5081 7 22.5 7C14.4919 7 8 13.4919 8 21.5C8 29.5081 14.4919 36 22.5 36Z"
26
+ }, null, 10, i),
27
+ o("path", {
28
+ fill: "none",
29
+ stroke: e.fill,
30
+ "stroke-width": "4.5",
31
+ "stroke-linecap": "round",
32
+ "stroke-linejoin": "round",
33
+ class: s(t.$attrs.class),
34
+ d: "M33 32L42 41"
35
+ }, null, 10, a)
36
+ ]));
37
+ }
38
+ };
39
+ export {
40
+ h as default
41
+ };
@@ -1,41 +1,59 @@
1
- import { createElementBlock as l, openBlock as n, createElementVNode as o, normalizeClass as s } from "vue";
1
+ import { createElementBlock as t, openBlock as i, createElementVNode as l } from "vue";
2
2
  const r = {
3
- width: "49",
4
- height: "49",
5
- viewBox: "0 0 49 49",
6
- fill: "none",
7
- xmlns: "http://www.w3.org/2000/svg"
8
- }, i = ["stroke"], a = ["stroke"], h = {
9
- __name: "IconSearch",
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ width: "32",
5
+ height: "32",
6
+ viewBox: "0 0 32 32",
7
+ fill: "none"
8
+ }, c = ["width", "fill"], d = ["width", "fill"], n = ["width", "fill"], s = ["width", "fill"], f = {
9
+ __name: "IconSort",
10
10
  props: {
11
11
  fill: {
12
12
  type: String,
13
13
  default: "currentColor"
14
+ },
15
+ order: {
16
+ type: String,
17
+ default: "desc"
14
18
  }
15
19
  },
16
20
  setup(e) {
17
- return (t, c) => (n(), l("svg", r, [
18
- o("path", {
19
- fill: "none",
20
- stroke: e.fill,
21
- "stroke-width": "4",
22
- "stroke-linecap": "round",
23
- "stroke-linejoin": "round",
24
- class: s(t.$attrs.class),
25
- d: "M22.5 36C30.5081 36 37 29.5081 37 21.5C37 13.4919 30.5081 7 22.5 7C14.4919 7 8 13.4919 8 21.5C8 29.5081 14.4919 36 22.5 36Z"
26
- }, null, 10, i),
27
- o("path", {
28
- fill: "none",
29
- stroke: e.fill,
30
- "stroke-width": "4.5",
31
- "stroke-linecap": "round",
32
- "stroke-linejoin": "round",
33
- class: s(t.$attrs.class),
34
- d: "M33 32L42 41"
35
- }, null, 10, a)
21
+ return (h, o) => (i(), t("svg", r, [
22
+ l("rect", {
23
+ y: "0",
24
+ width: e.order === "desc" ? 32 : 8,
25
+ height: "5",
26
+ rx: "2.5",
27
+ fill: e.fill,
28
+ class: "ease-linear"
29
+ }, null, 8, c),
30
+ l("rect", {
31
+ y: "9",
32
+ width: e.order === "desc" ? 24 : 16,
33
+ height: "5",
34
+ rx: "2.5",
35
+ fill: e.fill,
36
+ class: "ease-linear"
37
+ }, null, 8, d),
38
+ l("rect", {
39
+ y: "18",
40
+ width: e.order === "desc" ? 16 : 24,
41
+ height: "5",
42
+ rx: "2.5",
43
+ fill: e.fill,
44
+ class: "ease-linear"
45
+ }, null, 8, n),
46
+ l("rect", {
47
+ y: "27",
48
+ width: e.order === "desc" ? 8 : 32,
49
+ height: "5",
50
+ rx: "2.5",
51
+ fill: e.fill,
52
+ class: "ease-linear"
53
+ }, null, 8, s)
36
54
  ]));
37
55
  }
38
56
  };
39
57
  export {
40
- h as default
58
+ f as default
41
59
  };
@@ -1,59 +1,123 @@
1
- import { createElementBlock as t, openBlock as i, createElementVNode as l } from "vue";
2
- const r = {
3
- xmlns: "http://www.w3.org/2000/svg",
4
- width: "32",
5
- height: "32",
6
- viewBox: "0 0 32 32",
7
- fill: "none"
8
- }, c = ["width", "fill"], d = ["width", "fill"], n = ["width", "fill"], s = ["width", "fill"], f = {
9
- __name: "IconSort",
10
- props: {
11
- fill: {
12
- type: String,
13
- default: "currentColor"
1
+ import { mergeModels as x, useModel as b, reactive as V, watch as r, createElementBlock as d, openBlock as u, createCommentVNode as c, createElementVNode as p, Fragment as k, renderList as g, createBlock as i, toDisplayString as A, normalizeClass as B } from "vue";
2
+ import "./martyrs.es71.js";
3
+ import "./martyrs.es108.js";
4
+ import f from "./martyrs.es97.js";
5
+ import F from "./martyrs.es98.js";
6
+ import U from "./martyrs.es109.js";
7
+ import w from "./martyrs.es101.js";
8
+ const E = {
9
+ key: 0,
10
+ class: "flex-v-center flex-nowrap flex mn-b-medium"
11
+ }, P = { class: "filters-content" }, C = { class: "mn-b-small" }, M = { class: "flex gap-thin mn-t-medium" }, N = {
12
+ __name: "FiltersGroup",
13
+ props: /* @__PURE__ */ x({
14
+ filters: {
15
+ type: Array,
16
+ required: !0
14
17
  },
15
- order: {
16
- type: String,
17
- default: "desc"
18
+ immediate: {
19
+ type: Boolean,
20
+ default: !1
21
+ },
22
+ showHeader: {
23
+ type: Boolean,
24
+ default: !0
25
+ },
26
+ showApplyButton: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ showResetButton: {
31
+ type: Boolean,
32
+ default: !0
18
33
  }
19
- },
20
- setup(e) {
21
- return (h, o) => (i(), t("svg", r, [
22
- l("rect", {
23
- y: "0",
24
- width: e.order === "desc" ? 32 : 8,
25
- height: "5",
26
- rx: "2.5",
27
- fill: e.fill,
28
- class: "ease-linear"
29
- }, null, 8, c),
30
- l("rect", {
31
- y: "9",
32
- width: e.order === "desc" ? 24 : 16,
33
- height: "5",
34
- rx: "2.5",
35
- fill: e.fill,
36
- class: "ease-linear"
37
- }, null, 8, d),
38
- l("rect", {
39
- y: "18",
40
- width: e.order === "desc" ? 16 : 24,
41
- height: "5",
42
- rx: "2.5",
43
- fill: e.fill,
44
- class: "ease-linear"
45
- }, null, 8, n),
46
- l("rect", {
47
- y: "27",
48
- width: e.order === "desc" ? 8 : 32,
49
- height: "5",
50
- rx: "2.5",
51
- fill: e.fill,
52
- class: "ease-linear"
53
- }, null, 8, s)
34
+ }, {
35
+ selected: {
36
+ type: Object,
37
+ default: () => ({})
38
+ },
39
+ selectedModifiers: {}
40
+ }),
41
+ emits: ["update:selected"],
42
+ setup(s) {
43
+ const m = s, n = b(s, "selected"), a = V({});
44
+ r(() => m.filters, (o) => {
45
+ o.forEach((e) => {
46
+ a[e.value] || (e.type === "checkbox" ? a[e.value] = [...n.value[e.value] || []] : e.type === "range" ? a[e.value] = { ...n.value[e.value] || { min: "", max: "" } } : (e.type, a[e.value] = n.value[e.value] || null));
47
+ });
48
+ }, { immediate: !0, deep: !0 }), r(n, (o) => {
49
+ Object.keys(o).forEach((e) => {
50
+ const l = m.filters.find((t) => t.value === e);
51
+ l && (l.type === "checkbox" ? a[e] = [...o[e] || []] : l.type === "range" ? a[e] = { ...o[e] || { min: "", max: "" } } : a[e] = o[e]);
52
+ });
53
+ }, { deep: !0 });
54
+ const v = (o) => {
55
+ if (m.immediate) {
56
+ const e = { ...n.value };
57
+ e[o] = a[o], n.value = e;
58
+ }
59
+ }, y = () => {
60
+ const o = {};
61
+ Object.keys(a).forEach((e) => {
62
+ o[e] = a[e];
63
+ }), n.value = o;
64
+ }, h = () => {
65
+ m.filters.forEach((o) => {
66
+ o.type === "checkbox" ? a[o.value] = [] : o.type === "range" ? a[o.value] = { min: "", max: "" } : (o.type, a[o.value] = null), delete n.value[o.value];
67
+ });
68
+ };
69
+ return (o, e) => (u(), d("div", null, [
70
+ s.showHeader ? (u(), d("div", E, e[0] || (e[0] = [
71
+ p("h3", { class: "flex-child-full" }, "Filters", -1)
72
+ ]))) : c("", !0),
73
+ p("div", P, [
74
+ (u(!0), d(k, null, g(s.filters, (l) => (u(), d("div", {
75
+ key: l.value,
76
+ class: "mn-b-medium"
77
+ }, [
78
+ p("h4", C, A(l.title), 1),
79
+ l.type === "checkbox" ? (u(), i(f, {
80
+ key: 0,
81
+ modelValue: a[l.value],
82
+ "onUpdate:modelValue": (t) => a[l.value] = t,
83
+ options: l.options,
84
+ onApply: (t) => v(l.value)
85
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onApply"])) : l.type === "range" ? (u(), i(F, {
86
+ key: 1,
87
+ modelValue: a[l.value],
88
+ "onUpdate:modelValue": (t) => a[l.value] = t,
89
+ minPlaceholder: l.minPlaceholder || "Min",
90
+ maxPlaceholder: l.maxPlaceholder || "Max",
91
+ label: l.label,
92
+ onApply: (t) => v(l.value)
93
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "minPlaceholder", "maxPlaceholder", "label", "onApply"])) : l.type === "date" ? (u(), i(U, {
94
+ key: 2,
95
+ modelValue: a[l.value],
96
+ "onUpdate:modelValue": (t) => a[l.value] = t,
97
+ onApply: (t) => v(l.value)
98
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onApply"])) : l.type === "radio" ? (u(), i(w, {
99
+ key: 3,
100
+ modelValue: a[l.value],
101
+ "onUpdate:modelValue": (t) => a[l.value] = t,
102
+ options: l.options
103
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "options"])) : c("", !0)
104
+ ]))), 128))
105
+ ]),
106
+ p("div", M, [
107
+ s.showApplyButton ? (u(), d("button", {
108
+ key: 0,
109
+ onClick: y,
110
+ class: "button bg-main flex-child-full"
111
+ }, " Apply ")) : c("", !0),
112
+ s.showResetButton ? (u(), d("button", {
113
+ key: 1,
114
+ onClick: h,
115
+ class: B(["button bg-light", { "flex-child-full": !s.showApplyButton }])
116
+ }, " Reset Filters ", 2)) : c("", !0)
117
+ ])
54
118
  ]));
55
119
  }
56
120
  };
57
121
  export {
58
- f as default
122
+ N as default
59
123
  };
@@ -1,123 +1,43 @@
1
- import { mergeModels as x, useModel as b, reactive as V, watch as r, createElementBlock as d, openBlock as u, createCommentVNode as c, createElementVNode as p, Fragment as k, renderList as g, createBlock as i, toDisplayString as A, normalizeClass as B } from "vue";
2
- import "./martyrs.es71.js";
3
- import "./martyrs.es109.js";
4
- import f from "./martyrs.es98.js";
5
- import F from "./martyrs.es99.js";
6
- import U from "./martyrs.es112.js";
7
- import w from "./martyrs.es102.js";
8
- const E = {
9
- key: 0,
10
- class: "flex-v-center flex-nowrap flex mn-b-medium"
11
- }, P = { class: "filters-content" }, C = { class: "mn-b-small" }, M = { class: "flex gap-thin mn-t-medium" }, N = {
12
- __name: "FiltersGroup",
13
- props: /* @__PURE__ */ x({
14
- filters: {
1
+ import { mergeModels as d, useModel as b, computed as f, createElementBlock as o, openBlock as t, Fragment as p, renderList as v, createBlock as y } from "vue";
2
+ import x from "./martyrs.es4.js";
3
+ /* empty css */
4
+ import _ from "./martyrs.es46.js";
5
+ const k = { class: "filter-checkbox" }, g = {
6
+ __name: "FilterCheckbox",
7
+ props: /* @__PURE__ */ d({
8
+ options: {
15
9
  type: Array,
16
10
  required: !0
17
- },
18
- immediate: {
19
- type: Boolean,
20
- default: !1
21
- },
22
- showHeader: {
23
- type: Boolean,
24
- default: !0
25
- },
26
- showApplyButton: {
27
- type: Boolean,
28
- default: !1
29
- },
30
- showResetButton: {
31
- type: Boolean,
32
- default: !0
33
11
  }
34
12
  }, {
35
- selected: {
36
- type: Object,
37
- default: () => ({})
13
+ modelValue: {
14
+ type: Array,
15
+ default: () => []
38
16
  },
39
- selectedModifiers: {}
17
+ modelModifiers: {}
40
18
  }),
41
- emits: ["update:selected"],
42
- setup(s) {
43
- const m = s, n = b(s, "selected"), a = V({});
44
- r(() => m.filters, (o) => {
45
- o.forEach((e) => {
46
- a[e.value] || (e.type === "checkbox" ? a[e.value] = [...n.value[e.value] || []] : e.type === "range" ? a[e.value] = { ...n.value[e.value] || { min: "", max: "" } } : (e.type, a[e.value] = n.value[e.value] || null));
47
- });
48
- }, { immediate: !0, deep: !0 }), r(n, (o) => {
49
- Object.keys(o).forEach((e) => {
50
- const l = m.filters.find((t) => t.value === e);
51
- l && (l.type === "checkbox" ? a[e] = [...o[e] || []] : l.type === "range" ? a[e] = { ...o[e] || { min: "", max: "" } } : a[e] = o[e]);
52
- });
53
- }, { deep: !0 });
54
- const v = (o) => {
55
- if (m.immediate) {
56
- const e = { ...n.value };
57
- e[o] = a[o], n.value = e;
58
- }
59
- }, y = () => {
60
- const o = {};
61
- Object.keys(a).forEach((e) => {
62
- o[e] = a[e];
63
- }), n.value = o;
64
- }, h = () => {
65
- m.filters.forEach((o) => {
66
- o.type === "checkbox" ? a[o.value] = [] : o.type === "range" ? a[o.value] = { min: "", max: "" } : (o.type, a[o.value] = null), delete n.value[o.value];
67
- });
68
- };
69
- return (o, e) => (u(), d("div", null, [
70
- s.showHeader ? (u(), d("div", E, e[0] || (e[0] = [
71
- p("h3", { class: "flex-child-full" }, "Filters", -1)
72
- ]))) : c("", !0),
73
- p("div", P, [
74
- (u(!0), d(k, null, g(s.filters, (l) => (u(), d("div", {
75
- key: l.value,
76
- class: "mn-b-medium"
77
- }, [
78
- p("h4", C, A(l.title), 1),
79
- l.type === "checkbox" ? (u(), i(f, {
80
- key: 0,
81
- modelValue: a[l.value],
82
- "onUpdate:modelValue": (t) => a[l.value] = t,
83
- options: l.options,
84
- onApply: (t) => v(l.value)
85
- }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onApply"])) : l.type === "range" ? (u(), i(F, {
86
- key: 1,
87
- modelValue: a[l.value],
88
- "onUpdate:modelValue": (t) => a[l.value] = t,
89
- minPlaceholder: l.minPlaceholder || "Min",
90
- maxPlaceholder: l.maxPlaceholder || "Max",
91
- label: l.label,
92
- onApply: (t) => v(l.value)
93
- }, null, 8, ["modelValue", "onUpdate:modelValue", "minPlaceholder", "maxPlaceholder", "label", "onApply"])) : l.type === "date" ? (u(), i(U, {
94
- key: 2,
95
- modelValue: a[l.value],
96
- "onUpdate:modelValue": (t) => a[l.value] = t,
97
- onApply: (t) => v(l.value)
98
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onApply"])) : l.type === "radio" ? (u(), i(w, {
99
- key: 3,
100
- modelValue: a[l.value],
101
- "onUpdate:modelValue": (t) => a[l.value] = t,
102
- options: l.options
103
- }, null, 8, ["modelValue", "onUpdate:modelValue", "options"])) : c("", !0)
104
- ]))), 128))
105
- ]),
106
- p("div", M, [
107
- s.showApplyButton ? (u(), d("button", {
108
- key: 0,
109
- onClick: y,
110
- class: "button bg-main flex-child-full"
111
- }, " Apply ")) : c("", !0),
112
- s.showResetButton ? (u(), d("button", {
113
- key: 1,
114
- onClick: h,
115
- class: B(["button bg-light", { "flex-child-full": !s.showApplyButton }])
116
- }, " Reset Filters ", 2)) : c("", !0)
117
- ])
19
+ emits: /* @__PURE__ */ d(["apply"], ["update:modelValue"]),
20
+ setup(u, { emit: i }) {
21
+ const r = u, s = b(u, "modelValue"), c = i, n = f(() => !r.options || !Array.isArray(r.options) ? [] : r.options.map((e, l) => typeof e == "string" ? { label: e, value: e } : typeof e == "object" && e !== null ? {
22
+ label: e.label || e.text || e.name || String(e.value || e),
23
+ value: e.value || e.text || e.label || e._id || e.id || `option-${l}`
24
+ } : { label: String(e), value: `option-${l}` }));
25
+ return (e, l) => (t(), o("div", k, [
26
+ (t(!0), o(p, null, v(n.value, (a, A) => (t(), y(x, {
27
+ key: a.value,
28
+ radio: s.value,
29
+ "onUpdate:radio": [
30
+ l[0] || (l[0] = (m) => s.value = m),
31
+ l[1] || (l[1] = (m) => c("apply"))
32
+ ],
33
+ label: a.label,
34
+ value: a.value,
35
+ mode: "checkbox",
36
+ class: "br-1px br-light pd-small radius-small mn-b-micro"
37
+ }, null, 8, ["radio", "label", "value"]))), 128))
118
38
  ]));
119
39
  }
120
- };
40
+ }, M = /* @__PURE__ */ _(g, [["__scopeId", "data-v-91444d4c"]]);
121
41
  export {
122
- N as default
42
+ M as default
123
43
  };