import{d as e,u as a,a as t,b as l,r as s,a2 as n,T as o,f as i,g as r,o as u,h as d,bm as c,w as f,i as p,A as g,k as m,l as h,F as v,j as b,t as _,N as k,aF as y,_ as x,ab as B,au as C,z as T}from"./index-B3cqKsI_.js";import{_ as j}from"./uni-nav-bar.xE5Um1Eb.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:[]}},emits:["handleNarItem","handleClickRight","goBackChange"],setup(e,{emit:I}){a((e=>({baaea3b2:t(G).length>1?"space-between":"flex-end"})));const N=l();let w=s("");const D=s(0);let J=I;const R=()=>{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?J("goBackChange"):(J("goBackChange"),x({delta:1}))},S=s(0),F=s(0),L=()=>{J("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}=n(P);return o([()=>A,()=>O],((e,a)=>{const t=e[0].value,l=e[1].value;if(t)w.value=A.value;else if(null===t)w.value="";else{const e=(()=>{let e=y();return e[e.length-1]})();w.value=e.$page.meta.navigationBar.titleText}D.value=l}),{immediate:!0,deep:!0}),(e,a)=>{const l=T,s=i(r("uni-nav-bar"),j);return u(),d(s,{border:t(M),"background-color":t($),color:t(z)},c({default:f((()=>[1!==t(Q)&&t(H)?(u(),d(l,{key:0,class:"nar-bar-title line1-1"},{default:f((()=>[b(_(t(w)),1)])),_:1})):k("",!0),1===t(Q)?(u(),d(l,{key:1,class:"nar-bar-content"},{default:f((()=>[p(l,{class:"nar-bar-list"},{default:f((()=>[(u(!0),m(v,null,h(t(Y),((e,a)=>(u(),d(l,{class:g(["nav-bar-list-item",a===D.value?"active":""]),key:a,onClick:t=>((e,a)=>{D.value=a,F.value=a*S.value,J("handleNarItem",e)})(e,a)},{default:f((()=>[p(l,{class:""},{default:f((()=>[b(_(e.name),1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1})):k("",!0)])),_:2},[t(E)?{name:"left",fn:f((()=>[p(l,{class:g(["iconfont icon-fanhui bar-return","#2B2C32"===t(z)?"active-color":""]),onClick:R},null,8,["class"])])),key:"0"}:void 0,t(q)?{name:"right",fn:f((()=>[t(G).length>0?(u(!0),m(v,{key:0},h(t(G),(e=>(u(),d(l,{class:g(["iconfont bar-return",e.icon]),key:e.type,onClick:a=>(e=>{J("handleNarItem",e)})(e)},null,8,["class","onClick"])))),128)):(u(),d(l,{key:1,onClick:L,class:"right-text"},{default:f((()=>[b(_(t(V)),1)])),_:1}))])),key:"1"}:void 0]),1032,["border","background-color","color"])}}}),[["__scopeId","data-v-a0fb17e7"]]);export{N as d};
