PageSourceSearch

https://www.ejendomstorvet.dk/static/common/chunks/advertiser-button-K4DXYCPF.js

js ejendomstorvet.dk collected 2026-10-10 01:43:58 UTC 2,275 bytes, 11 lines download raw bytes

1(function(){try{var g=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};g["__faroBundleId_property-service-fe"]="17907670384669a12511e9a"}catch(l){}})();
2import{b as d}from"./chunk-5AT27TGU.js";import"./chunk-WXFZQRVN.js";import"./chunk-JZH5Z5KY.js";import"./chunk-3US2ZRJW.js";import"./chunk-ZVTA7OEG.js";import{j as r}from"./chunk-2RBL5GHV.js";import"./chunk-W7DIY7RR.js";import"./chunk-BYEROBVP.js";import{b as f,c as h}from"./chunk-S4FCNSYT.js";import"./chunk-RBZZE42N.js";import{a,c as u}from"./chunk-RYPY2VDG.js";import{a as c,f as o}from"./chunk-TGGTN5UE.js";import"./chunk-PXDFPG3W.js";import"./chunk-HYBUO2X3.js";import"./chunk-TCYZ5OSS.js";import{d as l,j as i}from"./chunk-RWLKHJSR.js";import"./chunk-F5RU64Y4.js";import"./chunk-2ECAQYI3.js";import"./chunk-OJM7V2ZY.js";import{f as s}from"./chunk-AB2CI46F.js";var m="/medlem/konto/opret-konto",g="/medlem/annoncer/annonce",b=f("translations.fe_lits.advertiserButton"),n=class extends o{constructor(){super(...arguments);this.hasAccountsHint=l()}createRenderRoot(){return this}getClickTrackingAction(){return(this.userInfo?.roles?.length??0)>0?"create-advertisement":"create-account"}connectedCallback(){super.connectedCallback(),this.unsubscribeUser=i.subscribe(t=>{this.userInfo=t});let e=i.peek();e!==void 0&&(this.userInfo=e)}disconnectedCallback(){this.unsubscribeUser?.(),super.disconnectedCallback()}async onClick(e){if(this.userInfo){r(this.getClickTrackingAction(),void 0,"light");return}e.preventDefault();let t=await d();t==="success"?(r(this.getClickTrackingAction(),void 0,"light"),window.location.href=m):t==="register"&&(window.location.href="/opret-bruger")}onAuxClick(e){e.button===1&&this.userInfo&&r(this.getClickTrackingAction(),void 0,"light")}render(){let e=this.userInfo!==void 0?(this.userInfo?.roles?.length??0)>0:this.hasAccountsHint,t=m,p=g,k=this.userInfo?e?p:t:"#";return c`
3      <a
4        class="et-button is-primary-light advertiser-button__cta"
5        href=${k}
6        @click=${this.onClick}
7        @auxclick=${this.onAuxClick}
8      >
9        <span ${h(b.key(e?"createListing":"becomeAdvertiser"))}></span>
10      </a>
11    `}};s([u()],n.prototype,"userInfo",2),n=s([a("advertiser-button")],n);export{n as AdvertiserButton};

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.