PageSourceSearch

https://88betda.com/chunk-GI62F7MF.js

js 88betda.com collected 2026-10-09 23:36:00 UTC 13,425 bytes, 1 lines download raw bytes

1import{a as se}from"./chunk-XDKBG2CE.js";import{a as re}from"./chunk-GNSVSSEC.js";import{a as oe}from"./chunk-AAEX34ES.js";import"./chunk-FFTXNXI6.js";import"./chunk-MFY6GL67.js";import"./chunk-FD55Q7R4.js";import{b as ne}from"./chunk-5LWFT2LT.js";import{a as ie}from"./chunk-O5RKV2DG.js";import"./chunk-WQGKT4QG.js";import"./chunk-LBFZVMBI.js";import{b as M}from"./chunk-SQXH55RY.js";import{A as te,c as X,g as Z,l as ee}from"./chunk-FZLMV5FP.js";import{O as N,x as V}from"./chunk-2RZNBXEW.js";import"./chunk-WUS6VI32.js";import{B as R,e as Q,i as L,j as _,p as w,q as T,r as O,sa as D}from"./chunk-LKIBVTZY.js";import"./chunk-IXSVJUWF.js";import"./chunk-VXMZGT4Q.js";import{A as H,B as P,Da as c,Ia as s,Ja as a,K as W,Ka as d,La as G,Ma as Y,Oa as A,Ra as v,Sa as g,bb as C,cb as S,da as b,db as B,ga as r,ha as l,jb as q,kb as z,lb as J,nb as y,p as I,pb as k,qb as j,rb as K,sb as m,tb as f,ub as $,xa as h}from"./chunk-LZGEQQYD.js";import"./chunk-BW2TMJN6.js";import"./chunk-RNQ7BUHW.js";var ve=e=>({active:e});var U=(()=>{let i=class i{constructor(n,o,t){this.cmsService=n,this.accountInfoService=o,this.globalData=t,this.type=0,this.voucherType=0,this.voucherCode="",this.isActive=!1,this.refreshVoucherList=new W}onInputChange(){this.isActive=this.voucherCode.trim()!==""}voucherSubmit(){this.accountInfoService.voucherSubmit(this.voucherCode).subscribe(n=>{n.code===0&&this.voucherType===1&&(this.refreshVoucherList.emit(),this.globalData.showDirectAlert("voucherPage.successfullyClaimed",1),this.cmsService.updateCode(n.code),this.cmsService.updateVoucherCode(this.voucherCode),this.type=1),n.code===0&&(this.globalData.showDirectAlert("voucherPage.successfullyClaimed",1),this.cmsService.updateCode(n.code),this.cmsService.updateVoucherCode(this.voucherCode),this.type=1),this.voucherCode="",this.globalData.loading=!1})}};i.\u0275fac=function(o){return new(o||i)(l(N),l(M),l(D))},i.\u0275cmp=I({type:i,selectors:[["app-inputBinding"]],inputs:{type:"type",voucherType:"voucherType"},outputs:{refreshVoucherList:"refreshVoucherList"},standalone:!0,features:[y],decls:6,vars:11,consts:[[1,"form"],["type","text","inputmode","search",1,"voucher-Input",3,"ngModelChange","input","placeholder","ngModel"],["app-debounce-click","",1,"voucher-code-input",3,"click","ngClass","disabled"]],template:function(o,t){o&1&&(s(0,"div",0)(1,"input",1),m(2,"translate"),J("ngModelChange",function(x){return z(t.voucherCode,x)||(t.voucherCode=x),x}),v("input",function(){return t.onInputChange()}),a(),s(3,"button",2),v("click",function(){return t.voucherSubmit()}),C(4),m(5,"translate"),a()()),o&2&&(r(),c("placeholder",f(2,5,"voucherPage.enterTheVoucherCode")),q("ngModel",t.voucherCode),r(2),c("ngClass",k(9,ve,t.isActive))("disabled",!t.voucherCode.trim()),r(),B("",f(5,7,"voucherPage.redeem")," "))},dependencies:[_,L,te,X,Z,ee,w],encapsulation:2});let e=i;return e})();var fe=(e,i)=>({"voucher-Unusedimg":e,"voucher-Expiredimg":i}),ge=(e,i)=>({"Voucher-code":e,"Voucher-usedcode":i}),Ce=(e,i,p)=>({Unbind:e,"Is-Bind":i,"Expired-Bind":p});function Ie(e,i){if(e&1){let p=A();s(0,"div",11),v("click",function(){H(p);let o=g();return P(o.copyMessage(o.code))}),a()}}function ye(e,i){e&1&&(s(0,"div",12),C(1),m(2,"translate"),a()),e&2&&(r(),B(" ",f(2,1,"rewardPage.voucherCodeCopied")," "))}function _e(e,i){if(e&1&&(s(0,"span",13)(1,"span",14),C(2),m(3,"translate"),a(),s(4,"span"),C(5),m(6,"customDate"),m(7,"date"),a()()),e&2){let p=g();r(2),S(f(3,2,"voucherPage.expiryDate")),r(3),S($(7,6,f(6,4,p.parsedTime),"yyyy/MM/dd HH:mm:ss"))}}function Se(e,i){e&1&&(s(0,"span",14),C(1),m(2,"translate"),a()),e&2&&(r(),S(f(2,1,"voucherPage.expiryDate")))}function xe(e,i){if(e&1&&(s(0,"span"),C(1),m(2,"customDate"),m(3,"date"),a()),e&2){let p=g();r(),S($(3,3,f(2,1,p.parsedTime),"yyyy/MM/dd HH:mm:ss"))}}var E=(()=>{let i=class i{get parsedTime(){return new Date(this.time)}constructor(n,o,t,u){this.cmsService=n,this.clipboard=o,this.accountInfoService=t,this.globalData=u,this.name="",this.code="",this.time="",this.isCopy=!1,this.voucherCode="",this.successCode$=this.cmsService.codeSource$.asObservable(),this.successVoucherCode$=this.cmsService.voucherCodeSource$.asObservable()}ngOnInit(){this.successCode$.subscribe(n=>{this.submitCode=n,this.checkVoucherSubmit()}),this.successVoucherCode$.subscribe(n=>{this.voucherCode=n,this.checkVoucherSubmit()})}checkVoucherSubmit(){this.submitCode===0&&this.voucherCode===this.code&&(this.t
1ype=1)}copyMessage(n){this.isCopy=!1,n&&(this.clipboard.copy(n),this.isCopy=!0),setTimeout(()=>{this.isCopy=!1},1500)}voucherSubmit(){this.accountInfoService.voucherSubmit(this.code).subscribe(n=>{n.code===0&&(this.globalData.showDirectAlert("voucherPage.successfullyClaimed",1),this.type=1),this.globalData.loading=!1})}};i.\u0275fac=function(o){return new(o||i)(l(N),l(ie),l(M),l(D))},i.\u0275cmp=I({type:i,selectors:[["app-voucherItem"]],inputs:{name:"name",code:"code",time:"time",type:"type"},standalone:!0,features:[y],decls:21,vars:27,consts:[[1,"form"],[1,"voucher-box"],[3,"ngClass"],[1,"voucher-Unusedinfo"],[1,"Voucher-name"],["class","Shape",3,"click",4,"ngIf"],["class","alert-note fixed fade-out",4,"ngIf"],[3,"click","ngClass"],["class","Expire-Bind-Date",4,"ngIf"],["class","Expire-Date",4,"ngIf"],[4,"ngIf"],[1,"Shape",3,"click"],[1,"alert-note","fixed","fade-out"],[1,"Expire-Bind-Date"],[1,"Expire-Date"]],template:function(o,t){o&1&&(s(0,"div",0)(1,"div",1),d(2,"div",2),s(3,"div",3)(4,"span",4),C(5),a(),s(6,"div")(7,"span",2),C(8),a(),h(9,Ie,1,0,"div",5),a(),h(10,ye,3,3,"div",6),s(11,"div",7),v("click",function(){return t.type===0?t.voucherSubmit():null}),s(12,"span"),C(13),m(14,"translate"),m(15,"translate"),m(16,"translate"),a()(),s(17,"div"),h(18,_e,8,9,"span",8)(19,Se,3,3,"span",9)(20,xe,4,6,"span",10),a()()()()),o&2&&(r(2),c("ngClass",j(17,fe,t.type===0||1,t.type===2)),r(3),S(t.name),r(2),c("ngClass",j(20,ge,t.type===0||1,t.type===2)),r(),S(t.code),r(),c("ngIf",t.type!==2),r(),c("ngIf",t.isCopy),r(),c("ngClass",K(23,Ce,t.type===0,t.type===1,t.type===2)),r(2),B(" ",t.type===0?f(14,11,"voucherPage.redeem"):t.type===1?f(15,13,"voucherPage.claimed"):f(16,15,"voucherPage.expired")," "),r(5),c("ngIf",t.type===2),r(),c("ngIf",t.type!==2),r(),c("ngIf",t.type!==2))},dependencies:[_,L,se,O,w,R],encapsulation:2});let e=i;return e})();function Te(e,i){if(e&1&&(s(0,"div"),d(1,"app-voucherItem",3),a()),e&2){let p=i.$implicit,n=g();r(),c("name",p.voucherName)("code",p.voucherCode)("time",p.endTime)("type",n.voucherType)}}var de=(()=>{let i=class i{constructor(n){this.httpService=n,this.voucherType=0,this.pageIndex=1,this.voucherListItem={voucherName:"",voucherCode:"",endTime:new Date},this.voucherListAllItem=[],this.noMoreData=!1,this.voucherCode=""}ngOnInit(){this.getVoucherList()}getVoucherList(){let n={type:this.voucherType,pageIndex:this.pageIndex};this.httpService.getVoucherList(n).subscribe(o=>{o.code===0&&o.data.list.length>0?(this.voucherListItem=o.data.list,this.voucherListItem.forEach(t=>{this.voucherListAllItem.push(t)})):this.noMoreData=!0})}onScroll(n){let o=window.innerHeight,t=document.documentElement.scrollHeight,u=window.scrollY;this.voucherListItem.length===0||this.noMoreData||u+o>=t-100&&(clearTimeout(this.scrollAddPageIndex),this.scrollAddPageIndex=setTimeout(()=>{this.pageIndex+=1,this.getVoucherList()},100))}ngOnDestroy(){clearTimeout(this.scrollAddPageIndex)}};i.\u0275fac=function(o){return new(o||i)(l(V))},i.\u0275cmp=I({type:i,selectors:[["app-voucherUnused"]],hostBindings:function(o,t){o&1&&v("scroll",function(x){return t.onScroll(x)},!1,b)},standalone:!0,features:[y],decls:4,vars:1,consts:[[1,"voucher-block","under-topic"],[1,"col"],[4,"ngFor","ngForOf"],[3,"name","code","time","type"]],template:function(o,t){o&1&&(s(0,"div",0)(1,"div",1),d(2,"app-inputBinding"),h(3,Te,2,4,"div",2),a()()),o&2&&(r(3),c("ngForOf",t.voucherListAllItem))},dependencies:[T,_,U,E],encapsulation:2});let e=i;return e})();function be(e,i){if(e&1&&(s(0,"div"),d(1,"app-voucherItem",4),a()),e&2){let p=i.$implicit,n=g();r(),c("name",p.voucherName)("code",p.voucherCode)("time",p.endTime)("type",n.voucherType)}}var me=(()=>{let i=class i{constructor(n){this.httpService=n,this.voucherType=1,this.pageIndex=1,this.voucherListItem={voucherName:"",voucherCode:"",endTime:new Date},this.voucherListAllItem=[],this.noMoreData=!1,this.voucherCode=""}ngOnInit(){this.getVoucherList()}getVoucherList(){let n={type:this.voucherType,pageIndex:this.pageIndex};this.httpService.getVoucherList(n).subscribe(o=>{o.code===0&&o.data.list.length>0?(this.voucherListItem=o.data.list,this.voucherListItem.forEach(t=>{this.voucherListAllItem.push(t)})):this.noMoreData=!0})}onScroll(n){let o=window.innerHeight,t=document.documentElement.scrollHeight,u=window.scrollY;this.voucherListItem.length===0||this.noMoreData||u+o>=t-100&&(clearTimeout(this.scrollAddPageIndex),this.scrollAddPageIndex=setTimeout(()=>{this.pageIndex+=1,this.getVoucherList()},100))}ngOnDestroy(){clearTimeout(this.scrollAddPageIndex)}refreshVoucherList(){this.getVoucherList()}};i.\u0275fac=function(o){return new(o||i)(l(V))},i.\u0275cmp=I({type:i,selectors:[["app-used"]],hostBindings:function(o,t){o&1&&v("scroll",function(x){return t.onScroll(x)},!1,b)},standalone:!0,features:[y],decls:4,vars:2,consts:[[1,"voucher-block","under-topic"],[1,"col"],[3,"refreshVoucherList","voucherType"],[4,"ngFor","ngForOf"],[3,"name","code","time","type"]],template:function(o,t){o&1&&(s(0,"div",0)(1,"div",1)(2,"app-inputBinding",2),v("refreshVoucherList",function(){return t.refreshVoucherList()}),a(),h(3,be,2,4,"div",3),a()()),o&2&&(r(2),c("voucherType",t.voucherType),r(),c("ngForOf",t.voucherListAllItem))},dependencies:[T,_,U,E],encapsulation:2});let e=i;return e})();function Le(e,i){if(e&1&&(s(0,"div"),d(1,"app-voucherItem",4),a()),e&2){let p=i.$implicit,n=g();r(),c("name",p.voucherName)("code",p.voucherCode)("time",p.endTime)("type",n.voucherType)}}var ue=(()=>{let i=class i{constructor(n){this.httpService=n,this.voucherType=2,this.pageIndex=1,this.voucherListItem={voucherName:"",voucherCode:"",endTime:new Date},this.voucherListAllItem=[],this.noMoreData=!1,this.voucherCode=""}ngOnInit(){this.getVoucherList()}getVoucherList(){let n={type:this.voucherType,pageIndex:this.pageIndex};this.httpService.getVoucherList(n).subscribe(o=>
1{o.code===0&&o.data.list.length>0?(this.voucherListItem=o.data.list,this.voucherListItem.forEach(t=>{this.voucherListAllItem.push(t)})):this.noMoreData=!0})}onScroll(n){let o=window.innerHeight,t=document.documentElement.scrollHeight,u=window.scrollY;this.voucherListItem.length===0||this.noMoreData||u+o>=t-100&&(clearTimeout(this.scrollAddPageIndex),this.scrollAddPageIndex=setTimeout(()=>{this.pageIndex+=1,this.getVoucherList()},100))}ngOnDestroy(){clearTimeout(this.scrollAddPageIndex)}};i.\u0275fac=function(o){return new(o||i)(l(V))},i.\u0275cmp=I({type:i,selectors:[["app-expired"]],hostBindings:function(o,t){o&1&&v("scroll",function(x){return t.onScroll(x)},!1,b)},standalone:!0,features:[y],decls:4,vars:1,consts:[[1,"voucher-block","under-topic"],[1,"col"],[1,"voucher-list"],[4,"ngFor","ngForOf"],[3,"name","code","time","type"]],template:function(o,t){o&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),h(3,Le,2,4,"div",3),a()()()),o&2&&(r(3),c("ngForOf",t.voucherListAllItem))},dependencies:[T,_,E],encapsulation:2});let e=i;return e})();var we=e=>({active:e});function De(e,i){if(e&1&&(s(0,"div",5),d(1,"i",6),s(2,"p"),d(3,"app-vip-level"),s(4,"strong"),C(5),a()()()),e&2){let p=g();r(5),S(p.globalData.acctInfo==null?null:p.globalData.acctInfo.loginId)}}function Ve(e,i){if(e&1){let p=A();G(0),s(1,"li",7)(2,"a",8),v("click",function(){let o=H(p).$implicit,t=g();return P(t.nowVoucher=o)}),C(3),m(4,"translate"),a()(),Y()}if(e&2){let p=i.$implicit,n=g();r(),c("ngClass",k(4,we,n.nowVoucher===p)),r(2),S(f(4,2,"voucherPage."+p))}}function Me(e,i){e&1&&d(0,"app-voucherUnused")}function Ee(e,i){e&1&&d(0,"app-used")}function Be(e,i){e&1&&d(0,"app-expired")}function Fe(e,i){e&1&&d(0,"app-bottom-menu")}var gt=(()=>{let i=class i{constructor(n,o,t){this.globalData=n,this.storageService=o,this.accountInfoService=t,this.statusList=["unused","used","expired"]}ngOnInit(){this.nowVoucher=this.statusList[0],this.memInfo=this.storageService.getMemberInfoFromCookie(),this.memInfo||this.accountInfoService.loadAccountData().then(()=>{this.memInfo=this.accountInfoService.memData})}};i.\u0275fac=function(o){return new(o||i)(l(D),l(Q),l(M))},i.\u0275cmp=I({type:i,selectors:[["app-userinfo"]],standalone:!0,features:[y],decls:11,vars:9,consts:[[3,"title"],["data-show","web-window","class","user-info-box",4,"ngIf"],[1,"voucher-topic"],[4,"ngFor","ngForOf"],[4,"ngIf"],["data-show","web-window",1,"user-info-box"],[1,"icon-Avatar"],[3,"ngClass"],[3,"click"]],template:function(o,t){o&1&&(d(0,"app-title-nav",0),m(1,"translate"),s(2,"main"),h(3,De,6,1,"div",1),s(4,"div",2)(5,"ul"),h(6,Ve,5,6,"ng-container",3),a()(),h(7,Me,1,0,"app-voucherUnused",4)(8,Ee,1,0,"app-used",4)(9,Be,1,0,"app-expired",4),a(),h(10,Fe,1,0,"app-bottom-menu",4)),o&2&&(c("title",f(1,7,"accountPage.voucher")),r(3),c("ngIf",!t.globalData.isMobileStyle),r(3),c("ngForOf",t.statusList),r(),c("ngIf",t.nowVoucher===t.statusList[0]),r(),c("ngIf",t.nowVoucher===t.statusList[1]),r(),c("ngIf",t.nowVoucher===t.statusList[2]),r(),c("ngIf",t.globalData.isMobileStyle))},dependencies:[O,T,w,_,L,re,ne,de,me,ue,oe],encapsulation:2});let e=i;return e})();export{gt as VoucherComponent};

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.