import{r as a,h as e,g as c,H as t}from"./p-cdf3f581.js";import{C as r}from"./p-1cabae1c.js";import{b as i,a as o}from"./p-fb698d64.js";const l=class{constructor(e){a(this,e),this.detached=!1,this.heightScale="s",this.position="end"}render(){const{el:a}=this,c="rtl"===i(a),l=e("div",{class:{content:!0,[r.rtl]:c}},e("slot",null)),p=o(a,"action-bar"),n=[p?e("div",{class:{"action-bar-container":!0,[r.rtl]:c}},e("slot",{name:"action-bar"})):null,l];return"end"===(null==p?void 0:p.position)&&n.reverse(),e(t,null,n)}get el(){return c(this)}};l.style=":host{box-sizing:border-box;color:var(--calcite-app-foreground);font-family:var(--calcite-app-font-family);font-size:var(--calcite-app-font-size-0);line-height:var(--calcite-app-line-height);background-color:var(--calcite-app-background)}:host *{box-sizing:border-box}:host{display:flex;overflow:hidden;transition:height var(--calcite-app-animation-time) ease-in-out;background-color:var(--calcite-app-background-clear);border-left:1px solid var(--calcite-app-border);border-right:1px solid var(--calcite-app-border);--calcite-app-shell-center-row-height-small:33%;--calcite-app-shell-center-row-height-medium:70%;--calcite-app-shell-center-row-height-large:100%}:host([hidden]){display:none}:host([theme=dark]){--calcite-app-background:#404040;--calcite-app-foreground:#dfdfdf;--calcite-app-background-hover:#2b2b2b;--calcite-app-foreground-hover:#f3f3f3;--calcite-app-background-active:#151515;--calcite-app-foreground-active:#59d6ff;--calcite-app-foreground-subtle:#eaeaea;--calcite-app-background-content:#2b2b2b;--calcite-app-border:#2b2b2b;--calcite-app-border-hover:#2b2b2b;--calcite-app-border-subtle:#2b2b2b;--calcite-app-scrim:rgba(64, 64, 64, 0.8)}:host([theme=light]){--calcite-app-background:#ffffff;--calcite-app-foreground:#404040;--calcite-app-background-hover:#eaeaea;--calcite-app-foreground-hover:#2b2b2b;--calcite-app-background-active:#c7eaff;--calcite-app-foreground-active:#00619b;--calcite-app-foreground-subtle:#757575;--calcite-app-foreground-link:#007ac2;--calcite-app-background-content:#f3f3f3;--calcite-app-background-clear:transparent;--calcite-app-border:#eaeaea;--calcite-app-border-hover:#dfdfdf;--calcite-app-border-subtle:#f3f3f3;--calcite-app-border-active:#00619b;--calcite-app-disabled-opacity:0.25;--calcite-app-scrim:rgba(255, 255, 255, 0.8)}.content{display:flex;flex:1 0 0;height:100%;margin:0;overflow:hidden;width:100%}.action-bar-container{display:flex}:host([detached]){animation:calcite-app-fade-in-up var(--calcite-app-animation-time) var(--calcite-app-easing-function);border:none;border-radius:var(--calcite-app-border-radius);box-shadow:var(--calcite-app-shadow-0);margin:var(--calcite-app-cap-spacing-half) var(--calcite-app-side-spacing-half) var(--calcite-app-cap-spacing-plus-half)}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){height:var(--calcite-app-shell-center-row-height-small)}:host([height-scale=m]){height:var(--calcite-app-shell-center-row-height-medium)}:host([height-scale=l]){height:var(--calcite-app-shell-center-row-height-large)}:host([height-scale=l][detached]){height:calc(var(--calcite-app-shell-center-row-height-large) - var(--calcite-app-cap-spacing-double))}::slotted(calcite-panel){width:100%;height:100%}::slotted(calcite-action-bar){border-right:1px solid var(--calcite-app-border)}::slotted(calcite-action-bar[position=end]){border-right:none;border-left:1px solid var(--calcite-app-border)}.calcite--rtl ::slotted(calcite-action-bar){border-right:none;border-left:1px solid var(--calcite-app-border)}.calcite--rtl ::slotted(calcite-action-bar[position=end]){border-left:none;border-right:1px solid var(--calcite-app-border)}";export{l as calcite_shell_center_row}