PageSourceSearch

https://statics.mitula.com/front/56b3417b/adform/bundle-wl_duplicatedClickModal.js

js mitula.com collected 2026-10-03 21:33:05 UTC 8,445 bytes, 1 lines download raw bytes

1(()=>{(()=>{"use strict";class he{setItem(e,t){try{localStorage&&localStorage.setItem(e,t)}catch{}}getValue(e){try{return localStorage&&localStorage.getItem(e)}catch{return null}}getObject(e){try{return localStorage&&JSON.parse(localStorage.getItem(e))}catch{return null}}}class o{constructor(){o.subscribersWithIds={},o.isDebug=new he().getValue("debugEvents")==="true"}subscribe(e,t){const l=`${Date.now()}-${Math.random().toString(36).substring(7)}`;return this.subscribeWithId(e,{id:l,callback:t}),this}subscribeWithId(e,t){const s=(o.subscribersWithIds[e]||[]).filter(i=>i.id!==t.id);return o.subscribersWithIds[e]=[...s,t],this}unsubscribe(e,t){const l=o.subscribersWithIds[e]||[];o.subscribersWithIds[e]=l.filter(s=>s.id!==t.id)}logEmittedEvent(e){console.log(`[EventBus] Emitting event type "${e.type}":`);const t=e.payload||{};console.table({type:e.type,...Object.entries(t).reduce((l,[s,i])=>i instanceof HTMLElement?{...l,[s]:`#${i.id}`}:{...l,[s]:i},{})})}emit(e){o.isDebug&&this.logEmittedEvent(e);const t=o.subscribersWithIds[e.type]||[];for(const l of t)l.callback(e)}emitMany(e){e.forEach(t=>this.emit(t))}static getInstance(){return window.eventBusInstance||(window.eventBusInstance=new o),window.eventBusInstance}}const ve=class h{constructor(e){this.type=h.TYPE,this.payload=e}};ve.TYPE="wl-page-loaded";let Yt=null;const ye=class v{constructor(e){this.type=v.TYPE,this.payload=e}};ye.TYPE="wl-linear-selector-filter-input-click";let wt=null;const Pe=class y{constructor(e){this.type=y.TYPE,this.payload=e}};Pe.TYPE="wl-linear-selector-filter-input-click";let _t=null;const ge=class P{constructor(e){this.type=P.TYPE,this.payload=e}};ge.TYPE="wl-select-change";let mt=null;const Ce=class g{constructor(e){this.type=g.TYPE,this.payload=e}};Ce.TYPE="wl-selector-container-filter-click";let ft=null;const Te=class C{constructor(e){this.type=C.TYPE,this.payload=e}};Te.TYPE="wl-dropdown-element-click";let bt=null;const ke=class T{constructor(e){this.type=T.TYPE,this.payload=e}};ke.TYPE="wl-autocomplete-response";let Ot=null;const Se=class k{constructor(e){this.type=k.TYPE,this.payload=e}};Se.TYPE="wl-gallery-photo-clicked";let It=null;const Ye=class S{constructor(){this.type=S.TYPE}};Ye.TYPE="wl-fullscreen-gallery-opened";let Ft=null;const we=class Y{constructor(){this.type=Y.TYPE}};we.TYPE="wl-fullscreen-gallery-closed";let Dt=null;const _e=class w{constructor(e){this.type=w.TYPE,this.payload=e}};_e.TYPE="wl-gallery-reload-navigation";let Mt=null;const me=class _{constructor(e){this.type=_.TYPE,this.payload=e}};me.TYPE="wl-listing-highlight-click";let Gt=null;const fe=class m{constructor(e){this.type=m.TYPE,this.payload=e}};fe.TYPE="wl-applied-form";let Nt=null;const be=class f{constructor(e){this.type=f.TYPE,this.payload=e}};be.TYPE="wl-multi-enquiry-phone-listings-impression";let Lt=null;const r=class b{constructor(e){this.type=b.TYPE,this.payload=e}};r.TYPE="wl-fullpage-modal-open";let Oe=r;const Ie=class O{constructor(e){this.type=O.TYPE,this.payload=e}};Ie.TYPE="wl-modal-opened";let At=null;const Fe=class I{constructor(e){this.type=I.TYPE,this.payload=e}};Fe.TYPE="wl-fullpage-modal-opened";let Bt=null;const d=class F{constructor(e){this.type=F.TYPE,this.payload=e}};d.TYPE="wl-fullpage-modal-close";let De=d;const Me=class D{constructor(e){this.type=D.TYPE,this.payload=e}};Me.TYPE="wl-fullpage-modal-closed";let xt=null;const Ge=class M{constructor(e){this.type=M.TYPE,this.payload=e}};Ge.TYPE="wl-obfuscated-element-clicked";let Ut=null;const Ne=class G{constructor(e){this.type=G.TYPE,this.payload=e}};Ne.TYPE="wl-projectUnit-element-clicked";let Wt=null;const Le=class N{constructor(e){this.type=N.TYPE,this.payload=e}};Le.TYPE="wl-contact-modal-form-displayed";let Rt=null;const Ae=class L{constructor(e){this.type=L.TYPE,this.payload=e}};Ae.TYPE="wl-agency-phone-modal-opened";let Vt=null;const Be=class A{constructor(e){this.type=A.TYPE,this.payload=e}};Be.TYPE="wl-agency-phone-button-clicked";let jt=null;const xe=class B{constructor(e){this.type=B.TYPE,this.payload=e}};xe.TYPE="wl-phone-tracking-modal-open";let Ht=null;const Ue=class x{constructor(e){this.type=x.TYPE,this.payload=e}};Ue.TYPE="wl-chat-button-clicked";let qt=null;const We=class U{constructor(e){this.type=U.TYPE,this.payload=e}};We.TYPE="wl-open-social-network";let $t=null;const Re=class W{constructor(e){this.type=W.TYPE,this.payload=e}};Re.TYPE="wl-sticky-contact-button-clicked";let Jt=null;const Ve=class R{constructor(e){this.type=R.TYPE,this.payload=e}};Ve.TYPE="wl-sticky-schedule-button-clicked";let Kt=null;const je=class V{constructor(e){this.type=V.TYPE,this.payload=e}};je.TYPE="wl-serp-snippet-clicked";let zt=null;const He=class j{constructor(e){this.type=j.TYPE,this.payload=e}};He.TYPE="wl-serp-snippet-view-extended-description-clicked";let Qt=null;const qe=class H{constructor(e){this.type=H.TYPE,this.payload=e}};qe.TYPE="wl-serp-filter-button-clicked";let Xt=null;const $e=class q{constructor(){this.type=q.TYPE}};$e.TYPE="wl-serp-listings-updated";let Zt=null;const Je=class ${constructor(e){this.type=$.TYPE,this.payload=e}};Je.TYPE="wl-serp-listings-appended";let en=null;const Ke=class J{constructor(e){this.type=J.TYPE,this.payload=e}};Ke.TYPE="wl-serp-snippet-contact-button-clicked";let tn=null;const ze=class K{constructor(){this.type=K.TYPE}};ze.TYPE="wl-refresh-swipe-component";let nn=null;const Qe=class z{constructor(){this.type=z.TYPE}};Qe.TYPE="wl-phone-Contact-sent";let ln=null;const Xe=class Q{constructor(e){this.type=Q.TYPE,this.payload=e}};Xe.TYPE="wl-serp-snippet-extended-description-clicked";let on=null;const Ze=class X{constructor(){this.type=X.TYPE}};Ze.TYPE="wl-tracking-alert-creation-impression-event";let sn=null;var et=(n=>(n[n.SIGN_IN=0]="SIGN_IN",n[n.CLOSE=1]="CLOSE",n[n.NOT_USED=2]="NOT_USED",n))(et||{});const tt=class Z{constructor(e){this.type=Z.TYPE,this.payload=e}};tt.TYPE="wl-google-one-tap-sign-in";let cn=null;const nt=class ee{constructor(e){this.type=ee.TYPE,this.payload=e}};nt.TYPE="wl-google-one-tap-first-sign-in";let an=null;const lt=class te{constructor(e){this.type=te.TYPE,this.payload=e}};lt.TYPE="wl-google-one-tap-close";let rn=null;const ot=class ne{constructor(e){this.type=ne.TYPE,this.payload=e}};ot.TYPE="wl-google-one-tap-not-displayed";let dn=null;const st=class le{constructor(e){this.type=le.TYPE,this.payload=e}};st.TYPE="wl-web-push-notification-granted";let En=null;const it=class oe{constructor(e){this.type=oe.TYPE,this.payload=e}};it.TYPE="wl-web-push-notification-denied";let pn=null;const ct=class se{constructor(e){this.type=se.TYPE,this.payload=e}};ct.TYPE="wl-point-of-capture-exit";let un=null;const at=class ie{constructor(){this.type=ie.TYPE}};at.TYPE="wl-notice-click-agree";let hn=null;const E=class ce{constructor(){this.type=ce.TYPE}};E.TYPE="wl-notice-click-disagree";let rt=E;class dt{constructor(){this.type=rt.TYPE}}dt.TYPE="wl-click-agree-to-all";const Et=class ae{constructor(){this.type=ae.TYPE}};Et.TYPE="wl-consent-cookie-is-already-set";let vn=null;const pt=class re{constructor(e){this.type=re.TYPE,this.payload=e}};pt.TYPE="wl-user-has-not-interacted";let yn=null;const ut=class de{constructor(e){this.type=de.TYPE,this.payload=e}};ut.TYPE="wl-form-fields-stored";let Pn=null;const ht=class Ee{constructor(){this.type=Ee.TYPE}};ht.TYPE="wl-serp-map-close-popup";let gn=null;const vt=class pe{constructor(e){this.type=pe.TYPE,this.payload=e}};vt.TYPE="wl-new-page-view-id";let Cn=null;const yt=class ue{constructor(e){this.type=ue.TYPE,this.payload=e}};yt.TYPE="wl-form-submit";let Tn=null;async function Pt(n,e){try{const t=await fetch(n.url(e.listingId),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e.brandParams,pageViewId:e.pageViewId,excludedListingIds:e.excludedListingIds,currentOrigin:e.currentOrigin})});return t.status!==200?"":await t.text()}catch{return""}}const c="duplicated-click-listing-modal",gt=".js-dcm-cards",Ct=".js-dcm-see-again",Tt=".js-dcm-close";let a=!1;function kn(){a=!1}function p(){return document.getElementById(c)}async function kt(n,e,t){const l=p();if(!l)return!1;const s=l.querySelector(gt),i=l.querySelector(Ct);if(!s||!i)return!1;const u=await Pt(e,n);return u.trim()?(i.href=t.seeAgainHref,s.innerHTML=u,St(l),o.getInstance().emit(new Oe({id:c})),!0):!1}function St(n){a||(n.querySelector(Tt)?.addEventListener("click",()=>{o.getInstance().emit(new De({id:c}))}),a=!0)}window.wlDuplicatedClickModal={show:kt,shell:p}})();})();

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.