@opengis/bi 1.2.31 → 1.2.32

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 (75) hide show
  1. package/README.md +92 -92
  2. package/dist/bi.js +1 -1
  3. package/dist/bi.umd.cjs +88 -86
  4. package/dist/{import-file-BPICIF0w.js → import-file-D-ISqB7l.js} +1772 -1593
  5. package/dist/style.css +1 -1
  6. package/dist/{vs-funnel-bar-C4T5wkBI.js → vs-funnel-bar-aoZzvriV.js} +3 -3
  7. package/dist/{vs-list-DpQecJFZ.js → vs-list-CBkyJSBj.js} +53 -32
  8. package/dist/{vs-map-Dv0Zxj3b.js → vs-map-C3C11qmT.js} +102 -91
  9. package/dist/{vs-map-cluster-BZoSRi6v.js → vs-map-cluster-BsPmHIMx.js} +91 -81
  10. package/dist/{vs-number-CRdeu_TC.js → vs-number-d58ftpH5.js} +3 -3
  11. package/dist/{vs-table-BMs9Rxrh.js → vs-table-BHa5Velm.js} +6 -6
  12. package/dist/{vs-text-B46_k-vY.js → vs-text-Bq87gMTx.js} +4 -4
  13. package/package.json +77 -75
  14. package/plugin.js +21 -22
  15. package/server/helpers/mdToHTML.js +17 -17
  16. package/server/migrations/bi.dataset.sql +46 -46
  17. package/server/migrations/bi.sql +115 -112
  18. package/server/plugins/docs.js +48 -48
  19. package/server/plugins/hook.js +89 -89
  20. package/server/plugins/vite.js +81 -81
  21. package/server/routes/dashboard/controllers/dashboard.import.js +103 -103
  22. package/server/routes/dashboard/controllers/dashboard.js +158 -157
  23. package/server/routes/dashboard/controllers/dashboard.list.js +60 -60
  24. package/server/routes/dashboard/controllers/utils/yaml.js +11 -11
  25. package/server/routes/dashboard/index.mjs +26 -26
  26. package/server/routes/data/controllers/data.js +230 -229
  27. package/server/routes/data/controllers/util/chartSQL.js +49 -49
  28. package/server/routes/data/controllers/util/normalizeData.js +65 -65
  29. package/server/routes/data/index.mjs +38 -38
  30. package/server/routes/dataset/controllers/bi.dataset.list.js +29 -29
  31. package/server/routes/dataset/controllers/bi.db.list.js +19 -19
  32. package/server/routes/dataset/controllers/comment.js +55 -55
  33. package/server/routes/dataset/controllers/createDatasetPost.js +134 -134
  34. package/server/routes/dataset/controllers/data.js +149 -149
  35. package/server/routes/dataset/controllers/dbTablePreview.js +58 -58
  36. package/server/routes/dataset/controllers/dbTables.js +34 -34
  37. package/server/routes/dataset/controllers/delete.js +40 -40
  38. package/server/routes/dataset/controllers/deleteDataset.js +52 -52
  39. package/server/routes/dataset/controllers/editDataset.js +90 -90
  40. package/server/routes/dataset/controllers/export.js +214 -214
  41. package/server/routes/dataset/controllers/form.js +99 -99
  42. package/server/routes/dataset/controllers/format.js +46 -46
  43. package/server/routes/dataset/controllers/insert.js +47 -47
  44. package/server/routes/dataset/controllers/table.js +68 -68
  45. package/server/routes/dataset/controllers/update.js +43 -43
  46. package/server/routes/dataset/index.mjs +132 -132
  47. package/server/routes/dataset/utils/convertJSONToCSV.js +17 -17
  48. package/server/routes/dataset/utils/convertJSONToXls.js +47 -47
  49. package/server/routes/dataset/utils/createTableQuery.js +59 -59
  50. package/server/routes/dataset/utils/datasetForms.js +1 -1
  51. package/server/routes/dataset/utils/descriptionList.js +45 -45
  52. package/server/routes/dataset/utils/downloadRemoteFile.js +58 -58
  53. package/server/routes/dataset/utils/executeQuery.js +46 -46
  54. package/server/routes/dataset/utils/getLayersData.js +106 -106
  55. package/server/routes/dataset/utils/getTableData.js +46 -46
  56. package/server/routes/dataset/utils/insertDataQuery.js +12 -12
  57. package/server/routes/dataset/utils/metaFormat.js +24 -24
  58. package/server/routes/edit/controllers/dashboard.add.js +36 -36
  59. package/server/routes/edit/controllers/dashboard.delete.js +39 -39
  60. package/server/routes/edit/controllers/dashboard.edit.js +61 -61
  61. package/server/routes/edit/controllers/widget.add.js +78 -78
  62. package/server/routes/edit/controllers/widget.del.js +58 -58
  63. package/server/routes/edit/controllers/widget.edit.js +115 -115
  64. package/server/routes/edit/index.mjs +33 -33
  65. package/server/routes/map/controllers/cluster.js +125 -125
  66. package/server/routes/map/controllers/clusterVtile.js +166 -166
  67. package/server/routes/map/controllers/geojson.js +127 -127
  68. package/server/routes/map/controllers/heatmap.js +118 -118
  69. package/server/routes/map/controllers/map.js +69 -69
  70. package/server/routes/map/controllers/utils/downloadClusterData.js +44 -44
  71. package/server/routes/map/controllers/vtile.js +183 -183
  72. package/server/routes/map/index.mjs +32 -32
  73. package/server/templates/page/login.html +58 -58
  74. package/server/utils/getWidget.js +118 -117
  75. package/utils.js +12 -12
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}body{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-weight:400}h1{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-weight:700}em{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-style:italic}.custom-scrollbar{overflow-y:auto;overflow-x:clip}.custom-scrollbar::-webkit-scrollbar{width:6px;margin-right:0}.custom-scrollbar::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.custom-scrollbar::-webkit-scrollbar-track{background-color:#f1f1f1}.vs-modal-content[data-v-5722a50f]{scrollbar-width:thin}.vs-modal-enter-active[data-v-5722a50f],.vs-modal-leave-active[data-v-5722a50f]{transition:opacity .2s ease,transform .2s ease}.vs-modal-enter-from[data-v-5722a50f],.vs-modal-leave-to[data-v-5722a50f]{opacity:0;transform:scale(.95)}.custom-scrollbar[data-v-330ef797]{overflow-y:auto;overflow-x:clip}.custom-scrollbar[data-v-330ef797]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-330ef797]::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.custom-scrollbar[data-v-330ef797]::-webkit-scrollbar-track{background-color:#f1f1f1}@keyframes fade-in-716ced89{0%{opacity:0}to{opacity:1}}.animate-fade-in[data-v-716ced89]{animation:fade-in-716ced89 .3s ease-out}.custom-x-scrollbar{overflow-x:auto;overflow-y:clip}.custom-x-scrollbar::-webkit-scrollbar{height:6px}.custom-x-scrollbar::-webkit-scrollbar-thumb{background-color:#e0e0e0}.custom-x-scrollbar::-webkit-scrollbar-track{background-color:#f1f1f1}.vs-chart{width:100%;height:100%}.vs-chart-tooltip{border-radius:7px;max-height:100px;max-width:340px;min-width:140px;background-color:#fff;box-shadow:0 0 8px #0000002e}.vs-chart-tooltip__head{padding:5px;border-bottom:1px solid #eee;margin-bottom:5px}.vs-chart-tooltip__head-title{font-size:14px;font-weight:700;display:flex;align-items:center}.vs-chart-tooltip__head-value{margin-right:5px}.vs-chart-tooltip__head-series{font-size:14px;display:flex;align-items:center}.vs-chart-tooltip__color{width:12px;height:12px;display:block;border-radius:50%;margin-right:5px}.vs-chart-tooltip__body{padding:5px;font-size:14px;display:flex;align-items:start;flex-direction:column}.vs-chart-tooltip__body .vs-chart-tooltip__color{border-radius:3px}.vs-chart-tooltip__item{width:100%;display:flex;align-items:center;justify-content:space-between}.vs-chart-tooltip__text{margin-right:auto}.vs-chart-tooltip__body svg{margin-right:8px}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-widget h1{font-size:18px}.text-widget h2{font-size:14px}.map__settings{display:flex;padding:3px 1px;background:#fff;position:absolute;right:0;bottom:15px;height:30px;align-items:center;font-weight:100;text-align:center}.map__settings-item{display:flex;white-space:nowrap;padding:0 2px;font-size:10px;font-weight:400}.map__settings-attribution{padding:0}.map__settings-menu{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:15px!important;position:absolute;background-color:#fff;bottom:60px;right:90px;width:260px}.map__settings-menu-item{display:flex;align-items:center;color:#2c2c2c;margin-bottom:5px;font-size:12px;justify-content:space-between;height:28px}.map__settings-menu-item-text{height:28px;line-height:28px;background-color:#fff;background-image:none;border-radius:4px;border:1px solid #dcdfe6;-webkit-box-sizing:border-box;box-sizing:border-box;color:#606266;display:inline-block;font-size:12px;height:40px;line-height:40px;outline:0;padding:0 10px}.map__settings-menu-item--checktext{color:#000!important;font-size:12px;display:inline-block;padding-left:10px;line-height:19px;cursor:pointer}.checked{color:#409eff!important}.vs-map-slot-layers{position:absolute;display:none;bottom:10px;left:15px}.vs-map-slot-layers__layer{width:50px;height:50px;background-color:#fff;box-shadow:0 0 7px #434c5626;padding:5px;border-radius:5px;margin-top:10px;margin-right:10px;cursor:pointer;transition:all .3s}.vs-map-slot-layers__layer:hover{background-color:#eee}.vs-map-slot-layers__image{width:100%;border-radius:5px;object-fit:contain}.focused{background-color:#1989fa!important}.maplibregl-popup-content{padding:0}
1
+ @font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}body{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-weight:400}h1{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-weight:700}em{font-family:Inter,Segoe UI,Helvetica Neue,Roboto,sans-serif;font-style:italic}.custom-scrollbar{overflow-y:auto;overflow-x:clip}.custom-scrollbar::-webkit-scrollbar{width:6px;margin-right:0}.custom-scrollbar::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.custom-scrollbar::-webkit-scrollbar-track{background-color:#f1f1f1}.vs-modal-content[data-v-72958ba5]{scrollbar-width:thin}.vs-modal-enter-active[data-v-72958ba5],.vs-modal-leave-active[data-v-72958ba5]{transition:opacity .2s ease,transform .2s ease}.vs-modal-enter-from[data-v-72958ba5],.vs-modal-leave-to[data-v-72958ba5]{opacity:0;transform:scale(.95)}.custom-scrollbar[data-v-5400c793]{overflow-y:auto;overflow-x:clip}.custom-scrollbar[data-v-5400c793]::-webkit-scrollbar{width:6px}.custom-scrollbar[data-v-5400c793]::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.custom-scrollbar[data-v-5400c793]::-webkit-scrollbar-track{background-color:#f1f1f1}@keyframes fade-in-6c4cd6c6{0%{opacity:0}to{opacity:1}}.animate-fade-in[data-v-6c4cd6c6]{animation:fade-in-6c4cd6c6 .3s ease-out}.custom-x-scrollbar{overflow-x:auto;overflow-y:clip}.custom-x-scrollbar::-webkit-scrollbar{height:6px}.custom-x-scrollbar::-webkit-scrollbar-thumb{background-color:#e0e0e0}.custom-x-scrollbar::-webkit-scrollbar-track{background-color:#f1f1f1}.vs-chart{width:100%;height:100%}.vs-chart-tooltip{border-radius:7px;max-height:100px;max-width:340px;min-width:140px;background-color:#fff;box-shadow:0 0 8px #0000002e}.vs-chart-tooltip__head{padding:5px;border-bottom:1px solid #eee;margin-bottom:5px}.vs-chart-tooltip__head-title{font-size:14px;font-weight:700;display:flex;align-items:center}.vs-chart-tooltip__head-value{margin-right:5px}.vs-chart-tooltip__head-series{font-size:14px;display:flex;align-items:center}.vs-chart-tooltip__color{width:12px;height:12px;display:block;border-radius:50%;margin-right:5px}.vs-chart-tooltip__body{padding:5px;font-size:14px;display:flex;align-items:start;flex-direction:column}.vs-chart-tooltip__body .vs-chart-tooltip__color{border-radius:3px}.vs-chart-tooltip__item{width:100%;display:flex;align-items:center;justify-content:space-between}.vs-chart-tooltip__text{margin-right:auto}.vs-chart-tooltip__body svg{margin-right:8px}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-widget h1{font-size:18px}.text-widget h2{font-size:14px}.map__settings{display:flex;padding:3px 1px;background:#fff;position:absolute;right:0;bottom:15px;height:30px;align-items:center;font-weight:100;text-align:center}.map__settings-item{display:flex;white-space:nowrap;padding:0 2px;font-size:10px;font-weight:400}.map__settings-attribution{padding:0}.map__settings-menu{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:15px!important;position:absolute;background-color:#fff;bottom:60px;right:90px;width:260px}.map__settings-menu-item{display:flex;align-items:center;color:#2c2c2c;margin-bottom:5px;font-size:12px;justify-content:space-between;height:28px}.map__settings-menu-item-text{height:28px;line-height:28px;background-color:#fff;background-image:none;border-radius:4px;border:1px solid #dcdfe6;-webkit-box-sizing:border-box;box-sizing:border-box;color:#606266;display:inline-block;font-size:12px;height:40px;line-height:40px;outline:0;padding:0 10px}.map__settings-menu-item--checktext{color:#000!important;font-size:12px;display:inline-block;padding-left:10px;line-height:19px;cursor:pointer}.checked{color:#409eff!important}.vs-map-slot-layers{position:absolute;display:none;bottom:10px;left:15px}.vs-map-slot-layers__layer{width:50px;height:50px;background-color:#fff;box-shadow:0 0 7px #434c5626;padding:5px;border-radius:5px;margin-top:10px;margin-right:10px;cursor:pointer;transition:all .3s}.vs-map-slot-layers__layer:hover{background-color:#eee}.vs-map-slot-layers__image{width:100%;border-radius:5px;object-fit:contain}.focused{background-color:#1989fa!important}.maplibregl-popup-content{padding:0}
@@ -1,5 +1,5 @@
1
- import { _ as l, c as h, a as c, b as d, d as p } from "./import-file-BPICIF0w.js";
2
- import { createElementBlock as u, openBlock as m } from "vue";
1
+ import { _ as l, c as h, a as c, b as d, d as p } from "./import-file-D-ISqB7l.js";
2
+ import { openBlock as u, createElementBlock as m } from "vue";
3
3
  const o = typeof window < "u" ? window.echarts : null, f = {
4
4
  name: "VsFunnelBar",
5
5
  mixins: [h],
@@ -109,7 +109,7 @@ const o = typeof window < "u" ? window.echarts : null, f = {
109
109
  }
110
110
  }, y = ["id"];
111
111
  function D(t, s, r, a, e, i) {
112
- return m(), u("div", {
112
+ return u(), m("div", {
113
113
  ref: "chart",
114
114
  id: e.uniqueID,
115
115
  class: "h-[90%] custom-scrollbar min-h-[200px]"
@@ -1,5 +1,5 @@
1
- import { createBlock as b, openBlock as l, unref as L, mergeProps as v, createElementBlock as d, createElementVNode as c, withDirectives as F, toDisplayString as S, vShow as R, Fragment as P, renderList as V, normalizeClass as D, resolveComponent as A, createVNode as H } from "vue";
2
- import { e as x, X as J, _ as w } from "./import-file-BPICIF0w.js";
1
+ import { openBlock as l, createBlock as b, unref as L, mergeProps as v, createElementBlock as d, createElementVNode as c, withDirectives as F, toDisplayString as S, vShow as R, Fragment as P, renderList as V, normalizeClass as D, resolveComponent as A, createVNode as H } from "vue";
2
+ import { e as x, X as J, _ as w } from "./import-file-D-ISqB7l.js";
3
3
  /**
4
4
  * @license lucide-vue-next v0.577.0 - ISC
5
5
  *
@@ -346,7 +346,13 @@ const Ee = /* @__PURE__ */ w(oe, [["render", le]]);
346
346
  function B(e, t, r) {
347
347
  if (e !== null)
348
348
  for (var i, o, n, s, _, a, m, k = 0, p = 0, $, M = e.type, E = M === "FeatureCollection", G = M === "Feature", j = E ? e.features.length : 1, h = 0; h < j; h++) {
349
- m = E ? e.features[h].geometry : G ? e.geometry : e, $ = m ? m.type === "GeometryCollection" : !1, _ = $ ? m.geometries.length : 1;
349
+ m = E ? (
350
+ // @ts-expect-error: Known type conflict
351
+ e.features[h].geometry
352
+ ) : G ? (
353
+ // @ts-expect-error: Known type conflict
354
+ e.geometry
355
+ ) : e, $ = m ? m.type === "GeometryCollection" : !1, _ = $ ? m.geometries.length : 1;
350
356
  for (var z = 0; z < _; z++) {
351
357
  var u = 0, f = 0;
352
358
  if (s = $ ? m.geometries[z] : m, s !== null) {
@@ -356,26 +362,32 @@ function B(e, t, r) {
356
362
  case null:
357
363
  break;
358
364
  case "Point":
359
- if (t(
360
- a,
361
- p,
362
- h,
363
- u,
364
- f
365
- ) === !1)
365
+ if (
366
+ // @ts-expect-error: Known type conflict
367
+ t(
368
+ a,
369
+ p,
370
+ h,
371
+ u,
372
+ f
373
+ ) === !1
374
+ )
366
375
  return !1;
367
376
  p++, u++;
368
377
  break;
369
378
  case "LineString":
370
379
  case "MultiPoint":
371
380
  for (i = 0; i < a.length; i++) {
372
- if (t(
373
- a[i],
374
- p,
375
- h,
376
- u,
377
- f
378
- ) === !1)
381
+ if (
382
+ // @ts-expect-error: Known type conflict
383
+ t(
384
+ a[i],
385
+ p,
386
+ h,
387
+ u,
388
+ f
389
+ ) === !1
390
+ )
379
391
  return !1;
380
392
  p++, y === "MultiPoint" && u++;
381
393
  }
@@ -385,13 +397,16 @@ function B(e, t, r) {
385
397
  case "MultiLineString":
386
398
  for (i = 0; i < a.length; i++) {
387
399
  for (o = 0; o < a[i].length - k; o++) {
388
- if (t(
389
- a[i][o],
390
- p,
391
- h,
392
- u,
393
- f
394
- ) === !1)
400
+ if (
401
+ // @ts-expect-error: Known type conflict
402
+ t(
403
+ a[i][o],
404
+ p,
405
+ h,
406
+ u,
407
+ f
408
+ ) === !1
409
+ )
395
410
  return !1;
396
411
  p++;
397
412
  }
@@ -403,13 +418,16 @@ function B(e, t, r) {
403
418
  for (i = 0; i < a.length; i++) {
404
419
  for (f = 0, o = 0; o < a[i].length; o++) {
405
420
  for (n = 0; n < a[i][o].length - k; n++) {
406
- if (t(
407
- a[i][o][n],
408
- p,
409
- h,
410
- u,
411
- f
412
- ) === !1)
421
+ if (
422
+ // @ts-expect-error: Known type conflict
423
+ t(
424
+ a[i][o][n],
425
+ p,
426
+ h,
427
+ u,
428
+ f
429
+ ) === !1
430
+ )
413
431
  return !1;
414
432
  p++;
415
433
  }
@@ -420,7 +438,10 @@ function B(e, t, r) {
420
438
  break;
421
439
  case "GeometryCollection":
422
440
  for (i = 0; i < s.geometries.length; i++)
423
- if (B(s.geometries[i], t) === !1)
441
+ if (
442
+ // @ts-expect-error: Known type conflict
443
+ B(s.geometries[i], t) === !1
444
+ )
424
445
  return !1;
425
446
  break;
426
447
  default:
@@ -1,8 +1,8 @@
1
- import { _ as E, a as L, p as $, V as T, b as B, c as H, d as O, l as F, e as N } from "./vs-list-DpQecJFZ.js";
2
- import { _ as V, c as P } from "./import-file-BPICIF0w.js";
3
- import { resolveComponent as u, createElementBlock as c, openBlock as i, Fragment as w, createElementVNode as r, createBlock as C, createCommentVNode as m, createVNode as x, Teleport as R, toDisplayString as g, renderList as S, normalizeStyle as k, normalizeClass as I } from "vue";
4
- const A = {
5
- components: { legendIcon: L, closeIcon: E },
1
+ import { _ as C, a as E, p as L, V as T, b as B, c as H, d as O, l as F, e as D } from "./vs-list-CBkyJSBj.js";
2
+ import { _ as $, c as P } from "./import-file-D-ISqB7l.js";
3
+ import { resolveComponent as x, openBlock as c, createElementBlock as m, Fragment as w, createElementVNode as r, createVNode as b, createBlock as V, Teleport as N, toDisplayString as y, createCommentVNode as f, renderList as S, normalizeStyle as k, normalizeClass as I } from "vue";
4
+ const W = {
5
+ components: { legendIcon: E, closeIcon: C },
6
6
  props: {
7
7
  mapId: { type: String },
8
8
  colors: { type: Array },
@@ -17,7 +17,7 @@ const A = {
17
17
  data() {
18
18
  return {
19
19
  isOpenLegend: !1,
20
- palette: $
20
+ palette: L
21
21
  // palette: ['#69D2E7', 'yellow', '#FE4365'],
22
22
  };
23
23
  },
@@ -26,7 +26,7 @@ const A = {
26
26
  return this.cluster ? "rounded-sm" : "rounded-full";
27
27
  },
28
28
  sortedSizes() {
29
- return [...this.sizes].sort((e, o) => e - o);
29
+ return [...this.sizes].sort((e, a) => e - a);
30
30
  },
31
31
  maxWidht() {
32
32
  var t;
@@ -45,92 +45,92 @@ const A = {
45
45
  return (e + 1) / this.sortedSizes.length;
46
46
  }
47
47
  }
48
- }, G = { class: "w-full absolute max-w-[200px] bg-white border rounded-lg bottom-[10px] right-[50px]" }, W = { class: "flex items-center justify-between border-b border-[#0000001A] px-2" }, Z = { class: "w-full flex flex-col gap-[8px] px-2 py-2 max-h-[200px] overflow-auto [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent" }, j = {
48
+ }, R = { class: "w-full absolute max-w-[200px] bg-white border rounded-lg bottom-[10px] right-[50px]" }, A = { class: "flex items-center justify-between border-b border-[#0000001A] px-2" }, G = { class: "w-full flex flex-col gap-[8px] px-2 py-2 max-h-[200px] overflow-auto [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent" }, Z = {
49
49
  key: 0,
50
50
  class: "flex flex-col w-full"
51
- }, q = {
51
+ }, j = {
52
52
  key: 0,
53
53
  class: "text-xs font-semibold leading-[1.2] text-[#1F2937] mb-[8px]"
54
- }, D = { class: "flex flex-col gap-[6px]" }, J = { class: "text-xs text-[#1F2937] font-normal leading-[1.2]" }, K = {
54
+ }, q = { class: "flex flex-col gap-[6px]" }, J = { class: "text-xs text-[#1F2937] font-normal leading-[1.2]" }, K = {
55
55
  key: 1,
56
56
  class: "flex flex-col w-full"
57
57
  }, Q = {
58
58
  key: 0,
59
59
  class: "text-xs font-semibold leading-[1.2] text-[#1F2937] mb-[8px]"
60
60
  }, U = { class: "flex flex-col gap-[6px]" }, X = { class: "flex flex-row items-center justify-start" }, Y = { class: "text-xs text-[#1F2937] font-normal leading-[1.2]" };
61
- function ee(e, o, t, s, a, l) {
62
- var y, b;
63
- const n = u("legendIcon"), h = u("closeIcon");
64
- return i(), c(w, null, [
61
+ function ee(e, a, t, s, o, i) {
62
+ var d, g;
63
+ const p = x("legendIcon"), u = x("closeIcon");
64
+ return c(), m(w, null, [
65
65
  r("div", {
66
66
  class: "flex justify-center items-center rounded-md w-[32px] h-[32px] cursor-pointer bg-white p-1 border-[2px]",
67
- onClick: o[0] || (o[0] = (d) => a.isOpenLegend = !a.isOpenLegend)
67
+ onClick: a[0] || (a[0] = (l) => o.isOpenLegend = !o.isOpenLegend)
68
68
  }, [
69
- x(n)
69
+ b(p)
70
70
  ]),
71
- a.isOpenLegend ? (i(), C(R, {
71
+ o.isOpenLegend ? (c(), V(N, {
72
72
  key: 0,
73
73
  to: `#wrapper-${t.mapId}`
74
74
  }, [
75
- r("div", G, [
76
- r("div", W, [
77
- o[2] || (o[2] = r("h3", { class: "text-[16px] font-normal text-black" }, "Легенда", -1)),
75
+ r("div", R, [
76
+ r("div", A, [
77
+ a[2] || (a[2] = r("h3", { class: "text-[16px] font-normal text-black" }, "Легенда", -1)),
78
78
  r("button", {
79
79
  type: "button",
80
80
  class: "inline-flex items-center text-sm font-medium text-gray-500 rounded-lg gap-x-2 focus:outline-none disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 dark:hover:text-blue-500 dark:focus:text-blue-500",
81
- onClick: o[1] || (o[1] = (d) => a.isOpenLegend = !1)
81
+ onClick: a[1] || (a[1] = (l) => o.isOpenLegend = !1)
82
82
  }, [
83
- x(h, { class: "w-[20px]" })
83
+ b(u, { class: "w-[20px]" })
84
84
  ])
85
85
  ]),
86
- r("div", Z, [
87
- (y = t.colors) != null && y.length ? (i(), c("div", j, [
88
- t.colorTitle ? (i(), c("h4", q, g(t.colorTitle), 1)) : m("", !0),
89
- r("div", D, [
90
- (i(!0), c(w, null, S(t.colors, (d, p) => (i(), c("div", {
91
- key: p,
86
+ r("div", G, [
87
+ (d = t.colors) != null && d.length ? (c(), m("div", Z, [
88
+ t.colorTitle ? (c(), m("h4", j, y(t.colorTitle), 1)) : f("", !0),
89
+ r("div", q, [
90
+ (c(!0), m(w, null, S(t.colors, (l, n) => (c(), m("div", {
91
+ key: n,
92
92
  class: "flex items-center gap-[10px]"
93
93
  }, [
94
- d.color ? (i(), c("div", {
94
+ l.color ? (c(), m("div", {
95
95
  key: 0,
96
96
  class: "w-[12px] h-[12px] rounded-full",
97
97
  style: k({
98
- backgroundColor: d.color
98
+ backgroundColor: l.color
99
99
  })
100
- }, null, 4)) : m("", !0),
101
- r("p", J, g(d.text || d.val), 1)
100
+ }, null, 4)) : f("", !0),
101
+ r("p", J, y(l.text || l.val), 1)
102
102
  ]))), 128))
103
103
  ])
104
- ])) : m("", !0),
105
- (b = t.sizes) != null && b.length ? (i(), c("div", K, [
106
- e.sizeTitle ? (i(), c("h4", Q, g(e.sizeTitle), 1)) : m("", !0),
104
+ ])) : f("", !0),
105
+ (g = t.sizes) != null && g.length ? (c(), m("div", K, [
106
+ e.sizeTitle ? (c(), m("h4", Q, y(e.sizeTitle), 1)) : f("", !0),
107
107
  r("div", U, [
108
- l.sortedSizes.length ? (i(!0), c(w, { key: 0 }, S(l.sortedSizes, (d, p) => {
109
- var f, v, _, z, M;
110
- return i(), c("div", null, [
108
+ i.sortedSizes.length ? (c(!0), m(w, { key: 0 }, S(i.sortedSizes, (l, n) => {
109
+ var h, v, _, z, M;
110
+ return c(), m("div", null, [
111
111
  r("div", X, [
112
112
  r("div", {
113
- class: I([l.maxWidht ? `w-[${l.maxWidht}]` : "", "mr-[10px]"])
113
+ class: I([i.maxWidht ? `w-[${i.maxWidht}]` : "", "mr-[10px]"])
114
114
  }, [
115
115
  r("div", {
116
- class: I(l.sizeClass(p)),
116
+ class: I(i.sizeClass(n)),
117
117
  style: k({
118
- backgroundColor: ((v = (f = a.palette) == null ? void 0 : f[t.color]) == null ? void 0 : v[p]) || t.color
118
+ backgroundColor: ((v = (h = o.palette) == null ? void 0 : h[t.color]) == null ? void 0 : v[n]) || t.color
119
119
  })
120
120
  }, null, 6)
121
121
  ], 2),
122
- r("p", Y, g(p === ((_ = l.sortedSizes) == null ? void 0 : _.length) - 1 ? ">" + d : p == ((z = l.sortedSizes) == null ? void 0 : z.length) - 1 ? ">" + l.sortedSizes[((M = l.sortedSizes) == null ? void 0 : M.length) - 1] : d + "-" + l.sortedSizes[p + 1]), 1)
122
+ r("p", Y, y(n === ((_ = i.sortedSizes) == null ? void 0 : _.length) - 1 ? ">" + l : n == ((z = i.sortedSizes) == null ? void 0 : z.length) - 1 ? ">" + i.sortedSizes[((M = i.sortedSizes) == null ? void 0 : M.length) - 1] : l + "-" + i.sortedSizes[n + 1]), 1)
123
123
  ])
124
124
  ]);
125
- }), 256)) : m("", !0)
125
+ }), 256)) : f("", !0)
126
126
  ])
127
- ])) : m("", !0)
127
+ ])) : f("", !0)
128
128
  ])
129
129
  ])
130
- ], 8, ["to"])) : m("", !0)
130
+ ], 8, ["to"])) : f("", !0)
131
131
  ], 64);
132
132
  }
133
- const te = /* @__PURE__ */ V(A, [["render", ee]]), se = {
133
+ const te = /* @__PURE__ */ $(W, [["render", ee]]), se = {
134
134
  components: {
135
135
  VsMapSetting: O,
136
136
  VsMapSlotLayers: H,
@@ -156,7 +156,7 @@ const te = /* @__PURE__ */ V(A, [["render", ee]]), se = {
156
156
  var t, s;
157
157
  const e = await F();
158
158
  if (!e) return;
159
- const o = {
159
+ const a = {
160
160
  version: 8,
161
161
  glyphs: "https://cdn.softpro.ua/data/fonts/{fontstack}/{range}.pbf",
162
162
  sources: {},
@@ -164,7 +164,7 @@ const te = /* @__PURE__ */ V(A, [["render", ee]]), se = {
164
164
  };
165
165
  this.map = await new e.Map({
166
166
  container: this.mapId,
167
- style: o,
167
+ style: a,
168
168
  center: [31, 48.5],
169
169
  zoom: ((s = (t = this.data) == null ? void 0 : t.style) == null ? void 0 : s.zoom) || 5,
170
170
  minZoom: 3,
@@ -176,21 +176,21 @@ const te = /* @__PURE__ */ V(A, [["render", ee]]), se = {
176
176
  })
177
177
  ), this.map.on("load", () => {
178
178
  this.loadHandler();
179
- }), this.map.on("mousemove", (a) => {
180
- this.moveMouseHadler(a);
179
+ }), this.map.on("mousemove", (o) => {
180
+ this.moveMouseHadler(o);
181
181
  }), this.map.on("mouseout", () => {
182
- var a;
183
- this.showLegend = !1, this.showSetting = !1, this.coordinatesByMouse = 0, (a = this.popup) == null || a.remove();
182
+ var o;
183
+ this.showLegend = !1, this.showSetting = !1, this.coordinatesByMouse = 0, (o = this.popup) == null || o.remove();
184
184
  });
185
185
  },
186
186
  getPopoverTitle(e) {
187
- var o, t, s, a, l;
188
- return (t = (o = this.data) == null ? void 0 : o.colors) != null && t.find((n) => n.val === e) ? (l = (a = (s = this.data) == null ? void 0 : s.colors) == null ? void 0 : a.find((n) => n.val === e)) == null ? void 0 : l.text : e;
187
+ var a, t, s, o, i;
188
+ return (t = (a = this.data) == null ? void 0 : a.colors) != null && t.find((p) => p.val === e) ? (i = (o = (s = this.data) == null ? void 0 : s.colors) == null ? void 0 : o.find((p) => p.val === e)) == null ? void 0 : i.text : e;
189
189
  },
190
190
  moveMouseHadler(e) {
191
- var o;
191
+ var a;
192
192
  try {
193
- const t = this.map.queryRenderedFeatures(e.point), s = ((o = t[0]) == null ? void 0 : o.properties) || {};
193
+ const t = this.map.queryRenderedFeatures(e.point), s = ((a = t[0]) == null ? void 0 : a.properties) || {};
194
194
  if (!t.length) {
195
195
  this.map.getCanvas().style.cursor = "", this.popupElement && this.popupElement.remove();
196
196
  return;
@@ -205,60 +205,71 @@ const te = /* @__PURE__ */ V(A, [["render", ee]]), se = {
205
205
  </span>
206
206
  <span>${(s == null ? void 0 : s.metric) || 0}</span>
207
207
  </div>`;
208
- const a = this.map.project(e.lngLat);
209
- this.popupElement.style.left = `${a.x}px`, this.popupElement.style.top = `${a.y - 60}px`, this.map.getContainer().appendChild(this.popupElement);
208
+ const o = this.map.project(e.lngLat);
209
+ this.popupElement.style.left = `${o.x}px`, this.popupElement.style.top = `${o.y - 60}px`, this.map.getContainer().appendChild(this.popupElement);
210
210
  } catch (t) {
211
211
  console.error(t);
212
212
  }
213
213
  }
214
214
  }
215
215
  }, oe = {
216
- mixins: [P, N, se],
216
+ mixins: [P, D, se],
217
217
  name: "VsMap",
218
218
  async mounted() {
219
219
  await this.getMapData(), await this.createMap();
220
220
  },
221
221
  methods: {
222
222
  async getMapData() {
223
- const o = await (await fetch(
224
- `/api/bi-map?widget=${this.widget}&dashboard=${this.dashboard}`
223
+ var i, p, u;
224
+ if (this.prefetchedData) {
225
+ this.data = this.prefetchedData, this.$emit("update:widgetData", this.prefetchedData), setTimeout(() => {
226
+ var d;
227
+ return (d = this.map) == null ? void 0 : d.resize();
228
+ });
229
+ return;
230
+ }
231
+ const e = ((i = this.resolveWidgetId) == null ? void 0 : i.call(this)) || this.widget, a = ((p = this.resolveDashboardId) == null ? void 0 : p.call(this)) || this.dashboard, t = ((u = this.resolvePrefix) == null ? void 0 : u.call(this)) || "/api", o = await (await fetch(
232
+ `${t}/bi-map?widget=${e}&dashboard=${a}`
225
233
  )).json();
226
234
  this.data = o, this.$emit("update:widgetData", o), setTimeout(() => {
227
- var t;
228
- return (t = this.map) == null ? void 0 : t.resize();
235
+ var d;
236
+ return (d = this.map) == null ? void 0 : d.resize();
229
237
  });
230
238
  },
231
239
  async loadHandler() {
232
- const e = ["#69D2E7", "yellow", "#FE4365"], o = this.data.colors ? ["match", ["get", "x"]].concat(
240
+ var d, g, l;
241
+ const e = ["#69D2E7", "yellow", "#FE4365"], a = this.data.colors ? ["match", ["get", "x"]].concat(
233
242
  this.data.colors.reduce(
234
- (l, n, h) => l.concat(n.val, (n == null ? void 0 : n.color) || e[h]),
243
+ (n, h, v) => n.concat(h.val, (h == null ? void 0 : h.color) || e[v]),
235
244
  []
236
245
  )
237
246
  ).concat(["gray"]) : "blue", t = [5, 7, 9, 11, 13], s = this.data.sizes ? ["case"] : 5;
238
- this.data.sizes && (this.data.sizes.reverse().forEach((l, n) => {
239
- s.push([">", ["get", "metric"], l]), s.push(t[n]);
247
+ this.data.sizes && (this.data.sizes.reverse().forEach((n, h) => {
248
+ s.push([">", ["get", "metric"], n]), s.push(t[h]);
240
249
  }), s.push(5));
241
- const a = {
250
+ const o = {
242
251
  type: "circle",
243
- color: o,
252
+ color: a,
244
253
  width: 2,
245
254
  radius: s,
246
255
  stroke: "#eee"
247
256
  };
248
- Object.assign(a, this.data.style || {}), this.addVtileLayer({
257
+ Object.assign(o, this.data.style || {});
258
+ const i = ((d = this.resolveWidgetId) == null ? void 0 : d.call(this)) || this.widget, p = ((g = this.resolveDashboardId) == null ? void 0 : g.call(this)) || this.dashboard, u = ((l = this.resolvePrefix) == null ? void 0 : l.call(this)) || "/api";
259
+ this.addVtileLayer({
249
260
  id: "bi",
250
- url: `${window.top.location.origin}/api/bi-vtile/{z}/{x}/{y}.vmt?widget=${this.widget}&dashboard=${this.dashboard}&nocache=1`,
251
- style: a
261
+ url: `${window.top.location.origin}${u}/bi-vtile/{z}/{x}/{y}.vmt?widget=${i}&dashboard=${p}&nocache=1`,
262
+ style: o
252
263
  });
253
264
  }
254
265
  }
255
- }, ae = { class: "w-full h-full" }, le = { class: "flex items-start justify-between mb-[6px] w-full" }, re = { class: "text-gray-800 font-[600]" }, ne = ["id"], ie = ["id"], de = { class: "absolute flex flex-col right-[10px] top-[105px] gap-1" };
256
- function ce(e, o, t, s, a, l) {
257
- var d, p, f;
258
- const n = u("VsMapSetting"), h = u("VsMapSlotLayers"), y = u("VsMapLegend"), b = u("VsMapGoHome");
259
- return i(), c("div", ae, [
260
- r("div", le, [
261
- r("h5", re, g(e.title), 1)
266
+ }, ae = { class: "w-full h-full" }, ie = { class: "flex items-start justify-between mb-[6px] w-full" }, re = { class: "text-gray-800 font-[600]" }, le = ["id"], ne = ["id"], de = { class: "absolute flex flex-col right-[10px] top-[105px] gap-1" };
267
+ function ce(e, a, t, s, o, i) {
268
+ var l, n, h;
269
+ const p = x("VsMapSetting"), u = x("VsMapSlotLayers"), d = x("VsMapLegend"), g = x("VsMapGoHome");
270
+ return c(), m("div", ae, [
271
+ r("div", ie, [
272
+ r("h5", re, y(e.title), 1)
262
273
  ]),
263
274
  r("div", {
264
275
  class: "relative w-full h-[calc(100%-40px)]",
@@ -267,30 +278,30 @@ function ce(e, o, t, s, a, l) {
267
278
  r("div", {
268
279
  id: e.mapId,
269
280
  class: "w-full flex items-end relative h-full min-h-[250px]"
270
- }, null, 8, ie),
271
- e.showSetting ? (i(), C(n, {
281
+ }, null, 8, ne),
282
+ e.showSetting ? (c(), V(p, {
272
283
  key: 0,
273
284
  map: e.map,
274
285
  coordinates: e.coordinatesByMouse
275
- }, null, 8, ["map", "coordinates"])) : m("", !0),
276
- x(h, { map: e.map }, null, 8, ["map"]),
286
+ }, null, 8, ["map", "coordinates"])) : f("", !0),
287
+ b(u, { map: e.map }, null, 8, ["map"]),
277
288
  r("div", de, [
278
- x(y, {
289
+ b(d, {
279
290
  mapId: e.mapId,
280
- colors: (d = e.data) == null ? void 0 : d.colors,
281
- sizes: (p = e.data) == null ? void 0 : p.sizes,
291
+ colors: (l = e.data) == null ? void 0 : l.colors,
292
+ sizes: (n = e.data) == null ? void 0 : n.sizes,
282
293
  color: e.color,
283
294
  resizeItem: "true"
284
295
  }, null, 8, ["mapId", "colors", "sizes", "color"]),
285
- x(b, {
296
+ b(g, {
286
297
  map: e.map,
287
- bbox: (f = e.data) == null ? void 0 : f.bounds
298
+ bbox: (h = e.data) == null ? void 0 : h.bounds
288
299
  }, null, 8, ["map", "bbox"])
289
300
  ])
290
- ], 8, ne)
301
+ ], 8, le)
291
302
  ]);
292
303
  }
293
- const he = /* @__PURE__ */ V(oe, [["render", ce]]);
304
+ const ue = /* @__PURE__ */ $(oe, [["render", ce]]);
294
305
  export {
295
- he as default
306
+ ue as default
296
307
  };