"use strict";(self["webpackChunkfor_fun"]=self["webpackChunkfor_fun"]||[]).push([[582],{582:function(e,n,o){o.r(n),o.d(n,{default:function(){return u}});var t=o(6252),a=o(3577);const i={class:"flex flex-col items-center gap-2 p-2"},l={style:{"margin-top":"20px"}};function c(e,n,o,c,m,s){const g=(0,t.up)("el-icon"),p=(0,t.up)("el-segmented");return(0,t.wg)(),(0,t.iD)("div",null,[(0,t.Wm)(p,{modelValue:m.gameName,"onUpdate:modelValue":n[0]||(n[0]=e=>m.gameName=e),options:m.games,size:"large",onChange:s.handleSelect},{default:(0,t.w5)((({item:e})=>[(0,t._)("div",i,["element"===e.iconType?((0,t.wg)(),(0,t.j4)(g,{key:0,size:"20"},{default:(0,t.w5)((()=>[((0,t.wg)(),(0,t.j4)((0,t.LL)(e.icon)))])),_:2},1024)):(0,t.kq)("",!0),"iconfont"===e.iconType?((0,t.wg)(),(0,t.iD)("i",{key:1,class:(0,a.C_)(`iconfont ${e.icon}`),style:{"font-size":"20px"}},null,2)):(0,t.kq)("",!0),(0,t._)("div",null,(0,a.zw)(e.label),1)])])),_:1},8,["modelValue","options","onChange"]),((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(m.componentList,(e=>((0,t.wg)(),(0,t.iD)("div",l,[((0,t.wg)(),(0,t.j4)((0,t.LL)(e.component),{ref_for:!0,ref:"refGameComponent",args:e.args,onGoPage:s.goPage,onTopGoPage:s.topGoPage},null,40,["args","onGoPage","onTopGoPage"]))])))),256))])}o(560);var m=o(5781),s={name:"GameRoot",components:{Apple:m.ACs},data(){return{gameName:"tiger",games:[{label:chrome.i18n.getMessage("menuNameGameTiger"),value:"tiger",iconType:"iconfont",icon:"icon-laohuji",component:(0,t.RC)((()=>o.e(432).then(o.bind(o,4432))))},{label:chrome.i18n.getMessage("menuNameGameLunch"),value:"lunch",iconType:"element",icon:m.kwS,component:(0,t.RC)((()=>o.e(270).then(o.bind(o,3270))))},{label:chrome.i18n.getMessage("menuNameGameCouplet"),value:"couplet",iconType:"iconfont",icon:"icon-duilian1",component:(0,t.RC)((()=>o.e(985).then(o.bind(o,8985))))},{label:chrome.i18n.getMessage("menuNameWeird"),value:"weird",iconType:"iconfont",icon:"icon-zhongyaoyinpiana5",component:(0,t.RC)((()=>o.e(848).then(o.bind(o,9848))))},{value:"weird-form",component:(0,t.RC)((()=>o.e(323).then(o.bind(o,7323))))},{value:"weird-detail",component:(0,t.RC)((()=>o.e(59).then(o.bind(o,5059))))}],componentList:[]}},methods:{handleSelect(e,n){const o=this.games.find((n=>n.value===e));o&&(this.componentList=[],setTimeout((()=>{this.componentList.push({component:o.component,args:n})}),100))},goPage(e,n){console.log("do go page:",e,n),this.handleSelect(e,n)},topGoPage(e,n){this.$emit("goPage",e,n)}},mounted(){this.handleSelect("tiger")}},g=o(3744);const p=(0,g.Z)(s,[["render",c],["__scopeId","data-v-df90e426"]]);var u=p}}]);