1import{B as H}from"./2_ReportChunk.BUAGQPda.js";import{n as C,h as T,g9 as S,aE as Y,r$ as p,iP as Z,J as Q,aK as X,f4 as M,f5 as O,al as ee,s0 as I,v0 as te,d6 as le,nP as ae,cJ as ne,t1 as oe,ar as se,K as re}from"./commonChunk.ClFq2l8G.js";import{v as E,f as N}from"./vendorChunk.B0S1SHvJ.js";import{ac as ie,B as ue,P as F,M as R,U as ce}from"./0_EntryLoginRegisterChunk.DeQ-Ywc2.js";import{d as be,c as d,b as U,f as e,q as _,r as D,a as pe,F as me,j as de}from"../vendors/vendor-stable.B-qaYwd4.js";import{I as j,M as _e}from"./2_NoticePageChunk.BEzcQ47t.js";import{P as fe}from"./0_WithdrawChunk.BzTLyrq2.js";import"./0_RechargeDialogsChunk.UPDYD78c.js";import"./1_RechargeDialogsChunk.eioz4sX8.js";import"./1_AgentCenterChunk.Cz5FR2RW.js";import"../vendors/vendor-swiper.BdYoNCW0.js";import"./1_PromoteChunk.CYShP0uI.js";import"./1_MineChunk.1j_jT2i0.js";import"./1_PromotionChunk.FeY6TfYO.js";import"./1_SubGameChunk.CdsnHv36.js";import"./1_SearchSubGameChunk.CQvjZ1Ep.js";import"./1_SearchGameChunk.BENWLfH4.js";const ve=t=>C.request({url:"/api/club/settleOrder/detail",method:"POST",data:{billNo:t}},{crypto:{enable:!0}}),ge=t=>C.request({url:"/api/club/settleOrder/settle",method:"POST",data:t},{crypto:{enable:!0}}),ye=t=>C.request({url:"/api/club/margin/dealTypeList",method:"POST",data:t},{crypto:{enable:!0},cache:{useCache:"fresh",setCache:!0}}),he=()=>C.request({url:"/api/club/settleOrder/waitingCount",method:"post"},{crypto:{enable:!0}}),we=be("club-bill",()=>{const{t}=T(),{data:c,execute:v}=S((i=0)=>ye({origin:2,marginType:i}),{immediate:!0}),{data:g,execute:f}=S(he,{immediate:!0}),a=d(()=>{if(!c.value)return[];const i=c.value.map(m=>{var o,k;return{key:(o=m.dealType)!=null?o:"",content:(k=m.dealTypeDesc)!=null?k:""}});return[{key:0,content:t("lobby.club.allBillChangeType")},...i]});return{billChangeType:a,getBillChangeType:v,getBillChangeTypeContent:i=>{if(!i||!a.value.length)return;const m=a.value.find(o=>o.key===i);return m==null?void 0:m.content},pendingCount:g,getPendingCount:f}}),u={"bill-popover":"_bill-popover_j20pf_91","bill-popover-item":"_bill-popover-item_j20pf_96","bill-popover-label":"_bill-popover-label_j20pf_103","bill-popover-value":"_bill-popover-value_j20pf_107","wh-icon":"_wh-icon_j20pf_112"},ke=U({props:{data:{type:Object,required:!0},placement:{type:String,default:"top-start"}},setup(t){const{t:c}=T(),v=d(()=>{const g=parseFloat(getComputedStyle(document.documentElement).fontSize)||37.5,f=i=>i/37.5*g,a=f(8),b=f(6);return t.placement.endsWith("-end")?[a,b]:t.placement.endsWith("-start")?[-a,b]:[0,b]});return()=>e(Y,{trigger:"click",placement:t.placement,offset:v.value,showArrow:!0,closeOnClickOutside:!0},{reference:()=>e("div",{class:u["wh-icon"]},[e(j,{type:"?",size:16,color:"white"},null)]),default:()=>e("div",{class:u["bill-popover"]},[e("div",{class:u["bill-popover-item"]},[e("span",{class:u["bill-popover-label"]},[c("lobby.club.clubGameBillTotal"),_("ï¼")]),e("span",{class:u["bill-popover-value"]},[p(t.data.battleBill)])]),e("div",{class:u["bill-popover-item"]},[e("span",{class:u["bill-popover-label"]},[c("lobby.club.nativeGameBill"),_("ï¼")]),e("span",{class:u["bill-popover-value"]},[p(t.data.wgBill)])]),e("div",{class:u["bill-popover-item"]},[e("span",{class:u["bill-popover-label"]},[c("lobby.club.thirdPartyGameBill"),_("ï¼")]),e("span",{class:u["bill-popover-value"]},[p(t.data.thirdBill)])])])})}}),Se="_left_1oenb_104",Ce="_number_1oenb_133",l={"info-section":"_info-section_1oenb_91","info-row":"_info-row_1oenb_96",left:Se,"info-label":"_info-label_1oenb_110","info-value":"_info-value_1oenb_121","info-bill-no":"_info-bill-no_1oenb_126",number:Ce,"info-date":"_info-date_1oenb_140","info-date-range":"_info-date-range_1oenb_149","info-date-cycle":"_info-date-cycle_1
1oenb_153","info-pending":"_info-pending_1oenb_161","info-current-bill":"_info-current-bill_1oenb_169","info-bottom-row":"_info-bottom-row_1oenb_177","info-bottom-left":"_info-bottom-left_1oenb_184","info-bottom-right":"_info-bottom-right_1oenb_192","settle-header":"_settle-header_1oenb_198","settle-title":"_settle-title_1oenb_205","settle-input-wrap":"_settle-input-wrap_1oenb_210","settle-input-value":"_settle-input-value_1oenb_214","settle-input-max":"_settle-input-max_1oenb_219","settle-meta":"_settle-meta_1oenb_226","settle-meta-left":"_settle-meta-left_1oenb_234","settle-meta-right":"_settle-meta-right_1oenb_240","settle-meta-label":"_settle-meta-label_1oenb_246","settle-meta-value":"_settle-meta-value_1oenb_250","settle-meta-available":"_settle-meta-available_1oenb_254","pwd-header":"_pwd-header_1oenb_259","pwd-label":"_pwd-label_1oenb_266","pwd-toggle":"_pwd-toggle_1oenb_271","pwd-input":"_pwd-input_1oenb_277","remark-section":"_remark-section_1oenb_281","remark-label":"_remark-label_1oenb_285","remark-textarea":"_remark-textarea_1oenb_290","remark-input":"_remark-input_1oenb_295","remark-paste-btn":"_remark-paste-btn_1oenb_301"};function Be(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!de(t)}const Ge=U({setup(){const{t}=T(),c=Z(),v=we(),g=Q("Lv1"),f=D(),a=pe({settleAmount:"",remark:"",passwd:""}),{visible:b,openOptions:i,onDialogOpen:m}=X("clubSettlementStatus"),{data:o,placeholderType:k,execute:L}=S(ve),{isLoading:q,error:W,execute:G}=S(ge),y=D(!0),z=1,P=d(()=>{var s;return((s=o.value)==null?void 0:s.settleStatus)===z}),x=d(()=>P.value?t("lobby.club.earlySettlement"):t("lobby.club.settlement")),V=d(()=>P.value?t("lobby.club.earlySettleRemark"):t("lobby.club.settleRemark")),h=d(()=>o.value?new E(o.value.currentBill||0).minus(o.value.currentSettleBill||0).plus(o.value.lastUnsettleBill||0).toString():"0"),A=d(()=>!N(h.value).isLessThan(0)),$=d(()=>!o.value||!o.value.totalMargin?"0":new E(o.value.availableMargin||0).div(o.value.totalMargin).times(100).toFixed(0)),B=()=>{var s;b.value&&((s=i.value)!=null&&s.billNo)&&L(i.value.billNo)};m(B);const J=async()=>{const s=A.value?Number(a.settleAmount):void 0;await G({billNo:o.value.billNo,passwd:a.passwd,remark:a.remark||void 0,settleAmount:s}),W.value||(re({type:"success",message:t("lobby.club.actionSucessTips.base")}),c.needReloadTabMap[H.Tab.Management]=!0,v.getPendingCount(),b.value=!1)},K=s=>{s&&(a.remark=(a.remark||"")+s)};return M.on(O.PAY_ORDER_SUCCESS_NOTICE,B),M.on(O.WITHDRAW_ORDER_SUCCESS_NOTICE,B),()=>{let s;const r=o.value;return e(_e,{show:b.value,"onUpdate:show":n=>b.value=n,loading:q.value,onClose:()=>{a.settleAmount="",a.remark="",a.passwd="",y.value=!0},title:x.value,buttons:r?[{text:t("lobby.club.cancel"),plain:!0},{text:t("lobby.club.confirm"),closeModalOnClick:!1,onClick:()=>{var n;return(n=f.value)==null?void 0:n.submit()}}]:void 0},{default:()=>[e(ee,{type:k.value,empty:{text:t("lobby.event.luckyWheel.tabs.noData")}},{default:()=>[r&&e(ie,{ref:f,onSubmit:J,layout:"vertical"},{default:()=>[e("div",{class:l["info-section"]},[e("div",{class:l["info-row"]},[e("span",{class:l["info-bill-no"]},[e("span",{class:l.number},[r.billNo]),e(j,{type:"copy",text:r.billNo,size:24},null)]),e("span",{class:l["info-date"]},[e("span",{class:l["info-date-range"]},[I(r.settleStartTime,!1),_(" -")," ",I(r.settleEndTime,!1)]),e("span",{class:l["info-date-cycle"]},[_("("),te().getContent(r.settlePeriod),_(")")])])]),e("div",{class:l["info-row"]},[e("span",{class:l.left},[e("span",{class:l["info-label"]},[t("lobby.club.pendingSettlement")]),e("span",{class:l["info-pending"]},[p(h.value)])]),e("span",{class:l["info-current-bill"]},[e("span",{class:l["info-label"]},[t("lobby.club.currentBill")]),e("span",{class:l["info-value"]},[p(r.currentBill)]),e(ke,{data:r,placement:"top-end"},null)])]),e("div",{class:l["info-bottom-row"]},[e("span",{class:l["info-bottom-left"]},[e("span",{class:l["info-label"]},[t("lobby.club.currentSettled")]),e("span",{class:l["info-value"]},[p(r.currentSettleBill)])]),e("span",{class:l["info-bottom-right"]},[e("span",{class:l["info-label"]},[t("lobby.club.lastUnsettled")]),e("span",{class:l["info-value"]},[p(r.lastUnsettleBill)])])])]),A.value&&e(me,null,[e("div",{class:l["settle-header"]},[e("span",{class:l["settle-title"]},[x.value]),g.value&&c.isMarginMode&&e(ue,{class:ae("base/button"),size:"small",onClick:()=>
1le({openType:"overlay",options:{payEntryId:ne.CLUB_MANAGEMENT}})},Be(s=t("lobby.club.recharge"))?s:{default:()=>[s]})]),e("div",{class:l["settle-input-wrap"]},[e(F,{name:"settleAmount",required:!0,noStyle:!0,rules:[n=>n?Number(n)<=0?t("lobby.club.errorTips.settlementAmountBelowZero"):!0:`${t("lobby.club.settlementAmount")}${t("lobby.common.formRules.requiredWithoutItem")}`]},{default:()=>[e(R,{inputClass:l["settle-input-value"],value:a.settleAmount,"onUpdate:value":n=>a.settleAmount=n,type:"number",ignores:["+","-","e"],placeholder:t("lobby.club.placeholder.settlementAmount"),onBlur:()=>{var w;let n=a.settleAmount;n&&N(n).isGreaterThan(h.value)&&(n=h.value),a.settleAmount=(w=oe(n))!=null?w:""}},{suffix:()=>e("span",{class:l["settle-input-max"],onClick:()=>{a.settleAmount=h.value}},[t("lobby.club.max")])})]})]),e("div",{class:l["settle-meta"]},[e("span",{class:l["settle-meta-left"]},[e("span",{class:l["settle-meta-label"]},[c.isMarginMode?t("lobby.club.depositText"):t("lobby.club.creditLimit")]),e("span",{class:l["settle-meta-value"]},[p(r.totalMargin)])]),e("span",{class:l["settle-meta-right"]},[e("span",{class:l["settle-meta-label"]},[t("lobby.club.availableProportion")]),e("span",{class:l["settle-meta-available"]},[p(r.availableMargin)]),e("span",{class:l["settle-meta-label"]},[_("("),$.value,_("%)")])])])]),e("div",{class:l["pwd-header"]},[e("span",{class:l["pwd-label"]},[t("lobby.common.components.auth.withdrawal.label")]),e(se,{onClick:()=>{y.value=!y.value},src:y.value?"/lobby_asset/common/web/common/comm_icon_hide.svg":"/lobby_asset/common/web/common/comm_icon_show.svg",class:l["pwd-toggle"]},null)]),e("div",{class:l["pwd-input"]},[e(F,{name:"passwd",required:!0,noStyle:!0,rules:n=>!n||n.length<6?t("lobby.club.placeholder.managerWithdrawPass"):!0,validateTrigger:"onBlur"},{default:()=>[e(fe,{length:"6",modelValue:a.passwd,"onUpdate:modelValue":n=>a.passwd=n,mask:y.value},null)]})]),e("div",{class:l["remark-section"]},[e("span",{class:l["remark-label"]},[V.value]),e("div",{class:l["remark-textarea"]},[e(R,{type:"textarea",value:a.remark,"onUpdate:value":n=>a.remark=n,maxlength:255,placeholder:t("lobby.club.placeholder.remark"),inputClass:l["remark-input"],onBlur:()=>{var n,w;a.remark=(w=(n=a.remark)==null?void 0:n.trim())!=null?w:""}},null),e(ce,{tag:"span",class:l["remark-paste-btn"],onPaste:K},null)])])]})]})]})}}});export{Ge as default};
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.