vendor: 3,827 bytes, line 1
1import{_ as P}from"./BiBTDyO_.js";import{_ as j}from"./C5IWWPaD.js";import{u as A}from"./BivXcOgd.js";import{d as R,r as $,o as x,h as S,e as _,g as F,X as y,c as O,i as T,U,S as D,V as N}from"./BrAVzony.js";function B(s,e,t,i){function n(r){return r instanceof t?r:new t(function(o){o(r)})}return new(t||(t=Promise))(function(r,o){function c(l){try{p(i.next(l))}catch(h){o(h)}}function a(l){try{p(i.throw(l))}catch(h){o(h)}}function p(l){l.done?r(l.value):n(l.value).then(c,a)}p((i=i.apply(s,[])).next())})}function K(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var G=function s(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var i,n,r;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(n=i;n--!==0;)if(!s(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(r=Object.keys(e),i=r.length,i!==Object.keys(t).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[n]))return!1;for(n=i;n--!==0;){var o=r[n];if(!s(e[o],t[o]))return!1}return!0}return e!==e&&t!==t},H=K(G);const L="__googleMapsScriptId";var m;(function(s){s[s.INITIALIZED=0]="INITIALIZED",s[s.LOADING=1]="LOADING",s[s.SUCCESS=2]="SUCCESS",s[s.FAILURE=3]="FAILURE"})(m||(m={}));class f{constructor({apiKey:e,authReferrerPolicy:t,channel:i,client:n,id:r=L,language:o,libraries:c=[],mapIds:a,nonce:p,region:l,retries:h=3,url:d="https://maps.googleapis.com/maps/api/js",version:u}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=i,this.client=n,this.id=r||L,this.language=o,this.libraries=c,this.mapIds=a,this.nonce=p,this.region=l,this.retries=h,this.url=d,this.version=u,f.instance){if(!H(this.options,f.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(f.instance.options)}`);return f.instance}f.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?m.FAILURE:this.done?m.SUCCESS:this.loading?m.LOADING:m.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(i=>{i?t(i.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id)){this.callback();return}const i={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};
1Object.keys(i).forEach(r=>!i[r]&&delete i[r]),!((t=(e=window==null?void 0:window.google)===null||e===void 0?void 0:e.maps)===null||t===void 0)&&t.importLibrary||(r=>{let o,c,a,p="The Google Maps JavaScript API",l="google",h="importLibrary",d="__ib__",u=document,g=window;g=g[l]||(g[l]={});const k=g.maps||(g.maps={}),E=new Set,v=new URLSearchParams,C=()=>o||(o=new Promise((w,b)=>B(this,void 0,void 0,function*(){var I;yield c=u.createElement("script"),c.id=this.id,v.set("libraries",[...E]+"");for(a in r)v.set(a.replace(/[A-Z]/g,M=>"_"+M[0].toLowerCase()),r[a]);v.set("callback",l+".maps."+d),c.src=this.url+"?"+v,k[d]=w,c.onerror=()=>o=b(Error(p+" could not load.")),c.nonce=this.nonce||((I=u.querySelector("script[nonce]"))===null||I===void 0?void 0:I.nonce)||"",u.head.append(c)})));k[h]?console.warn(p+" only loads once. Ignoring:",r):k[h]=(w,...b)=>E.add(w)&&C().then(()=>k[h](w,...b))})(i);const n=this.libraries.map(r=>this.importLibrary(r));n.length||n.push(this.importLibrary("core")),Promise.all(n).then(()=>this.callback(),r=>{const o=new ErrorEvent("error",{error:r});this.loadErrorCallback(o)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},t)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading=!0,this.setScript()}}}const q={class:"inner grid-container"},Z=["innerHTML"],J={class:"text-content"},V=["innerHTML"],z={class:"links"},W=R({__name:"Contact",props:{title:{},text:{},links:{},lat:{},lng:{},mapstyle:{},popuptext:{},markerimg:{},markerlink:{},apikey:{},markertitle:{},header:{},headerLayout:{},headerPosition:{},headerLink:{},subheader:{},uid:{},index:{},appearance:{}},setup(s){var c;const e=s,t=A(),i=$(),n={center:{lat:parseFloat(e.lat),lng:parseFloat(e.lng)},zoom:12,styles:e.mapstyle},r={position:n.center,title:e.markertitle,map:i.value,icon:(c=e.markerimg)!=null&&c.length?t(e.markerimg[0].publicUrl):""},o={content:e.popuptext,ariaLabel:e.markertitle};return x(async()=>{const a=new f({apiKey:e.apikey,version:"weekly",libraries:["places"]}),{Map:p,InfoWindow:l}=await a.importLibrary("maps"),{Marker:h}=await a.importLibrary("marker");new l(o);const d=new p(i.value,n),u=new h(r);u.addListener("click",function(){window.open(e.markerlink)}),u.setMap(d)}),(a,p)=>{const l=P,h=j;return _(),S(h,{class:"mask_contact grid-container",appearance:a.appearance,uid:a.uid},{default:F(()=>[y("div",q,[a.title?(_(),O("h2",{key:0,class:"title",innerHTML:a.title},null,8,Z)):T("",!0),y("div",J,[y("div",{class:"text",innerHTML:a.text},null,8,V),y("div",z,[(_(!0),O(U,null,D(a.links,(d,u)=>(_(),S(l,{key:u,link:d.link,linktext:d.linktext},null,8,["link","linktext"]))),128))])]),y("div",{class:"google-map",ref_key:"mapElement",ref:i},null,512)])]),_:1},8,["appearance","uid"])}}}),te=N(W,[["__scopeId","data-v-9fc1499e"]]);export{te as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.