var S=o=>{throw TypeError(o)};var m=(o,e,t)=>e.has(o)||S("Cannot "+t);var n=(o,e,t)=>(m(o,e,"read from private field"),t?t.call(o):e.get(o)),u=(o,e,t)=>e.has(o)?S("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),d=(o,e,t,s)=>(m(o,e,"write to private field"),s?s.call(o,t):e.set(o,t),t),C=(o,e,t)=>(m(o,e,"access private method"),t);var h,l,y,r;const i=class i extends ui.view.DefaultTheme.ThanksUI{constructor(){super();u(this,l);u(this,r);this.btnBack.on(Laya.Event.CLICK,this,()=>$ui.switchView(UI.pages.MAIN)),this.listSupports.renderHandler=Laya.Handler.create(this,this.renderSupport,null,!1),this.panelTopSupports.vScrollBar.elasticDistance=150,this.listSupports.scrollBar.elasticDistance=150,this.btnAFD.on(Laya.Event.CLICK,this,goto,["sponsor_afd"]),this.btnDDF.on(Laya.Event.CLICK,this,goto,["sponsor_ddf"])}init(){const t=[];d(this,r,[]),core.specialThanks.sort(()=>.5-Math.random()).forEach(({group:s,name:a,comment:p,color:c})=>s==2?t.push({name:a,color:c}):this.renderTopSupport(a,p,c)),this.listSupports.array=t}renderTopSupport(t,s,a){const p=C(this,l,y).call(this);p.name.text=t,p.comment.text=s,p.name.color=a||"#000000",this.vboxTopSupports.addChild(p),n(this,r).push(p),n(this,r).forEach((c,x)=>c.y=x)}renderSupport(t){const{name:s,color:a}=t.dataSource;t.text=s,t.color=a||$ui.common.defaultFontColor}close(){n(this,r).forEach(t=>{t.removeSelf(),t.destroy()}),d(this,r,null)}};h=new WeakMap,l=new WeakSet,y=function(){var s;const t=n(s=i,h).call(s,"boxTopSupport");return t.name=t.getChildByName("name"),t.comment=t.getChildByName("comment"),$_.deepMapSet(t,$ui.common.topSupportItem),t},r=new WeakMap,u(i,h,Laya.plugin.extractComponents(i.uiView,["boxTopSupport"]));let f=i;export{f as default};