@dataengineeringformachinelearning/viking-ui 4.0.6 → 4.1.0
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.
- package/README.md +5 -5
- package/dist/README.md +5 -5
- package/dist/design-tokens.css +1 -1
- package/dist/fesm2022/dataengineeringformachinelearning-viking-ui.mjs +1178 -57
- package/dist/fesm2022/dataengineeringformachinelearning-viking-ui.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/types/dataengineeringformachinelearning-viking-ui.d.ts +120 -14
- package/dist/viking-components.css +30 -1
- package/dist/viking-ui-elements.js +634 -109
- package/dist/viking-ui.css +1 -1
- package/dist/web-components.js +964 -38
- package/dist/widget.js +2 -296
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
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={"&":"&","<":"<",">":">",'"':""","'":"'"};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=`
|
|
1
|
+
"use strict";var VikingUI=(()=>{var kt=Object.defineProperty;var Qt=Object.getOwnPropertyDescriptor;var te=Object.getOwnPropertyNames;var ee=Object.prototype.hasOwnProperty;var ie=(e,t)=>{for(var i in t)kt(e,i,{get:t[i],enumerable:!0})},re=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of te(t))!ee.call(e,a)&&a!==i&&kt(e,a,{get:()=>t[a],enumerable:!(r=Qt(t,a))||r.enumerable});return e};var ne=e=>re(kt({},"__esModule",{value:!0}),e);var Ze={};ie(Ze,{VikingBadgeWc:()=>S,VikingButtonWc:()=>R,VikingCalloutWc:()=>E,VikingCardWc:()=>I,VikingFieldWc:()=>A,VikingInputWc:()=>M,VikingModalWc:()=>C,VikingSearchPaletteWc:()=>y,VikingSelectWc:()=>N,VikingSiteFooterWc:()=>V,VikingSiteNavbarWc:()=>$,VikingStatusCardWc:()=>L,VikingStatusPillWc:()=>T,VikingSuiteHeaderWc:()=>q,VikingSuiteSearchPaletteWc:()=>w,VikingThemeToggleWc:()=>U,registerVikingBadgeWc:()=>Q,registerVikingButtonWc:()=>tt,registerVikingCalloutWc:()=>et,registerVikingCardWc:()=>it,registerVikingElements:()=>_t,registerVikingFieldWc:()=>rt,registerVikingInputWc:()=>nt,registerVikingModalWc:()=>at,registerVikingSearchPaletteWc:()=>P,registerVikingSelectWc:()=>pt,registerVikingSiteFooterWc:()=>vt,registerVikingSiteNavbarWc:()=>ht,registerVikingStatusCardWc:()=>ot,registerVikingStatusPillWc:()=>st,registerVikingSuiteHeaderWc:()=>ut,registerVikingSuiteSearchPaletteWc:()=>W,registerVikingThemeToggleWc:()=>G});var u=(e,t)=>{if("adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype){let r=new CSSStyleSheet;r.replaceSync(t),e.adoptedStyleSheets=[r];return}let i=document.createElement("style");i.textContent=t,e.append(i)},k=(e,t)=>e.hasAttribute(t)&&e.getAttribute(t)!=="false",j=(e,t)=>{e&&typeof e.setFormValue=="function"&&e.setFormValue(t)},Y=e=>{let t=e.attachInternals;return typeof t=="function"?t.call(e):null},X=e=>{e&&typeof e.showModal=="function"&&!e.open&&e.showModal()},O=e=>{e&&typeof e.close=="function"&&e.open&&e.close()};var c=typeof HTMLElement>"u"?class{}:HTMLElement,_=e=>`${e}-${Math.random().toString(36).slice(2,9)}`,n=e=>{let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,i=>t[i]??i)},Z=()=>typeof navigator<"u"&&/Mac|iPhone|iPad/i.test(navigator.platform)?"\u2318":"Ctrl",l=(e,t)=>{typeof customElements>"u"||customElements.get(e)||customElements.define(e,t)},d=(e,t)=>{typeof customElements>"u"||customElements.get(e)||customElements.define(e,class extends t{})};var bt={"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 mt={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"/>'},ft={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"/>'},Et={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"/>'},It={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"/>'},At=Object.keys(mt),ai=Object.keys(ft);var Mt={kubernetes:"#326CE5",tensorflow:"#FF6F00",pytorch:"#EE4C2C","apache-spark":"#E25A1C",databricks:"#FF3621","aws-redshift":"#8C4FFF"},si=Object.keys(Mt);var Ct={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"},z=e=>{let t=Mt[e],i=Ct[e];return`<path fill="${t}" d="${i}"/>`},li={kubernetes:z("kubernetes"),tensorflow:z("tensorflow"),pytorch:z("pytorch"),"apache-spark":z("apache-spark"),databricks:z("databricks"),"aws-redshift":z("aws-redshift")},Lt=Object.fromEntries(Object.entries(Ct).map(([e,t])=>[e,`<path d="${t}"/>`]));var ae={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"/>'},F={...bt,...mt,...ft,...Lt,...ae},Tt={...Et,...It},oe={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"},Vt=["play","dots-horizontal","dots-vertical","grip-vertical"],pi=["google","apple",...At];var se=new Set(Object.keys(F)),$t=e=>{let t=e.trim().toLowerCase().replace(/\s+/g,"_");if(se.has(t))return t;let i=oe[t];return i||"info"},ki=Object.keys(F),bi=Object.keys(bt);var le=new Set(Vt),h=(e,t=16,i="viking-wc-icon")=>{let r=$t(e),a=le.has(r),o=a?Tt[r]??F[r]:F[r];return a?`<svg class="${i}" width="${t}" height="${t}" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd" aria-hidden="true">${o}</svg>`:`<svg class="${i}" width="${t}" height="${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${o}</svg>`},J={accent:"info",secondary:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle",info:"info",muted:"info",subtle:"info"};var Nt=`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
font-family: var(--viking-font-family);
|
|
@@ -358,14 +358,29 @@
|
|
|
358
358
|
.viking-btn-label {
|
|
359
359
|
display: inline-flex;
|
|
360
360
|
align-items: center;
|
|
361
|
+
justify-content: center;
|
|
361
362
|
gap: var(--viking-space-1);
|
|
362
363
|
line-height: 1.2;
|
|
363
364
|
min-width: 0;
|
|
364
|
-
justify-content: center;
|
|
365
365
|
text-align: center;
|
|
366
366
|
white-space: nowrap;
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
+
.viking-btn-label ::slotted(*) {
|
|
370
|
+
display: inline-flex;
|
|
371
|
+
align-items: center;
|
|
372
|
+
justify-content: center;
|
|
373
|
+
flex: 0 0 auto;
|
|
374
|
+
line-height: 1;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.viking-btn-label ::slotted([data-viking-icon]),
|
|
378
|
+
.viking-btn-label ::slotted(svg),
|
|
379
|
+
.viking-btn-label ::slotted(viking-icon) {
|
|
380
|
+
width: var(--viking-icon-size-md);
|
|
381
|
+
height: var(--viking-icon-size-md);
|
|
382
|
+
}
|
|
383
|
+
|
|
369
384
|
.viking-btn-spinner {
|
|
370
385
|
flex: 0 0 auto;
|
|
371
386
|
width: var(--viking-icon-size-sm, 18px);
|
|
@@ -384,7 +399,7 @@
|
|
|
384
399
|
.viking-btn-spinner { animation-duration: 0.01ms; }
|
|
385
400
|
.viking-btn { transition-duration: 0.01ms; }
|
|
386
401
|
}
|
|
387
|
-
`,
|
|
402
|
+
`,Ht=`
|
|
388
403
|
:host {
|
|
389
404
|
display: block;
|
|
390
405
|
font-family: var(--viking-font-family);
|
|
@@ -507,7 +522,7 @@ input:disabled {
|
|
|
507
522
|
@keyframes viking-spin {
|
|
508
523
|
to { transform: rotate(360deg); }
|
|
509
524
|
}
|
|
510
|
-
`,
|
|
525
|
+
`,Dt=`
|
|
511
526
|
:host {
|
|
512
527
|
display: block;
|
|
513
528
|
font-family: var(--viking-font-family);
|
|
@@ -574,7 +589,7 @@ input:disabled {
|
|
|
574
589
|
.viking-field-error {
|
|
575
590
|
color: var(--viking-danger-text);
|
|
576
591
|
}
|
|
577
|
-
`,
|
|
592
|
+
`,Ot=`
|
|
578
593
|
:host {
|
|
579
594
|
display: inline-flex;
|
|
580
595
|
align-items: center;
|
|
@@ -671,7 +686,7 @@ input:disabled {
|
|
|
671
686
|
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
672
687
|
outline-offset: var(--viking-ring-offset);
|
|
673
688
|
}
|
|
674
|
-
`,
|
|
689
|
+
`,zt=`
|
|
675
690
|
:host {
|
|
676
691
|
display: block;
|
|
677
692
|
font-family: var(--viking-font-family);
|
|
@@ -809,7 +824,7 @@ input:disabled {
|
|
|
809
824
|
.viking-callout-danger .viking-callout-text {
|
|
810
825
|
color: var(--viking-white);
|
|
811
826
|
}
|
|
812
|
-
`,
|
|
827
|
+
`,Rt=`
|
|
813
828
|
:host {
|
|
814
829
|
display: block;
|
|
815
830
|
font-family: var(--viking-font-family);
|
|
@@ -882,11 +897,16 @@ input:disabled {
|
|
|
882
897
|
.viking-select-native[aria-invalid='true'] {
|
|
883
898
|
border-color: var(--viking-danger);
|
|
884
899
|
}
|
|
885
|
-
`,
|
|
900
|
+
`,Pt=`
|
|
886
901
|
:host {
|
|
887
902
|
display: contents;
|
|
888
903
|
}
|
|
889
904
|
|
|
905
|
+
.viking-modal-backdrop:not([open]) {
|
|
906
|
+
display: none !important;
|
|
907
|
+
pointer-events: none;
|
|
908
|
+
}
|
|
909
|
+
|
|
890
910
|
.viking-modal-backdrop {
|
|
891
911
|
position: fixed;
|
|
892
912
|
inset: 0;
|
|
@@ -1020,7 +1040,7 @@ input:disabled {
|
|
|
1020
1040
|
animation: none;
|
|
1021
1041
|
}
|
|
1022
1042
|
}
|
|
1023
|
-
`,
|
|
1043
|
+
`,Bt=`
|
|
1024
1044
|
:host {
|
|
1025
1045
|
display: contents;
|
|
1026
1046
|
}
|
|
@@ -1251,123 +1271,123 @@ input:disabled {
|
|
|
1251
1271
|
animation: none;
|
|
1252
1272
|
}
|
|
1253
1273
|
}
|
|
1254
|
-
`;var
|
|
1255
|
-
${
|
|
1274
|
+
`;var ce=new Set(["accent","secondary","success","warning","danger","info","muted","subtle"]),S=class extends c{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"}),u(this.shadow,Ot)}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}get tone(){let t=this.getAttribute("tone")??"";return ce.has(t)?t: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 t=this.tone;t&&this.getAttribute("tone")!==t?this.setAttribute("tone",t):!t&&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 r=this.getAttribute("icon")??(t?J[t]:null),a=r?h(r,16):"";this.shadow.innerHTML=`
|
|
1275
|
+
${a}
|
|
1256
1276
|
<span part="label"><slot></slot></span>
|
|
1257
|
-
${this.removable?`<button type="button" class="viking-badge-remove" part="remove" aria-label="Remove">${
|
|
1258
|
-
`,this.shadow.querySelector(".viking-badge-remove")?.addEventListener("click",this.onRemove)}},
|
|
1259
|
-
<${
|
|
1260
|
-
class="${
|
|
1277
|
+
${this.removable?`<button type="button" class="viking-badge-remove" part="remove" aria-label="Remove">${h("x",14)}</button>`:""}
|
|
1278
|
+
`,this.shadow.querySelector(".viking-badge-remove")?.addEventListener("click",this.onRemove)}},Q=()=>{l(S.tag,S),d(S.legacyTag,S)};var de=new Set(["outline","primary","secondary","filled","danger","ghost","subtle"]),ge=new Set(["sm","xs"]),R=class extends c{static angularTag="viking-button";static tag="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"}),u(this.shadow,Nt)}connectedCallback(){this.render(),this.control?.addEventListener("click",this.onClick)}disconnectedCallback(){this.control?.removeEventListener("click",this.onClick)}attributeChangedCallback(){this.isConnected&&this.render()}onClick=t=>{if(this.disabled||this.loading){t.preventDefault(),t.stopPropagation();return}this.dispatchEvent(new CustomEvent("viking-press",{bubbles:!0,composed:!0,detail:t}))};get variant(){let t=this.getAttribute("variant")??"outline";return de.has(t)?t:"outline"}get size(){let t=this.getAttribute("size");return t&&ge.has(t)?t:null}get disabled(){return k(this,"disabled")}get loading(){return k(this,"loading")}get square(){return k(this,"square")}render(){let t=this.getAttribute("href"),i=!!t,r=i?"a":"button",a=["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,v=n(this.getAttribute("type")??"button"),g=t?n(t):"",p=this.getAttribute("target"),f=p?n(p):"";this.shadow.innerHTML=`
|
|
1279
|
+
<${r}
|
|
1280
|
+
class="${a}"
|
|
1261
1281
|
part="control"
|
|
1262
|
-
${i?`href="${
|
|
1263
|
-
${i&&
|
|
1264
|
-
${i&&
|
|
1282
|
+
${i?`href="${g}"`:`type="${v}"`}
|
|
1283
|
+
${i&&f?`target="${f}"`:""}
|
|
1284
|
+
${i&&p==="_blank"?'rel="noopener noreferrer"':""}
|
|
1265
1285
|
${this.disabled||this.loading?"disabled":""}
|
|
1266
|
-
${o?`aria-label="${
|
|
1286
|
+
${o?`aria-label="${n(o)}"`:""}
|
|
1267
1287
|
${s?`aria-busy="${s}"`:""}
|
|
1268
1288
|
${this.disabled&&i?'aria-disabled="true" tabindex="-1"':""}
|
|
1269
1289
|
>
|
|
1270
1290
|
${this.loading?'<span class="viking-btn-spinner" aria-hidden="true"></span>':""}
|
|
1271
1291
|
<span class="viking-btn-label" part="label"><slot></slot></span>
|
|
1272
|
-
</${
|
|
1273
|
-
`,this.control=this.shadow.querySelector(
|
|
1292
|
+
</${r}>
|
|
1293
|
+
`,this.control=this.shadow.querySelector(r)}},tt=()=>{l(R.tag,R)};var ve=new Set(["accent","secondary","success","warning","danger","info","muted"]),E=class extends c{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"}),u(this.shadow,zt)}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}get tone(){let t=this.getAttribute("tone")??"info";return ve.has(t)?t:"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 t=this.getAttribute("heading")??"",i=this.getAttribute("icon")??J[this.tone]??"info",r=h(i,22,"viking-callout-icon");this.shadow.innerHTML=`
|
|
1274
1294
|
<div class="viking-callout viking-callout-${this.tone}" role="note" part="surface">
|
|
1275
|
-
<span part="icon">${
|
|
1295
|
+
<span part="icon">${r}</span>
|
|
1276
1296
|
<div class="viking-callout-body" part="body">
|
|
1277
|
-
${
|
|
1297
|
+
${t?`<p class="viking-callout-heading" part="heading">${n(t)}</p>`:""}
|
|
1278
1298
|
<div class="viking-callout-text" part="text"><slot></slot></div>
|
|
1279
1299
|
</div>
|
|
1280
|
-
${this.dismissible?`<button type="button" class="viking-callout-close" part="close" aria-label="Dismiss">${
|
|
1300
|
+
${this.dismissible?`<button type="button" class="viking-callout-close" part="close" aria-label="Dismiss">${h("x",18)}</button>`:""}
|
|
1281
1301
|
</div>
|
|
1282
|
-
`,this.shadow.querySelector(".viking-callout-close")?.addEventListener("click",this.onDismiss)}},
|
|
1302
|
+
`,this.shadow.querySelector(".viking-callout-close")?.addEventListener("click",this.onDismiss)}},et=()=>{l(E.tag,E),d(E.legacyTag,E)};var I=class extends c{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 t=this.getAttribute("title");t?(this.setAttribute("role","region"),this.setAttribute("aria-label",t)):(this.removeAttribute("role"),this.removeAttribute("aria-label"))}},it=()=>{l(I.tag,I),d(I.legacyTag,I)};var A=class extends c{static tag="viking-field";static legacyTag="viking-field-wc";static get observedAttributes(){return["label","description","error","required","width"]}shadow;labelId=_("viking-field-label");descriptionId=_("viking-field-description");errorId=_("viking-field-error");slotEl=null;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,Dt)}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 t=this.control;if(!t)return;let i=[this.getAttribute("description")??"",this.getAttribute("error")??""].filter(Boolean).join(" "),r=this.getAttribute("label")??"";r&&!t.hasAttribute("aria-label")&&t.setAttribute("aria-label",r),i?t.setAttribute("aria-description",i):t.removeAttribute("aria-description"),this.getAttribute("error")?(t.setAttribute("aria-invalid","true"),t.setAttribute("error",this.getAttribute("error")??"")):(t.removeAttribute("aria-invalid"),t.getAttribute("error")===""&&t.removeAttribute("error")),k(this,"required")&&t.setAttribute("required","")};render(){let t=this.getAttribute("label")??"",i=this.getAttribute("description")??"",r=this.getAttribute("error")??"",a=k(this,"required");this.shadow.innerHTML=`
|
|
1283
1303
|
<div class="viking-field" part="field" role="group" aria-labelledby="${this.labelId}">
|
|
1284
|
-
${
|
|
1304
|
+
${t?`<div class="viking-field-label-row" part="label-row">
|
|
1285
1305
|
<span class="viking-field-label" part="label" id="${this.labelId}">
|
|
1286
|
-
<span>${
|
|
1287
|
-
${
|
|
1306
|
+
<span>${n(t)}</span>
|
|
1307
|
+
${a?'<span class="viking-field-required" aria-label="required">*</span>':""}
|
|
1288
1308
|
</span>
|
|
1289
1309
|
</div>`:`<span id="${this.labelId}" hidden>Form field</span>`}
|
|
1290
1310
|
<div class="viking-field-control" part="control"><slot></slot></div>
|
|
1291
|
-
${i?`<p id="${this.descriptionId}" class="viking-field-description" part="description">${
|
|
1292
|
-
${
|
|
1311
|
+
${i?`<p id="${this.descriptionId}" class="viking-field-description" part="description">${n(i)}</p>`:""}
|
|
1312
|
+
${r?`<p id="${this.errorId}" class="viking-field-error" part="error" role="alert">${n(r)}</p>`:""}
|
|
1293
1313
|
</div>
|
|
1294
|
-
`,this.slotEl=this.shadow.querySelector("slot"),this.slotEl?.addEventListener("slotchange",this.syncControlA11y),this.shadow.querySelector(".viking-field-label")?.addEventListener("click",this.focusControl)}},
|
|
1314
|
+
`,this.slotEl=this.shadow.querySelector("slot"),this.slotEl?.addEventListener("slotchange",this.syncControlA11y),this.shadow.querySelector(".viking-field-label")?.addEventListener("click",this.focusControl)}},rt=()=>{l(A.tag,A),d(A.legacyTag,A)};var M=class extends c{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=Y(this),u(this.shadow,Ht)}connectedCallback(){this.render(),this.syncFormValue()}attributeChangedCallback(t){if(this.isConnected){if(t==="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(t){let i=t??"";this.setAttribute("value",i),this.input&&(this.input.value=i),this.syncFormValue()}get disabled(){return k(this,"disabled")}get loading(){return k(this,"loading")}get clearable(){return k(this,"clearable")}get bare(){return k(this,"bare")}onInput=()=>{let t=this.input?.value??"";this.setAttribute("value",t),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(){j(this.internals,this.value)}render(){let t=["viking-input-shell",this.disabled?"viking-disabled":"",this.loading?"viking-loading":""].filter(Boolean).join(" "),i=n(this.getAttribute("type")??"text"),r=this.getAttribute("placeholder")??"",a=n(r),o=n(this.getAttribute("value")??""),s=this.getAttribute("aria-label")??(r||"Text input"),v=n(this.getAttribute("autocomplete")??""),g=n(this.getAttribute("aria-describedby")??""),p=n(this.getAttribute("minlength")??""),f=n(this.getAttribute("maxlength")??""),m=n(this.getAttribute("pattern")??""),x=this.getAttribute("error")??"",H=k(this,"required"),D=k(this,"readonly"),Jt=this.clearable&&o.length>0&&!this.loading&&!this.bare,St=`
|
|
1295
1315
|
${this.disabled||this.loading?"disabled":""}
|
|
1296
|
-
${
|
|
1297
|
-
${
|
|
1298
|
-
aria-label="${
|
|
1299
|
-
${
|
|
1316
|
+
${H?"required":""}
|
|
1317
|
+
${D?"readonly":""}
|
|
1318
|
+
aria-label="${n(s)}"
|
|
1319
|
+
${g?`aria-describedby="${g}"`:""}
|
|
1300
1320
|
${this.loading?'aria-busy="true"':""}
|
|
1301
|
-
${
|
|
1302
|
-
${
|
|
1303
|
-
${
|
|
1304
|
-
${
|
|
1305
|
-
${
|
|
1321
|
+
${x?'aria-invalid="true"':""}
|
|
1322
|
+
${v?`autocomplete="${v}"`:""}
|
|
1323
|
+
${p?`minlength="${p}"`:""}
|
|
1324
|
+
${f?`maxlength="${f}"`:""}
|
|
1325
|
+
${m?`pattern="${m}"`:""}
|
|
1306
1326
|
`;this.bare?this.shadow.innerHTML=`
|
|
1307
1327
|
<input
|
|
1308
1328
|
part="input"
|
|
1309
1329
|
class="viking-input-native"
|
|
1310
1330
|
type="${i}"
|
|
1311
|
-
placeholder="${
|
|
1331
|
+
placeholder="${a}"
|
|
1312
1332
|
value="${o}"
|
|
1313
|
-
${
|
|
1333
|
+
${St}
|
|
1314
1334
|
/>
|
|
1315
1335
|
`:this.shadow.innerHTML=`
|
|
1316
|
-
<div class="${
|
|
1336
|
+
<div class="${t}" part="shell">
|
|
1317
1337
|
<slot name="leading"></slot>
|
|
1318
1338
|
<input
|
|
1319
1339
|
part="input"
|
|
1320
1340
|
type="${i}"
|
|
1321
|
-
placeholder="${
|
|
1341
|
+
placeholder="${a}"
|
|
1322
1342
|
value="${o}"
|
|
1323
|
-
${
|
|
1343
|
+
${St}
|
|
1324
1344
|
/>
|
|
1325
1345
|
${this.loading?'<span class="viking-input-spinner" aria-hidden="true"></span>':""}
|
|
1326
|
-
${
|
|
1346
|
+
${Jt?'<button type="button" class="viking-input-clear" aria-label="Clear input" part="clear">\xD7</button>':""}
|
|
1327
1347
|
<slot name="trailing"></slot>
|
|
1328
1348
|
</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)}},
|
|
1330
|
-
<dialog class="viking-modal-backdrop" aria-label="${
|
|
1349
|
+
`,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)}},nt=()=>{l(M.tag,M),d(M.legacyTag,M)};var C=class extends c{static angularTag="viking-modal";static tag="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"}),u(this.shadow,Pt)}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(t){if(this.isConnected){if(t==="open"){this.syncOpen();return}if(t==="title"){this.updateTitle();return}t==="dismissible"&&(this.render(),this.syncOpen())}}openModal(){this.setAttribute("open",""),this.syncOpen()}closeModal(){this.removeAttribute("open"),O(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=t=>{this.dismissible&&t.target===this.dialogEl&&this.closeModal()};syncOpen(){if(!this.dialogEl)return;let t=this.hasAttribute("open");t&&!this.dialogEl.open?(X(this.dialogEl),queueMicrotask(()=>{(this.shadow.querySelector(".viking-modal-close")??this.dialogEl)?.focus()})):!t&&this.dialogEl.open&&O(this.dialogEl)}updateTitle(){let t=this.getAttribute("title")??"Dialog",i=this.shadow.querySelector(".viking-modal-heading");i&&(i.textContent=t),this.dialogEl?.setAttribute("aria-label",t)}render(){let t=this.getAttribute("title")??"Dialog";this.shadow.innerHTML=`
|
|
1350
|
+
<dialog class="viking-modal-backdrop" aria-label="${n(t)}" aria-modal="true">
|
|
1331
1351
|
<div class="viking-modal-panel" part="panel" role="document">
|
|
1332
1352
|
<header class="viking-modal-header" part="header">
|
|
1333
|
-
<h2 class="viking-modal-heading" part="title">${
|
|
1334
|
-
${this.dismissible?`<button type="button" class="viking-modal-close" part="close" aria-label="Close dialog">${
|
|
1353
|
+
<h2 class="viking-modal-heading" part="title">${n(t)}</h2>
|
|
1354
|
+
${this.dismissible?`<button type="button" class="viking-modal-close" part="close" aria-label="Close dialog">${h("x",20)}</button>`:""}
|
|
1335
1355
|
</header>
|
|
1336
1356
|
<div class="viking-modal-body" part="body"><slot></slot></div>
|
|
1337
1357
|
<footer class="viking-modal-footer" part="footer"><slot name="actions"></slot></footer>
|
|
1338
1358
|
</div>
|
|
1339
1359
|
</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())})}},
|
|
1360
|
+
`,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())})}},at=()=>{l(C.tag,C),d(C.dialogTag,C)};var he=e=>{let t=e.getAttribute("items");if(!t)return[];try{let i=JSON.parse(t);return Array.isArray(i)?i:[]}catch{return[]}},ue=(e,t)=>[e.title,e.snippet??"",e.group??"",e.href,...e.keywords??[]].join(" ").toLowerCase().includes(t),pe=(e,t)=>{let i=t.trim().toLowerCase();return i?e.filter(r=>ue(r,i)):e},ke=e=>{let t=new Map;return e.forEach(i=>{let r=i.group??null,a=t.get(r)??[];a.push(i),t.set(r,a)}),Array.from(t.entries()).map(([i,r])=>({group:i,items:r}))},y=class extends c{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=_("viking-search-results");inputId=_("viking-search-input");query="";activeIndex=0;flatResults=[];constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,Bt)}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(t){if(this.isConnected&&(t==="open"&&this.syncOpen(),t==="global-shortcut"&&(this.unbindGlobalShortcut(),this.bindGlobalShortcut()),t==="items"||t==="placeholder"))if(t==="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"),O(this.dialogEl)}search(t){this.query=t,this.inputEl&&(this.inputEl.value=t),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=t=>{t.target===this.dialogEl&&this.closePalette()};onInput=t=>{this.query=t.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=t=>{if(this.flatResults.length===0){t.key==="Escape"&&(t.preventDefault(),this.closePalette());return}if(t.key==="ArrowDown"){t.preventDefault(),this.activeIndex=Math.min(this.flatResults.length-1,this.activeIndex+1),this.renderResults(),this.scrollActiveIntoView();return}if(t.key==="ArrowUp"){t.preventDefault(),this.activeIndex=Math.max(0,this.activeIndex-1),this.renderResults(),this.scrollActiveIntoView();return}if(t.key==="Enter"){t.preventDefault();let i=this.flatResults[this.activeIndex];i&&this.activateItem(i)}};bindGlobalShortcut(){k(this,"global-shortcut")&&(this.globalKeyHandler=t=>{(t.metaKey||t.ctrlKey)&&t.key.toLowerCase()==="k"&&(t.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 t=this.hasAttribute("open");t&&!this.dialogEl.open?(this.dialogEl.removeAttribute("aria-hidden"),X(this.dialogEl),this.activeIndex=0,this.renderResults(),queueMicrotask(()=>this.inputEl?.focus())):!t&&this.dialogEl.open?(O(this.dialogEl),this.dialogEl.setAttribute("aria-hidden","true")):t||this.dialogEl.setAttribute("aria-hidden","true")}scrollActiveIntoView(){this.resultsEl?.querySelector(".viking-search-result.is-selected")?.scrollIntoView({block:"nearest"})}activateItem(t){if(this.dispatchEvent(new CustomEvent("viking-select",{bubbles:!0,composed:!0,detail:{item:t}})),this.closePalette(),t.action==="cookie-settings"){globalThis.DemlWidgets?.openCookieSettings?.();return}if(t.action==="bug-report"){let i=globalThis.DemlWidgets;if(i?.openBugReport){i.openBugReport();return}}t.href&&t.href!=="#"&&window.location.assign(t.href)}renderResults(){if(!this.resultsEl)return;let t=he(this),i=this.query.trim().toLowerCase(),r=pe(t,i);if(this.flatResults=r,r.length===0){let g=this.query.trim();this.resultsEl.innerHTML=`<p class="viking-search-empty" role="status">${g?"No results found":"Start typing to search\u2026"}</p>`,this.inputEl?.removeAttribute("aria-activedescendant");return}this.activeIndex>=r.length&&(this.activeIndex=r.length-1);let a=0,s=ke(r).map(({group:g,items:p})=>{let f=g?`<p class="viking-search-group-label" role="presentation">${n(g)}</p>`:"",m=p.map(x=>{let H=`${this.resultsId}-result-${a}`,D=a===this.activeIndex;return a+=1,`
|
|
1341
1361
|
<a
|
|
1342
|
-
id="${
|
|
1343
|
-
class="viking-search-result${
|
|
1362
|
+
id="${H}"
|
|
1363
|
+
class="viking-search-result${D?" is-selected":""}"
|
|
1344
1364
|
role="option"
|
|
1345
|
-
aria-selected="${
|
|
1346
|
-
href="${
|
|
1365
|
+
aria-selected="${D}"
|
|
1366
|
+
href="${n(x.href)}"
|
|
1347
1367
|
part="result"
|
|
1348
|
-
data-index="${
|
|
1368
|
+
data-index="${a-1}"
|
|
1349
1369
|
>
|
|
1350
1370
|
<div>
|
|
1351
|
-
<div class="viking-search-result-title">${
|
|
1352
|
-
${
|
|
1371
|
+
<div class="viking-search-result-title">${n(x.title)}</div>
|
|
1372
|
+
${x.snippet?`<div class="viking-search-result-snippet">${n(x.snippet)}</div>`:""}
|
|
1353
1373
|
</div>
|
|
1354
|
-
</a>`}).join("");return`${
|
|
1374
|
+
</a>`}).join("");return`${f}${m}`}).join("");this.resultsEl.innerHTML=`<div class="viking-search-results" id="${this.resultsId}" role="listbox" aria-label="Search results">${s}</div>`;let v=`${this.resultsId}-result-${this.activeIndex}`;this.inputEl?.setAttribute("aria-activedescendant",v),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(g=>{g.addEventListener("click",p=>{p.preventDefault();let f=Number(g.dataset.index??0),m=this.flatResults[f];m&&this.activateItem(m)}),g.addEventListener("mouseenter",()=>{let p=Number(g.dataset.index??0);this.activeIndex=p,this.renderResults()})})}render(){let t=this.getAttribute("placeholder")??"Search documentation, dashboard, API\u2026",i=Z();this.shadow.innerHTML=`
|
|
1355
1375
|
<dialog class="viking-search-palette-backdrop" aria-label="Search" aria-hidden="true">
|
|
1356
1376
|
<div class="viking-search-palette" part="panel" role="document">
|
|
1357
1377
|
<div class="viking-search-palette-header" part="header">
|
|
1358
|
-
<span class="viking-search-palette-icon" aria-hidden="true">${
|
|
1378
|
+
<span class="viking-search-palette-icon" aria-hidden="true">${h("search",24)}</span>
|
|
1359
1379
|
<input
|
|
1360
1380
|
id="${this.inputId}"
|
|
1361
1381
|
type="search"
|
|
1362
1382
|
class="viking-search-palette-input"
|
|
1363
1383
|
part="input"
|
|
1364
|
-
placeholder="${
|
|
1365
|
-
aria-label="${
|
|
1384
|
+
placeholder="${n(t)}"
|
|
1385
|
+
aria-label="${n(t)}"
|
|
1366
1386
|
aria-autocomplete="list"
|
|
1367
1387
|
autocomplete="off"
|
|
1368
1388
|
spellcheck="false"
|
|
1369
1389
|
/>
|
|
1370
|
-
<button type="button" class="viking-search-palette-close" part="close" aria-label="Close search">${
|
|
1390
|
+
<button type="button" class="viking-search-palette-close" part="close" aria-label="Close search">${h("x",20)}</button>
|
|
1371
1391
|
</div>
|
|
1372
1392
|
<div class="viking-search-palette-body" part="body">
|
|
1373
1393
|
<slot></slot>
|
|
@@ -1381,7 +1401,512 @@ input:disabled {
|
|
|
1381
1401
|
</footer>
|
|
1382
1402
|
</div>
|
|
1383
1403
|
</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",
|
|
1404
|
+
`,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",r=>{r.key==="Escape"&&(r.preventDefault(),this.closePalette())})}},P=()=>{l(y.tag,y),d(y.searchTag,y),d(y.legacyTag,y)};var be=new Set(["accent","secondary","success","warning","danger","info","muted"]),L=class extends c{static tag="viking-status-card";static legacyTag="viking-status-card-wc";static get observedAttributes(){return["title","subtitle","status","status-tone","status-dot","href","target","compact","loading","interactive","aria-label"]}shadow=this.attachShadow({mode:"open"});connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}get compact(){let t=this.getAttribute("compact");return t!==null&&t!=="false"}get loading(){let t=this.getAttribute("loading");return t!==null&&t!=="false"}get interactive(){let t=this.getAttribute("interactive");return t!==null&&t!=="false"}get href(){return this.getAttribute("href")}get target(){return this.getAttribute("target")}get statusTone(){let t=this.getAttribute("status-tone")??"muted";return be.has(t)?t:"muted"}get statusDot(){let t=this.getAttribute("status-dot");return t!==null&&t!=="false"}get cardTitle(){return this.getAttribute("title")??""}get subtitle(){return this.getAttribute("subtitle")??""}get status(){return this.getAttribute("status")??""}render(){let t=this.status.length>0,i=this.cardTitle,r=this.subtitle,a=this.compact?" status-card--compact":"",o=this.loading?" status-card--loading":"",s=this.interactive?" status-card--interactive":"",v=`status-card${a}${o}${s}`,g=this.target==="_blank"?' rel="noopener noreferrer"':"",p=this.statusDot?'<span class="status-card__status-dot" aria-hidden="true"></span>':"",f=t?`<span class="status-card__status status-card__status-${this.statusTone}" part="status">${p}<span>${n(this.status)}</span></span>`:"",m=this.href?n(this.href):"",x=n(this.getAttribute("aria-label")??""),H=m?"a":"div",D=`
|
|
1405
|
+
<header class="status-card__header">
|
|
1406
|
+
<div class="status-card__title-wrap">
|
|
1407
|
+
${i?`<h3 class="status-card__title" part="title">${n(i)}</h3>`:""}
|
|
1408
|
+
${r?`<p class="status-card__subtitle" part="subtitle">${n(r)}</p>`:""}
|
|
1409
|
+
</div>
|
|
1410
|
+
${t||p?`<div class="status-card__status-wrap">${f}</div>`:""}
|
|
1411
|
+
</header>
|
|
1412
|
+
`;this.shadow.innerHTML=`
|
|
1413
|
+
<style>
|
|
1414
|
+
${me}
|
|
1415
|
+
</style>
|
|
1416
|
+
<${H}
|
|
1417
|
+
class="${v}"
|
|
1418
|
+
part="card"
|
|
1419
|
+
${m?`href="${m}"`:""}
|
|
1420
|
+
${this.target?`target="${n(this.target)}"`:""}
|
|
1421
|
+
${m?g:""}
|
|
1422
|
+
${x?`aria-label="${x}"`:""}
|
|
1423
|
+
>
|
|
1424
|
+
${D}
|
|
1425
|
+
<section class="status-card__body">
|
|
1426
|
+
<slot></slot>
|
|
1427
|
+
</section>
|
|
1428
|
+
</${H}>
|
|
1429
|
+
`}},me=`
|
|
1430
|
+
:host {
|
|
1431
|
+
display: block;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
:host([compact]) .status-card,
|
|
1435
|
+
:host .status-card--compact {
|
|
1436
|
+
padding: var(--viking-card-padding-compact);
|
|
1437
|
+
gap: var(--viking-space-2);
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
.status-card {
|
|
1441
|
+
display: grid;
|
|
1442
|
+
gap: var(--viking-space-3);
|
|
1443
|
+
width: 100%;
|
|
1444
|
+
padding: var(--viking-card-padding);
|
|
1445
|
+
border-radius: var(--viking-radius-lg);
|
|
1446
|
+
border: 1px solid var(--viking-border);
|
|
1447
|
+
background: var(--viking-surface);
|
|
1448
|
+
color: var(--viking-text);
|
|
1449
|
+
box-shadow: var(--viking-shadow-sm);
|
|
1450
|
+
box-sizing: border-box;
|
|
1451
|
+
position: relative;
|
|
1452
|
+
transition: var(--viking-transition-interactive);
|
|
1453
|
+
text-decoration: none;
|
|
1454
|
+
overflow: hidden;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
.status-card::before {
|
|
1458
|
+
content: "";
|
|
1459
|
+
position: absolute;
|
|
1460
|
+
inset: 0 0 auto;
|
|
1461
|
+
height: 1px;
|
|
1462
|
+
background: linear-gradient(
|
|
1463
|
+
90deg,
|
|
1464
|
+
transparent,
|
|
1465
|
+
color-mix(in srgb, var(--viking-metallic-200) 24%, transparent),
|
|
1466
|
+
transparent
|
|
1467
|
+
);
|
|
1468
|
+
pointer-events: none;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
.status-card--interactive {
|
|
1472
|
+
cursor: pointer;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
.status-card--interactive:hover {
|
|
1476
|
+
border-color: var(--viking-accent-strong);
|
|
1477
|
+
box-shadow: var(--viking-shadow-hover);
|
|
1478
|
+
transform: translateY(var(--viking-state-hover-lift));
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
.status-card--loading {
|
|
1482
|
+
pointer-events: none;
|
|
1483
|
+
opacity: var(--viking-state-disabled-opacity);
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
.status-card__header {
|
|
1487
|
+
display: flex;
|
|
1488
|
+
justify-content: space-between;
|
|
1489
|
+
gap: var(--viking-space-3);
|
|
1490
|
+
align-items: flex-start;
|
|
1491
|
+
min-width: 0;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
.status-card__title-wrap {
|
|
1495
|
+
display: grid;
|
|
1496
|
+
gap: var(--viking-space-1);
|
|
1497
|
+
min-width: 0;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
.status-card__title {
|
|
1501
|
+
margin: 0;
|
|
1502
|
+
font-size: var(--viking-font-size-xl);
|
|
1503
|
+
font-weight: var(--viking-font-weight-bold);
|
|
1504
|
+
letter-spacing: var(--viking-letter-spacing-tight);
|
|
1505
|
+
line-height: var(--viking-line-height-tight);
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
.status-card__subtitle {
|
|
1509
|
+
margin: 0;
|
|
1510
|
+
max-width: 60ch;
|
|
1511
|
+
color: var(--viking-text-muted);
|
|
1512
|
+
font-size: var(--viking-font-size-base);
|
|
1513
|
+
line-height: var(--viking-line-height-relaxed);
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
.status-card__status-wrap {
|
|
1517
|
+
display: inline-flex;
|
|
1518
|
+
align-items: center;
|
|
1519
|
+
justify-content: flex-end;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
.status-card__status {
|
|
1523
|
+
display: inline-flex;
|
|
1524
|
+
align-items: center;
|
|
1525
|
+
gap: var(--viking-space-1);
|
|
1526
|
+
max-width: fit-content;
|
|
1527
|
+
padding: calc(var(--viking-space-half) - 1px) var(--viking-space-1);
|
|
1528
|
+
border-radius: var(--viking-radius-pill);
|
|
1529
|
+
border: 1px solid var(--viking-border-subtle);
|
|
1530
|
+
background: color-mix(in srgb, var(--viking-surface) 92%, transparent);
|
|
1531
|
+
color: var(--viking-text-muted);
|
|
1532
|
+
text-transform: capitalize;
|
|
1533
|
+
font-size: var(--viking-font-size-xs);
|
|
1534
|
+
font-weight: var(--viking-font-weight-semibold);
|
|
1535
|
+
letter-spacing: var(--viking-letter-spacing-wide);
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
.status-card__status-dot {
|
|
1539
|
+
width: var(--viking-space-1);
|
|
1540
|
+
height: var(--viking-space-1);
|
|
1541
|
+
border-radius: var(--viking-radius-full);
|
|
1542
|
+
background: currentColor;
|
|
1543
|
+
flex: 0 0 auto;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
.status-card__status-success {
|
|
1547
|
+
background: color-mix(in srgb, var(--viking-success) 12%, var(--viking-surface));
|
|
1548
|
+
border-color: color-mix(in srgb, var(--viking-success) 40%, transparent);
|
|
1549
|
+
color: var(--viking-success);
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
.status-card__status-warning {
|
|
1553
|
+
background: color-mix(in srgb, var(--viking-warning) 12%, var(--viking-surface));
|
|
1554
|
+
border-color: color-mix(in srgb, var(--viking-warning) 40%, transparent);
|
|
1555
|
+
color: var(--viking-warning);
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
.status-card__status-danger {
|
|
1559
|
+
background: color-mix(in srgb, var(--viking-danger) 12%, var(--viking-surface));
|
|
1560
|
+
border-color: color-mix(in srgb, var(--viking-danger) 45%, transparent);
|
|
1561
|
+
color: var(--viking-danger-text);
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
.status-card__status-accent {
|
|
1565
|
+
background: color-mix(in srgb, var(--viking-accent) 12%, var(--viking-surface));
|
|
1566
|
+
border-color: color-mix(in srgb, var(--viking-accent) 40%, transparent);
|
|
1567
|
+
color: var(--viking-accent);
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
.status-card__status-secondary {
|
|
1571
|
+
background: color-mix(in srgb, var(--viking-accent-secondary) 12%, var(--viking-surface));
|
|
1572
|
+
border-color: color-mix(in srgb, var(--viking-accent-secondary) 40%, transparent);
|
|
1573
|
+
color: var(--viking-accent-secondary);
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
.status-card__status-info {
|
|
1577
|
+
background: color-mix(in srgb, var(--viking-info) 12%, var(--viking-surface));
|
|
1578
|
+
border-color: color-mix(in srgb, var(--viking-info) 40%, transparent);
|
|
1579
|
+
color: var(--viking-info);
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
.status-card__status-muted {
|
|
1583
|
+
background: var(--viking-surface);
|
|
1584
|
+
border-color: var(--viking-border-subtle);
|
|
1585
|
+
color: var(--viking-text-muted);
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
.status-card__body {
|
|
1589
|
+
display: grid;
|
|
1590
|
+
gap: var(--viking-space-3);
|
|
1591
|
+
min-width: 0;
|
|
1592
|
+
}
|
|
1593
|
+
`,ot=()=>{l(L.tag,L),d(L.legacyTag,L)};var fe=new Set(["accent","secondary","success","warning","danger","info","muted"]),T=class extends c{static tag="viking-status-pill";static legacyTag="viking-status-pill-wc";static get observedAttributes(){return["tone","icon","href","target","compact","dot","removable","aria-label"]}shadow;constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,xe)}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}get tone(){let t=this.getAttribute("tone")??"muted";return fe.has(t)?t:"muted"}get compact(){let t=this.getAttribute("compact");return t!==null&&t!=="false"}get removable(){let t=this.getAttribute("removable");return t!==null&&t!=="false"}get href(){return this.getAttribute("href")}get icon(){return this.getAttribute("icon")}get showDot(){let t=this.getAttribute("dot");return t!==null&&t!=="false"}onRemove=()=>{this.dispatchEvent(new CustomEvent("viking-pill-removed",{bubbles:!0,composed:!0}))};render(){let t=this.tone,i=this.compact?" status-pill--compact":"",r=this.icon?h(this.icon,14,"status-pill__icon"):"",a=this.showDot?'<span class="status-pill__dot" aria-hidden="true"></span>':"",o='<span class="status-pill__label" part="label"><slot></slot></span>',s=n(this.getAttribute("aria-label")??""),v=this.href,g=this.getAttribute("target"),p=v&&g==="_blank"?' rel="noopener noreferrer"':"";if(v){this.shadow.innerHTML=`
|
|
1594
|
+
<a
|
|
1595
|
+
class="status-pill status-pill-${t}${i}"
|
|
1596
|
+
part="control"
|
|
1597
|
+
href="${n(v)}"
|
|
1598
|
+
${g?`target="${n(g)}"${p}`:""}
|
|
1599
|
+
${s?`aria-label="${s}"`:""}
|
|
1600
|
+
>
|
|
1601
|
+
${a}
|
|
1602
|
+
${r}
|
|
1603
|
+
${o}
|
|
1604
|
+
</a>
|
|
1605
|
+
`;return}this.shadow.innerHTML=`
|
|
1606
|
+
<span
|
|
1607
|
+
class="status-pill status-pill-${t}${i}"
|
|
1608
|
+
part="control"
|
|
1609
|
+
${s?`role="status" aria-label="${s}"`:""}
|
|
1610
|
+
>
|
|
1611
|
+
${a}
|
|
1612
|
+
${r}
|
|
1613
|
+
${o}
|
|
1614
|
+
${this.removable?'<button type="button" class="status-pill__remove" part="remove" aria-label="Remove"><span class="status-pill__remove-icon" aria-hidden="true">×</span></button>':""}
|
|
1615
|
+
</span>
|
|
1616
|
+
`,this.shadow.querySelector(".status-pill__remove")?.addEventListener("click",this.onRemove)}},xe=`
|
|
1617
|
+
:host {
|
|
1618
|
+
display: inline-flex;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
.status-pill {
|
|
1622
|
+
--viking-status-pill-bg: color-mix(in srgb, var(--viking-surface-alt) 88%, var(--viking-surface));
|
|
1623
|
+
--viking-status-pill-text: var(--viking-text-muted);
|
|
1624
|
+
--viking-status-pill-border: var(--viking-border-subtle);
|
|
1625
|
+
--viking-status-pill-shadow: var(--viking-shadow-xs);
|
|
1626
|
+
|
|
1627
|
+
display: inline-flex;
|
|
1628
|
+
align-items: center;
|
|
1629
|
+
gap: var(--viking-space-half);
|
|
1630
|
+
padding: var(--viking-space-half) var(--viking-space-2);
|
|
1631
|
+
border-radius: var(--viking-radius-pill);
|
|
1632
|
+
border: 1px solid var(--viking-status-pill-border);
|
|
1633
|
+
background: var(--viking-status-pill-bg);
|
|
1634
|
+
color: var(--viking-status-pill-text);
|
|
1635
|
+
font-family: var(--viking-font-family);
|
|
1636
|
+
font-size: var(--viking-font-size-xs);
|
|
1637
|
+
font-weight: var(--viking-font-weight-semibold);
|
|
1638
|
+
letter-spacing: var(--viking-letter-spacing-caps);
|
|
1639
|
+
line-height: var(--viking-line-height-snug);
|
|
1640
|
+
white-space: nowrap;
|
|
1641
|
+
text-transform: uppercase;
|
|
1642
|
+
box-shadow: var(--viking-status-pill-shadow);
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
:host(:hover) .status-pill {
|
|
1646
|
+
text-decoration: none;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
.status-pill--compact {
|
|
1650
|
+
padding: var(--viking-space-half);
|
|
1651
|
+
font-size: var(--viking-font-size-2xs);
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
.status-pill__label {
|
|
1655
|
+
display: inline-flex;
|
|
1656
|
+
align-items: center;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
.status-pill__dot {
|
|
1660
|
+
width: var(--viking-space-1);
|
|
1661
|
+
height: var(--viking-space-1);
|
|
1662
|
+
border-radius: var(--viking-radius-full);
|
|
1663
|
+
background: currentColor;
|
|
1664
|
+
flex: 0 0 auto;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
.status-pill__icon,
|
|
1668
|
+
::slotted([data-viking-icon]) {
|
|
1669
|
+
width: var(--viking-space-3);
|
|
1670
|
+
height: var(--viking-space-3);
|
|
1671
|
+
color: currentColor;
|
|
1672
|
+
flex-shrink: 0;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
.status-pill__remove {
|
|
1676
|
+
display: inline-flex;
|
|
1677
|
+
align-items: center;
|
|
1678
|
+
justify-content: center;
|
|
1679
|
+
border: 1px solid transparent;
|
|
1680
|
+
background: transparent;
|
|
1681
|
+
color: currentColor;
|
|
1682
|
+
border-radius: var(--viking-radius-full);
|
|
1683
|
+
width: var(--viking-touch-target-min);
|
|
1684
|
+
height: var(--viking-touch-target-min);
|
|
1685
|
+
margin-right: calc(var(--viking-space-half) * -1);
|
|
1686
|
+
padding: 0;
|
|
1687
|
+
cursor: pointer;
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
.status-pill__remove:hover {
|
|
1691
|
+
background: color-mix(in srgb, currentColor 10%, transparent);
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
.status-pill__remove:focus-visible {
|
|
1695
|
+
outline: var(--viking-ring-width) solid var(--viking-ring);
|
|
1696
|
+
outline-offset: var(--viking-ring-offset);
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
.status-pill-accent {
|
|
1700
|
+
--viking-status-pill-bg: color-mix(in srgb, var(--viking-accent) 18%, var(--viking-surface));
|
|
1701
|
+
--viking-status-pill-text: var(--viking-accent);
|
|
1702
|
+
--viking-status-pill-border: color-mix(in srgb, var(--viking-accent) 52%, transparent);
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
.status-pill-secondary {
|
|
1706
|
+
--viking-status-pill-bg: color-mix(in srgb, var(--viking-accent-secondary) 16%, var(--viking-surface));
|
|
1707
|
+
--viking-status-pill-text: var(--viking-accent-secondary);
|
|
1708
|
+
--viking-status-pill-border: color-mix(in srgb, var(--viking-accent-secondary) 52%, transparent);
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
.status-pill-success {
|
|
1712
|
+
--viking-status-pill-bg: color-mix(in srgb, var(--viking-success) 16%, var(--viking-surface));
|
|
1713
|
+
--viking-status-pill-text: var(--viking-success);
|
|
1714
|
+
--viking-status-pill-border: color-mix(in srgb, var(--viking-success) 55%, transparent);
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
.status-pill-warning {
|
|
1718
|
+
--viking-status-pill-bg: color-mix(in srgb, var(--viking-warning) 16%, var(--viking-surface));
|
|
1719
|
+
--viking-status-pill-text: var(--viking-warning);
|
|
1720
|
+
--viking-status-pill-border: color-mix(in srgb, var(--viking-warning) 55%, transparent);
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
.status-pill-danger {
|
|
1724
|
+
--viking-status-pill-bg: color-mix(in srgb, var(--viking-danger) 14%, var(--viking-surface));
|
|
1725
|
+
--viking-status-pill-text: var(--viking-danger-text);
|
|
1726
|
+
--viking-status-pill-border: color-mix(in srgb, var(--viking-danger) 50%, transparent);
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
.status-pill-info {
|
|
1730
|
+
--viking-status-pill-bg: color-mix(in srgb, var(--viking-info) 14%, var(--viking-surface));
|
|
1731
|
+
--viking-status-pill-text: var(--viking-info);
|
|
1732
|
+
--viking-status-pill-border: color-mix(in srgb, var(--viking-info) 50%, transparent);
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
.status-pill-muted {
|
|
1736
|
+
--viking-status-pill-bg: var(--viking-surface);
|
|
1737
|
+
--viking-status-pill-text: var(--viking-text-muted);
|
|
1738
|
+
--viking-status-pill-border: var(--viking-border-subtle);
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
.status-pill a {
|
|
1742
|
+
color: inherit;
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
a.status-pill {
|
|
1746
|
+
text-decoration: none;
|
|
1747
|
+
}
|
|
1748
|
+
`,st=()=>{l(T.tag,T),d(T.legacyTag,T)};var B=[{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}],lt=[{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"}]}],ye="reportBug=1",we="cookieSettings=1",Kt=e=>/^https?:\/\//i.test(e),ct=(e,t)=>{if(Kt(t))return t;let i=e.replace(/\/$/,""),r=t.startsWith("/")?t:`/${t}`;return`${i}${r}`},xt=e=>`${ct(e.app,"/")}?${ye}`,yt=e=>`${ct(e.marketing,"/")}?${we}`,Wt=(e,t)=>Kt(e)||e.startsWith("mailto:")||e.startsWith("/")?e:ct(t.marketing,e),Ut=(e,t,i)=>t==="app"?e:ct(i.app,e),K=(e,t,i)=>e.platform?Ut(e.appHref,t,i):t==="app"?e.appHref:Wt(e.marketingHref,i),dt=(e,t,i)=>e.action==="bug-report"?t==="app"?"#":xt(i):e.action==="cookie-settings"?yt(i):e.platform?Ut(e.appHref,t,i):t==="app"?e.appHref:Wt(e.marketingHref,i),gt=(e,t)=>e==="marketing"?"/":t.marketing,Gt=(e,t=!1)=>e.filter(i=>!i.requireAuth||t);var b={app:"https://deml.app",marketing:"https://dataengineeringformachinelearning.com",backend:"https://backend.deml.app"};var qt=new Set(["app","marketing","backend","docs"]),_e=()=>{let e=document.documentElement.getAttribute("data-deml-context");if(e&&qt.has(e))return e;let t=window.location.hostname;return t.startsWith("backend.")?"backend":t.includes("deml.app")?"app":"marketing"},Se=e=>{let t=e.getAttribute("context");return t&&qt.has(t)?t:_e()},Ee=e=>{let t=globalThis.__DEML??{};return{app:e.getAttribute("app-url")??t.app??b.app,marketing:e.getAttribute("marketing-url")??t.marketing??b.marketing,backend:e.getAttribute("backend-url")??t.backend??b.backend}},Ie=e=>{let t=e.getAttribute("year"),i=t?Number(t):new Date().getFullYear();return Number.isFinite(i)?i:new Date().getFullYear()},Ae=(e,t)=>lt.map(i=>{let r=i.links.map(a=>{let o=dt(a,e,t);return`
|
|
1749
|
+
<li>
|
|
1750
|
+
<a href="${n(o)}">${n(a.label)}</a>
|
|
1751
|
+
</li>
|
|
1752
|
+
`}).join("");return`
|
|
1753
|
+
<div class="footer-column">
|
|
1754
|
+
<h3 class="footer-column-title">${n(i.title)}</h3>
|
|
1755
|
+
<ul class="footer-list">
|
|
1756
|
+
${r}
|
|
1757
|
+
</ul>
|
|
1758
|
+
</div>
|
|
1759
|
+
`}).join(""),V=class extends HTMLElement{static tag="viking-site-footer";static legacyTag="viking-site-footer-wc";static get observedAttributes(){return["context","app-url","marketing-url","backend-url","year"]}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}render(){let t=Se(this),i=Ee(this),r=Ie(this),a=Ae(t,i);this.innerHTML=`
|
|
1760
|
+
<footer class="mega-footer">
|
|
1761
|
+
<div class="footer-content">
|
|
1762
|
+
<nav class="footer-directory" aria-label="Footer Directory">
|
|
1763
|
+
${a}
|
|
1764
|
+
</nav>
|
|
1765
|
+
|
|
1766
|
+
<section class="footer-bottom">
|
|
1767
|
+
<div class="footer-badges-top">
|
|
1768
|
+
<span
|
|
1769
|
+
class="usa-badge"
|
|
1770
|
+
id="usa-badge"
|
|
1771
|
+
role="button"
|
|
1772
|
+
tabindex="0"
|
|
1773
|
+
aria-label="Made in the U.S.A."
|
|
1774
|
+
>
|
|
1775
|
+
<span class="usa-badge-icon" aria-hidden="true">\u{1F1FA}\u{1F1F8}</span>
|
|
1776
|
+
<span>Made in the U.S.A</span>
|
|
1777
|
+
</span>
|
|
1778
|
+
</div>
|
|
1779
|
+
|
|
1780
|
+
<div class="footer-compliance-row">
|
|
1781
|
+
<div class="copyright-info">
|
|
1782
|
+
<span class="copyright-text">
|
|
1783
|
+
Copyright \xA9 ${r} Data Engineering for Machine Learning by
|
|
1784
|
+
<a href="https://joealongi.dev/" target="_blank" rel="noopener noreferrer">Joe Alongi</a>.
|
|
1785
|
+
All rights reserved.
|
|
1786
|
+
</span>
|
|
1787
|
+
</div>
|
|
1788
|
+
</div>
|
|
1789
|
+
</section>
|
|
1790
|
+
</div>
|
|
1791
|
+
</footer>
|
|
1792
|
+
`}},vt=()=>{l(V.tag,V),d(V.legacyTag,V)};var Ft=new Set(["app","marketing","backend","docs"]),Me=()=>{let e=document.documentElement.getAttribute("data-deml-context");if(e&&Ft.has(e))return e;let t=window.location.hostname;return t.startsWith("ui.")?"docs":t.startsWith("backend.")?"backend":t.includes("deml.app")?"app":"marketing"},Ce=e=>{let t=e.getAttribute("context");return t&&Ft.has(t)?t:Me()},jt=(e,t)=>{let i=e.getAttribute(t);return i!==null&&i!=="false"},Le=e=>{let t=globalThis.__DEML??{};return{app:e.getAttribute("app-url")??t.app??b.app,marketing:e.getAttribute("marketing-url")??t.marketing??b.marketing,backend:e.getAttribute("backend-url")??t.backend??b.backend}},Te=e=>jt(e,"authenticated"),Ve=e=>e.getAttribute("show-search")===null?!0:jt(e,"show-search"),$e=(e,t)=>{let i=e.getAttribute("sign-in-href");if(i)return i;let r=e.getAttribute("return-url")??window.location.href;return`${t.app}/login?returnUrl=${encodeURIComponent(r)}`},$=class extends HTMLElement{static tag="viking-site-navbar";static legacyTag="viking-site-navbar-wc";static get observedAttributes(){return["context","app-url","marketing-url","backend-url","authenticated","show-search","sign-in-href","dashboard-href","return-url"]}connectedCallback(){this.render()}attributeChangedCallback(){this.isConnected&&this.render()}renderNavLinks(t,i,r="desktop"){let a=r==="mobile"?"mobile-nav-btn":"nav-btn";return B.map(o=>{let s=K(o,t,i),v=o.requireAuth,g=v?" hidden":"",p=v?' data-require-auth="true"':"";return`
|
|
1793
|
+
<a
|
|
1794
|
+
href="${n(s)}"
|
|
1795
|
+
class="${a}"
|
|
1796
|
+
data-nav-id="${n(o.id)}"
|
|
1797
|
+
${p}
|
|
1798
|
+
${g}
|
|
1799
|
+
>
|
|
1800
|
+
<span data-viking-icon="${n(o.icon)}" data-viking-icon-size="16" aria-hidden="true"></span>
|
|
1801
|
+
<span>${n(o.label)}</span>
|
|
1802
|
+
</a>
|
|
1803
|
+
`}).join("")}renderAuthDesktop(t,i,r){return`
|
|
1804
|
+
<div class="desktop-auth">
|
|
1805
|
+
<viking-button-wc
|
|
1806
|
+
variant="primary"
|
|
1807
|
+
class="auth-btn"
|
|
1808
|
+
href="${n(t?r:i)}"
|
|
1809
|
+
id="auth-btn-desktop"
|
|
1810
|
+
>
|
|
1811
|
+
<span
|
|
1812
|
+
id="auth-icon-desktop"
|
|
1813
|
+
data-viking-icon="${t?"home":"arrow-right"}"
|
|
1814
|
+
data-viking-icon-size="16"
|
|
1815
|
+
aria-hidden="true"
|
|
1816
|
+
></span>
|
|
1817
|
+
<span id="auth-text-desktop">${t?"Dashboard":"Sign In"}</span>
|
|
1818
|
+
</viking-button-wc>
|
|
1819
|
+
<viking-button-wc
|
|
1820
|
+
variant="ghost"
|
|
1821
|
+
class="auth-btn auth-signout-btn"
|
|
1822
|
+
id="auth-signout-desktop"
|
|
1823
|
+
${t?"":" hidden"}
|
|
1824
|
+
>
|
|
1825
|
+
Sign Out
|
|
1826
|
+
</viking-button-wc>
|
|
1827
|
+
</div>
|
|
1828
|
+
`}renderAuthMobile(t,i,r){return`
|
|
1829
|
+
<div class="mobile-divider"></div>
|
|
1830
|
+
<viking-button-wc
|
|
1831
|
+
variant="primary"
|
|
1832
|
+
full-width
|
|
1833
|
+
class="mobile-auth-btn auth-btn"
|
|
1834
|
+
href="${n(t?i:r)}"
|
|
1835
|
+
id="auth-btn-mobile"
|
|
1836
|
+
>
|
|
1837
|
+
<span
|
|
1838
|
+
id="auth-icon-mobile"
|
|
1839
|
+
data-viking-icon="${t?"home":"arrow-right"}"
|
|
1840
|
+
data-viking-icon-size="16"
|
|
1841
|
+
aria-hidden="true"
|
|
1842
|
+
></span>
|
|
1843
|
+
<span id="auth-text-mobile">${t?"Dashboard":"Sign In"}</span>
|
|
1844
|
+
</viking-button-wc>
|
|
1845
|
+
<viking-button-wc
|
|
1846
|
+
variant="ghost"
|
|
1847
|
+
full-width
|
|
1848
|
+
class="mobile-auth-btn auth-btn auth-signout-btn"
|
|
1849
|
+
id="auth-signout-mobile"
|
|
1850
|
+
${t?"":" hidden"}
|
|
1851
|
+
>
|
|
1852
|
+
Sign Out
|
|
1853
|
+
</viking-button-wc>
|
|
1854
|
+
`}renderSearchButton(t){return t?`
|
|
1855
|
+
<div class="navbar-search" role="search">
|
|
1856
|
+
<viking-button-wc
|
|
1857
|
+
variant="outline"
|
|
1858
|
+
square
|
|
1859
|
+
compact
|
|
1860
|
+
class="navbar-search-trigger"
|
|
1861
|
+
aria-label="Open search (${navigator.platform.match(/Mac|iPhone|iPad/i)?"\u2318K":"Ctrl+K"})"
|
|
1862
|
+
id="navbar-search-trigger"
|
|
1863
|
+
>
|
|
1864
|
+
<span data-viking-icon="search" data-viking-icon-size="20" aria-hidden="true"></span>
|
|
1865
|
+
</viking-button-wc>
|
|
1866
|
+
</div>
|
|
1867
|
+
`:""}render(){let t=Ce(this),i=Le(this),r=Te(this),a=Ve(this),o=gt(t,i),s=$e(this,i),v=this.getAttribute("dashboard-href")??`${i.app}/dashboard`,g=this.renderNavLinks(t,i,"desktop"),p=this.renderNavLinks(t,i,"mobile"),f=this.renderAuthDesktop(r,s,v),m=this.renderAuthMobile(r,v,s),x=this.renderSearchButton(a);this.innerHTML=`
|
|
1868
|
+
<header class="navbar">
|
|
1869
|
+
<div class="navbar-content">
|
|
1870
|
+
<div class="navbar-left">
|
|
1871
|
+
<a href="${n(o)}" class="navbar-brand" aria-label="Go to homepage" id="navbar-brand-link">
|
|
1872
|
+
<span
|
|
1873
|
+
class="brand-icon navbar-logo"
|
|
1874
|
+
data-viking-icon="drakkar"
|
|
1875
|
+
data-viking-icon-color="accent"
|
|
1876
|
+
data-viking-icon-size="28"
|
|
1877
|
+
aria-hidden="true"
|
|
1878
|
+
></span>
|
|
1879
|
+
</a>
|
|
1880
|
+
</div>
|
|
1881
|
+
|
|
1882
|
+
<nav class="navbar-center desktop-nav" aria-label="Main navigation">
|
|
1883
|
+
${g}
|
|
1884
|
+
</nav>
|
|
1885
|
+
|
|
1886
|
+
<div class="navbar-right">
|
|
1887
|
+
${x}
|
|
1888
|
+
${f}
|
|
1889
|
+
<viking-theme-toggle-wc class="theme-toggle-btn" aria-label="Toggle light and dark theme"></viking-theme-toggle-wc>
|
|
1890
|
+
<viking-button-wc
|
|
1891
|
+
variant="outline"
|
|
1892
|
+
square
|
|
1893
|
+
class="menu-toggle-btn"
|
|
1894
|
+
aria-label="Toggle navigation menu"
|
|
1895
|
+
aria-controls="mobile-menu"
|
|
1896
|
+
aria-expanded="false"
|
|
1897
|
+
id="mobile-menu-btn"
|
|
1898
|
+
>
|
|
1899
|
+
<span data-viking-icon="menu" data-viking-icon-size="24" aria-hidden="true"></span>
|
|
1900
|
+
</viking-button-wc>
|
|
1901
|
+
</div>
|
|
1902
|
+
</div>
|
|
1903
|
+
|
|
1904
|
+
<nav class="mobile-menu" id="mobile-menu" aria-label="Mobile navigation" hidden>
|
|
1905
|
+
${p}
|
|
1906
|
+
${m}
|
|
1907
|
+
</nav>
|
|
1908
|
+
</header>
|
|
1909
|
+
`}},ht=()=>{l($.tag,$),d($.legacyTag,$)};var Ne=e=>{let t=new Set;return e.filter(i=>{let r=`${i.title}:${i.href}:${i.action??""}`;return t.has(r)?!1:(t.add(r),!0)})},He=(e,t,i)=>({title:e.label,href:K(e,t,i),snippet:`Open ${e.label}`,group:"Platform",keywords:[e.id,e.label.toLowerCase(),"navigate","go"]}),De=(e,t,i,r)=>e.action==="cookie-settings"?{title:e.label,href:yt(r),snippet:"Manage analytics and cookie preferences",group:t,keywords:["cookies","consent","privacy","gdpr"],action:"cookie-settings"}:e.action==="bug-report"?{title:e.label,href:i==="app"?"#":xt(r),snippet:"Submit a product issue or regression",group:t,keywords:["bug","issue","support","feedback"],action:"bug-report"}:{title:e.label,href:dt(e,i,r),snippet:`Open ${e.label}`,group:t,keywords:[e.label.toLowerCase(),t.toLowerCase()]},Oe=[{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"]}],ze=(e,t,i)=>{switch(e.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 t==="app"?i.app:i.marketing}},Re=[{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"]}],Pe=(e,t)=>e.startsWith("http")?e:`${t.replace(/\/$/,"")}${e.startsWith("/")?e:`/${e}`}`,wt=(e,t,i)=>{let r=e==="docs"?"marketing":e,a=[...B.map(o=>He(o,r,t)),...lt.flatMap(o=>o.links.map(s=>De(s,o.title,r,t))),...Oe.map(o=>({...o,href:ze(o,r,t)}))];if(e==="app"&&a.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"]}),e==="docs"){let o=i?.docsOrigin??"https://ui.dataengineeringformachinelearning.com";a.push(...Re.map(s=>({...s,href:Pe(s.href,o)})))}return Ne(a)};var Yt=new Set(["app","marketing","backend","docs"]),Be=()=>{let e=document.documentElement.getAttribute("data-deml-context");if(e&&Yt.has(e))return e;let t=window.location.hostname;return t.startsWith("ui.")?"docs":t.includes("deml.app")&&!t.startsWith("backend.")?"app":t.startsWith("backend.")?"backend":"marketing"},Ke=e=>{let t=globalThis.__DEML??{};return{app:e.getAttribute("app-url")??t.app??b.app,marketing:e.getAttribute("marketing-url")??t.marketing??b.marketing,backend:e.getAttribute("backend-url")??t.backend??b.backend}},We=e=>{let t=e.getAttribute("context");return t&&Yt.has(t)?t:Be()},w=class extends c{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(){P(),this.ensurePalette(),this.loadItems()}attributeChangedCallback(t){if(this.isConnected){if(t==="placeholder"&&this.paletteEl){let i=this.getAttribute("placeholder")??"Search documentation, dashboard, settings\u2026";this.paletteEl.setAttribute("placeholder",i);return}if(t==="global-shortcut"&&this.paletteEl){k(this,"global-shortcut")||!this.hasAttribute("global-shortcut")?this.paletteEl.setAttribute("global-shortcut",""):this.paletteEl.removeAttribute("global-shortcut");return}(t==="context"||t==="app-url"||t==="marketing-url"||t==="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 t=this.getAttribute("placeholder")??"Search documentation, dashboard, settings\u2026";this.paletteEl.setAttribute("placeholder",t),(k(this,"global-shortcut")||!this.hasAttribute("global-shortcut"))&&this.paletteEl.setAttribute("global-shortcut",""),this.append(this.paletteEl)}async loadItems(t=!1){if(!this.paletteEl||this.itemsLoaded&&!t)return;let i=We(this),r=Ke(this),a=wt(i,r,{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)&&(a=wt(i,r,{docsOrigin:window.location.origin}))}}catch{}this.paletteEl.setAttribute("items",JSON.stringify(a)),this.itemsLoaded=!0}},W=()=>{l(w.tag,w),d(w.searchTag,w),d(w.legacyTag,w)};var Ue=`
|
|
1385
1910
|
:host {
|
|
1386
1911
|
display: inline-flex;
|
|
1387
1912
|
}
|
|
@@ -1428,8 +1953,8 @@ input:disabled {
|
|
|
1428
1953
|
.theme-icon.is-visible {
|
|
1429
1954
|
display: block;
|
|
1430
1955
|
}
|
|
1431
|
-
`,
|
|
1432
|
-
<button type="button" class="theme-toggle-btn" part="control" aria-label="${
|
|
1956
|
+
`,Ge=e=>{document.documentElement.setAttribute("data-theme",e),document.documentElement.classList.toggle("dark",e==="dark"),localStorage.setItem("theme",e)},Xt=()=>{let e=localStorage.getItem("theme");return e==="light"||e==="dark"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},U=class extends c{static tag="viking-theme-toggle-wc";shadow;button=null;sunIcon=null;moonIcon=null;onStorage=()=>{this.syncIcons()};constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),u(this.shadow,Ue)}connectedCallback(){this.render(),this.syncIcons(),this.button?.addEventListener("click",this.onClick),window.addEventListener("storage",this.onStorage),window.addEventListener("viking-theme-change",this.onThemeChange)}disconnectedCallback(){this.button?.removeEventListener("click",this.onClick),window.removeEventListener("storage",this.onStorage),window.removeEventListener("viking-theme-change",this.onThemeChange)}onThemeChange=()=>{this.syncIcons()};onClick=()=>{let t=Xt()==="light"?"dark":"light";Ge(t),this.syncIcons(),this.dispatchEvent(new CustomEvent("viking-theme-change",{bubbles:!0,composed:!0,detail:{theme:t}}))};syncIcons=()=>{let t=Xt()==="dark";this.sunIcon?.classList.toggle("is-visible",t),this.moonIcon?.classList.toggle("is-visible",!t)};render(){let t=this.getAttribute("aria-label")??"Toggle light and dark theme";this.shadow.innerHTML=`
|
|
1957
|
+
<button type="button" class="theme-toggle-btn" part="control" aria-label="${t}">
|
|
1433
1958
|
<svg class="theme-icon theme-icon-sun" width="20" height="20" viewBox="0 0 24 24" aria-hidden="true">
|
|
1434
1959
|
<circle cx="12" cy="12" r="4" fill="none" stroke="currentColor" stroke-width="2"/>
|
|
1435
1960
|
<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"/>
|
|
@@ -1438,7 +1963,7 @@ input:disabled {
|
|
|
1438
1963
|
<path fill="currentColor" d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/>
|
|
1439
1964
|
</svg>
|
|
1440
1965
|
</button>
|
|
1441
|
-
`,this.button=this.shadow.querySelector("button"),this.sunIcon=this.shadow.querySelector(".theme-icon-sun"),this.moonIcon=this.shadow.querySelector(".theme-icon-moon")}},
|
|
1966
|
+
`,this.button=this.shadow.querySelector("button"),this.sunIcon=this.shadow.querySelector(".theme-icon-sun"),this.moonIcon=this.shadow.querySelector(".theme-icon-moon")}},G=()=>{l(U.tag,U)};var Zt=new Set(["app","marketing","backend","docs"]),qe=`
|
|
1442
1967
|
:host {
|
|
1443
1968
|
display: block;
|
|
1444
1969
|
position: sticky;
|
|
@@ -1782,26 +2307,26 @@ viking-suite-command-palette {
|
|
|
1782
2307
|
display: none;
|
|
1783
2308
|
}
|
|
1784
2309
|
}
|
|
1785
|
-
`,
|
|
1786
|
-
<a class="suite-header__link" href="${
|
|
1787
|
-
${
|
|
1788
|
-
<span>${a
|
|
2310
|
+
`,Fe=()=>{let e=document.documentElement.getAttribute("data-deml-context");if(e&&Zt.has(e))return e;let t=window.location.hostname;return t.startsWith("ui.")?"docs":t.startsWith("backend.")?"backend":t.includes("deml.app")?"app":"marketing"},je=e=>{let t=e.getAttribute("context");return t&&Zt.has(t)?t:Fe()},Ye=e=>{let t=globalThis.__DEML??{};return{app:e.getAttribute("app-url")??t.app??b.app,marketing:e.getAttribute("marketing-url")??t.marketing??b.marketing,backend:e.getAttribute("backend-url")??t.backend??b.backend}},Xe=e=>{try{let t=new URL(e,window.location.origin);return t.origin===window.location.origin&&t.pathname===window.location.pathname}catch{return!1}},q=class extends c{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"}),u(this.shadow,qe)}connectedCallback(){G(),W(),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=t=>{t.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=t=>{let i=new CustomEvent("viking-sign-in",{bubbles:!0,cancelable:!0,composed:!0,detail:t});this.dispatchEvent(i),i.defaultPrevented&&t.preventDefault()};onSignOutClick=()=>{this.userMenuOpen=!1,this.menuOpen=!1,this.syncOpenState(),this.dispatchEvent(new CustomEvent("viking-sign-out",{bubbles:!0,composed:!0}))};syncOpenState(){let t=this.shadow.querySelector(".suite-header"),i=this.shadow.querySelector("[data-menu-toggle]"),r=this.shadow.querySelector(".suite-header__user"),a=this.shadow.querySelector("[data-user-toggle]");t?.setAttribute("data-menu-open",String(this.menuOpen)),i?.setAttribute("aria-expanded",String(this.menuOpen)),r?.setAttribute("data-open",String(this.userMenuOpen)),a?.setAttribute("aria-expanded",String(this.userMenuOpen))}renderNavLinks(t,i,r){return Gt(B,r).map(a=>{let o=K(a,t,i),s=Xe(o)?' aria-current="page"':"";return`
|
|
2311
|
+
<a class="suite-header__link" href="${n(o)}"${s}>
|
|
2312
|
+
${h(a.icon,16,"suite-header__link-icon")}
|
|
2313
|
+
<span>${n(a.label)}</span>
|
|
1789
2314
|
</a>
|
|
1790
|
-
`}).join("")}renderAuth(
|
|
1791
|
-
<a class="suite-header__auth-link" href="${
|
|
2315
|
+
`}).join("")}renderAuth(t,i,r=!1){if(!i){let s=this.getAttribute("sign-in-href")??`${t.app}/login`;return`
|
|
2316
|
+
<a class="suite-header__auth-link" href="${n(s)}" data-sign-in>
|
|
1792
2317
|
<span>Sign In</span>
|
|
1793
|
-
${
|
|
2318
|
+
${h("arrow-right",16,"suite-header__auth-icon")}
|
|
1794
2319
|
</a>
|
|
1795
|
-
`}if(
|
|
1796
|
-
<a class="suite-header__menu-link" href="${
|
|
1797
|
-
${
|
|
2320
|
+
`}if(r)return`
|
|
2321
|
+
<a class="suite-header__menu-link" href="${n(this.getDashboardHref(t))}">
|
|
2322
|
+
${h("home",16,"suite-header__menu-icon")}
|
|
1798
2323
|
<span>Dashboard</span>
|
|
1799
2324
|
</a>
|
|
1800
2325
|
<button class="suite-header__menu-button" type="button" data-sign-out>
|
|
1801
|
-
${
|
|
2326
|
+
${h("log-out",16,"suite-header__menu-icon")}
|
|
1802
2327
|
<span>Sign Out</span>
|
|
1803
2328
|
</button>
|
|
1804
|
-
`;let
|
|
2329
|
+
`;let a=this.getAttribute("user-name")??"Account",o=this.getAttribute("user-email")??"";return`
|
|
1805
2330
|
<div class="suite-header__user" data-open="${String(this.userMenuOpen)}">
|
|
1806
2331
|
<button
|
|
1807
2332
|
class="suite-header__user-trigger"
|
|
@@ -1811,38 +2336,38 @@ viking-suite-command-palette {
|
|
|
1811
2336
|
data-user-toggle
|
|
1812
2337
|
>
|
|
1813
2338
|
<span class="suite-header__avatar" aria-hidden="true">
|
|
1814
|
-
${
|
|
2339
|
+
${h("user",16,"suite-header__avatar-icon")}
|
|
1815
2340
|
</span>
|
|
1816
|
-
<span class="suite-header__user-text">${a
|
|
1817
|
-
${
|
|
2341
|
+
<span class="suite-header__user-text">${n(a)}</span>
|
|
2342
|
+
${h("chevron-down",16,"suite-header__chevron")}
|
|
1818
2343
|
</button>
|
|
1819
2344
|
<div class="suite-header__menu" role="menu">
|
|
1820
2345
|
<div class="suite-header__menu-label">
|
|
1821
|
-
<strong>${a
|
|
1822
|
-
${o?`<span>${
|
|
2346
|
+
<strong>${n(a)}</strong>
|
|
2347
|
+
${o?`<span>${n(o)}</span>`:""}
|
|
1823
2348
|
</div>
|
|
1824
|
-
<a class="suite-header__menu-link" role="menuitem" href="${
|
|
1825
|
-
${
|
|
2349
|
+
<a class="suite-header__menu-link" role="menuitem" href="${n(this.getDashboardHref(t))}">
|
|
2350
|
+
${h("home",16,"suite-header__menu-icon")}
|
|
1826
2351
|
<span>Dashboard</span>
|
|
1827
2352
|
</a>
|
|
1828
2353
|
<button class="suite-header__menu-button" type="button" role="menuitem" data-sign-out>
|
|
1829
|
-
${
|
|
2354
|
+
${h("log-out",16,"suite-header__menu-icon")}
|
|
1830
2355
|
<span>Sign Out</span>
|
|
1831
2356
|
</button>
|
|
1832
2357
|
</div>
|
|
1833
2358
|
</div>
|
|
1834
|
-
`}getDashboardHref(
|
|
2359
|
+
`}getDashboardHref(t){return this.getAttribute("dashboard-href")??`${t.app}/dashboard`}render(){let t=je(this),i=Ye(this),r=k(this,"authenticated"),a=this.renderNavLinks(t,i,r),o=gt(t,i),s=`${Z()}K`;this.shadow.innerHTML=`
|
|
1835
2360
|
<header class="suite-header" data-menu-open="${String(this.menuOpen)}">
|
|
1836
2361
|
<div class="suite-header__bar">
|
|
1837
|
-
<a class="suite-header__brand" href="${
|
|
2362
|
+
<a class="suite-header__brand" href="${n(o)}" aria-label="Data Engineering for Machine Learning home">
|
|
1838
2363
|
<span class="suite-header__mark" aria-hidden="true">
|
|
1839
|
-
${
|
|
2364
|
+
${h("drakkar",28,"suite-header__brand-icon")}
|
|
1840
2365
|
</span>
|
|
1841
2366
|
<span class="suite-header__lockup">DEML</span>
|
|
1842
2367
|
</a>
|
|
1843
2368
|
|
|
1844
2369
|
<nav class="suite-header__nav" aria-label="Main navigation">
|
|
1845
|
-
${
|
|
2370
|
+
${a}
|
|
1846
2371
|
</nav>
|
|
1847
2372
|
|
|
1848
2373
|
<div class="suite-header__actions">
|
|
@@ -1853,9 +2378,9 @@ viking-suite-command-palette {
|
|
|
1853
2378
|
title="Open command palette (${s})"
|
|
1854
2379
|
data-search-trigger
|
|
1855
2380
|
>
|
|
1856
|
-
${
|
|
2381
|
+
${h("search",18,"suite-header__action-icon")}
|
|
1857
2382
|
</button>
|
|
1858
|
-
${this.renderAuth(i,
|
|
2383
|
+
${this.renderAuth(i,r)}
|
|
1859
2384
|
<viking-theme-toggle-wc></viking-theme-toggle-wc>
|
|
1860
2385
|
<button
|
|
1861
2386
|
class="suite-header__menu-button"
|
|
@@ -1864,37 +2389,37 @@ viking-suite-command-palette {
|
|
|
1864
2389
|
aria-expanded="${String(this.menuOpen)}"
|
|
1865
2390
|
data-menu-toggle
|
|
1866
2391
|
>
|
|
1867
|
-
${
|
|
2392
|
+
${h(this.menuOpen?"x":"menu",18,"suite-header__action-icon")}
|
|
1868
2393
|
</button>
|
|
1869
2394
|
</div>
|
|
1870
2395
|
</div>
|
|
1871
2396
|
|
|
1872
2397
|
<nav class="suite-header__mobile" aria-label="Mobile navigation">
|
|
1873
|
-
${
|
|
1874
|
-
${this.renderAuth(i,
|
|
2398
|
+
${a}
|
|
2399
|
+
${this.renderAuth(i,r,!0)}
|
|
1875
2400
|
</nav>
|
|
1876
2401
|
</header>
|
|
1877
2402
|
<viking-suite-command-palette
|
|
1878
|
-
context="${
|
|
1879
|
-
app-url="${
|
|
1880
|
-
marketing-url="${
|
|
1881
|
-
backend-url="${
|
|
2403
|
+
context="${t}"
|
|
2404
|
+
app-url="${n(i.app)}"
|
|
2405
|
+
marketing-url="${n(i.marketing)}"
|
|
2406
|
+
backend-url="${n(i.backend)}"
|
|
1882
2407
|
global-shortcut
|
|
1883
2408
|
></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(
|
|
2409
|
+
`,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(v=>v.addEventListener("click",this.onSignInClick)),this.shadow.querySelectorAll("[data-sign-out]").forEach(v=>v.addEventListener("click",this.onSignOutClick))}},ut=()=>{l(q.tag,q)};var N=class extends c{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=_("viking-select");constructor(){super(),this.shadow=this.attachShadow({mode:"open"}),this.internals=Y(this),u(this.shadow,Rt)}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(t){if(this.isConnected){if(t==="value"&&this.selectEl){this.selectEl.value=this.getAttribute("value")??"",this.syncFormValue();return}if(t==="error"||t==="description"||t==="label"){this.render(),this.syncOptions();return}this.render(),this.syncOptions()}}get value(){return this.selectEl?.value??this.getAttribute("value")??""}set value(t){this.setAttribute("value",t),this.selectEl&&(this.selectEl.value=t),this.syncFormValue()}onChange=()=>{let t=this.selectEl?.value??"";this.setAttribute("value",t),this.syncFormValue(),this.dispatchEvent(new CustomEvent("viking-change",{bubbles:!0,composed:!0,detail:{value:t}}))};syncFormValue(){j(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 t=this.getAttribute("label")??"",i=this.getAttribute("name")??"",r=this.hasAttribute("disabled"),a=this.hasAttribute("required"),o=this.getAttribute("error")??"",s=this.getAttribute("description")??"",v=[s&&`${this.controlId}-desc`,o&&`${this.controlId}-error`].filter(Boolean).join(" ");this.shadow.innerHTML=`
|
|
1885
2410
|
<div class="viking-field" part="field">
|
|
1886
|
-
${
|
|
2411
|
+
${t?`<label class="viking-field-label" part="label" for="${this.controlId}">${n(t)}</label>`:""}
|
|
1887
2412
|
<select
|
|
1888
2413
|
id="${this.controlId}"
|
|
1889
2414
|
class="viking-select-native"
|
|
1890
2415
|
part="control"
|
|
1891
|
-
${i?`name="${
|
|
1892
|
-
${
|
|
1893
|
-
${
|
|
2416
|
+
${i?`name="${n(i)}"`:""}
|
|
2417
|
+
${r?"disabled":""}
|
|
2418
|
+
${a?"required":""}
|
|
1894
2419
|
${o?'aria-invalid="true"':""}
|
|
1895
|
-
${
|
|
2420
|
+
${v?`aria-describedby="${v}"`:""}
|
|
1896
2421
|
></select>
|
|
1897
|
-
${s?`<p id="${this.controlId}-desc" class="viking-field-description" part="description">${
|
|
1898
|
-
${o?`<p id="${this.controlId}-error" class="viking-field-error" part="error" role="alert">${
|
|
2422
|
+
${s?`<p id="${this.controlId}-desc" class="viking-field-description" part="description">${n(s)}</p>`:""}
|
|
2423
|
+
${o?`<p id="${this.controlId}-error" class="viking-field-error" part="error" role="alert">${n(o)}</p>`:""}
|
|
1899
2424
|
</div>
|
|
1900
|
-
`,this.selectEl=this.shadow.querySelector("select");let
|
|
2425
|
+
`,this.selectEl=this.shadow.querySelector("select");let g=this.getAttribute("value");this.selectEl&&g&&(this.selectEl.value=g),this.syncFormValue()}syncOptions(){if(!this.selectEl)return;let t=this.selectEl.value;this.selectEl.innerHTML="";let i=this.querySelectorAll("option");if(i.length===0){let a=this.getAttribute("placeholder")??"Select\u2026",o=document.createElement("option");o.value="",o.textContent=a,o.disabled=!0,o.selected=!this.getAttribute("value"),this.selectEl.append(o);return}i.forEach(a=>{this.selectEl?.append(a.cloneNode(!0))});let r=this.getAttribute("value");r?this.selectEl.value=r:t&&(this.selectEl.value=t),this.syncFormValue()}},pt=()=>{l(N.tag,N),d(N.legacyTag,N)};var _t=()=>{tt(),rt(),nt(),Q(),et(),it(),pt(),at(),P(),ot(),st(),ut(),W(),ht(),vt(),G()};typeof globalThis<"u"&&typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",_t):_t());return ne(Ze);})();
|