import{u as w,__tla as A}from"./use-placeholder-8qMIDu-a.js";import{k as B,d as I,r as y,z as S,A as n,b as a,$ as d,aR as R,I as z,aw as C,G as L,__tla as N}from"./index-WdVqRR-9.js";let f,P=Promise.all([(()=>{try{return A}catch(i){}})(),(()=>{try{return N}catch(i){}})()]).then(async()=>{const[i,l]=B("nav-bar");var h=I({name:i,props:{title:String,fixed:Boolean,zIndex:S,border:n,leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:n},emits:["clickLeft","clickRight"],setup(t,{emit:r,slots:e}){const o=y(),b=w(o,l),g=s=>{t.leftDisabled||r("clickLeft",s)},x=s=>{t.rightDisabled||r("clickRight",s)},p=()=>e.left?e.left():[t.leftArrow&&a(z,{class:l("arrow"),name:"arrow-left"},null),t.leftText&&a("span",{class:l("text")},[t.leftText])],_=()=>e.right?e.right():a("span",{class:l("text")},[t.rightText]),c=()=>{const{title:s,fixed:k,border:m,zIndex:v}=t,T=C(v),D=t.leftArrow||t.leftText||e.left,u=t.rightText||e.right;return a("div",{ref:o,style:T,class:[l({fixed:k}),{[R]:m,"van-safe-area-top":t.safeAreaInsetTop}]},[a("div",{class:l("content")},[D&&a("div",{class:[l("left",{disabled:t.leftDisabled}),t.clickable&&!t.leftDisabled?d:""],onClick:g},[p()]),a("div",{class:[l("title"),"van-ellipsis"]},[e.title?e.title():s]),u&&a("div",{class:[l("right",{disabled:t.rightDisabled}),t.clickable&&!t.rightDisabled?d:""],onClick:x},[_()])])])};return()=>t.fixed&&t.placeholder?b(c):c()}});f=L(h)});export{f as N,P as __tla};
