import{d as e,u as a,a as t,b as l,r as s,a2 as n,T as i,f as o,g as u,o as r,h as d,bm as c,w as f,i as p,A as g,k as m,l as v,F as h,j as k,t as b,N as _,aF as y,_ as x,ab as B,au as C,z as T}from"./index-Dnh6GPlT.js";import{_ as j}from"./uni-nav-bar.Bf2crVgQ.js";/* empty css                                                              */import{_ as I}from"./_plugin-vue_export-helper.BCo6x5W8.js";const N=I(e({__name:"index",props:{index:{default:0},backgroundColor:{default:"#ffffff"},color:{default:"#2B2C32"},defaultTitle:{default:""},defaultType:{default:0},tabData:{default:[]},tabIndex:{default:0},isRight:{type:Boolean,default:!1},isLeft:{type:Boolean,default:!0},isShowTitle:{type:Boolean,default:!0},jumpUrl:{default:""},rightText:{default:""},isJumpBar:{type:Boolean,default:!0},isBorder:{type:Boolean,default:!1},isSider:{type:Boolean,default:!1},rightData:{default:[]},backFunc:{type:Function,default:null}},emits:["handleNarItem","handleClickRight","goBackChange"],setup(e,{emit:I}){a((e=>({b4c0d536:t(G).length>1?"space-between":"flex-end"})));const N=l();let F=s("");const w=s(0);let D=I;const J=()=>{if(Z.value)return null==Z?void 0:Z.value();let e=y();if(K.value)if(N.state.app.isNoticeJumpPage)x({delta:1}),setTimeout((()=>{N.commit("setiINoticeJumpPage",!1)}),200);else{let a=K.value;W.value?(e.length>1&&(a=e[0].$page.path),"/pages/users/examine/approve"==a||"/pages/users/examine/center"==a?B(a):C(a)):B(a)}else X.value?D("goBackChange"):(D("goBackChange"),x({delta:1}))},R=s(0),S=s(0),L=()=>{D("handleClickRight")},P=e,{index:U,backgroundColor:$,color:z,defaultTitle:A,defaultType:Q,tabData:Y,isRight:q,isLeft:E,rightData:G,isShowTitle:H,jumpUrl:K,isBorder:M,tabIndex:O,rightText:V,isJumpBar:W,isSider:X,backFunc:Z}=n(P);return i([()=>A,()=>O],((e,a)=>{const t=e[0].value,l=e[1].value;if(t)F.value=A.value;else if(null===t)F.value="";else{const e=(()=>{let e=y();return e[e.length-1]})();F.value=e.$page.meta.navigationBar.titleText}w.value=l}),{immediate:!0,deep:!0}),(e,a)=>{const l=T,s=o(u("uni-nav-bar"),j);return r(),d(s,{border:t(M),"background-color":t($),color:t(z)},c({default:f((()=>[1!==t(Q)&&t(H)?(r(),d(l,{key:0,class:"nar-bar-title line1-1"},{default:f((()=>[k(b(t(F)),1)])),_:1})):_("",!0),1===t(Q)?(r(),d(l,{key:1,class:"nar-bar-content"},{default:f((()=>[p(l,{class:"nar-bar-list"},{default:f((()=>[(r(!0),m(h,null,v(t(Y),((e,a)=>(r(),d(l,{class:g(["nav-bar-list-item",a===w.value?"active":""]),key:a,onClick:t=>((e,a)=>{w.value=a,S.value=a*R.value,D("handleNarItem",e)})(e,a)},{default:f((()=>[p(l,{class:""},{default:f((()=>[k(b(e.name),1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1})):_("",!0)])),_:2},[t(E)?{name:"left",fn:f((()=>[p(l,{class:g(["iconfont icon-fanhui bar-return","#2B2C32"===t(z)?"active-color":""]),onClick:J},null,8,["class"])])),key:"0"}:void 0,t(q)?{name:"right",fn:f((()=>[t(G).length>0?(r(!0),m(h,{key:0},v(t(G),(e=>(r(),d(l,{class:g(["iconfont bar-return",e.icon]),key:e.type,onClick:a=>(e=>{D("handleNarItem",e)})(e)},null,8,["class","onClick"])))),128)):(r(),d(l,{key:1,onClick:L,class:"right-text"},{default:f((()=>[k(b(t(V)),1)])),_:1}))])),key:"1"}:void 0]),1032,["border","background-color","color"])}}}),[["__scopeId","data-v-2dcfa364"]]);export{N as d};
