System.register(["./use-placeholder-legacy-yxIe97AD.js","./index-legacy-Yo-NYFcD.js"],(function(a,e){"use strict";var t,n,r,i,l,o,v,s,d,c,b,f;return{setters:[a=>{t=a.u},a=>{n=a.k,r=a.d,i=a.r,l=a.z,o=a.A,v=a.b,s=a.$,d=a.aR,c=a.I,b=a.aw,f=a.G}],execute:function(){var e=document.createElement("style");e.textContent=":root{--van-nav-bar-height: 46px;--van-nav-bar-background: var(--van-background-2);--van-nav-bar-arrow-size: 16px;--van-nav-bar-icon-color: var(--van-primary-color);--van-nav-bar-text-color: var(--van-primary-color);--van-nav-bar-title-font-size: var(--van-font-size-lg);--van-nav-bar-title-text-color: var(--van-text-color);--van-nav-bar-z-index: 1;--van-nav-bar-disabled-opacity: var(--van-disabled-opacity)}.van-nav-bar{position:relative;z-index:var(--van-nav-bar-z-index);line-height:var(--van-line-height-lg);text-align:center;background:var(--van-nav-bar-background);-webkit-user-select:none;user-select:none}.van-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.van-nav-bar--safe-area-inset-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-nav-bar .van-icon{color:var(--van-nav-bar-icon-color)}.van-nav-bar__content{position:relative;display:flex;align-items:center;height:var(--van-nav-bar-height)}.van-nav-bar__arrow{margin-right:var(--van-padding-base);font-size:var(--van-nav-bar-arrow-size)}.van-nav-bar__title{max-width:60%;margin:0 auto;color:var(--van-nav-bar-title-text-color);font-weight:var(--van-font-bold);font-size:var(--van-nav-bar-title-font-size)}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding:0 var(--van-padding-md);font-size:var(--van-font-size-md)}.van-nav-bar__left--disabled,.van-nav-bar__right--disabled{cursor:not-allowed;opacity:var(--van-nav-bar-disabled-opacity)}.van-nav-bar__left{left:0}.van-nav-bar__right{right:0}.van-nav-bar__text{color:var(--van-nav-bar-text-color)}\n",document.head.appendChild(e);const[g,p]=n("nav-bar"),h={title:String,fixed:Boolean,zIndex:l,border:o,leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:o};var x=r({name:g,props:h,emits:["clickLeft","clickRight"],setup(a,{emit:e,slots:n}){const r=i(),l=t(r,p),o=t=>{a.leftDisabled||e("clickLeft",t)},f=t=>{a.rightDisabled||e("clickRight",t)},g=()=>{const{title:e,fixed:t,border:i,zIndex:l}=a,g=b(l),h=a.leftArrow||a.leftText||n.left,x=a.rightText||n.right;return v("div",{ref:r,style:g,class:[p({fixed:t}),{[d]:i,"van-safe-area-top":a.safeAreaInsetTop}]},[v("div",{class:p("content")},[h&&v("div",{class:[p("left",{disabled:a.leftDisabled}),a.clickable&&!a.leftDisabled?s:""],onClick:o},[n.left?n.left():[a.leftArrow&&v(c,{class:p("arrow"),name:"arrow-left"},null),a.leftText&&v("span",{class:p("text")},[a.leftText])]]),v("div",{class:[p("title"),"van-ellipsis"]},[n.title?n.title():e]),x&&v("div",{class:[p("right",{disabled:a.rightDisabled}),a.clickable&&!a.rightDisabled?s:""],onClick:f},[n.right?n.right():v("span",{class:p("text")},[a.rightText])])])])};return()=>a.fixed&&a.placeholder?l(g):g()}});a("N",f(x))}}}));
