PageSourceSearch

https://qq338a9.com/chunk-HLIXR2YU.js

js qq338a9.com collected 2026-10-09 22:45:35 UTC 10,321 bytes, 1 lines download raw bytes

1import{a as ce}from"./chunk-E6EX7YGY.js";import{a as M}from"./chunk-XDKBG2CE.js";import{a as le}from"./chunk-GNSVSSEC.js";import{a as ue}from"./chunk-WTEBCJXP.js";import{a as se}from"./chunk-AAEX34ES.js";import{a as R}from"./chunk-FFTXNXI6.js";import"./chunk-MFY6GL67.js";import"./chunk-FD55Q7R4.js";import"./chunk-WQGKT4QG.js";import{j as oe}from"./chunk-LBFZVMBI.js";import{n as re}from"./chunk-SQXH55RY.js";import"./chunk-FZLMV5FP.js";import{O as ae}from"./chunk-2RZNBXEW.js";import"./chunk-WUS6VI32.js";import{B as A,Y as ie,i as B,j as O,k as F,p as N,q as te,qa as ne,r as j,sa as D}from"./chunk-LKIBVTZY.js";import{b as ee}from"./chunk-IXSVJUWF.js";import"./chunk-VXMZGT4Q.js";import{$ as Q,$a as K,A as x,B as T,Da as p,Ia as d,Ja as g,Ka as y,La as U,Ma as z,Oa as q,Ra as w,Sa as b,Za as W,_a as J,bb as h,cb as C,da as G,db as k,ga as s,ha as m,mb as X,nb as H,p as P,pb as E,s as L,sb as u,tb as _,ub as Z,xa as I}from"./chunk-LZGEQQYD.js";import"./chunk-BW2TMJN6.js";import{g as ve}from"./chunk-RNQ7BUHW.js";var V=ve(ue());var $=(()=>{let a=class a{constructor(t,e){this.globalData=t,this.langService=e}transform(t,e="date",n,c="default"){let f=new Date(t);if(t==null||f=="Invalid Date")return t;{let r=n||(c==="browser"?navigator.language:this.langService.language);if(V.default.locale(r),r==="th-TH"){let S=this.globalData.buddhistYearExtra||543;f.setFullYear(f.getFullYear()+S)}let l=(0,V.default)(f),v=l.format("L");switch(e){case"dateTime":v+=l.format(" HH:mm");break;case"dateTimes":v+=l.format(" HH:mm:ss");break;case"times":v=l.format("HH:mm:ss");break;case"firstOfDay":v=l.startOf("day").format("YYYY-MM-DD HH:mm:ss");break;case"lastOfDay":v=l.endOf("day").format("YYYY-MM-DD HH:mm:ss");break}return v}}};a.\u0275fac=function(e){return new(e||a)(m(D,16),m(F,16))},a.\u0275pipe=L({name:"localeDate",type:a,pure:!0,standalone:!0});let i=a;return i})();var Ie=i=>({open:i});function be(i,a){i&1&&y(0,"i",11)}function we(i,a){i&1&&y(0,"i",12)}function Ce(i,a){i&1&&y(0,"i",13)}function De(i,a){if(i&1&&y(0,"div",14),i&2){let o=b(2);p("innerHtml",o.item.content,Q)}}function xe(i,a){if(i&1){let o=q();d(0,"div",1)(1,"div",2),w("click",function(){x(o);let e=b();return T(e.onRead(e.item))}),d(2,"span",3),I(3,be,1,0,"i",4)(4,we,1,0,"i",5),g(),d(5,"p",6),h(6),u(7,"customDate"),u(8,"date"),g(),d(9,"p",7),h(10),g(),I(11,Ce,1,0,"i",8),g(),I(12,De,1,1,"div",9),d(13,"button",10),w("click",function(){x(o);let e=b();return T(e.isOpen=!1)}),h(14),u(15,"translate"),g()()}if(i&2){let o=b();p("ngClass",E(15,Ie,o.isOpen)),s(3),p("ngIf",o.notifyService.nowTab===0),s(),p("ngIf",o.notifyService.nowTab===1),s(2),k(" ",Z(8,10,_(7,8,o.item.createTime),"yyyy/MM/dd")," "),s(4),C(o.item.title),s(),p("ngIf",o.item.noticeType==0&&!o.item.qqEventNoticeId),s(),p("ngIf",o.item.noticeType==0&&!o.item.qqEventNoticeId),s(2),k(" ",_(15,13,"informationPage.showLess")," ")}}var fe=(()=>{let a=class a{constructor(t,e,n,c,f,r,l,v,S,Y,ge){this.notifyService=t,this.cmsService=e,this.globalData=n,this.localeDatePipe=c,this.customDatePipe=f,this.datePipe=r,this.langService=l,this.screenOrientation=v,this.iab=S,this.appConfigService=Y,this.sanitizer=ge,this.isOpen=!1,this.item=null}onRead(t){if(t.content=this.updateBirthDateInHtml(t.content),t.noticeType==1&&t.qqEventNoticeId){this.globalData.isApp||open("","qqevent");let e=this.appConfigService.getConfig("hostUrl");this.notifyService.getQQEventToken().then(()=>{if(this.notifyService.qQEventToken)if(this.globalData.isApp){window.scroll(0,0);var n=this.iab.create("".concat(e,"/qqtime/auth/autologin?token=").concat(this.notifyService.qQEventToken,"&noticeId=").concat(t.qqEventNoticeId,"&lang=").concat(this.langService.language));n.on("loadstop").subscribe(c=>{this.screenOrientation.unlock()}),n.on("exit").subscribe(c=>{this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT),this.goBack("")})}else{let f={key:"qqevent",url:"".concat(e,"/qqtime/auth/autologin?token=").concat(this.notifyService.qQEventToken,"&noticeId=").concat(t.qqEventNoticeId,"&lang=").concat(this.langService.language)};window.opener?window.opener.parent.postMessage(f,"*"):window.parent.postMessage(f,"*")}});return}this.isOpen=!this.isOpen,this.isOpen&&this.notifyService.readNews(t.id)}ngAfterViewInit(){document.querySelectorAll(".msg-content p").forEach(e
1=>e.setAttribute("style","word-break: break-all"))}goBack(t){history.go(-1)}updateBirthDateInHtml(t){let n=new DOMParser().parseFromString(t,"text/html"),c=n.querySelector("td#birthValue");if(!c)return t;let f=c.textContent.trim();if(/^\d{1,2}\s*\/\s*\d{1,2}\s*\/\s*\d{4}$/.test(f)){let l=f.split("/").map(Y=>Y.trim()),v="".concat(l[2],"-").concat(l[1].padStart(2,"0"),"-").concat(l[0].padStart(2,"0")),S=this.datePipe.transform(this.customDatePipe.transform(new Date(v)),"yyyy/MM/dd");c.textContent=S.toString()}return n.body.innerHTML}updateTableStylesInHtml(t){let n=new DOMParser().parseFromString(t,"text/html");return n.querySelectorAll("table").forEach(r=>{r.setAttribute("style",this.mergeStyle(r.getAttribute("style")," border-collapse: collapse; text-align: center;"))}),n.querySelectorAll("td, th").forEach(r=>{r.setAttribute("style",this.mergeStyle(r.getAttribute("style"),"word-break: break-word; white-space: normal;"))}),n.body.innerHTML}mergeStyle(t,e){if(!t)return e;let n=t.split(";").map(r=>r.trim()).filter(r=>r.length>0),c=e.split(";").map(r=>r.trim()).filter(r=>r.length>0),f=new Map;return n.forEach(r=>{let[l,v]=r.split(":").map(S=>S.trim());l&&f.set(l,v)}),c.forEach(r=>{let[l,v]=r.split(":").map(S=>S.trim());l&&f.set(l,v)}),Array.from(f.entries()).map(([r,l])=>"".concat(r,": ").concat(l)).join("; ")+";"}};a.\u0275fac=function(e){return new(e||a)(m(R),m(ae),m(D),m($),m(M),m(A),m(F),m(re,8),m(ne,8),m(ee),m(ie))},a.\u0275cmp=P({type:a,selectors:[["app-information-card"]],inputs:{item:"item"},standalone:!0,features:[X([$,M]),H],decls:1,vars:1,consts:[["class","item",3,"ngClass",4,"ngIf"],[1,"item",3,"ngClass"],[1,"msg-title",3,"click"],[1,"email"],["class","icon-NoRead",4,"ngIf"],["class","icon-Read",4,"ngIf"],[1,"date"],[1,"subject",2,"word-break","break-all"],["class","icon-bannerarrow",4,"ngIf"],["class","msg-content",3,"innerHtml",4,"ngIf"],[1,"btn-show-less",3,"click"],[1,"icon-NoRead"],[1,"icon-Read"],[1,"icon-bannerarrow"],[1,"msg-content",3,"innerHtml"]],template:function(e,n){e&1&&I(0,xe,16,17,"div",0),e&2&&p("ngIf",n.item)},dependencies:[j,N,A,M,O,B],styles:["tr td{word-break:break-word;white-space:normal}"]});let i=a;return i})();var Te=["main"],de=i=>({active:i});function ke(i,a){if(i&1&&(U(0),y(1,"app-information-card",13),z()),i&2){let o=a.$implicit;s(),p("item",o)}}function Ee(i,a){i&1&&(d(0,"p",14),h(1),u(2,"translate"),g()),i&2&&(s(),k(" ",_(2,1,"informationPage.noMessage"),""))}function Me(i,a){i&1&&(d(0,"div",15),y(1,"img",16),d(2,"p",17),h(3),u(4,"translate"),g(),d(5,"p",18),h(6),u(7,"translate"),g()()),i&2&&(s(3),C(_(4,2,"informationPage.noMessages")),s(3),C(_(7,4,"informationPage.inboxEmpty")))}function Pe(i,a){if(i&1){let o=q();d(0,"app-pagination",19),w("newItemEvent",function(e){x(o);let n=b(2);return T(n.getNewData(e))}),g()}if(i&2){let o=b(2);p("pageInfo",o.notifyService.notifyData.page)}}function qe(i,a){if(i&1&&(d(0,"div",8),I(1,ke,2,1,"ng-container",9)(2,Ee,3,3,"p",10)(3,Me,8,6,"div",11)(4,Pe,1,1,"app-pagination",12),g()),i&2){let o=b();s(),p("ngForOf",o.notifyService.notifyData.model)("ngForTrackBy",o.trackById),s(),p("ngIf",o.globalData.isMobileStyle&&o.notifyService.notifyData.model.length===0),s(),p("ngIf",!o.globalData.isMobileStyle&&o.notifyService.notifyData.model.length===0),s(),p("ngIf",!o.globalData.isMobileStyle&&o.notifyService.notifyData)}}function He(i,a){i&1&&y(0,"app-bottom-menu")}var Ze=(()=>{let a=class a{constructor(t,e){this.globalData=t,this.notifyService=e,this.infoMenu=["Read","Unread"]}ngOnInit(){this.globalData.loading=!0,this.notifyService.nowTab=0,this.notifyService.getUnReadData()}trackById(t,e){return e.id}onWindowScroll(){if(this.notifyService.continueGetData&&!this.notifyService.noMoreData&&this.globalData.isMobileStyle){let t=document.documentElement,n=(t.scrollHeight-t.clientHeight)/100*90;t.scrollTop>n&&(this.notifyService.page+=1,this.notifyService.continueGetData=!1,this.fetchByTab())}}getNewData(t){switch(t){case"next":this.notifyService.page+=1;break;case"pre":this.notifyService.page-=1;break;default:let e=parseInt(t);this.notifyService.page=e;break}this.fetchByTab()}
1fetchByTab(){this.notifyService.nowTab===0?this.notifyService.getUnReadData():this.notifyService.getReadData()}};a.\u0275fac=function(e){return new(e||a)(m(D),m(R))},a.\u0275cmp=P({type:a,selectors:[["app-information"]],viewQuery:function(e,n){if(e&1&&W(Te,5),e&2){let c;J(c=K())&&(n.main=c.first)}},hostBindings:function(e,n){e&1&&w("scroll",function(){return n.onWindowScroll()},!1,G)},standalone:!0,features:[H],decls:17,vars:18,consts:[[1,"app"],[3,"title","allRead"],[1,"sub-nav"],[3,"ngClass"],[3,"click"],[1,"big-block"],["class","msg-block",4,"ngIf"],[4,"ngIf"],[1,"msg-block"],[4,"ngFor","ngForOf","ngForTrackBy"],["data-show","mobile","class","alert-note",4,"ngIf"],["data-show","web-window","class","no-msg-alert",4,"ngIf"],[3,"pageInfo","newItemEvent",4,"ngIf"],[3,"item"],["data-show","mobile",1,"alert-note"],["data-show","web-window",1,"no-msg-alert"],["src","../../../../assets/images/svg/noMessage.svg","alt",""],[1,"heading"],[1,"info"],[3,"newItemEvent","pageInfo"]],template:function(e,n){e&1&&(d(0,"div",0),y(1,"app-title-nav",1),u(2,"translate"),d(3,"main")(4,"div",2)(5,"ul")(6,"li",3)(7,"a",4),w("click",function(){return n.notifyService.changeTab(0)}),h(8),u(9,"translate"),g()(),d(10,"li",3)(11,"a",4),w("click",function(){return n.notifyService.changeTab(1)}),h(12),u(13,"translate"),g()()()(),d(14,"div",5),I(15,qe,5,5,"div",6),g()(),I(16,He,1,0,"app-bottom-menu",7),g()),e&2&&(s(),p("title",_(2,8,"accountPage.information"))("allRead",n.notifyService.isUnreadExist),s(5),p("ngClass",E(14,de,n.notifyService.nowTab===0)),s(2),C(_(9,10,"informationPage.unread")),s(2),p("ngClass",E(16,de,n.notifyService.nowTab===1)),s(2),C(_(13,12,"informationPage.read")),s(3),p("ngIf",n.notifyService.notifyData),s(),p("ngIf",n.globalData.isMobileStyle))},dependencies:[le,N,j,te,fe,ce,se,O,B],encapsulation:2,data:{animation:[oe]}});let i=a;return i})();export{Ze as InformationComponent};

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.