import{R as C}from"./element-plus-yhtdTbPD.js";import{_ as T}from"./index-D5k4QILW.js";import{c as d,L as s,P as p,F as l,ab as u,X as b,R as h,u as k,Z as g,I as w,O as N,Y as x,H as t}from"./vue-vendor-C1ve1r-r.js";const Z=(r,e)=>({1:e("新澳门六合彩"),2:e("香港六合彩"),3:e("澳门六合彩"),4:e("极速六合彩"),5:e("加拿大28"),6:e("极速28"),7:e("极速赛车"),8:e("极速时时彩"),9:e("极速飞艇"),10:e("SG时时彩"),11:e("SG飞艇"),12:e("极速快3"),13:e("SG快3")})[Number(r)]||e("未知类型"),$=r=>{const e=Number(r);return e>=1&&e<=4?"success":e>=5&&e<=6?"primary":"warning"},B=r=>[12,13].includes(Number(r)),S=r=>[1,2,3,4].includes(Number(r)),G=r=>{const e=parseInt(r,10);if(isNaN(e))return"bg-gray";const o=[1,2,7,8,12,13,18,19,23,24,29,30,34,35,40,45,46],_=[3,4,9,10,14,15,20,25,26,31,36,37,41,42,47,48],y=[5,6,11,16,17,21,22,27,28,32,33,38,39,43,44,49];return o.includes(e)?"bg-red":_.includes(e)?"bg-blue":y.includes(e)?"bg-green":"bg-gray"},I=(r,e)=>{if(!r)return"";const o=Number(e);return[7,9,11].includes(o)?`color-${parseInt(r,10)}`:([8,10].includes(o),"wave-blue")},M=(r,e)=>{const o=Number(r);return o===0?{text:e("未开奖"),type:"warning"}:o===1?{text:e("未中奖"),type:"danger"}:o===2?{text:e("已中奖"),type:"success"}:o===3?{text:e("合局"),type:"info"}:o===4?{text:e("已退款"),type:"info"}:{text:"--",type:"info"}},O={key:0,class:"open-result-container"},R={key:0,class:"lhc-draw-result"},j={class:"lhc-open-code-box"},V={key:0,class:"plus-sign"},A={class:"ball-inner"},E={key:1,class:"jisu-draw-result"},F={class:"res-balls"},K={key:0,class:"combo-tags"},q={key:2,class:"jisu-draw-result"},z={class:"res-balls"},D={key:0,class:"combo-tags"},H={key:1},J={__name:"OpenResult",props:{row:{type:Object,required:!0,default:()=>({})}},setup(r){const e=r,o=d(()=>S(e.row.type)),_=d(()=>B(e.row.type)),y=d(()=>{var c;return((c=e.row.lottery)==null?void 0:c.open_code)||e.row.open_code||""}),i=d(()=>y.value?y.value.split(","):[]),f=d(()=>{var m;const c=((m=e.row.lottery)==null?void 0:m.open_code_other)||e.row.open_code_other||"";return c?c.split(/[\s,]+/).filter(Boolean):[]});return(c,m)=>{const v=C;return i.value.length>0?(t(),s("div",O,[o.value?(t(),s("div",R,[p("div",j,[(t(!0),s(l,null,u(i.value,(n,a)=>(t(),s(l,{key:a},[a===i.value.length-1?(t(),s("div",V,"+")):b("",!0),p("div",{class:h(["lhc-ball",k(G)(n)])},[p("span",A,g(n),1)],2)],64))),128))])])):_.value?(t(),s("div",E,[p("div",F,[(t(!0),s(l,null,u(i.value,(n,a)=>(t(),s("span",{class:h(["dice-item",["dice-"+n,n==1||n==4?"dice-red":""]]),key:"dice-"+a},[(t(!0),s(l,null,u(Number(n),L=>(t(),s("i",{class:"dot",key:L}))),128))],2))),128))]),f.value.length>0?(t(),s("div",K,[(t(!0),s(l,null,u(f.value,(n,a)=>(t(),w(v,{key:a,type:"info",effect:"plain",class:"res-tag"},{default:N(()=>[x(g(n),1)]),_:2},1024))),128))])):b("",!0)])):(t(),s("div",q,[p("div",z,[(t(!0),s(l,null,u(i.value,(n,a)=>(t(),s("span",{class:h(["ball-item",k(I)(n,r.row.type)]),key:"code-"+a},g(n),3))),128))]),f.value.length>0?(t(),s("div",D,[(t(!0),s(l,null,u(f.value,(n,a)=>(t(),w(v,{key:a,type:"info",effect:"plain",class:"res-tag"},{default:N(()=>[x(g(n),1)]),_:2},1024))),128))])):b("",!0)]))])):(t(),s("span",H,"--"))}}},Q=T(J,[["__scopeId","data-v-d8273c1b"]]);export{Q as L,Z as a,$ as b,M as g};
