"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[5649,8866],{2211:(l,e,t)=>{t.d(e,{O:()=>o});var a=t(29445);const o=()=>{const l=(0,a.iH)(!1);return{fullScreen:l,setSullScreen:e=>{l.value=e}}}},29871:(l,e,t)=>{t.r(e);t(13503);var a=t(18216),o=t(68398),n=t(35490),i=t(83523),s=t(57268),c=t(29445),r=t(2211),d=t(94209);const u={class:"game-items relative flex h-[188px] flex-col items-center justify-end"},p=["src"],x={class:"game-name flex flex-col items-center pt-[70px] leading-none"},f={class:"font-ali-55 text-[14px] text-color-white text-opacity-60"},m=(0,s.aZ)({__name:"modal-game-item",props:{data:null},emits:["on-click"],setup(l,e){let{emit:t}=e;const a=l;return(l,e)=>((0,s.wg)(),(0,s.iD)("div",u,[(0,s._)("div",{class:"game-icon absolute top-0 h-[100px] w-[100px] rounded-[50px]",style:(0,d.normalizeStyle)({boxShadow:a.data.iconShadow})},[(0,s._)("img",{draggable:"false",class:"h-full w-full",src:a.data.icon,alt:"icon"},null,8,p)],4),(0,s._)("div",{class:"item-shadow h-[136px] w-[152px] rounded-[24px]",style:(0,d.normalizeStyle)({background:a.data.homeBgStyle})},[(0,s._)("div",x,[(0,s._)("p",f,(0,d.toDisplayString)(a.data.name),1),(0,s._)("div",{class:"play-now mt-[12px] flex h-[20px] w-[112px] cursor-pointer items-center justify-center rounded-[8px] font-ali-75 text-[12px] text-color-white opacity-80 hover:opacity-100",style:(0,d.normalizeStyle)({background:a.data.playBtnBgStyle}),onClick:e[0]||(e[0]=l=>t("on-click"))}," Play Now ",4)])],4)]))}});var v=t(76911);const w=(0,v.Z)(m,[["__scopeId","data-v-885417b2"]]),y=l=>((0,s.dD)("data-v-4d2fa784"),l=l(),(0,s.Cn)(),l),h={class:"modal-home-bg flex h-full w-full flex-col"},g={class:"flex h-[55px] w-full items-center justify-center font-ali-65 text-[16px] text-color-white"},_=y((()=>(0,s._)("div",{class:"h-[1px] w-full bg-color-black bg-opacity-20"},null,-1))),S=y((()=>(0,s._)("div",{class:"h-[1px] w-full bg-color-white bg-opacity-10"},null,-1))),b={class:"flex-1 mb:overflow-scroll"},k={class:"game-list flex flex-row flex-wrap items-start justify-start px-[30px]"},C=(0,s.aZ)({__name:"modal-list",props:{list:null},emits:["on-play"],setup(l,e){let{emit:t}=e;const a=l;return(l,e)=>((0,s.wg)(),(0,s.iD)("div",h,[(0,s._)("div",null,[(0,s._)("div",g,(0,d.toDisplayString)("休闲小游戏"),1),_,S]),(0,s._)("div",b,[(0,s._)("div",k,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(a.list,(l=>((0,s.wg)(),(0,s.iD)("div",{key:l.name,class:"game-item icon-l mx-[20px] mt-[25px]"},[(0,s.Wm)(w,{data:l,onOnClick:e=>t("on-play",l)},null,8,["data","onOnClick"])])))),128))])])]))}}),U=(0,v.Z)(C,[["__scopeId","data-v-4d2fa784"]]),O={class:"relative flex h-[55px] w-full items-center justify-center font-ali-65 text-[16px] text-color-white text-opacity-60"},D=[(0,s._)("i",{class:"iconfont icon-caidan text-[26px] text-color-white"},null,-1)],Z={class:"flex-1"},j=["src"],B=(0,s.aZ)({__name:"modal-play",props:{data:null},emits:["on-back"],setup(l,e){let{emit:t}=e;const a=l,o=(0,c.iH)();return(0,s.bv)((()=>{var l;null===(l=o.value)||void 0===l||l.focus()})),(0,s.YP)((()=>{var l;return null===(l=a.data)||void 0===l?void 0:l.url}),(()=>{(0,s.Y3)((()=>{var l;return null===(l=o.value)||void 0===l?void 0:l.focus()}))}),{immediate:!1}),(l,e)=>{var n,i,c;return(0,s.wg)(),(0,s.iD)("div",{class:"flex h-full w-full flex-col",style:(0,d.normalizeStyle)({backgroundColor:null===(n=a.data)||void 0===n?void 0:n.barBgColor})},[(0,s._)("div",null,[(0,s._)("div",O,[(0,s.Uk)((0,d.toDisplayString)(null===(i=a.data)||void 0===i?void 0:i.name)+" ",1),(0,s._)("div",{class:"absolute right-[10px] flex h-[32px] w-[32px] cursor-pointer items-center justify-center rounded-[8px] bg-color-white bg-opacity-10",onClick:e[0]||(e[0]=l=>t("on-back"))},D)])]),(0,s._)("div",Z,[(0,s._)("iframe",{ref_key:"iframeRef",ref:o,tabindex:"0",width:"100%",height:"100%",src:null===(c=a.data)||void 0===c?void 0:c.url,frameborder:"0"},null,8,j)])],4)}}});var P=t(98941);const z=(0,s.aZ)({__name:"widget-play-modal",setup(l){const{onCloseModal:e,show:t}=(0,P.dd)(),{fullScreen:a,setSullScreen:d}=(0,r.O)(),{panelStatus:u,gameList:p,onClickPlay:x,selectedGame:f,onClickBack:m}=(0,P.UV)();return(l,r)=>{const v=i.Z,w=n.Z;return(0,s.wg)(),(0,s.j4)(w,{ani:"fade",show:(0,c.SU)(t)},{default:(0,s.w5)((()=>[(0,s.Wm)(v,{class:"dark","full-screen":(0,c.SU)(a),onOnFullscreen:r[0]||(r[0]=l=>(0,c.SU)(d)(l)),onOnClose:(0,c.SU)(e)},{default:(0,s.w5)((()=>[(0,s.wy)((0,s.Wm)(U,{list:(0,c.SU)(p),onOnPlay:(0,c.SU)(x)},null,8,["list","onOnPlay"]),[[o.vShow,1===(0,c.SU)(u)]]),(0,s.wy)((0,s.Wm)(B,{data:(0,c.SU)(f),onOnBack:(0,c.SU)(m)},null,8,["data","onOnBack"]),[[o.vShow,2===(0,c.SU)(u)]])])),_:1},8,["full-screen","onOnClose"])])),_:1},8,["show"])}}});var W=t(96755),H=t(18023),Y=t(63477);(()=>{const l=(0,Y.em)(),e=(0,o.createApp)(z);(0,H.f)(e),e.use(W.M),e.use(a.Z),e.mount(l)})()}}]);