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