物管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

339 lines
28 KiB

  1. import{d as J,s as E,G as d,i as Re,c as q,m as pt,F as ut,t as te,v as vt,P as ht,O as k,E as gt,Q as ae,y as mt,z as xt,U as yt,X as wt}from"./index-bVOhw2NF.js";import{c as St}from"./context-KbjOeZY_.js";import{E as Ct,v as Rt,c as r,d as i,b as S,a as A,e as Tt,u as zt,f as Te,g as j,h as $t}from"./light-Cua7cqmF.js";import{N as Pt}from"./Icon-Ck7Ij_E6.js";import{A as _t}from"./Add-CgLKrdZy.js";import{r as Wt}from"./render-BxFg9-7m.js";import{N as Lt}from"./Close-D6FODkWY.js";import{o as Et}from"./omit-DbnPTcif.js";import{t as At}from"./light-B52QuVq1.js";import{u as ge}from"./use-compitable-DMmt6sIs.js";import{f as re}from"./flatten-7z_8MaI9.js";import{u as Bt}from"./use-merged-state-CzrzZJbg.js";import{x as kt,i as ze}from"./_initCloneObject-K-Y0ueWp.js";import{t as me}from"./toNumber-C7_OyJEx.js";import{c as jt,a as xe,o as Ht}from"./cssr-CS9sbUmO.js";import{g as Y,d as It}from"./index-C-nsH7mf.js";import{r as ye}from"./resolve-slot-Dzko3qih.js";import{V as ne}from"./VResizeObserver-Tzd5ds8d.js";import{c as K}from"./call-f2ri57Kd.js";const Ot=xe(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[xe("&::-webkit-scrollbar",{width:0,height:0})]),Ft=J({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=E(null);function n(l){!(l.currentTarget.offsetWidth<l.currentTarget.scrollWidth)||l.deltaY===0||(l.currentTarget.scrollLeft+=l.deltaY+l.deltaX,l.preventDefault())}const b=Ct();return Ot.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:jt,ssr:b}),Object.assign({selfRef:e,handleWheel:n},{scrollTo(...l){var x;(x=e.value)===null||x===void 0||x.scrollTo(...l)}})},render(){return d("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}});var oe=function(){return kt.Date.now()},Mt="Expected a function",Dt=Math.max,Nt=Math.min;function Vt(e,n,b){var u,l,x,v,f,m,h=0,g=!1,_=!1,W=!0;if(typeof e!="function")throw new TypeError(Mt);n=me(n)||0,ze(b)&&(g=!!b.leading,_="maxWait"in b,x=_?Dt(me(b.maxWait)||0,n):x,W="trailing"in b?!!b.trailing:W);function y(c){var R=u,F=l;return u=l=void 0,h=c,v=e.apply(F,R),v}function T(c){return h=c,f=setTimeout(P,n),g?y(c):v}function C(c){var R=c-m,F=c-h,N=n-R;return _?Nt(N,x-F):N}function $(c){var R=c-m,F=c-h;return m===void 0||R>=n||R<0||_&&F>=x}function P(){var c=oe();if($(c))return z(c);f=setTimeout(P,C(c))}function z(c){return f=void 0,W&&u?y(c):(u=l=void 0,v)}function O(){f!==void 0&&clearTimeout(f),h=0,u=m=l=f=void 0}function L(){return f===void 0?v:z(oe())}function p(){var c=oe(),R=$(c);if(u=arguments,l=this,m=c,R){if(f===void 0)return T(m);if(_)return clearTimeout(f),f=setTimeout(P,n),y(m)}return f===void 0&&(f=setTimeout(P,n)),v}return p.cancel=O,p.flush=L,p}var Xt="Expected a function";function ie(e,n,b){var u=!0,l=!0;if(typeof e!="function")throw new TypeError(Xt);return ze(b)&&(u="leading"in b?!!b.leading:u,l="trailing"in b?!!b.trailing:l),Vt(e,n,{leading:u,maxWait:n,trailing:l})}const de=St("n-tabs"),$e={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},ua=J({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:$e,setup(e){const n=Re(de,null);return n||Rt("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:n.paneStyleRef,class:n.paneClassRef,mergedClsPrefix:n.mergedClsPrefixRef}},render(){return d("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Ut=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Et($e,["displayDirective"])),le=J({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:Ut,setup(e){const{mergedClsPrefixRef:n,valueRef:b,typeRef:u,closableRef:l,tabStyleRef:x,addTabStyleRef:v,tabClassRef:f,addTabClassRef:m,tabChangeIdRef:h,onBeforeLeaveRef:g,triggerRef:_,handleAdd:W,activateTab:y,handleClose:T}=Re(de);return{trigger:_,mergedClosable:q(()=>{if(e.internalAddable)return!1;const{closable:C}=e;return C===void
  2. box-sizing: border-box;
  3. width: 100%;
  4. display: flex;
  5. flex-direction: column;
  6. transition:
  7. background-color .3s var(--n-bezier),
  8. border-color .3s var(--n-bezier);
  9. `,[i("segment-type",[r("tabs-rail",[S("&.transition-disabled",[r("tabs-capsule",`
  10. transition: none;
  11. `)])])]),i("top",[r("tab-pane",`
  12. padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
  13. `)]),i("left",[r("tab-pane",`
  14. padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
  15. `)]),i("left, right",`
  16. flex-direction: row;
  17. `,[r("tabs-bar",`
  18. width: 2px;
  19. right: 0;
  20. transition:
  21. top .2s var(--n-bezier),
  22. max-height .2s var(--n-bezier),
  23. background-color .3s var(--n-bezier);
  24. `),r("tabs-tab",`
  25. padding: var(--n-tab-padding-vertical);
  26. `)]),i("right",`
  27. flex-direction: row-reverse;
  28. `,[r("tab-pane",`
  29. padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
  30. `),r("tabs-bar",`
  31. left: 0;
  32. `)]),i("bottom",`
  33. flex-direction: column-reverse;
  34. justify-content: flex-end;
  35. `,[r("tab-pane",`
  36. padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
  37. `),r("tabs-bar",`
  38. top: 0;
  39. `)]),r("tabs-rail",`
  40. position: relative;
  41. padding: 3px;
  42. border-radius: var(--n-tab-border-radius);
  43. width: 100%;
  44. background-color: var(--n-color-segment);
  45. transition: background-color .3s var(--n-bezier);
  46. display: flex;
  47. align-items: center;
  48. `,[r("tabs-capsule",`
  49. border-radius: var(--n-tab-border-radius);
  50. position: absolute;
  51. pointer-events: none;
  52. background-color: var(--n-tab-color-segment);
  53. box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
  54. transition: transform 0.3s var(--n-bezier);
  55. `),r("tabs-tab-wrapper",`
  56. flex-basis: 0;
  57. flex-grow: 1;
  58. display: flex;
  59. align-items: center;
  60. justify-content: center;
  61. `,[r("tabs-tab",`
  62. overflow: hidden;
  63. border-radius: var(--n-tab-border-radius);
  64. width: 100%;
  65. display: flex;
  66. align-items: center;
  67. justify-content: center;
  68. `,[i("active",`
  69. font-weight: var(--n-font-weight-strong);
  70. color: var(--n-tab-text-color-active);
  71. `),S("&:hover",`
  72. color: var(--n-tab-text-color-hover);
  73. `)])])]),i("flex",[r("tabs-nav",`
  74. width: 100%;
  75. position: relative;
  76. `,[r("tabs-wrapper",`
  77. width: 100%;
  78. `,[r("tabs-tab",`
  79. margin-right: 0;
  80. `)])])]),r("tabs-nav",`
  81. box-sizing: border-box;
  82. line-height: 1.5;
  83. display: flex;
  84. transition: border-color .3s var(--n-bezier);
  85. `,[A("prefix, suffix",`
  86. display: flex;
  87. align-items: center;
  88. `),A("prefix","padding-right: 16px;"),A("suffix","padding-left: 16px;")]),i("top, bottom",[r("tabs-nav-scroll-wrapper",[S("&::before",`
  89. top: 0;
  90. bottom: 0;
  91. left: 0;
  92. width: 20px;
  93. `),S("&::after",`
  94. top: 0;
  95. bottom: 0;
  96. right: 0;
  97. width: 20px;
  98. `),i("shadow-start",[S("&::before",`
  99. box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
  100. `)]),i("shadow-end",[S("&::after",`
  101. box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
  102. `)])])]),i("left, right",[r("tabs-nav-scroll-content",`
  103. flex-direction: column;
  104. `),r("tabs-nav-scroll-wrapper",[S("&::before",`
  105. top: 0;
  106. left: 0;
  107. right: 0;
  108. height: 20px;
  109. `),S("&::after",`
  110. bottom: 0;
  111. left: 0;
  112. right: 0;
  113. height: 20px;
  114. `),i("shadow-start",[S("&::before",`
  115. box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
  116. `)]),i("shadow-end",[S("&::after",`
  117. box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
  118. `)])])]),r("tabs-nav-scroll-wrapper",`
  119. flex: 1;
  120. position: relative;
  121. overflow: hidden;
  122. `,[r("tabs-nav-y-scroll",`
  123. height: 100%;
  124. width: 100%;
  125. overflow-y: auto;
  126. scrollbar-width: none;
  127. `,[S("&::-webkit-scrollbar",`
  128. width: 0;
  129. height: 0;
  130. `)]),S("&::before, &::after",`
  131. transition: box-shadow .3s var(--n-bezier);
  132. pointer-events: none;
  133. content: "";
  134. position: absolute;
  135. z-index: 1;
  136. `)]),r("tabs-nav-scroll-content",`
  137. display: flex;
  138. position: relative;
  139. min-width: 100%;
  140. min-height: 100%;
  141. width: fit-content;
  142. box-sizing: border-box;
  143. `),r("tabs-wrapper",`
  144. display: inline-flex;
  145. flex-wrap: nowrap;
  146. position: relative;
  147. `),r("tabs-tab-wrapper",`
  148. display: flex;
  149. flex-wrap: nowrap;
  150. flex-shrink: 0;
  151. flex-grow: 0;
  152. `),r("tabs-tab",`
  153. cursor: pointer;
  154. white-space: nowrap;
  155. flex-wrap: nowrap;
  156. display: inline-flex;
  157. align-items: center;
  158. color: var(--n-tab-text-color);
  159. font-size: var(--n-tab-font-size);
  160. background-clip: padding-box;
  161. padding: var(--n-tab-padding);
  162. transition:
  163. box-shadow .3s var(--n-bezier),
  164. color .3s var(--n-bezier),
  165. background-color .3s var(--n-bezier),
  166. border-color .3s var(--n-bezier);
  167. `,[i("disabled",{cursor:"not-allowed"}),A("close",`
  168. margin-left: 6px;
  169. transition:
  170. background-color .3s var(--n-bezier),
  171. color .3s var(--n-bezier);
  172. `),A("label",`
  173. display: flex;
  174. align-items: center;
  175. z-index: 1;
  176. `)]),r("tabs-bar",`
  177. position: absolute;
  178. bottom: 0;
  179. height: 2px;
  180. border-radius: 1px;
  181. background-color: var(--n-bar-color);
  182. transition:
  183. left .2s var(--n-bezier),
  184. max-width .2s var(--n-bezier),
  185. opacity .3s var(--n-bezier),
  186. background-color .3s var(--n-bezier);
  187. `,[S("&.transition-disabled",`
  188. transition: none;
  189. `),i("disabled",`
  190. background-color: var(--n-tab-text-color-disabled)
  191. `)]),r("tabs-pane-wrapper",`
  192. position: relative;
  193. overflow: hidden;
  194. transition: max-height .2s var(--n-bezier);
  195. `),r("tab-pane",`
  196. color: var(--n-pane-text-color);
  197. width: 100%;
  198. transition:
  199. color .3s var(--n-bezier),
  200. background-color .3s var(--n-bezier),
  201. opacity .2s var(--n-bezier);
  202. left: 0;
  203. right: 0;
  204. top: 0;
  205. `,[S("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
  206. transition:
  207. color .3s var(--n-bezier),
  208. background-color .3s var(--n-bezier),
  209. transform .2s var(--n-bezier),
  210. opacity .2s var(--n-bezier);
  211. `),S("&.next-transition-leave-active, &.prev-transition-leave-active",`
  212. position: absolute;
  213. `),S("&.next-transition-enter-from, &.prev-transition-leave-to",`
  214. transform: translateX(32px);
  215. opacity: 0;
  216. `),S("&.next-transition-leave-to, &.prev-transition-enter-from",`
  217. transform: translateX(-32px);
  218. opacity: 0;
  219. `),S("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
  220. transform: translateX(0);
  221. opacity: 1;
  222. `)]),r("tabs-tab-pad",`
  223. box-sizing: border-box;
  224. width: var(--n-tab-gap);
  225. flex-grow: 0;
  226. flex-shrink: 0;
  227. `),i("line-type, bar-type",[r("tabs-tab",`
  228. font-weight: var(--n-tab-font-weight);
  229. box-sizing: border-box;
  230. vertical-align: bottom;
  231. `,[S("&:hover",{color:"var(--n-tab-text-color-hover)"}),i("active",`
  232. color: var(--n-tab-text-color-active);
  233. font-weight: var(--n-tab-font-weight-active);
  234. `),i("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),r("tabs-nav",[i("line-type",[i("top",[A("prefix, suffix",`
  235. border-bottom: 1px solid var(--n-tab-border-color);
  236. `),r("tabs-nav-scroll-content",`
  237. border-bottom: 1px solid var(--n-tab-border-color);
  238. `),r("tabs-bar",`
  239. bottom: -1px;
  240. `)]),i("left",[A("prefix, suffix",`
  241. border-right: 1px solid var(--n-tab-border-color);
  242. `),r("tabs-nav-scroll-content",`
  243. border-right: 1px solid var(--n-tab-border-color);
  244. `),r("tabs-bar",`
  245. right: -1px;
  246. `)]),i("right",[A("prefix, suffix",`
  247. border-left: 1px solid var(--n-tab-border-color);
  248. `),r("tabs-nav-scroll-content",`
  249. border-left: 1px solid var(--n-tab-border-color);
  250. `),r("tabs-bar",`
  251. left: -1px;
  252. `)]),i("bottom",[A("prefix, suffix",`
  253. border-top: 1px solid var(--n-tab-border-color);
  254. `),r("tabs-nav-scroll-content",`
  255. border-top: 1px solid var(--n-tab-border-color);
  256. `),r("tabs-bar",`
  257. top: -1px;
  258. `)]),A("prefix, suffix",`
  259. transition: border-color .3s var(--n-bezier);
  260. `),r("tabs-nav-scroll-content",`
  261. transition: border-color .3s var(--n-bezier);
  262. `),r("tabs-bar",`
  263. border-radius: 0;
  264. `)]),i("card-type",[A("prefix, suffix",`
  265. transition: border-color .3s var(--n-bezier);
  266. border-bottom: 1px solid var(--n-tab-border-color);
  267. `),r("tabs-pad",`
  268. flex-grow: 1;
  269. transition: border-color .3s var(--n-bezier);
  270. `),r("tabs-tab-pad",`
  271. transition: border-color .3s var(--n-bezier);
  272. `),r("tabs-tab",`
  273. font-weight: var(--n-tab-font-weight);
  274. border: 1px solid var(--n-tab-border-color);
  275. background-color: var(--n-tab-color);
  276. box-sizing: border-box;
  277. position: relative;
  278. vertical-align: bottom;
  279. display: flex;
  280. justify-content: space-between;
  281. font-size: var(--n-tab-font-size);
  282. color: var(--n-tab-text-color);
  283. `,[i("addable",`
  284. padding-left: 8px;
  285. padding-right: 8px;
  286. font-size: 16px;
  287. `,[A("height-placeholder",`
  288. width: 0;
  289. font-size: var(--n-tab-font-size);
  290. `),Tt("disabled",[S("&:hover",`
  291. color: var(--n-tab-text-color-hover);
  292. `)])]),i("closable","padding-right: 8px;"),i("active",`
  293. background-color: #0000;
  294. font-weight: var(--n-tab-font-weight-active);
  295. color: var(--n-tab-text-color-active);
  296. `),i("disabled","color: var(--n-tab-text-color-disabled);")]),r("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),i("left, right",[r("tabs-wrapper",`
  297. flex-direction: column;
  298. `,[r("tabs-tab-wrapper",`
  299. flex-direction: column;
  300. `,[r("tabs-tab-pad",`
  301. height: var(--n-tab-gap-vertical);
  302. width: 100%;
  303. `)])])]),i("top",[i("card-type",[r("tabs-tab",`
  304. border-top-left-radius: var(--n-tab-border-radius);
  305. border-top-right-radius: var(--n-tab-border-radius);
  306. `,[i("active",`
  307. border-bottom: 1px solid #0000;
  308. `)]),r("tabs-tab-pad",`
  309. border-bottom: 1px solid var(--n-tab-border-color);
  310. `),r("tabs-pad",`
  311. border-bottom: 1px solid var(--n-tab-border-color);
  312. `)])]),i("left",[i("card-type",[r("tabs-tab",`
  313. border-top-left-radius: var(--n-tab-border-radius);
  314. border-bottom-left-radius: var(--n-tab-border-radius);
  315. `,[i("active",`
  316. border-right: 1px solid #0000;
  317. `)]),r("tabs-tab-pad",`
  318. border-right: 1px solid var(--n-tab-border-color);
  319. `),r("tabs-pad",`
  320. border-right: 1px solid var(--n-tab-border-color);
  321. `)])]),i("right",[i("card-type",[r("tabs-tab",`
  322. border-top-right-radius: var(--n-tab-border-radius);
  323. border-bottom-right-radius: var(--n-tab-border-radius);
  324. `,[i("active",`
  325. border-left: 1px solid #0000;
  326. `)]),r("tabs-tab-pad",`
  327. border-left: 1px solid var(--n-tab-border-color);
  328. `),r("tabs-pad",`
  329. border-left: 1px solid var(--n-tab-border-color);
  330. `)])]),i("bottom",[i("card-type",[r("tabs-tab",`
  331. border-bottom-left-radius: var(--n-tab-border-radius);
  332. border-bottom-right-radius: var(--n-tab-border-radius);
  333. `,[i("active",`
  334. border-top: 1px solid #0000;
  335. `)]),r("tabs-tab-pad",`
  336. border-top: 1px solid var(--n-tab-border-color);
  337. `),r("tabs-pad",`
  338. border-top: 1px solid var(--n-tab-border-color);
  339. `)])])])]),Yt=Object.assign(Object.assign({},Te.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),va=J({name:"Tabs",props:Yt,setup(e,{slots:n}){var b,u,l,x;const{mergedClsPrefixRef:v,inlineThemeDisabled:f}=zt(e),m=Te("Tabs","-tabs",Gt,At,e,v),h=E(null),g=E(null),_=E(null),W=E(null),y=E(null),T=E(null),C=E(!0),$=E(!0),P=ge(e,["labelSize","size"]),z=ge(e,["activeName","value"]),O=E((u=(b=z.value)!==null&&b!==void 0?b:e.defaultValue)!==null&&u!==void 0?u:n.default?(x=(l=re(n.default())[0])===null||l===void 0?void 0:l.props)===null||x===void 0?void 0:x.name:null),L=Bt(z,O),p={id:0},c=q(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});te(L,()=>{p.id=0,V(),be()});function R(){var t;const{value:a}=L;return a===null?null:(t=h.value)===null||t===void 0?void 0:t.querySelector(`[data-name="${a}"]`)}function F(t){if(e.type==="card")return;const{value:a}=g;if(!a)return;const o=a.style.opacity==="0";if(t){const s=`${v.value}-tabs-bar--disabled`,{barWidth:w,placement:B}=e;if(t.dataset.disabled==="true"?a.classList.add(s):a.classList.remove(s),["top","bottom"].includes(B)){if(ce(["top","maxHeight","height"]),typeof w=="number"&&t.offsetWidth>=w){const I=Math.floor((t.offsetWidth-w)/2)+t.offsetLeft;a.style.left=`${I}px`,a.style.maxWidth=`${w}px`}else a.style.left=`${t.offsetLeft}px`,a.style.maxWidth=`${t.offsetWidth}px`;a.style.width="8192px",o&&(a.style.transition="none"),a.offsetWidth,o&&(a.style.transition="",a.style.opacity="1")}else{if(ce(["left","maxWidth","width"]),typeof w=="number"&&t.offsetHeight>=w){const I=Math.floor((t.offsetHeight-w)/2)+t.offsetTop;a.style.top=`${I}px`,a.style.maxHeight=`${w}px`}else a.style.top=`${t.offsetTop}px`,a.style.maxHeight=`${t.offsetHeight}px`;a.style.height="8192px",o&&(a.style.transition="none"),a.offsetHeight,o&&(a.style.transition="",a.style.opacity="1")}}}function N(){if(e.type==="card")return;const{value:t}=g;t&&(t.style.opacity="0")}function ce(t){const{value:a}=g;if(a)for(const o of t)a.style[o]=""}function V(){if(e.type==="card")return;const t=R();t?F(t):N()}function be(){var t;const a=(t=y.value)===null||t===void 0?void 0:t.$el;if(!a)return;const o=R();if(!o)return;const{scrollLeft:s,offsetWidth:w}=a,{offsetLeft:B,offsetWidth:I}=o;s>B?a.scrollTo({top:0,left:B,behavior:"smooth"}):B+I>s+w&&a.scrollTo({top:0,left:B+I-w,behavior:"smooth"})}const X=E(null);let Q=0,H=null;function Pe(t){const a=X.value;if(a){Q=t.getBoundingClientRect().height;const o=`${Q}px`,s=()=>{a.style.height=o,a.style.maxHeight=o};H?(s(),H(),H=null):H=s}}function _e(t){const a=X.value;if(a){const o=t.getBoundingClientRect().height,s=()=>{document.body.offsetHeight,a.style.maxHeight=`${o}px`,a.style.height=`${Math.max(Q,o)}px`};H?(H(),H=null,s()):H=s}}function We(){const t=X.value;if(t){t.style.maxHeight="",t.style.height="";const{paneWrapperStyle:a}=e;if(typeof a=="string")t.style.cssText=a;else if(a){const{maxHeight:o,height:s}=a;o!==void 0&&(t.style.maxHeight=o),s!==void 0&&(t.style.height=s)}}}const fe={value:[]},pe=E("next");function Le(t){const a=L.value;let o="next";for(const s of fe.value){if(s===a)break;if(s===t){o="prev";break}}pe.value=o,Ee(t)}function Ee(t){const{onActiveNameChange:a,onUpdateValue:o,"onUpdate:value":s}=e;a&&K(a,t),o&&K(o,t),s&&K(s,t),O.value=t}function Ae(t){const{onClose:a}=e;a&&K(a,t)}function ue(){const{value:t}=g;if(!t)return;const a="transition-disabled";t.class