import{aI as e,U as t,R as o,a4 as a,o as s,b as i,h as r,n as l,y as A,f as n,E as c,u as m,F as p,x as d,t as u,V as f}from"./vendor-jA_NIjzi.js";import{q as g,F as h,a0 as y}from"./common-utils-8H8K2JPG.js";/* empty css              */import{S as k}from"./SvgIcon-unOD6nfS.js";import{_ as B}from"./common-store-e_1WBubm.js";const C={class:"left"},I={key:2,class:"box"},b={class:"middle"},v={class:"right"},R=B({__name:"Header",props:{title:{type:String,default:""},more:{type:Boolean,default:!0},leftIcon:{type:String,default:"arrow-left"},rightIcon:{type:String,default:""},isLeftShow:{type:Boolean,default:!0},isRightShow:{type:Boolean,default:!0},showLeftMore:{type:Boolean,default:!1},isPopup:{type:Boolean,default:!1}},emits:["more","backLeft","close"],setup(B,{emit:R}){const w=R,J=B,{title:S}=e(J),{t:q}=t(),E=o(),D=a(),G=()=>{if(g()){1==window.sessionStorage.getItem("flutterReadyClose")?h("back"):(S.value===q("消息中心")&&h("back"),"MineMessageCenterDetail"===E.name&&h("back"))}else"/bettingRecords"===E.path&&y("thirdGameCode"),["/fundDetails","/welfareCenter"].includes(E.path)&&y("fundCode"),w("backLeft"),"/messageCenter"!==E.path?"/messageCenter/detail"!==E.path?D.back():D.push({path:"/messageCenter",query:{from:E.query.from}}):E.query.from?D.push(E.query.from):D.push({path:"/mine"})};return(e,t)=>{const o=f;return s(),i("header",null,[r("div",C,[B.isLeftShow?(s(),i("div",{key:0,class:l(["left-div",{active:B.showLeftMore}])},[J.isPopup?n("",!0):(s(),A(k,{key:0,name:"backIcon",onClick:G})),J.isPopup?(s(),A(k,{key:1,name:"backIcon",onClick:t[0]||(t[0]=e=>w("close"))})):n("",!0),B.showLeftMore?(s(),i("div",I,[r("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGCSURBVHgBzZNBTsJAFIbf67QuDCZ4A7gB3gB3RkzEBGJciRETd8IJoCeg7oyBWFcmioEN4g5uoJ6A3kASqyG2necMRVJIITVh4b95k/fab/6ZeQ9gRcJlxd2z+wKQsi8+ihPB25rGjPbVgRUZJAApJKUmlumZAqEFjKqd69ztUlC21Io7Nq+IP0qTVJ+Ql7+cTyumxkoEWPGBYGoa04PuMHgM5MIFymOQRcDL3cZhO7jRTuEuoTC1h4iJeXc4hZBy4ydIt13b6JsnQ1igveJD9dcdByp363ljDMqcPg4AKeG5TvLZPLIggqQ7pmovct2p5zZxkhjI+xCJbfiDMsVmT4S0p7KkAivS/wOpYUnZTyPbTYXVRq79GvaioaDvD6/KEC/Cauts41KEUiQQ9xxDUdVheM01w/J+HxWb7zJqKttaNJTzyp63Eo7De2IC4KmRT/qOOOmgYE0WBDQSyHG8lBwn8Vr61JGUbHtOcDyeoygiGIpp0DtiPGZAQctROPNX8AMk8qNlxZRvxAAAAABJRU5ErkJggg==",alt:"",onClick:t[1]||(t[1]=t=>e.$router.push("/"))})])):n("",!0)],2)):c(e.$slots,"left",{key:1},void 0,!0)]),r("div",b,[m(S)?(s(),i(p,{key:0},[d(u(m(S)),1)],64)):n("",!0),c(e.$slots,"title",{},void 0,!0)]),r("div",v,[B.isRightShow?(s(),A(o,{key:0,name:B.rightIcon,onClick:t[2]||(t[2]=e=>w("more"))},null,8,["name"])):c(e.$slots,"right",{key:1},void 0,!0)])])}}},[["__scopeId","data-v-b626c0fb"],["__file","Header.vue"]]);export{R as H};
