import{h as n}from"./p-23450e8b.js";function t(n){return document.querySelector(n!=undefined?`gl-map#${n}`:"gl-map")}function e(t){if(t.image!=undefined)return n("ion-thumbnail",{slot:"start"},n("img",{src:t.image}))}function o(n,t=","){if(n==undefined)return[];if(Array.isArray(n))return n;return n.split(t)}const i=function(){let n;return function(t){if(n==undefined)n=document.createElement("a");n.href=t;return n.href}}();async function u(n,t,e){let o=await fetch(n+t,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});let i=await o.blob();const u=window.navigator;if(u.msSaveOrOpenBlob){u.msSaveOrOpenBlob(i,`${t}.pdf`)}else{window.open(window.URL.createObjectURL(i))}}async function r(n){let t=document.querySelector(n);if(t==null){t=document.createElement(n);document.body.appendChild(t)}return typeof t.componentOnReady==="function"?t.componentOnReady():Promise.resolve(t)}export{i as a,u as b,e as c,r as f,t as g,o as t};
//# sourceMappingURL=p-d8674de4.js.map