| 1 |
- var W=(e,t,r)=>new Promise((o,n)=>{var v=l=>{try{u(r.next(l))}catch(m){n(m)}},s=l=>{try{u(r.throw(l))}catch(m){n(m)}},u=l=>l.done?o(l.value):Promise.resolve(l.value).then(v,s);u((r=r.apply(e,t)).next())});import{k as Q,m as U,_,r as Y,P as me,a as I,q as Z,b as z,aI as ge,l as fe,n as ve,w as he,j as Se,a9 as _e,o as xe,p as V,y as X,f as ye,bT as be,a$ as b,M as q}from"./bootstrap-Dqw3yENe.js";import{u as Ce}from"./vxe-table-BcGx-JM4.js";import{a as $e,b as we}from"./game_config-CzoghUT8.js";import ze from"./game_info-zZIxJ_kL.js";import{C as J}from"./index-Bqn8AQ5p.js";import{T as Pe}from"./index-29YFQ3sU.js";import{u as ke,r as Be}from"./responsiveObserve-Dnlnji5q.js";import{a5 as B,a9 as ee,ax as Te,R as Ae,aF as Re,a4 as H,J as L,Y as K,n as E,x as d,P as te,F as Me,ao as Oe,aa as Ne,ab as Ee,ac as w,a7 as C,aD as G,ai as M,aj as D}from"../jse/index-index-Gza42kOt.js";import{R as Ge}from"./index--lArr7pq.js";import{e as De}from"./eagerComputed-BM0APeLK.js";import{c as Fe}from"./vnode-PDmpMENR.js";import{g as Ie,T as He,t as Le,a as je}from"./index-DYHZID4U.js";import{P as We}from"./colors-DFez_v6t.js";import{_ as Ve}from"./page.vue_vue_type_script_setup_true_lang-CCSF0mZN.js";import{u as Xe}from"./use-modal-QfRJXD5w.js";import qe from"./index-COddK3dh.js";import"./BaseInput-Dvmhstv6.js";import"./useMergedState-Cr5azh0Z.js";import"./EyeOutlined-7TrOTC6s.js";import"./index-DjSl9Yrw.js";import"./index-H300OG1s.js";import"./Trigger-5jflUr2b.js";import"./ResizeObserver.es-CDE7jhPe.js";import"./hasIn-BUtP4zTR.js";import"./isPlainObject-D2GlJz9_.js";import"./useFlexGapSupport-DWqqCtlk.js";import"./collapse-BuqCI_Sc.js";import"./collapseMotion-UObkCBaS.js";import"./FormItemContext-C_G5UYTm.js";import"./index-hBc_RF1I.js";import"./index-Cbr8gvR8.js";import"./Overflow-Bvw0YV0A.js";import"./isMobile-8sZ0LT6r.js";import"./DownOutlined-Coi0bSnf.js";import"./CheckOutlined-Dxe7zurB.js";import"./SearchOutlined-DpUOhRat.js";import"./move-DKwS7W_m.js";import"./slide-BM80x2A2.js";import"./statusUtils-2qraAV5H.js";import"./index-B0rBrBmz.js";import"./index-DTpx-jCS.js";import"./index-IHOc8Fon.js";import"./shallowequal-DfAm7XK_.js";import"./useRefs-DH0ylqJk.js";function Je(){const e=B({});let t=null;const r=ke();return ee(()=>{t=r.value.subscribe(o=>{e.value=o})}),Te(()=>{r.value.unsubscribe(t)}),e}const Ke=e=>{const{antCls:t,componentCls:r,iconCls:o,avatarBg:n,avatarColor:v,containerSize:s,containerSizeLG:u,containerSizeSM:l,textFontSize:m,textFontSizeLG:c,textFontSizeSM:x,borderRadius:p,borderRadiusLG:a,borderRadiusSM:g,lineWidth:i,lineType:h}=e,S=($,f,y)=>({width:$,height:$,lineHeight:`${$-i*2}px`,borderRadius:"50%",[`&${r}-square`]:{borderRadius:y},[`${r}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${r}-icon`]:{fontSize:f,[`> ${o}`]:{margin:0}}});return{[r]:_(_(_(_({},Y(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:v,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:n,border:`${i}px ${h} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),S(s,m,p)),{"&-lg":_({},S(u,c,a)),"&-sm":_({},S(l,x,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Qe=e=>{const{componentCls:t,groupBorderColor:r,groupOverlapping:o,groupSpace:n}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:r},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:n}}}},oe=Q("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:r}=e,o=U(e,{avatarBg:r,avatarColor:t});return[Ke(o),Qe(o)]},e=>{const{controlHeight:t,controlHeightLG:r,controlHeightSM:o,fontSize:n,fontSizeLG:v,fontSizeXL:s,fontSizeHeading3:u,marginXS:l,marginXXS:m,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:r,containerSizeSM:o,textFontSize:Math.round((v+s)/2),textFontSizeLG:u,textFontSizeSM:n,groupSpace:m,groupOverlapping:-l,groupBorderColor:c}}),re=Symbol("AvatarContextKey"),Ue=()=>Ae(re,{}),Ye=e=>Re(re,e),Ze=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:me.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),T=H({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:Ze(),slots:Object,setup(e,t){let{slots:r,attrs:o}=t;const n=B(!0),v=B(!1),s=B(1),u=B(null),l=B(null),{prefixCls:m}=I("avatar",e),[c,x]=oe(m),p=Ue(),a=L(()=>e.size==="default"?p.size:e.size),g=Je(),i=De(()=>{if(typeof e.size!="object")return;const f=Be.find(k=>g.value[k]);return e.size[f]}),h=f=>i.value?{width:`${i.value}px`,height:`${i.value}px`,lineHeight:`${i.value}px`,fontSize:`${f?i.value/2:18}px`}:{},S=()=>{if(!u.value||!l.value)return;const f=u.value.offsetWidth,y=l.value.offsetWidth;if(f!==0&&y!==0){const{gap:k=4}=e;k*2<y&&(s.value=y-k*2<f?(y-k*2)/f:1)}},$=()=>{const{loadError:f}=e;(f==null?void 0:f())!==!1&&(n.value=!1)};return K(()=>e.src,()=>{E(()=>{n.value=!0,s.value=1})}),K(()=>e.gap,()=>{E(()=>{S()})}),ee(()=>{E(()=>{S(),v.value=!0})}),()=>{var f,y;const{shape:k,src:O,alt:ae,srcset:ne,draggable:ie,crossOrigin:le}=e,se=(f=p.shape)!==null&&f!==void 0?f:k,A=Z(r,e,"icon"),P=m.value,ce={[`${o.class}`]:!!o.class,[P]:!0,[`${P}-lg`]:a.value==="large",[`${P}-sm`]:a.value==="small",[`${P}-${se}`]:!0,[`${P}-image`]:O&&n.value,[`${P}-icon`]:A,[x.value]:!0},ue=typeof a.value=="number"?{width:`${a.value}px`,height:`${a.value}px`,lineHeight:`${a.value}px`,fontSize:A?`${a.value/2}px`:"18px"}:{},j=(y=r.default)===null||y===void 0?void 0:y.call(r);let R;if(O&&n.value)R=d("img",{draggable:ie,src:O,srcset:ne,onError:$,alt:ae,crossorigin:le},null);else if(A)R=A;else if(v.value||s.value!==1){const N=`scale(${s.value}) translateX(-50%)`,pe={msTransform:N,WebkitTransform:N,transform:N},de=typeof a.value=="number"?{lineHeight:`${a.value}px`}:{};R=d(Ge,{onResize:S},{default:()=>[d("span",{class:`${P}-string`,ref:u,style:_(_({},de),pe)},[j])]})}else R=d("span",{class:`${P}-string`,ref:u,style:{opacity:0}},[j]);return c(d("span",z(z({},o),{},{ref:l,class:ce,style:[ue,h(!!A),o.style]}),[R]))}}}),et=e=>{const{componentCls:t,popoverBg:r,popoverColor:o,width:n,fontWeightStrong:v,popoverPadding:s,boxShadowSecondary:u,colorTextHeading:l,borderRadiusLG:m,zIndexPopup:c,marginXS:x,colorBgElevated:p}=e;return[{[t]:_(_({},Y(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:r,backgroundClip:"padding-box",borderRadius:m,boxShadow:u,padding:s},[`${t}-title`]:{minWidth:n,marginBottom:x,color:l,fontWeight:v},[`${t}-inner-content`]:{color:o}})},Ie(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},tt=e=>{const{componentCls:t}=e;return{[t]:We.map(r=>{const o=e[`${r}-6`];return{[`&${t}-${r}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},ot=e=>{const{componentCls:t,lineWidth:r,lineType:o,colorSplit:n,paddingSM:v,controlHeight:s,fontSize:u,lineHeight:l,padding:m}=e,c=s-Math.round(u*l),x=c/2,p=c/2-r,a=m;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${x}px ${a}px ${p}px`,borderBottom:`${r}px ${o} ${n}`},[`${t}-inner-content`]:{padding:`${v}px ${a}px`}}}},rt=Q("Popover",e=>{const{colorBgElevated:t,colorText:r,wireframe:o}=e,n=U(e,{popoverBg:t,popoverColor:r,popoverPadding:12});return[et(n),tt(n),o&&ot(n),ge(n,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),at=()=>_(_({},je()),{content:X(),title:X()}),nt=H({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:ve(at(),_(_({},Le()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:r,slots:o,attrs:n}=t;const v=te();he(e.visible===void 0),r({getPopupDomNode:()=>{var p,a;return(a=(p=v.value)===null||p===void 0?void 0:p.getPopupDomNode)===null||a===void 0?void 0:a.call(p)}});const{prefixCls:s,configProvider:u}=I("popover",e),[l,m]=rt(s),c=L(()=>u.getPrefixCls()),x=()=>{var p,a;const{title:g=V((p=o.title)===null||p===void 0?void 0:p.call(o)),content:i=V((a=o.content)===null||a===void 0?void 0:a.call(o))}=e,h=!!(Array.isArray(g)?g.length:g),S=!!(Array.isArray(i)?i.length:g);return!h&&!S?null:d(Me,null,[h&&d("div",{class:`${s.value}-title`},[g]),d("div",{class:`${s.value}-inner-content`},[i])])};return()=>{const p=Se(e.overlayClassName,m.value);return l(d(He,z(z(z({},xe(e,["title","content"])),n),{},{prefixCls:s.value,ref:v,overlayClassName:p,transitionName:_e(c.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:x,default:o.default}))}}}),it=fe(nt),lt=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),F=H({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:lt(),setup(e,t){let{slots:r,attrs:o}=t;const{prefixCls:n,direction:v}=I("avatar",e),s=L(()=>`${n.value}-group`),[u,l]=oe(n);return Oe(()=>{const m={size:e.size,shape:e.shape};Ye(m)}),()=>{const{maxPopoverPlacement:m="top",maxCount:c,maxStyle:x,maxPopoverTrigger:p="hover",shape:a}=e,g={[s.value]:!0,[`${s.value}-rtl`]:v.value==="rtl",[`${o.class}`]:!!o.class,[l.value]:!0},i=Z(r,e),h=ye(i).map(($,f)=>Fe($,{key:`avatar-key-${f}`})),S=h.length;if(c&&c<S){const $=h.slice(0,c),f=h.slice(c,S);return $.push(d(it,{key:"avatar-popover-key",content:f,trigger:p,placement:m,overlayClassName:`${s.value}-popover`},{default:()=>[d(T,{style:x,shape:a},{default:()=>[`+${S-c}`]})]})),u(d("div",z(z({},o),{},{class:g,style:o.style}),[$]))}return u(d("div",z(z({},o),{},{class:g,style:o.style}),[h]))}}});T.Group=F;T.install=function(e){return e.component(T.name,T),e.component(F.name,F),e};const st={class:"vp-raw w-full"},ct={style:{"margin-left":".5rem",display:"inline-block"}},to={__name:"index",setup(e){const t=te([]);$e().then(a=>{a.forEach(g=>{t.value.push({label:`【${g.game_id}】${g.title}`,value:g.game_id})})});const[r,o]=be({collapsed:!1,commonConfig:{componentProps:{class:"w-full"}},handleSubmit:n,handleReset:v,layout:"horizontal",schema:[{component:"Select",componentProps:{allowClear:!0,filterOption:!0,name:"game_id",options:t,placeholder:b("common.placeholder_select"),showSearch:!0},fieldName:"game_id",label:b("game_control.game")}],submitButtonOptions:{content:"查询"},wrapperClass:"grid-cols-1 md:grid-cols-2"});function n(a){l.reload()}function v(){o.resetForm(),l.reload()}const s={border:!0,stripe:!0,checkboxConfig:{highlight:!0},columns:[{fixed:"left",title:"序号",type:"seq",width:50},{field:"title",title:b("game_control.game_list.game_title"),width:250,slots:{default:"title"}},{field:"title_en",title:b("game_control.game_list.game_en_title"),width:200},{field:"game_id",title:b("game_control.game_list.game_id"),width:140},{field:"rtp",title:b("game_control.game_list.game_rtp"),width:140,slots:{default:"rtp"}},{field:"rtp_type_text",title:b("game_control.game_list.game_rtp_type"),width:140},{field:"free_game_status",title:b("game_control.game_list.buy_free"),width:150},{field:"max_multiple_count",title:b("game_control.game_list.max_gm"),width:150},{field:"deposit_list",title:b("game_control.game_list.bet_amount"),width:120},{field:"status_text",title:b("game_control.game_list.game_status"),width:120,slots:{default:"status"}},{fixed:"right",title:b("game_control.game_list.action"),width:220,slots:{default:"action"}}],exportConfig:{},keepSource:!0,proxyConfig:{ajax:{query:g=>W(null,[g],function*({page:a}){let i={page:a.currentPage,limit:a.pageSize};const h=yield o.getValues();h.game_id&&(i.game_id=h.game_id);const S=yield we(i);return{total:S.total,items:S.list}})}},rowConfig:{isHover:!0},toolbarConfig:{custom:!0,export:!0,refresh:!0,zoom:!0}},[u,l]=Ce({gridOptions:s}),[m,c]=Xe({connectedComponent:ze,class:"w-[75%]",onClosed:function(){c.getData().is_reload&&l.reload()}}),x=a=>{c.setData({game_id:a.id,is_view:!0}).open(),c.setState({showConfirmButton:!1})},p=a=>{c.setData({game_id:a.id,is_view:!1}).open(),c.setState({showConfirmButton:!0})};return(a,g)=>(Ee(),Ne(C(Ve),null,{default:w(()=>[d(C(J),{class:"mb-5"},{default:w(()=>[d(C(r))]),_:1}),d(C(J),null,{default:w(()=>[G("div",st,[d(C(u),null,{title:w(({row:i})=>[G("div",null,[d(C(Pe),{color:"blue",size:"large"},{default:w(()=>[M(D(i.game_platform),1)]),_:2},1024),d(C(T),{shape:"square",src:i.image},null,8,["src"]),G("span",ct,D(i.title),1)])]),action:w(({row:i})=>[d(C(q),{type:"link",onClick:h=>x(i)},{default:w(()=>g[0]||(g[0]=[M("查看配置")])),_:2,__:[0]},1032,["onClick"]),d(C(q),{type:"link",onClick:h=>p(i)},{default:w(()=>g[1]||(g[1]=[M("编辑配置")])),_:2,__:[1]},1032,["onClick"])]),rtp:w(({row:i})=>[M(D(i.rtp)+"% ",1)]),status:w(({row:i})=>[d(C(qe),{checked:i.status==1},null,8,["checked"])]),_:1})])]),_:1}),d(C(m))]),_:1}))}};export{to as default};
|