PageSourceSearch

https://www.vesturbyggd.is/_nuxt/Do1qjhro.js

js vesturbyggd.is collected 2026-10-02 19:43:29 UTC 5,033 bytes, 1 lines download raw bytes

1import{az as A,aw as C,a3 as L,ak as I,_ as W,aj as T,r as B,o as p,c as _,a as b,j as M,k as v,b as N,H as P,n as k,J as j}from"./BFgVWu3r.js";function V(e){return A()?(C(e),!0):!1}function E(e){return typeof e=="function"?e():L(e)}const x=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const H=Object.prototype.toString,q=e=>H.call(e)==="[object Object]",g=()=>{},z=D();function D(){var e,o;return x&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((o=window==null?void 0:window.navigator)==null?void 0:o.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function h(e){var o;const t=E(e);return(o=t==null?void 0:t.$el)!=null?o:t}const S=x?window:void 0;function w(...e){let o,t,s,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,s,a]=e,o=S):[o,t,s,a]=e,!o)return g;Array.isArray(t)||(t=[t]),Array.isArray(s)||(s=[s]);const c=[],u=()=>{c.forEach(r=>r()),c.length=0},d=(r,f,n,i)=>(r.addEventListener(f,n,i),()=>r.removeEventListener(f,n,i)),m=I(()=>[h(o),E(a)],([r,f])=>{if(u(),!r)return;const n=q(f)?{...f}:f;c.push(...t.flatMap(i=>s.map(l=>d(r,i,l,n))))},{immediate:!0,flush:"post"}),y=()=>{m(),u()};return V(y),y}let O=!1;function G(e,o,t={}){const{window:s=S,ignore:a=[],capture:c=!0,detectIframe:u=!1}=t;if(!s)return g;z&&!O&&(O=!0,Array.from(s.document.body.children).forEach(n=>n.addEventListener("click",g)),s.document.documentElement.addEventListener("click",g));let d=!0;const m=n=>a.some(i=>{if(typeof i=="string")return Array.from(s.document.querySelectorAll(i)).some(l=>l===n.target||n.composedPath().includes(l));{const l=h(i);return l&&(n.target===l||n.composedPath().includes(l))}}),r=[w(s,"click",n=>{const i=h(e);if(!(!i||i===n.target||n.composedPath().includes(i))){if(n.detail===0&&(d=!m(n)),!d){d=!0;return}o(n)}},{passive:!0,capture:c}),w(s,"pointerdown",n=>{const i=h(e);d=!m(n)&&!!(i&&!n.composedPath().includes(i))},{passive:!0}),u&&w(s,"blur",n=>{setTimeout(()=>{var i;const l=h(e);((i=s.document.activeElement)==null?void 0:i.tagName)==="IFRAME"&&!(l!=null&&l.contains(s.document.activeElement))&&o(n)},0)})].filter(Boolean);return()=>r.forEach(n=>n())}const R={props:{ariaLabel:{default:"",type:String},link:{default:"/",type:String},small:{default:0,type:Number},tooltipType:{default:"info",type:String},icon:{default:"",type:String},iconImage:{default:"",type:String},title:{default:"",type:String},gaEvent:{default:function(e){return e.title??"N/A"},type:String},bubble:{default:""},closeOnClick:{default:!1,type:Boolean},buttonClass:{default:""}},setup(){return{target:T(null)}},data(){return{isOpen:!1}},watch:{$route:function(){this.isOpen=!1},isOpen(){if(this._tabindex.length>0)for(let e=0;e<this._tabindex.length;e++)this.isOpen?this._tabindex[e].tabIndex=0:this._tabindex[e].tabIndex=-1}},methods:{toggle(){const e=this.$refs.content.getBoundingClientRect();e.left<0?(this.$refs.content.style.left=Math.abs(e.left-15)+"px",this.$refs.content.style.maxWidth=document.body.clientWidth-30+"px"):e.width+e.left>document.body.clientWidth&&(this.$refs.content.style.left=document.body.clientWidth-(e.width+e.left)+15+"px",this.$refs.content.style.maxWidth=document.body.clientWidth-30+"px"),this.isOpen=!this.isOpen,this.isOpen},close(){this.isOpen=!1},closeOnEsc(e){this.isOpen&&e.keyCode==27&&(this.isOpen=!1)}},mounted(){G(this.$refs.target,e=>this.isOpen=!1),document.addEventListener("keydown",this.closeOnEsc,!1),this._links=this.$refs.content.getElementsByTagName("a"),this._tabindex=this.$refs.content.querySelectorAll("a, input, button, textarea");for(let e=0;e<this._tabindex.length;e++)this._tabindex[e].tabIndex=-1;if(this.closeOnClick)for(let e=0;e<this._links.length;e++)this._links[e].addEventListener("click",this.close,!1)},beforeUnmount(){if(document.removeEventListener("keydown",this.closeOnEsc,!1),this.closeOnClick)for(let e=0;e<this._links.length;e++)this._links[e].removeEventListener("click",this.close,!1)}},F=["aria-label","aria-pressed","aria-expanded"],J=["src"],U=["innerHTML"],K=["title"],Q={class:"tooltip-content"},X={ref:"content"};function Y(e,o,t,s,a,c){const u=B("svg-symbol");return p(),_("div",{class:k({tooltip:!0,open:a.isOpen,"has-icon":t.icon.length>0||t.iconImage.length>0,small:t.small}),ref:"target"},[b("button",{onClick:o[0]||(o[0]=P((...d)=>c.toggle&&c.toggle(...d),["prevent"])),class:k(t.buttonClass),"aria-label":t.ariaLabel?t.ariaLabel:t.title,"aria-pressed":""+a.isOpen,"aria-expanded":""+a.isOpen,"aria-haspopup":"true"}
1,[t.icon?(p(),M(u,{key:0,name:t.icon,class:"icon"},null,8,["name"])):v("",!0),t.iconImage?(p(),_("img",{key:1,src:t.iconImage,class:"icon",alt:""},null,8,J)):v("",!0),b("span",{innerHTML:t.title},null,8,U),N(u,{name:"chevron-bottom",class:"chevron"}),t.bubble?(p(),_("span",{key:2,class:"tooltip-bubble",title:t.bubble},null,8,K)):v("",!0)],10,F),b("div",Q,[b("div",X,[j(e.$slots,"default")],512)])],2)}const $=W(R,[["render",Y]]);export{$ as T};

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.