PageSourceSearch

https://mod.io/static/js/async/1766.96297e6af5.js

js mod.io collected 2026-10-02 02:19:37 UTC 17,580 bytes, 1 lines download raw bytes

1(self.rspackChunkmodio_frontend=self.rspackChunkmodio_frontend||[]).push([[1766],{23087:function(e,t,a){"use strict";var n=a(1519),i=a(49460),l=a(37278),o=a(77742),s=a(20100),r=a(21050),c=a(78135);class d extends n.R{constructor(){super(...arguments),this.columns=this.addDisposer(new s.TS(o.Bj.new({}),()=>i.J._new(this._root,{position:"absolute",themeTags:c.kE(this.columns.template.get("themeTags",[]),["radar","series","column"])},[this.columns.template])))}makeColumn(e,t){let a=this.mainContainer.children.push(t.make());return a._setDataItem(e),t.push(a),a}_afterNew(){super._afterNew(),this.set("maskContent",!1),this.bulletsContainer.set("maskContent",!1),this.bulletsContainer.set("mask",l.A.new(this._root,{}))}getPoint(e,t){let a=this.get("yAxis"),n=this.get("xAxis"),i=n.get("renderer"),l=a.get("renderer").positionToCoordinate(t)+i.getPrivate("innerRadius",0),o=n.get("renderer").positionToAngle(e);return{x:l*r.gn(o),y:l*r.F8(o)}}_updateSeriesGraphics(e,t,a,n,i,l){t.setPrivate("visible",!0);let o=this.get("xAxis"),s=this.get("yAxis"),r=o.get("renderer"),c=s.get("renderer"),d=c.getPrivate("innerRadius",0),u=r.fitAngle(r.positionToAngle(a)),v=r.fitAngle(r.positionToAngle(n)),p=c.positionToCoordinate(l)+d,g=c.positionToCoordinate(i)+d;e.setRaw("startAngle",u),e.setRaw("endAngle",v),e.setRaw("innerRadius",p),e.setRaw("radius",g);let m=0,f=360;s==this.get("baseAxis")?(m=c.getPrivate("startAngle",0),f=c.getPrivate("endAngle",360)):(m=r.getPrivate("startAngle",0),f=r.getPrivate("endAngle",360)),m>f&&([m,f]=[f,m]),(v<=m||u>=f||g<=d&&p<=d)&&t.setPrivate("visible",!1),t.setAll({innerRadius:p,radius:g,startAngle:u,arc:v-u})}_shouldInclude(e){let t=this.get("xAxis");return!(e<t.get("start")||e>t.get("end"))}_shouldShowBullet(e,t){let a=this.get("xAxis");return!(e<a.get("start")||e>a.get("end"))&&this._showBullets}_positionBullet(e){let t=e.get("sprite");if(t){let a=t.dataItem,n=e.get("locationX",a.get("locationX",.5)),i=e.get("locationY",a.get("locationY",.5)),l=a.component,o=l.get("xAxis"),s=l.get("yAxis"),c=o.getDataItemPositionX(a,l._xField,n,l.get("vcx",1)),d=s.getDataItemPositionY(a,l._yField,i,l.get("vcy",1)),u=a.get("startAngle",0),v=a.get("endAngle",0),p=a.get("radius",0),g=a.get("innerRadius",0);if(l._shouldShowBullet(c,d)){t.setPrivate("visible",!0);let e=u+(v-u)*n,a=g+(p-g)*i;t.set("x",r.gn(e)*a),t.set("y",r.F8(e)*a)}else t.setPrivate("visible",!1)}}_handleMaskBullets(){}_processAxisRange(e){super._processAxisRange(e),e.columns=new s.TS(o.Bj.new({}),()=>i.J._new(this._root,{position:"absolute",themeTags:c.kE(e.columns.template.get("themeTags",[]),["radar","series","column"])},[this.columns.template,e.columns.template]))}}d.className="RadarColumnSeries",d.classNames=n.R.classNames.concat([d.className]),a.d(t,{Q:function(){return d}})},87805:function(e,t,a){var n=a(43360),i=a(75288);e.exports=function(e,t,a){(void 0===a||i(e[t],a))&&(void 0!==a||t in e)||n(e,t,a)}},85250:function(e,t,a){var n=a(37217),i=a(87805),l=a(86649),o=a(42824),s=a(23805),r=a(37241),c=a(14974);e.exports=function e(t,a,d,u,v){t!==a&&l(a,function(l,r){if(v||(v=new n),s(l))o(t,a,r,d,e,u,v);else{var p=u?u(c(t,r),l,r+"",t,a,v):void 0;void 0===p&&(p=l),i(t,r,p)}},r)}},42824:function(e,t,a){var n=a(87805),i=a(93290),l=a(71961),o=a(23007),s=a(35529),r=a(72428),c=a(56449),d=a(83693),u=a(3656),v=a(1882),p=a(23805),g=a(11331),m=a(37167),f=a(14974),y=a(69884);e.exports=function(e,t,a,h,_,w,b){var x=f(e,a),C=f(t,a),A=b.get(C);if(A)return void n(e,a,A);var I=w?w(x,C,a+"",e,t,b):void 0,k=void 0===I;if(k){var T=c(C),S=!T&&u(C),P=!T&&!S&&m(C);I=C,T||S||P?c(x)?I=x:d(x)?I=o(x):S?(k=!1,I=i(C,!0)):P?(k=!1,I=l(C,!0)):I=[]:g(C)||r(C)?(I=x,r(x)?I=y(x):(!p(x)||v(x))&&(I=s(C))):k=!1}k&&(b.set(C,I),_(I,C,h,w,b),b.delete(C)),n(e,a,I)}},14974:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},83693:function(e,t,a){var n=a(64894),i=a(40346);e.exports=function(e){return i(e)&&n(e)}},55364:function(e,t,a){var n=a(85250);e.exports=a(20999)(function(e,t,a){n(e,t,a)})},69884:function(e,t,a){var n=a(21791),i=a(37241);e.exports=function(e){return n(e,i(e))}},541:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return _}});var n=a(20641);let i={key:0,class:"tw-space-y-4"},l={key:1,class:"tw-space-y-4"},o={class:"tw-w-1/3"},s={key:2,class:"tw-space-y-4"};var r=a(48285),c=a(81837),d=a(69352),u=a(54901);a(649);var v=a(88532),p=a(39280),g=a(50953),m=a(60719),f=a(28097),y=a(70590),h={components:{BaseCalendar:d.A,Invoices:c.A},props:{game:{type:Object,default:void 0},invoices:{type:Array,default:()=>[]},generate:{type:Boolean,default:!1},generateTier:{type:Boolean,default:!1},clearPending:{type:Boolean,default:!1}},emits:["close:modal","reset:invoice"],setup(e,{emit:t}){let{game:a,generate:i,generateTier:l,clearPending:o}=(0,g.QW)(e),{teamData:s}=(0,m.h6)(),c=f.c9.now().endOf("day").minus({days:1}).toJSDate(),d=(0,g.KR)(c),h=(0,n.EW)(()=>i.value||l.value?`Generate new ${l.value?"service tier":""} invoice for ${a.value?.name}`:o.value?`Clear pending transactions for ${a.value?.name}`:"Reset paid invoices"),_=(0,n.EW)(()=>s.value.game.team?.team_id),{loading:w,error:b,run:x}=(0,u.Yb)(()=>(0,y.sWr)(_.value,"Failed to generate invoice")),{loading:C,error:A,run:I}=(0,u.Yb)(()=>(0,y.p2Q)(_.value,"Failed to clear pending items")),{loading:k,run:T,error:S}=(0,u.Yb)(()=>(0,y.iJW)(a.value.name_id,d.value?{date:f.c9.fromJSDate(d.value).toSeconds()}:null),"Unexpected error generating service tier invoice"),{status:P,updateStatus:N,statusType:R}=(0,u.su)({loading:(0,n.EW)(()=>w.value||C.value||k.value),error:(0,n.EW)(()=>b.value||A.value||S.value)});async function E(){await x(),b.value||(N(R.SUCCESS),(0,u.$U)({title:"Successfully generated invoice",isSuccess:!0}),t("close:modal"))}async function W(){await T(),S.value||(N(R.SUCCESS),(0,u.$U)({title:"Successfully generated invoice",isSuccess:!0}),t("close:modal"))}async function O(){await I(),A.value||(N(R.SUCCESS),(0,u.$U)({title:"Successfully cleared pending items",isSuccess:!0}),t("close:modal"))}return(0,n.Gt)("openResetInvoiceModal",function(e){(0,v.P3)({modal:r.MODAL_MONETIZATION_RESET,data:{game:a.value,invoiceId:e.id,resetType:p._6.GAME_INVOICE}})}),{TRANSACTION_PAID:"paid",handleConfirm:function(){i.value?E():l.value?W():O()},DateTime:f.c9,maxDate:c,heading:h,status:P,dateTo:d}}},_=(0,a(64901).A)(h,[["render",function(e,t,a,r,c,d){let u=(0,n.g2)("base-calendar"),v=(0,n.g2)("invoices"),p=(0,n.g2)("base-panel"),g=(0,n.g2)("base-button"),m=(0,n.g2)("base-modal");return(0,n.uX)(),(0,n.Wv)(m,{show:"",global:"",info:"","no-padding":!a.generate&&!a.generateTier&&!a.clearPending,heading:r.heading,"no-margin":"","has-close-btn":"","cancel-button":!1,size:"xl","onClose:modal":t[3]||(t[3]=t=>e.$emit("close:modal"))},{footer:(0,n.k6)(()=>[a.generate||a.generateTier||a.clearPending?((0,n.uX)(),(0,n.Wv)(g,{key:0,info:"",status:r.status,onClick:r.handleConfirm},{default:(0,n.k6)(()=>[...t[7]||(t[7]=[(0,n.eW)(" Confirm ",-1)])]),_:1},8,["status","onClick"])):((0,n.uX)(),(0,n.Wv)(g,{key:1,info:"",onClick:t[2]||(t[2]=t=>e.$emit("close:modal"))},{default:(0,n.k6)(()=>[...t[8]||(t[8]=[(0,n.eW)(" Done ",-1)])]),_:1}))]),default:(0,n.k6)(()=>[a.generate?((0,n.uX)(),(0,n.CE)("div",i,[...t[4]||(t[4]=[(0,n.Lk)("p",null,[(0,n.eW)(" If the generated invoice's amount is $0, it will be automatically paid and won't appear in the monetization dashboard. This can be confirmed by checking the "),(0,n.Lk)("b",null,"Reset invoices"),(0,n.eW)(" admin testing panel for the newly paid $0 invoice. If the invoice amount is higher than $0, it will need to be paid from the monetization dashboard. ")],-1),(0,n.Lk)("p",null,[(0,n.eW)(" Once the invoice is paid, pending items can be cleared using the "),(0,n.Lk)("b",null,"Clear pending transactions"),(0,n.eW)(" option in the admin testing panel. ")],-1)])])):a.generateTier?((0,n.uX)(),(0,n.CE)("div",l,[t[5]||(t[5]=(0,n.Lk)("div",{class:"tw-space-y-3"},[(0,n.Lk)("p",null," A new unpaid service tier invoice will be generated covering the peri
1od from the 1st of the selected month through the selected date. Only dates through yesterday are available, as today's usage data is still being processed. "),(0,n.Lk)("p",null," Note: If viewing the invoices page, please refresh to see the newly generated invoice. ")],-1)),(0,n.Lk)("div",o,[(0,n.bF)(u,{label:"Date to",placeholder:"Select or enter date","max-date":r.maxDate,"model-value":r.dateTo,onChange:t[0]||(t[0]=e=>r.dateTo=e),onClear:t[1]||(t[1]=()=>r.dateTo=null)},null,8,["max-date","model-value"])])])):a.clearPending?((0,n.uX)(),(0,n.CE)("div",s,[...t[6]||(t[6]=[(0,n.Lk)("p",null,[(0,n.eW)(" If an invoice has not been generated & paid first, please see the "),(0,n.Lk)("b",null,"Generate invoice"),(0,n.eW)(" admin testing option before clearing pending transactions. ")],-1),(0,n.Lk)("p",null," After confirmation there will be a 10 - 15 minute wait before pending funds will be made available. ",-1)])])):((0,n.uX)(),(0,n.Wv)(p,{key:3,"no-margin":"",class:"tw-p-6 tw-w-full tw-overflow-x-hidden"},{default:(0,n.k6)(()=>[(0,n.bF)(v,{reset:"",game:a.game,"transaction-type":r.TRANSACTION_PAID},null,8,["game","transaction-type"])]),_:1}))]),_:1},8,["no-padding","heading"])}]])},81837:function(e,t,a){"use strict";a.d(t,{A:function(){return _}});var n=a(20641),i=a(65655),l=a(86085),o=a(39280),s=a(70590),r=a(649),c=a(6027);let d=[{label:"Date issued",key:"date_created",cellClass:"tw-text-left",format:"date",type:"string",fit:!0,sort:{direction:"desc"}},{label:"Invoice ID",key:"id",type:"string",cellClass:"tw-text-left",sortable:!1},{label:"Description",key:"line_items.description",type:"string",cellClass:"tw-text-left tw-min-w-64",sortable:!1},{label:"Type",key:"invoice_type",format:e=>(0,c.ab)(e.replaceAll("_"," ")),type:"string",cellClass:"tw-hidden md:tw-table-cell tw-text-left",sortable:!1},{label:"Amount",key:"amount_text",type:"string",cellClass:"tw-text-right",sortable:!1}],u={label:"Date paid",key:"date_paid",cellClass:"tw-text-right",format:"date",type:"string",sort:{direction:"desc"}},v={actionCell:!0,type:"action",attrs:{secondary:!0},cellClass:"tw-hidden md:tw-table-cell tw-text-right",text:"View invoice",mobileIcon:"eye",tooltip:"View invoice",onClick:"openInvoice",sortable:!1,status:!0},p={config:[...d,{actionCell:!0,type:"group",cellClass:"tw-text-right",sortable:!1,group:[e=>({type:"action",attrs:{primary:!0,disabled:!e.canPay,class:"tw-w-24"},tooltip:e.canPay?"":"Only the game team lead can pay invoices",text:"Pay",cellClass:"tw-hidden md:tw-table-cell",onClick:"openPayModal",status:!0}),v,e=>({type:"secondary-actions",tooltip:"More actions",cellClass:"md:tw-hidden",actions:[{text:"Pay",disabled:!e.canPay,onClick:"openPayModal"},{text:"View invoice",onClick:"openInvoice"}]})]}],defaultSort:"date_created"},g={config:[...d,u,{type:"group",group:[e=>({actionCell:!0,type:"action",attrs:{secondary:!0,disabled:!e.receipt_url},tooltip:e.receipt_url?null:"Receipt is being processed and will be available shortly. Please refresh the table to check.",cell
1Class:"tw-text-right",text:"View receipt",onClick:"openReceipt",sortable:!1,status:!0}),v],sortable:!1,cellClass:"tw-text-right"}],defaultSort:"date_created"},m={config:[...d,u,{type:"group",group:[{actionCell:!0,type:"action",attrs:{info:!0,secondary:!0},cellClass:"tw-text-right",text:"Reset invoice",onClick:"openResetInvoiceModal",sortable:!1,status:!0},v],sortable:!1,cellClass:"tw-text-right"}],defaultSort:"date_created"};var f=a(50953),y=a(54901),h={components:{AirwallexModal:(0,n.$V)(()=>Promise.all([a.e(1003),a.e(6495)]).then(a.bind(a,67362))),TransactionHistoryTable:i.A,PayInvoiceModal:l.A},props:{game:{type:Object,required:!0},gateway:{type:String,default:"tilia",validator:e=>["tilia",r.pV].includes(e)},transactionType:{type:String,required:!0,validator:e=>[r.pv,"paid"].includes(e)},reset:{type:Boolean,default:!1},paidInvoices:{type:Array,default:()=>[]}},emits:["pay:invoice"],setup(e,{emit:t}){let{game:a,transactionType:i,paidInvoices:l,gateway:c,reset:d}=(0,f.QW)(e),u=(0,f.KR)(null),v=(0,f.KR)(null),h=(0,f.KR)(null),{hideModal:_,isModalOpen:w,showModal:b}=(0,y.hS)(),{setTeamPendingInvoices:x,payInvoiceIntent:C,pendingInvoices:A,formatInvoices:I,intentStatus:k}=(0,y.f7)(),{isModalOpen:T,showModal:S,hideModal:P}=(0,y.hS)(),N=(0,n.EW)(()=>({status:k.value,actionName:"openPayModal",id:u.value?.id}));(0,n.Gt)("status",N);let R=(0,n.EW)(()=>({...h.value,data:i.value===r.pv?h.value?.data.filter(e=>!l.value.some(t=>t.id===e.id)):h.value?.data.concat(l.value)})),E=(0,n.EW)(()=>a.value.monetization_teams.find(e=>e.gateway===c.value)?.team_id),W=i.value===r.pv?p:d.value?m:g,{loading:O,error:M,data:D,run:$}=(0,y.Yb)(e=>(0,s.hDM)(E.value,c.value,e)),{status:L}=(0,y.su)({loading:O,error:M});function F(e={min:+!d.value}){return e.transaction_type=[i.value],e.sort||(e.sort="desc"),e}async function U(e){await $(F(e)),M.value||(h.value={data:I(D.value.data),limit:D.value.meta.per_page,nextPageUrl:D.value.meta.next_page_url},i.value===r.pv&&x(a.value.name_id,c.value,{...D.value,data:I(D.value.data)}))}async function X(e){await $(F(e)),M.value||(h.value={data:[...h.value?.data||[],...I(D.value.data)],limit:D.value.meta.per_page,nextPageUrl:D.value.meta.next_page_url},i.value===r.pv&&x(a.value.name_id,c.value,{...D.value,data:[...A.value[c.value].data,...I(D.value.data)]}))}async function B(){v.value=await C(a.value,u.value),v.value&&S()}return(0,n.sV)(()=>{E.value&&U()}),(0,n.Gt)("openPayModal",function(e){u.value=e,c.value===r.pV?B():b()}),(0,n.Gt)("openInvoice",function(e){window.open(e.invoice_url)}),(0,n.Gt)("openReceipt",function(e){window.open(e.receipt_url)}),{TRANSACTION_TYPE_INVOICE:o.LB,onAirwallexInvoicePaid:function(e){u.value=e,t("pay:invoice",e),(0,y.$U)({title:"Successfully paid invoice",isSuccess:!0})},isAirWallexModalOpen:T,TRANSACTION_PENDING:r.pv,hideAirwallexModal:P,runInvoicesStatus:L,filteredInvoices:R,loadingInvoices:O,getNextInvoices:X,selectedInvoice:u,errorInvoices:M,updateInvoice:function(e){u.value=e,t("pay:invoice",e)},airwallexObj:v,getInvoices:U,isModalOpen:w,hideModal:_,schema:W,teamId:E}}},_=(0,a(64901).A)(h,[["render",function(e,t,a,i,l,o){let s=(0,n.g2)("transaction-history-table"),r=(0,n.g2)("pay-invoice-modal"),c=(0,n.g2)("airwallex-modal");return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.bF)(s,{"show-refresh":a.transactionType!==i.TRANSACTION_PENDING,status:i.runInvoicesStatus,reset:a.reset,"table-id":`game-monetization-${a.transactionType}-invoices`,header:a.reset?"":`${a.transactionType===i.TRANSACTION_PENDING?"Outstanding":"Paid"} invoices`,items:i.filteredInvoices,limit:i.filteredInvoices?.limit,type:i.TRANSACTION_TYPE_INVOICE,team:i.teamId,loading:i.loadingInvoices,error:i.errorInvoices,schema:i.schema,"no-data-message":`You have no ${a.transactionType===i.TRANSACTION_PENDING?"outstanding":"paid"} invoices.`,"onFetch:query":i.getInvoices,"onFetch:paginateNext":i.getNextInvoices},null,8,["show-refresh","status","reset","table-id","header","items","limit","type","team","loading","error","schema","no-data-message","onFetch:query","onFetch:paginateNext"]),((0,n.uX)(),(0,n.Wv)(n.Im,{to:"body"},[i.isModalOpen?((0,n.uX)(),(0,n.Wv)(r,{key:0,game:a.game,invoice:i.selectedInvoice,"onUpdate:invoice":i.updateInvoice,"onClose:modal":i.hideModal},null,8,["game","invoice","onUpdate:invoice","onClose:modal"])):(0,n.Q3)("",!0),i.isAirWallexModalOpen?((0,n.uX)(),(0,n.Wv)(c,{key:1,"airwallex-obj":i.airwallexObj,invoice:i.selectedInvoice,"onUpdate:invoice":i.onAirwallexInvoicePaid,"onClose:modal":i.hideAirwallexModal},null,8,["airwallex-obj","invoice","onUpdate:invoice","onClose:modal"])):(0,n.Q3)("",!0)]))],64)}]])},67579:function(e,t,a){"use strict";var n=a(54901),i=a(6027),l=a(28097),o=a(20641),s=a(649);let r="{ugc}",c="SKU packs",d=[{text:"1M",value:1,unit:"months"},{text:"3M",value:3,unit:"months"},{text:"6M",value:6,unit:"months"},{text:"1Y",value:1,unit:"years"},{text:"Custom",value:0}],u=["paid",s.pv,s.j_],v=["paid",s.pv,s.vK,"failed",s.E7,s.j_,s.Wu],p={"created_at_start-dateType":d.length-1,gateway_name:"All",sale:"All",transaction:u.map(e=>({text:e,value:Number([s.j_,"paid"].includes(e))})),created_at_start:void 0,created_at_end:void 0},g={...p,transaction:v.map(e=>({text:e,value:Number([s.j_,"paid"].includes(e))}))},m="In-game",f={"created_at_start-dateType":0,created_at_start:parseInt(l.c9.now().minus({months:1}).startOf("day").toSeconds()),created_at_end:void 0};function y(e,{isAdmin:t=!1}={}){let a=t?g:p,d=(0,n.rX)(`filter-${e}`,!0,a,!0),v=(0,o.EW)(()=>_()),{sort:h}=(0,n.fL)(e);function _(){let e={};switch(e.transaction_type=[],e.sort=d.value.sort??h.value?.order??"desc",(0,i.cy)(d.value.transaction)&&(e.transaction_type=d.value.transaction.filter(e=>e.value).map(e=>e.text),!t&&0===e.transaction_type.length&&(e.transaction_type=[...u])),d.value.sale){case c:e.monetization_type=["fiat",s.hh];break;case r:e.monetization_type="token"}switch(d.value.gateway_name){case"Web":e.gateway_name="tilia";break;case m:e.gateway_name=s.Pw}return d.value.created_at_start&&(e.created_at_start=l.c9.fromSeconds(parseInt(d.value.created_at_start)).startOf("day").toSeconds()),d.value.created_at_end&&(e.created_at_end=parseInt(l.c9.fromSeconds(parseInt(d.value.created_at_end)).endOf("day").toSeconds())),d.value.id&&(e.id=d.value.id),d.value.buyer_id&&(e.line_items=`buyer_id:${d.value.buyer_id}`),e}return{INITIAL_FILTER:a,INITIAL_EXPORT_FILTER:f,transactionQuery:v,setFilter:function(e){d.value=e},getQuery:_,filter:d}}a.d(t,{Ay:function(){return y}},{CR:u,Ly:["All",c,r],ag:d,qh:v,uO:["All","Web",m]})}}]);

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.