@dataengineeringformachinelearning/viking-ui 4.0.6 → 4.1.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.
@@ -1,1900 +0,0 @@
1
- "use strict";var VikingUI=(()=>{var ae=Object.defineProperty;var Be=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var qe=Object.prototype.hasOwnProperty;var We=(t,e)=>{for(var i in e)ae(t,i,{get:e[i],enumerable:!0})},Ue=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Ge(e))!qe.call(t,r)&&r!==i&&ae(t,r,{get:()=>e[r],enumerable:!(n=Be(e,r))||n.enumerable});return t};var Fe=t=>Ue(ae({},"__esModule",{value:!0}),t);var St={};We(St,{VikingBadgeWc:()=>w,VikingButtonWc:()=>E,VikingCalloutWc:()=>_,VikingCardWc:()=>S,VikingFieldWc:()=>I,VikingInputWc:()=>M,VikingModalWc:()=>m,VikingSearchPaletteWc:()=>b,VikingSelectWc:()=>C,VikingSuiteHeaderWc:()=>D,VikingSuiteSearchPaletteWc:()=>f,VikingThemeToggleWc:()=>O,registerVikingBadgeWc:()=>U,registerVikingButtonWc:()=>F,registerVikingCalloutWc:()=>j,registerVikingCardWc:()=>Y,registerVikingElements:()=>he,registerVikingFieldWc:()=>X,registerVikingInputWc:()=>Z,registerVikingModalWc:()=>Q,registerVikingSearchPaletteWc:()=>H,registerVikingSelectWc:()=>ne,registerVikingSuiteHeaderWc:()=>ie,registerVikingSuiteSearchPaletteWc:()=>$,registerVikingThemeToggleWc:()=>z});var v=(t,e)=>{if("adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype){let n=new CSSStyleSheet;n.replaceSync(e),t.adoptedStyleSheets=[n];return}let i=document.createElement("style");i.textContent=e,t.append(i)},h=(t,e)=>t.hasAttribute(e)&&t.getAttribute(e)!=="false",K=(t,e)=>{t&&typeof t.setFormValue=="function"&&t.setFormValue(e)},B=t=>{let e=t.attachInternals;return typeof e=="function"?e.call(t):null},G=t=>{t&&typeof t.showModal=="function"&&!t.open&&t.showModal()},T=t=>{t&&typeof t.close=="function"&&t.open&&t.close()};var l=typeof HTMLElement>"u"?class{}:HTMLElement,x=t=>`${t}-${Math.random().toString(36).slice(2,9)}`,a=t=>{let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return t.replace(/[&<>"']/g,i=>e[i]??i)},q=()=>typeof navigator<"u"&&/Mac|iPhone|iPad/i.test(navigator.platform)?"\u2318":"Ctrl",c=(t,e)=>{typeof customElements>"u"||customElements.get(t)||customElements.define(t,e)},d=(t,e)=>{typeof customElements>"u"||customElements.get(t)||customElements.define(t,class extends e{})};var oe={"alert-circle":'<circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/>',"alert-triangle":'<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/>',"arrow-left":'<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',"arrow-right":'<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',"arrow-up-right":'<path d="M7 7h10v10"/><path d="M7 17 17 7"/>',"bar-chart":'<path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="M18 17V9"/><path d="M13 17V5"/><path d="M8 17v-3"/>',bell:'<path d="M10.268 21a2 2 0 0 0 3.464 0"/><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>',bold:'<path d="M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"/>',bolt:'<path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"/>',brain:'<path d="M12 18V5"/><path d="M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4"/><path d="M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5"/><path d="M17.997 5.125a4 4 0 0 1 2.526 5.77"/><path d="M18 18a4 4 0 0 0 2-7.464"/><path d="M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517"/><path d="M6 18a4 4 0 0 1-2-7.464"/><path d="M6.003 5.125a4 4 0 0 0-2.526 5.77"/>',bug:'<path d="M12 20v-9"/><path d="M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z"/><path d="M14.12 3.88 16 2"/><path d="M21 21a4 4 0 0 0-3.81-4"/><path d="M21 5a4 4 0 0 1-3.55 3.97"/><path d="M22 13h-4"/><path d="M3 21a4 4 0 0 1 3.81-4"/><path d="M3 5a4 4 0 0 0 3.55 3.97"/><path d="M6 13H2"/><path d="m8 2 1.88 1.88"/><path d="M9 7.13V6a3 3 0 1 1 6 0v1.13"/>',building:'<path d="M12 10h.01"/><path d="M12 14h.01"/><path d="M12 6h.01"/><path d="M16 10h.01"/><path d="M16 14h.01"/><path d="M16 6h.01"/><path d="M8 10h.01"/><path d="M8 14h.01"/><path d="M8 6h.01"/><path d="M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"/><rect x="4" y="2" width="16" height="20" rx="2"/>',calendar:'<path d="M8 2v4"/><path d="M16 2v4"/><rect width="18" height="18" x="3" y="4" rx="2"/><path d="M3 10h18"/>',check:'<path d="M20 6 9 17l-5-5"/>',"check-circle":'<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>',"chevron-down":'<path d="m6 9 6 6 6-6"/>',"chevron-left":'<path d="m15 18-6-6 6-6"/>',"chevron-right":'<path d="m9 18 6-6-6-6"/>',"chevron-up":'<path d="m18 15-6-6-6 6"/>',chip:'<path d="M12 20v2"/><path d="M12 2v2"/><path d="M17 20v2"/><path d="M17 2v2"/><path d="M2 12h2"/><path d="M2 17h2"/><path d="M2 7h2"/><path d="M20 12h2"/><path d="M20 17h2"/><path d="M20 7h2"/><path d="M7 20v2"/><path d="M7 2v2"/><rect x="4" y="4" width="16" height="16" rx="2"/><rect x="8" y="8" width="8" height="8" rx="1"/>',clock:'<circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/>',cloud:'<path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/>',cookie:'<path d="M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5"/><path d="M8.5 8.5v.01"/><path d="M16 15.5v.01"/><path d="M12 12v.01"/><path d="M11 17v.01"/><path d="M7 14v.01"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',"dots-horizontal":'<circle cx="12" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="19" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="5" cy="12" r="1" fill="currentColor" stroke="none"/>',"dots-vertical":'<circle cx="12" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="12" cy="5" r="1" fill="currentColor" stroke="none"/><circle cx="12" cy="19" r="1" fill="currentColor" stroke="none"/>',download:'<path d="M12 15V3"/><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m7 10 5 5 5-5"/>',external:'<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',eye:'<path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/>',"eye-off":'<path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/><path d="m2 2 20 20"/>',file:'<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/>',filter:'<path d="M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"/>',fingerprint:'<path d="M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"/><path d="M14 13.12c0 2.38 0 6.38-1 8.88"/><path d="M17.29 21.02c.12-.6.43-2.3.5-3.02"/><path d="M2 12a10 10 0 0 1 18-6"/><path d="M2 16h.01"/><path d="M21.8 16c.2-2 .131-5.354 0-6"/><path d="M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"/><path d="M8.65 22c.21-.66.45-1.32.57-2"/><path d="M9 6.8a6 6 0 0 1 9 5.2v2"/>',folder:'<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',globe:'<circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/>',"grip-vertical":'<circle cx="9" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="9" cy="5" r="1" fill="currentColor" stroke="none"/><circle cx="9" cy="19" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="12" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="5" r="1" fill="currentColor" stroke="none"/><circle cx="15" cy="19" r="1" fill="currentColor" stroke="none"/>',heart:'<path d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"/>',home:'<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"/><path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>',image:'<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/>',info:'<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',insights:'<path d="M3 3v16a2 2 0 0 0 2 2h16"/><path d="m19 9-5 5-4-4-3 3"/>',italic:'<line x1="19" x2="10" y1="4" y2="4"/><line x1="14" x2="5" y1="20" y2="20"/><line x1="15" x2="9" y1="4" y2="20"/>',key:'<path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"/><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"/>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/>',list:'<path d="M3 5h.01"/><path d="M3 12h.01"/><path d="M3 19h.01"/><path d="M8 5h13"/><path d="M8 12h13"/><path d="M8 19h13"/>',"list-ordered":'<path d="M11 5h10"/><path d="M11 12h10"/><path d="M11 19h10"/><path d="M4 4h1v5"/><path d="M4 9h2"/><path d="M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02"/>',loader:'<path d="M21 12a9 9 0 1 1-6.219-8.56"/>',lock:'<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',"log-in":'<path d="m10 17 5-5-5-5"/><path d="M15 12H3"/><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/>',"log-out":'<path d="m16 17 5-5-5-5"/><path d="M21 12H9"/><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>',mail:'<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"/><rect x="2" y="4" width="20" height="16" rx="2"/>',menu:'<path d="M4 5h16"/><path d="M4 12h16"/><path d="M4 19h16"/>',minus:'<path d="M5 12h14"/>',moon:'<path d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"/>',network:'<rect x="16" y="16" width="6" height="6" rx="1"/><rect x="2" y="16" width="6" height="6" rx="1"/><rect x="9" y="2" width="6" height="6" rx="1"/><path d="M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"/><path d="M12 12V8"/>',paperclip:'<path d="m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"/>',pencil:'<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/><path d="m15 5 4 4"/>',phone:'<path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"/>',play:'<path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" fill="currentColor" stroke="none"/>',plus:'<path d="M5 12h14"/><path d="M12 5v14"/>',policy:'<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/>',refresh:'<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/>',rocket:'<path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09"/><path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"/>',search:'<path d="m21 21-4.34-4.34"/><circle cx="11" cy="11" r="8"/>',"search-off":'<path d="m13.5 8.5-5 5"/><path d="m8.5 8.5 5 5"/><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',send:'<path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"/><path d="m21.854 2.147-10.94 10.939"/>',server:'<rect width="20" height="8" x="2" y="2" rx="2" ry="2"/><rect width="20" height="8" x="2" y="14" rx="2" ry="2"/><line x1="6" x2="6.01" y1="6" y2="6"/><line x1="6" x2="6.01" y1="18" y2="18"/>',settings:'<path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"/><circle cx="12" cy="12" r="3"/>',shield:'<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/>',ship:'<path d="M12 10.189V14"/><path d="M12 2v3"/><path d="M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6"/><path d="M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76"/><path d="M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"/>',sparkle:'<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/><path d="M20 2v4"/><path d="M22 4h-4"/><circle cx="4" cy="20" r="2"/>',speed:'<path d="m12 14 4-4"/><path d="M3.34 19a10 10 0 1 1 17.32 0"/>',star:'<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/>',terminal:'<path d="M12 19h8"/><path d="m4 17 6-6-6-6"/>',trash:'<path d="M10 11v6"/><path d="M14 11v6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M3 6h18"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>',"trending-up":'<path d="M16 7h6v6"/><path d="m22 7-8.5 8.5-5-5L2 17"/>',underline:'<path d="M6 4v6a6 6 0 0 0 12 0V4"/><line x1="4" x2="20" y1="20" y2="20"/>',upload:'<path d="M12 3v12"/><path d="m17 8-5-5-5 5"/><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>',user:'<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/>',"user-shield":'<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="M6.376 18.91a6 6 0 0 1 11.249.003"/><circle cx="12" cy="11" r="4"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>'};var se={deml:'<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M8 17V13M12 17V8M16 17V11"/>',"deml-compact":'<rect x="4" y="4" width="16" height="16" rx="3"/><path d="M9 16V12M12 16V9M15 16V13"/>',"deml-lockup":'<rect x="3" y="3" width="18" height="14" rx="2"/><path d="M8 17V13M12 17V8M16 17V11"/><path d="M3 20h18"/>'},le={drakkar:'<path d="M12 10.189V14"/><path d="M12 2v3"/><path d="M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6"/><path d="M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76"/><path d="M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"/>',"drakkar-compact":'<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M12 10.189V14"/><path d="M12 2v3"/><path d="M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6"/><path d="M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76"/><path d="M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"/>',"drakkar-lockup":'<path d="M12 10.189V14"/><path d="M12 2v3"/><path d="M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6"/><path d="M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76"/><path d="M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1"/><path d="M3 21h18"/>'},pe={deml:'<path d="M5 4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4zM8 13h2.5v4H8v-4zM12 8h2.5v9H12V8zM16 11h2.5v6H16v-6z"/>',"deml-compact":'<path d="M6 5a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5zM9 12h1.5v4H9v-4zM12 9h1.5v7H12V9zM15 11h1.5v5H15v-5z"/>',"deml-lockup":'<path d="M4 4a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4zM8 13h2.5v4H8v-4zM12 8h2.5v9H12V8zM16 11h2.5v6H16v-6z"/><rect x="3" y="19" width="18" height="2" rx="1"/>'},ue={drakkar:'<path d="M7 5h10a2 2 0 0 1 2 2v3.5L20.8 14.2l-7.8-3.5a1.8 1.8 0 0 0-1.4 0L3.2 14.2a10.5 10.5 0 0 0 2.6 7.2L5.2 13V7a2 2 0 0 0-2-2z"/><rect x="10.85" y="2" width="2.3" height="12" rx="0.4"/>',"drakkar-compact":'<path d="M3 3h18a2 2 0 0 1 2 2v18a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/><path d="M7.5 12.5 12 9.8l4.5 2.7v2.2c0 .8-.5 1.4-1.2 1.7L12 17.8l-3.3-1.6c-.7-.3-1.2-.9-1.2-1.7v-2.2z"/><rect x="11" y="6" width="2" height="5.5" rx="0.35"/>',"drakkar-lockup":'<path d="M7 5h10a2 2 0 0 1 2 2v3.5L20.8 14.2l-7.8-3.5a1.8 1.8 0 0 0-1.4 0L3.2 14.2a10.5 10.5 0 0 0 2.6 7.2L5.2 13V7a2 2 0 0 0-2-2z"/><rect x="10.85" y="2" width="2.3" height="12" rx="0.4"/><rect x="3" y="20" width="18" height="2" rx="1"/>'},ke=Object.keys(se),Nt=Object.keys(le);var me={kubernetes:"#326CE5",tensorflow:"#FF6F00",pytorch:"#EE4C2C","apache-spark":"#E25A1C",databricks:"#FF3621","aws-redshift":"#8C4FFF"},$t=Object.keys(me);var be={kubernetes:"M10.204 14.35l.007.01-.999 2.413a5.171 5.171 0 0 1-2.075-2.597l2.578-.437.004.005a.44.44 0 0 1 .484.606zm-.833-2.129a.44.44 0 0 0 .173-.756l.002-.011L7.585 9.7a5.143 5.143 0 0 0-.73 3.255l2.514-.725.002-.009zm1.145-1.98a.44.44 0 0 0 .699-.337l.01-.005.15-2.62a5.144 5.144 0 0 0-3.01 1.442l2.147 1.523.004-.002zm.76 2.75l.723.349.722-.347.18-.78-.5-.623h-.804l-.5.623.179.779zm1.5-3.095a.44.44 0 0 0 .7.336l.008.003 2.134-1.513a5.188 5.188 0 0 0-2.992-1.442l.148 2.615.002.001zm10.876 5.97l-5.773 7.181a1.6 1.6 0 0 1-1.248.594l-9.261.003a1.6 1.6 0 0 1-1.247-.596l-5.776-7.18a1.583 1.583 0 0 1-.307-1.34L2.1 5.573c.108-.47.425-.864.863-1.073L11.305.513a1.606 1.606 0 0 1 1.385 0l8.345 3.985c.438.209.755.604.863 1.073l2.062 8.955c.108.47-.005.963-.308 1.34zm-3.289-2.057c-.042-.01-.103-.026-.145-.034-.174-.033-.315-.025-.479-.038-.35-.037-.638-.067-.895-.148-.105-.04-.18-.165-.216-.216l-.201-.059a6.45 6.45 0 0 0-.105-2.332 6.465 6.465 0 0 0-.936-2.163c.052-.047.15-.133.177-.159.008-.09.001-.183.094-.282.197-.185.444-.338.743-.522.142-.084.273-.137.415-.242.032-.024.076-.062.11-.089.24-.191.295-.52.123-.736-.172-.216-.506-.236-.745-.045-.034.027-.08.062-.111.088-.134.116-.217.23-.33.35-.246.25-.45.458-.673.609-.097.056-.239.037-.303.033l-.19.135a6.545 6.545 0 0 0-4.146-2.003l-.012-.223c-.065-.062-.143-.115-.163-.25-.022-.268.015-.557.057-.905.023-.163.061-.298.068-.475.001-.04-.001-.099-.001-.142 0-.306-.224-.555-.5-.555-.275 0-.499.249-.499.555l.001.014c0 .041-.002.092 0 .128.006.177.044.312.067.475.042.348.078.637.056.906a.545.545 0 0 1-.162.258l-.012.211a6.424 6.424 0 0 0-4.166 2.003 8.373 8.373 0 0 1-.18-.128c-.09.012-.18.04-.297-.029-.223-.15-.427-.358-.673-.608-.113-.12-.195-.234-.329-.349-.03-.026-.077-.062-.111-.088a.594.594 0 0 0-.348-.132.481.481 0 0 0-.398.176c-.172.216-.117.546.123.737l.007.005.104.083c.142.105.272.159.414.242.299.185.546.338.743.522.076.082.09.226.1.288l.16.143a6.462 6.462 0 0 0-1.02 4.506l-.208.06c-.055.072-.133.184-.215.217-.257.081-.546.11-.895.147-.164.014-.305.006-.48.039-.037.007-.09.02-.133.03l-.004.002-.007.002c-.295.071-.484.342-.423.608.061.267.349.429.645.365l.007-.001.01-.003.129-.029c.17-.046.294-.113.448-.172.33-.118.604-.217.87-.256.112-.009.23.069.288.101l.217-.037a6.5 6.5 0 0 0 2.88 3.596l-.09.218c.033.084.069.199.044.282-.097.252-.263.517-.452.813-.091.136-.185.242-.268.399-.02.037-.045.095-.064.134-.128.275-.034.591.213.71.248.12.556-.007.69-.282v-.002c.02-.039.046-.09.062-.127.07-.162.094-.301.144-.458.132-.332.205-.68.387-.897.05-.06.13-.082.215-.105l.113-.205a6.453 6.453 0 0 0 4.609.012l.106.192c.086.028.18.042.256.155.136.232.229.507.342.84.05.156.074.295.145.457.016.037.043.09.062.129.133.276.442.402.69.282.247-.118.341-.435.213-.71-.02-.039-.045-.096-.065-.134-.083-.156-.177-.261-.268-.398-.19-.296-.346-.541-.443-.793-.04-.13.007-.21.038-.294-.018-.022-.059-.144-.083-.202a6.499 6.499 0 0 0 2.88-3.622c.064.01.176.03.213.038.075-.05.144-.114.28-.104.266.039.54.138.87.256.154.06.277.128.448.173.036.01.088.019.13.028l.009.003.007.001c.297.064.584-.098.645-.365.06-.266-.128-.537-.423-.608zM16.4 9.701l-1.95 1.746v.005a.44.44 0 0 0 .173.757l.003.01 2.526.728a5.199 5.199 0 0 0-.108-1.674A5.208 5.208 0 0 0 16.4 9.7zm-4.013 5.325a.437.437 0 0 0-.404-.232.44.44 0 0 0-.372.233h-.002l-1.268 2.292a5.164 5.164 0 0 0 3.326.003l-1.27-2.296h-.01zm1.888-1.293a.44.44 0 0 0-.27.036.44.44 0 0 0-.214.572l-.003.004 1.01 2.438a5.15 5.15 0 0 0 2.081-2.615l-2.6-.44-.004.005z",tensorflow:"M1.292 5.856L11.54 0v24l-4.095-2.378V7.603l-6.168 3.564.015-5.31zm21.43 5.311l-.014-5.31L12.46 0v24l4.095-2.378V14.87l3.092 1.788-.018-4.618-3.074-1.756V7.603l6.168 3.564z",pytorch:"M12.005 0L4.952 7.053a9.865 9.865 0 000 14.022 9.866 9.866 0 0014.022 0c3.984-3.9 3.986-10.205.085-14.023l-1.744 1.743c2.904 2.905 2.904 7.634 0 10.538s-7.634 2.904-10.538 0-2.904-7.634 0-10.538l4.647-4.646.582-.665zm3.568 3.899a1.327 1.327 0 00-1.327 1.327 1.327 1.327 0 001.327 1.328A1.327 1.327 0 0016.9 5.226 1.327 1.327 0 0015.573 3.9z","apache-spark":"M10.812 0c-.425.013-.845.215-1.196.605a3.593 3.593 0 00-.493.722c-.355.667-.425 1.415-.556 2.143a551.9 551.9 0 00-.726 4.087c-.027.16-.096.227-.244.273C5.83 8.386 4.06 8.94 2.3 9.514c-.387.125-.773.289-1.114.506-1.042.665-1.196 1.753-.415 2.71.346.422.79.715 1.284.936 1.1.49 2.202.976 3.3 1.47.019.01.036.013.053.019h-.004l1.306.535c0 .023.002.045 0 .073-.2 2.03-.39 4.063-.58 6.095-.04.419-.012.831.134 1.23.317.87 1.065 1.148 1.881.701.372-.204.666-.497.937-.818 1.372-1.623 2.746-3.244 4.113-4.872.111-.133.205-.15.363-.098.349.117.697.231 1.045.347h.001c.02.012.045.02.073.03l.142.042c1.248.416 2.68.775 3.929 1.19.4.132.622.164 1.045.098.311-.048.592-.062.828-.236.602-.33.995-.957.988-1.682-.005-.427-.154-.813-.35-1.186-.82-1.556-1.637-3.113-2.461-4.666-.078-.148-.076-.243.037-.375 1.381-1.615 2.756-3.236 4.133-4.855.272-.32.513-.658.653-1.058.308-.878-.09-1.57-1-1.741a2.783 2.783 0 00-1.235.069c-1.974.521-3.947 1.041-5.918 1.57-.175.047-.26.015-.355-.144a353.08 353.08 0 00-2.421-4.018 4.61 4.61 0 00-.652-.849c-.371-.37-.802-.549-1.227-.536zm.172 3.703a.592.592 0 01.189.211c.87 1.446 1.742 2.89 2.609 4.338.07.118.135.16.277.121 1.525-.41 3.052-.813 4.579-1.217.367-.098.735-.193 1.103-.289a.399.399 0 01-.1.2c-1.259 1.48-2.516 2.962-3.779 4.438-.11.13-.12.22-.04.37.937 1.803 1.768 3.309 2.498 4.76l-3.696-1.019c-.538-.18-1.077-.358-1.615-.539-.163-.055-.25-.03-.36.1-1.248 1.488-2.504 2.97-3.759 4.454a.398.398 0 01-.18.132c.035-.378.068-.757.104-1.136.149-1.572.297-3.144.451-4.716-.03-.318.117-.405-.322-.545-1.493-.593-3.346-1.321-4.816-1.905a.595.595 0 01.24-.134c1.797-.57 3.595-1.14 5.394-1.705.127-.04.199-.092.211-.233.013-.148.05-.294.076-.441.241-1.363.483-2.726.726-4.088.068-.386.14-.771.21-1.157z",databricks:"M.95 14.184L12 20.403l9.919-5.55v2.21L12 22.662l-10.484-5.96-.565.308v.77L12 24l11.05-6.218v-4.317l-.515-.309L12 19.118l-9.867-5.653v-2.21L12 16.805l11.05-6.218V6.32l-.515-.308L12 11.974 2.647 6.681 12 1.388l7.76 4.368.668-.411v-.566L12 0 .95 6.27v.72L12 13.207l9.919-5.55v2.26L12 15.52 1.516 9.56l-.565.308Z","aws-redshift":"M16.639 9.932a.822.822 0 0 1-.822-.82.823.823 0 0 1 1.645 0c0 .452-.37.82-.823.82m-2.086 4.994a.823.823 0 0 1-.822-.822.822.822 0 0 1 1.645 0 .822.822 0 0 1-.823.822m-5.004-.833a.822.822 0 1 1 .002-1.644.822.822 0 0 1-.002 1.644m-2.083 4.578a.823.823 0 0 1-.823-.82.823.823 0 0 1 1.645 0c0 .452-.37.82-.822.82m9.173-11.236a1.68 1.68 0 0 0-1.68 1.676c0 .566.285 1.066.718 1.37l-.782 1.982a1.674 1.674 0 0 0-1.923 1.104l-1.753-.398a1.675 1.675 0 0 0-3.348.103c0 .432.169.823.438 1.12l-.764 1.79c-.028-.001-.053-.008-.08-.008a1.68 1.68 0 0 0-1.68 1.676 1.68 1.68 0 0 0 3.36 0c0-.593-.312-1.112-.778-1.41l.674-1.579c.161.052.33.088.508.088.661 0 1.228-.386 1.502-.94l1.856.42a1.68 1.68 0 0 0 3.327-.325c0-.5-.224-.943-.574-1.25l.822-2.083c.053.005.104.016.157.016a1.68 1.68 0 0 0 1.68-1.676 1.68 1.68 0 0 0-1.68-1.676M12 23.145c-4.17 0-7.286-1.252-7.286-2.37V4.79C6.14 5.938 9.131 6.547 12 6.547c2.869 0 5.86-.609 7.286-1.756v15.983c0 1.12-3.116 2.37-7.286 2.37M12 .856c4.293 0 7.286 1.274 7.286 2.419 0 1.143-2.993 2.418-7.286 2.418-4.293 0-7.286-1.275-7.286-2.418C4.714 2.129 7.707.855 12 .855m8.143 2.419C20.143 1.147 15.947 0 12 0 8.052 0 3.857 1.147 3.857 3.274l.002.01h-.002v17.49C3.857 22.87 8.052 24 12 24c3.947 0 8.143-1.13 8.143-3.226V3.284h-.002l.002-.01"},N=t=>{let e=me[t],i=be[t];return`<path fill="${e}" d="${i}"/>`},Ot={kubernetes:N("kubernetes"),tensorflow:N("tensorflow"),pytorch:N("pytorch"),"apache-spark":N("apache-spark"),databricks:N("databricks"),"aws-redshift":N("aws-redshift")},fe=Object.fromEntries(Object.entries(be).map(([t,e])=>[t,`<path d="${e}"/>`]));var je={hub:'<circle cx="12" cy="12" r="3"/><path d="M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M18.4 5.6l-2.1 2.1M7.7 16.3l-2.1 2.1"/>',model:'<rect x="4" y="8" width="16" height="10" rx="2"/><path d="M8 8V6a4 4 0 0 1 8 0v2"/>',google:'<path d="M12 11.2v2.4h6.6c-.3 1.5-1.8 4.4-6.6 4.4-4 0-7.2-3.3-7.2-7.3S8 3.4 12 3.4c2.3 0 3.9 1 4.8 1.8l3.2-3.1C17.5.8 14.9 0 12 0 5.4 0 0 5.4 0 12s5.4 12 12 12c6.9 0 11.5-4.8 11.5-11.6 0-.8-.1-1.4-.2-1.9H12z"/>',apple:'<path d="M16.365 12.14c.02 2.53 2.21 3.38 2.23 3.39-.02.07-.35 1.21-1.16 2.4-.7 1.02-1.43 2.03-2.58 2.05-1.13.02-1.49-.67-2.78-.67-1.29 0-1.69.65-2.75.69-1.11.04-1.95-1.12-2.66-2.13-1.44-2.08-2.54-5.87-1.07-8.43.73-1.27 2.04-2.08 3.46-2.1 1.08-.02 2.1.72 2.78.72.67 0 2.14-.89 3.61-.76.61.03 2.33.25 3.44 1.88-.09.06-2.05 1.2-2.03 3.55M13.75 3.64c.59-.71 1-1.7.89-2.68-.86.03-1.9.57-2.52 1.28-.55.63-1.03 1.65-.9 2.62.95.07 1.92-.49 2.53-1.22"/>'},R={...oe,...se,...le,...fe,...je},ye={...pe,...ue},Ye={analytics:"deml",security:"shield",link:"link",visibility:"eye",shield:"shield",trending_up:"trending-up",lock:"lock",fingerprint:"fingerprint",gpp_maybe:"shield",verified_user:"user-shield",bolt:"bolt",cloud:"cloud",lan:"network",hub:"hub",speed:"speed",rocket_launch:"rocket",insights:"insights",check:"check",description:"file",vpn_key:"key",policy:"policy",bug_report:"bug",search:"search",chevron_left:"chevron-left",chevron_right:"chevron-right",verified:"check-circle",warning:"alert-triangle",close:"x",account_balance:"building",send:"send",check_circle:"check-circle",play_circle:"play",input:"terminal",model_training:"model",auto_awesome:"sparkle",error_outline:"alert-circle",home:"home",cookie:"cookie",search_off:"search-off",person_add:"user",storage:"aws-redshift",data_object:"aws-redshift",memory:"tensorflow",psychology:"pytorch",dns:"server",login:"log-in"},xe=["play","dots-horizontal","dots-vertical","grip-vertical"],Gt=["google","apple",...ke];var Xe=new Set(Object.keys(R)),we=t=>{let e=t.trim().toLowerCase().replace(/\s+/g,"_");if(Xe.has(e))return e;let i=Ye[e];return i||"info"},qt=Object.keys(R),Wt=Object.keys(oe);var Ze=new Set(xe),g=(t,e=16,i="viking-wc-icon")=>{let n=we(t),r=Ze.has(n),o=r?ye[n]??R[n]:R[n];return r?`<svg class="${i}" width="${e}" height="${e}" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd" aria-hidden="true">${o}</svg>`:`<svg class="${i}" width="${e}" height="${e}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${o}</svg>`},W={accent:"info",secondary:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle",info:"info",muted:"info",subtle:"info"};var Ee=`
2
- :host {
3
- display: inline-flex;
4
- font-family: var(--viking-font-family);
5
- }
6
-
7
- :host([full-width]) {
8
- display: flex;
9
- width: 100%;
10
- }
11
-
12
- :host([full-width]) .viking-btn {
13
- width: 100%;
14
- min-width: 0;
15
- }
16
-
17
- :host([compact]) .viking-btn {
18
- min-width: 0;
19
- }
20
-
21
- :host([square]) {
22
- flex: 0 0 auto;
23
- }
24
-
25
- .viking-btn {
26
- --viking-btn-depth-shadow: var(--viking-shadow-sm);
27
- --viking-btn-hover-shadow: var(--viking-shadow-hover);
28
- --viking-btn-press-shadow:
29
- inset 0 1px 2px color-mix(in srgb, var(--viking-black) 28%, transparent),
30
- var(--viking-shadow-xs);
31
-
32
- font-family: inherit;
33
- font-size: var(--viking-font-size-ui, var(--viking-font-size-sm));
34
- font-weight: var(--viking-font-weight-semibold);
35
- letter-spacing: var(--viking-letter-spacing-wide);
36
- line-height: var(--viking-line-height-snug);
37
- display: inline-flex;
38
- align-items: center;
39
- justify-content: center;
40
- gap: var(--viking-space-1-5);
41
- min-height: var(--viking-control-height);
42
- padding: var(--viking-space-half) var(--viking-control-padding-x);
43
- border-radius: var(--viking-radius-md);
44
- border: 1px solid transparent;
45
- cursor: pointer;
46
- text-decoration: none;
47
- transition: var(--viking-transition-interactive);
48
- width: auto;
49
- min-width: var(--viking-btn-min-width, 120px);
50
- white-space: nowrap;
51
- position: relative;
52
- background-clip: padding-box;
53
- isolation: isolate;
54
- user-select: none;
55
- -webkit-tap-highlight-color: transparent;
56
- box-sizing: border-box;
57
- overflow: hidden;
58
- box-shadow: var(--viking-btn-depth-shadow);
59
- }
60
-
61
- .viking-btn::before {
62
- content: "";
63
- position: absolute;
64
- inset: 1px 1px auto;
65
- height: 1px;
66
- background: linear-gradient(
67
- 90deg,
68
- transparent,
69
- color-mix(in srgb, var(--viking-metallic-100) 45%, transparent),
70
- transparent
71
- );
72
- pointer-events: none;
73
- opacity: 0.88;
74
- transition: var(--viking-transition-interactive);
75
- }
76
-
77
- .viking-btn:focus-visible {
78
- outline: var(--viking-ring-width) solid var(--viking-ring);
79
- outline-offset: var(--viking-ring-offset);
80
- z-index: 1;
81
- }
82
-
83
- .viking-btn:disabled,
84
- .viking-btn[aria-busy='true'] {
85
- opacity: var(--viking-state-disabled-opacity);
86
- cursor: not-allowed;
87
- transform: none !important;
88
- box-shadow: none !important;
89
- }
90
-
91
- .viking-btn[aria-busy='true'] {
92
- cursor: wait;
93
- }
94
-
95
- .viking-btn[aria-busy='true']::before,
96
- .viking-btn[aria-busy='true'] .viking-btn-label {
97
- opacity: 0.78;
98
- transform: translateY(1px);
99
- }
100
-
101
- .viking-btn[aria-busy='true'] .viking-btn-spinner {
102
- opacity: 0.85;
103
- }
104
-
105
- .viking-btn::after {
106
- content: "";
107
- position: absolute;
108
- inset: auto 0 0 0;
109
- height: 1px;
110
- background: linear-gradient(
111
- 90deg,
112
- transparent,
113
- color-mix(
114
- in srgb,
115
- var(--viking-metallic-100) 18%,
116
- transparent
117
- ),
118
- transparent
119
- );
120
- pointer-events: none;
121
- opacity: 0.45;
122
- transition: var(--viking-transition-interactive);
123
- }
124
-
125
- .viking-btn-sm {
126
- min-height: var(--viking-control-height-sm);
127
- padding: 0 var(--viking-space-2);
128
- font-size: var(--viking-font-size-xs);
129
- min-width: auto;
130
- }
131
-
132
- .viking-btn-xs {
133
- min-height: var(--viking-control-height-xs);
134
- padding: 0 var(--viking-space-1);
135
- font-size: var(--viking-font-size-xs);
136
- min-width: auto;
137
- }
138
-
139
- .viking-btn-square {
140
- display: inline-grid;
141
- place-items: center;
142
- width: var(--viking-control-height);
143
- min-width: var(--viking-control-height);
144
- max-width: var(--viking-control-height);
145
- height: var(--viking-control-height);
146
- min-height: var(--viking-control-height);
147
- padding: 0;
148
- line-height: 1;
149
- }
150
-
151
- .viking-btn-square.viking-btn-sm {
152
- width: var(--viking-control-height-sm);
153
- min-width: var(--viking-control-height-sm);
154
- max-width: var(--viking-control-height-sm);
155
- height: var(--viking-control-height-sm);
156
- min-height: var(--viking-control-height-sm);
157
- }
158
-
159
- .viking-btn-square.viking-btn-xs {
160
- width: var(--viking-control-height-xs);
161
- min-width: var(--viking-control-height-xs);
162
- max-width: var(--viking-control-height-xs);
163
- height: var(--viking-control-height-xs);
164
- min-height: var(--viking-control-height-xs);
165
- }
166
-
167
- .viking-btn-square .viking-btn-label {
168
- display: inline-grid;
169
- place-items: center;
170
- width: 100%;
171
- height: 100%;
172
- line-height: 1;
173
- }
174
-
175
- .viking-btn-square ::slotted(*) {
176
- display: inline-flex;
177
- align-items: center;
178
- justify-content: center;
179
- margin: 0;
180
- line-height: 1;
181
- }
182
-
183
- .viking-btn-square ::slotted(svg),
184
- .viking-btn-square ::slotted([data-viking-icon]) {
185
- width: var(--viking-icon-size-md, 20px);
186
- height: var(--viking-icon-size-md, 20px);
187
- }
188
-
189
- ::slotted(viking-icon),
190
- ::slotted(.viking-icon),
191
- ::slotted([data-viking-icon]) {
192
- display: inline-flex;
193
- align-items: center;
194
- justify-content: center;
195
- width: var(--viking-icon-size-md);
196
- height: var(--viking-icon-size-md);
197
- line-height: 1;
198
- flex-shrink: 0;
199
- pointer-events: none;
200
- flex: 0 0 auto;
201
- margin-block: calc(var(--viking-space-half) * -1);
202
- }
203
-
204
- .viking-btn-outline {
205
- background: var(--viking-surface);
206
- color: var(--viking-text);
207
- border-color: var(--viking-border-strong);
208
- box-shadow: var(--viking-btn-depth-shadow);
209
- }
210
-
211
- .viking-btn-outline:hover:not(:disabled):not([aria-busy='true']) {
212
- background: color-mix(in srgb, var(--viking-accent) 5%, var(--viking-surface-alt));
213
- border-color: color-mix(in srgb, var(--viking-accent) 45%, var(--viking-border-strong));
214
- box-shadow: var(--viking-btn-hover-shadow);
215
- transform: translateY(var(--viking-state-hover-lift));
216
- }
217
-
218
- .viking-btn-outline:active:not(:disabled):not([aria-busy='true']) {
219
- transform: translateY(0) scale(var(--viking-state-active-scale));
220
- box-shadow: var(--viking-btn-press-shadow);
221
- border-color: var(--viking-border-strong);
222
- }
223
-
224
- .viking-btn-primary {
225
- background: var(--viking-accent);
226
- color: var(--viking-accent-content);
227
- border-color: color-mix(in srgb, var(--viking-accent) 82%, var(--viking-black));
228
- box-shadow:
229
- var(--viking-btn-depth-shadow),
230
- inset 0 1px 0 color-mix(in srgb, var(--viking-white-pure) 12%, transparent);
231
- }
232
-
233
- .viking-btn-primary:hover:not(:disabled):not([aria-busy='true']) {
234
- background: var(--viking-accent-hover);
235
- border-color: var(--viking-accent-hover);
236
- box-shadow: var(--viking-btn-hover-shadow);
237
- transform: translateY(var(--viking-state-hover-lift));
238
- }
239
-
240
- .viking-btn-primary:active:not(:disabled):not([aria-busy='true']) {
241
- transform: translateY(0) scale(var(--viking-state-active-scale));
242
- box-shadow: var(--viking-btn-press-shadow);
243
- border-color: color-mix(in srgb, var(--viking-accent) 82%, var(--viking-black));
244
- }
245
-
246
- .viking-btn-secondary {
247
- background: var(--viking-accent-secondary);
248
- color: var(--viking-accent-secondary-content);
249
- border-color: color-mix(in srgb, var(--viking-accent-secondary) 82%, var(--viking-black));
250
- box-shadow:
251
- var(--viking-btn-depth-shadow),
252
- inset 0 1px 0 color-mix(in srgb, var(--viking-white-pure) 10%, transparent);
253
- }
254
-
255
- .viking-btn-secondary:hover:not(:disabled):not([aria-busy='true']) {
256
- background: var(--viking-accent-secondary-hover);
257
- border-color: var(--viking-accent-secondary-hover);
258
- box-shadow: var(--viking-btn-hover-shadow);
259
- transform: translateY(var(--viking-state-hover-lift));
260
- }
261
-
262
- .viking-btn-secondary:active:not(:disabled):not([aria-busy='true']) {
263
- transform: translateY(0) scale(var(--viking-state-active-scale));
264
- box-shadow: var(--viking-btn-press-shadow);
265
- border-color: color-mix(in srgb, var(--viking-accent-secondary) 82%, var(--viking-black));
266
- }
267
-
268
- .viking-btn-filled {
269
- background: var(--viking-surface-alt);
270
- color: var(--viking-text);
271
- border-color: var(--viking-border);
272
- box-shadow: var(--viking-shadow-xs);
273
- }
274
-
275
- .viking-btn-filled:hover:not(:disabled):not([aria-busy='true']) {
276
- border-color: color-mix(in srgb, var(--viking-accent) 45%, var(--viking-border));
277
- background: color-mix(in srgb, var(--viking-accent) 8%, var(--viking-surface-alt));
278
- box-shadow: var(--viking-btn-depth-shadow);
279
- transform: translateY(var(--viking-state-hover-lift));
280
- }
281
-
282
- .viking-btn-filled:active:not(:disabled):not([aria-busy='true']) {
283
- transform: translateY(0) scale(var(--viking-state-active-scale));
284
- box-shadow: var(--viking-btn-press-shadow);
285
- border-color: color-mix(in srgb, var(--viking-accent) 20%, var(--viking-border));
286
- background: color-mix(in srgb, var(--viking-surface-alt) 84%, var(--viking-accent));
287
- }
288
-
289
- .viking-btn-danger {
290
- background: var(--viking-danger);
291
- color: var(--viking-on-danger);
292
- border-color: color-mix(in srgb, var(--viking-danger) 85%, var(--viking-black));
293
- box-shadow:
294
- var(--viking-btn-depth-shadow),
295
- inset 0 1px 0 color-mix(in srgb, var(--viking-white-pure) 10%, transparent);
296
- }
297
-
298
- .viking-btn-danger:hover:not(:disabled):not([aria-busy='true']) {
299
- background: color-mix(in srgb, var(--viking-danger) 88%, var(--viking-white));
300
- border-color: color-mix(in srgb, var(--viking-danger) 92%, var(--viking-white));
301
- box-shadow: var(--viking-btn-hover-shadow);
302
- transform: translateY(var(--viking-state-hover-lift));
303
- }
304
-
305
- .viking-btn-danger:active:not(:disabled):not([aria-busy='true']) {
306
- transform: translateY(0) scale(var(--viking-state-active-scale));
307
- border-color: color-mix(in srgb, var(--viking-danger) 72%, var(--viking-black));
308
- background: color-mix(in srgb, var(--viking-danger) 84%, var(--viking-black));
309
- box-shadow: var(--viking-btn-press-shadow);
310
- }
311
-
312
- .viking-btn-ghost {
313
- background: transparent;
314
- color: var(--viking-text);
315
- min-width: auto;
316
- box-shadow: none;
317
- border-color: transparent;
318
- }
319
-
320
- .viking-btn-ghost:hover:not(:disabled):not([aria-busy='true']) {
321
- background: var(--viking-accent-soft);
322
- color: var(--viking-accent-strong);
323
- border-color: var(--viking-border-subtle);
324
- transform: translateY(var(--viking-state-hover-lift));
325
- }
326
-
327
- .viking-btn-ghost:active:not(:disabled):not([aria-busy='true']) {
328
- transform: translateY(0) scale(var(--viking-state-active-scale));
329
- background: var(--viking-accent-soft);
330
- color: var(--viking-accent-strong);
331
- }
332
-
333
- .viking-btn-subtle {
334
- background: transparent;
335
- color: var(--viking-text-muted);
336
- border-color: var(--viking-border-subtle);
337
- min-width: auto;
338
- box-shadow: none;
339
- }
340
-
341
- .viking-btn-subtle:hover:not(:disabled):not([aria-busy='true']) {
342
- color: var(--viking-text);
343
- background: var(--viking-accent-soft);
344
- border-color: var(--viking-border-strong);
345
- }
346
-
347
- .viking-btn-subtle:active:not(:disabled):not([aria-busy='true']) {
348
- transform: translateY(0) scale(var(--viking-state-active-scale));
349
- border-color: var(--viking-border);
350
- background: color-mix(in srgb, var(--viking-accent-soft) 70%, var(--viking-surface));
351
- box-shadow: inset 0 1px 2px color-mix(in srgb, var(--viking-black) 24%, transparent);
352
- }
353
-
354
- .viking-btn:active:not(:disabled):not([aria-busy='true']) {
355
- transform: translateY(0) scale(var(--viking-state-active-scale));
356
- }
357
-
358
- .viking-btn-label {
359
- display: inline-flex;
360
- align-items: center;
361
- gap: var(--viking-space-1);
362
- line-height: 1.2;
363
- min-width: 0;
364
- justify-content: center;
365
- text-align: center;
366
- white-space: nowrap;
367
- }
368
-
369
- .viking-btn-spinner {
370
- flex: 0 0 auto;
371
- width: var(--viking-icon-size-sm, 18px);
372
- height: var(--viking-icon-size-sm, 18px);
373
- border: 2px solid currentColor;
374
- border-right-color: transparent;
375
- border-radius: var(--viking-radius-pill);
376
- animation: viking-spin 0.8s linear infinite;
377
- }
378
-
379
- @keyframes viking-spin {
380
- to { transform: rotate(360deg); }
381
- }
382
-
383
- @media (prefers-reduced-motion: reduce) {
384
- .viking-btn-spinner { animation-duration: 0.01ms; }
385
- .viking-btn { transition-duration: 0.01ms; }
386
- }
387
- `,_e=`
388
- :host {
389
- display: block;
390
- font-family: var(--viking-font-family);
391
- }
392
-
393
- .viking-input-shell {
394
- display: flex;
395
- align-items: center;
396
- gap: var(--viking-space-1);
397
- min-height: var(--viking-control-height);
398
- padding: 0 var(--viking-space-2);
399
- font-family: inherit;
400
- font-size: var(--viking-font-size);
401
- color: var(--viking-text);
402
- background: var(--viking-surface-alt);
403
- border: 1px solid var(--viking-border);
404
- border-radius: var(--viking-radius-sm);
405
- box-shadow: var(--viking-shadow-xs);
406
- transition: var(--viking-transition-interactive);
407
- width: 100%;
408
- min-width: 0;
409
- box-sizing: border-box;
410
- }
411
-
412
- .viking-input-shell:hover:not(.viking-disabled):not(.viking-loading) {
413
- border-color: color-mix(in srgb, var(--viking-accent) 35%, var(--viking-border-strong));
414
- box-shadow: var(--viking-shadow-sm);
415
- }
416
-
417
- .viking-input-shell:focus-within:not(.viking-loading) {
418
- outline: var(--viking-ring-width) solid var(--viking-ring);
419
- outline-offset: var(--viking-ring-offset);
420
- border-color: var(--viking-accent);
421
- box-shadow: var(--viking-shadow-sm);
422
- }
423
-
424
- .viking-input-shell.viking-disabled,
425
- .viking-input-shell.viking-loading {
426
- opacity: var(--viking-state-disabled-opacity);
427
- }
428
-
429
- .viking-input-shell.viking-loading {
430
- cursor: wait;
431
- }
432
-
433
- .viking-input-native {
434
- flex: 1;
435
- min-width: 0;
436
- width: 100%;
437
- border: none;
438
- outline: none !important;
439
- background: transparent;
440
- color: var(--viking-text);
441
- font-family: inherit;
442
- font-size: inherit;
443
- padding: 0;
444
- }
445
-
446
- .viking-input-native::placeholder {
447
- color: var(--viking-text-muted);
448
- }
449
-
450
- input {
451
- flex: 1;
452
- min-width: 0;
453
- border: none;
454
- outline: none !important;
455
- background: transparent;
456
- color: var(--viking-text);
457
- font-family: inherit;
458
- font-size: inherit;
459
- padding: 0;
460
- }
461
-
462
- input::placeholder {
463
- color: var(--viking-text-muted);
464
- }
465
-
466
- input:disabled {
467
- cursor: not-allowed;
468
- }
469
-
470
- .viking-input-clear {
471
- display: inline-flex;
472
- align-items: center;
473
- justify-content: center;
474
- min-width: var(--viking-touch-target-comfort, 44px);
475
- min-height: var(--viking-touch-target-comfort, 44px);
476
- border: none;
477
- background: transparent;
478
- color: var(--viking-text-muted);
479
- cursor: pointer;
480
- padding: var(--viking-space-half);
481
- border-radius: var(--viking-radius-pill);
482
- transition: var(--viking-transition-interactive);
483
- flex-shrink: 0;
484
- -webkit-tap-highlight-color: transparent;
485
- }
486
-
487
- .viking-input-clear:hover {
488
- color: var(--viking-text);
489
- background: var(--viking-accent-soft);
490
- }
491
-
492
- .viking-input-clear:focus-visible {
493
- outline: var(--viking-ring-width) solid var(--viking-ring);
494
- outline-offset: var(--viking-ring-offset);
495
- }
496
-
497
- .viking-input-spinner {
498
- width: 1rem;
499
- height: 1rem;
500
- border: 2px solid var(--viking-text-muted);
501
- border-right-color: transparent;
502
- border-radius: 50%;
503
- animation: viking-spin 0.8s linear infinite;
504
- flex-shrink: 0;
505
- }
506
-
507
- @keyframes viking-spin {
508
- to { transform: rotate(360deg); }
509
- }
510
- `,Se=`
511
- :host {
512
- display: block;
513
- font-family: var(--viking-font-family);
514
- color: var(--viking-text);
515
- min-width: 0;
516
- }
517
-
518
- :host([hidden]) {
519
- display: none;
520
- }
521
-
522
- :host([width='full']) {
523
- width: 100%;
524
- }
525
-
526
- :host([width='half']) {
527
- width: 100%;
528
- max-width: var(--viking-select-half-max-width, min(100%, 24rem));
529
- }
530
-
531
- .viking-field {
532
- display: flex;
533
- flex-direction: column;
534
- gap: var(--viking-space-1);
535
- }
536
-
537
- .viking-field-label-row {
538
- display: flex;
539
- align-items: baseline;
540
- justify-content: space-between;
541
- gap: var(--viking-space-2);
542
- }
543
-
544
- .viking-field-label {
545
- display: inline-flex;
546
- align-items: center;
547
- gap: var(--viking-space-half);
548
- font-size: var(--viking-font-size-ui);
549
- font-weight: var(--viking-font-weight-bold);
550
- color: var(--viking-text);
551
- line-height: var(--viking-line-height-snug);
552
- cursor: pointer;
553
- }
554
-
555
- .viking-field-required {
556
- color: var(--viking-danger-text);
557
- }
558
-
559
- .viking-field-control {
560
- min-width: 0;
561
- }
562
-
563
- .viking-field-description,
564
- .viking-field-error {
565
- margin: 0;
566
- font-size: var(--viking-font-size-xs);
567
- line-height: var(--viking-line-height-relaxed);
568
- }
569
-
570
- .viking-field-description {
571
- color: var(--viking-text-muted);
572
- }
573
-
574
- .viking-field-error {
575
- color: var(--viking-danger-text);
576
- }
577
- `,Ie=`
578
- :host {
579
- display: inline-flex;
580
- align-items: center;
581
- gap: var(--viking-space-half);
582
- padding: var(--viking-space-half) var(--viking-space-1);
583
- font-family: var(--viking-font-family);
584
- font-size: var(--viking-font-size-xs);
585
- font-weight: var(--viking-font-weight-semibold);
586
- letter-spacing: var(--viking-letter-spacing-wide);
587
- line-height: var(--viking-line-height-snug);
588
- border-radius: var(--viking-radius-pill);
589
- border: 1px solid var(--viking-border);
590
- background: var(--viking-surface-alt);
591
- color: var(--viking-text);
592
- white-space: nowrap;
593
- transition: var(--viking-transition-interactive);
594
- box-shadow: var(--viking-shadow-xs);
595
- }
596
-
597
- :host([size='sm']) {
598
- padding: 0 var(--viking-space-1);
599
- font-size: var(--viking-font-size-2xs);
600
- }
601
-
602
- :host([tone='accent']) {
603
- background: var(--viking-accent);
604
- border-color: color-mix(in srgb, var(--viking-accent) 80%, var(--viking-black));
605
- color: var(--viking-accent-content);
606
- box-shadow: var(--viking-shadow-sm);
607
- }
608
-
609
- :host([tone='secondary']) {
610
- background: color-mix(in srgb, var(--viking-accent-secondary) 16%, var(--viking-surface));
611
- border-color: color-mix(in srgb, var(--viking-accent-secondary) 55%, transparent);
612
- color: var(--viking-accent-secondary);
613
- }
614
-
615
- :host([tone='success']) {
616
- background: color-mix(in srgb, var(--viking-success) 16%, var(--viking-surface));
617
- border-color: color-mix(in srgb, var(--viking-success) 55%, transparent);
618
- color: var(--viking-success);
619
- }
620
-
621
- :host([tone='warning']) {
622
- background: color-mix(in srgb, var(--viking-warning) 18%, var(--viking-surface));
623
- border-color: color-mix(in srgb, var(--viking-warning) 55%, transparent);
624
- color: var(--viking-warning);
625
- }
626
-
627
- :host([tone='danger']) {
628
- background: color-mix(in srgb, var(--viking-danger) 14%, var(--viking-surface));
629
- border-color: color-mix(in srgb, var(--viking-danger) 50%, transparent);
630
- color: var(--viking-danger-text);
631
- }
632
-
633
- :host([tone='info']) {
634
- background: color-mix(in srgb, var(--viking-info) 14%, var(--viking-surface));
635
- border-color: color-mix(in srgb, var(--viking-info) 50%, transparent);
636
- color: var(--viking-info);
637
- }
638
-
639
- :host([tone='muted']),
640
- :host([tone='subtle']) {
641
- color: var(--viking-text-muted);
642
- background: var(--viking-surface);
643
- border-color: var(--viking-border-subtle);
644
- }
645
-
646
- .viking-wc-icon {
647
- flex-shrink: 0;
648
- }
649
-
650
- .viking-badge-remove {
651
- display: inline-flex;
652
- align-items: center;
653
- justify-content: center;
654
- min-width: var(--viking-touch-target-comfort, 44px);
655
- min-height: var(--viking-touch-target-comfort, 44px);
656
- border: none;
657
- background: transparent;
658
- color: currentColor;
659
- cursor: pointer;
660
- padding: var(--viking-space-half);
661
- border-radius: var(--viking-radius-pill);
662
- transition: var(--viking-transition-interactive);
663
- margin-left: calc(var(--viking-space-half) * -1);
664
- }
665
-
666
- .viking-badge-remove:hover {
667
- background: color-mix(in srgb, currentColor 12%, transparent);
668
- }
669
-
670
- .viking-badge-remove:focus-visible {
671
- outline: var(--viking-ring-width) solid var(--viking-ring);
672
- outline-offset: var(--viking-ring-offset);
673
- }
674
- `,Me=`
675
- :host {
676
- display: block;
677
- font-family: var(--viking-font-family);
678
- }
679
-
680
- :host([hidden]) {
681
- display: none;
682
- }
683
-
684
- .viking-callout {
685
- display: flex;
686
- align-items: flex-start;
687
- gap: var(--viking-space-2);
688
- padding: var(--viking-space-2);
689
- border-radius: var(--viking-radius-lg);
690
- border: 1px solid var(--viking-border);
691
- border-left-width: 3px;
692
- background: var(--viking-surface-alt);
693
- color: var(--viking-text);
694
- font-size: var(--viking-font-size-sm);
695
- box-shadow: var(--viking-shadow-sm);
696
- }
697
-
698
- .viking-callout-icon {
699
- flex-shrink: 0;
700
- margin-top: 2px;
701
- color: var(--viking-text-muted);
702
- }
703
-
704
- .viking-callout-body {
705
- flex: 1;
706
- min-width: 0;
707
- }
708
-
709
- .viking-callout-heading {
710
- margin: 0 0 var(--viking-space-half);
711
- font-size: var(--viking-font-size-ui);
712
- font-weight: var(--viking-font-weight-bold);
713
- color: var(--viking-text);
714
- }
715
-
716
- .viking-callout-text {
717
- margin: 0;
718
- color: var(--viking-text);
719
- line-height: var(--viking-line-height-relaxed);
720
- }
721
-
722
- .viking-callout-close {
723
- display: inline-flex;
724
- align-items: center;
725
- justify-content: center;
726
- min-width: var(--viking-touch-target-comfort, 44px);
727
- min-height: var(--viking-touch-target-comfort, 44px);
728
- border: none;
729
- background: transparent;
730
- color: var(--viking-text-muted);
731
- cursor: pointer;
732
- padding: var(--viking-space-half);
733
- border-radius: var(--viking-radius);
734
- transition: var(--viking-transition-interactive);
735
- flex-shrink: 0;
736
- }
737
-
738
- .viking-callout-close:hover {
739
- color: var(--viking-text);
740
- background: color-mix(in srgb, currentColor 8%, transparent);
741
- }
742
-
743
- .viking-callout-close:focus-visible {
744
- outline: var(--viking-ring-width) solid var(--viking-ring);
745
- outline-offset: var(--viking-ring-offset);
746
- }
747
-
748
- .viking-callout-accent {
749
- border-color: var(--viking-accent);
750
- border-left-color: var(--viking-accent);
751
- background: var(--viking-accent-soft);
752
- }
753
-
754
- .viking-callout-accent .viking-callout-icon {
755
- color: var(--viking-accent);
756
- }
757
-
758
- .viking-callout-secondary {
759
- border-color: color-mix(in srgb, var(--viking-accent-secondary) 45%, transparent);
760
- border-left-color: var(--viking-accent-secondary);
761
- background: var(--viking-accent-secondary-soft);
762
- }
763
-
764
- .viking-callout-secondary .viking-callout-icon {
765
- color: var(--viking-accent-secondary);
766
- }
767
-
768
- .viking-callout-info {
769
- border-color: color-mix(in srgb, var(--viking-info) 45%, transparent);
770
- border-left-color: var(--viking-info);
771
- background: color-mix(in srgb, var(--viking-info) 10%, var(--viking-surface));
772
- }
773
-
774
- .viking-callout-info .viking-callout-icon {
775
- color: var(--viking-info);
776
- }
777
-
778
- .viking-callout-success {
779
- border-color: color-mix(in srgb, var(--viking-success) 45%, transparent);
780
- border-left-color: var(--viking-success);
781
- background: color-mix(in srgb, var(--viking-success) 10%, var(--viking-surface));
782
- }
783
-
784
- .viking-callout-success .viking-callout-icon {
785
- color: var(--viking-success);
786
- }
787
-
788
- .viking-callout-warning {
789
- border-color: color-mix(in srgb, var(--viking-warning) 45%, transparent);
790
- border-left-color: var(--viking-warning);
791
- background: color-mix(in srgb, var(--viking-warning) 12%, var(--viking-surface));
792
- }
793
-
794
- .viking-callout-warning .viking-callout-icon {
795
- color: var(--viking-warning);
796
- }
797
-
798
- .viking-callout-danger {
799
- border-color: var(--viking-danger);
800
- border-left-color: var(--viking-danger);
801
- background: color-mix(in srgb, var(--viking-crimson-600) 22%, var(--viking-surface));
802
- color: var(--viking-white);
803
- }
804
-
805
- .viking-callout-danger .viking-callout-icon {
806
- color: var(--viking-crimson-400);
807
- }
808
-
809
- .viking-callout-danger .viking-callout-text {
810
- color: var(--viking-white);
811
- }
812
- `,Ae=`
813
- :host {
814
- display: block;
815
- font-family: var(--viking-font-family);
816
- min-width: 0;
817
- }
818
-
819
- :host([width='full']) {
820
- width: 100%;
821
- }
822
-
823
- :host([width='half']) {
824
- width: 100%;
825
- max-width: var(--viking-select-half-max-width, min(100%, 24rem));
826
- }
827
-
828
- .viking-field {
829
- display: flex;
830
- flex-direction: column;
831
- gap: var(--viking-space-1);
832
- }
833
-
834
- .viking-field-label {
835
- font-size: var(--viking-font-size-ui);
836
- font-weight: var(--viking-font-weight-bold);
837
- color: var(--viking-text);
838
- }
839
-
840
- .viking-field-description {
841
- margin: 0;
842
- font-size: var(--viking-font-size-xs);
843
- color: var(--viking-text-muted);
844
- }
845
-
846
- .viking-field-error {
847
- margin: 0;
848
- font-size: var(--viking-font-size-xs);
849
- color: var(--viking-danger);
850
- }
851
-
852
- .viking-select-native {
853
- width: 100%;
854
- min-height: var(--viking-control-height);
855
- padding: 0 var(--viking-space-2);
856
- border: 1px solid var(--viking-border-strong);
857
- border-radius: var(--viking-radius);
858
- background: var(--viking-surface);
859
- color: var(--viking-text);
860
- font-family: inherit;
861
- font-size: var(--viking-font-size);
862
- cursor: pointer;
863
- transition: var(--viking-transition-interactive);
864
- box-shadow: var(--viking-shadow-sm);
865
- }
866
-
867
- .viking-select-native:hover:not(:disabled) {
868
- border-color: var(--viking-accent-strong);
869
- box-shadow: var(--viking-shadow-md);
870
- }
871
-
872
- .viking-select-native:focus-visible {
873
- outline: var(--viking-ring-width) solid var(--viking-ring);
874
- outline-offset: var(--viking-ring-offset);
875
- }
876
-
877
- .viking-select-native:disabled {
878
- opacity: var(--viking-state-disabled-opacity);
879
- cursor: not-allowed;
880
- }
881
-
882
- .viking-select-native[aria-invalid='true'] {
883
- border-color: var(--viking-danger);
884
- }
885
- `,Ce=`
886
- :host {
887
- display: contents;
888
- }
889
-
890
- .viking-modal-backdrop {
891
- position: fixed;
892
- inset: 0;
893
- z-index: var(--viking-z-overlay, 10001);
894
- display: flex;
895
- align-items: center;
896
- justify-content: center;
897
- padding: var(--viking-space-3);
898
- background: var(--viking-overlay-backdrop);
899
- backdrop-filter: blur(8px);
900
- -webkit-backdrop-filter: blur(8px);
901
- border: none;
902
- animation: viking-backdrop-in var(--viking-duration-fast) var(--viking-ease-out);
903
- }
904
-
905
- .viking-modal-panel {
906
- display: flex;
907
- flex-direction: column;
908
- gap: var(--viking-space-2);
909
- width: min(522px, calc(100vw - var(--viking-space-4)));
910
- max-height: calc(100vh - var(--viking-space-6));
911
- padding: var(--viking-space-3);
912
- border: 1px solid var(--viking-border-strong);
913
- border-radius: var(--viking-radius-lg);
914
- background: var(--viking-surface);
915
- color: var(--viking-text);
916
- box-shadow: var(--viking-shadow-lg);
917
- font-family: var(--viking-font-family);
918
- position: relative;
919
- overflow: hidden;
920
- animation: viking-modal-in var(--viking-duration) var(--viking-ease-default);
921
- }
922
-
923
- .viking-modal-panel::before {
924
- content: '';
925
- position: absolute;
926
- inset: 0 0 auto;
927
- height: 1px;
928
- background: linear-gradient(
929
- 90deg,
930
- transparent,
931
- color-mix(in srgb, var(--viking-metallic-200) 22%, transparent),
932
- transparent
933
- );
934
- pointer-events: none;
935
- }
936
-
937
- .viking-modal-header {
938
- display: flex;
939
- align-items: flex-start;
940
- justify-content: space-between;
941
- gap: var(--viking-space-2);
942
- padding-bottom: var(--viking-space-1);
943
- border-bottom: 1px solid var(--viking-border-subtle);
944
- }
945
-
946
- .viking-modal-heading {
947
- margin: 0;
948
- font-size: var(--viking-font-size-md);
949
- font-weight: var(--viking-font-weight-bold);
950
- letter-spacing: var(--viking-letter-spacing-tight);
951
- color: var(--viking-text);
952
- line-height: var(--viking-line-height-tight);
953
- }
954
-
955
- .viking-modal-close {
956
- display: inline-flex;
957
- align-items: center;
958
- justify-content: center;
959
- min-width: var(--viking-touch-target-comfort, 44px);
960
- min-height: var(--viking-touch-target-comfort, 44px);
961
- border: 1px solid transparent;
962
- background: transparent;
963
- color: var(--viking-text-muted);
964
- cursor: pointer;
965
- border-radius: var(--viking-radius);
966
- transition: var(--viking-transition-interactive);
967
- flex-shrink: 0;
968
- }
969
-
970
- .viking-modal-close:hover {
971
- color: var(--viking-text);
972
- background: var(--viking-accent-soft);
973
- border-color: var(--viking-border-subtle);
974
- }
975
-
976
- .viking-modal-close:focus-visible {
977
- outline: var(--viking-ring-width) solid var(--viking-ring);
978
- outline-offset: var(--viking-ring-offset);
979
- }
980
-
981
- .viking-modal-body {
982
- overflow-y: auto;
983
- color: var(--viking-text-muted);
984
- font-size: var(--viking-font-size);
985
- line-height: var(--viking-line-height-relaxed);
986
- }
987
-
988
- .viking-modal-footer {
989
- display: flex;
990
- flex-wrap: wrap;
991
- gap: var(--viking-space-2);
992
- justify-content: flex-end;
993
- padding-top: var(--viking-space-2);
994
- border-top: 1px solid var(--viking-border-subtle);
995
- }
996
-
997
- .viking-modal-footer:empty {
998
- display: none;
999
- }
1000
-
1001
- @keyframes viking-backdrop-in {
1002
- from { opacity: 0; }
1003
- to { opacity: 1; }
1004
- }
1005
-
1006
- @keyframes viking-modal-in {
1007
- from {
1008
- opacity: 0;
1009
- transform: translateY(var(--viking-space-1)) scale(0.98);
1010
- }
1011
- to {
1012
- opacity: 1;
1013
- transform: translateY(0) scale(1);
1014
- }
1015
- }
1016
-
1017
- @media (prefers-reduced-motion: reduce) {
1018
- .viking-modal-backdrop,
1019
- .viking-modal-panel {
1020
- animation: none;
1021
- }
1022
- }
1023
- `,Le=`
1024
- :host {
1025
- display: contents;
1026
- }
1027
-
1028
- .viking-search-palette-backdrop {
1029
- position: fixed;
1030
- inset: 0;
1031
- z-index: var(--viking-z-overlay, 10001);
1032
- display: flex;
1033
- align-items: flex-start;
1034
- justify-content: center;
1035
- padding: 10vh var(--viking-space-2) var(--viking-space-2);
1036
- background: var(--viking-overlay-backdrop);
1037
- backdrop-filter: blur(8px);
1038
- -webkit-backdrop-filter: blur(8px);
1039
- border: none;
1040
- animation: viking-backdrop-in var(--viking-duration-fast) var(--viking-ease-out);
1041
- }
1042
-
1043
- .viking-search-palette-backdrop:not([open]) {
1044
- display: none !important;
1045
- pointer-events: none;
1046
- }
1047
-
1048
- .viking-search-palette {
1049
- display: flex;
1050
- flex-direction: column;
1051
- background: var(--viking-surface-raised, var(--viking-surface));
1052
- border: 1px solid var(--viking-border-strong);
1053
- border-radius: var(--viking-radius-lg);
1054
- box-shadow: var(--viking-shadow-lg);
1055
- overflow: hidden;
1056
- max-width: 600px;
1057
- width: min(100%, 600px);
1058
- margin: 0 auto;
1059
- font-family: var(--viking-font-family);
1060
- color: var(--viking-text);
1061
- animation: viking-modal-in var(--viking-duration) var(--viking-ease-default);
1062
- position: relative;
1063
- isolation: isolate;
1064
- }
1065
-
1066
- .viking-search-palette::before {
1067
- content: '';
1068
- position: absolute;
1069
- inset: 0 0 auto;
1070
- height: 1px;
1071
- background: linear-gradient(
1072
- 90deg,
1073
- transparent,
1074
- color-mix(in srgb, var(--viking-metallic-200) 22%, transparent),
1075
- transparent
1076
- );
1077
- pointer-events: none;
1078
- z-index: 1;
1079
- }
1080
-
1081
- .viking-search-palette-header {
1082
- display: flex;
1083
- align-items: center;
1084
- padding: var(--viking-space-2);
1085
- border-bottom: 1px solid var(--viking-border);
1086
- gap: var(--viking-space-1);
1087
- background: color-mix(in srgb, var(--viking-bg) 26%, var(--viking-surface-raised));
1088
- }
1089
-
1090
- .viking-search-palette-header:focus-within {
1091
- border-bottom-color: var(--viking-accent);
1092
- box-shadow: inset 0 -2px 0 var(--viking-accent-soft);
1093
- }
1094
-
1095
- .viking-search-palette-icon {
1096
- color: var(--viking-text-muted);
1097
- flex-shrink: 0;
1098
- }
1099
-
1100
- .viking-search-palette-input {
1101
- flex: 1;
1102
- background: none;
1103
- border: none;
1104
- outline: none;
1105
- font-size: calc(var(--viking-font-size) * 1.05);
1106
- color: var(--viking-text);
1107
- font-family: inherit;
1108
- min-width: 0;
1109
- }
1110
-
1111
- .viking-search-palette-input::placeholder {
1112
- color: var(--viking-text-muted);
1113
- }
1114
-
1115
- .viking-search-palette-close {
1116
- display: inline-flex;
1117
- align-items: center;
1118
- justify-content: center;
1119
- min-width: var(--viking-touch-target-comfort, 44px);
1120
- min-height: var(--viking-touch-target-comfort, 44px);
1121
- border: none;
1122
- background: transparent;
1123
- color: var(--viking-text-muted);
1124
- cursor: pointer;
1125
- padding: var(--viking-space-half);
1126
- border-radius: var(--viking-radius);
1127
- transition: var(--viking-transition-interactive);
1128
- flex-shrink: 0;
1129
- }
1130
-
1131
- .viking-search-palette-close:hover {
1132
- color: var(--viking-text);
1133
- background: var(--viking-accent-soft);
1134
- }
1135
-
1136
- .viking-search-palette-close:focus-visible {
1137
- outline: var(--viking-ring-width) solid var(--viking-ring);
1138
- outline-offset: var(--viking-ring-offset);
1139
- }
1140
-
1141
- .viking-search-palette-body {
1142
- max-height: 50vh;
1143
- overflow-y: auto;
1144
- padding: var(--viking-space-2);
1145
- }
1146
-
1147
- .viking-search-palette-footer {
1148
- display: flex;
1149
- align-items: center;
1150
- justify-content: center;
1151
- gap: var(--viking-space-1);
1152
- padding: var(--viking-space-1) var(--viking-space-2);
1153
- border-top: 1px solid var(--viking-border);
1154
- font-size: calc(var(--viking-font-size) * 0.85);
1155
- color: var(--viking-text-muted);
1156
- }
1157
-
1158
- .viking-kbd {
1159
- display: inline-flex;
1160
- align-items: center;
1161
- justify-content: center;
1162
- min-width: 1.5rem;
1163
- padding: 2px 6px;
1164
- font-family: inherit;
1165
- font-size: calc(var(--viking-font-size) * 0.75);
1166
- border-radius: calc(var(--viking-radius) / 2);
1167
- border: 1px solid var(--viking-border);
1168
- background: var(--viking-surface-alt);
1169
- }
1170
-
1171
- .viking-search-results {
1172
- display: flex;
1173
- flex-direction: column;
1174
- gap: var(--viking-space-1);
1175
- }
1176
-
1177
- .viking-search-group-label {
1178
- margin: var(--viking-space-1) 0 var(--viking-space-half);
1179
- padding: 0 var(--viking-space-1);
1180
- font-size: var(--viking-font-size-2xs);
1181
- font-weight: var(--viking-font-weight-semibold);
1182
- letter-spacing: var(--viking-letter-spacing-caps);
1183
- text-transform: uppercase;
1184
- color: var(--viking-text-muted);
1185
- }
1186
-
1187
- .viking-search-result {
1188
- display: flex;
1189
- align-items: center;
1190
- min-height: var(--viking-control-height-sm, 36px);
1191
- padding: var(--viking-space-1) var(--viking-space-2);
1192
- border-radius: var(--viking-radius);
1193
- background: var(--viking-surface-alt);
1194
- border: 1px solid var(--viking-border-subtle);
1195
- cursor: pointer;
1196
- transition: var(--viking-transition-interactive);
1197
- gap: var(--viking-space-1);
1198
- text-decoration: none;
1199
- color: inherit;
1200
- }
1201
-
1202
- .viking-search-result:hover,
1203
- .viking-search-result.is-selected {
1204
- background: color-mix(in srgb, var(--viking-accent) 10%, var(--viking-surface-alt));
1205
- border-color: color-mix(in srgb, var(--viking-accent) 42%, var(--viking-border-strong));
1206
- box-shadow: var(--viking-shadow-sm);
1207
- }
1208
-
1209
- .viking-search-result:focus-visible {
1210
- outline: var(--viking-ring-width) solid var(--viking-ring);
1211
- outline-offset: var(--viking-ring-offset);
1212
- }
1213
-
1214
- .viking-search-result-title {
1215
- font-size: var(--viking-font-size-sm);
1216
- font-weight: var(--viking-font-weight-semibold);
1217
- color: var(--viking-text);
1218
- }
1219
-
1220
- .viking-search-result-snippet {
1221
- font-size: var(--viking-font-size-xs);
1222
- color: var(--viking-text-muted);
1223
- }
1224
-
1225
- .viking-search-empty {
1226
- padding: var(--viking-space-3);
1227
- text-align: center;
1228
- color: var(--viking-text-muted);
1229
- font-size: var(--viking-font-size-sm);
1230
- }
1231
-
1232
- @keyframes viking-backdrop-in {
1233
- from { opacity: 0; }
1234
- to { opacity: 1; }
1235
- }
1236
-
1237
- @keyframes viking-modal-in {
1238
- from {
1239
- opacity: 0;
1240
- transform: translateY(var(--viking-space-1)) scale(0.98);
1241
- }
1242
- to {
1243
- opacity: 1;
1244
- transform: translateY(0) scale(1);
1245
- }
1246
- }
1247
-
1248
- @media (prefers-reduced-motion: reduce) {
1249
- .viking-search-palette-backdrop,
1250
- .viking-search-palette {
1251
- animation: none;
1252
- }
1253
- }
1254
- `;var Qe=new Set(["accent","secondary","success","warning","danger","info","muted","subtle"]),w=class extends l{static tag="viking-badge";static legacyTag="viking-badge-wc";static get observedAttributes(){return["tone","size","icon","removable"]}shadow;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),v(this.shadow,Ie)}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}get tone(){let e=this.getAttribute("tone")??"";return Qe.has(e)?e:null}get size(){return this.getAttribute("size")==="sm"?"sm":null}get removable(){return this.hasAttribute("removable")&&this.getAttribute("removable")!=="false"}onRemove=()=>{this.dispatchEvent(new CustomEvent("viking-removed",{bubbles:!0,composed:!0}))};render(){let e=this.tone;e&&this.getAttribute("tone")!==e?this.setAttribute("tone",e):!e&&this.hasAttribute("tone")&&this.removeAttribute("tone");let i=this.size;i&&this.getAttribute("size")!==i?this.setAttribute("size",i):!i&&this.hasAttribute("size")&&this.removeAttribute("size");let n=this.getAttribute("icon")??(e?W[e]:null),r=n?g(n,16):"";this.shadow.innerHTML=`
1255
- ${r}
1256
- <span part="label"><slot></slot></span>
1257
- ${this.removable?`<button type="button" class="viking-badge-remove" part="remove" aria-label="Remove">${g("x",14)}</button>`:""}
1258
- `,this.shadow.querySelector(".viking-badge-remove")?.addEventListener("click",this.onRemove)}},U=()=>{c(w.tag,w),d(w.legacyTag,w)};var Je=new Set(["outline","primary","secondary","filled","danger","ghost","subtle"]),et=new Set(["sm","xs"]),E=class extends l{static tag="viking-button";static legacyTag="viking-button-wc";static get observedAttributes(){return["variant","size","type","disabled","loading","href","target","aria-label","aria-busy","square","full-width","compact"]}shadow;control=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),v(this.shadow,Ee)}connectedCallback(){this.render(),this.syncHostSemantics(),this.control?.addEventListener("click",this.onClick)}disconnectedCallback(){this.control?.removeEventListener("click",this.onClick)}attributeChangedCallback(){this.isConnected&&(this.render(),this.syncHostSemantics())}onClick=e=>{if(this.disabled||this.loading){e.preventDefault(),e.stopPropagation();return}this.dispatchEvent(new CustomEvent("viking-press",{bubbles:!0,composed:!0,detail:e}))};get variant(){let e=this.getAttribute("variant")??"outline";return Je.has(e)?e:"outline"}get size(){let e=this.getAttribute("size");return e&&et.has(e)?e:null}get disabled(){return h(this,"disabled")}get loading(){return h(this,"loading")}get square(){return h(this,"square")}syncHostSemantics(){this.hasAttribute("role")||this.setAttribute("role",this.getAttribute("href")?"link":"button")}render(){let e=this.getAttribute("href"),i=!!e,n=i?"a":"button",r=["viking-btn",`viking-btn-${this.variant}`,this.size?`viking-btn-${this.size}`:"",this.square?"viking-btn-square":""].filter(Boolean).join(" "),o=this.getAttribute("aria-label")??"",s=this.getAttribute("aria-busy")==="true"||this.loading?"true":null,u=a(this.getAttribute("type")??"button"),p=e?a(e):"",k=this.getAttribute("target"),y=k?a(k):"";this.shadow.innerHTML=`
1259
- <${n}
1260
- class="${r}"
1261
- part="control"
1262
- ${i?`href="${p}"`:`type="${u}"`}
1263
- ${i&&y?`target="${y}"`:""}
1264
- ${i&&k==="_blank"?'rel="noopener noreferrer"':""}
1265
- ${this.disabled||this.loading?"disabled":""}
1266
- ${o?`aria-label="${a(o)}"`:""}
1267
- ${s?`aria-busy="${s}"`:""}
1268
- ${this.disabled&&i?'aria-disabled="true" tabindex="-1"':""}
1269
- >
1270
- ${this.loading?'<span class="viking-btn-spinner" aria-hidden="true"></span>':""}
1271
- <span class="viking-btn-label" part="label"><slot></slot></span>
1272
- </${n}>
1273
- `,this.control=this.shadow.querySelector(n)}},F=()=>{c(E.tag,E),d(E.legacyTag,E)};var tt=new Set(["accent","secondary","success","warning","danger","info","muted"]),_=class extends l{static tag="viking-callout";static legacyTag="viking-callout-wc";static get observedAttributes(){return["tone","heading","icon","dismissible","hidden"]}shadow;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),v(this.shadow,Me)}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}get tone(){let e=this.getAttribute("tone")??"info";return tt.has(e)?e:"info"}get dismissible(){return this.hasAttribute("dismissible")&&this.getAttribute("dismissible")!=="false"}onDismiss=()=>{this.setAttribute("hidden",""),this.dispatchEvent(new CustomEvent("viking-close",{bubbles:!0,composed:!0}))};render(){let e=this.getAttribute("heading")??"",i=this.getAttribute("icon")??W[this.tone]??"info",n=g(i,22,"viking-callout-icon");this.shadow.innerHTML=`
1274
- <div class="viking-callout viking-callout-${this.tone}" role="note" part="surface">
1275
- <span part="icon">${n}</span>
1276
- <div class="viking-callout-body" part="body">
1277
- ${e?`<p class="viking-callout-heading" part="heading">${a(e)}</p>`:""}
1278
- <div class="viking-callout-text" part="text"><slot></slot></div>
1279
- </div>
1280
- ${this.dismissible?`<button type="button" class="viking-callout-close" part="close" aria-label="Dismiss">${g("x",18)}</button>`:""}
1281
- </div>
1282
- `,this.shadow.querySelector(".viking-callout-close")?.addEventListener("click",this.onDismiss)}},j=()=>{c(_.tag,_),d(_.legacyTag,_)};var S=class extends l{static tag="viking-card";static legacyTag="viking-card-wc";static get observedAttributes(){return["compact","interactive","title","loading"]}connectedCallback(){this.syncClasses()}attributeChangedCallback(){this.isConnected&&this.syncClasses()}syncClasses(){this.classList.add("viking-card"),this.classList.toggle("viking-card-compact",this.hasAttribute("compact")),this.classList.toggle("viking-card-interactive",this.hasAttribute("interactive")),this.classList.toggle("viking-card-loading",this.hasAttribute("loading"));let e=this.getAttribute("title");e?(this.setAttribute("role","region"),this.setAttribute("aria-label",e)):(this.removeAttribute("role"),this.removeAttribute("aria-label"))}},Y=()=>{c(S.tag,S),d(S.legacyTag,S)};var I=class extends l{static tag="viking-field";static legacyTag="viking-field-wc";static get observedAttributes(){return["label","description","error","required","width"]}shadow;labelId=x("viking-field-label");descriptionId=x("viking-field-description");errorId=x("viking-field-error");slotEl=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),v(this.shadow,Se)}connectedCallback(){this.render(),this.syncControlA11y()}disconnectedCallback(){this.slotEl?.removeEventListener("slotchange",this.syncControlA11y)}attributeChangedCallback(){this.isConnected&&(this.render(),this.syncControlA11y())}get control(){return(this.slotEl?.assignedElements({flatten:!0})??[]).find(i=>i instanceof HTMLElement)??null}focusControl=()=>{this.control?.focus?.()};syncControlA11y=()=>{let e=this.control;if(!e)return;let i=[this.getAttribute("description")??"",this.getAttribute("error")??""].filter(Boolean).join(" "),n=this.getAttribute("label")??"";n&&!e.hasAttribute("aria-label")&&e.setAttribute("aria-label",n),i?e.setAttribute("aria-description",i):e.removeAttribute("aria-description"),this.getAttribute("error")?(e.setAttribute("aria-invalid","true"),e.setAttribute("error",this.getAttribute("error")??"")):(e.removeAttribute("aria-invalid"),e.getAttribute("error")===""&&e.removeAttribute("error")),h(this,"required")&&e.setAttribute("required","")};render(){let e=this.getAttribute("label")??"",i=this.getAttribute("description")??"",n=this.getAttribute("error")??"",r=h(this,"required");this.shadow.innerHTML=`
1283
- <div class="viking-field" part="field" role="group" aria-labelledby="${this.labelId}">
1284
- ${e?`<div class="viking-field-label-row" part="label-row">
1285
- <span class="viking-field-label" part="label" id="${this.labelId}">
1286
- <span>${a(e)}</span>
1287
- ${r?'<span class="viking-field-required" aria-label="required">*</span>':""}
1288
- </span>
1289
- </div>`:`<span id="${this.labelId}" hidden>Form field</span>`}
1290
- <div class="viking-field-control" part="control"><slot></slot></div>
1291
- ${i?`<p id="${this.descriptionId}" class="viking-field-description" part="description">${a(i)}</p>`:""}
1292
- ${n?`<p id="${this.errorId}" class="viking-field-error" part="error" role="alert">${a(n)}</p>`:""}
1293
- </div>
1294
- `,this.slotEl=this.shadow.querySelector("slot"),this.slotEl?.addEventListener("slotchange",this.syncControlA11y),this.shadow.querySelector(".viking-field-label")?.addEventListener("click",this.focusControl)}},X=()=>{c(I.tag,I),d(I.legacyTag,I)};var M=class extends l{static formAssociated=!0;static tag="viking-input";static legacyTag="viking-input-wc";static get observedAttributes(){return["type","placeholder","value","disabled","loading","clearable","name","autocomplete","required","readonly","minlength","maxlength","pattern","error","aria-label","aria-describedby","bare"]}shadow;internals;input=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),this.internals=B(this),v(this.shadow,_e)}connectedCallback(){this.render(),this.syncFormValue()}attributeChangedCallback(e){if(this.isConnected){if(e==="value"&&this.input){this.input.value=this.getAttribute("value")??"",this.syncFormValue();return}this.render()}}get value(){return this.input?.value??this.getAttribute("value")??""}set value(e){let i=e??"";this.setAttribute("value",i),this.input&&(this.input.value=i),this.syncFormValue()}get disabled(){return h(this,"disabled")}get loading(){return h(this,"loading")}get clearable(){return h(this,"clearable")}get bare(){return h(this,"bare")}onInput=()=>{let e=this.input?.value??"";this.setAttribute("value",e),this.syncFormValue(),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))};onBlur=()=>{this.dispatchEvent(new Event("blur",{bubbles:!0,composed:!0}))};onClear=()=>{this.value="",this.input?.focus(),this.dispatchEvent(new CustomEvent("viking-cleared",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))};syncFormValue(){K(this.internals,this.value)}render(){let e=["viking-input-shell",this.disabled?"viking-disabled":"",this.loading?"viking-loading":""].filter(Boolean).join(" "),i=a(this.getAttribute("type")??"text"),n=this.getAttribute("placeholder")??"",r=a(n),o=a(this.getAttribute("value")??""),s=this.getAttribute("aria-label")??(n||"Text input"),u=a(this.getAttribute("autocomplete")??""),p=a(this.getAttribute("aria-describedby")??""),k=a(this.getAttribute("minlength")??""),y=a(this.getAttribute("maxlength")??""),L=a(this.getAttribute("pattern")??""),V=this.getAttribute("error")??"",re=h(this,"required"),P=h(this,"readonly"),Ke=this.clearable&&o.length>0&&!this.loading&&!this.bare,ve=`
1295
- ${this.disabled||this.loading?"disabled":""}
1296
- ${re?"required":""}
1297
- ${P?"readonly":""}
1298
- aria-label="${a(s)}"
1299
- ${p?`aria-describedby="${p}"`:""}
1300
- ${this.loading?'aria-busy="true"':""}
1301
- ${V?'aria-invalid="true"':""}
1302
- ${u?`autocomplete="${u}"`:""}
1303
- ${k?`minlength="${k}"`:""}
1304
- ${y?`maxlength="${y}"`:""}
1305
- ${L?`pattern="${L}"`:""}
1306
- `;this.bare?this.shadow.innerHTML=`
1307
- <input
1308
- part="input"
1309
- class="viking-input-native"
1310
- type="${i}"
1311
- placeholder="${r}"
1312
- value="${o}"
1313
- ${ve}
1314
- />
1315
- `:this.shadow.innerHTML=`
1316
- <div class="${e}" part="shell">
1317
- <slot name="leading"></slot>
1318
- <input
1319
- part="input"
1320
- type="${i}"
1321
- placeholder="${r}"
1322
- value="${o}"
1323
- ${ve}
1324
- />
1325
- ${this.loading?'<span class="viking-input-spinner" aria-hidden="true"></span>':""}
1326
- ${Ke?'<button type="button" class="viking-input-clear" aria-label="Clear input" part="clear">\xD7</button>':""}
1327
- <slot name="trailing"></slot>
1328
- </div>
1329
- `,this.input=this.shadow.querySelector("input"),this.input?.addEventListener("input",this.onInput),this.input?.addEventListener("blur",this.onBlur),this.shadow.querySelector(".viking-input-clear")?.addEventListener("click",this.onClear)}},Z=()=>{c(M.tag,M),d(M.legacyTag,M)};var m=class extends l{static tag="viking-modal";static legacyTag="viking-modal-wc";static dialogTag="viking-dialog";static get observedAttributes(){return["open","title","dismissible"]}shadow;dialogEl=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),v(this.shadow,Ce)}connectedCallback(){this.render(),this.syncOpen(),this.dialogEl?.addEventListener("close",this.onClose),this.dialogEl?.addEventListener("click",this.onBackdropClick)}disconnectedCallback(){this.dialogEl?.removeEventListener("close",this.onClose),this.dialogEl?.removeEventListener("click",this.onBackdropClick)}attributeChangedCallback(e){if(this.isConnected){if(e==="open"){this.syncOpen();return}if(e==="title"){this.updateTitle();return}e==="dismissible"&&(this.render(),this.syncOpen())}}openModal(){this.setAttribute("open",""),this.syncOpen()}closeModal(){this.removeAttribute("open"),T(this.dialogEl)}open(){this.openModal()}close(){this.closeModal()}get dismissible(){return this.getAttribute("dismissible")!=="false"}onClose=()=>{this.removeAttribute("open"),this.dispatchEvent(new CustomEvent("viking-close",{bubbles:!0,composed:!0}))};onBackdropClick=e=>{this.dismissible&&e.target===this.dialogEl&&this.closeModal()};syncOpen(){if(!this.dialogEl)return;let e=this.hasAttribute("open");e&&!this.dialogEl.open?(G(this.dialogEl),queueMicrotask(()=>{(this.shadow.querySelector(".viking-modal-close")??this.dialogEl)?.focus()})):!e&&this.dialogEl.open&&T(this.dialogEl)}updateTitle(){let e=this.getAttribute("title")??"Dialog",i=this.shadow.querySelector(".viking-modal-heading");i&&(i.textContent=e),this.dialogEl?.setAttribute("aria-label",e)}render(){let e=this.getAttribute("title")??"Dialog";this.shadow.innerHTML=`
1330
- <dialog class="viking-modal-backdrop" aria-label="${a(e)}" aria-modal="true">
1331
- <div class="viking-modal-panel" part="panel" role="document">
1332
- <header class="viking-modal-header" part="header">
1333
- <h2 class="viking-modal-heading" part="title">${a(e)}</h2>
1334
- ${this.dismissible?`<button type="button" class="viking-modal-close" part="close" aria-label="Close dialog">${g("x",20)}</button>`:""}
1335
- </header>
1336
- <div class="viking-modal-body" part="body"><slot></slot></div>
1337
- <footer class="viking-modal-footer" part="footer"><slot name="actions"></slot></footer>
1338
- </div>
1339
- </dialog>
1340
- `,this.dialogEl=this.shadow.querySelector("dialog"),this.shadow.querySelector(".viking-modal-close")?.addEventListener("click",()=>this.closeModal()),this.dialogEl?.addEventListener("keydown",i=>{i.key==="Escape"&&this.dismissible&&(i.preventDefault(),this.closeModal())})}},Q=()=>{c(m.tag,m),d(m.legacyTag,m),d(m.dialogTag,m)};var it=t=>{let e=t.getAttribute("items");if(!e)return[];try{let i=JSON.parse(e);return Array.isArray(i)?i:[]}catch{return[]}},nt=(t,e)=>[t.title,t.snippet??"",t.group??"",t.href,...t.keywords??[]].join(" ").toLowerCase().includes(e),rt=(t,e)=>{let i=e.trim().toLowerCase();return i?t.filter(n=>nt(n,i)):t},at=t=>{let e=new Map;return t.forEach(i=>{let n=i.group??null,r=e.get(n)??[];r.push(i),e.set(n,r)}),Array.from(e.entries()).map(([i,n])=>({group:i,items:n}))},b=class extends l{static tag="viking-command-palette";static searchTag="viking-search-palette";static legacyTag="viking-search-palette-wc";static get observedAttributes(){return["open","placeholder","items","global-shortcut"]}shadow;dialogEl=null;inputEl=null;resultsEl=null;globalKeyHandler=null;resultsId=x("viking-search-results");inputId=x("viking-search-input");query="";activeIndex=0;flatResults=[];constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),v(this.shadow,Le)}connectedCallback(){this.render(),this.removeAttribute("open"),this.syncOpen(),this.bindGlobalShortcut(),this.dialogEl?.addEventListener("close",this.onClose),this.dialogEl?.addEventListener("click",this.onBackdropClick),this.inputEl?.addEventListener("input",this.onInput),this.inputEl?.addEventListener("keydown",this.onInputKeydown)}disconnectedCallback(){this.dialogEl?.removeEventListener("close",this.onClose),this.dialogEl?.removeEventListener("click",this.onBackdropClick),this.inputEl?.removeEventListener("input",this.onInput),this.inputEl?.removeEventListener("keydown",this.onInputKeydown),this.unbindGlobalShortcut()}attributeChangedCallback(e){if(this.isConnected&&(e==="open"&&this.syncOpen(),e==="global-shortcut"&&(this.unbindGlobalShortcut(),this.bindGlobalShortcut()),e==="items"||e==="placeholder"))if(e==="placeholder"&&this.inputEl){let i=this.getAttribute("placeholder")??"Search documentation, dashboard, API\u2026";this.inputEl.placeholder=i,this.inputEl.setAttribute("aria-label",i)}else this.renderResults()}openPalette(){this.setAttribute("open",""),this.syncOpen()}closePalette(){this.removeAttribute("open"),T(this.dialogEl)}search(e){this.query=e,this.inputEl&&(this.inputEl.value=e),this.activeIndex=0,this.renderResults(),this.dispatchEvent(new CustomEvent("viking-query",{bubbles:!0,composed:!0,detail:{query:this.query}}))}onClose=()=>{this.removeAttribute("open"),this.query="",this.activeIndex=0,this.inputEl&&(this.inputEl.value=""),this.dispatchEvent(new CustomEvent("viking-close",{bubbles:!0,composed:!0}))};onBackdropClick=e=>{e.target===this.dialogEl&&this.closePalette()};onInput=e=>{this.query=e.target.value??this.inputEl?.value??"",this.activeIndex=0,this.renderResults(),this.dispatchEvent(new CustomEvent("viking-query",{bubbles:!0,composed:!0,detail:{query:this.query}}))};onInputKeydown=e=>{if(this.flatResults.length===0){e.key==="Escape"&&(e.preventDefault(),this.closePalette());return}if(e.key==="ArrowDown"){e.preventDefault(),this.activeIndex=Math.min(this.flatResults.length-1,this.activeIndex+1),this.renderResults(),this.scrollActiveIntoView();return}if(e.key==="ArrowUp"){e.preventDefault(),this.activeIndex=Math.max(0,this.activeIndex-1),this.renderResults(),this.scrollActiveIntoView();return}if(e.key==="Enter"){e.preventDefault();let i=this.flatResults[this.activeIndex];i&&this.activateItem(i)}};bindGlobalShortcut(){h(this,"global-shortcut")&&(this.globalKeyHandler=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()==="k"&&(e.preventDefault(),this.hasAttribute("open")?this.closePalette():this.openPalette())},document.addEventListener("keydown",this.globalKeyHandler))}unbindGlobalShortcut(){this.globalKeyHandler&&(document.removeEventListener("keydown",this.globalKeyHandler),this.globalKeyHandler=null)}syncOpen(){if(!this.dialogEl)return;let e=this.hasAttribute("open");e&&!this.dialogEl.open?(this.dialogEl.removeAttribute("aria-hidden"),G(this.dialogEl),this.activeIndex=0,this.renderResults(),queueMicrotask(()=>this.inputEl?.focus())):!e&&this.dialogEl.open?(T(this.dialogEl),this.dialogEl.setAttribute("aria-hidden","true")):e||this.dialogEl.setAttribute("aria-hidden","true")}scrollActiveIntoView(){this.resultsEl?.querySelector(".viking-search-result.is-selected")?.scrollIntoView({block:"nearest"})}activateItem(e){if(this.dispatchEvent(new CustomEvent("viking-select",{bubbles:!0,composed:!0,detail:{item:e}})),this.closePalette(),e.action==="cookie-settings"){globalThis.DemlWidgets?.openCookieSettings?.();return}if(e.action==="bug-report"){let i=globalThis.DemlWidgets;if(i?.openBugReport){i.openBugReport();return}}e.href&&e.href!=="#"&&window.location.assign(e.href)}renderResults(){if(!this.resultsEl)return;let e=it(this),i=this.query.trim().toLowerCase(),n=rt(e,i);if(this.flatResults=n,n.length===0){let p=this.query.trim();this.resultsEl.innerHTML=`<p class="viking-search-empty" role="status">${p?"No results found":"Start typing to search\u2026"}</p>`,this.inputEl?.removeAttribute("aria-activedescendant");return}this.activeIndex>=n.length&&(this.activeIndex=n.length-1);let r=0,s=at(n).map(({group:p,items:k})=>{let y=p?`<p class="viking-search-group-label" role="presentation">${a(p)}</p>`:"",L=k.map(V=>{let re=`${this.resultsId}-result-${r}`,P=r===this.activeIndex;return r+=1,`
1341
- <a
1342
- id="${re}"
1343
- class="viking-search-result${P?" is-selected":""}"
1344
- role="option"
1345
- aria-selected="${P}"
1346
- href="${a(V.href)}"
1347
- part="result"
1348
- data-index="${r-1}"
1349
- >
1350
- <div>
1351
- <div class="viking-search-result-title">${a(V.title)}</div>
1352
- ${V.snippet?`<div class="viking-search-result-snippet">${a(V.snippet)}</div>`:""}
1353
- </div>
1354
- </a>`}).join("");return`${y}${L}`}).join("");this.resultsEl.innerHTML=`<div class="viking-search-results" id="${this.resultsId}" role="listbox" aria-label="Search results">${s}</div>`;let u=`${this.resultsId}-result-${this.activeIndex}`;this.inputEl?.setAttribute("aria-activedescendant",u),this.inputEl?.setAttribute("role","combobox"),this.inputEl?.setAttribute("aria-expanded","true"),this.inputEl?.setAttribute("aria-controls",this.resultsId),this.resultsEl.querySelectorAll(".viking-search-result").forEach(p=>{p.addEventListener("click",k=>{k.preventDefault();let y=Number(p.dataset.index??0),L=this.flatResults[y];L&&this.activateItem(L)}),p.addEventListener("mouseenter",()=>{let k=Number(p.dataset.index??0);this.activeIndex=k,this.renderResults()})})}render(){let e=this.getAttribute("placeholder")??"Search documentation, dashboard, API\u2026",i=q();this.shadow.innerHTML=`
1355
- <dialog class="viking-search-palette-backdrop" aria-label="Search" aria-hidden="true">
1356
- <div class="viking-search-palette" part="panel" role="document">
1357
- <div class="viking-search-palette-header" part="header">
1358
- <span class="viking-search-palette-icon" aria-hidden="true">${g("search",24)}</span>
1359
- <input
1360
- id="${this.inputId}"
1361
- type="search"
1362
- class="viking-search-palette-input"
1363
- part="input"
1364
- placeholder="${a(e)}"
1365
- aria-label="${a(e)}"
1366
- aria-autocomplete="list"
1367
- autocomplete="off"
1368
- spellcheck="false"
1369
- />
1370
- <button type="button" class="viking-search-palette-close" part="close" aria-label="Close search">${g("x",20)}</button>
1371
- </div>
1372
- <div class="viking-search-palette-body" part="body">
1373
- <slot></slot>
1374
- <div class="viking-search-results-host"></div>
1375
- </div>
1376
- <footer class="viking-search-palette-footer" part="footer">
1377
- <span class="viking-kbd">${i}</span><span class="viking-kbd">K</span> toggle \xB7
1378
- <span class="viking-kbd">\u2191</span><span class="viking-kbd">\u2193</span> navigate \xB7
1379
- <span class="viking-kbd">Enter</span> open \xB7
1380
- <span class="viking-kbd">Esc</span> close
1381
- </footer>
1382
- </div>
1383
- </dialog>
1384
- `,this.dialogEl=this.shadow.querySelector("dialog"),this.inputEl=this.shadow.querySelector("input"),this.resultsEl=this.shadow.querySelector(".viking-search-results-host"),this.shadow.querySelector(".viking-search-palette-close")?.addEventListener("click",()=>this.closePalette()),this.dialogEl?.addEventListener("keydown",n=>{n.key==="Escape"&&(n.preventDefault(),this.closePalette())})}},H=()=>{c(b.tag,b),d(b.searchTag,b),d(b.legacyTag,b)};var J=[{id:"explore",label:"Explore",icon:"globe",appHref:"/explore",marketingHref:"/explore",platform:!0},{id:"documentation",label:"Documentation",icon:"file",appHref:"https://dataengineeringformachinelearning.com/documentation/",marketingHref:"/documentation"},{id:"dashboard",label:"Dashboard",icon:"home",appHref:"/dashboard",marketingHref:"/dashboard",requireAuth:!0,platform:!0},{id:"sites",label:"Sites",icon:"building",appHref:"/settings",marketingHref:"/settings",requireAuth:!0,platform:!0},{id:"account",label:"Account",icon:"user",appHref:"/account",marketingHref:"/account",requireAuth:!0,platform:!0}],Ve=[{title:"Platform",links:[{label:"Explore",appHref:"/explore",marketingHref:"/explore",platform:!0},{label:"Dashboard",appHref:"/dashboard",marketingHref:"/dashboard",platform:!0},{label:"Sites",appHref:"/settings",marketingHref:"/settings",platform:!0},{label:"Account",appHref:"/account",marketingHref:"/account",platform:!0},{label:"Platform Status",appHref:"/status/platform-status",marketingHref:"/status/platform-status",platform:!0}]},{title:"Resources",links:[{label:"Documentation",appHref:"https://dataengineeringformachinelearning.com/documentation/",marketingHref:"/documentation"},{label:"Whitepaper",appHref:"https://dataengineeringformachinelearning.com/whitepaper/",marketingHref:"/whitepaper"},{label:"Book",appHref:"https://dataengineeringformachinelearning.com/book/",marketingHref:"/book"}]},{title:"Support",links:[{label:"Platform Status",appHref:"/status/platform-status",marketingHref:"/status/platform-status",platform:!0},{label:"Report a Bug",appHref:"#",marketingHref:"#",action:"bug-report"}]},{title:"Legal & Compliance",links:[{label:"Privacy Policy",appHref:"https://dataengineeringformachinelearning.com/privacy/",marketingHref:"/privacy"},{label:"Terms of Service",appHref:"https://dataengineeringformachinelearning.com/terms/",marketingHref:"/terms"},{label:"SOC2 Compliance",appHref:"https://dataengineeringformachinelearning.com/compliance/",marketingHref:"/compliance"},{label:"GDPR Compliance",appHref:"https://dataengineeringformachinelearning.com/privacy/#gdpr",marketingHref:"/privacy#gdpr"},{label:"Cookie Settings",appHref:"#",marketingHref:"#",action:"cookie-settings"}]}],ot="reportBug=1",st="cookieSettings=1",Te=t=>/^https?:\/\//i.test(t),ee=(t,e)=>{if(Te(e))return e;let i=t.replace(/\/$/,""),n=e.startsWith("/")?e:`/${e}`;return`${i}${n}`},ce=t=>`${ee(t.app,"/")}?${ot}`,de=t=>`${ee(t.marketing,"/")}?${st}`,Ne=(t,e)=>Te(t)||t.startsWith("mailto:")||t.startsWith("/")?t:ee(e.marketing,t),He=(t,e,i)=>e==="app"?t:ee(i.app,t),te=(t,e,i)=>t.platform?He(t.appHref,e,i):e==="app"?t.appHref:Ne(t.marketingHref,i),$e=(t,e,i)=>t.action==="bug-report"?e==="app"?"#":ce(i):t.action==="cookie-settings"?de(i):t.platform?He(t.appHref,e,i):e==="app"?t.appHref:Ne(t.marketingHref,i),Oe=(t,e)=>t==="marketing"?"/":e.marketing,ze=(t,e=!1)=>t.filter(i=>!i.requireAuth||e);var A={app:"https://deml.app",marketing:"https://dataengineeringformachinelearning.com",backend:"https://backend.deml.app"};var lt=t=>{let e=new Set;return t.filter(i=>{let n=`${i.title}:${i.href}:${i.action??""}`;return e.has(n)?!1:(e.add(n),!0)})},ct=(t,e,i)=>({title:t.label,href:te(t,e,i),snippet:`Open ${t.label}`,group:"Platform",keywords:[t.id,t.label.toLowerCase(),"navigate","go"]}),dt=(t,e,i,n)=>t.action==="cookie-settings"?{title:t.label,href:de(n),snippet:"Manage analytics and cookie preferences",group:e,keywords:["cookies","consent","privacy","gdpr"],action:"cookie-settings"}:t.action==="bug-report"?{title:t.label,href:i==="app"?"#":ce(n),snippet:"Submit a product issue or regression",group:e,keywords:["bug","issue","support","feedback"],action:"bug-report"}:{title:t.label,href:$e(t,i,n),snippet:`Open ${t.label}`,group:e,keywords:[t.label.toLowerCase(),e.toLowerCase()]},gt=[{title:"Viking-UI Components",snippet:"Browse the design system showcase",group:"Resources",keywords:["viking","ui","design system","components","showcase"]},{title:"Design tokens",snippet:"Canonical --viking-* token matrix",group:"Resources",keywords:["tokens","theme","css","variables"]},{title:"API reference",snippet:"OpenAPI schema and REST endpoints",group:"Resources",keywords:["api","openapi","swagger","rest"]}],ht=(t,e,i)=>{switch(t.title){case"Viking-UI Components":return"https://ui.dataengineeringformachinelearning.com/components";case"Design tokens":return"https://ui.dataengineeringformachinelearning.com/tokens";case"API reference":return`${i.backend.replace(/\/$/,"")}/api/docs`;default:return e==="app"?i.app:i.marketing}},vt=[{title:"Components",href:"/components",snippet:"Browse all documented primitives",group:"Viking-UI",keywords:["components","showcase","registry"]},{title:"Playground",href:"/playground",snippet:"Live Web Component sandbox",group:"Viking-UI",keywords:["playground","sandbox","demo"]},{title:"Architecture",href:"/architecture",snippet:"CSS + WC + Angular layers",group:"Viking-UI",keywords:["architecture","layers","web component"]},{title:"Design tokens",href:"/tokens",snippet:"Canonical --viking-* token matrix",group:"Viking-UI",keywords:["tokens","theme","css","variables"]},{title:"Theming",href:"/theming",snippet:"Light/dark mode and sync pipeline",group:"Viking-UI",keywords:["theming","dark","light","mode"]},{title:"Framework guides",href:"/frameworks",snippet:"Angular, Astro, Django setup",group:"Viking-UI",keywords:["frameworks","angular","astro","django"]},{title:"Contributing",href:"/contributing",snippet:"Extend the Viking-UI kit",group:"Viking-UI",keywords:["contributing","extend","primitives"]}],pt=(t,e)=>t.startsWith("http")?t:`${e.replace(/\/$/,"")}${t.startsWith("/")?t:`/${t}`}`,ge=(t,e,i)=>{let n=t==="docs"?"marketing":t,r=[...J.map(o=>ct(o,n,e)),...Ve.flatMap(o=>o.links.map(s=>dt(s,o.title,n,e))),...gt.map(o=>({...o,href:ht(o,n,e)}))];if(t==="app"&&r.push({title:"Settings",href:"/settings",snippet:"Workspace domains, billing, and security",group:"Platform",keywords:["settings","sites","workspace","configuration"]},{title:"Billing & subscription",href:"/settings/billing",snippet:"Manage plan, invoices, and payment methods",group:"Platform",keywords:["billing","stripe","subscription","payment"]},{title:"Security settings",href:"/settings/security",snippet:"Keys, sessions, and access controls",group:"Platform",keywords:["security","keys","auth","rbac"]}),t==="docs"){let o=i?.docsOrigin??"https://ui.dataengineeringformachinelearning.com";r.push(...vt.map(s=>({...s,href:pt(s.href,o)})))}return lt(r)};var De=new Set(["app","marketing","backend","docs"]),ut=()=>{let t=document.documentElement.getAttribute("data-deml-context");if(t&&De.has(t))return t;let e=window.location.hostname;return e.startsWith("ui.")?"docs":e.includes("deml.app")&&!e.startsWith("backend.")?"app":e.startsWith("backend.")?"backend":"marketing"},kt=t=>{let e=globalThis.__DEML??{};return{app:t.getAttribute("app-url")??e.app??A.app,marketing:t.getAttribute("marketing-url")??e.marketing??A.marketing,backend:t.getAttribute("backend-url")??e.backend??A.backend}},mt=t=>{let e=t.getAttribute("context");return e&&De.has(e)?e:ut()},f=class extends l{static tag="viking-suite-command-palette";static searchTag="viking-suite-search-palette";static legacyTag="viking-suite-search-palette-wc";static get observedAttributes(){return["context","app-url","marketing-url","backend-url","placeholder","global-shortcut"]}paletteEl=null;itemsLoaded=!1;connectedCallback(){H(),this.ensurePalette(),this.loadItems()}attributeChangedCallback(e){if(this.isConnected){if(e==="placeholder"&&this.paletteEl){let i=this.getAttribute("placeholder")??"Search documentation, dashboard, settings\u2026";this.paletteEl.setAttribute("placeholder",i);return}if(e==="global-shortcut"&&this.paletteEl){h(this,"global-shortcut")||!this.hasAttribute("global-shortcut")?this.paletteEl.setAttribute("global-shortcut",""):this.paletteEl.removeAttribute("global-shortcut");return}(e==="context"||e==="app-url"||e==="marketing-url"||e==="backend-url")&&this.loadItems(!0)}}openPalette(){this.ensurePalette(),this.loadItems().then(()=>this.paletteEl?.openPalette())}closePalette(){this.paletteEl?.closePalette()}ensurePalette(){if(this.paletteEl)return;this.paletteEl=document.createElement("viking-command-palette"),this.paletteEl.id="deml-command-palette";let e=this.getAttribute("placeholder")??"Search documentation, dashboard, settings\u2026";this.paletteEl.setAttribute("placeholder",e),(h(this,"global-shortcut")||!this.hasAttribute("global-shortcut"))&&this.paletteEl.setAttribute("global-shortcut",""),this.append(this.paletteEl)}async loadItems(e=!1){if(!this.paletteEl||this.itemsLoaded&&!e)return;let i=mt(this),n=kt(this),r=ge(i,n,{docsOrigin:window.location.origin});try{let o=await fetch("/assets/site-drakkar.json",{cache:"no-cache"});if(o.ok){let s=await o.json();(s.navLinks?.length||s.footerColumns?.length)&&(r=ge(i,n,{docsOrigin:window.location.origin}))}}catch{}this.paletteEl.setAttribute("items",JSON.stringify(r)),this.itemsLoaded=!0}},$=()=>{c(f.tag,f),d(f.searchTag,f),d(f.legacyTag,f)};var bt=`
1385
- :host {
1386
- display: inline-flex;
1387
- }
1388
-
1389
- .theme-toggle-btn {
1390
- display: inline-flex;
1391
- align-items: center;
1392
- justify-content: center;
1393
- flex-shrink: 0;
1394
- width: var(--viking-control-height, 40px);
1395
- height: var(--viking-control-height, 40px);
1396
- min-width: var(--viking-control-height, 40px);
1397
- padding: 0;
1398
- border: 1px solid color-mix(in srgb, var(--viking-accent, var(--viking-accent)) 32%, var(--viking-border-strong, var(--viking-border)));
1399
- border-radius: var(--viking-radius);
1400
- background: color-mix(in srgb, var(--viking-accent, var(--viking-accent)) 8%, var(--viking-surface));
1401
- color: var(--viking-accent-strong, var(--viking-ring));
1402
- box-shadow: var(--viking-shadow-sm);
1403
- cursor: pointer;
1404
- transition: var(--viking-transition-interactive);
1405
- -webkit-tap-highlight-color: transparent;
1406
- }
1407
-
1408
- .theme-toggle-btn:hover {
1409
- border-color: var(--viking-accent-strong, var(--viking-ring));
1410
- background: color-mix(in srgb, var(--viking-accent, var(--viking-accent)) 14%, var(--viking-surface-alt));
1411
- color: var(--viking-accent-strong, var(--viking-ring));
1412
- box-shadow: var(--viking-shadow-md);
1413
- }
1414
-
1415
- .theme-toggle-btn:focus-visible {
1416
- outline: var(--viking-ring-width, 2px) solid var(--viking-ring);
1417
- outline-offset: var(--viking-ring-offset, 2px);
1418
- }
1419
-
1420
- .theme-toggle-btn:active {
1421
- transform: scale(var(--viking-state-active-scale, 0.98));
1422
- }
1423
-
1424
- .theme-icon {
1425
- display: none;
1426
- }
1427
-
1428
- .theme-icon.is-visible {
1429
- display: block;
1430
- }
1431
- `,ft=t=>{document.documentElement.setAttribute("data-theme",t),document.documentElement.classList.toggle("dark",t==="dark"),localStorage.setItem("theme",t)},Re=()=>{let t=localStorage.getItem("theme");return t==="light"||t==="dark"?t:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},O=class extends l{static tag="viking-theme-toggle-wc";shadow;button=null;sunIcon=null;moonIcon=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),v(this.shadow,bt)}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","button"),this.render(),this.syncIcons(),this.button?.addEventListener("click",this.onClick)}disconnectedCallback(){this.button?.removeEventListener("click",this.onClick)}onClick=()=>{let e=Re()==="light"?"dark":"light";ft(e),this.syncIcons(),this.dispatchEvent(new CustomEvent("viking-theme-change",{bubbles:!0,composed:!0,detail:{theme:e}}))};syncIcons=()=>{let e=Re()==="light";this.sunIcon?.classList.toggle("is-visible",e),this.moonIcon?.classList.toggle("is-visible",!e)};render(){let e=this.getAttribute("aria-label")??"Toggle light and dark theme";this.shadow.innerHTML=`
1432
- <button type="button" class="theme-toggle-btn" part="control" aria-label="${e}">
1433
- <svg class="theme-icon theme-icon-sun" width="20" height="20" viewBox="0 0 24 24" aria-hidden="true">
1434
- <circle cx="12" cy="12" r="4" fill="none" stroke="currentColor" stroke-width="2"/>
1435
- <path stroke="currentColor" stroke-width="2" d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/>
1436
- </svg>
1437
- <svg class="theme-icon theme-icon-moon" width="20" height="20" viewBox="0 0 24 24" aria-hidden="true">
1438
- <path fill="currentColor" d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/>
1439
- </svg>
1440
- </button>
1441
- `,this.button=this.shadow.querySelector("button"),this.sunIcon=this.shadow.querySelector(".theme-icon-sun"),this.moonIcon=this.shadow.querySelector(".theme-icon-moon")}},z=()=>{c(O.tag,O)};var Pe=new Set(["app","marketing","backend","docs"]),yt=`
1442
- :host {
1443
- display: block;
1444
- position: sticky;
1445
- top: 0;
1446
- z-index: var(--viking-z-sticky, 50);
1447
- color: var(--viking-text);
1448
- font-family: var(--viking-font-family);
1449
- }
1450
-
1451
- * {
1452
- box-sizing: border-box;
1453
- }
1454
-
1455
- .suite-header {
1456
- width: 100%;
1457
- min-height: var(--viking-navbar-height, var(--viking-space-8));
1458
- background: var(--viking-surface);
1459
- border-bottom: var(--viking-border-width, 1px) solid var(--viking-border);
1460
- box-shadow: var(--viking-shadow-xs);
1461
- isolation: isolate;
1462
- }
1463
-
1464
- .suite-header__bar {
1465
- display: grid;
1466
- grid-template-columns: minmax(max-content, auto) minmax(0, 1fr) max-content;
1467
- align-items: center;
1468
- gap: var(--viking-space-1);
1469
- width: 100%;
1470
- max-width: var(--viking-container-max-width);
1471
- min-height: var(--viking-navbar-height, var(--viking-space-8));
1472
- margin-inline: auto;
1473
- padding-inline: var(--viking-page-gutter);
1474
- }
1475
-
1476
- .suite-header__brand {
1477
- display: inline-flex;
1478
- align-items: center;
1479
- justify-content: center;
1480
- gap: var(--viking-space-1);
1481
- min-width: 0;
1482
- min-height: var(--viking-control-height);
1483
- color: var(--viking-text);
1484
- text-decoration: none;
1485
- border-radius: var(--viking-radius);
1486
- }
1487
-
1488
- .suite-header__brand:focus-visible,
1489
- .suite-header__link:focus-visible,
1490
- .suite-header__icon-button:focus-visible,
1491
- .suite-header__auth-link:focus-visible,
1492
- .suite-header__user-trigger:focus-visible,
1493
- .suite-header__menu-link:focus-visible,
1494
- .suite-header__menu-button:focus-visible {
1495
- outline: var(--viking-ring-width) solid var(--viking-ring);
1496
- outline-offset: var(--viking-ring-offset);
1497
- }
1498
-
1499
- .suite-header__mark {
1500
- display: inline-flex;
1501
- align-items: center;
1502
- justify-content: center;
1503
- width: var(--viking-space-4);
1504
- height: var(--viking-space-4);
1505
- color: var(--viking-accent);
1506
- flex: 0 0 auto;
1507
- }
1508
-
1509
- .suite-header__lockup {
1510
- display: none;
1511
- min-width: 0;
1512
- color: var(--viking-text);
1513
- font-size: var(--viking-font-size-sm);
1514
- font-weight: var(--viking-font-weight-bold);
1515
- line-height: var(--viking-line-height-tight);
1516
- letter-spacing: var(--viking-letter-spacing-caps);
1517
- text-transform: uppercase;
1518
- white-space: nowrap;
1519
- }
1520
-
1521
- .suite-header__nav {
1522
- display: none;
1523
- align-items: center;
1524
- justify-content: center;
1525
- gap: var(--viking-space-half);
1526
- min-width: 0;
1527
- overflow: hidden;
1528
- }
1529
-
1530
- .suite-header__link {
1531
- display: inline-flex;
1532
- align-items: center;
1533
- justify-content: center;
1534
- gap: var(--viking-space-half);
1535
- min-width: 0;
1536
- height: var(--viking-control-height);
1537
- padding-inline: var(--viking-space-1-5);
1538
- color: var(--viking-text-muted);
1539
- border-radius: var(--viking-radius) var(--viking-radius) 0 0;
1540
- font-size: var(--viking-font-size-sm);
1541
- font-weight: var(--viking-font-weight-semibold);
1542
- line-height: var(--viking-line-height-none);
1543
- letter-spacing: var(--viking-letter-spacing-caps);
1544
- text-decoration: none;
1545
- text-transform: uppercase;
1546
- white-space: nowrap;
1547
- transition: var(--viking-transition-interactive);
1548
- }
1549
-
1550
- .suite-header__link:hover,
1551
- .suite-header__link[aria-current='page'] {
1552
- color: var(--viking-text);
1553
- background: var(--viking-surface-alt);
1554
- }
1555
-
1556
- .suite-header__actions {
1557
- display: inline-flex;
1558
- align-items: center;
1559
- justify-content: flex-end;
1560
- gap: var(--viking-space-1);
1561
- min-width: 0;
1562
- }
1563
-
1564
- .suite-header__icon-button,
1565
- .suite-header__menu-button,
1566
- .suite-header__user-trigger,
1567
- .suite-header__auth-link {
1568
- min-height: var(--viking-control-height);
1569
- border: var(--viking-border-width, 1px) solid var(--viking-border-strong);
1570
- border-radius: var(--viking-radius);
1571
- background: var(--viking-surface);
1572
- color: var(--viking-text);
1573
- box-shadow: var(--viking-shadow-sm);
1574
- cursor: pointer;
1575
- font-family: inherit;
1576
- transition: var(--viking-transition-interactive);
1577
- -webkit-tap-highlight-color: transparent;
1578
- }
1579
-
1580
- .suite-header__icon-button,
1581
- .suite-header__menu-button {
1582
- display: inline-flex;
1583
- align-items: center;
1584
- justify-content: center;
1585
- width: var(--viking-control-height);
1586
- min-width: var(--viking-control-height);
1587
- padding: 0;
1588
- }
1589
-
1590
- .suite-header__icon-button:hover,
1591
- .suite-header__menu-button:hover,
1592
- .suite-header__user-trigger:hover,
1593
- .suite-header__auth-link:hover {
1594
- border-color: var(--viking-accent-strong);
1595
- background: var(--viking-surface-alt);
1596
- box-shadow: var(--viking-shadow-md);
1597
- }
1598
-
1599
- .suite-header__auth-link {
1600
- display: none;
1601
- align-items: center;
1602
- justify-content: center;
1603
- gap: var(--viking-space-half);
1604
- min-width: max-content;
1605
- padding-inline: var(--viking-space-2);
1606
- background: var(--viking-accent);
1607
- border-color: var(--viking-accent);
1608
- color: var(--viking-accent-content);
1609
- font-size: var(--viking-font-size-sm);
1610
- font-weight: var(--viking-font-weight-bold);
1611
- line-height: var(--viking-line-height-none);
1612
- letter-spacing: var(--viking-letter-spacing-caps);
1613
- text-decoration: none;
1614
- text-transform: uppercase;
1615
- }
1616
-
1617
- .suite-header__auth-icon,
1618
- .suite-header__menu-icon,
1619
- .suite-header__action-icon,
1620
- .suite-header__avatar-icon,
1621
- .suite-header__chevron {
1622
- display: inline-flex;
1623
- align-items: center;
1624
- justify-content: center;
1625
- flex-shrink: 0;
1626
- }
1627
-
1628
- .suite-header__auth-link:hover {
1629
- background: var(--viking-accent-hover);
1630
- color: var(--viking-accent-content);
1631
- }
1632
-
1633
- .suite-header__user {
1634
- position: relative;
1635
- display: none;
1636
- }
1637
-
1638
- .suite-header__user-trigger {
1639
- display: inline-flex;
1640
- align-items: center;
1641
- justify-content: center;
1642
- gap: var(--viking-space-1);
1643
- min-width: max-content;
1644
- padding-inline: var(--viking-space-1);
1645
- }
1646
-
1647
- .suite-header__avatar {
1648
- display: inline-flex;
1649
- align-items: center;
1650
- justify-content: center;
1651
- width: var(--viking-space-3);
1652
- height: var(--viking-space-3);
1653
- border-radius: var(--viking-radius-full);
1654
- background: var(--viking-accent-soft);
1655
- color: var(--viking-accent-strong);
1656
- }
1657
-
1658
- .suite-header__user-text {
1659
- display: none;
1660
- max-width: var(--viking-space-16);
1661
- overflow: hidden;
1662
- color: var(--viking-text);
1663
- font-size: var(--viking-font-size-sm);
1664
- font-weight: var(--viking-font-weight-semibold);
1665
- line-height: var(--viking-line-height-tight);
1666
- text-overflow: ellipsis;
1667
- white-space: nowrap;
1668
- }
1669
-
1670
- .suite-header__menu {
1671
- position: absolute;
1672
- inset-block-start: calc(100% + var(--viking-space-1));
1673
- inset-inline-end: 0;
1674
- display: none;
1675
- min-width: var(--viking-space-24);
1676
- padding: var(--viking-space-1);
1677
- background: var(--viking-surface);
1678
- border: var(--viking-border-width, 1px) solid var(--viking-border-strong);
1679
- border-radius: var(--viking-radius);
1680
- box-shadow: var(--viking-shadow-lg);
1681
- }
1682
-
1683
- .suite-header__user[data-open='true'] .suite-header__menu {
1684
- display: grid;
1685
- gap: var(--viking-space-half);
1686
- }
1687
-
1688
- .suite-header__menu-label {
1689
- padding: var(--viking-space-1);
1690
- color: var(--viking-text-muted);
1691
- font-size: var(--viking-font-size-xs);
1692
- line-height: var(--viking-line-height-tight);
1693
- }
1694
-
1695
- .suite-header__menu-label strong {
1696
- display: block;
1697
- color: var(--viking-text);
1698
- font-size: var(--viking-font-size-sm);
1699
- }
1700
-
1701
- .suite-header__menu-link,
1702
- .suite-header__menu-button {
1703
- display: inline-flex;
1704
- align-items: center;
1705
- justify-content: flex-start;
1706
- gap: var(--viking-space-1);
1707
- width: 100%;
1708
- min-height: var(--viking-control-height);
1709
- padding-inline: var(--viking-space-1);
1710
- background: transparent;
1711
- border: 0;
1712
- border-radius: var(--viking-radius-sm);
1713
- box-shadow: none;
1714
- color: var(--viking-text);
1715
- font: inherit;
1716
- text-align: start;
1717
- text-decoration: none;
1718
- }
1719
-
1720
- .suite-header__menu-link:hover,
1721
- .suite-header__menu-button:hover {
1722
- background: var(--viking-surface-alt);
1723
- }
1724
-
1725
- .suite-header__mobile {
1726
- display: none;
1727
- width: 100%;
1728
- max-width: var(--viking-container-max-width);
1729
- margin-inline: auto;
1730
- padding: 0 var(--viking-page-gutter) var(--viking-space-2);
1731
- }
1732
-
1733
- .suite-header[data-menu-open='true'] .suite-header__mobile {
1734
- display: grid;
1735
- gap: var(--viking-space-1);
1736
- }
1737
-
1738
- .suite-header__mobile .suite-header__link,
1739
- .suite-header__mobile .suite-header__auth-link,
1740
- .suite-header__mobile .suite-header__menu-button {
1741
- display: inline-flex;
1742
- justify-content: flex-start;
1743
- width: 100%;
1744
- border-radius: var(--viking-radius);
1745
- }
1746
-
1747
- .suite-header__mobile .suite-header__auth-link {
1748
- justify-content: center;
1749
- margin-block-start: var(--viking-space-1);
1750
- }
1751
-
1752
- viking-suite-command-palette {
1753
- display: contents;
1754
- }
1755
-
1756
- @media (min-width: 520px) {
1757
- .suite-header__lockup,
1758
- .suite-header__user-text {
1759
- display: inline;
1760
- }
1761
- }
1762
-
1763
- @media (min-width: 768px) {
1764
- .suite-header__bar {
1765
- padding-inline: var(--viking-page-gutter-lg);
1766
- }
1767
-
1768
- .suite-header__nav {
1769
- display: flex;
1770
- }
1771
-
1772
- .suite-header__auth-link,
1773
- .suite-header__user {
1774
- display: inline-flex;
1775
- }
1776
-
1777
- .suite-header__menu-button {
1778
- display: none;
1779
- }
1780
-
1781
- .suite-header[data-menu-open='true'] .suite-header__mobile {
1782
- display: none;
1783
- }
1784
- }
1785
- `,xt=()=>{let t=document.documentElement.getAttribute("data-deml-context");if(t&&Pe.has(t))return t;let e=window.location.hostname;return e.startsWith("ui.")?"docs":e.startsWith("backend.")?"backend":e.includes("deml.app")?"app":"marketing"},wt=t=>{let e=t.getAttribute("context");return e&&Pe.has(e)?e:xt()},Et=t=>{let e=globalThis.__DEML??{};return{app:t.getAttribute("app-url")??e.app??A.app,marketing:t.getAttribute("marketing-url")??e.marketing??A.marketing,backend:t.getAttribute("backend-url")??e.backend??A.backend}},_t=t=>{try{let e=new URL(t,window.location.origin);return e.origin===window.location.origin&&e.pathname===window.location.pathname}catch{return!1}},D=class extends l{static tag="viking-suite-header";static get observedAttributes(){return["context","app-url","marketing-url","backend-url","authenticated","user-name","user-email","sign-in-href","dashboard-href"]}shadow;menuOpen=!1;userMenuOpen=!1;paletteEl=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),v(this.shadow,yt)}connectedCallback(){z(),$(),this.render(),document.addEventListener("click",this.onDocumentClick)}disconnectedCallback(){document.removeEventListener("click",this.onDocumentClick)}attributeChangedCallback(){this.isConnected&&this.render()}openSearch(){this.paletteEl?.openPalette(),this.dispatchEvent(new CustomEvent("viking-search-open",{bubbles:!0,composed:!0}))}onDocumentClick=e=>{e.composedPath().includes(this)||(this.menuOpen||this.userMenuOpen)&&(this.menuOpen=!1,this.userMenuOpen=!1,this.syncOpenState())};onSearchClick=()=>{this.openSearch()};onMenuClick=()=>{this.menuOpen=!this.menuOpen,this.syncOpenState()};onUserClick=()=>{this.userMenuOpen=!this.userMenuOpen,this.syncOpenState()};onSignInClick=e=>{let i=new CustomEvent("viking-sign-in",{bubbles:!0,cancelable:!0,composed:!0,detail:e});this.dispatchEvent(i),i.defaultPrevented&&e.preventDefault()};onSignOutClick=()=>{this.userMenuOpen=!1,this.menuOpen=!1,this.syncOpenState(),this.dispatchEvent(new CustomEvent("viking-sign-out",{bubbles:!0,composed:!0}))};syncOpenState(){let e=this.shadow.querySelector(".suite-header"),i=this.shadow.querySelector("[data-menu-toggle]"),n=this.shadow.querySelector(".suite-header__user"),r=this.shadow.querySelector("[data-user-toggle]");e?.setAttribute("data-menu-open",String(this.menuOpen)),i?.setAttribute("aria-expanded",String(this.menuOpen)),n?.setAttribute("data-open",String(this.userMenuOpen)),r?.setAttribute("aria-expanded",String(this.userMenuOpen))}renderNavLinks(e,i,n){return ze(J,n).map(r=>{let o=te(r,e,i),s=_t(o)?' aria-current="page"':"";return`
1786
- <a class="suite-header__link" href="${a(o)}"${s}>
1787
- ${g(r.icon,16,"suite-header__link-icon")}
1788
- <span>${a(r.label)}</span>
1789
- </a>
1790
- `}).join("")}renderAuth(e,i,n=!1){if(!i){let s=this.getAttribute("sign-in-href")??`${e.app}/login`;return`
1791
- <a class="suite-header__auth-link" href="${a(s)}" data-sign-in>
1792
- <span>Sign In</span>
1793
- ${g("arrow-right",16,"suite-header__auth-icon")}
1794
- </a>
1795
- `}if(n)return`
1796
- <a class="suite-header__menu-link" href="${a(this.getDashboardHref(e))}">
1797
- ${g("home",16,"suite-header__menu-icon")}
1798
- <span>Dashboard</span>
1799
- </a>
1800
- <button class="suite-header__menu-button" type="button" data-sign-out>
1801
- ${g("log-out",16,"suite-header__menu-icon")}
1802
- <span>Sign Out</span>
1803
- </button>
1804
- `;let r=this.getAttribute("user-name")??"Account",o=this.getAttribute("user-email")??"";return`
1805
- <div class="suite-header__user" data-open="${String(this.userMenuOpen)}">
1806
- <button
1807
- class="suite-header__user-trigger"
1808
- type="button"
1809
- aria-haspopup="menu"
1810
- aria-expanded="${String(this.userMenuOpen)}"
1811
- data-user-toggle
1812
- >
1813
- <span class="suite-header__avatar" aria-hidden="true">
1814
- ${g("user",16,"suite-header__avatar-icon")}
1815
- </span>
1816
- <span class="suite-header__user-text">${a(r)}</span>
1817
- ${g("chevron-down",16,"suite-header__chevron")}
1818
- </button>
1819
- <div class="suite-header__menu" role="menu">
1820
- <div class="suite-header__menu-label">
1821
- <strong>${a(r)}</strong>
1822
- ${o?`<span>${a(o)}</span>`:""}
1823
- </div>
1824
- <a class="suite-header__menu-link" role="menuitem" href="${a(this.getDashboardHref(e))}">
1825
- ${g("home",16,"suite-header__menu-icon")}
1826
- <span>Dashboard</span>
1827
- </a>
1828
- <button class="suite-header__menu-button" type="button" role="menuitem" data-sign-out>
1829
- ${g("log-out",16,"suite-header__menu-icon")}
1830
- <span>Sign Out</span>
1831
- </button>
1832
- </div>
1833
- </div>
1834
- `}getDashboardHref(e){return this.getAttribute("dashboard-href")??`${e.app}/dashboard`}render(){let e=wt(this),i=Et(this),n=h(this,"authenticated"),r=this.renderNavLinks(e,i,n),o=Oe(e,i),s=`${q()}K`;this.shadow.innerHTML=`
1835
- <header class="suite-header" data-menu-open="${String(this.menuOpen)}">
1836
- <div class="suite-header__bar">
1837
- <a class="suite-header__brand" href="${a(o)}" aria-label="Data Engineering for Machine Learning home">
1838
- <span class="suite-header__mark" aria-hidden="true">
1839
- ${g("drakkar",28,"suite-header__brand-icon")}
1840
- </span>
1841
- <span class="suite-header__lockup">DEML</span>
1842
- </a>
1843
-
1844
- <nav class="suite-header__nav" aria-label="Main navigation">
1845
- ${r}
1846
- </nav>
1847
-
1848
- <div class="suite-header__actions">
1849
- <button
1850
- class="suite-header__icon-button"
1851
- type="button"
1852
- aria-label="Open command palette (${s})"
1853
- title="Open command palette (${s})"
1854
- data-search-trigger
1855
- >
1856
- ${g("search",18,"suite-header__action-icon")}
1857
- </button>
1858
- ${this.renderAuth(i,n)}
1859
- <viking-theme-toggle-wc></viking-theme-toggle-wc>
1860
- <button
1861
- class="suite-header__menu-button"
1862
- type="button"
1863
- aria-label="Toggle navigation menu"
1864
- aria-expanded="${String(this.menuOpen)}"
1865
- data-menu-toggle
1866
- >
1867
- ${g(this.menuOpen?"x":"menu",18,"suite-header__action-icon")}
1868
- </button>
1869
- </div>
1870
- </div>
1871
-
1872
- <nav class="suite-header__mobile" aria-label="Mobile navigation">
1873
- ${r}
1874
- ${this.renderAuth(i,n,!0)}
1875
- </nav>
1876
- </header>
1877
- <viking-suite-command-palette
1878
- context="${e}"
1879
- app-url="${a(i.app)}"
1880
- marketing-url="${a(i.marketing)}"
1881
- backend-url="${a(i.backend)}"
1882
- global-shortcut
1883
- ></viking-suite-command-palette>
1884
- `,this.paletteEl=this.shadow.querySelector("viking-suite-command-palette"),this.shadow.querySelector("[data-search-trigger]")?.addEventListener("click",this.onSearchClick),this.shadow.querySelector("[data-menu-toggle]")?.addEventListener("click",this.onMenuClick),this.shadow.querySelector("[data-user-toggle]")?.addEventListener("click",this.onUserClick),this.shadow.querySelectorAll("[data-sign-in]").forEach(u=>u.addEventListener("click",this.onSignInClick)),this.shadow.querySelectorAll("[data-sign-out]").forEach(u=>u.addEventListener("click",this.onSignOutClick))}},ie=()=>{c(D.tag,D)};var C=class extends l{static formAssociated=!0;static tag="viking-select";static legacyTag="viking-select-wc";static get observedAttributes(){return["label","name","value","placeholder","description","error","width","disabled","required"]}shadow;internals;selectEl=null;optionObserver=null;controlId=x("viking-select");constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),this.internals=B(this),v(this.shadow,Ae)}connectedCallback(){this.render(),this.syncOptions(),this.observeOptions(),this.selectEl?.addEventListener("change",this.onChange)}disconnectedCallback(){this.selectEl?.removeEventListener("change",this.onChange),this.optionObserver?.disconnect(),this.optionObserver=null}attributeChangedCallback(e){if(this.isConnected){if(e==="value"&&this.selectEl){this.selectEl.value=this.getAttribute("value")??"",this.syncFormValue();return}if(e==="error"||e==="description"||e==="label"){this.render(),this.syncOptions();return}this.render(),this.syncOptions()}}get value(){return this.selectEl?.value??this.getAttribute("value")??""}set value(e){this.setAttribute("value",e),this.selectEl&&(this.selectEl.value=e),this.syncFormValue()}onChange=()=>{let e=this.selectEl?.value??"";this.setAttribute("value",e),this.syncFormValue(),this.dispatchEvent(new CustomEvent("viking-change",{bubbles:!0,composed:!0,detail:{value:e}}))};syncFormValue(){K(this.internals,this.value)}observeOptions(){this.optionObserver?.disconnect(),this.optionObserver=new MutationObserver(()=>this.syncOptions()),this.optionObserver.observe(this,{childList:!0,subtree:!0,characterData:!0})}render(){let e=this.getAttribute("label")??"",i=this.getAttribute("name")??"",n=this.hasAttribute("disabled"),r=this.hasAttribute("required"),o=this.getAttribute("error")??"",s=this.getAttribute("description")??"",u=[s&&`${this.controlId}-desc`,o&&`${this.controlId}-error`].filter(Boolean).join(" ");this.shadow.innerHTML=`
1885
- <div class="viking-field" part="field">
1886
- ${e?`<label class="viking-field-label" part="label" for="${this.controlId}">${a(e)}</label>`:""}
1887
- <select
1888
- id="${this.controlId}"
1889
- class="viking-select-native"
1890
- part="control"
1891
- ${i?`name="${a(i)}"`:""}
1892
- ${n?"disabled":""}
1893
- ${r?"required":""}
1894
- ${o?'aria-invalid="true"':""}
1895
- ${u?`aria-describedby="${u}"`:""}
1896
- ></select>
1897
- ${s?`<p id="${this.controlId}-desc" class="viking-field-description" part="description">${a(s)}</p>`:""}
1898
- ${o?`<p id="${this.controlId}-error" class="viking-field-error" part="error" role="alert">${a(o)}</p>`:""}
1899
- </div>
1900
- `,this.selectEl=this.shadow.querySelector("select");let p=this.getAttribute("value");this.selectEl&&p&&(this.selectEl.value=p),this.syncFormValue()}syncOptions(){if(!this.selectEl)return;let e=this.selectEl.value;this.selectEl.innerHTML="";let i=this.querySelectorAll("option");if(i.length===0){let r=this.getAttribute("placeholder")??"Select\u2026",o=document.createElement("option");o.value="",o.textContent=r,o.disabled=!0,o.selected=!this.getAttribute("value"),this.selectEl.append(o);return}i.forEach(r=>{this.selectEl?.append(r.cloneNode(!0))});let n=this.getAttribute("value");n?this.selectEl.value=n:e&&(this.selectEl.value=e),this.syncFormValue()}},ne=()=>{c(C.tag,C),d(C.legacyTag,C)};var he=()=>{F(),X(),Z(),U(),j(),Y(),ne(),Q(),H(),ie(),$(),z()};typeof globalThis<"u"&&typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",he):he());return Fe(St);})();