@ferrlabs/ui-ng 1.41.0 → 1.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7233,6 +7233,17 @@ i0.ɵɵngDeclareClassMetadata({
7233
7233
  }]
7234
7234
  }]
7235
7235
  });
7236
+ function markColorOnDark(accent) {
7237
+ const hex = accent.trim().replace("#", "");
7238
+ if (hex.length !== 3 && hex.length !== 6) return accent;
7239
+ const full = hex.length === 3 ? hex.split("").map((c) => c + c).join("") : hex;
7240
+ const [r, g, b] = [
7241
+ 0,
7242
+ 2,
7243
+ 4
7244
+ ].map((i) => parseInt(full.slice(i, i + 2), 16));
7245
+ return .2126 * r + .7152 * g + .0722 * b > 70 ? accent : "#ffffff";
7246
+ }
7236
7247
  var SidebarComponent = class SidebarComponent {
7237
7248
  constructor() {
7238
7249
  this.collapsed = model(false, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
@@ -7484,6 +7495,10 @@ var SidebarItemComponent = class SidebarItemComponent {
7484
7495
  this.disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
7485
7496
  this.selected = output();
7486
7497
  this.accentColor = computed(() => this.accent() ?? "var(--color-accent, var(--color-ink, #1e293b))", ...ngDevMode ? [{ debugName: "accentColor" }] : /* istanbul ignore next */ []);
7498
+ this.accentOnDark = computed(() => {
7499
+ const accent = this.accent();
7500
+ return accent ? markColorOnDark(accent) : null;
7501
+ }, ...ngDevMode ? [{ debugName: "accentOnDark" }] : /* istanbul ignore next */ []);
7487
7502
  }
7488
7503
  handleClick(event) {
7489
7504
  if (this.disabled()) {
@@ -7570,6 +7585,7 @@ var SidebarItemComponent = class SidebarItemComponent {
7570
7585
  }
7571
7586
  },
7572
7587
  outputs: { selected: "selected" },
7588
+ host: { properties: { "style.--flr-sb-accent-on-dark": "accentOnDark()" } },
7573
7589
  ngImport: i0,
7574
7590
  template: `
7575
7591
  @if (href() && !disabled()) {
@@ -7612,7 +7628,7 @@ var SidebarItemComponent = class SidebarItemComponent {
7612
7628
  </ng-template>
7613
7629
  `,
7614
7630
  isInline: true,
7615
- styles: [":host{display:block}.flr-sb-item{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;margin:1px 0;border-radius:8px;background:transparent;border:none;cursor:pointer;color:var(--color-ink-2, #475569);font-size:13.5px;font-family:var(--font-display, \"Fraunces\", Georgia, ui-serif, serif);transition:background .12s;position:relative;text-decoration:none;text-align:left;overflow:hidden}.flr-sb-item:hover{background:var(--color-app-nav-hover, rgba(30, 41, 59, .03))}.flr-sb-item--active{background:var(--color-app-nav-active, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-sb-item--active:hover{background:var(--color-app-nav-active, rgba(30, 41, 59, .06))}.flr-sb-item--danger{color:var(--color-danger, #dc2626)}.flr-sb-item:disabled{cursor:not-allowed;opacity:.45}.flr-sb-item__icon{width:16px;height:16px;flex-shrink:0;display:grid;place-items:center;color:var(--color-ink-3, #64748b);font-size:14px;line-height:1;transition:transform .22s ease,color .16s ease}.flr-sb-item__icon ::ng-deep svg:not([width]){width:16px;height:16px;display:block}.flr-sb-item--active .flr-sb-item__icon{color:var(--flr-sb-accent, var(--color-accent, var(--color-ink, #1e293b)))}.flr-sb-item--collapsed .flr-sb-item__icon{transform:translate(4px)}.flr-sb-item__label{flex:1;text-align:left;overflow:hidden;white-space:nowrap;transition:opacity .16s ease,max-width .22s ease}.flr-sb-item--collapsed .flr-sb-item__label{opacity:0;max-width:0}.flr-sb-item__badge{font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:10px;padding:1px 7px;border-radius:999px;background:var(--color-rule, rgba(30, 41, 59, .14));color:var(--color-ink-2, #475569);white-space:nowrap}.flr-sb-item--active .flr-sb-item__badge{background:var(--flr-sb-accent, var(--color-accent, var(--color-ink, #1e293b)));color:#fff}.flr-sb-item--collapsed .flr-sb-item__badge{opacity:0;max-width:0;padding:0;overflow:hidden}\n"],
7631
+ styles: [":host{display:block}.flr-sb-item{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;margin:1px 0;border-radius:8px;background:transparent;border:none;cursor:pointer;color:var(--color-ink-2, #475569);font-size:13.5px;font-family:var(--font-display, \"Fraunces\", Georgia, ui-serif, serif);transition:background .12s;position:relative;text-decoration:none;text-align:left;overflow:hidden}.flr-sb-item:hover{background:var(--color-app-nav-hover, rgba(30, 41, 59, .03))}.flr-sb-item--active{background:var(--color-app-nav-active, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-sb-item--active:hover{background:var(--color-app-nav-active, rgba(30, 41, 59, .06))}.flr-sb-item--danger{color:var(--color-danger, #dc2626)}.flr-sb-item:disabled{cursor:not-allowed;opacity:.45}.flr-sb-item__icon{width:16px;height:16px;flex-shrink:0;display:grid;place-items:center;color:var(--color-ink-3, #64748b);font-size:14px;line-height:1;transition:transform .22s ease,color .16s ease}.flr-sb-item__icon ::ng-deep svg:not([width]){width:16px;height:16px;display:block}.flr-sb-item--active .flr-sb-item__icon{color:var( --flr-sb-active-icon, var(--flr-sb-accent, var(--color-accent, var(--color-ink, #1e293b))) )}.flr-sb-item--collapsed .flr-sb-item__icon{transform:translate(4px)}.flr-sb-item__label{flex:1;text-align:left;overflow:hidden;white-space:nowrap;transition:opacity .16s ease,max-width .22s ease}.flr-sb-item--collapsed .flr-sb-item__label{opacity:0;max-width:0}.flr-sb-item__badge{font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:10px;padding:1px 7px;border-radius:999px;background:var(--color-rule, rgba(30, 41, 59, .14));color:var(--color-ink-2, #475569);white-space:nowrap}.flr-sb-item--active .flr-sb-item__badge{background:var(--flr-sb-accent, var(--color-accent, var(--color-ink, #1e293b)));color:#fff}.flr-sb-item--collapsed .flr-sb-item__badge{opacity:0;max-width:0;padding:0;overflow:hidden}\n"],
7616
7632
  dependencies: [{
7617
7633
  kind: "directive",
7618
7634
  type: NgTemplateOutlet,
@@ -7678,7 +7694,8 @@ i0.ɵɵngDeclareClassMetadata({
7678
7694
  </ng-template>
7679
7695
  `,
7680
7696
  imports: [NgTemplateOutlet],
7681
- styles: [":host{display:block}.flr-sb-item{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;margin:1px 0;border-radius:8px;background:transparent;border:none;cursor:pointer;color:var(--color-ink-2, #475569);font-size:13.5px;font-family:var(--font-display, \"Fraunces\", Georgia, ui-serif, serif);transition:background .12s;position:relative;text-decoration:none;text-align:left;overflow:hidden}.flr-sb-item:hover{background:var(--color-app-nav-hover, rgba(30, 41, 59, .03))}.flr-sb-item--active{background:var(--color-app-nav-active, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-sb-item--active:hover{background:var(--color-app-nav-active, rgba(30, 41, 59, .06))}.flr-sb-item--danger{color:var(--color-danger, #dc2626)}.flr-sb-item:disabled{cursor:not-allowed;opacity:.45}.flr-sb-item__icon{width:16px;height:16px;flex-shrink:0;display:grid;place-items:center;color:var(--color-ink-3, #64748b);font-size:14px;line-height:1;transition:transform .22s ease,color .16s ease}.flr-sb-item__icon ::ng-deep svg:not([width]){width:16px;height:16px;display:block}.flr-sb-item--active .flr-sb-item__icon{color:var(--flr-sb-accent, var(--color-accent, var(--color-ink, #1e293b)))}.flr-sb-item--collapsed .flr-sb-item__icon{transform:translate(4px)}.flr-sb-item__label{flex:1;text-align:left;overflow:hidden;white-space:nowrap;transition:opacity .16s ease,max-width .22s ease}.flr-sb-item--collapsed .flr-sb-item__label{opacity:0;max-width:0}.flr-sb-item__badge{font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:10px;padding:1px 7px;border-radius:999px;background:var(--color-rule, rgba(30, 41, 59, .14));color:var(--color-ink-2, #475569);white-space:nowrap}.flr-sb-item--active .flr-sb-item__badge{background:var(--flr-sb-accent, var(--color-accent, var(--color-ink, #1e293b)));color:#fff}.flr-sb-item--collapsed .flr-sb-item__badge{opacity:0;max-width:0;padding:0;overflow:hidden}\n"]
7697
+ host: { "[style.--flr-sb-accent-on-dark]": "accentOnDark()" },
7698
+ styles: [":host{display:block}.flr-sb-item{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;margin:1px 0;border-radius:8px;background:transparent;border:none;cursor:pointer;color:var(--color-ink-2, #475569);font-size:13.5px;font-family:var(--font-display, \"Fraunces\", Georgia, ui-serif, serif);transition:background .12s;position:relative;text-decoration:none;text-align:left;overflow:hidden}.flr-sb-item:hover{background:var(--color-app-nav-hover, rgba(30, 41, 59, .03))}.flr-sb-item--active{background:var(--color-app-nav-active, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-sb-item--active:hover{background:var(--color-app-nav-active, rgba(30, 41, 59, .06))}.flr-sb-item--danger{color:var(--color-danger, #dc2626)}.flr-sb-item:disabled{cursor:not-allowed;opacity:.45}.flr-sb-item__icon{width:16px;height:16px;flex-shrink:0;display:grid;place-items:center;color:var(--color-ink-3, #64748b);font-size:14px;line-height:1;transition:transform .22s ease,color .16s ease}.flr-sb-item__icon ::ng-deep svg:not([width]){width:16px;height:16px;display:block}.flr-sb-item--active .flr-sb-item__icon{color:var( --flr-sb-active-icon, var(--flr-sb-accent, var(--color-accent, var(--color-ink, #1e293b))) )}.flr-sb-item--collapsed .flr-sb-item__icon{transform:translate(4px)}.flr-sb-item__label{flex:1;text-align:left;overflow:hidden;white-space:nowrap;transition:opacity .16s ease,max-width .22s ease}.flr-sb-item--collapsed .flr-sb-item__label{opacity:0;max-width:0}.flr-sb-item__badge{font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:10px;padding:1px 7px;border-radius:999px;background:var(--color-rule, rgba(30, 41, 59, .14));color:var(--color-ink-2, #475569);white-space:nowrap}.flr-sb-item--active .flr-sb-item__badge{background:var(--flr-sb-accent, var(--color-accent, var(--color-ink, #1e293b)));color:#fff}.flr-sb-item--collapsed .flr-sb-item__badge{opacity:0;max-width:0;padding:0;overflow:hidden}\n"]
7682
7699
  }]
7683
7700
  }],
7684
7701
  propDecorators: {
@@ -8135,7 +8152,7 @@ var ShellComponent = class ShellComponent {
8135
8152
  </div>
8136
8153
  `,
8137
8154
  isInline: true,
8138
- styles: [":host{display:block}.flr-shell{display:flex;height:100dvh;background:var(--color-app-rail, #101012)}.flr-shell__surface{display:flex;flex:1;min-width:0;background:var(--color-app-bg, #fafaf9)}.flr-shell:has(.flr-shell__rail:not(:empty)) .flr-shell__surface{--flr-sidebar-height: calc(100dvh - var(--flr-shell-inset, 10px));margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, 14px);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #fafaf9)}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar{--color-app-sidebar: var(--color-app-rail, #101012);--color-ink: #ffffff;--color-ink-2: rgba(255, 255, 255, .62);--color-ink-3: rgba(255, 255, 255, .56);--color-rule: rgba(255, 255, 255, .1);--color-app-nav-hover: rgba(255, 255, 255, .06);--color-app-nav-active: rgba(255, 255, 255, .1);--color-danger: #f87171;--color-avatar-bg: rgba(255, 255, 255, .16);--color-card: var(--color-app-rail-tip, #1a1b20);--color-app-bg-2: rgba(255, 255, 255, .06);--flr-sidebar-border: transparent}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__surface{background:var(--color-app-rail, #101012)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__body{margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, 14px);overflow:clip;background:var(--color-app-bg, #fafaf9)}.flr-shell__rail{display:flex;align-self:stretch}.flr-shell__rail:empty{display:none}.flr-shell__brand{display:flex;align-items:stretch;width:100%}.flr-shell__body{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.flr-shell__topbar{height:64px;display:flex;align-items:center;padding:0 28px;gap:16px;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg, #fafaf9);position:sticky;top:0;z-index:5}.flr-shell__rail-toggle{margin-left:-8px}@media(max-width:880px){.flr-shell__rail-toggle{display:none}}.flr-shell__crumbs{font-size:12px;color:var(--color-ink-3, #64748b);display:flex;gap:6px;align-items:center}.flr-shell__crumb--last{color:var(--color-ink, #1e293b)}.flr-shell__crumb-sep{opacity:.5}.flr-shell__spacer{flex:1}.flr-shell__search{display:inline-flex;align-items:center;gap:8px;padding:6px 10px 6px 12px;border-radius:8px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f4f4f2);color:var(--color-ink-3, #64748b);font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:12px;cursor:pointer;transition:background .12s,border-color .12s}.flr-shell__search:hover{background:var(--color-card, #fff);border-color:var(--color-rule-strong, rgba(30, 41, 59, .24))}.flr-shell__kbd{display:inline-flex;align-items:center;padding:1px 5px;border-radius:4px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-card, #fff);font-family:inherit;font-size:10.5px;letter-spacing:.04em}.flr-shell__slot{display:flex;align-items:center;gap:12px}.flr-shell__slot:empty{display:none}.flr-shell__slot--crumb{margin-left:4px}.flr-shell__slot--crumb-lead:not(:empty)+.flr-shell__crumbs:before{content:\"/\";margin-right:6px;color:var(--color-ink-3, #64748b);opacity:.5}.flr-shell__main{flex:1;min-height:0;overflow-y:auto;padding-bottom:var(--flr-shell-main-pad-bottom, 40px);background:var(--color-app-bg, #fafaf9)}\n"],
8155
+ styles: [":host{display:block}.flr-shell{display:flex;height:100dvh;background:var(--color-app-rail, #101012)}.flr-shell__surface{display:flex;flex:1;min-width:0;background:var(--color-app-bg, #fafaf9)}.flr-shell:has(.flr-shell__rail:not(:empty)) .flr-shell__surface{--flr-sidebar-height: calc(100dvh - var(--flr-shell-inset, 10px));margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, 14px);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #fafaf9)}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar{--color-app-sidebar: var(--color-app-rail, #101012);--color-ink: #ffffff;--color-ink-2: rgba(255, 255, 255, .62);--color-ink-3: rgba(255, 255, 255, .56);--color-rule: rgba(255, 255, 255, .1);--color-app-nav-hover: rgba(255, 255, 255, .06);--color-app-nav-active: rgba(255, 255, 255, .1);--color-danger: #f87171;--color-avatar-bg: rgba(255, 255, 255, .16);--color-card: var(--color-app-rail-tip, #1a1b20);--color-app-bg-2: rgba(255, 255, 255, .06);--flr-sidebar-border: transparent}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar-item{--flr-sb-active-icon: var(--flr-sb-accent-on-dark)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__surface{background:var(--color-app-rail, #101012)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__body{margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, 14px);overflow:clip;background:var(--color-app-bg, #fafaf9)}.flr-shell__rail{display:flex;align-self:stretch}.flr-shell__rail:empty{display:none}.flr-shell__brand{display:flex;align-items:stretch;width:100%}.flr-shell__body{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.flr-shell__topbar{height:64px;display:flex;align-items:center;padding:0 28px;gap:16px;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg, #fafaf9);position:sticky;top:0;z-index:5}.flr-shell__rail-toggle{margin-left:-8px}@media(max-width:880px){.flr-shell__rail-toggle{display:none}}.flr-shell__crumbs{font-size:12px;color:var(--color-ink-3, #64748b);display:flex;gap:6px;align-items:center}.flr-shell__crumb--last{color:var(--color-ink, #1e293b)}.flr-shell__crumb-sep{opacity:.5}.flr-shell__spacer{flex:1}.flr-shell__search{display:inline-flex;align-items:center;gap:8px;padding:6px 10px 6px 12px;border-radius:8px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f4f4f2);color:var(--color-ink-3, #64748b);font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:12px;cursor:pointer;transition:background .12s,border-color .12s}.flr-shell__search:hover{background:var(--color-card, #fff);border-color:var(--color-rule-strong, rgba(30, 41, 59, .24))}.flr-shell__kbd{display:inline-flex;align-items:center;padding:1px 5px;border-radius:4px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-card, #fff);font-family:inherit;font-size:10.5px;letter-spacing:.04em}.flr-shell__slot{display:flex;align-items:center;gap:12px}.flr-shell__slot:empty{display:none}.flr-shell__slot--crumb{margin-left:4px}.flr-shell__slot--crumb-lead:not(:empty)+.flr-shell__crumbs:before{content:\"/\";margin-right:6px;color:var(--color-ink-3, #64748b);opacity:.5}.flr-shell__main{flex:1;min-height:0;overflow-y:auto;padding-bottom:var(--flr-shell-main-pad-bottom, 40px);background:var(--color-app-bg, #fafaf9)}\n"],
8139
8156
  dependencies: [
8140
8157
  {
8141
8158
  kind: "component",
@@ -8293,7 +8310,7 @@ i0.ɵɵngDeclareClassMetadata({
8293
8310
  </div>
8294
8311
  </div>
8295
8312
  `,
8296
- styles: [":host{display:block}.flr-shell{display:flex;height:100dvh;background:var(--color-app-rail, #101012)}.flr-shell__surface{display:flex;flex:1;min-width:0;background:var(--color-app-bg, #fafaf9)}.flr-shell:has(.flr-shell__rail:not(:empty)) .flr-shell__surface{--flr-sidebar-height: calc(100dvh - var(--flr-shell-inset, 10px));margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, 14px);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #fafaf9)}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar{--color-app-sidebar: var(--color-app-rail, #101012);--color-ink: #ffffff;--color-ink-2: rgba(255, 255, 255, .62);--color-ink-3: rgba(255, 255, 255, .56);--color-rule: rgba(255, 255, 255, .1);--color-app-nav-hover: rgba(255, 255, 255, .06);--color-app-nav-active: rgba(255, 255, 255, .1);--color-danger: #f87171;--color-avatar-bg: rgba(255, 255, 255, .16);--color-card: var(--color-app-rail-tip, #1a1b20);--color-app-bg-2: rgba(255, 255, 255, .06);--flr-sidebar-border: transparent}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__surface{background:var(--color-app-rail, #101012)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__body{margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, 14px);overflow:clip;background:var(--color-app-bg, #fafaf9)}.flr-shell__rail{display:flex;align-self:stretch}.flr-shell__rail:empty{display:none}.flr-shell__brand{display:flex;align-items:stretch;width:100%}.flr-shell__body{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.flr-shell__topbar{height:64px;display:flex;align-items:center;padding:0 28px;gap:16px;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg, #fafaf9);position:sticky;top:0;z-index:5}.flr-shell__rail-toggle{margin-left:-8px}@media(max-width:880px){.flr-shell__rail-toggle{display:none}}.flr-shell__crumbs{font-size:12px;color:var(--color-ink-3, #64748b);display:flex;gap:6px;align-items:center}.flr-shell__crumb--last{color:var(--color-ink, #1e293b)}.flr-shell__crumb-sep{opacity:.5}.flr-shell__spacer{flex:1}.flr-shell__search{display:inline-flex;align-items:center;gap:8px;padding:6px 10px 6px 12px;border-radius:8px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f4f4f2);color:var(--color-ink-3, #64748b);font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:12px;cursor:pointer;transition:background .12s,border-color .12s}.flr-shell__search:hover{background:var(--color-card, #fff);border-color:var(--color-rule-strong, rgba(30, 41, 59, .24))}.flr-shell__kbd{display:inline-flex;align-items:center;padding:1px 5px;border-radius:4px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-card, #fff);font-family:inherit;font-size:10.5px;letter-spacing:.04em}.flr-shell__slot{display:flex;align-items:center;gap:12px}.flr-shell__slot:empty{display:none}.flr-shell__slot--crumb{margin-left:4px}.flr-shell__slot--crumb-lead:not(:empty)+.flr-shell__crumbs:before{content:\"/\";margin-right:6px;color:var(--color-ink-3, #64748b);opacity:.5}.flr-shell__main{flex:1;min-height:0;overflow-y:auto;padding-bottom:var(--flr-shell-main-pad-bottom, 40px);background:var(--color-app-bg, #fafaf9)}\n"]
8313
+ styles: [":host{display:block}.flr-shell{display:flex;height:100dvh;background:var(--color-app-rail, #101012)}.flr-shell__surface{display:flex;flex:1;min-width:0;background:var(--color-app-bg, #fafaf9)}.flr-shell:has(.flr-shell__rail:not(:empty)) .flr-shell__surface{--flr-sidebar-height: calc(100dvh - var(--flr-shell-inset, 10px));margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, 14px);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #fafaf9)}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar{--color-app-sidebar: var(--color-app-rail, #101012);--color-ink: #ffffff;--color-ink-2: rgba(255, 255, 255, .62);--color-ink-3: rgba(255, 255, 255, .56);--color-rule: rgba(255, 255, 255, .1);--color-app-nav-hover: rgba(255, 255, 255, .06);--color-app-nav-active: rgba(255, 255, 255, .1);--color-danger: #f87171;--color-avatar-bg: rgba(255, 255, 255, .16);--color-card: var(--color-app-rail-tip, #1a1b20);--color-app-bg-2: rgba(255, 255, 255, .06);--flr-sidebar-border: transparent}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar-item{--flr-sb-active-icon: var(--flr-sb-accent-on-dark)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__surface{background:var(--color-app-rail, #101012)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__body{margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, 14px);overflow:clip;background:var(--color-app-bg, #fafaf9)}.flr-shell__rail{display:flex;align-self:stretch}.flr-shell__rail:empty{display:none}.flr-shell__brand{display:flex;align-items:stretch;width:100%}.flr-shell__body{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.flr-shell__topbar{height:64px;display:flex;align-items:center;padding:0 28px;gap:16px;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg, #fafaf9);position:sticky;top:0;z-index:5}.flr-shell__rail-toggle{margin-left:-8px}@media(max-width:880px){.flr-shell__rail-toggle{display:none}}.flr-shell__crumbs{font-size:12px;color:var(--color-ink-3, #64748b);display:flex;gap:6px;align-items:center}.flr-shell__crumb--last{color:var(--color-ink, #1e293b)}.flr-shell__crumb-sep{opacity:.5}.flr-shell__spacer{flex:1}.flr-shell__search{display:inline-flex;align-items:center;gap:8px;padding:6px 10px 6px 12px;border-radius:8px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f4f4f2);color:var(--color-ink-3, #64748b);font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:12px;cursor:pointer;transition:background .12s,border-color .12s}.flr-shell__search:hover{background:var(--color-card, #fff);border-color:var(--color-rule-strong, rgba(30, 41, 59, .24))}.flr-shell__kbd{display:inline-flex;align-items:center;padding:1px 5px;border-radius:4px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-card, #fff);font-family:inherit;font-size:10.5px;letter-spacing:.04em}.flr-shell__slot{display:flex;align-items:center;gap:12px}.flr-shell__slot:empty{display:none}.flr-shell__slot--crumb{margin-left:4px}.flr-shell__slot--crumb-lead:not(:empty)+.flr-shell__crumbs:before{content:\"/\";margin-right:6px;color:var(--color-ink-3, #64748b);opacity:.5}.flr-shell__main{flex:1;min-height:0;overflow-y:auto;padding-bottom:var(--flr-shell-main-pad-bottom, 40px);background:var(--color-app-bg, #fafaf9)}\n"]
8297
8314
  }]
8298
8315
  }],
8299
8316
  propDecorators: {
@@ -9078,17 +9095,6 @@ i0.ɵɵngDeclareClassMetadata({
9078
9095
  }]
9079
9096
  }
9080
9097
  });
9081
- function markColorOnDark(accent) {
9082
- const hex = accent.trim().replace("#", "");
9083
- if (hex.length !== 3 && hex.length !== 6) return accent;
9084
- const full = hex.length === 3 ? hex.split("").map((c) => c + c).join("") : hex;
9085
- const [r, g, b] = [
9086
- 0,
9087
- 2,
9088
- 4
9089
- ].map((i) => parseInt(full.slice(i, i + 2), 16));
9090
- return .2126 * r + .7152 * g + .0722 * b > 70 ? accent : "#ffffff";
9091
- }
9092
9098
  const PRODUCT_SLUGS$1 = /* @__PURE__ */ new Set([
9093
9099
  "ferrflow",
9094
9100
  "ferrvault",
@@ -9232,15 +9238,14 @@ const ENTITLED_STATUSES = /* @__PURE__ */ new Set([
9232
9238
  "past_due"
9233
9239
  ]);
9234
9240
  const ORG_HUB = "ferrlabs";
9235
- function entitledApps(apps, subscriptions, current) {
9241
+ function entitledApps(apps, subscriptions, _current) {
9236
9242
  const held = new Map(subscriptions.filter((sub) => ENTITLED_STATUSES.has(sub.status)).map((sub) => [sub.product, sub]));
9237
- return apps.flatMap((app) => {
9243
+ return apps.map((app) => {
9238
9244
  const sub = held.get(app.id);
9239
- if (sub) return [{
9245
+ return sub ? {
9240
9246
  ...app,
9241
9247
  meta: tierLabel(sub.tier)
9242
- }];
9243
- return app.id === "ferrlabs" || app.id === current ? [app] : [];
9248
+ } : app;
9244
9249
  });
9245
9250
  }
9246
9251
  function tierLabel(tier) {