import{d as r,e as v,a as t,C as u}from"./index-7945cc5d.js";const p=""+new URL("brid1-d23ad3c8.png",import.meta.url).href,g=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"})),P=""+new URL("brid2-e3337ca7.png",import.meta.url).href,d=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),c=""+new URL("brid3-2d1c05f1.png",import.meta.url).href,s=Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"})),V=""+new URL("brid4-ae84a21e.png",import.meta.url).href,q=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"})),b=""+new URL("title1-96414fc7.png",import.meta.url).href,m=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"})),y="data:image/png;base64,[encoded data, 5180 characters]",C=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"})),O="data:image/png;base64,[encoded data, 4404 characters]",z=Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"})),S=""+new URL("title4-758f5725.png",import.meta.url).href,T=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),K=""+new URL("title5-b65def52.png",import.meta.url).href,R=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"})),F=""+new URL("title6-812ca2c0.png",import.meta.url).href,N=Object.freeze(Object.defineProperty({__proto__:null,default:F},Symbol.toStringTag,{value:"Module"})),h=""+new URL("title7-7211537b.png",import.meta.url).href,I=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"})),U="data:image/png;base64,[encoded data, 4620 characters]",M=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"})),j="_codeDialog_w0prt_1",B="_header_w0prt_7",W="_leftTitle_w0prt_13",L="_info_w0prt_22",w="_rightTitle_w0prt_25",D="_body_w0prt_36",E="_container_w0prt_41",J="_section_w0prt_45",x="_content_w0prt_51",Q="_btnGroup_w0prt_56",l={codeDialog:j,header:B,leftTitle:W,info:L,rightTitle:w,body:D,container:E,section:J,content:x,btnGroup:Q},A=e=>{const i=`./images/${e}`;return Object.assign({"./images/brid1.png":g,"./images/brid2.png":d,"./images/brid3.png":s,"./images/brid4.png":q,"./images/title1.png":m,"./images/title2.png":C,"./images/title3.png":z,"./images/title4.png":T,"./images/title5.png":R,"./images/title6.png":N,"./images/title7.png":I,"./images/title8.png":M})[i].default},Y=r({name:"code-dialog",props:{showButton:{type:Boolean,default:!0},btnText:{type:String,default:"我知道了"},type:{type:String,default:"ACTIVATED"}},emits:["confirm"],setup(e,{emit:i,slots:n}){const a=v(()=>{let f=A("title1.png"),o=A("brid1.png");return e.type==="ACTIVATED"?(f=A("title4.png"),o=A("brid1.png")):e.type==="ACTIVATED-TWO"?(f=A("title8.png"),o=A("brid1.png")):e.type==="ACTIVATING"||e.type==="ACTIVATING-TWO"?(f=A("title2.png"),o=A("brid1.png")):e.type==="EXPIRED"?(f=A("title1.png"),o=A("brid4.png")):e.type==="CANCELLED"?(f=A("title5.png"),o=A("brid3.png")):e.type==="INFO"?(f=A("title3.png"),o=A("brid2.png")):e.type==="INVALID"?(f=A("title6.png"),o=A("brid3.png")):e.type==="OVERDUE"&&(f=A("title7.png"),o=A("brid3.png")),{title:f,icon:o}});return()=>t("div",{class:l.codeDialog},[t("div",{class:l.header},[t("div",{class:[l.leftTitle,e.type==="INFO"?l.info:""]},[t("img",{src:a.value.title},null)]),t("div",{class:l.rightTitle},[t("img",{src:a.value.icon},null)])]),t("div",{class:l.body},[t("div",{class:l.container},[t("div",{class:l.section},[t("div",{class:l.content},[n.default?n.default():null]),e.showButton&&t("div",{class:l.btnGroup},[t(u,{block:!0,round:!0,color:"linear-gradient( 305deg, #40C8FF 0%, #3192FF 100%)",onClick:()=>{i("confirm")}},{default:()=>[e.btnText]})])])])])])}});export{Y as C};
