PageSourceSearch

https://businessindexnorth.com/dist/all/chunks/9611-59e3050dc2676fd5f90a.js

js businessindexnorth.com collected 2026-09-26 02:41:27 UTC 5,116 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkwips_components_scripts||=[]).push([[9611],{"40ac71df3ba3cdce"(e,a,l){l.r(a),l.d(a,{default:()=>p});var n=l("b641633d6c906d19"),t=l("99c472be6da17922"),u=l("a54fa6d0a722ba3f"),o=l("96f8457767283f96"),r=(l("1519ef9f27f54b60"),l("07a8db537f1fb869"),l("27e0a48d3d4d9aab"),l("25dbc9f26b2fba79")),i=l("738709c0302cbc29"),s=l("2c955294755a99bf");const c=(0,n.pM)({name:"google-map",inheritAttrs:!1,props:{apiKey:{},latitude:{},longitude:{},mapType:{default:""},zoom:{default:4},markers:{default:null},animateMarkers:{default:"none"},mapUrl:{default:null}},emits:["update:zoom","click:position"],setup(e,{emit:a}){const l=e,{latitude:t,longitude:o}=(0,u.QW)(l),c=a,f=(0,u.KR)(!1),v=(0,n.rk)("mapEl"),p=(0,u.IJ)(null);let m=[];const d=(0,u.KR)(!1);let g=null;const y=(0,u.KR)(!1),k=(0,u.IJ)(null),h=(0,u.IJ)(null),w=(0,u.IJ)(null),L=(0,n.EW)(()=>null!==k.value&&null!==w.value&&null!==h.value);(0,n.nT)(async()=>{s.default.addChangeListener(async()=>{y.value=await s.default.awaitConsent("google-maps")}),y.value=await s.default.awaitConsent("google-maps")}),(0,n.nT)(async()=>{y.value&&null===k.value&&f.value&&(k.value=await(0,i.lB)("core"))}),(0,n.nT)(async()=>{y.value&&null===h.value&&f.value&&(h.value=await(0,i.lB)("marker"))}),(0,n.nT)(async()=>{y.value&&null===w.value&&f.value&&(w.value=await(0,i.lB)("maps"))}),(0,n.nT)(async()=>{y.value&&(f.value||((0,i.hn)({key:l.apiKey,v:"weekly"}),f.value=!0))});const N=(0,n.EW)(()=>null!==t.value&&null!==o.value),b=(0,n.EW)(()=>l.markers?l.markers.map(e=>e.latLng):N.value&&null!==t.value&&null!==o.value?[[t.value,o.value]]:[]);function T(e,a){const{LatLng:l}=k.value;return new l(e,a)}function M(){if(N.value&&null!==t.value&&null!==o.value&&!isNaN(t.value)&&!isNaN(o.value))return T(t.value,o.value);if(1==b.value.length){const e=b.value[0];if(!isNaN(e[0]??null)&&!isNaN(e[1]??null))return T(e[0],e[1])}return T(67,14)}function B(e){const a=e.getPosition();return[a?.lat()??NaN,a?.lng()??NaN]}function C(e){e.setMap(null),m=m.filter(a=>a!==e)}const{proxy:I}=(0,n.nI)();async function _(){const{InfoWindow:e}=w.value;g=new e,m.filter(e=>!function(e){return function(e){const[a,l]=B(e);return b.value.filter(([e,n])=>a==e&&l==n)}(e).length>0}(e)).forEach(C),b.value.filter(([e,a])=>!isNaN(e)&&!isNaN(a)&&!function(e,a){return function(e,a){return m.map(B).filter(([l,n])=>e==l&&a==n)}(e,a).length>0}(e,a)).forEach(([e,a])=>function(e,a,n=null,t=null,u=null,o=!1){let r=null;("all"==l.animateMarkers||"primary"==l.animateMarkers&&o)&&(r=h.value?.Animation?.BOUNCE??null);const i=function(e){const{Marker:a}=h.value;return new a(e)}({position:{lat:e,lng:a},title:n??void 0,map:p.value,animation:r});if(r&&setTimeout(()=>{i.setAnimation(null)},1500),m=[...m,i],n&&n.length||t&&t.length){let e='<div class="wMarker">';e+=null==n?"":`<p>${n}</p>`,e+=t?`<p><a href="${t}">${u??(s="See page",I?.$t?I.$t(s):s)}</a></p>`:"",e+="</div>",i.addListener("click",()=>{g?.close(),g?.setContent(e),g?.open(i.getMap(),i)})}var s}(e,a,function(e,a){return l.markers?.filter(l=>l.latLng[0]==e&&l.latLng[1]==a).map(e=>e.title).shift()??null}(e,a),function(e,a){return l.markers?.filter(l=>l.latLng[0]==e&&l.latLng[1]==a).map(e=>e.url).shift()??null}(e,a),function(e,a){return l.markers?.filter(l=>l.latLng[0]==e&&l.latLng[1]==a).map(e=>e.urlTitle).shift()??null}(e,a),function(e,a){return l.markers?.filter(l=>l.latLng[0]==e&&l.latLng[1]==a).map(e=>e.isDefaultLocation).shift()??null}(e,a)));const a=p.value;if(!a)return;(N.value||b.value.length<=1)&&a.panTo(M());const n=l.zoom;a.getZoom()!=n&&null!==n&&a.setZoom(n)}function E(){c("update:zoom",p.value?.getZoom()??null)}function z(e){e.latLng&&p.value&&c("click:position",e.latLng.lat(),e.latLng.lng(),p.value.getZoom()??l.zoom)}const A=(0,r.A)(()=>{_()},10);return(0,n.wB)(()=>t.value,()=>A()),(0,n.wB)(()=>o.value,()=>A()),(0,n.wB)(()=>l.markers,()=>A(),{deep:!0}),(0,n.wB)(()=>l.zoom,()=>A()),(0,n.nT)(async()=>{if(v.value&&!p.value&&y.value&&L.value)try{const e=function(e,a){const{Map:l}=w.value;return new l(e,a)}(v.value,function(){const{MapTypeId:e}=w.value,a=(l.mapType||"roadmap").toString().toUpperCase(),n=e&&e[a]?e[a]:e?.ROADMAP??void 0,t={zoom:l.zoom??4,mapTypeId:n,gestureHandling:"greedy",center:M()};return l.mapUrl?{...t,mapTypeControlOptions:{mapTypeIds:["custom"]}}:t}());if(p.value=e,e.addListener("zoom_changed",E),e.addListener("click",z),await _(),b.value.length>=2){const a=function(){const{LatLngBounds:e}=k.value;return new e}();b.value.map(([e,a])=>
1T(e,a)).forEach(e=>a.extend(e)),e.fitBounds(a)}d.value=!0}catch(e){console.error(e)}}),(e,a)=>((0,n.uX)(),(0,n.CE)("div",{class:"wMapInner",ref_key:"mapEl",ref:v},null,512))}}),f=(0,l("461bee8a7784aa7f").A)(c,[["__scopeId","data-v-04822026"]]);var v=l("c4faff47f4272c43");const p=(0,n.pM)({inheritAttrs:!1,__name:"GoogleMaps",setup(e){const{rootClass:a,rootStyle:l,innerAttrs:r}=(0,v._)();return(e,i)=>((0,n.uX)(),(0,n.Wv)(o.default,{service:"google-maps",class:(0,t.C4)((0,u.R1)(a)),style:(0,t.Tr)((0,u.R1)(l))},{default:(0,n.k6)(()=>[(0,n.bF)(f,(0,t._B)((0,n.Ng)((0,u.R1)(r))),null,16)]),_:1},8,["class","style"]))}})}}]);

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.