@piveau/piveau-hub-ui-modules 4.5.7 → 4.5.9

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 (70) hide show
  1. package/dist/composables/useDataInfoBox.mjs +21 -20
  2. package/dist/composables/useDataInfoBox.mjs.map +1 -1
  3. package/dist/configurations/configureModules.d.ts +4 -0
  4. package/dist/configurations/configureModules.mjs +6 -4
  5. package/dist/configurations/configureModules.mjs.map +1 -1
  6. package/dist/data-provider-interface/CatalogueMQA.vue.mjs +221 -157
  7. package/dist/data-provider-interface/CatalogueMQA.vue.mjs.map +1 -1
  8. package/dist/data-provider-interface/DPIMenu.vue.d.ts +2 -2
  9. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs +37 -37
  10. package/dist/data-provider-interface/views/UserCataloguesPage.vue.mjs.map +1 -1
  11. package/dist/datasetDetails/DatasetDetailsDescription.vue.d.ts +1 -1
  12. package/dist/datasetDetails/distributions/DistributionFormat.vue.d.ts +2 -2
  13. package/dist/datasetDetails/distributions/DownloadAllDistributions.vue.d.ts +2 -2
  14. package/dist/datasetDetails/distributions/distributionActions/DistributionDownload.vue.d.ts +2 -2
  15. package/dist/datasetDetails/header/DatasetDetailsHeaderTitle.vue.d.ts +1 -1
  16. package/dist/datasetDetails/navigation/DatasetDetailsNavigation.vue.d.ts +1 -1
  17. package/dist/datasetDetails/navigation/DatasetDetailsNavigationLinks.vue.d.ts +1 -1
  18. package/dist/datasets/Datasets.vue.mjs +80 -80
  19. package/dist/datasets/Datasets.vue.mjs.map +1 -1
  20. package/dist/facets_2.0/Facets.vue.d.ts +19 -0
  21. package/dist/facets_2.0/Facets.vue.mjs +31 -0
  22. package/dist/facets_2.0/Facets.vue.mjs.map +1 -0
  23. package/dist/facets_2.0/Facets.vue2.mjs +5 -0
  24. package/dist/facets_2.0/Facets.vue2.mjs.map +1 -0
  25. package/dist/facets_2.0/facets/DataServicesFacet.vue.d.ts +75 -0
  26. package/dist/facets_2.0/facets/DataServicesFacet.vue.mjs +49 -0
  27. package/dist/facets_2.0/facets/DataServicesFacet.vue.mjs.map +1 -0
  28. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.d.ts +93 -0
  29. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.mjs +143 -0
  30. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue.mjs.map +1 -0
  31. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue2.mjs +5 -0
  32. package/dist/facets_2.0/facets/ExpandableSelectFacet.vue2.mjs.map +1 -0
  33. package/dist/facets_2.0/facets/FacetTitle.vue.d.ts +18 -0
  34. package/dist/facets_2.0/facets/FacetTitle.vue.mjs +38 -0
  35. package/dist/facets_2.0/facets/FacetTitle.vue.mjs.map +1 -0
  36. package/dist/facets_2.0/facets/FacetTitle.vue2.mjs +5 -0
  37. package/dist/facets_2.0/facets/FacetTitle.vue2.mjs.map +1 -0
  38. package/dist/facets_2.0/facets/RadioFacet.vue.d.ts +58 -0
  39. package/dist/facets_2.0/facets/RadioFacet.vue.mjs +92 -0
  40. package/dist/facets_2.0/facets/RadioFacet.vue.mjs.map +1 -0
  41. package/dist/facets_2.0/facets/SelectFacetsItem.vue.d.ts +34 -0
  42. package/dist/facets_2.0/facets/SelectFacetsItem.vue.mjs +45 -0
  43. package/dist/facets_2.0/facets/SelectFacetsItem.vue.mjs.map +1 -0
  44. package/dist/facets_2.0/getFacet.d.ts +3 -0
  45. package/dist/facets_2.0/getFacet.mjs +20 -0
  46. package/dist/facets_2.0/getFacet.mjs.map +1 -0
  47. package/dist/facets_2.0/toggleQueryParam.d.ts +9 -0
  48. package/dist/facets_2.0/toggleQueryParam.mjs +11 -0
  49. package/dist/facets_2.0/toggleQueryParam.mjs.map +1 -0
  50. package/dist/facets_2.0/types.d.ts +9 -0
  51. package/dist/facets_2.0/useFacets.d.ts +5 -0
  52. package/dist/facets_2.0/useFacets.mjs +14 -0
  53. package/dist/facets_2.0/useFacets.mjs.map +1 -0
  54. package/dist/index.d.ts +3 -2
  55. package/dist/index.mjs +276 -273
  56. package/dist/index.mjs.map +1 -1
  57. package/dist/piveau-hub-ui-modules.css +1 -1
  58. package/dist/search/Search.vue.d.ts +2 -0
  59. package/dist/search/Search.vue.mjs +20 -0
  60. package/dist/search/Search.vue.mjs.map +1 -0
  61. package/dist/services/datasetService.d.ts +5 -0
  62. package/dist/services/datasetService.mjs +2 -1
  63. package/dist/services/datasetService.mjs.map +1 -1
  64. package/dist/store/modules/cataloguesStore.d.ts +6 -0
  65. package/dist/store/modules/cataloguesStore.mjs +10 -4
  66. package/dist/store/modules/cataloguesStore.mjs.map +1 -1
  67. package/dist/store/modules/datasetsStore.d.ts +12 -0
  68. package/dist/store/modules/datasetsStore.mjs +26 -14
  69. package/dist/store/modules/datasetsStore.mjs.map +1 -1
  70. package/package.json +1 -1
@@ -1,39 +1,40 @@
1
- import { getCurrentInstance as I, computed as C, unref as u } from "vue";
2
- import { getImg as b, getTranslationFor as i, truncate as D } from "../utils/helpers.mjs";
3
- import { has as g, toPairs as B, groupBy as A, uniqBy as s } from "lodash-es";
4
- function x({ datasets: l, locale: d }) {
5
- const n = I().proxy.$env;
6
- function m(e) {
7
- return n.content.catalogs.useCatalogCountries ? `${n.content.catalogs.defaultCatalogImagePath}/${g(e, "country.id") ? e.country.id : n.content.catalogs.defaultCatalogCountryID}` : `${n.content.catalogs.defaultCatalogImagePath}/${g(e, "id") ? e.id : n.content.catalogs.defaultCatalogID}`;
1
+ import { computed as C, unref as c } from "vue";
2
+ import { getImg as D, getTranslationFor as i, truncate as I } from "../utils/helpers.mjs";
3
+ import { has as g, toPairs as b, groupBy as h, uniqBy as s } from "lodash-es";
4
+ import { useRuntimeEnv as B } from "./useRuntimeEnv.mjs";
5
+ function P({ datasets: l, locale: m }) {
6
+ const o = B();
7
+ function d(e) {
8
+ return o.content.catalogs.useCatalogCountries ? `${o.content.catalogs.defaultCatalogImagePath}/${g(e, "country.id") ? e.country.id : o.content.catalogs.defaultCatalogCountryID}` : `${o.content.catalogs.defaultCatalogImagePath}/${g(e, "id") ? e.id : o.content.catalogs.defaultCatalogID}`;
8
9
  }
9
- function c(e) {
10
- return D(e, 8, !0);
10
+ function u(e) {
11
+ return I(e, 8, !0);
11
12
  }
12
13
  function f(e) {
13
- const o = e.map((a) => ({
14
+ const r = e.map((a) => ({
14
15
  ...a,
15
- id: c(a.id),
16
- label: c(a.label)
17
- })), r = B(A(o, "id")).sort((a, y) => y[1].length - a[1].length).map((a) => a[1][0]), p = s(r, "id");
16
+ id: u(a.id),
17
+ label: u(a.label)
18
+ })), n = b(h(r, "id")).sort((a, y) => y[1].length - a[1].length).map((a) => a[1][0]), p = s(n, "id");
18
19
  return s(p, "label");
19
20
  }
20
21
  return C(() => {
21
- const e = u(l), o = u(d);
22
+ const e = c(l), r = c(m);
22
23
  return !l || !e ? null : e.map((t) => ({
23
24
  id: t.id,
24
- src: b(m(t.catalog)),
25
+ src: D(d(t.catalog)),
25
26
  dataset: {
26
- title: i(t.title, o, t.languages) || t.id,
27
- description: i(t.description, o, t.languages),
28
- catalog: i(t.catalog.title, o, []),
27
+ title: i(t.title, r, t.languages) || t.id,
28
+ description: i(t.description, r, t.languages),
29
+ catalog: i(t.catalog.title, r, []),
29
30
  createdDate: t.releaseDate,
30
31
  updatedDate: t.modificationDate,
31
- formats: f(t.distributionFormats).filter((r) => r.id || r.label)
32
+ formats: f(t.distributionFormats).filter((n) => n.id || n.label)
32
33
  }
33
34
  }));
34
35
  });
35
36
  }
36
37
  export {
37
- x as useDataInfoBox
38
+ P as useDataInfoBox
38
39
  };
39
40
  //# sourceMappingURL=useDataInfoBox.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDataInfoBox.mjs","sources":["../../lib/composables/useDataInfoBox.js"],"sourcesContent":["import { computed, getCurrentInstance, unref } from \"vue\";\nimport { getTranslationFor, truncate, getImg } from \"../utils/helpers\";\nimport { toPairs, uniqBy, groupBy, has } from \"lodash-es\";\n\nexport function useDataInfoBox({ datasets, locale }) {\n\n const vm = getCurrentInstance();\n const $env = vm.proxy.$env;\n\n function getCatalogImage(catalog) {\n return $env.content.catalogs.useCatalogCountries\n ? `${$env.content.catalogs.defaultCatalogImagePath}/${has(catalog, 'country.id') ? catalog.country.id : $env.content.catalogs.defaultCatalogCountryID}`\n : `${$env.content.catalogs.defaultCatalogImagePath}/${has(catalog, 'id') ? catalog.id : $env.content.catalogs.defaultCatalogID}`;\n }\n\n\n /**\n * @description Cuts badge format string (max 8 chars)\n * @param label {String} - badge label or id (e.g. csv)\n */\n function getBadgeFormat(label) {\n return truncate(label, 8, true);\n }\n\n /**\n * @description Removes the duplicates of the given array\n * @param array {Array} - The array to remove duplicates from\n * @returns {Array}\n */\n function removeDuplicatesOf(array) {\n const correctedFormatArray = array.map(format => (\n {\n ...format,\n id: getBadgeFormat(format.id),\n label: getBadgeFormat(format.label),\n }\n ));\n // sorts after # of occurences (highest occurence first)\n // possibility #1\n const sortedArray = toPairs(groupBy(correctedFormatArray, \"id\")).sort((a, b) => b[1].length - a[1].length);\n const onlyFormatObjectsArray = sortedArray.map(arr => arr[1][0]);\n // lodash uniqBy funtion removes duplicate id´s from array of objects\n const uniqById = uniqBy(onlyFormatObjectsArray, \"id\");\n const uniqByIdAndLabel = uniqBy(uniqById, \"label\");\n return uniqByIdAndLabel;\n }\n \n return computed(() => {\n const dsList = unref(datasets);\n const l = unref(locale);\n\n if (!datasets || !dsList) {\n return null;\n }\n\n return dsList.map((ds) => {\n return {\n id: ds.id,\n src: getImg(getCatalogImage(ds.catalog)),\n dataset: {\n title: getTranslationFor(ds.title, l, ds.languages) || ds.id,\n description: getTranslationFor(ds.description, l, ds.languages),\n catalog: getTranslationFor(ds.catalog.title, l, []),\n createdDate: ds.releaseDate,\n updatedDate: ds.modificationDate,\n formats: removeDuplicatesOf(ds.distributionFormats).filter((format) => format.id || format.label),\n }\n }\n })\n })\n}"],"names":["useDataInfoBox","datasets","locale","$env","getCurrentInstance","getCatalogImage","catalog","has","getBadgeFormat","label","truncate","removeDuplicatesOf","array","correctedFormatArray","format","onlyFormatObjectsArray","toPairs","groupBy","b","arr","uniqById","uniqBy","computed","dsList","unref","l","ds","getImg","getTranslationFor"],"mappings":";;;AAIO,SAASA,EAAe,EAAE,UAAAC,GAAU,QAAAC,KAAU;AAGnD,QAAMC,IADKC,IACK,MAAM;AAEtB,WAASC,EAAgBC,GAAS;AAChC,WAAOH,EAAK,QAAQ,SAAS,sBACzB,GAAGA,EAAK,QAAQ,SAAS,uBAAuB,IAAII,EAAID,GAAS,YAAY,IAAIA,EAAQ,QAAQ,KAAKH,EAAK,QAAQ,SAAS,uBAAuB,KACnJ,GAAGA,EAAK,QAAQ,SAAS,uBAAuB,IAAII,EAAID,GAAS,IAAI,IAAIA,EAAQ,KAAKH,EAAK,QAAQ,SAAS,gBAAgB;AAAA,EACjI;AAOD,WAASK,EAAeC,GAAO;AAC7B,WAAOC,EAASD,GAAO,GAAG,EAAI;AAAA,EAC/B;AAOD,WAASE,EAAmBC,GAAO;AACjC,UAAMC,IAAuBD,EAAM,IAAI,CAAAE,OACrC;AAAA,MACE,GAAGA;AAAA,MACH,IAAIN,EAAeM,EAAO,EAAE;AAAA,MAC5B,OAAON,EAAeM,EAAO,KAAK;AAAA,IACnC,EACF,GAIKC,IADcC,EAAQC,EAAQJ,GAAsB,IAAI,CAAC,EAAE,KAAK,CAAC,GAAGK,MAAMA,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAC9D,IAAI,CAAAC,MAAOA,EAAI,CAAC,EAAE,CAAC,CAAC,GAEzDC,IAAWC,EAAON,GAAwB,IAAI;AAEpD,WADyBM,EAAOD,GAAU,OAAO;AAAA,EAElD;AAED,SAAOE,EAAS,MAAM;AACpB,UAAMC,IAASC,EAAMvB,CAAQ,GACvBwB,IAAID,EAAMtB,CAAM;AAEtB,WAAI,CAACD,KAAY,CAACsB,IACT,OAGFA,EAAO,IAAI,CAACG,OACV;AAAA,MACL,IAAIA,EAAG;AAAA,MACP,KAAKC,EAAOtB,EAAgBqB,EAAG,OAAO,CAAC;AAAA,MACvC,SAAS;AAAA,QACP,OAAOE,EAAkBF,EAAG,OAAOD,GAAGC,EAAG,SAAS,KAAKA,EAAG;AAAA,QAC1D,aAAaE,EAAkBF,EAAG,aAAaD,GAAGC,EAAG,SAAS;AAAA,QAC9D,SAASE,EAAkBF,EAAG,QAAQ,OAAOD,GAAG,EAAE;AAAA,QAClD,aAAaC,EAAG;AAAA,QAChB,aAAaA,EAAG;AAAA,QAChB,SAASf,EAAmBe,EAAG,mBAAmB,EAAE,OAAO,CAACZ,MAAWA,EAAO,MAAMA,EAAO,KAAK;AAAA,MACjG;AAAA,IACF,EACF;AAAA,EACL,CAAG;AACH;"}
1
+ {"version":3,"file":"useDataInfoBox.mjs","sources":["../../lib/composables/useDataInfoBox.js"],"sourcesContent":["import {computed, unref} from \"vue\";\nimport {getImg, getTranslationFor, truncate} from \"../utils/helpers\";\nimport {groupBy, has, toPairs, uniqBy} from \"lodash-es\";\nimport {useRuntimeEnv} from \"./useRuntimeEnv.ts\";\n\nexport function useDataInfoBox({ datasets, locale }) {\n\n // const vm = getCurrentInstance();\n // const $env = vm.proxy.$env;\n const $env = useRuntimeEnv();\n\n function getCatalogImage(catalog) {\n return $env.content.catalogs.useCatalogCountries\n ? `${$env.content.catalogs.defaultCatalogImagePath}/${has(catalog, 'country.id') ? catalog.country.id : $env.content.catalogs.defaultCatalogCountryID}`\n : `${$env.content.catalogs.defaultCatalogImagePath}/${has(catalog, 'id') ? catalog.id : $env.content.catalogs.defaultCatalogID}`;\n }\n\n\n /**\n * @description Cuts badge format string (max 8 chars)\n * @param label {String} - badge label or id (e.g. csv)\n */\n function getBadgeFormat(label) {\n return truncate(label, 8, true);\n }\n\n /**\n * @description Removes the duplicates of the given array\n * @param array {Array} - The array to remove duplicates from\n * @returns {Array}\n */\n function removeDuplicatesOf(array) {\n const correctedFormatArray = array.map(format => (\n {\n ...format,\n id: getBadgeFormat(format.id),\n label: getBadgeFormat(format.label),\n }\n ));\n // sorts after # of occurences (highest occurence first)\n // possibility #1\n const sortedArray = toPairs(groupBy(correctedFormatArray, \"id\")).sort((a, b) => b[1].length - a[1].length);\n const onlyFormatObjectsArray = sortedArray.map(arr => arr[1][0]);\n // lodash uniqBy funtion removes duplicate id´s from array of objects\n const uniqById = uniqBy(onlyFormatObjectsArray, \"id\");\n return uniqBy(uniqById, \"label\");\n }\n\n return computed(() => {\n const dsList = unref(datasets);\n const l = unref(locale);\n\n if (!datasets || !dsList) {\n return null;\n }\n\n return dsList.map((ds) => {\n return {\n id: ds.id,\n src: getImg(getCatalogImage(ds.catalog)),\n dataset: {\n title: getTranslationFor(ds.title, l, ds.languages) || ds.id,\n description: getTranslationFor(ds.description, l, ds.languages),\n catalog: getTranslationFor(ds.catalog.title, l, []),\n createdDate: ds.releaseDate,\n updatedDate: ds.modificationDate,\n formats: removeDuplicatesOf(ds.distributionFormats).filter((format) => format.id || format.label),\n }\n }\n })\n })\n}\n"],"names":["useDataInfoBox","datasets","locale","$env","useRuntimeEnv","getCatalogImage","catalog","has","getBadgeFormat","label","truncate","removeDuplicatesOf","array","correctedFormatArray","format","onlyFormatObjectsArray","toPairs","groupBy","b","arr","uniqById","uniqBy","computed","dsList","unref","l","ds","getImg","getTranslationFor"],"mappings":";;;;AAKO,SAASA,EAAe,EAAE,UAAAC,GAAU,QAAAC,KAAU;AAInD,QAAMC,IAAOC;AAEb,WAASC,EAAgBC,GAAS;AAChC,WAAOH,EAAK,QAAQ,SAAS,sBACzB,GAAGA,EAAK,QAAQ,SAAS,uBAAuB,IAAII,EAAID,GAAS,YAAY,IAAIA,EAAQ,QAAQ,KAAKH,EAAK,QAAQ,SAAS,uBAAuB,KACnJ,GAAGA,EAAK,QAAQ,SAAS,uBAAuB,IAAII,EAAID,GAAS,IAAI,IAAIA,EAAQ,KAAKH,EAAK,QAAQ,SAAS,gBAAgB;AAAA,EACjI;AAOD,WAASK,EAAeC,GAAO;AAC7B,WAAOC,EAASD,GAAO,GAAG,EAAI;AAAA,EAC/B;AAOD,WAASE,EAAmBC,GAAO;AACjC,UAAMC,IAAuBD,EAAM,IAAI,CAAAE,OACrC;AAAA,MACE,GAAGA;AAAA,MACH,IAAIN,EAAeM,EAAO,EAAE;AAAA,MAC5B,OAAON,EAAeM,EAAO,KAAK;AAAA,IACnC,EACF,GAIKC,IADcC,EAAQC,EAAQJ,GAAsB,IAAI,CAAC,EAAE,KAAK,CAAC,GAAGK,MAAMA,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAC9D,IAAI,CAAAC,MAAOA,EAAI,CAAC,EAAE,CAAC,CAAC,GAEzDC,IAAWC,EAAON,GAAwB,IAAI;AACpD,WAAOM,EAAOD,GAAU,OAAO;AAAA,EAChC;AAED,SAAOE,EAAS,MAAM;AACpB,UAAMC,IAASC,EAAMvB,CAAQ,GACvBwB,IAAID,EAAMtB,CAAM;AAEtB,WAAI,CAACD,KAAY,CAACsB,IACT,OAGFA,EAAO,IAAI,CAACG,OACV;AAAA,MACL,IAAIA,EAAG;AAAA,MACP,KAAKC,EAAOtB,EAAgBqB,EAAG,OAAO,CAAC;AAAA,MACvC,SAAS;AAAA,QACP,OAAOE,EAAkBF,EAAG,OAAOD,GAAGC,EAAG,SAAS,KAAKA,EAAG;AAAA,QAC1D,aAAaE,EAAkBF,EAAG,aAAaD,GAAGC,EAAG,SAAS;AAAA,QAC9D,SAASE,EAAkBF,EAAG,QAAQ,OAAOD,GAAG,EAAE;AAAA,QAClD,aAAaC,EAAG;AAAA,QAChB,aAAaA,EAAG;AAAA,QAChB,SAASf,EAAmBe,EAAG,mBAAmB,EAAE,OAAO,CAACZ,MAAWA,EAAO,MAAMA,EAAO,KAAK;AAAA,MACjG;AAAA,IACF,EACF;AAAA,EACL,CAAG;AACH;"}
@@ -5,6 +5,10 @@ type ModulesConfig = {
5
5
  serviceParams: {
6
6
  [key: string]: unknown;
7
7
  };
8
+ customFacets: any;
9
+ };
10
+ export declare const extras: {
11
+ [key: string]: any;
8
12
  };
9
13
  export declare function configureModules(app: any, store: any, config?: ModulesConfig): void;
10
14
  export {};
@@ -1,9 +1,11 @@
1
- import { configureServices as i } from "./configureServices.mjs";
1
+ import { configureServices as t } from "./configureServices.mjs";
2
2
  import { configureComponents as m } from "./configureComponents.mjs";
3
- function f(e, r, o) {
4
- r.$app = e, o && (i(r, o.serviceParams), m(e, o.components));
3
+ const u = {};
4
+ function v(r, s, e) {
5
+ s.$app = r, e && (t(s, e == null ? void 0 : e.serviceParams), m(r, e == null ? void 0 : e.components)), u.customFacets = e == null ? void 0 : e.customFacets;
5
6
  }
6
7
  export {
7
- f as configureModules
8
+ v as configureModules,
9
+ u as extras
8
10
  };
9
11
  //# sourceMappingURL=configureModules.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"configureModules.mjs","sources":["../../lib/configurations/configureModules.ts"],"sourcesContent":["import { configureServices } from \"./configureServices\";\nimport { ComponentMap, configureComponents } from \"./configureComponents\";\n\ntype ModulesConfig = {\n components: ComponentMap,\n serviceParams: {[key: string]: unknown},\n};\n\nexport function configureModules(app: any, store: any, config?: ModulesConfig) {\n store.$app = app;\n if (config) {\n configureServices(store, config.serviceParams);\n configureComponents(app, config.components);\n }\n}\n"],"names":["configureModules","app","store","config","configureServices","configureComponents"],"mappings":";;AAQgB,SAAAA,EAAiBC,GAAUC,GAAYC,GAAwB;AAC7E,EAAAD,EAAM,OAAOD,GACTE,MACgBC,EAAAF,GAAOC,EAAO,aAAa,GACzBE,EAAAJ,GAAKE,EAAO,UAAU;AAE9C;"}
1
+ {"version":3,"file":"configureModules.mjs","sources":["../../lib/configurations/configureModules.ts"],"sourcesContent":["import { configureServices } from \"./configureServices\";\nimport { ComponentMap, configureComponents } from \"./configureComponents\";\n\ntype ModulesConfig = {\n components: ComponentMap,\n serviceParams: {[key: string]: unknown},\n customFacets: any\n};\n\nexport const extras: {[key:string]: any} = {};\n\nexport function configureModules(app: any, store: any, config?: ModulesConfig) {\n store.$app = app;\n if (config) {\n configureServices(store, config?.serviceParams);\n configureComponents(app, config?.components);\n }\n extras.customFacets = config?.customFacets\n}\n"],"names":["extras","configureModules","app","store","config","configureServices","configureComponents"],"mappings":";;AASO,MAAMA,IAA8B,CAAC;AAE5B,SAAAC,EAAiBC,GAAUC,GAAYC,GAAwB;AAC7E,EAAAD,EAAM,OAAOD,GACTE,MACgBC,EAAAF,GAAOC,KAAA,gBAAAA,EAAQ,aAAa,GAC1BE,EAAAJ,GAAKE,KAAA,gBAAAA,EAAQ,UAAU,IAE7CJ,EAAO,eAAeI,KAAA,gBAAAA,EAAQ;AAChC;"}
@@ -1,203 +1,269 @@
1
- import { ref as r, openBlock as p, createElementBlock as f, createElementVNode as l, createTextVNode as e, toDisplayString as B, unref as s, Fragment as D, renderList as L, normalizeClass as y, createCommentVNode as w, withDirectives as W, vModelText as A, isRef as k } from "vue";
2
- import { onClickOutside as U } from "../external/@vueuse/core/index";
1
+ import { ref as a, getCurrentInstance as X, openBlock as p, createElementBlock as m, createElementVNode as l, createTextVNode as e, toDisplayString as x, unref as o, createCommentVNode as C, Fragment as z, renderList as R, normalizeClass as b, withDirectives as B, vModelText as S, isRef as A } from "vue";
2
+ import { onClickOutside as Y } from "../external/@vueuse/core/index";
3
+ import { useRoute as c } from "vue-router";
4
+ import D from "axios";
3
5
  import "./CatalogueMQA.vue2.mjs";
4
- import Z from "../_virtual/_plugin-vue_export-helper.mjs";
5
- const j = { class: "container mb-3" }, O = { key: 0 }, P = { class: "mqaWrapper" }, G = { class: "mailItems" }, H = ["value", "readonly", "onInput"], J = ["onClick"], K = ["onClick"], X = {
6
+ import h from "../_virtual/_plugin-vue_export-helper.mjs";
7
+ const _ = { class: "container mb-3" }, tt = { key: 0 }, lt = { key: 1 }, et = { key: 0 }, nt = { class: "mqaWrapper" }, ot = { class: "mailItems" }, st = ["value", "readonly", "onInput"], it = ["onClick"], at = ["onClick"], rt = {
6
8
  key: 0,
7
9
  class: "errormsg"
8
- }, Y = { class: "my-3 d-flex" }, h = ["disabled"], _ = {
10
+ }, ut = { class: "my-3 d-flex" }, dt = ["disabled"], vt = {
9
11
  key: 1,
10
12
  class: "errormsg"
11
- }, c = { class: "mqaWrapper" }, tt = { class: "d-flex" }, lt = { class: "mr-3 my-3" }, et = ["onClick"], nt = ["disabled"], st = { class: "my-3" }, it = ["disabled"], ot = { class: "caretWrap" }, at = { class: "mqaWrapper" }, ut = { class: "w-50" }, dt = { class: "actionWrapper" }, rt = {
13
+ }, pt = { class: "mqaWrapper" }, mt = { class: "d-flex" }, ft = { class: "mr-3 my-3" }, yt = ["onClick"], bt = ["disabled"], gt = { class: "my-3" }, Ct = ["disabled"], kt = { class: "caretWrap" }, wt = { class: "mqaWrapper" }, At = { class: "w-50" }, xt = { class: "actionWrapper" }, Mt = {
12
14
  __name: "CatalogueMQA",
13
- setup(vt) {
14
- let a = r(!1), u = r(!1), v = r({ mail: "", valid: !0 }), I = r(null);
15
- r(!0);
16
- let x = r("Activate"), g = r(!1), C = r(!1), m = r(), N = ["Mo", "Tue", "We", "Th", "Fr", "Sa", "Su"], o = r(1);
17
- const M = r(0), R = /^(2[0-8]|[1-9])$/;
18
- m.value = [{ mail: "mail@mail2.com", readonly: !0, valid: !0 }, { mail: "mail@mail1.com", readonly: !0, valid: !0 }], U(I, (i) => {
19
- m.value.forEach((t) => {
15
+ setup(It) {
16
+ const L = c();
17
+ let r = a(!1), u = a(!1), f = a({ mail: "", valid: !0 }), E = a(null);
18
+ a(!0);
19
+ let k = a("Activate"), w = a(!1), y = a(!1), d = a(), j = ["Mo", "Tue", "We", "Th", "Fr", "Sa", "Su"], i = a(1);
20
+ const M = L.params.id, W = X(), O = W.appContext.app.config.globalProperties.$env.api.notificationBaseUrl, N = W.appContext.app.config.globalProperties.$env.api.apiKey, I = a({}), $ = a(0), P = /^(2[0-8]|[1-9])$/;
21
+ d.value = [{ mail: "mail@mail2.com", readonly: !0, valid: !0 }, { mail: "mail@mail1.com", readonly: !0, valid: !0 }];
22
+ const V = async () => {
23
+ const s = {
24
+ method: "get",
25
+ url: `${O}/catalogue/${M}/setting`,
26
+ headers: {
27
+ Authorization: N,
28
+ Accept: "application/json"
29
+ },
30
+ withCredentials: !0
31
+ };
32
+ try {
33
+ const t = await D.request(s);
34
+ I.value = t.data, I.value.activeStatus === !0 && (y.value = !0, k.value = "Deactivate"), I.value.activeStatus === !1 && (y.value = !1, k.value = "Activate"), console.log("Response:", t);
35
+ } catch (t) {
36
+ console.log("Full error:", t);
37
+ }
38
+ }, F = async () => {
39
+ const s = {
40
+ method: "post",
41
+ url: `https://piveau-metrics-notifications-piveau.apps.osc.fokus.fraunhofer.de/catalogue/${M}/setting`,
42
+ headers: {
43
+ Authorization: N,
44
+ Accept: "application/json",
45
+ "Content-Type": "application/json",
46
+ "Access-Control-Allow-Origin": "*",
47
+ "Access-Control-Allow-Methods": "GET, POST, OPTIONS",
48
+ "Access-Control-Allow-Headers": "Authorization"
49
+ },
50
+ withCredentials: !0,
51
+ data: JSON.stringify({
52
+ receiverEmailList: d.value,
53
+ frequency: {
54
+ unit: "week",
55
+ value: 9
56
+ },
57
+ activeStatus: !0
58
+ })
59
+ };
60
+ try {
61
+ const t = await D.request(s);
62
+ return console.log("Settings updated:", t.data), t.data;
63
+ } catch (t) {
64
+ throw console.log("Error updating settings:", t), t;
65
+ }
66
+ };
67
+ V(), Y(E, (s) => {
68
+ d.value.forEach((t) => {
20
69
  t.readonly = !0;
21
70
  });
22
71
  });
23
- const q = () => {
24
- const i = document.getElementsByClassName("dayButtons");
25
- for (let t = 0; t < i.length; t++)
26
- i[t].classList.remove("activeItem");
27
- }, E = (i) => {
28
- i === "up" && o.value < 28 ? (o.value > 8 && (g.value = !0), o.value++) : o.value > 1 && (o.value < 11 && (g.value = !1), o.value--);
29
- }, z = (i, t) => {
72
+ const Q = () => {
73
+ const s = document.getElementsByClassName("dayButtons");
74
+ for (let t = 0; t < s.length; t++)
75
+ s[t].classList.remove("activeItem");
76
+ }, T = (s) => {
77
+ s === "up" && i.value < 28 ? (i.value > 8 && (w.value = !0), i.value++) : i.value > 1 && (i.value < 11 && (w.value = !1), i.value--);
78
+ }, U = (s, t) => {
30
79
  t.target.classList.toggle("activeItem");
31
- }, S = () => {
32
- R.test(o.value) || (o.value = "28"), o.value > 8 ? g.value = !0 : g.value = !1;
33
- }, T = () => {
34
- v.value.mail != "" && (m.value.push({ mail: v.value.mail, readonly: !0, valid: !0 }), v.value = { mail: "", valid: !0 });
35
- }, V = () => {
36
- C.value ? (C.value = !1, x.value = "Activate") : (C.value = !0, x.value = "Deactivate");
37
- }, Q = (i) => {
38
- m.value.forEach((t) => {
80
+ }, Z = () => {
81
+ P.test(i.value) || (i.value = "28"), i.value > 8 ? w.value = !0 : w.value = !1;
82
+ }, K = () => {
83
+ f.value.mail != "" && (d.value.push({ mail: f.value.mail, readonly: !0, valid: !0 }), f.value = { mail: "", valid: !0 });
84
+ }, G = () => {
85
+ y.value ? (y.value = !1, k.value = "Activate") : (y.value = !0, k.value = "Deactivate");
86
+ }, H = (s) => {
87
+ d.value.forEach((t) => {
39
88
  t.readonly = !0;
40
- }), i.readonly = !i.readonly;
41
- }, $ = (i, t) => {
42
- const n = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, d = i.target.value;
43
- n.test(d) || d === "" ? (m.value.forEach((b) => {
44
- b.mail === t && (b.mail = d, b.valid = !0);
45
- }), t === void 0 && (v.value.valid = !0)) : (m.value.forEach((b) => {
46
- b.mail === t && (b.valid = !1);
47
- }), t === void 0 && (v.value.valid = !1));
48
- }, F = (i) => {
89
+ }), s.readonly = !s.readonly;
90
+ }, q = (s, t) => {
91
+ const n = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/, v = s.target.value;
92
+ n.test(v) || v === "" ? (d.value.forEach((g) => {
93
+ g.mail === t && (g.mail = v, g.valid = !0);
94
+ }), t === void 0 && (f.value.valid = !0)) : (d.value.forEach((g) => {
95
+ g.mail === t && (g.valid = !1);
96
+ }), t === void 0 && (f.value.valid = !1));
97
+ }, J = (s) => {
49
98
  let t = -1;
50
- m.value.forEach((n, d) => {
51
- n.mail === i && (t = d);
52
- }), t !== -1 && m.value.splice(t, 1);
99
+ d.value.forEach((n, v) => {
100
+ n.mail === s && (t = v);
101
+ }), t !== -1 && d.value.splice(t, 1);
53
102
  };
54
- return (i, t) => (p(), f("div", j, [
103
+ return (s, t) => (p(), m("div", _, [
55
104
  l("div", null, [
56
- t[13] || (t[13] = l("div", null, [
57
- l("h1", null, "MQA Report Settings"),
58
- e(),
59
- l("p", null, "Configuration for"),
60
- e(),
105
+ l("div", null, [
106
+ t[18] || (t[18] = l("div", { class: "debug" }, [
107
+ l("strong", null, " API object:"),
108
+ e(),
109
+ l("br"),
110
+ l("br")
111
+ ], -1)),
112
+ t[19] || (t[19] = e()),
113
+ t[20] || (t[20] = l("h1", null, "MQA Report Settings", -1)),
114
+ t[21] || (t[21] = e()),
61
115
  l("p", null, [
62
- e("For this Catalogue the "),
63
- l("b", null, "MQA Rating Checks "),
64
- e("are currently "),
65
- l("b", null, "deactivated"),
66
- e(".")
116
+ t[12] || (t[12] = e(`Configuration for
117
+
118
+
119
+ `)),
120
+ l("strong", null, x(o(M)), 1)
121
+ ]),
122
+ t[22] || (t[22] = e()),
123
+ l("p", null, [
124
+ t[14] || (t[14] = e("For this Catalogue the ")),
125
+ t[15] || (t[15] = l("b", null, "MQA Rating Checks ", -1)),
126
+ t[16] || (t[16] = e("are currently ")),
127
+ l("b", null, [
128
+ o(y) ? C("", !0) : (p(), m("span", tt, "deactivated")),
129
+ t[13] || (t[13] = e()),
130
+ o(y) ? (p(), m("span", lt, "activated")) : C("", !0)
131
+ ]),
132
+ t[17] || (t[17] = e("."))
67
133
  ])
68
- ], -1)),
69
- t[14] || (t[14] = e()),
134
+ ]),
135
+ t[23] || (t[23] = e()),
70
136
  l("button", {
71
137
  type: "button",
72
138
  class: "btn btn-secondary",
73
- onClick: t[0] || (t[0] = (n) => V())
74
- }, B(s(x)), 1)
139
+ onClick: t[0] || (t[0] = (n) => G())
140
+ }, x(o(k)), 1)
75
141
  ]),
76
- t[53] || (t[53] = e()),
77
- s(C) ? (p(), f("div", O, [
78
- l("div", P, [
79
- t[21] || (t[21] = l("h3", null, "Recipients Mail", -1)),
80
- t[22] || (t[22] = e()),
81
- t[23] || (t[23] = l("span", null, "Add and edit mail addresses for recieving the MQA report", -1)),
82
- t[24] || (t[24] = e()),
83
- s(m).length != 0 ? (p(), f("table", {
142
+ t[62] || (t[62] = e()),
143
+ o(y) ? (p(), m("div", et, [
144
+ l("div", nt, [
145
+ t[30] || (t[30] = l("h3", null, "Recipients Mail", -1)),
146
+ t[31] || (t[31] = e()),
147
+ t[32] || (t[32] = l("span", null, "Add and edit mail addresses for recieving the MQA report", -1)),
148
+ t[33] || (t[33] = e()),
149
+ o(d).length != 0 ? (p(), m("table", {
84
150
  key: 0,
85
151
  ref_key: "mailButtonWrap",
86
- ref: I
152
+ ref: E
87
153
  }, [
88
- t[18] || (t[18] = l("tr", null, [
154
+ t[27] || (t[27] = l("tr", null, [
89
155
  l("th", null, "Mail")
90
156
  ], -1)),
91
- t[19] || (t[19] = e()),
92
- (p(!0), f(D, null, L(s(m), (n) => (p(), f("tr", G, [
157
+ t[28] || (t[28] = e()),
158
+ (p(!0), m(z, null, R(o(d), (n) => (p(), m("tr", ot, [
93
159
  l("td", null, [
94
160
  l("input", {
95
161
  type: "text",
96
162
  value: n.mail,
97
163
  readonly: n.readonly,
98
- class: y({ editable: !n.readonly, invalid: !n.valid }),
99
- onInput: (d) => $(d, n.mail)
100
- }, null, 42, H),
101
- t[16] || (t[16] = e()),
164
+ class: b({ editable: !n.readonly, invalid: !n.valid }),
165
+ onInput: (v) => q(v, n.mail)
166
+ }, null, 42, st),
167
+ t[25] || (t[25] = e()),
102
168
  l("div", null, [
103
169
  l("button", {
104
170
  type: "button",
105
171
  class: "btn btn-secondary",
106
- onClick: (d) => Q(n)
107
- }, "Edit", 8, J),
108
- t[15] || (t[15] = e()),
172
+ onClick: (v) => H(n)
173
+ }, "Edit", 8, it),
174
+ t[24] || (t[24] = e()),
109
175
  l("button", {
110
176
  type: "button",
111
177
  class: "btn btn-secondary",
112
- onClick: (d) => F(n.mail)
113
- }, "Delete", 8, K)
178
+ onClick: (v) => J(n.mail)
179
+ }, "Delete", 8, at)
114
180
  ])
115
181
  ]),
116
- t[17] || (t[17] = e()),
117
- n.valid ? w("", !0) : (p(), f("span", X, "*Invalid email format"))
182
+ t[26] || (t[26] = e()),
183
+ n.valid ? C("", !0) : (p(), m("span", rt, "*Invalid email format"))
118
184
  ]))), 256))
119
- ], 512)) : w("", !0),
120
- t[25] || (t[25] = e()),
121
- l("div", Y, [
122
- W(l("input", {
185
+ ], 512)) : C("", !0),
186
+ t[34] || (t[34] = e()),
187
+ l("div", ut, [
188
+ B(l("input", {
123
189
  type: "text",
124
- "onUpdate:modelValue": t[1] || (t[1] = (n) => s(v).mail = n),
125
- onInput: t[2] || (t[2] = (n) => $(n)),
126
- class: y({ invalidNewMail: !s(v).valid }),
190
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => o(f).mail = n),
191
+ onInput: t[2] || (t[2] = (n) => q(n)),
192
+ class: b({ invalidNewMail: !o(f).valid }),
127
193
  style: { padding: "0.25rem" }
128
194
  }, null, 34), [
129
- [A, s(v).mail]
195
+ [S, o(f).mail]
130
196
  ]),
131
- t[20] || (t[20] = e()),
197
+ t[29] || (t[29] = e()),
132
198
  l("button", {
133
199
  type: "button",
134
200
  class: "btn btn-secondary mx-3",
135
- disabled: !s(v).valid,
136
- onClick: t[3] || (t[3] = (n) => T())
201
+ disabled: !o(f).valid,
202
+ onClick: t[3] || (t[3] = (n) => K())
137
203
  }, `+
138
- add Mail`, 8, h)
204
+ add Mail`, 8, dt)
139
205
  ]),
140
- t[26] || (t[26] = e()),
141
- s(v).valid ? w("", !0) : (p(), f("span", _, "*Invalid email format"))
206
+ t[35] || (t[35] = e()),
207
+ o(f).valid ? C("", !0) : (p(), m("span", vt, "*Invalid email format"))
142
208
  ]),
143
- t[50] || (t[50] = e()),
144
- l("div", c, [
145
- t[36] || (t[36] = l("h3", null, "Frequency of Rating Checks", -1)),
146
- t[37] || (t[37] = e()),
147
- t[38] || (t[38] = l("span", null, `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
209
+ t[59] || (t[59] = e()),
210
+ l("div", pt, [
211
+ t[45] || (t[45] = l("h3", null, "Frequency of Rating Checks", -1)),
212
+ t[46] || (t[46] = e()),
213
+ t[47] || (t[47] = l("span", null, `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
148
214
  labore et dolore magna aliquyam erat, sed diam voluptua`, -1)),
149
- t[39] || (t[39] = e()),
150
- l("div", tt, [
151
- l("div", lt, [
215
+ t[48] || (t[48] = e()),
216
+ l("div", mt, [
217
+ l("div", ft, [
152
218
  l("button", {
153
219
  type: "button",
154
- class: y(["btn btn-secondary", { activeChoiceButton: s(u) === !0 }]),
220
+ class: b(["btn btn-secondary", { activeChoiceButton: o(u) === !0 }]),
155
221
  onClick: t[4] || (t[4] = (n) => {
156
- k(u) ? u.value = !s(u) : u = !s(u), k(a) ? a.value = !1 : a = !1;
222
+ A(u) ? u.value = !o(u) : u = !o(u), A(r) ? r.value = !1 : r = !1;
157
223
  })
158
224
  }, "Weekly", 2),
159
- t[27] || (t[27] = e()),
225
+ t[36] || (t[36] = e()),
160
226
  l("div", {
161
- class: y(["weekdays", { blur: !s(u) }])
227
+ class: b(["weekdays", { blur: !o(u) }])
162
228
  }, [
163
- (p(!0), f(D, null, L(s(N), (n) => (p(), f("span", {
164
- onClick: (d) => z(n, d)
229
+ (p(!0), m(z, null, R(o(j), (n) => (p(), m("span", {
230
+ onClick: (v) => U(n, v)
165
231
  }, [
166
232
  l("button", {
167
- disabled: !s(u),
233
+ disabled: !o(u),
168
234
  class: "dayButtons"
169
- }, B(n), 9, nt)
170
- ], 8, et))), 256))
235
+ }, x(n), 9, bt)
236
+ ], 8, yt))), 256))
171
237
  ], 2)
172
238
  ]),
173
- t[35] || (t[35] = e()),
174
- l("div", st, [
239
+ t[44] || (t[44] = e()),
240
+ l("div", gt, [
175
241
  l("button", {
176
242
  type: "button",
177
- class: y([{ activeChoiceButton: s(a) === !0 }, "btn btn-secondary"]),
243
+ class: b([{ activeChoiceButton: o(r) === !0 }, "btn btn-secondary"]),
178
244
  onClick: t[5] || (t[5] = (n) => {
179
- k(a) ? a.value = !s(a) : a = !s(a), k(u) ? u.value = !1 : u = !1, q();
245
+ A(r) ? r.value = !o(r) : r = !o(r), A(u) ? u.value = !1 : u = !1, Q();
180
246
  })
181
247
  }, "Monthly", 2),
182
- t[34] || (t[34] = e()),
248
+ t[43] || (t[43] = e()),
183
249
  l("div", {
184
- class: y(["d-flex daypicker my-3", { blur: !s(a) }])
250
+ class: b(["d-flex daypicker my-3", { blur: !o(r) }])
185
251
  }, [
186
- W(l("input", {
187
- "onUpdate:modelValue": t[6] || (t[6] = (n) => k(o) ? o.value = n : o = n),
188
- onInput: t[7] || (t[7] = (n) => S()),
189
- class: y({ dynamicWidth: s(g) }),
190
- disabled: !s(a)
191
- }, null, 42, it), [
192
- [A, s(o)]
252
+ B(l("input", {
253
+ "onUpdate:modelValue": t[6] || (t[6] = (n) => A(i) ? i.value = n : i = n),
254
+ onInput: t[7] || (t[7] = (n) => Z()),
255
+ class: b({ dynamicWidth: o(w) }),
256
+ disabled: !o(r)
257
+ }, null, 42, Ct), [
258
+ [S, o(i)]
193
259
  ]),
194
- t[31] || (t[31] = e(`.
260
+ t[40] || (t[40] = e(`.
195
261
  `)),
196
- l("div", ot, [
262
+ l("div", kt, [
197
263
  l("button", {
198
- onClick: t[8] || (t[8] = (n) => E("up")),
264
+ onClick: t[8] || (t[8] = (n) => T("up")),
199
265
  class: "caretButtons ml-1"
200
- }, t[28] || (t[28] = [
266
+ }, t[37] || (t[37] = [
201
267
  l("svg", {
202
268
  xmlns: "http://www.w3.org/2000/svg",
203
269
  width: "12",
@@ -209,11 +275,11 @@ const j = { class: "container mb-3" }, O = { key: 0 }, P = { class: "mqaWrapper"
209
275
  l("path", { d: "m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z" })
210
276
  ], -1)
211
277
  ])),
212
- t[30] || (t[30] = e()),
278
+ t[39] || (t[39] = e()),
213
279
  l("button", {
214
- onClick: t[9] || (t[9] = (n) => E()),
280
+ onClick: t[9] || (t[9] = (n) => T()),
215
281
  class: "caretButtons mr-1"
216
- }, t[29] || (t[29] = [
282
+ }, t[38] || (t[38] = [
217
283
  l("svg", {
218
284
  xmlns: "http://www.w3.org/2000/svg",
219
285
  width: "12",
@@ -226,21 +292,21 @@ const j = { class: "container mb-3" }, O = { key: 0 }, P = { class: "mqaWrapper"
226
292
  ], -1)
227
293
  ]))
228
294
  ]),
229
- t[32] || (t[32] = e()),
230
- t[33] || (t[33] = l("span", null, "day of the month", -1))
295
+ t[41] || (t[41] = e()),
296
+ t[42] || (t[42] = l("span", null, "day of the month", -1))
231
297
  ], 2)
232
298
  ])
233
299
  ])
234
300
  ]),
235
- t[51] || (t[51] = e()),
236
- l("div", at, [
237
- t[45] || (t[45] = l("h3", null, "Notification Treshold", -1)),
238
- t[46] || (t[46] = e()),
239
- t[47] || (t[47] = l("span", null, `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
301
+ t[60] || (t[60] = e()),
302
+ l("div", wt, [
303
+ t[54] || (t[54] = l("h3", null, "Notification Treshold", -1)),
304
+ t[55] || (t[55] = e()),
305
+ t[56] || (t[56] = l("span", null, `Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
240
306
  labore et dolore magna aliquyam erat, sed diam voluptua`, -1)),
241
- t[48] || (t[48] = e()),
242
- l("div", ut, [
243
- t[42] || (t[42] = l("div", { class: "d-flex justify-content-between" }, [
307
+ t[57] || (t[57] = e()),
308
+ l("div", At, [
309
+ t[51] || (t[51] = l("div", { class: "d-flex justify-content-between" }, [
244
310
  l("span", null, [
245
311
  l("b", null, "0")
246
312
  ]),
@@ -249,44 +315,42 @@ const j = { class: "container mb-3" }, O = { key: 0 }, P = { class: "mqaWrapper"
249
315
  l("b", null, "400")
250
316
  ])
251
317
  ], -1)),
252
- t[43] || (t[43] = e()),
253
- W(l("input", {
318
+ t[52] || (t[52] = e()),
319
+ B(l("input", {
254
320
  type: "range",
255
- "onUpdate:modelValue": t[10] || (t[10] = (n) => M.value = n),
321
+ "onUpdate:modelValue": t[10] || (t[10] = (n) => $.value = n),
256
322
  min: "0",
257
323
  max: "400"
258
324
  }, null, 512), [
259
- [A, M.value]
325
+ [S, $.value]
260
326
  ]),
261
- t[44] || (t[44] = e()),
327
+ t[53] || (t[53] = e()),
262
328
  l("p", null, [
263
- t[40] || (t[40] = e("Lower than ")),
264
- l("b", null, B(M.value), 1),
265
- t[41] || (t[41] = e(" Points"))
329
+ t[49] || (t[49] = e("Lower than ")),
330
+ l("b", null, x($.value), 1),
331
+ t[50] || (t[50] = e(" Points"))
266
332
  ])
267
333
  ])
268
334
  ]),
269
- t[52] || (t[52] = e()),
270
- l("div", dt, [
335
+ t[61] || (t[61] = e()),
336
+ l("div", xt, [
271
337
  l("button", {
272
338
  type: "button",
273
339
  class: "btn btn-secondary",
274
- onClick: t[11] || (t[11] = () => {
275
- })
340
+ onClick: F
276
341
  }, "Save"),
277
- t[49] || (t[49] = e()),
342
+ t[58] || (t[58] = e()),
278
343
  l("button", {
279
344
  type: "button",
280
345
  class: "btn btn-secondary",
281
- onClick: t[12] || (t[12] = () => {
282
- })
346
+ onClick: t[11] || (t[11] = (n) => s.back())
283
347
  }, "Cancel")
284
348
  ])
285
- ])) : w("", !0)
349
+ ])) : C("", !0)
286
350
  ]));
287
351
  }
288
- }, bt = /* @__PURE__ */ Z(rt, [["__scopeId", "data-v-f00ed272"]]);
352
+ }, Tt = /* @__PURE__ */ h(Mt, [["__scopeId", "data-v-dd84825d"]]);
289
353
  export {
290
- bt as default
354
+ Tt as default
291
355
  };
292
356
  //# sourceMappingURL=CatalogueMQA.vue.mjs.map