@opengis/partsmap 0.0.10 → 0.0.12
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.
- package/dist/PartsMap.js +23 -25
- package/dist/PartsMap.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/PartsMap.js
CHANGED
@@ -20001,7 +20001,12 @@ function T_(y, T, M, D, N, J) {
|
|
20001
20001
|
]);
|
20002
20002
|
}
|
20003
20003
|
const I_ = /* @__PURE__ */ cn(v_, [["render", T_], ["__scopeId", "data-v-6644a27d"]]), P_ = {
|
20004
|
-
props: ["colors"]
|
20004
|
+
props: ["colors"],
|
20005
|
+
methods: {
|
20006
|
+
capitalizeFirstLetter(y) {
|
20007
|
+
return y ? y.charAt(0).toUpperCase() + y.slice(1) : "";
|
20008
|
+
}
|
20009
|
+
}
|
20005
20010
|
}, A_ = { class: "absolute left-[20px] bottom-[74px] bg-white max-w-[250px] p-[10px] rounded-lg" }, C_ = { class: "legend-item" }, k_ = {
|
20006
20011
|
key: 0,
|
20007
20012
|
class: "flex justify-start items-center gap-2"
|
@@ -20014,7 +20019,7 @@ function M_(y, T, M, D, N, J) {
|
|
20014
20019
|
class: "w-[15px] h-[15px] rounded-[50%] min-w-[15px]",
|
20015
20020
|
style: rp({ backgroundColor: S.color })
|
20016
20021
|
}, null, 4),
|
20017
|
-
tt("div", E_, js(S.text), 1)
|
20022
|
+
tt("div", E_, js(J.capitalizeFirstLetter(S.text)), 1)
|
20018
20023
|
])) : Nr("", !0)
|
20019
20024
|
]))), 256))
|
20020
20025
|
]);
|
@@ -20058,24 +20063,16 @@ const z_ = /* @__PURE__ */ cn(P_, [["render", M_]]), D_ = {
|
|
20058
20063
|
var y, T, M, D, N, J, S, c, ye, _e, ve, ae, oe, ht, je, Xe, Be, lt, St, Pe, yt, ft, kt, Pt, er, si, tr, bt;
|
20059
20064
|
if (await this.createMap(), (y = this.row) != null && y.geom) {
|
20060
20065
|
const En = new URLSearchParams(window.location.search);
|
20061
|
-
|
20062
|
-
|
20063
|
-
|
20064
|
-
|
20065
|
-
|
20066
|
-
|
20067
|
-
|
20068
|
-
|
20069
|
-
|
20070
|
-
|
20071
|
-
padding: 30
|
20072
|
-
});
|
20073
|
-
}
|
20074
|
-
} else
|
20075
|
-
(tr = this.map) == null || tr.fitBounds((si = (er = (Pt = (kt = this.row) == null ? void 0 : kt.geom) == null ? void 0 : Pt.coordinates) == null ? void 0 : er[0]) == null ? void 0 : si[0], {
|
20076
|
-
maxZoom: 13,
|
20077
|
-
padding: 30
|
20078
|
-
});
|
20066
|
+
((M = (T = this.row) == null ? void 0 : T.geom) == null ? void 0 : M.coordinates.length) <= 1 && En.has("id") ? typeof ((c = (S = (J = (N = (D = this.row) == null ? void 0 : D.geom) == null ? void 0 : N.coordinates) == null ? void 0 : J[0]) == null ? void 0 : S[0]) == null ? void 0 : c[0]) == "number" ? (ae = this.map) == null || ae.fitBounds((ve = (_e = (ye = this.row) == null ? void 0 : ye.geom) == null ? void 0 : _e.coordinates) == null ? void 0 : ve[0], {
|
20067
|
+
maxZoom: 13,
|
20068
|
+
padding: 30
|
20069
|
+
}) : typeof ((Be = (Xe = (je = (ht = (oe = this.row) == null ? void 0 : oe.geom) == null ? void 0 : ht.coordinates) == null ? void 0 : je[0]) == null ? void 0 : Xe[0]) == null ? void 0 : Be[0]) == "object" && ((ft = this.map) == null || ft.fitBounds((yt = (Pe = (St = (lt = this.row) == null ? void 0 : lt.geom) == null ? void 0 : St.coordinates) == null ? void 0 : Pe[0]) == null ? void 0 : yt[0], {
|
20070
|
+
maxZoom: 13,
|
20071
|
+
padding: 30
|
20072
|
+
})) : (tr = this.map) == null || tr.fitBounds((si = (er = (Pt = (kt = this.row) == null ? void 0 : kt.geom) == null ? void 0 : Pt.coordinates) == null ? void 0 : er[0]) == null ? void 0 : si[0], {
|
20073
|
+
maxZoom: 13,
|
20074
|
+
padding: 30
|
20075
|
+
});
|
20079
20076
|
} else
|
20080
20077
|
(bt = this.map) == null || bt.fitBounds(this.maxBounds);
|
20081
20078
|
},
|
@@ -20177,7 +20174,8 @@ const z_ = /* @__PURE__ */ cn(P_, [["render", M_]]), D_ = {
|
|
20177
20174
|
center: this.center,
|
20178
20175
|
zoom: this.zoom,
|
20179
20176
|
minZoom: 5,
|
20180
|
-
|
20177
|
+
maxBounds: this.maxBounds
|
20178
|
+
// extend: this.maxBounds,
|
20181
20179
|
}), this.$parent.map = this.map, this.map.addControl(
|
20182
20180
|
new Nh.NavigationControl({
|
20183
20181
|
visualizePitch: !0
|
@@ -20471,7 +20469,7 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20471
20469
|
async regionSelectValue(y, T) {
|
20472
20470
|
var N, J;
|
20473
20471
|
if (!this.regionSelectValue) return;
|
20474
|
-
this.polyline = this.regionSelectValue.encoded_geom, this.getData();
|
20472
|
+
y && this.selectedId && this.closeObjCard(), this.polyline = this.regionSelectValue.encoded_geom, this.getData();
|
20475
20473
|
const M = ((N = this.regionSelectValue) == null ? void 0 : N.geom) || qs.toGeoJSON(this.regionSelectValue.encoded_geom), D = this.map.getSource("region-search-id");
|
20476
20474
|
if (this.currentBbox = x_(M), D)
|
20477
20475
|
D.setData({
|
@@ -20523,7 +20521,7 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20523
20521
|
};
|
20524
20522
|
this.filtersParam !== "" && this.filtersParam !== "no-url" && (y.filter = this.filtersParam);
|
20525
20523
|
const { data: T } = await Jt.get(`/api/data/${this.table}`, { params: y });
|
20526
|
-
this.tableData = T.rows, this.total = T.total;
|
20524
|
+
this.tableData = T == null ? void 0 : T.rows, this.total = T.total;
|
20527
20525
|
} catch (y) {
|
20528
20526
|
console.error(y.message);
|
20529
20527
|
}
|
@@ -20586,13 +20584,13 @@ const Iy = /* @__PURE__ */ cn(fy, [["render", Ty], ["__scopeId", "data-v-0a173fd
|
|
20586
20584
|
async handleSearchRegionValue(y) {
|
20587
20585
|
var M;
|
20588
20586
|
const T = this.map.getLayer("region-search-id");
|
20589
|
-
this.searchRegion = y, y === "" && T
|
20587
|
+
this.searchRegion = y, y === "" && T ? ((M = this.map) == null || M.fitBounds(
|
20590
20588
|
[
|
20591
20589
|
[22, 44.4],
|
20592
20590
|
[40, 52.5]
|
20593
20591
|
],
|
20594
20592
|
{}
|
20595
|
-
), this.currentBbox = null, this.polyline = null, this.map.removeLayer("region-search-id"), this.getData());
|
20593
|
+
), this.currentBbox = null, this.polyline = null, this.map.removeLayer("region-search-id"), this.getData()) : y === "" && this.getData();
|
20596
20594
|
},
|
20597
20595
|
handleFilterChange(y) {
|
20598
20596
|
this.currentPage = y.state.page || 1, this.filterUrl = y.url.split("|").filter((T) => !T.includes("page=")).join("|");
|
package/dist/PartsMap.umd.cjs
CHANGED
@@ -582,4 +582,4 @@ uniform ${P} ${k} u_${L};
|
|
582
582
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(T){return T instanceof this?T:new this(T)}static concat(T,...M){const D=new this(T);return M.forEach(N=>D.set(N)),D}static accessor(T){const D=(this[du]=this[du]={accessors:{}}).accessors,N=this.prototype;function J(S){const c=Vo(S);D[c]||(Lf(N,S),D[c]=!0)}return fe.isArray(T)?T.forEach(J):J(T),this}}Gi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),fe.reduceDescriptors(Gi.prototype,({value:y},T)=>{let M=T[0].toUpperCase()+T.slice(1);return{get:()=>y,set(D){this[M]=D}}}),fe.freezeMethods(Gi);function Ic(y,T){const M=this||Oo,D=T||M,N=Gi.from(D.headers);let J=D.data;return fe.forEach(y,function(c){J=c.call(M,J,N.normalize(),T?T.status:void 0)}),N.normalize(),J}function pu(y){return!!(y&&y.__CANCEL__)}function Ns(y,T,M){lt.call(this,y??"canceled",lt.ERR_CANCELED,T,M),this.name="CanceledError"}fe.inherits(Ns,lt,{__CANCEL__:!0});function fu(y,T,M){const D=M.config.validateStatus;!M.status||!D||D(M.status)?y(M):T(new lt("Request failed with status code "+M.status,[lt.ERR_BAD_REQUEST,lt.ERR_BAD_RESPONSE][Math.floor(M.status/100)-4],M.config,M.request,M))}function Rf(y){const T=/^([-+\w]{1,25})(:?\/\/|:)/.exec(y);return T&&T[1]||""}function Bf(y,T){y=y||10;const M=new Array(y),D=new Array(y);let N=0,J=0,S;return T=T!==void 0?T:1e3,function(xe){const ye=Date.now(),be=D[J];S||(S=ye),M[N]=xe,D[N]=ye;let le=J,ae=0;for(;le!==N;)ae+=M[le++],le=le%y;if(N=(N+1)%y,N===J&&(J=(J+1)%y),ye-S<T)return;const ht=be&&ye-be;return ht?Math.round(ae*1e3/ht):void 0}}function Ff(y,T){let M=0,D=1e3/T,N,J;const S=(ye,be=Date.now())=>{M=be,N=null,J&&(clearTimeout(J),J=null),y.apply(null,ye)};return[(...ye)=>{const be=Date.now(),le=be-M;le>=D?S(ye,be):(N=ye,J||(J=setTimeout(()=>{J=null,S(N)},D-le)))},()=>N&&S(N)]}const ll=(y,T,M=3)=>{let D=0;const N=Bf(50,250);return Ff(J=>{const S=J.loaded,c=J.lengthComputable?J.total:void 0,xe=S-D,ye=N(xe),be=S<=c;D=S;const le={loaded:S,total:c,progress:c?S/c:void 0,bytes:xe,rate:ye||void 0,estimated:ye&&c&&be?(c-S)/ye:void 0,event:J,lengthComputable:c!=null,[T?"download":"upload"]:!0};y(le)},M)},mu=(y,T)=>{const M=y!=null;return[D=>T[0]({lengthComputable:M,total:y,loaded:D}),T[1]]},gu=y=>(...T)=>fe.asap(()=>y(...T)),Of=kr.hasStandardBrowserEnv?function(){const T=/(msie|trident)/i.test(navigator.userAgent),M=document.createElement("a");let D;function N(J){let S=J;return T&&(M.setAttribute("href",S),S=M.href),M.setAttribute("href",S),{href:M.href,protocol:M.protocol?M.protocol.replace(/:$/,""):"",host:M.host,search:M.search?M.search.replace(/^\?/,""):"",hash:M.hash?M.hash.replace(/^#/,""):"",hostname:M.hostname,port:M.port,pathname:M.pathname.charAt(0)==="/"?M.pathname:"/"+M.pathname}}return D=N(window.location.href),function(S){const c=fe.isString(S)?N(S):S;return c.protocol===D.protocol&&c.host===D.host}}():function(){return function(){return!0}}(),Vf=kr.hasStandardBrowserEnv?{write(y,T,M,D,N,J){const S=[y+"="+encodeURIComponent(T)];fe.isNumber(M)&&S.push("expires="+new Date(M).toGMTString()),fe.isString(D)&&S.push("path="+D),fe.isString(N)&&S.push("domain="+N),J===!0&&S.push("secure"),document.cookie=S.join("; ")},read(y){const T=document.cookie.match(new RegExp("(^|;\\s*)("+y+")=([^;]*)"));return T?decodeURIComponent(T[3]):null},remove(y){this.write(y,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nf(y){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(y)}function jf(y,T){return T?y.replace(/\/?\/$/,"")+"/"+T.replace(/^\/+/,""):y}function _u(y,T){return y&&!Nf(T)?jf(y,T):T}const yu=y=>y instanceof Gi?{...y}:y;function is(y,T){T=T||{};const M={};function D(ye,be,le){return fe.isPlainObject(ye)&&fe.isPlainObject(be)?fe.merge.call({caseless:le},ye,be):fe.isPlainObject(be)?fe.merge({},be):fe.isArray(be)?be.slice():be}function N(ye,be,le){if(fe.isUndefined(be)){if(!fe.isUndefined(ye))return D(void 0,ye,le)}else return D(ye,be,le)}function J(ye,be){if(!fe.isUndefined(be))return D(void 0,be)}function S(ye,be){if(fe.isUndefined(be)){if(!fe.isUndefined(ye))return D(void 0,ye)}else return D(void 0,be)}function c(ye,be,le){if(le in T)return D(ye,be);if(le in y)return D(void 0,ye)}const xe={url:J,method:J,data:J,baseURL:S,transformRequest:S,transformResponse:S,paramsSerializer:S,timeout:S,timeoutMessage:S,withCredentials:S,withXSRFToken:S,adapter:S,responseType:S,xsrfCookieName:S,xsrfHeaderName:S,onUploadProgress:S,onDownloadProgress:S,decompress:S,maxContentLength:S,maxBodyLength:S,beforeRedirect:S,transport:S,httpAgent:S,httpsAgent:S,cancelToken:S,socketPath:S,responseEncoding:S,validateStatus:c,headers:(ye,be)=>N(yu(ye),yu(be),!0)};return fe.forEach(Object.keys(Object.assign({},y,T)),function(be){const le=xe[be]||N,ae=le(y[be],T[be],be);fe.isUndefined(ae)&&le!==c||(M[be]=ae)}),M}const xu=y=>{const T=is({},y);let{data:M,withXSRFToken:D,xsrfHeaderName:N,xsrfCookieName:J,headers:S,auth:c}=T;T.headers=S=Gi.from(S),T.url=lu(_u(T.baseURL,T.url),y.params,y.paramsSerializer),c&&S.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let xe;if(fe.isFormData(M)){if(kr.hasStandardBrowserEnv||kr.hasStandardBrowserWebWorkerEnv)S.setContentType(void 0);else if((xe=S.getContentType())!==!1){const[ye,...be]=xe?xe.split(";").map(le=>le.trim()).filter(Boolean):[];S.setContentType([ye||"multipart/form-data",...be].join("; "))}}if(kr.hasStandardBrowserEnv&&(D&&fe.isFunction(D)&&(D=D(T)),D||D!==!1&&Of(T.url))){const ye=N&&J&&Vf.read(J);ye&&S.set(N,ye)}return T},Uf=typeof XMLHttpRequest<"u"&&function(y){return new Promise(function(M,D){const N=xu(y);let J=N.data;const S=Gi.from(N.headers).normalize();let{responseType:c,onUploadProgress:xe,onDownloadProgress:ye}=N,be,le,ae,ht,Ue;function Je(){ht&&ht(),Ue&&Ue(),N.cancelToken&&N.cancelToken.unsubscribe(be),N.signal&&N.signal.removeEventListener("abort",be)}let Oe=new XMLHttpRequest;Oe.open(N.method.toUpperCase(),N.url,!0),Oe.timeout=N.timeout;function ct(){if(!Oe)return;const ke=Gi.from("getAllResponseHeaders"in Oe&&Oe.getAllResponseHeaders()),ft={data:!c||c==="text"||c==="json"?Oe.responseText:Oe.response,status:Oe.status,statusText:Oe.statusText,headers:ke,config:y,request:Oe};fu(function(It){M(It),Je()},function(It){D(It),Je()},ft),Oe=null}"onloadend"in Oe?Oe.onloadend=ct:Oe.onreadystatechange=function(){!Oe||Oe.readyState!==4||Oe.status===0&&!(Oe.responseURL&&Oe.responseURL.indexOf("file:")===0)||setTimeout(ct)},Oe.onabort=function(){Oe&&(D(new lt("Request aborted",lt.ECONNABORTED,y,Oe)),Oe=null)},Oe.onerror=function(){D(new lt("Network Error",lt.ERR_NETWORK,y,Oe)),Oe=null},Oe.ontimeout=function(){let yt=N.timeout?"timeout of "+N.timeout+"ms exceeded":"timeout exceeded";const ft=N.transitional||hu;N.timeoutErrorMessage&&(yt=N.timeoutErrorMessage),D(new lt(yt,ft.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,y,Oe)),Oe=null},J===void 0&&S.setContentType(null),"setRequestHeader"in Oe&&fe.forEach(S.toJSON(),function(yt,ft){Oe.setRequestHeader(ft,yt)}),fe.isUndefined(N.withCredentials)||(Oe.withCredentials=!!N.withCredentials),c&&c!=="json"&&(Oe.responseType=N.responseType),ye&&([ae,Ue]=ll(ye,!0),Oe.addEventListener("progress",ae)),xe&&Oe.upload&&([le,ht]=ll(xe),Oe.upload.addEventListener("progress",le),Oe.upload.addEventListener("loadend",ht)),(N.cancelToken||N.signal)&&(be=ke=>{Oe&&(D(!ke||ke.type?new Ns(null,y,Oe):ke),Oe.abort(),Oe=null)},N.cancelToken&&N.cancelToken.subscribe(be),N.signal&&(N.signal.aborted?be():N.signal.addEventListener("abort",be)));const wt=Rf(N.url);if(wt&&kr.protocols.indexOf(wt)===-1){D(new lt("Unsupported protocol "+wt+":",lt.ERR_BAD_REQUEST,y));return}Oe.send(J||null)})},$f=(y,T)=>{let M=new AbortController,D;const N=function(xe){if(!D){D=!0,S();const ye=xe instanceof Error?xe:this.reason;M.abort(ye instanceof lt?ye:new Ns(ye instanceof Error?ye.message:ye))}};let J=T&&setTimeout(()=>{N(new lt(`timeout ${T} of ms exceeded`,lt.ETIMEDOUT))},T);const S=()=>{y&&(J&&clearTimeout(J),J=null,y.forEach(xe=>{xe&&(xe.removeEventListener?xe.removeEventListener("abort",N):xe.unsubscribe(N))}),y=null)};y.forEach(xe=>xe&&xe.addEventListener&&xe.addEventListener("abort",N));const{signal:c}=M;return c.unsubscribe=S,[c,()=>{J&&clearTimeout(J),J=null}]},qf=function*(y,T){let M=y.byteLength;if(!T||M<T){yield y;return}let D=0,N;for(;D<M;)N=D+T,yield y.slice(D,N),D=N},Zf=async function*(y,T,M){for await(const D of y)yield*qf(ArrayBuffer.isView(D)?D:await M(String(D)),T)},vu=(y,T,M,D,N)=>{const J=Zf(y,T,N);let S=0,c,xe=ye=>{c||(c=!0,D&&D(ye))};return new ReadableStream({async pull(ye){try{const{done:be,value:le}=await J.next();if(be){xe(),ye.close();return}let ae=le.byteLength;if(M){let ht=S+=ae;M(ht)}ye.enqueue(new Uint8Array(le))}catch(be){throw xe(be),be}},cancel(ye){return xe(ye),J.return()}},{highWaterMark:2})},cl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",bu=cl&&typeof ReadableStream=="function",Pc=cl&&(typeof TextEncoder=="function"?(y=>T=>y.encode(T))(new TextEncoder):async y=>new Uint8Array(await new Response(y).arrayBuffer())),wu=(y,...T)=>{try{return!!y(...T)}catch{return!1}},Gf=bu&&wu(()=>{let y=!1;const T=new Request(kr.origin,{body:new ReadableStream,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!T}),Su=64*1024,kc=bu&&wu(()=>fe.isReadableStream(new Response("").body)),hl={stream:kc&&(y=>y.body)};cl&&(y=>{["text","arrayBuffer","blob","formData","stream"].forEach(T=>{!hl[T]&&(hl[T]=fe.isFunction(y[T])?M=>M[T]():(M,D)=>{throw new lt(`Response type '${T}' is not supported`,lt.ERR_NOT_SUPPORT,D)})})})(new Response);const Hf=async y=>{if(y==null)return 0;if(fe.isBlob(y))return y.size;if(fe.isSpecCompliantForm(y))return(await new Request(y).arrayBuffer()).byteLength;if(fe.isArrayBufferView(y)||fe.isArrayBuffer(y))return y.byteLength;if(fe.isURLSearchParams(y)&&(y=y+""),fe.isString(y))return(await Pc(y)).byteLength},Xf=async(y,T)=>{const M=fe.toFiniteNumber(y.getContentLength());return M??Hf(T)},Cc={http:_f,xhr:Uf,fetch:cl&&(async y=>{let{url:T,method:M,data:D,signal:N,cancelToken:J,timeout:S,onDownloadProgress:c,onUploadProgress:xe,responseType:ye,headers:be,withCredentials:le="same-origin",fetchOptions:ae}=xu(y);ye=ye?(ye+"").toLowerCase():"text";let[ht,Ue]=N||J||S?$f([N,J],S):[],Je,Oe;const ct=()=>{!Je&&setTimeout(()=>{ht&&ht.unsubscribe()}),Je=!0};let wt;try{if(xe&&Gf&&M!=="get"&&M!=="head"&&(wt=await Xf(be,D))!==0){let Ct=new Request(T,{method:"POST",body:D,duplex:"half"}),It;if(fe.isFormData(D)&&(It=Ct.headers.get("content-type"))&&be.setContentType(It),Ct.body){const[Yi,ri]=mu(wt,ll(gu(xe)));D=vu(Ct.body,Su,Yi,ri,Pc)}}fe.isString(le)||(le=le?"include":"omit"),Oe=new Request(T,{...ae,signal:ht,method:M.toUpperCase(),headers:be.normalize().toJSON(),body:D,duplex:"half",credentials:le});let ke=await fetch(Oe);const yt=kc&&(ye==="stream"||ye==="response");if(kc&&(c||yt)){const Ct={};["status","statusText","headers"].forEach(Qi=>{Ct[Qi]=ke[Qi]});const It=fe.toFiniteNumber(ke.headers.get("content-length")),[Yi,ri]=c&&mu(It,ll(gu(c),!0))||[];ke=new Response(vu(ke.body,Su,Yi,()=>{ri&&ri(),yt&&ct()},Pc),Ct)}ye=ye||"text";let ft=await hl[fe.findKey(hl,ye)||"text"](ke,y);return!yt&&ct(),Ue&&Ue(),await new Promise((Ct,It)=>{fu(Ct,It,{data:ft,headers:Gi.from(ke.headers),status:ke.status,statusText:ke.statusText,config:y,request:Oe})})}catch(ke){throw ct(),ke&&ke.name==="TypeError"&&/fetch/i.test(ke.message)?Object.assign(new lt("Network Error",lt.ERR_NETWORK,y,Oe),{cause:ke.cause||ke}):lt.from(ke,ke&&ke.code,y,Oe)}})};fe.forEach(Cc,(y,T)=>{if(y){try{Object.defineProperty(y,"name",{value:T})}catch{}Object.defineProperty(y,"adapterName",{value:T})}});const Tu=y=>`- ${y}`,Wf=y=>fe.isFunction(y)||y===null||y===!1,Iu={getAdapter:y=>{y=fe.isArray(y)?y:[y];const{length:T}=y;let M,D;const N={};for(let J=0;J<T;J++){M=y[J];let S;if(D=M,!Wf(M)&&(D=Cc[(S=String(M)).toLowerCase()],D===void 0))throw new lt(`Unknown adapter '${S}'`);if(D)break;N[S||"#"+J]=D}if(!D){const J=Object.entries(N).map(([c,xe])=>`adapter ${c} `+(xe===!1?"is not supported by the environment":"is not available in the build"));let S=T?J.length>1?`since :
|
583
583
|
`+J.map(Tu).join(`
|
584
584
|
`):" "+Tu(J[0]):"as no adapter specified";throw new lt("There is no suitable adapter to dispatch the request "+S,"ERR_NOT_SUPPORT")}return D},adapters:Cc};function Ec(y){if(y.cancelToken&&y.cancelToken.throwIfRequested(),y.signal&&y.signal.aborted)throw new Ns(null,y)}function Pu(y){return Ec(y),y.headers=Gi.from(y.headers),y.data=Ic.call(y,y.transformRequest),["post","put","patch"].indexOf(y.method)!==-1&&y.headers.setContentType("application/x-www-form-urlencoded",!1),Iu.getAdapter(y.adapter||Oo.adapter)(y).then(function(D){return Ec(y),D.data=Ic.call(y,y.transformResponse,D),D.headers=Gi.from(D.headers),D},function(D){return pu(D)||(Ec(y),D&&D.response&&(D.response.data=Ic.call(y,y.transformResponse,D.response),D.response.headers=Gi.from(D.response.headers))),Promise.reject(D)})}const ku="1.7.4",Ac={};["object","boolean","number","function","string","symbol"].forEach((y,T)=>{Ac[y]=function(D){return typeof D===y||"a"+(T<1?"n ":" ")+y}});const Cu={};Ac.transitional=function(T,M,D){function N(J,S){return"[Axios v"+ku+"] Transitional option '"+J+"'"+S+(D?". "+D:"")}return(J,S,c)=>{if(T===!1)throw new lt(N(S," has been removed"+(M?" in "+M:"")),lt.ERR_DEPRECATED);return M&&!Cu[S]&&(Cu[S]=!0,console.warn(N(S," has been deprecated since v"+M+" and will be removed in the near future"))),T?T(J,S,c):!0}};function Jf(y,T,M){if(typeof y!="object")throw new lt("options must be an object",lt.ERR_BAD_OPTION_VALUE);const D=Object.keys(y);let N=D.length;for(;N-- >0;){const J=D[N],S=T[J];if(S){const c=y[J],xe=c===void 0||S(c,J,y);if(xe!==!0)throw new lt("option "+J+" must be "+xe,lt.ERR_BAD_OPTION_VALUE);continue}if(M!==!0)throw new lt("Unknown option "+J,lt.ERR_BAD_OPTION)}}const Mc={assertOptions:Jf,validators:Ac},Pn=Mc.validators;class rs{constructor(T){this.defaults=T,this.interceptors={request:new cu,response:new cu}}async request(T,M){try{return await this._request(T,M)}catch(D){if(D instanceof Error){let N;Error.captureStackTrace?Error.captureStackTrace(N={}):N=new Error;const J=N.stack?N.stack.replace(/^.+\n/,""):"";try{D.stack?J&&!String(D.stack).endsWith(J.replace(/^.+\n.+\n/,""))&&(D.stack+=`
|
585
|
-
`+J):D.stack=J}catch{}}throw D}}_request(T,M){typeof T=="string"?(M=M||{},M.url=T):M=T||{},M=is(this.defaults,M);const{transitional:D,paramsSerializer:N,headers:J}=M;D!==void 0&&Mc.assertOptions(D,{silentJSONParsing:Pn.transitional(Pn.boolean),forcedJSONParsing:Pn.transitional(Pn.boolean),clarifyTimeoutError:Pn.transitional(Pn.boolean)},!1),N!=null&&(fe.isFunction(N)?M.paramsSerializer={serialize:N}:Mc.assertOptions(N,{encode:Pn.function,serialize:Pn.function},!0)),M.method=(M.method||this.defaults.method||"get").toLowerCase();let S=J&&fe.merge(J.common,J[M.method]);J&&fe.forEach(["delete","get","head","post","put","patch","common"],Ue=>{delete J[Ue]}),M.headers=Gi.concat(S,J);const c=[];let xe=!0;this.interceptors.request.forEach(function(Je){typeof Je.runWhen=="function"&&Je.runWhen(M)===!1||(xe=xe&&Je.synchronous,c.unshift(Je.fulfilled,Je.rejected))});const ye=[];this.interceptors.response.forEach(function(Je){ye.push(Je.fulfilled,Je.rejected)});let be,le=0,ae;if(!xe){const Ue=[Pu.bind(this),void 0];for(Ue.unshift.apply(Ue,c),Ue.push.apply(Ue,ye),ae=Ue.length,be=Promise.resolve(M);le<ae;)be=be.then(Ue[le++],Ue[le++]);return be}ae=c.length;let ht=M;for(le=0;le<ae;){const Ue=c[le++],Je=c[le++];try{ht=Ue(ht)}catch(Oe){Je.call(this,Oe);break}}try{be=Pu.call(this,ht)}catch(Ue){return Promise.reject(Ue)}for(le=0,ae=ye.length;le<ae;)be=be.then(ye[le++],ye[le++]);return be}getUri(T){T=is(this.defaults,T);const M=_u(T.baseURL,T.url);return lu(M,T.params,T.paramsSerializer)}}fe.forEach(["delete","get","head","options"],function(T){rs.prototype[T]=function(M,D){return this.request(is(D||{},{method:T,url:M,data:(D||{}).data}))}}),fe.forEach(["post","put","patch"],function(T){function M(D){return function(J,S,c){return this.request(is(c||{},{method:T,headers:D?{"Content-Type":"multipart/form-data"}:{},url:J,data:S}))}}rs.prototype[T]=M(),rs.prototype[T+"Form"]=M(!0)});class zc{constructor(T){if(typeof T!="function")throw new TypeError("executor must be a function.");let M;this.promise=new Promise(function(J){M=J});const D=this;this.promise.then(N=>{if(!D._listeners)return;let J=D._listeners.length;for(;J-- >0;)D._listeners[J](N);D._listeners=null}),this.promise.then=N=>{let J;const S=new Promise(c=>{D.subscribe(c),J=c}).then(N);return S.cancel=function(){D.unsubscribe(J)},S},T(function(J,S,c){D.reason||(D.reason=new Ns(J,S,c),M(D.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(T){if(this.reason){T(this.reason);return}this._listeners?this._listeners.push(T):this._listeners=[T]}unsubscribe(T){if(!this._listeners)return;const M=this._listeners.indexOf(T);M!==-1&&this._listeners.splice(M,1)}static source(){let T;return{token:new zc(function(N){T=N}),cancel:T}}}function Kf(y){return function(M){return y.apply(null,M)}}function Yf(y){return fe.isObject(y)&&y.isAxiosError===!0}const Dc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dc).forEach(([y,T])=>{Dc[T]=y});function Eu(y){const T=new rs(y),M=Gh(rs.prototype.request,T);return fe.extend(M,rs.prototype,T,{allOwnKeys:!0}),fe.extend(M,T,null,{allOwnKeys:!0}),M.create=function(N){return Eu(is(y,N))},M}const Gt=Eu(Oo);Gt.Axios=rs,Gt.CanceledError=Ns,Gt.CancelToken=zc,Gt.isCancel=pu,Gt.VERSION=ku,Gt.toFormData=ol,Gt.AxiosError=lt,Gt.Cancel=Gt.CanceledError,Gt.all=function(T){return Promise.all(T)},Gt.spread=Kf,Gt.isAxiosError=Yf,Gt.mergeConfig=is,Gt.AxiosHeaders=Gi,Gt.formToJSON=y=>uu(fe.isHTMLForm(y)?new FormData(y):y),Gt.getAdapter=Iu.getAdapter,Gt.HttpStatusCode=Dc,Gt.default=Gt;const Au=(y,T=300)=>{let M;return function(...N){clearTimeout(M),M=setTimeout(()=>{y.apply(this,N)},T)}};function Mu(y,T,M){if(y!==null)for(var D,N,J,S,c,xe,ye,be=0,le=0,ae,ht=y.type,Ue=ht==="FeatureCollection",Je=ht==="Feature",Oe=Ue?y.features.length:1,ct=0;ct<Oe;ct++){ye=Ue?y.features[ct].geometry:Je?y.geometry:y,ae=ye?ye.type==="GeometryCollection":!1,c=ae?ye.geometries.length:1;for(var wt=0;wt<c;wt++){var ke=0,yt=0;if(S=ae?ye.geometries[wt]:ye,S!==null){xe=S.coordinates;var ft=S.type;switch(be=0,ft){case null:break;case"Point":if(T(xe,le,ct,ke,yt)===!1)return!1;le++,ke++;break;case"LineString":case"MultiPoint":for(D=0;D<xe.length;D++){if(T(xe[D],le,ct,ke,yt)===!1)return!1;le++,ft==="MultiPoint"&&ke++}ft==="LineString"&&ke++;break;case"Polygon":case"MultiLineString":for(D=0;D<xe.length;D++){for(N=0;N<xe[D].length-be;N++){if(T(xe[D][N],le,ct,ke,yt)===!1)return!1;le++}ft==="MultiLineString"&&ke++,ft==="Polygon"&&yt++}ft==="Polygon"&&ke++;break;case"MultiPolygon":for(D=0;D<xe.length;D++){for(yt=0,N=0;N<xe[D].length;N++){for(J=0;J<xe[D][N].length-be;J++){if(T(xe[D][N][J],le,ct,ke,yt)===!1)return!1;le++}yt++}ke++}break;case"GeometryCollection":for(D=0;D<S.geometries.length;D++)if(Mu(S.geometries[D],T)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Qf(y,T={}){if(y.bbox!=null&&T.recompute!==!0)return y.bbox;const M=[1/0,1/0,-1/0,-1/0];return Mu(y,D=>{M[0]>D[0]&&(M[0]=D[0]),M[1]>D[1]&&(M[1]=D[1]),M[2]<D[0]&&(M[2]=D[0]),M[3]<D[1]&&(M[3]=D[1])}),M}const em={mixins:[_c],props:{map:{type:Object},baseLayers:{type:Array,default:[{id:"orto10",name:"Ortophoto 1:10К",url:"https://data.gki.com.ua/api-user/rtile/orto10/ua/{z}/{x}/{y}.png",service:"TMS",category:"Національна інфраструктура геопросторових даних",scale:1e4,year:2020,bounds:"ua",maxzoom:18,owner:"НДІГК (Інститут геодезії та картографії)",image:"https://data.gki.com.ua/api-user/rtile/orto10/ua/13/4954/2876.png",basemap:!0},{id:"graymap",name:"Сіра карта",url:"https://basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",service:"TMS",category:"Базові карти",attribution:"© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>, © <a href='https://carto.com/attributions'>CARTO</a>",bounds1:"ua",image:"https://basemaps.cartocdn.com/light_all/10/601/348.png",position:0,owner:"OSM",basemap:!0},{id:"darkmap_carto",name:"Темна карта України",image:"https://basemaps.cartocdn.com/dark_all/13/4791/2762.png?ver=2023-04-14",url:"https://basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png",service:"TMS",category:"Базові карти",active:!1}]}},data(){return{selectedLayer:null}},watch:{map(y){y&&y.on("load",this.handleMapLoad)}},methods:{handleMapLoad(){this.baseLayers.forEach(y=>{this.layerList.push(y)}),this.toggleLayerVisibility("graymap")},toggleLayerVisibility(y){this.selectedLayer=y,this.changeBaseLayer(this.selectedLayer)}}},tm={class:"vs-map-slot-layers"},im=["onClick"],rm=["src","alt"];function nm(y,T,M,D,N,J){return ee.openBlock(),ee.createElementBlock("div",tm,[(ee.openBlock(!0),ee.createElementBlock(ee.Fragment,null,ee.renderList(M.baseLayers,S=>(ee.openBlock(),ee.createElementBlock("div",{key:S.id,class:ee.normalizeClass(["vs-map-slot-layers__layer",{focused:S.id==N.selectedLayer}]),onClick:c=>J.toggleLayerVisibility(S.id)},[ee.createElementVNode("img",{width:"50",height:"50",src:S.image,class:"vs-map-slot-layers__image",alt:S==null?void 0:S.name},null,8,rm)],10,im))),128))])}const sm=Nr(em,[["render",nm],["__scopeId","data-v-6644a27d"]]),om={props:["colors"]},am={class:"absolute left-[20px] bottom-[74px] bg-white max-w-[250px] p-[10px] rounded-lg"},lm={class:"legend-item"},cm={key:0,class:"flex justify-start items-center gap-2"},hm={class:"ml-1"};function um(y,T,M,D,N,J){return ee.openBlock(),ee.createElementBlock("div",am,[(ee.openBlock(!0),ee.createElementBlock(ee.Fragment,null,ee.renderList(M.colors,S=>(ee.openBlock(),ee.createElementBlock("div",lm,[S.id>0?(ee.openBlock(),ee.createElementBlock("div",cm,[ee.createElementVNode("div",{class:"w-[15px] h-[15px] rounded-[50%] min-w-[15px]",style:ee.normalizeStyle({backgroundColor:S.color})},null,4),ee.createElementVNode("div",hm,ee.toDisplayString(S.text),1)])):ee.createCommentVNode("",!0)]))),256))])}const dm={components:{MapSlotLayers:sm,MapLegend:Nr(om,[["render",um]])},props:{colorAttr:null,height:{type:String,default:()=>"100vh"},width:{type:String,default:"100vw"},center:{type:Array,default:[32,49]},maxBounds:{type:Array,default:[[22,44],[40,52]]},table:{type:String,default:""},zoom:{type:[String,Number],default:5},basemap:Array,filtersParam:{type:String,default:""},row:{type:Object,default:{}}},mixins:[_c],data(){return{map:null,hoverObject:null,popup:null,colors:[]}},async mounted(){var y,T,M,D,N,J,S,c,xe,ye,be,le,ae,ht,Ue,Je,Oe,ct,wt,ke,yt,ft,Ct,It,Yi,ri,Qi,bt;if(await this.createMap(),(y=this.row)!=null&&y.geom){const kn=new URLSearchParams(window.location.search);if(((M=(T=this.row)==null?void 0:T.geom)==null?void 0:M.coordinates.length)<=1&&kn.has("id")){if(typeof((c=(S=(J=(N=(D=this.row)==null?void 0:D.geom)==null?void 0:N.coordinates)==null?void 0:J[0])==null?void 0:S[0])==null?void 0:c[0])=="number")(le=this.map)==null||le.fitBounds((be=(ye=(xe=this.row)==null?void 0:xe.geom)==null?void 0:ye.coordinates)==null?void 0:be[0],{maxZoom:13,padding:30});else if(typeof((Oe=(Je=(Ue=(ht=(ae=this.row)==null?void 0:ae.geom)==null?void 0:ht.coordinates)==null?void 0:Ue[0])==null?void 0:Je[0])==null?void 0:Oe[0])=="object"){debugger;(ft=this.map)==null||ft.fitBounds((yt=(ke=(wt=(ct=this.row)==null?void 0:ct.geom)==null?void 0:wt.coordinates)==null?void 0:ke[0])==null?void 0:yt[0],{maxZoom:13,padding:30})}}else(Qi=this.map)==null||Qi.fitBounds((ri=(Yi=(It=(Ct=this.row)==null?void 0:Ct.geom)==null?void 0:It.coordinates)==null?void 0:Yi[0])==null?void 0:ri[0],{maxZoom:13,padding:30})}else(bt=this.map)==null||bt.fitBounds(this.maxBounds)},watch:{filtersParam(y){this.setFilter(this.table,y)}},methods:{async getColorStyle(){var y=[["#69D2E7","#A7DBD8","#E0E4CC","#F38630","#FA6900"],["#FE4365","#FC9D9A","#F9CDAD","#C8C8A9","#83AF9B"],["#ECD078","#D95B43","#C02942","#542437","#53777A"]];if(!this.colorAttr)return"blue";try{const{data:{rows:T}}=await Gt.get(`/api/data/${this.table}/${this.colorAttr}`),M=T.reduce((D,N,J)=>N!=null&&N.id?[...D,N.id.toString(),N.color||y[0][J%5]]:D,["match",["get",this.colorAttr]]);return this.colors=[...T],M.push("gray"),M}catch(T){console.log(T)}},async handleMapLoad(){const y=await this.getColorStyle();await this.addLayer({id:this.table,service:"vector",url:`/api/vtile/${this.table}/ua/{z}/{x}/{y}.vmt?pointZoom=12`,layers:[{type:"fill","source-layer":this.table,paint:{"fill-color":y,"fill-opacity":.3,"fill-outline-color":["case",["==",["feature-state","hover"],!0],"red","#000000"]},filter:["all",["==",["geometry-type"],"Polygon"]]},{type:"circle","source-layer":this.table,filter:["all",["==",["geometry-type"],"Point"]],paint:{"circle-radius":{base:1.75,stops:[[10,5],[12,6],[18,12]]},"circle-stroke-color":["case",["==",["feature-state","hover"],!0],"red","#ccc"],"circle-stroke-width":["case",["==",["feature-state","hover"],!0],2,1],"circle-color":y}}]})},async createMap(){const y={version:8,glyphs:"https://cdn.softpro.ua/data/fonts/{fontstack}/{range}.pbf",sources:{},layers:[]};this.map=await new gc.Map({container:"maplibre-map",style:y,center:this.center,zoom:this.zoom,minZoom:5,extend:this.maxBounds}),this.$parent.map=this.map,this.map.addControl(new gc.NavigationControl({visualizePitch:!0})),this.map.on("load",this.handleMapLoad)}}},pm={class:"vs-map-portal relative"};function fm(y,T,M,D,N,J){const S=ee.resolveComponent("MapLegend"),c=ee.resolveComponent("MapSlotLayers");return ee.openBlock(),ee.createElementBlock("div",pm,[ee.createElementVNode("div",{id:"maplibre-map",ref:"maplibreMap",style:ee.normalizeStyle({height:M.height,width:M.width})},null,4),ee.createVNode(S,{colors:N.colors},null,8,["colors"]),ee.createVNode(c,{map:N.map,baseLayers:M.basemap},null,8,["map","baseLayers"])])}const mm=Nr(dm,[["render",fm]]),gm={},_m={class:"flex-shrink-0 size-3.5",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ym=[ee.createStaticVNode('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>',9)];function xm(y,T){return ee.openBlock(),ee.createElementBlock("svg",_m,ym)}const vm=Nr(gm,[["render",xm]]),bm={},wm={xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right-collapse"},Sm=[ee.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),ee.createElementVNode("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"},null,-1),ee.createElementVNode("path",{d:"M15 4v16"},null,-1),ee.createElementVNode("path",{d:"M9 10l2 2l-2 2"},null,-1)];function Tm(y,T){return ee.openBlock(),ee.createElementBlock("svg",wm,Sm)}const Im=Nr(bm,[["render",Tm]]),Pm={},km={xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right-expand"},Cm=[ee.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),ee.createElementVNode("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"},null,-1),ee.createElementVNode("path",{d:"M15 4v16"},null,-1),ee.createElementVNode("path",{d:"M10 10l-2 2l2 2"},null,-1)];function Em(y,T){return ee.openBlock(),ee.createElementBlock("svg",km,Cm)}const Am=Nr(Pm,[["render",Em]]),Mm={},zm={class:"shrink-0 size-3",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Dm=[ee.createElementVNode("path",{d:"M18 6 6 18"},null,-1),ee.createElementVNode("path",{d:"m6 6 12 12"},null,-1)];function Lm(y,T){return ee.openBlock(),ee.createElementBlock("svg",zm,Dm)}const Rm=Nr(Mm,[["render",Lm]]),Bm={props:{visible:{type:Boolean,default:()=>!1},title:{type:String,default:()=>""},size:{type:String,default:()=>""}},emits:["update:visible","onClose"],name:"vs-dialog",mounted(){window.addEventListener("keydown",this.checkKey)},unmounted(){window.removeEventListener("keydown",this.checkKey)},computed:{hasSlot(){var y;return!!((y=this.$slots)!=null&&y.footer)},checkSize(){return this.size==="small"?"w-5/12":this.size==="medium"?"w-6/12":"lg:w-7/12 w-11/12"}},methods:{checkKey({key:y}){y==="Escape"&&this.handleClose()},handleClose(){this.$emit("update:visible",!1),this.$emit("onClose")}}},zu=y=>(ee.pushScopeId("data-v-0a173fd8"),y=y(),ee.popScopeId(),y),Fm={class:"vsTailwind ui-dialog__wrapper"},Om={class:"w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"},Vm={class:"py-2.5 px-4 flex justify-between items-center border-b"},Nm={class:"font-medium text-gray-800"},jm=[zu(()=>ee.createElementVNode("span",{class:"sr-only"},"Close",-1)),zu(()=>ee.createElementVNode("svg",{class:"flex-shrink-0 w-4 h-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[ee.createElementVNode("path",{d:"M18 6 6 18"}),ee.createElementVNode("path",{d:"m6 6 12 12"})],-1))],Um={class:"ui-dialog__content p-4"},$m={key:0,class:"flex justify-end gap-x-2"};function qm(y,T,M,D,N,J){return ee.openBlock(),ee.createBlock(ee.Teleport,{to:"#modal"},[ee.createVNode(ee.Transition,{name:"fade"},{default:ee.withCtx(()=>[ee.withDirectives(ee.createElementVNode("div",Fm,[ee.createElementVNode("div",Om,[ee.createVNode(ee.Transition,{name:"content",appear:""},{default:ee.withCtx(()=>[ee.createElementVNode("div",{class:ee.normalizeClass(["ui-dialog__modal opacity-1 transition-all flex flex-col bg-white border pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl",[J.checkSize]])},[ee.createElementVNode("div",Vm,[ee.createElementVNode("h3",Nm,ee.toDisplayString(M.title),1),ee.createElementVNode("button",{type:"button",class:"size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600",onClick:T[0]||(T[0]=(...S)=>J.handleClose&&J.handleClose(...S))},jm)]),ee.createElementVNode("div",Um,[ee.renderSlot(y.$slots,"default",{},void 0,!0)]),J.hasSlot?(ee.openBlock(),ee.createElementBlock("div",$m,[ee.renderSlot(y.$slots,"footer",{},void 0,!0)])):ee.createCommentVNode("",!0)],2)]),_:3})])],512),[[ee.vShow,M.visible]])]),_:3})])}const Zm=Nr(Bm,[["render",qm],["__scopeId","data-v-0a173fd8"]]),Gm=ee.defineComponent({props:["title","table","rows","initTotal","colorAttr","maxBounds","id","isAutocomplete","zoom","maskForSearch"],mixins:[_c],components:{MapPortal:mm,NoData:Ap,FilterIcon:vm,VisibleMapIcon:Im,HiddenMapIcon:Am,CloseIcon:Rm,VsDialog:Zm},data(){return{filters:"",search:"",limit:20,polyline:null,filtersParam:"",isSelectObj:!1,selectedId:"",searchRegion:"",handleSearchRegionDebounced:Au(y=>this.updateSearchRegionValue(y),500),searchRegionResult:[],isRegionDropdownVisible:!1,selectedRow:"",activeFilters:"",isMapVisible:!0,tabsIsVisible:!1,filterUrl:"",currentPage:1,regionOptionGeneral:null,isFilterVisible:!1,tableData:null,hoverData:null,atuData:[],map:null,total:null,filterValues:"",activeFiltersCount:"",visibleTrue:!0,regionSelectValue:null,currentBbox:null,optionRowsCount:[{value:10,label:"10"},{value:20,label:"20"},{value:30,label:"30"}],handleDebouncedUpdateValue:Au(y=>{this.handleSearchValue(y)},10)}},watch:{map(){this.map.on("mousemove",this.handleMapHover),this.map.on("click",this.handleMapClick)},activeFiltersCount(){var y,T;return(T=(y=this.$refs)==null?void 0:y.filter)==null?void 0:T.filteredActiveFiltersLength},activeFilters(){var y,T;return this.isSelectObj&&this.moveToDefaultPage(),(T=(y=this.$refs)==null?void 0:y.filter)==null?void 0:T.activeFilters},isFilterVisible(y){y||this.getData()},async regionSelectValue(y,T){var N,J;if(!this.regionSelectValue)return;this.polyline=this.regionSelectValue.encoded_geom,this.getData();const M=((N=this.regionSelectValue)==null?void 0:N.geom)||Ir.toGeoJSON(this.regionSelectValue.encoded_geom),D=this.map.getSource("region-search-id");if(this.currentBbox=Qf(M),D)D.setData({type:"Feature",geometry:M});else{this.map.addSource("region-search-id",{type:"geojson",data:{type:"Feature",geometry:M}});const S={id:"region-search-id",type:"line",source:"region-search-id",paint:{"line-color":"blue","line-opacity":1}};await this.map.addLayer(S)}this.moveLayer("site.prc.parcel_object.table"),(J=this.map)==null||J.fitBounds(this.currentBbox,{zoom:10,padding:20}),this.getData()}},created(){this.tableData=this.rows,this.total=this.initTotal,this.id&&(this.selectedRow=this.rows[0],this.selectedId=this.id,this.isSelectObj=!0)},mounted(){this.rows||this.getData(),this.getFilter()},updated(){this.checkFilterLength()},methods:{async updateSearchRegionValue(y){this.searchRegion=y,await this.getReginOptions()},async getData(){try{const y={search:this.search||null,limit:this.limit,page:this.currentPage,polyline:this.polyline};this.filtersParam!==""&&this.filtersParam!=="no-url"&&(y.filter=this.filtersParam);const{data:T}=await Gt.get(`/api/data/${this.table}`,{params:y});this.tableData=T.rows,this.total=T.total}catch(y){console.error(y.message)}},moveToDefaultPage(){var D;const y=new URLSearchParams(window.location.search);y.delete("id");const M=`${window.location.pathname}?${y.toString()}`;(D=this.map)==null||D.fitBounds(this.maxBounds,{}),window.history.pushState({},"",M),this.isSelectObj=!1},regionFullName(y){return`${y.text} / ${y.region}`},getLabelById(y){const T=this.filters.find(M=>M.id===y);return T?T.label:y},getOptionsLabelById(y,T){return Array.isArray(T)?this.filters.find(D=>D.id===y).options.filter(D=>T.includes(D.id)).map(D=>D.text).join(", "):T},async clearFilter(y){var T,M;await((M=(T=this.$refs)==null?void 0:T.filter)==null?void 0:M.clearFilter(y)),await this.updateTableAndMap(),await this.getData()},async getReginOptions(){if(this.searchRegion===""&&this.regionOptionGeneral)this.searchRegionResult=this.regionOptionGeneral;else try{const{data:y}=await Gt.get(`https://data.softpro.ua/api-user/suggest/atu.codifier.type.polyline.select?parent=H&key=${this.searchRegion}`);this.searchRegionResult=y,this.regionOptionGeneral||(this.regionOptionGeneral=y)}catch(y){console.error(y.message)}},handlePageChange(y){this.currentPage=y,this.getData()},async getFilter(){try{const{data:y}=await Gt.get(`/api/filter/${this.table}`);this.filters=y.list}catch(y){console.error(y.message)}},async handleSearchValue(y){this.search=y,await this.getData()},closeObjCard(){var D;const y=new URLSearchParams(window.location.search);y.delete("id");const M=`${window.location.pathname}?${y.toString()}`;(D=this.map)==null||D.fitBounds(this.currentBbox||this.maxBounds,{}),window.history.pushState({},"",M),this.isSelectObj=!1,this.getData()},async handleSearchRegionValue(y){var M;const T=this.map.getLayer("region-search-id");this.searchRegion=y,y===""&&T&&((M=this.map)==null||M.fitBounds([[22,44.4],[40,52.5]],{}),this.currentBbox=null,this.polyline=null,this.map.removeLayer("region-search-id"),this.getData())},handleFilterChange(y){this.currentPage=y.state.page||1,this.filterUrl=y.url.split("|").filter(T=>!T.includes("page=")).join("|")},async updateTableAndMap(){var y,T;this.filtersParam=this.filterUrl,this.activeFilters=(T=(y=this.$refs)==null?void 0:y.filter)==null?void 0:T.activeFilters,this.isFilterVisible=!1},handleFilterSubmit(){var y;this.isSelectObj="",this.selectedId="",this.selectedId=!1,(y=this.map)==null||y.fitBounds([[22,44.4],[40,52.5]],{}),this.isFilterVisible=!1},toggleFilterShown(){this.isFilterVisible=!this.isFilterVisible},closeFilterShown(){this.isFilterVisible=!1},toggleMapVisible(){this.isMapVisible=!this.isMapVisible},checkUrl(){const y=new URLSearchParams(window.location.search);y.has("id")?(this.isSelectObj=!0,this.isMapVisible=!0,this.selectedId=y.get("id")):(this.isSelectObj=!1,this.selectedId="")},changeLimit(y){this.limit=y,this.currentPage=1,this.getData()},filterModalClose(){this.toggleFilterShown(),this.isFilterVisible=!1},resetFilters(){this.$refs.filter&&(this.$refs.filter.clearAll(),this.search="",this.isFilterVisible=!1,this.filtersParam="",this.polyline=null,this.regionSelectValue=null,this.currentBbox=null,this.activeFilters=null,this.tabsIsVisible=!1,this.handleSearchRegionValue(""))},checkFilterLength(){var T,M;const y=(M=(T=this.$refs)==null?void 0:T.filter)==null?void 0:M.filteredActiveFiltersLength;y!==this.previousLength&&(this.previousLength=y,this.activeFiltersCount=y)},async handleMapClick(y){var J,S,c,xe,ye;const T=this.map.queryRenderedFeatures(y.point),M=window.location.pathname,D=new URLSearchParams(window.location.search);D.set("id",`${T[0].properties.id}`),this.getObjectData(T[0].properties.id);const N=`${M}?${D.toString()}`;window.history.pushState({},"",N),this.isSelectObj=!0,y.lngLat&&((ye=this.map)==null||ye.fitBounds([[(J=y.lngLat)==null?void 0:J.lng,(S=y.lngLat)==null?void 0:S.lat],[(c=y.lngLat)==null?void 0:c.lng,(xe=y.lngLat)==null?void 0:xe.lat]],{maxZoom:13,padding:30})),this.checkUrl()},async getObjectData(y){var T;try{const{data:M}=await Gt.get(`/api/data/${this.table}/${y}`);this.selectRow((T=M==null?void 0:M.rows)==null?void 0:T[0])}catch(M){console.error(M.message)}},async selectRow(y){var N,J,S,c,xe,ye,be,le,ae,ht,Ue,Je,Oe,ct,wt,ke,yt,ft,Ct,It;this.isMapVisible=!0,this.selectedRow=y;const T=window.location.pathname,M=new URLSearchParams(window.location.search);M.set("id",`${y.id}`);const D=`${T}?${M.toString()}`;window.history.pushState({},"",D),this.checkUrl(),y!=null&&y.geom&&(((N=y==null?void 0:y.geom)==null?void 0:N.coordinates.length)<=1?typeof((xe=(c=(S=(J=y==null?void 0:y.geom)==null?void 0:J.coordinates)==null?void 0:S[0])==null?void 0:c[0])==null?void 0:xe[0])=="number"?(le=this.map)==null||le.fitBounds((be=(ye=y==null?void 0:y.geom)==null?void 0:ye.coordinates)==null?void 0:be[0],{maxZoom:13,padding:30}):typeof((Je=(Ue=(ht=(ae=y==null?void 0:y.geom)==null?void 0:ae.coordinates)==null?void 0:ht[0])==null?void 0:Ue[0])==null?void 0:Je[0])=="object"&&((ke=this.map)==null||ke.fitBounds((wt=(ct=(Oe=y==null?void 0:y.geom)==null?void 0:Oe.coordinates)==null?void 0:ct[0])==null?void 0:wt[0],{maxZoom:13,padding:30})):(It=this.map)==null||It.fitBounds((Ct=(ft=(yt=y==null?void 0:y.geom)==null?void 0:yt.coordinates)==null?void 0:ft[0])==null?void 0:Ct[0],{maxZoom:13,padding:30})),this.isSelectObj=!0},async handleMapHover(y){var N;this.hoverObject&&(this.map.setFeatureState(this.hoverObject,{hover:!1}),this.hoverObject=null),this.popup||(this.popup=new gc.Popup({maxWidth:"400px",closeButton:!1,closeOnClick:!1}));const T=this.map.queryRenderedFeatures(y.point);if(this.map.getCanvas().style.cursor="pointer",!T.length||((N=T==null?void 0:T[0])==null?void 0:N.source)==="region-search-id"){this.map.getCanvas().style.cursor="",this.popup.remove();return}const M=T[0].geometry.coordinates.slice();this.hoverData=T[0].properties;const D={source:T[0].source,sourceLayer:T[0].sourceLayer,id:T[0].id};if(D.source!=="region-search-id"){for(this.map.setFeatureState(D,{hover:!0}),this.hoverObject=D;Math.abs(y.lngLat.lng-M[0])>180;)M[0]+=y.lngLat.lng>M[0]?360:-360;this.popup.setLngLat(y.lngLat).setHTML(this.$refs.popup.innerHTML).addTo(this.map)}}}}),Hm={class:"ml-3 pt-5"},Xm={class:"w-full gap-5 flex justify-between mb-[10px] pr-3"},Wm={class:"flex gap-[20px]"},Jm={key:0,class:"font-medium text-[10px] min-w-[16px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full"},Km={class:"p-4 flex-1 flex flex-wrap justify-end items-center gap-2"},Ym=["title"],Qm=ee.createElementVNode("span",{class:"sr-only"},"Відкрити мапу",-1),eg={class:"flex"},tg={class:"py-[15px] pb-[24px] pl-2"},ig={class:"font-bold text-2xl mr-[10px]"},rg={class:"text-sm text-stone-500 font-medium"},ng=ee.createElementVNode("span",{class:"text-sm text-stone-500 font-medium"}," об'єктів",-1),sg={class:"wrapperTable flex flex-col",style:{height:"calc(100vh - 302px)"}},og={key:0,class:"flex gap-x-2 flex-wrap"},ag={class:"font-medium"},lg=ee.createElementVNode("span",{class:"h-3 mx-2 border-s border-gray-200"},null,-1),cg={class:"text-gray-500"},hg=["onClick"],ug={key:0,class:"mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full"},dg=ee.createElementVNode("span",{class:"font-medium"}," Очистити ",-1),pg={key:2,class:"text-center py-28"},fg=ee.createElementVNode("h2",{class:"font-medium text-base text-gray-500 rounded-xl"}," За вашим запитом даних не знайдено! ",-1),mg=ee.createElementVNode("p",{class:"font-normal text-sm text-gray-500 rounded-xl"}," Введіть, будь ласка, інші значення для пошуку. ",-1),gg={key:0},_g={key:1,class:"my-5 pr-2"},yg={class:"flex justify-between"},xg={key:1,class:"w-2/4"},vg={class:"map-section"},bg={ref:"popup",style:{display:"none"}};function wg(y,T,M,D,N,J){const S=ee.resolveComponent("VsAutocompleteOption"),c=ee.resolveComponent("vs-autocomplete"),xe=ee.resolveComponent("VsTextMask"),ye=ee.resolveComponent("vs-text"),be=ee.resolveComponent("FilterIcon"),le=ee.resolveComponent("VsFilter"),ae=ee.resolveComponent("VsDialog"),ht=ee.resolveComponent("VisibleMapIcon"),Ue=ee.resolveComponent("HiddenMapIcon"),Je=ee.resolveComponent("CloseIcon"),Oe=ee.resolveComponent("NoData"),ct=ee.resolveComponent("VsPagination"),wt=ee.resolveComponent("MapPortal");return ee.openBlock(),ee.createElementBlock("section",Hm,[ee.createElementVNode("div",null,[ee.createElementVNode("div",Xm,[ee.createElementVNode("div",Wm,[y.isAutocomplete?(ee.openBlock(),ee.createBlock(c,{key:0,modelValue:y.regionSelectValue,"onUpdate:modelValue":[T[0]||(T[0]=ke=>y.regionSelectValue=ke),y.handleSearchRegionValue],searchable:"",clearable:"",searchPlaceholder:"Введіть назву громади",placeholder:"Обрати область чи громаду",onOnSearch:y.handleSearchRegionDebounced,onClick:y.getReginOptions,class:"w-[350px]"},{default:ee.withCtx(()=>[(ee.openBlock(!0),ee.createElementBlock(ee.Fragment,null,ee.renderList(y.searchRegionResult,ke=>(ee.openBlock(),ee.createBlock(S,{class:"cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",key:ke==null?void 0:ke.id,value:ke,label:y.regionFullName(ke)},null,8,["value","label"]))),128))]),_:1},8,["modelValue","onOnSearch","onUpdate:modelValue","onClick"])):ee.createCommentVNode("",!0),y.maskForSearch?(ee.openBlock(),ee.createBlock(xe,{key:1,"model-value":y.search,"onUpdate:modelValue":y.handleDebouncedUpdateValue,class:"w-full table-interface-search [&>input:focus]:ring-1",placeholder:"Пошук",mask:y.maskForSearch,icon:"search",iconPosition:"left",clearable:"",style:{height:"38px","min-width":"300px","max-width":"300px"},ref:"searchInput"},null,8,["model-value","onUpdate:modelValue","mask"])):(ee.openBlock(),ee.createBlock(ye,{key:2,"model-value":y.search,"onUpdate:modelValue":y.handleDebouncedUpdateValue,class:"w-full table-interface-search [&>input:focus]:ring-1",placeholder:"Пошук",icon:"search","icon-position":"left",clearable:"",style:{height:"38px","min-width":"300px","max-width":"300px"},ref:"searchInput"},null,8,["model-value","onUpdate:modelValue"])),ee.createElementVNode("button",{type:"button",class:"py-2 px-2.5 max-h-[38px] inline-flex items-center gap-x-1.5 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",onClick:T[1]||(T[1]=(...ke)=>y.toggleFilterShown&&y.toggleFilterShown(...ke))},[ee.createVNode(be),ee.createTextVNode(" Фільтри "),y.activeFiltersCount>=1?(ee.openBlock(),ee.createElementBlock("span",Jm,ee.toDisplayString(y.activeFiltersCount),1)):ee.createCommentVNode("",!0)]),ee.createVNode(ae,{visible:y.isFilterVisible,"onUpdate:visible":T[4]||(T[4]=ke=>y.isFilterVisible=ke),title:"Фільтри",size:"small",onOnClose:T[5]||(T[5]=()=>{y.visibleTrue=!0,y.isFilterVisible=!1})},{footer:ee.withCtx(()=>[ee.createElementVNode("div",Km,[ee.createElementVNode("button",{onClick:T[2]||(T[2]=(...ke)=>y.resetFilters&&y.resetFilters(...ke)),class:"py-2 px-3 inline-flex justify-center items-center text-start bg-white border border-gray-200 text-gray-800 text-sm font-medium rounded-lg shadow-sm align-middle hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"}," Очистити все "),ee.createElementVNode("button",{onClick:T[3]||(T[3]=(...ke)=>y.updateTableAndMap&&y.updateTableAndMap(...ke)),class:"py-2 px-3 inline-flex justify-center items-center gap-x-2 text-start bg-blue-600 border border-blue-600 text-white text-sm font-medium rounded-lg shadow-sm align-middle hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"}," Застосувати ")])]),default:ee.withCtx(()=>[y.filters?(ee.openBlock(),ee.createBlock(le,{key:0,ref:"filter",scheme:y.filters,closeFilterBtn:!0,onFilterClose:y.closeFilterShown,name:"filter",layout:"default",onFilterChange:y.handleFilterChange},null,8,["scheme","onFilterClose","onFilterChange"])):ee.createCommentVNode("",!0)]),_:1},8,["visible"])]),ee.createElementVNode("button",{type:"button",class:"py-2 px-2 inline-flex items-center gap-x-1.5 text-sm rounded-lg border border-gray-200 bg-white text-gray-600 shadow-sm hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100",title:y.isMapVisible?"Приховати карту":"Показати карту",onClick:T[6]||(T[6]=(...ke)=>y.toggleMapVisible&&y.toggleMapVisible(...ke))},[y.isMapVisible?(ee.openBlock(),ee.createBlock(ht,{key:0})):(ee.openBlock(),ee.createBlock(Ue,{key:1})),Qm],8,Ym)]),ee.createElementVNode("div",eg,[ee.createElementVNode("div",{class:ee.normalizeClass(["relative overflow-hidden",y.isMapVisible?"w-2/4 mr-0":"w-full mr-3",y.isSelectObj?"hidden":""])},[ee.createElementVNode("h1",tg,[ee.createElementVNode("span",ig,ee.toDisplayString(y.title),1),ee.createElementVNode("span",rg,ee.toDisplayString(y.total),1),ng]),ee.createElementVNode("div",sg,[y.activeFilters?(ee.openBlock(),ee.createElementBlock("div",og,[(ee.openBlock(!0),ee.createElementBlock(ee.Fragment,null,ee.renderList(y.activeFilters,(ke,yt,ft)=>(ee.openBlock(),ee.createElementBlock("span",{class:"mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full",key:ft},[ee.createElementVNode("span",ag,ee.toDisplayString(y.getLabelById(yt)),1),lg,ee.createElementVNode("span",cg,ee.toDisplayString(y.getOptionsLabelById(yt,ke)),1),ee.createElementVNode("button",{type:"button",class:"inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",onClick:Ct=>y.clearFilter(yt)},[ee.createVNode(Je)],8,hg)]))),128)),Object.keys(y.activeFilters).length>=2?(ee.openBlock(),ee.createElementBlock("span",ug,[dg,ee.createElementVNode("button",{type:"button",class:"inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",onClick:T[7]||(T[7]=(...ke)=>y.resetFilters&&y.resetFilters(...ke))},[ee.createVNode(Je)])])):ee.createCommentVNode("",!0)])):ee.createCommentVNode("",!0),y.total>=1?ee.renderSlot(y.$slots,"table",{key:1,rows:y.tableData,map:y.map,selectRow:y.selectRow,getData:y.getData}):(ee.openBlock(),ee.createElementBlock("div",pg,[ee.createVNode(Oe),fg,mg,ee.createElementVNode("button",{type:"button",class:"mt-[10px] py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs rounded-lg border border-stone-200 bg-white text-stone-800 shadow-sm hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100",onClick:T[8]||(T[8]=(...ke)=>y.resetFilters&&y.resetFilters(...ke))}," Очистити дані пошуку ")]))]),y.total>=1?(ee.openBlock(),ee.createElementBlock("hr",gg)):ee.createCommentVNode("",!0),y.total>=1?(ee.openBlock(),ee.createElementBlock("div",_g,[ee.createElementVNode("div",yg,[ee.createVNode(ct,{total:y.total,maxPages:7,defaultPage:y.currentPage,pageSize:y.limit,goTo:!1,size:"medium",onPageChange:y.handlePageChange,backgroundColor:"#e5e7eb",borderedCellSelected:"true",pageSizes:[10,20,30],onPageSizeChange:y.changeLimit},null,8,["total","defaultPage","pageSize","onPageChange","onPageSizeChange"])])])):ee.createCommentVNode("",!0)],2),y.isSelectObj?(ee.openBlock(),ee.createElementBlock("div",{key:0,class:ee.normalizeClass(y.isMapVisible?"w-2/4 mr-0 pb-5":"w-full pb-5 mr-3"),style:{height:"calc(100vh - 152px)"}},[ee.renderSlot(y.$slots,"details",{table:y.table,selectedId:y.selectedId,selectedRow:y.selectedRow,map:y.map,closeObjCard:y.closeObjCard})],2)):ee.createCommentVNode("",!0),y.isMapVisible?(ee.openBlock(),ee.createElementBlock("div",xg,[ee.createElementVNode("section",vg,[ee.createVNode(wt,{height:"calc(100vh - 152px)",width:"w-2/4",table:y.table,filtersParam:y.filtersParam,row:y.selectedRow,colorAttr:y.colorAttr,maxBounds:y.maxBounds,zoom:y.zoom},null,8,["table","filtersParam","row","colorAttr","maxBounds","zoom"])])])):ee.createCommentVNode("",!0)]),ee.createElementVNode("div",bg,[ee.renderSlot(y.$slots,"popup",{data:y.hoverData})],512)])])}const Du=Nr(Gm,[["render",wg]]),Lu={install:y=>{y.component("VsPartsMap",Du)},components:{VsPartsMap:Du}};return typeof window<"u"&&(window.PartsMap=Lu),Lu});
|
585
|
+
`+J):D.stack=J}catch{}}throw D}}_request(T,M){typeof T=="string"?(M=M||{},M.url=T):M=T||{},M=is(this.defaults,M);const{transitional:D,paramsSerializer:N,headers:J}=M;D!==void 0&&Mc.assertOptions(D,{silentJSONParsing:Pn.transitional(Pn.boolean),forcedJSONParsing:Pn.transitional(Pn.boolean),clarifyTimeoutError:Pn.transitional(Pn.boolean)},!1),N!=null&&(fe.isFunction(N)?M.paramsSerializer={serialize:N}:Mc.assertOptions(N,{encode:Pn.function,serialize:Pn.function},!0)),M.method=(M.method||this.defaults.method||"get").toLowerCase();let S=J&&fe.merge(J.common,J[M.method]);J&&fe.forEach(["delete","get","head","post","put","patch","common"],Ue=>{delete J[Ue]}),M.headers=Gi.concat(S,J);const c=[];let xe=!0;this.interceptors.request.forEach(function(Je){typeof Je.runWhen=="function"&&Je.runWhen(M)===!1||(xe=xe&&Je.synchronous,c.unshift(Je.fulfilled,Je.rejected))});const ye=[];this.interceptors.response.forEach(function(Je){ye.push(Je.fulfilled,Je.rejected)});let be,le=0,ae;if(!xe){const Ue=[Pu.bind(this),void 0];for(Ue.unshift.apply(Ue,c),Ue.push.apply(Ue,ye),ae=Ue.length,be=Promise.resolve(M);le<ae;)be=be.then(Ue[le++],Ue[le++]);return be}ae=c.length;let ht=M;for(le=0;le<ae;){const Ue=c[le++],Je=c[le++];try{ht=Ue(ht)}catch(Oe){Je.call(this,Oe);break}}try{be=Pu.call(this,ht)}catch(Ue){return Promise.reject(Ue)}for(le=0,ae=ye.length;le<ae;)be=be.then(ye[le++],ye[le++]);return be}getUri(T){T=is(this.defaults,T);const M=_u(T.baseURL,T.url);return lu(M,T.params,T.paramsSerializer)}}fe.forEach(["delete","get","head","options"],function(T){rs.prototype[T]=function(M,D){return this.request(is(D||{},{method:T,url:M,data:(D||{}).data}))}}),fe.forEach(["post","put","patch"],function(T){function M(D){return function(J,S,c){return this.request(is(c||{},{method:T,headers:D?{"Content-Type":"multipart/form-data"}:{},url:J,data:S}))}}rs.prototype[T]=M(),rs.prototype[T+"Form"]=M(!0)});class zc{constructor(T){if(typeof T!="function")throw new TypeError("executor must be a function.");let M;this.promise=new Promise(function(J){M=J});const D=this;this.promise.then(N=>{if(!D._listeners)return;let J=D._listeners.length;for(;J-- >0;)D._listeners[J](N);D._listeners=null}),this.promise.then=N=>{let J;const S=new Promise(c=>{D.subscribe(c),J=c}).then(N);return S.cancel=function(){D.unsubscribe(J)},S},T(function(J,S,c){D.reason||(D.reason=new Ns(J,S,c),M(D.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(T){if(this.reason){T(this.reason);return}this._listeners?this._listeners.push(T):this._listeners=[T]}unsubscribe(T){if(!this._listeners)return;const M=this._listeners.indexOf(T);M!==-1&&this._listeners.splice(M,1)}static source(){let T;return{token:new zc(function(N){T=N}),cancel:T}}}function Kf(y){return function(M){return y.apply(null,M)}}function Yf(y){return fe.isObject(y)&&y.isAxiosError===!0}const Dc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dc).forEach(([y,T])=>{Dc[T]=y});function Eu(y){const T=new rs(y),M=Gh(rs.prototype.request,T);return fe.extend(M,rs.prototype,T,{allOwnKeys:!0}),fe.extend(M,T,null,{allOwnKeys:!0}),M.create=function(N){return Eu(is(y,N))},M}const Gt=Eu(Oo);Gt.Axios=rs,Gt.CanceledError=Ns,Gt.CancelToken=zc,Gt.isCancel=pu,Gt.VERSION=ku,Gt.toFormData=ol,Gt.AxiosError=lt,Gt.Cancel=Gt.CanceledError,Gt.all=function(T){return Promise.all(T)},Gt.spread=Kf,Gt.isAxiosError=Yf,Gt.mergeConfig=is,Gt.AxiosHeaders=Gi,Gt.formToJSON=y=>uu(fe.isHTMLForm(y)?new FormData(y):y),Gt.getAdapter=Iu.getAdapter,Gt.HttpStatusCode=Dc,Gt.default=Gt;const Au=(y,T=300)=>{let M;return function(...N){clearTimeout(M),M=setTimeout(()=>{y.apply(this,N)},T)}};function Mu(y,T,M){if(y!==null)for(var D,N,J,S,c,xe,ye,be=0,le=0,ae,ht=y.type,Ue=ht==="FeatureCollection",Je=ht==="Feature",Oe=Ue?y.features.length:1,ct=0;ct<Oe;ct++){ye=Ue?y.features[ct].geometry:Je?y.geometry:y,ae=ye?ye.type==="GeometryCollection":!1,c=ae?ye.geometries.length:1;for(var wt=0;wt<c;wt++){var ke=0,yt=0;if(S=ae?ye.geometries[wt]:ye,S!==null){xe=S.coordinates;var ft=S.type;switch(be=0,ft){case null:break;case"Point":if(T(xe,le,ct,ke,yt)===!1)return!1;le++,ke++;break;case"LineString":case"MultiPoint":for(D=0;D<xe.length;D++){if(T(xe[D],le,ct,ke,yt)===!1)return!1;le++,ft==="MultiPoint"&&ke++}ft==="LineString"&&ke++;break;case"Polygon":case"MultiLineString":for(D=0;D<xe.length;D++){for(N=0;N<xe[D].length-be;N++){if(T(xe[D][N],le,ct,ke,yt)===!1)return!1;le++}ft==="MultiLineString"&&ke++,ft==="Polygon"&&yt++}ft==="Polygon"&&ke++;break;case"MultiPolygon":for(D=0;D<xe.length;D++){for(yt=0,N=0;N<xe[D].length;N++){for(J=0;J<xe[D][N].length-be;J++){if(T(xe[D][N][J],le,ct,ke,yt)===!1)return!1;le++}yt++}ke++}break;case"GeometryCollection":for(D=0;D<S.geometries.length;D++)if(Mu(S.geometries[D],T)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Qf(y,T={}){if(y.bbox!=null&&T.recompute!==!0)return y.bbox;const M=[1/0,1/0,-1/0,-1/0];return Mu(y,D=>{M[0]>D[0]&&(M[0]=D[0]),M[1]>D[1]&&(M[1]=D[1]),M[2]<D[0]&&(M[2]=D[0]),M[3]<D[1]&&(M[3]=D[1])}),M}const em={mixins:[_c],props:{map:{type:Object},baseLayers:{type:Array,default:[{id:"orto10",name:"Ortophoto 1:10К",url:"https://data.gki.com.ua/api-user/rtile/orto10/ua/{z}/{x}/{y}.png",service:"TMS",category:"Національна інфраструктура геопросторових даних",scale:1e4,year:2020,bounds:"ua",maxzoom:18,owner:"НДІГК (Інститут геодезії та картографії)",image:"https://data.gki.com.ua/api-user/rtile/orto10/ua/13/4954/2876.png",basemap:!0},{id:"graymap",name:"Сіра карта",url:"https://basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",service:"TMS",category:"Базові карти",attribution:"© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>, © <a href='https://carto.com/attributions'>CARTO</a>",bounds1:"ua",image:"https://basemaps.cartocdn.com/light_all/10/601/348.png",position:0,owner:"OSM",basemap:!0},{id:"darkmap_carto",name:"Темна карта України",image:"https://basemaps.cartocdn.com/dark_all/13/4791/2762.png?ver=2023-04-14",url:"https://basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png",service:"TMS",category:"Базові карти",active:!1}]}},data(){return{selectedLayer:null}},watch:{map(y){y&&y.on("load",this.handleMapLoad)}},methods:{handleMapLoad(){this.baseLayers.forEach(y=>{this.layerList.push(y)}),this.toggleLayerVisibility("graymap")},toggleLayerVisibility(y){this.selectedLayer=y,this.changeBaseLayer(this.selectedLayer)}}},tm={class:"vs-map-slot-layers"},im=["onClick"],rm=["src","alt"];function nm(y,T,M,D,N,J){return ee.openBlock(),ee.createElementBlock("div",tm,[(ee.openBlock(!0),ee.createElementBlock(ee.Fragment,null,ee.renderList(M.baseLayers,S=>(ee.openBlock(),ee.createElementBlock("div",{key:S.id,class:ee.normalizeClass(["vs-map-slot-layers__layer",{focused:S.id==N.selectedLayer}]),onClick:c=>J.toggleLayerVisibility(S.id)},[ee.createElementVNode("img",{width:"50",height:"50",src:S.image,class:"vs-map-slot-layers__image",alt:S==null?void 0:S.name},null,8,rm)],10,im))),128))])}const sm=Nr(em,[["render",nm],["__scopeId","data-v-6644a27d"]]),om={props:["colors"],methods:{capitalizeFirstLetter(y){return y?y.charAt(0).toUpperCase()+y.slice(1):""}}},am={class:"absolute left-[20px] bottom-[74px] bg-white max-w-[250px] p-[10px] rounded-lg"},lm={class:"legend-item"},cm={key:0,class:"flex justify-start items-center gap-2"},hm={class:"ml-1"};function um(y,T,M,D,N,J){return ee.openBlock(),ee.createElementBlock("div",am,[(ee.openBlock(!0),ee.createElementBlock(ee.Fragment,null,ee.renderList(M.colors,S=>(ee.openBlock(),ee.createElementBlock("div",lm,[S.id>0?(ee.openBlock(),ee.createElementBlock("div",cm,[ee.createElementVNode("div",{class:"w-[15px] h-[15px] rounded-[50%] min-w-[15px]",style:ee.normalizeStyle({backgroundColor:S.color})},null,4),ee.createElementVNode("div",hm,ee.toDisplayString(J.capitalizeFirstLetter(S.text)),1)])):ee.createCommentVNode("",!0)]))),256))])}const dm={components:{MapSlotLayers:sm,MapLegend:Nr(om,[["render",um]])},props:{colorAttr:null,height:{type:String,default:()=>"100vh"},width:{type:String,default:"100vw"},center:{type:Array,default:[32,49]},maxBounds:{type:Array,default:[[22,44],[40,52]]},table:{type:String,default:""},zoom:{type:[String,Number],default:5},basemap:Array,filtersParam:{type:String,default:""},row:{type:Object,default:{}}},mixins:[_c],data(){return{map:null,hoverObject:null,popup:null,colors:[]}},async mounted(){var y,T,M,D,N,J,S,c,xe,ye,be,le,ae,ht,Ue,Je,Oe,ct,wt,ke,yt,ft,Ct,It,Yi,ri,Qi,bt;if(await this.createMap(),(y=this.row)!=null&&y.geom){const kn=new URLSearchParams(window.location.search);((M=(T=this.row)==null?void 0:T.geom)==null?void 0:M.coordinates.length)<=1&&kn.has("id")?typeof((c=(S=(J=(N=(D=this.row)==null?void 0:D.geom)==null?void 0:N.coordinates)==null?void 0:J[0])==null?void 0:S[0])==null?void 0:c[0])=="number"?(le=this.map)==null||le.fitBounds((be=(ye=(xe=this.row)==null?void 0:xe.geom)==null?void 0:ye.coordinates)==null?void 0:be[0],{maxZoom:13,padding:30}):typeof((Oe=(Je=(Ue=(ht=(ae=this.row)==null?void 0:ae.geom)==null?void 0:ht.coordinates)==null?void 0:Ue[0])==null?void 0:Je[0])==null?void 0:Oe[0])=="object"&&((ft=this.map)==null||ft.fitBounds((yt=(ke=(wt=(ct=this.row)==null?void 0:ct.geom)==null?void 0:wt.coordinates)==null?void 0:ke[0])==null?void 0:yt[0],{maxZoom:13,padding:30})):(Qi=this.map)==null||Qi.fitBounds((ri=(Yi=(It=(Ct=this.row)==null?void 0:Ct.geom)==null?void 0:It.coordinates)==null?void 0:Yi[0])==null?void 0:ri[0],{maxZoom:13,padding:30})}else(bt=this.map)==null||bt.fitBounds(this.maxBounds)},watch:{filtersParam(y){this.setFilter(this.table,y)}},methods:{async getColorStyle(){var y=[["#69D2E7","#A7DBD8","#E0E4CC","#F38630","#FA6900"],["#FE4365","#FC9D9A","#F9CDAD","#C8C8A9","#83AF9B"],["#ECD078","#D95B43","#C02942","#542437","#53777A"]];if(!this.colorAttr)return"blue";try{const{data:{rows:T}}=await Gt.get(`/api/data/${this.table}/${this.colorAttr}`),M=T.reduce((D,N,J)=>N!=null&&N.id?[...D,N.id.toString(),N.color||y[0][J%5]]:D,["match",["get",this.colorAttr]]);return this.colors=[...T],M.push("gray"),M}catch(T){console.log(T)}},async handleMapLoad(){const y=await this.getColorStyle();await this.addLayer({id:this.table,service:"vector",url:`/api/vtile/${this.table}/ua/{z}/{x}/{y}.vmt?pointZoom=12`,layers:[{type:"fill","source-layer":this.table,paint:{"fill-color":y,"fill-opacity":.3,"fill-outline-color":["case",["==",["feature-state","hover"],!0],"red","#000000"]},filter:["all",["==",["geometry-type"],"Polygon"]]},{type:"circle","source-layer":this.table,filter:["all",["==",["geometry-type"],"Point"]],paint:{"circle-radius":{base:1.75,stops:[[10,5],[12,6],[18,12]]},"circle-stroke-color":["case",["==",["feature-state","hover"],!0],"red","#ccc"],"circle-stroke-width":["case",["==",["feature-state","hover"],!0],2,1],"circle-color":y}}]})},async createMap(){const y={version:8,glyphs:"https://cdn.softpro.ua/data/fonts/{fontstack}/{range}.pbf",sources:{},layers:[]};this.map=await new gc.Map({container:"maplibre-map",style:y,center:this.center,zoom:this.zoom,minZoom:5,maxBounds:this.maxBounds}),this.$parent.map=this.map,this.map.addControl(new gc.NavigationControl({visualizePitch:!0})),this.map.on("load",this.handleMapLoad)}}},pm={class:"vs-map-portal relative"};function fm(y,T,M,D,N,J){const S=ee.resolveComponent("MapLegend"),c=ee.resolveComponent("MapSlotLayers");return ee.openBlock(),ee.createElementBlock("div",pm,[ee.createElementVNode("div",{id:"maplibre-map",ref:"maplibreMap",style:ee.normalizeStyle({height:M.height,width:M.width})},null,4),ee.createVNode(S,{colors:N.colors},null,8,["colors"]),ee.createVNode(c,{map:N.map,baseLayers:M.basemap},null,8,["map","baseLayers"])])}const mm=Nr(dm,[["render",fm]]),gm={},_m={class:"flex-shrink-0 size-3.5",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ym=[ee.createStaticVNode('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>',9)];function xm(y,T){return ee.openBlock(),ee.createElementBlock("svg",_m,ym)}const vm=Nr(gm,[["render",xm]]),bm={},wm={xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right-collapse"},Sm=[ee.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),ee.createElementVNode("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"},null,-1),ee.createElementVNode("path",{d:"M15 4v16"},null,-1),ee.createElementVNode("path",{d:"M9 10l2 2l-2 2"},null,-1)];function Tm(y,T){return ee.openBlock(),ee.createElementBlock("svg",wm,Sm)}const Im=Nr(bm,[["render",Tm]]),Pm={},km={xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-tabler icons-tabler-outline icon-tabler-layout-sidebar-right-expand"},Cm=[ee.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1),ee.createElementVNode("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"},null,-1),ee.createElementVNode("path",{d:"M15 4v16"},null,-1),ee.createElementVNode("path",{d:"M10 10l-2 2l2 2"},null,-1)];function Em(y,T){return ee.openBlock(),ee.createElementBlock("svg",km,Cm)}const Am=Nr(Pm,[["render",Em]]),Mm={},zm={class:"shrink-0 size-3",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Dm=[ee.createElementVNode("path",{d:"M18 6 6 18"},null,-1),ee.createElementVNode("path",{d:"m6 6 12 12"},null,-1)];function Lm(y,T){return ee.openBlock(),ee.createElementBlock("svg",zm,Dm)}const Rm=Nr(Mm,[["render",Lm]]),Bm={props:{visible:{type:Boolean,default:()=>!1},title:{type:String,default:()=>""},size:{type:String,default:()=>""}},emits:["update:visible","onClose"],name:"vs-dialog",mounted(){window.addEventListener("keydown",this.checkKey)},unmounted(){window.removeEventListener("keydown",this.checkKey)},computed:{hasSlot(){var y;return!!((y=this.$slots)!=null&&y.footer)},checkSize(){return this.size==="small"?"w-5/12":this.size==="medium"?"w-6/12":"lg:w-7/12 w-11/12"}},methods:{checkKey({key:y}){y==="Escape"&&this.handleClose()},handleClose(){this.$emit("update:visible",!1),this.$emit("onClose")}}},zu=y=>(ee.pushScopeId("data-v-0a173fd8"),y=y(),ee.popScopeId(),y),Fm={class:"vsTailwind ui-dialog__wrapper"},Om={class:"w-full h-full fixed top-0 start-0 z-[80] bg-black bg-opacity-50"},Vm={class:"py-2.5 px-4 flex justify-between items-center border-b"},Nm={class:"font-medium text-gray-800"},jm=[zu(()=>ee.createElementVNode("span",{class:"sr-only"},"Close",-1)),zu(()=>ee.createElementVNode("svg",{class:"flex-shrink-0 w-4 h-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[ee.createElementVNode("path",{d:"M18 6 6 18"}),ee.createElementVNode("path",{d:"m6 6 12 12"})],-1))],Um={class:"ui-dialog__content p-4"},$m={key:0,class:"flex justify-end gap-x-2"};function qm(y,T,M,D,N,J){return ee.openBlock(),ee.createBlock(ee.Teleport,{to:"#modal"},[ee.createVNode(ee.Transition,{name:"fade"},{default:ee.withCtx(()=>[ee.withDirectives(ee.createElementVNode("div",Fm,[ee.createElementVNode("div",Om,[ee.createVNode(ee.Transition,{name:"content",appear:""},{default:ee.withCtx(()=>[ee.createElementVNode("div",{class:ee.normalizeClass(["ui-dialog__modal opacity-1 transition-all flex flex-col bg-white border pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl",[J.checkSize]])},[ee.createElementVNode("div",Vm,[ee.createElementVNode("h3",Nm,ee.toDisplayString(M.title),1),ee.createElementVNode("button",{type:"button",class:"size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600",onClick:T[0]||(T[0]=(...S)=>J.handleClose&&J.handleClose(...S))},jm)]),ee.createElementVNode("div",Um,[ee.renderSlot(y.$slots,"default",{},void 0,!0)]),J.hasSlot?(ee.openBlock(),ee.createElementBlock("div",$m,[ee.renderSlot(y.$slots,"footer",{},void 0,!0)])):ee.createCommentVNode("",!0)],2)]),_:3})])],512),[[ee.vShow,M.visible]])]),_:3})])}const Zm=Nr(Bm,[["render",qm],["__scopeId","data-v-0a173fd8"]]),Gm=ee.defineComponent({props:["title","table","rows","initTotal","colorAttr","maxBounds","id","isAutocomplete","zoom","maskForSearch"],mixins:[_c],components:{MapPortal:mm,NoData:Ap,FilterIcon:vm,VisibleMapIcon:Im,HiddenMapIcon:Am,CloseIcon:Rm,VsDialog:Zm},data(){return{filters:"",search:"",limit:20,polyline:null,filtersParam:"",isSelectObj:!1,selectedId:"",searchRegion:"",handleSearchRegionDebounced:Au(y=>this.updateSearchRegionValue(y),500),searchRegionResult:[],isRegionDropdownVisible:!1,selectedRow:"",activeFilters:"",isMapVisible:!0,tabsIsVisible:!1,filterUrl:"",currentPage:1,regionOptionGeneral:null,isFilterVisible:!1,tableData:null,hoverData:null,atuData:[],map:null,total:null,filterValues:"",activeFiltersCount:"",visibleTrue:!0,regionSelectValue:null,currentBbox:null,optionRowsCount:[{value:10,label:"10"},{value:20,label:"20"},{value:30,label:"30"}],handleDebouncedUpdateValue:Au(y=>{this.handleSearchValue(y)},10)}},watch:{map(){this.map.on("mousemove",this.handleMapHover),this.map.on("click",this.handleMapClick)},activeFiltersCount(){var y,T;return(T=(y=this.$refs)==null?void 0:y.filter)==null?void 0:T.filteredActiveFiltersLength},activeFilters(){var y,T;return this.isSelectObj&&this.moveToDefaultPage(),(T=(y=this.$refs)==null?void 0:y.filter)==null?void 0:T.activeFilters},isFilterVisible(y){y||this.getData()},async regionSelectValue(y,T){var N,J;if(!this.regionSelectValue)return;y&&this.selectedId&&this.closeObjCard(),this.polyline=this.regionSelectValue.encoded_geom,this.getData();const M=((N=this.regionSelectValue)==null?void 0:N.geom)||Ir.toGeoJSON(this.regionSelectValue.encoded_geom),D=this.map.getSource("region-search-id");if(this.currentBbox=Qf(M),D)D.setData({type:"Feature",geometry:M});else{this.map.addSource("region-search-id",{type:"geojson",data:{type:"Feature",geometry:M}});const S={id:"region-search-id",type:"line",source:"region-search-id",paint:{"line-color":"blue","line-opacity":1}};await this.map.addLayer(S)}this.moveLayer("site.prc.parcel_object.table"),(J=this.map)==null||J.fitBounds(this.currentBbox,{zoom:10,padding:20}),this.getData()}},created(){this.tableData=this.rows,this.total=this.initTotal,this.id&&(this.selectedRow=this.rows[0],this.selectedId=this.id,this.isSelectObj=!0)},mounted(){this.rows||this.getData(),this.getFilter()},updated(){this.checkFilterLength()},methods:{async updateSearchRegionValue(y){this.searchRegion=y,await this.getReginOptions()},async getData(){try{const y={search:this.search||null,limit:this.limit,page:this.currentPage,polyline:this.polyline};this.filtersParam!==""&&this.filtersParam!=="no-url"&&(y.filter=this.filtersParam);const{data:T}=await Gt.get(`/api/data/${this.table}`,{params:y});this.tableData=T==null?void 0:T.rows,this.total=T.total}catch(y){console.error(y.message)}},moveToDefaultPage(){var D;const y=new URLSearchParams(window.location.search);y.delete("id");const M=`${window.location.pathname}?${y.toString()}`;(D=this.map)==null||D.fitBounds(this.maxBounds,{}),window.history.pushState({},"",M),this.isSelectObj=!1},regionFullName(y){return`${y.text} / ${y.region}`},getLabelById(y){const T=this.filters.find(M=>M.id===y);return T?T.label:y},getOptionsLabelById(y,T){return Array.isArray(T)?this.filters.find(D=>D.id===y).options.filter(D=>T.includes(D.id)).map(D=>D.text).join(", "):T},async clearFilter(y){var T,M;await((M=(T=this.$refs)==null?void 0:T.filter)==null?void 0:M.clearFilter(y)),await this.updateTableAndMap(),await this.getData()},async getReginOptions(){if(this.searchRegion===""&&this.regionOptionGeneral)this.searchRegionResult=this.regionOptionGeneral;else try{const{data:y}=await Gt.get(`https://data.softpro.ua/api-user/suggest/atu.codifier.type.polyline.select?parent=H&key=${this.searchRegion}`);this.searchRegionResult=y,this.regionOptionGeneral||(this.regionOptionGeneral=y)}catch(y){console.error(y.message)}},handlePageChange(y){this.currentPage=y,this.getData()},async getFilter(){try{const{data:y}=await Gt.get(`/api/filter/${this.table}`);this.filters=y.list}catch(y){console.error(y.message)}},async handleSearchValue(y){this.search=y,await this.getData()},closeObjCard(){var D;const y=new URLSearchParams(window.location.search);y.delete("id");const M=`${window.location.pathname}?${y.toString()}`;(D=this.map)==null||D.fitBounds(this.currentBbox||this.maxBounds,{}),window.history.pushState({},"",M),this.isSelectObj=!1,this.getData()},async handleSearchRegionValue(y){var M;const T=this.map.getLayer("region-search-id");this.searchRegion=y,y===""&&T?((M=this.map)==null||M.fitBounds([[22,44.4],[40,52.5]],{}),this.currentBbox=null,this.polyline=null,this.map.removeLayer("region-search-id"),this.getData()):y===""&&this.getData()},handleFilterChange(y){this.currentPage=y.state.page||1,this.filterUrl=y.url.split("|").filter(T=>!T.includes("page=")).join("|")},async updateTableAndMap(){var y,T;this.filtersParam=this.filterUrl,this.activeFilters=(T=(y=this.$refs)==null?void 0:y.filter)==null?void 0:T.activeFilters,this.isFilterVisible=!1},handleFilterSubmit(){var y;this.isSelectObj="",this.selectedId="",this.selectedId=!1,(y=this.map)==null||y.fitBounds([[22,44.4],[40,52.5]],{}),this.isFilterVisible=!1},toggleFilterShown(){this.isFilterVisible=!this.isFilterVisible},closeFilterShown(){this.isFilterVisible=!1},toggleMapVisible(){this.isMapVisible=!this.isMapVisible},checkUrl(){const y=new URLSearchParams(window.location.search);y.has("id")?(this.isSelectObj=!0,this.isMapVisible=!0,this.selectedId=y.get("id")):(this.isSelectObj=!1,this.selectedId="")},changeLimit(y){this.limit=y,this.currentPage=1,this.getData()},filterModalClose(){this.toggleFilterShown(),this.isFilterVisible=!1},resetFilters(){this.$refs.filter&&(this.$refs.filter.clearAll(),this.search="",this.isFilterVisible=!1,this.filtersParam="",this.polyline=null,this.regionSelectValue=null,this.currentBbox=null,this.activeFilters=null,this.tabsIsVisible=!1,this.handleSearchRegionValue(""))},checkFilterLength(){var T,M;const y=(M=(T=this.$refs)==null?void 0:T.filter)==null?void 0:M.filteredActiveFiltersLength;y!==this.previousLength&&(this.previousLength=y,this.activeFiltersCount=y)},async handleMapClick(y){var J,S,c,xe,ye;const T=this.map.queryRenderedFeatures(y.point),M=window.location.pathname,D=new URLSearchParams(window.location.search);D.set("id",`${T[0].properties.id}`),this.getObjectData(T[0].properties.id);const N=`${M}?${D.toString()}`;window.history.pushState({},"",N),this.isSelectObj=!0,y.lngLat&&((ye=this.map)==null||ye.fitBounds([[(J=y.lngLat)==null?void 0:J.lng,(S=y.lngLat)==null?void 0:S.lat],[(c=y.lngLat)==null?void 0:c.lng,(xe=y.lngLat)==null?void 0:xe.lat]],{maxZoom:13,padding:30})),this.checkUrl()},async getObjectData(y){var T;try{const{data:M}=await Gt.get(`/api/data/${this.table}/${y}`);this.selectRow((T=M==null?void 0:M.rows)==null?void 0:T[0])}catch(M){console.error(M.message)}},async selectRow(y){var N,J,S,c,xe,ye,be,le,ae,ht,Ue,Je,Oe,ct,wt,ke,yt,ft,Ct,It;this.isMapVisible=!0,this.selectedRow=y;const T=window.location.pathname,M=new URLSearchParams(window.location.search);M.set("id",`${y.id}`);const D=`${T}?${M.toString()}`;window.history.pushState({},"",D),this.checkUrl(),y!=null&&y.geom&&(((N=y==null?void 0:y.geom)==null?void 0:N.coordinates.length)<=1?typeof((xe=(c=(S=(J=y==null?void 0:y.geom)==null?void 0:J.coordinates)==null?void 0:S[0])==null?void 0:c[0])==null?void 0:xe[0])=="number"?(le=this.map)==null||le.fitBounds((be=(ye=y==null?void 0:y.geom)==null?void 0:ye.coordinates)==null?void 0:be[0],{maxZoom:13,padding:30}):typeof((Je=(Ue=(ht=(ae=y==null?void 0:y.geom)==null?void 0:ae.coordinates)==null?void 0:ht[0])==null?void 0:Ue[0])==null?void 0:Je[0])=="object"&&((ke=this.map)==null||ke.fitBounds((wt=(ct=(Oe=y==null?void 0:y.geom)==null?void 0:Oe.coordinates)==null?void 0:ct[0])==null?void 0:wt[0],{maxZoom:13,padding:30})):(It=this.map)==null||It.fitBounds((Ct=(ft=(yt=y==null?void 0:y.geom)==null?void 0:yt.coordinates)==null?void 0:ft[0])==null?void 0:Ct[0],{maxZoom:13,padding:30})),this.isSelectObj=!0},async handleMapHover(y){var N;this.hoverObject&&(this.map.setFeatureState(this.hoverObject,{hover:!1}),this.hoverObject=null),this.popup||(this.popup=new gc.Popup({maxWidth:"400px",closeButton:!1,closeOnClick:!1}));const T=this.map.queryRenderedFeatures(y.point);if(this.map.getCanvas().style.cursor="pointer",!T.length||((N=T==null?void 0:T[0])==null?void 0:N.source)==="region-search-id"){this.map.getCanvas().style.cursor="",this.popup.remove();return}const M=T[0].geometry.coordinates.slice();this.hoverData=T[0].properties;const D={source:T[0].source,sourceLayer:T[0].sourceLayer,id:T[0].id};if(D.source!=="region-search-id"){for(this.map.setFeatureState(D,{hover:!0}),this.hoverObject=D;Math.abs(y.lngLat.lng-M[0])>180;)M[0]+=y.lngLat.lng>M[0]?360:-360;this.popup.setLngLat(y.lngLat).setHTML(this.$refs.popup.innerHTML).addTo(this.map)}}}}),Hm={class:"ml-3 pt-5"},Xm={class:"w-full gap-5 flex justify-between mb-[10px] pr-3"},Wm={class:"flex gap-[20px]"},Jm={key:0,class:"font-medium text-[10px] min-w-[16px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full"},Km={class:"p-4 flex-1 flex flex-wrap justify-end items-center gap-2"},Ym=["title"],Qm=ee.createElementVNode("span",{class:"sr-only"},"Відкрити мапу",-1),eg={class:"flex"},tg={class:"py-[15px] pb-[24px] pl-2"},ig={class:"font-bold text-2xl mr-[10px]"},rg={class:"text-sm text-stone-500 font-medium"},ng=ee.createElementVNode("span",{class:"text-sm text-stone-500 font-medium"}," об'єктів",-1),sg={class:"wrapperTable flex flex-col",style:{height:"calc(100vh - 302px)"}},og={key:0,class:"flex gap-x-2 flex-wrap"},ag={class:"font-medium"},lg=ee.createElementVNode("span",{class:"h-3 mx-2 border-s border-gray-200"},null,-1),cg={class:"text-gray-500"},hg=["onClick"],ug={key:0,class:"mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full"},dg=ee.createElementVNode("span",{class:"font-medium"}," Очистити ",-1),pg={key:2,class:"text-center py-28"},fg=ee.createElementVNode("h2",{class:"font-medium text-base text-gray-500 rounded-xl"}," За вашим запитом даних не знайдено! ",-1),mg=ee.createElementVNode("p",{class:"font-normal text-sm text-gray-500 rounded-xl"}," Введіть, будь ласка, інші значення для пошуку. ",-1),gg={key:0},_g={key:1,class:"my-5 pr-2"},yg={class:"flex justify-between"},xg={key:1,class:"w-2/4"},vg={class:"map-section"},bg={ref:"popup",style:{display:"none"}};function wg(y,T,M,D,N,J){const S=ee.resolveComponent("VsAutocompleteOption"),c=ee.resolveComponent("vs-autocomplete"),xe=ee.resolveComponent("VsTextMask"),ye=ee.resolveComponent("vs-text"),be=ee.resolveComponent("FilterIcon"),le=ee.resolveComponent("VsFilter"),ae=ee.resolveComponent("VsDialog"),ht=ee.resolveComponent("VisibleMapIcon"),Ue=ee.resolveComponent("HiddenMapIcon"),Je=ee.resolveComponent("CloseIcon"),Oe=ee.resolveComponent("NoData"),ct=ee.resolveComponent("VsPagination"),wt=ee.resolveComponent("MapPortal");return ee.openBlock(),ee.createElementBlock("section",Hm,[ee.createElementVNode("div",null,[ee.createElementVNode("div",Xm,[ee.createElementVNode("div",Wm,[y.isAutocomplete?(ee.openBlock(),ee.createBlock(c,{key:0,modelValue:y.regionSelectValue,"onUpdate:modelValue":[T[0]||(T[0]=ke=>y.regionSelectValue=ke),y.handleSearchRegionValue],searchable:"",clearable:"",searchPlaceholder:"Введіть назву громади",placeholder:"Обрати область чи громаду",onOnSearch:y.handleSearchRegionDebounced,onClick:y.getReginOptions,class:"w-[350px]"},{default:ee.withCtx(()=>[(ee.openBlock(!0),ee.createElementBlock(ee.Fragment,null,ee.renderList(y.searchRegionResult,ke=>(ee.openBlock(),ee.createBlock(S,{class:"cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800",key:ke==null?void 0:ke.id,value:ke,label:y.regionFullName(ke)},null,8,["value","label"]))),128))]),_:1},8,["modelValue","onOnSearch","onUpdate:modelValue","onClick"])):ee.createCommentVNode("",!0),y.maskForSearch?(ee.openBlock(),ee.createBlock(xe,{key:1,"model-value":y.search,"onUpdate:modelValue":y.handleDebouncedUpdateValue,class:"w-full table-interface-search [&>input:focus]:ring-1",placeholder:"Пошук",mask:y.maskForSearch,icon:"search",iconPosition:"left",clearable:"",style:{height:"38px","min-width":"300px","max-width":"300px"},ref:"searchInput"},null,8,["model-value","onUpdate:modelValue","mask"])):(ee.openBlock(),ee.createBlock(ye,{key:2,"model-value":y.search,"onUpdate:modelValue":y.handleDebouncedUpdateValue,class:"w-full table-interface-search [&>input:focus]:ring-1",placeholder:"Пошук",icon:"search","icon-position":"left",clearable:"",style:{height:"38px","min-width":"300px","max-width":"300px"},ref:"searchInput"},null,8,["model-value","onUpdate:modelValue"])),ee.createElementVNode("button",{type:"button",class:"py-2 px-2.5 max-h-[38px] inline-flex items-center gap-x-1.5 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",onClick:T[1]||(T[1]=(...ke)=>y.toggleFilterShown&&y.toggleFilterShown(...ke))},[ee.createVNode(be),ee.createTextVNode(" Фільтри "),y.activeFiltersCount>=1?(ee.openBlock(),ee.createElementBlock("span",Jm,ee.toDisplayString(y.activeFiltersCount),1)):ee.createCommentVNode("",!0)]),ee.createVNode(ae,{visible:y.isFilterVisible,"onUpdate:visible":T[4]||(T[4]=ke=>y.isFilterVisible=ke),title:"Фільтри",size:"small",onOnClose:T[5]||(T[5]=()=>{y.visibleTrue=!0,y.isFilterVisible=!1})},{footer:ee.withCtx(()=>[ee.createElementVNode("div",Km,[ee.createElementVNode("button",{onClick:T[2]||(T[2]=(...ke)=>y.resetFilters&&y.resetFilters(...ke)),class:"py-2 px-3 inline-flex justify-center items-center text-start bg-white border border-gray-200 text-gray-800 text-sm font-medium rounded-lg shadow-sm align-middle hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700"}," Очистити все "),ee.createElementVNode("button",{onClick:T[3]||(T[3]=(...ke)=>y.updateTableAndMap&&y.updateTableAndMap(...ke)),class:"py-2 px-3 inline-flex justify-center items-center gap-x-2 text-start bg-blue-600 border border-blue-600 text-white text-sm font-medium rounded-lg shadow-sm align-middle hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:ring-1 focus:ring-blue-300 dark:focus:ring-blue-500"}," Застосувати ")])]),default:ee.withCtx(()=>[y.filters?(ee.openBlock(),ee.createBlock(le,{key:0,ref:"filter",scheme:y.filters,closeFilterBtn:!0,onFilterClose:y.closeFilterShown,name:"filter",layout:"default",onFilterChange:y.handleFilterChange},null,8,["scheme","onFilterClose","onFilterChange"])):ee.createCommentVNode("",!0)]),_:1},8,["visible"])]),ee.createElementVNode("button",{type:"button",class:"py-2 px-2 inline-flex items-center gap-x-1.5 text-sm rounded-lg border border-gray-200 bg-white text-gray-600 shadow-sm hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100",title:y.isMapVisible?"Приховати карту":"Показати карту",onClick:T[6]||(T[6]=(...ke)=>y.toggleMapVisible&&y.toggleMapVisible(...ke))},[y.isMapVisible?(ee.openBlock(),ee.createBlock(ht,{key:0})):(ee.openBlock(),ee.createBlock(Ue,{key:1})),Qm],8,Ym)]),ee.createElementVNode("div",eg,[ee.createElementVNode("div",{class:ee.normalizeClass(["relative overflow-hidden",y.isMapVisible?"w-2/4 mr-0":"w-full mr-3",y.isSelectObj?"hidden":""])},[ee.createElementVNode("h1",tg,[ee.createElementVNode("span",ig,ee.toDisplayString(y.title),1),ee.createElementVNode("span",rg,ee.toDisplayString(y.total),1),ng]),ee.createElementVNode("div",sg,[y.activeFilters?(ee.openBlock(),ee.createElementBlock("div",og,[(ee.openBlock(!0),ee.createElementBlock(ee.Fragment,null,ee.renderList(y.activeFilters,(ke,yt,ft)=>(ee.openBlock(),ee.createElementBlock("span",{class:"mb-[10px] py-1 ps-3 pe-1 inline-flex items-center bg-white border border-gray-200 text-gray-800 text-xs rounded-full",key:ft},[ee.createElementVNode("span",ag,ee.toDisplayString(y.getLabelById(yt)),1),lg,ee.createElementVNode("span",cg,ee.toDisplayString(y.getOptionsLabelById(yt,ke)),1),ee.createElementVNode("button",{type:"button",class:"inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",onClick:Ct=>y.clearFilter(yt)},[ee.createVNode(Je)],8,hg)]))),128)),Object.keys(y.activeFilters).length>=2?(ee.openBlock(),ee.createElementBlock("span",ug,[dg,ee.createElementVNode("button",{type:"button",class:"inline-flex shrink-0 justify-center items-center size-5 ms-1 rounded-full text-gray-600 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 text-sm",onClick:T[7]||(T[7]=(...ke)=>y.resetFilters&&y.resetFilters(...ke))},[ee.createVNode(Je)])])):ee.createCommentVNode("",!0)])):ee.createCommentVNode("",!0),y.total>=1?ee.renderSlot(y.$slots,"table",{key:1,rows:y.tableData,map:y.map,selectRow:y.selectRow,getData:y.getData}):(ee.openBlock(),ee.createElementBlock("div",pg,[ee.createVNode(Oe),fg,mg,ee.createElementVNode("button",{type:"button",class:"mt-[10px] py-2 px-2.5 inline-flex items-center gap-x-1.5 text-xs rounded-lg border border-stone-200 bg-white text-stone-800 shadow-sm hover:bg-stone-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-stone-100",onClick:T[8]||(T[8]=(...ke)=>y.resetFilters&&y.resetFilters(...ke))}," Очистити дані пошуку ")]))]),y.total>=1?(ee.openBlock(),ee.createElementBlock("hr",gg)):ee.createCommentVNode("",!0),y.total>=1?(ee.openBlock(),ee.createElementBlock("div",_g,[ee.createElementVNode("div",yg,[ee.createVNode(ct,{total:y.total,maxPages:7,defaultPage:y.currentPage,pageSize:y.limit,goTo:!1,size:"medium",onPageChange:y.handlePageChange,backgroundColor:"#e5e7eb",borderedCellSelected:"true",pageSizes:[10,20,30],onPageSizeChange:y.changeLimit},null,8,["total","defaultPage","pageSize","onPageChange","onPageSizeChange"])])])):ee.createCommentVNode("",!0)],2),y.isSelectObj?(ee.openBlock(),ee.createElementBlock("div",{key:0,class:ee.normalizeClass(y.isMapVisible?"w-2/4 mr-0 pb-5":"w-full pb-5 mr-3"),style:{height:"calc(100vh - 152px)"}},[ee.renderSlot(y.$slots,"details",{table:y.table,selectedId:y.selectedId,selectedRow:y.selectedRow,map:y.map,closeObjCard:y.closeObjCard})],2)):ee.createCommentVNode("",!0),y.isMapVisible?(ee.openBlock(),ee.createElementBlock("div",xg,[ee.createElementVNode("section",vg,[ee.createVNode(wt,{height:"calc(100vh - 152px)",width:"w-2/4",table:y.table,filtersParam:y.filtersParam,row:y.selectedRow,colorAttr:y.colorAttr,maxBounds:y.maxBounds,zoom:y.zoom},null,8,["table","filtersParam","row","colorAttr","maxBounds","zoom"])])])):ee.createCommentVNode("",!0)]),ee.createElementVNode("div",bg,[ee.renderSlot(y.$slots,"popup",{data:y.hoverData})],512)])])}const Du=Nr(Gm,[["render",wg]]),Lu={install:y=>{y.component("VsPartsMap",Du)},components:{VsPartsMap:Du}};return typeof window<"u"&&(window.PartsMap=Lu),Lu});
|