PageSourceSearch

https://www.trademe.co.nz/a/static/login-modal.component-Cc4ym4as.js

js trademe.co.nz collected 2026-09-24 08:40:21 UTC 2,676 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a487e7b5-6e6d-52c4-ac3a-99d3fd98b98b")}catch(e){}}();
3import {j as je}from'./chunk-C30O8YIE.js';import {a5 as R,a8 as ce,aq as k,j as jM,ar as Hb,H as Hr,a as jb,L as Lb,as as mc,I as Ia,o as kD,q as _D,p as bf,C as X_,D as TD,ag as W,at as so,ak as Xp,aj as An,au as s,av as n,aw as $i,ax as t,ay as f_}from'./main-CAjEjBVh.js';import {r}from'./chunk-YA-QRxSh.js';var $={title:"Log in | Trade Me",description:"Log in to your My Trade Me account.",noPostfix:true},J=(()=>{let o=class o{constructor(e,t){this._router=e,this._store=t,this._destroyed$=new W,this._previousMetaData=new so(1);}onMessage(e){typeof e.data=="object"&&e.data.type==="auth-iframe-escape-key-pressed"&&this.closeModal();}ngOnInit(){this._store.select(r.metaData).pipe(Xp(this._destroyed$),An(1)).subscribe(e=>{this._previousMetaData.next(e),this._store.dispatch(new s($));}),this._store.select(n.isLoggedIn).pipe($i(this._store.select(t.currentFeature)),Xp(this._destroyed$)).subscribe(([e,t])=>{if(!e)return;let i=t.homePage?["/"]:[{outlets:{modal:null}}];this.onAlreadyLoggedIn(i);});}onAlreadyLoggedIn(e){this._previousMetaData.pipe(An(1),Xp(this._destroyed$)).subscribe(t=>{this._router.navigate(e,{queryParamsHandling:"preserve"}),this._store.dispatch(new s(t));});}ngOnDestroy(){this._destroyed$.next();}closeModal(){this._previousMetaData.pipe(An(1),Xp(this._destroyed$)).subscribe(e=>{this._store.dispatch(new s(e)),this._router.url.split("?")[0]==="/login-modal"?this._router.navigate(["/"],{queryParamsHandling:"preserve"}):this._router.navigate(["",{outlets:{modal:null}}],{queryParamsHandling:"preserve"});});}};o.\u0275fac=function(t){return new(t||o)(R(ce),R(k))},o.\u0275cmp=jM({type:o,selectors:[["tm-login-modal"]],hostAttrs:["ngSkipHydration","true"],hostBindings:function(t,i){t&1&&kD("message",function(P){return i.onMessage(P)},f_);},decls:4,vars:1,consts:[[3,"close"],[3,"showServerHeading"]],template:function(t,i){t&1&&(Ia(0,"tg-modal",0),kD("close",function(){return i.closeModal()}),_D(1,"tg-modal-header"),Ia(2,"tg-modal-body"),_D(3,"tm-auth-service-login-iframe",1),bf()()),t&2&&(X_(3),TD("showServerHeading",false));},dependencies:[Hb,Hr,jb,Lb,mc,je],styles:[".login-modal__close[_ngcontent-%COMP%]{z-index:1;min-width:60px;min-height:60px;float:right}"]});let a=o;return a})();export{J as LoginModalComponent};//# sourceMappingURL=login-modal.component-Cc4ym4as.js.map
4
5//# debugId=a487e7b5-6e6d-52c4-ac3a-99d3fd98b98b

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.