galaxy-charts 0.0.45 → 0.0.47
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/dist/galaxy-charts.js
CHANGED
|
@@ -85,9 +85,7 @@ async function ic(e, t) {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
function ac(e, t) {
|
|
88
|
-
|
|
89
|
-
const n = `${e}api/datasets/${t}/display`, r = window.location.origin || ((o = window.parent) == null ? void 0 : o.location.origin);
|
|
90
|
-
return r || console.warn("window unavailable."), `${r || ""}${n}`;
|
|
88
|
+
return `${e}api/datasets/${t}/display`;
|
|
91
89
|
}
|
|
92
90
|
const va = ["auto"], br = E({});
|
|
93
91
|
function t1() {
|
|
@@ -19478,7 +19476,7 @@ const Zy = {
|
|
|
19478
19476
|
{
|
|
19479
19477
|
container: t.container,
|
|
19480
19478
|
content: JSON.parse(JSON.stringify(L())),
|
|
19481
|
-
from: "galaxy-
|
|
19479
|
+
from: "galaxy-visualization"
|
|
19482
19480
|
},
|
|
19483
19481
|
"*"
|
|
19484
19482
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(We,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(We=typeof globalThis<"u"?globalThis:We||self,o(We.GalaxyCharts={},We.vue))})(this,function(We,o){"use strict";var Ii=document.createElement("style");Ii.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.z-10{z-index:10}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mr-1{margin-right:.25rem}.mt-0{margin-top:0}.mt-2{margin-top:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.\\!hidden{display:none!important}.hidden{display:none}.size-14{width:3.5rem;height:3.5rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.h-screen{height:100vh}.w-full{width:100%}.min-w-14{min-width:3.5rem}.max-w-14{max-width:3.5rem}.flex-1{flex:1 1 0%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-\\[70\\%_30\\%\\]{grid-template-columns:70% 30%}.justify-center{justify-content:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-dotted{border-style:dotted}.border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity))}.bg-sky-50{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-thin{font-weight:100}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-sky-900{--tw-text-opacity: 1;color:rgb(12 74 110 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 768px){.md\\:flex{display:flex}}
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(Ii);function Oi(e,t="Request failed."){let n=t;return e&&e.response&&e.response.data&&e.response.data.err_msg?n=e.response.data.err_msg:e&&e.data&&e.data.err_msg?n=e.data.err_msg:e&&e.response?n=`${e.response.statusText} (${e.response.status})`:e instanceof Error?n=e.message:typeof e=="string"&&(n=e),n}function $n(e){throw Error(Oi(e))}const Ai=o.ref("/"),Fi=o.ref("include");function Di(){function e(){return Fi.value}function t(i){Fi.value=i}function n(){return Ai.value}function r(i){Ai.value=i}return{getCredentials:e,setCredentials:t,getRoot:n,setRoot:r}}async function ir(e,t){const n=Di(),r=`${n.getRoot()}${e.substring(1)}`;try{const i=await fetch(r,{credentials:n.getCredentials(),headers:{"Content-Type":"application/json"},...t});if(i.ok)return{data:await i.json(),response:i};$n(i)}catch(i){$n(i)}}function en(){async function e(r){return ir(r,{method:"GET"})}async function t(r,i){return ir(r,{body:JSON.stringify(i),method:"POST"})}async function n(r,i){return ir(r,{body:JSON.stringify(i),method:"PUT"})}return{GET:e,POST:t,PUT:n}}async function Vs(e,t){const n=new URLSearchParams({data_type:"raw_data",provider:"dataset-column",indeces:t.toString()}).toString();try{const{data:r}=await en().GET(`/api/datasets/${e}?${n}`),i=t.length,a=new Array(i).fill(null).map(()=>[]);for(const l of r.data)for(const s in l){const d=Number(s),c=l[s];c!==void 0&&c!=2147483647&&d<i&&a[d].push(c)}return a}catch(r){$n(r)}}function Hs(e,t){var i;const n=`${e}api/datasets/${t}/display`,r=window.location.origin||((i=window.parent)==null?void 0:i.location.origin);return r||console.warn("window unavailable."),`${r||""}${n}`}const Vi=["auto"],Wn=o.ref({});function Ls(){function e(r,i){return r.every(a=>i.every(l=>typeof a[l]=="string"&&a[l].trim()!==""))}function t(r,i){const a=[];for(const l of r)for(const s of i){const d=l[s];d&&![...a,...Vi].includes(d)&&a.push(d)}return a}async function n(r,i,a){if(e(i,a)){Wn.value[r]=Wn.value[r]||{};const l=Object.keys(Wn.value[r]),s=t(i,a).filter(c=>!l.includes(c));if(s.length>0){const c=await Vs(r,s);if(c)for(const[f,u]of s.entries())Wn.value[r][u]=c[f]}const d=[];return i.forEach(c=>{const f={};a.forEach(u=>{const p=c[u];p&&!Vi.includes(p)&&(f[u]=Wn.value[r][p])}),d.push(f)}),d}else return[]}return{fetchColumns:n}}function Ns(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])}function Ws(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function Hi(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function js(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"})])}function Us(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"})])}function Gs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Li(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function Ks(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function qs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"})])}function Xs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}let mo=[];const Ni=new WeakMap;function Ys(){mo.forEach(e=>e(...Ni.get(e))),mo=[]}function Wi(e,...t){Ni.set(e,t),!mo.includes(e)&&mo.push(e)===1&&requestAnimationFrame(Ys)}function jn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function kn(e){return e.composedPath()[0]||null}function ot(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function tn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function dt(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}const ji={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function Ui(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function vo(e,t,n){t/=100,n/=100;const r=n-n*t/2,i=Math.min(r,1-r);return[e,i?(n-r)/i*100:0,r*100]}function Dt(e,t,n){t/=100,n/=100;let r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function ar(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),i=r-Math.min(e,t,n),a=i&&(r==e?(t-n)/i:r==t?2+(n-e)/i:4+(e-t)/i);return[60*(a<0?a+6:a),r&&i/r*100,r*100]}function lr(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),i=r-Math.min(e,t,n),a=1-Math.abs(r+r-i-1),l=i&&(r==e?(t-n)/i:r==t?2+(n-e)/i:4+(e-t)/i);return[60*(l<0?l+6:l),a?i/a*100:0,(r+r-i)*50]}function sr(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),i=(a,l=(a+e/30)%12)=>n-r*Math.max(Math.min(l-3,9-l,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}const wt="^\\s*",Ct="\\s*$",Vt="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",ct="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",nn="([0-9A-Fa-f])",on="([0-9A-Fa-f]{2})",Zs=new RegExp(`${wt}hsl\\s*\\(${ct},${Vt},${Vt}\\)${Ct}`),Js=new RegExp(`${wt}hsv\\s*\\(${ct},${Vt},${Vt}\\)${Ct}`),Qs=new RegExp(`${wt}hsla\\s*\\(${ct},${Vt},${Vt},${ct}\\)${Ct}`),ed=new RegExp(`${wt}hsva\\s*\\(${ct},${Vt},${Vt},${ct}\\)${Ct}`),td=new RegExp(`${wt}rgb\\s*\\(${ct},${ct},${ct}\\)${Ct}`),nd=new RegExp(`${wt}rgba\\s*\\(${ct},${ct},${ct},${ct}\\)${Ct}`),dr=new RegExp(`${wt}#${nn}${nn}${nn}${Ct}`),cr=new RegExp(`${wt}#${on}${on}${on}${Ct}`),ur=new RegExp(`${wt}#${nn}${nn}${nn}${nn}${Ct}`),fr=new RegExp(`${wt}#${on}${on}${on}${on}${Ct}`);function at(e){return parseInt(e,16)}function zn(e){try{let t;if(t=Qs.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=Zs.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function rn(e){try{let t;if(t=ed.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=Js.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Qe(e){try{let t;if(t=cr.exec(e))return[at(t[1]),at(t[2]),at(t[3]),1];if(t=td.exec(e))return[He(t[1]),He(t[5]),He(t[9]),1];if(t=nd.exec(e))return[He(t[1]),He(t[5]),He(t[9]),Rt(t[13])];if(t=dr.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),1];if(t=fr.exec(e))return[at(t[1]),at(t[2]),at(t[3]),Rt(at(t[4])/255)];if(t=ur.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),Rt(at(t[4]+t[4])/255)];if(e in ji)return Qe(ji[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function od(e){return e>1?1:e<0?0:e}function rd(e,t,n){return`rgb(${He(e)}, ${He(t)}, ${He(n)})`}function hr(e,t,n,r){return`rgba(${He(e)}, ${He(t)}, ${He(n)}, ${od(r)})`}function pr(e,t,n,r,i){return He((e*t*(1-r)+n*r)/i)}function ft(e,t){Array.isArray(e)||(e=Qe(e)),Array.isArray(t)||(t=Qe(t));const n=e[3],r=t[3],i=Rt(n+r-n*r);return hr(pr(e[0],n,t[0],r,i),pr(e[1],n,t[1],r,i),pr(e[2],n,t[2],r,i),i)}function me(e,t){const[n,r,i,a=1]=Array.isArray(e)?e:Qe(e);return t.alpha?hr(n,r,i,t.alpha):hr(n,r,i,a)}function xo(e,t){const[n,r,i,a=1]=Array.isArray(e)?e:Qe(e),{lightness:l=1,alpha:s=1}=t;return $t([n*l,r*l,i*l,a*s])}function Rt(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function St(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function He(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Ge(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function br(e){const[t,n,r]=Array.isArray(e)?e:Qe(e);return rd(t,n,r)}function $t(e){const[t,n,r]=e;return 3 in e?`rgba(${He(t)}, ${He(n)}, ${He(r)}, ${Rt(e[3])})`:`rgba(${He(t)}, ${He(n)}, ${He(r)}, 1)`}function gr(e){return`hsv(${St(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function an(e){const[t,n,r]=e;return 3 in e?`hsva(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, ${Rt(e[3])})`:`hsva(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, 1)`}function mr(e){return`hsl(${St(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function Ht(e){const[t,n,r]=e;return 3 in e?`hsla(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, ${Rt(e[3])})`:`hsla(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, 1)`}function Lt(e){if(typeof e=="string"){let r;if(r=cr.exec(e))return`${r[0]}FF`;if(r=fr.exec(e))return r[0];if(r=dr.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=ur.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>He(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":He(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function Un(e){if(typeof e=="string"){let t;if(t=cr.exec(e))return t[0];if(t=fr.exec(e))return t[0].slice(0,7);if(t=dr.exec(e)||ur.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>He(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function id(e=8){return Math.random().toString(16).slice(2,2+e)}function ad(e,t=[],n){const r={};return t.forEach(i=>{r[i]=e[i]}),Object.assign(r,n)}function ld(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(a=>{t.includes(a)||(r[a]=e[a])}),Object.assign(r,n)}function Tn(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(o.createTextVNode(String(r)));return}if(Array.isArray(r)){Tn(r,t,n);return}if(r.type===o.Fragment){if(r.children===null)return;Array.isArray(r.children)&&Tn(r.children,t,n)}else{if(r.type===o.Comment&&t)return;n.push(r)}}}),n}function ce(e,...t){if(Array.isArray(e))e.forEach(n=>ce(n,...t));else return e(...t)}function ln(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?o.createTextVNode(e):typeof e=="number"?o.createTextVNode(String(e)):null}const Gi=new Set;function tt(e,t){const n=`[naive/${e}]: ${t}`;Gi.has(n)||(Gi.add(n),console.error(n))}function Gn(e,t){console.error(`[naive/${e}]: ${t}`)}function vr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Ki(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function qi(e,t="default",n=void 0){const r=e[t];if(!r)return Gn("getFirstSlotVNode",`slot[${t}] is empty`),null;const i=Tn(r(n));return i.length===1?i[0]:(Gn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function cy(e){return e}function Kn(e){return e.some(t=>o.isVNode(t)?!(t.type===o.Comment||t.type===o.Fragment&&!Kn(t.children)):!0)?e:null}function mt(e,t){return e&&Kn(e())||t()}function sd(e,t,n){return e&&Kn(e(t))||n(t)}function Oe(e,t){const n=e&&Kn(e());return t(n||null)}function Pn(e){return!(e&&Kn(e()))}function xr(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}const yr=o.defineComponent({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),dd=/^(\d|\.)+$/,Xi=/(\d|\.)+/;function lt(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const i=(e+n)*t;return i===0?"0":`${i}px`}else if(typeof e=="string")if(dd.test(e)){const i=(Number(e)+n)*t;return r?i===0?"0":`${i}px`:`${i}`}else{const i=Xi.exec(e);return i?e.replace(Xi,String((Number(i[0])+n)*t)):e}return e}function yo(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function cd(e){const{left:t,right:n,top:r,bottom:i}=dt(e);return`${r} ${n} ${i} ${t}`}function ud(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Yi=/\s*,(?![^(]*\))\s*/g,fd=/\s+/g;function hd(e,t){const n=[];return t.split(Yi).forEach(r=>{let i=ud(r);if(i){if(i===1){e.forEach(l=>{n.push(r.replace("&",l))});return}}else{e.forEach(l=>{n.push((l&&l+" ")+r)});return}let a=[r];for(;i--;){const l=[];a.forEach(s=>{e.forEach(d=>{l.push(s.replace("&",d))})}),a=l}a.forEach(l=>n.push(l))}),n}function pd(e,t){const n=[];return t.split(Yi).forEach(r=>{e.forEach(i=>{n.push((i&&i+" ")+r)})}),n}function bd(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=hd(t,n):t=pd(t,n))}),t.join(", ").replace(fd," ")}function Zi(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function wo(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function gd(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Co(e){return e?/^\s*@(s|m)/.test(e):!1}const md=/[A-Z]/g;function Ji(e){return e.replace(md,t=>"-"+t.toLowerCase())}function vd(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(Ii);function Oi(e,t="Request failed."){let n=t;return e&&e.response&&e.response.data&&e.response.data.err_msg?n=e.response.data.err_msg:e&&e.data&&e.data.err_msg?n=e.data.err_msg:e&&e.response?n=`${e.response.statusText} (${e.response.status})`:e instanceof Error?n=e.message:typeof e=="string"&&(n=e),n}function $n(e){throw Error(Oi(e))}const Ai=o.ref("/"),Fi=o.ref("include");function Di(){function e(){return Fi.value}function t(i){Fi.value=i}function n(){return Ai.value}function r(i){Ai.value=i}return{getCredentials:e,setCredentials:t,getRoot:n,setRoot:r}}async function ir(e,t){const n=Di(),r=`${n.getRoot()}${e.substring(1)}`;try{const i=await fetch(r,{credentials:n.getCredentials(),headers:{"Content-Type":"application/json"},...t});if(i.ok)return{data:await i.json(),response:i};$n(i)}catch(i){$n(i)}}function en(){async function e(r){return ir(r,{method:"GET"})}async function t(r,i){return ir(r,{body:JSON.stringify(i),method:"POST"})}async function n(r,i){return ir(r,{body:JSON.stringify(i),method:"PUT"})}return{GET:e,POST:t,PUT:n}}async function Vs(e,t){const n=new URLSearchParams({data_type:"raw_data",provider:"dataset-column",indeces:t.toString()}).toString();try{const{data:r}=await en().GET(`/api/datasets/${e}?${n}`),i=t.length,a=new Array(i).fill(null).map(()=>[]);for(const l of r.data)for(const s in l){const d=Number(s),c=l[s];c!==void 0&&c!=2147483647&&d<i&&a[d].push(c)}return a}catch(r){$n(r)}}function Hs(e,t){return`${e}api/datasets/${t}/display`}const Vi=["auto"],Wn=o.ref({});function Ls(){function e(r,i){return r.every(a=>i.every(l=>typeof a[l]=="string"&&a[l].trim()!==""))}function t(r,i){const a=[];for(const l of r)for(const s of i){const d=l[s];d&&![...a,...Vi].includes(d)&&a.push(d)}return a}async function n(r,i,a){if(e(i,a)){Wn.value[r]=Wn.value[r]||{};const l=Object.keys(Wn.value[r]),s=t(i,a).filter(c=>!l.includes(c));if(s.length>0){const c=await Vs(r,s);if(c)for(const[f,u]of s.entries())Wn.value[r][u]=c[f]}const d=[];return i.forEach(c=>{const f={};a.forEach(u=>{const p=c[u];p&&!Vi.includes(p)&&(f[u]=Wn.value[r][p])}),d.push(f)}),d}else return[]}return{fetchColumns:n}}function Ns(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])}function Ws(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function Hi(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function js(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"})])}function Us(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5"})])}function Gs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function Li(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function Ks(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function qs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"})])}function Xs(e,t){return o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[o.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}let mo=[];const Ni=new WeakMap;function Ys(){mo.forEach(e=>e(...Ni.get(e))),mo=[]}function Wi(e,...t){Ni.set(e,t),!mo.includes(e)&&mo.push(e)===1&&requestAnimationFrame(Ys)}function jn(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function kn(e){return e.composedPath()[0]||null}function ot(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function tn(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function dt(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}const ji={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};function Ui(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function vo(e,t,n){t/=100,n/=100;const r=n-n*t/2,i=Math.min(r,1-r);return[e,i?(n-r)/i*100:0,r*100]}function Dt(e,t,n){t/=100,n/=100;let r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function ar(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),i=r-Math.min(e,t,n),a=i&&(r==e?(t-n)/i:r==t?2+(n-e)/i:4+(e-t)/i);return[60*(a<0?a+6:a),r&&i/r*100,r*100]}function lr(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),i=r-Math.min(e,t,n),a=1-Math.abs(r+r-i-1),l=i&&(r==e?(t-n)/i:r==t?2+(n-e)/i:4+(e-t)/i);return[60*(l<0?l+6:l),a?i/a*100:0,(r+r-i)*50]}function sr(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),i=(a,l=(a+e/30)%12)=>n-r*Math.max(Math.min(l-3,9-l,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}const wt="^\\s*",Ct="\\s*$",Vt="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",ct="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",nn="([0-9A-Fa-f])",on="([0-9A-Fa-f]{2})",Zs=new RegExp(`${wt}hsl\\s*\\(${ct},${Vt},${Vt}\\)${Ct}`),Js=new RegExp(`${wt}hsv\\s*\\(${ct},${Vt},${Vt}\\)${Ct}`),Qs=new RegExp(`${wt}hsla\\s*\\(${ct},${Vt},${Vt},${ct}\\)${Ct}`),ed=new RegExp(`${wt}hsva\\s*\\(${ct},${Vt},${Vt},${ct}\\)${Ct}`),td=new RegExp(`${wt}rgb\\s*\\(${ct},${ct},${ct}\\)${Ct}`),nd=new RegExp(`${wt}rgba\\s*\\(${ct},${ct},${ct},${ct}\\)${Ct}`),dr=new RegExp(`${wt}#${nn}${nn}${nn}${Ct}`),cr=new RegExp(`${wt}#${on}${on}${on}${Ct}`),ur=new RegExp(`${wt}#${nn}${nn}${nn}${nn}${Ct}`),fr=new RegExp(`${wt}#${on}${on}${on}${on}${Ct}`);function at(e){return parseInt(e,16)}function zn(e){try{let t;if(t=Qs.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=Zs.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function rn(e){try{let t;if(t=ed.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),Rt(t[13])];if(t=Js.exec(e))return[St(t[1]),Ge(t[5]),Ge(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Qe(e){try{let t;if(t=cr.exec(e))return[at(t[1]),at(t[2]),at(t[3]),1];if(t=td.exec(e))return[He(t[1]),He(t[5]),He(t[9]),1];if(t=nd.exec(e))return[He(t[1]),He(t[5]),He(t[9]),Rt(t[13])];if(t=dr.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),1];if(t=fr.exec(e))return[at(t[1]),at(t[2]),at(t[3]),Rt(at(t[4])/255)];if(t=ur.exec(e))return[at(t[1]+t[1]),at(t[2]+t[2]),at(t[3]+t[3]),Rt(at(t[4]+t[4])/255)];if(e in ji)return Qe(ji[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function od(e){return e>1?1:e<0?0:e}function rd(e,t,n){return`rgb(${He(e)}, ${He(t)}, ${He(n)})`}function hr(e,t,n,r){return`rgba(${He(e)}, ${He(t)}, ${He(n)}, ${od(r)})`}function pr(e,t,n,r,i){return He((e*t*(1-r)+n*r)/i)}function ft(e,t){Array.isArray(e)||(e=Qe(e)),Array.isArray(t)||(t=Qe(t));const n=e[3],r=t[3],i=Rt(n+r-n*r);return hr(pr(e[0],n,t[0],r,i),pr(e[1],n,t[1],r,i),pr(e[2],n,t[2],r,i),i)}function me(e,t){const[n,r,i,a=1]=Array.isArray(e)?e:Qe(e);return t.alpha?hr(n,r,i,t.alpha):hr(n,r,i,a)}function xo(e,t){const[n,r,i,a=1]=Array.isArray(e)?e:Qe(e),{lightness:l=1,alpha:s=1}=t;return $t([n*l,r*l,i*l,a*s])}function Rt(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function St(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function He(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Ge(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function br(e){const[t,n,r]=Array.isArray(e)?e:Qe(e);return rd(t,n,r)}function $t(e){const[t,n,r]=e;return 3 in e?`rgba(${He(t)}, ${He(n)}, ${He(r)}, ${Rt(e[3])})`:`rgba(${He(t)}, ${He(n)}, ${He(r)}, 1)`}function gr(e){return`hsv(${St(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function an(e){const[t,n,r]=e;return 3 in e?`hsva(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, ${Rt(e[3])})`:`hsva(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, 1)`}function mr(e){return`hsl(${St(e[0])}, ${Ge(e[1])}%, ${Ge(e[2])}%)`}function Ht(e){const[t,n,r]=e;return 3 in e?`hsla(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, ${Rt(e[3])})`:`hsla(${St(t)}, ${Ge(n)}%, ${Ge(r)}%, 1)`}function Lt(e){if(typeof e=="string"){let r;if(r=cr.exec(e))return`${r[0]}FF`;if(r=fr.exec(e))return r[0];if(r=dr.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=ur.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>He(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":He(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function Un(e){if(typeof e=="string"){let t;if(t=cr.exec(e))return t[0];if(t=fr.exec(e))return t[0].slice(0,7);if(t=dr.exec(e)||ur.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>He(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function id(e=8){return Math.random().toString(16).slice(2,2+e)}function ad(e,t=[],n){const r={};return t.forEach(i=>{r[i]=e[i]}),Object.assign(r,n)}function ld(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(a=>{t.includes(a)||(r[a]=e[a])}),Object.assign(r,n)}function Tn(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(o.createTextVNode(String(r)));return}if(Array.isArray(r)){Tn(r,t,n);return}if(r.type===o.Fragment){if(r.children===null)return;Array.isArray(r.children)&&Tn(r.children,t,n)}else{if(r.type===o.Comment&&t)return;n.push(r)}}}),n}function ce(e,...t){if(Array.isArray(e))e.forEach(n=>ce(n,...t));else return e(...t)}function ln(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?o.createTextVNode(e):typeof e=="number"?o.createTextVNode(String(e)):null}const Gi=new Set;function tt(e,t){const n=`[naive/${e}]: ${t}`;Gi.has(n)||(Gi.add(n),console.error(n))}function Gn(e,t){console.error(`[naive/${e}]: ${t}`)}function vr(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Ki(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function qi(e,t="default",n=void 0){const r=e[t];if(!r)return Gn("getFirstSlotVNode",`slot[${t}] is empty`),null;const i=Tn(r(n));return i.length===1?i[0]:(Gn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function cy(e){return e}function Kn(e){return e.some(t=>o.isVNode(t)?!(t.type===o.Comment||t.type===o.Fragment&&!Kn(t.children)):!0)?e:null}function mt(e,t){return e&&Kn(e())||t()}function sd(e,t,n){return e&&Kn(e(t))||n(t)}function Oe(e,t){const n=e&&Kn(e());return t(n||null)}function Pn(e){return!(e&&Kn(e()))}function xr(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}const yr=o.defineComponent({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),dd=/^(\d|\.)+$/,Xi=/(\d|\.)+/;function lt(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const i=(e+n)*t;return i===0?"0":`${i}px`}else if(typeof e=="string")if(dd.test(e)){const i=(Number(e)+n)*t;return r?i===0?"0":`${i}px`:`${i}`}else{const i=Xi.exec(e);return i?e.replace(Xi,String((Number(i[0])+n)*t)):e}return e}function yo(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}function cd(e){const{left:t,right:n,top:r,bottom:i}=dt(e);return`${r} ${n} ${i} ${t}`}function ud(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Yi=/\s*,(?![^(]*\))\s*/g,fd=/\s+/g;function hd(e,t){const n=[];return t.split(Yi).forEach(r=>{let i=ud(r);if(i){if(i===1){e.forEach(l=>{n.push(r.replace("&",l))});return}}else{e.forEach(l=>{n.push((l&&l+" ")+r)});return}let a=[r];for(;i--;){const l=[];a.forEach(s=>{e.forEach(d=>{l.push(s.replace("&",d))})}),a=l}a.forEach(l=>n.push(l))}),n}function pd(e,t){const n=[];return t.split(Yi).forEach(r=>{e.forEach(i=>{n.push((i&&i+" ")+r)})}),n}function bd(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=hd(t,n):t=pd(t,n))}),t.join(", ").replace(fd," ")}function Zi(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function wo(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function gd(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Co(e){return e?/^\s*@(s|m)/.test(e):!1}const md=/[A-Z]/g;function Ji(e){return e.replace(md,t=>"-"+t.toLowerCase())}function vd(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
3
3
|
`+Object.entries(e).map(n=>t+` ${Ji(n[0])}: ${n[1]};`).join(`
|
|
4
4
|
`)+`
|
|
5
5
|
`+t+"}":`: ${e};`}function xd(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Qi(e,t,n,r){if(!t)return"";const i=xd(t,n,r);if(!i)return"";if(typeof i=="string")return`${e} {
|
|
@@ -2065,4 +2065,4 @@ ${t}
|
|
|
2065
2065
|
border-top: 1px solid var(--n-tab-border-color);
|
|
2066
2066
|
`),y("tabs-pad",`
|
|
2067
2067
|
border-top: 1px solid var(--n-tab-border-color);
|
|
2068
|
-
`)])])])]),B0=Object.assign(Object.assign({},ye.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),_0=o.defineComponent({name:"Tabs",props:B0,setup(e,{slots:t}){var n,r,i,a;process.env.NODE_ENV!=="production"&&o.watchEffect(()=>{e.labelSize!==void 0&&tt("tabs","`label-size` is deprecated, please use `size` instead."),e.activeName!==void 0&&tt("tabs","`active-name` is deprecated, please use `value` instead."),e.onActiveNameChange!==void 0&&tt("tabs","`on-active-name-change` is deprecated, please use `on-update:value` instead.")});const{mergedClsPrefixRef:l,inlineThemeDisabled:s}=Ke(e),d=ye("Tabs","-tabs",R0,l0,e,l),c=o.ref(null),f=o.ref(null),u=o.ref(null),p=o.ref(null),m=o.ref(null),h=o.ref(null),v=o.ref(!0),w=o.ref(!0),g=To(e,["labelSize","size"]),P=To(e,["activeName","value"]),H=o.ref((r=(n=P.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(a=(i=Tn(t.default())[0])===null||i===void 0?void 0:i.props)===null||a===void 0?void 0:a.name:null),$=vt(P,H),k={id:0},M=o.computed(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});o.watch($,()=>{k.id=0,O(),V()});function b(){var _;const{value:F}=$;return F===null?null:(_=c.value)===null||_===void 0?void 0:_.querySelector(`[data-name="${F}"]`)}function S(_){if(e.type==="card")return;const{value:F}=f;if(!F)return;const K=F.style.opacity==="0";if(_){const z=`${l.value}-tabs-bar--disabled`,{barWidth:C,placement:B}=e;if(_.dataset.disabled==="true"?F.classList.add(z):F.classList.remove(z),["top","bottom"].includes(B)){if(D(["top","maxHeight","height"]),typeof C=="number"&&_.offsetWidth>=C){const oe=Math.floor((_.offsetWidth-C)/2)+_.offsetLeft;F.style.left=`${oe}px`,F.style.maxWidth=`${C}px`}else F.style.left=`${_.offsetLeft}px`,F.style.maxWidth=`${_.offsetWidth}px`;F.style.width="8192px",K&&(F.style.transition="none"),F.offsetWidth,K&&(F.style.transition="",F.style.opacity="1")}else{if(D(["left","maxWidth","width"]),typeof C=="number"&&_.offsetHeight>=C){const oe=Math.floor((_.offsetHeight-C)/2)+_.offsetTop;F.style.top=`${oe}px`,F.style.maxHeight=`${C}px`}else F.style.top=`${_.offsetTop}px`,F.style.maxHeight=`${_.offsetHeight}px`;F.style.height="8192px",K&&(F.style.transition="none"),F.offsetHeight,K&&(F.style.transition="",F.style.opacity="1")}}}function E(){if(e.type==="card")return;const{value:_}=f;_&&(_.style.opacity="0")}function D(_){const{value:F}=f;if(F)for(const K of _)F.style[K]=""}function O(){if(e.type==="card")return;const _=b();_?S(_):E()}function V(){var _;const F=(_=m.value)===null||_===void 0?void 0:_.$el;if(!F)return;const K=b();if(!K)return;const{scrollLeft:z,offsetWidth:C}=F,{offsetLeft:B,offsetWidth:oe}=K;z>B?F.scrollTo({top:0,left:B,behavior:"smooth"}):B+oe>z+C&&F.scrollTo({top:0,left:B+oe-C,behavior:"smooth"})}const j=o.ref(null);let Q=0,N=null;function Z(_){const F=j.value;if(F){Q=_.getBoundingClientRect().height;const K=`${Q}px`,z=()=>{F.style.height=K,F.style.maxHeight=K};N?(z(),N(),N=null):N=z}}function X(_){const F=j.value;if(F){const K=_.getBoundingClientRect().height,z=()=>{document.body.offsetHeight,F.style.maxHeight=`${K}px`,F.style.height=`${Math.max(Q,K)}px`};N?(N(),N=null,z()):N=z}}function Y(){const _=j.value;if(_){_.style.maxHeight="",_.style.height="";const{paneWrapperStyle:F}=e;if(typeof F=="string")_.style.cssText=F;else if(F){const{maxHeight:K,height:z}=F;K!==void 0&&(_.style.maxHeight=K),z!==void 0&&(_.style.height=z)}}}const de={value:[]},ie=o.ref("next");function ue(_){const F=$.value;let K="next";for(const z of de.value){if(z===F)break;if(z===_){K="prev";break}}ie.value=K,U(_)}function U(_){const{onActiveNameChange:F,onUpdateValue:K,"onUpdate:value":z}=e;F&&ce(F,_),K&&ce(K,_),z&&ce(z,_),H.value=_}function te(_){const{onClose:F}=e;F&&ce(F,_)}function ve(){const{value:_}=f;if(!_)return;const F="transition-disabled";_.classList.add(F),O(),_.classList.remove(F)}const we=o.ref(null);function re({transitionDisabled:_}){const F=c.value;if(!F)return;_&&F.classList.add("transition-disabled");const K=b();K&&we.value&&(we.value.style.width=`${K.offsetWidth}px`,we.value.style.height=`${K.offsetHeight}px`,we.value.style.transform=`translateX(${K.offsetLeft-ot(getComputedStyle(F).paddingLeft)}px)`,_&&we.value.offsetWidth),_&&F.classList.remove("transition-disabled")}o.watch([$],()=>{e.type==="segment"&&o.nextTick(()=>{re({transitionDisabled:!1})})}),o.onMounted(()=>{e.type==="segment"&&re({transitionDisabled:!0})});let Se=0;function Ce(_){var F;if(_.contentRect.width===0&&_.contentRect.height===0||Se===_.contentRect.width)return;Se=_.contentRect.width;const{type:K}=e;if((K==="line"||K==="bar")&&ve(),K!=="segment"){const{placement:z}=e;De((z==="top"||z==="bottom"?(F=m.value)===null||F===void 0?void 0:F.$el:h.value)||null)}}const le=ri(Ce,64);o.watch([()=>e.justifyContent,()=>e.size],()=>{o.nextTick(()=>{const{type:_}=e;(_==="line"||_==="bar")&&ve()})});const Me=o.ref(!1);function Re(_){var F;const{target:K,contentRect:{width:z}}=_,C=K.parentElement.offsetWidth;if(!Me.value)C<z&&(Me.value=!0);else{const{value:B}=p;if(!B)return;C-z>B.$el.offsetWidth&&(Me.value=!1)}De(((F=m.value)===null||F===void 0?void 0:F.$el)||null)}const Le=ri(Re,64);function Ie(){const{onAdd:_}=e;_&&_(),o.nextTick(()=>{const F=b(),{value:K}=m;!F||!K||K.scrollTo({left:F.offsetLeft,top:0,behavior:"smooth"})})}function De(_){if(!_)return;const{placement:F}=e;if(F==="top"||F==="bottom"){const{scrollLeft:K,scrollWidth:z,offsetWidth:C}=_;v.value=K<=0,w.value=K+C>=z}else{const{scrollTop:K,scrollHeight:z,offsetHeight:C}=_;v.value=K<=0,w.value=K+C>=z}}const Ue=ri(_=>{De(_.target)},64);o.provide(ki,{triggerRef:o.toRef(e,"trigger"),tabStyleRef:o.toRef(e,"tabStyle"),tabClassRef:o.toRef(e,"tabClass"),addTabStyleRef:o.toRef(e,"addTabStyle"),addTabClassRef:o.toRef(e,"addTabClass"),paneClassRef:o.toRef(e,"paneClass"),paneStyleRef:o.toRef(e,"paneStyle"),mergedClsPrefixRef:l,typeRef:o.toRef(e,"type"),closableRef:o.toRef(e,"closable"),valueRef:$,tabChangeIdRef:k,onBeforeLeaveRef:o.toRef(e,"onBeforeLeave"),activateTab:ue,handleClose:te,handleAdd:Ie}),ia(()=>{O(),V()}),o.watchEffect(()=>{const{value:_}=u;if(!_)return;const{value:F}=l,K=`${F}-tabs-nav-scroll-wrapper--shadow-start`,z=`${F}-tabs-nav-scroll-wrapper--shadow-end`;v.value?_.classList.remove(K):_.classList.add(K),w.value?_.classList.remove(z):_.classList.add(z)});const ke={syncBarPosition:()=>{O()}},q=()=>{re({transitionDisabled:!0})},A=o.computed(()=>{const{value:_}=g,{type:F}=e,K={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[F],z=`${_}${K}`,{self:{barColor:C,closeIconColor:B,closeIconColorHover:oe,closeIconColorPressed:xe,tabColor:ze,tabBorderColor:Ne,paneTextColor:Ae,tabFontWeight:_e,tabBorderRadius:qe,tabFontWeightActive:st,colorSegment:Je,fontWeightStrong:it,tabColorSegment:x,closeSize:L,closeIconSize:J,closeColorHover:ae,closeColorPressed:se,closeBorderRadius:fe,[ee("panePadding",_)]:he,[ee("tabPadding",z)]:ge,[ee("tabPaddingVertical",z)]:Te,[ee("tabGap",z)]:ut,[ee("tabGap",`${z}Vertical`)]:Yt,[ee("tabTextColor",F)]:wn,[ee("tabTextColorActive",F)]:Zt,[ee("tabTextColorHover",F)]:Jt,[ee("tabTextColorDisabled",F)]:po,[ee("tabFontSize",_)]:bo},common:{cubicBezierEaseInOut:Hn}}=d.value;return{"--n-bezier":Hn,"--n-color-segment":Je,"--n-bar-color":C,"--n-tab-font-size":bo,"--n-tab-text-color":wn,"--n-tab-text-color-active":Zt,"--n-tab-text-color-disabled":po,"--n-tab-text-color-hover":Jt,"--n-pane-text-color":Ae,"--n-tab-border-color":Ne,"--n-tab-border-radius":qe,"--n-close-size":L,"--n-close-icon-size":J,"--n-close-color-hover":ae,"--n-close-color-pressed":se,"--n-close-border-radius":fe,"--n-close-icon-color":B,"--n-close-icon-color-hover":oe,"--n-close-icon-color-pressed":xe,"--n-tab-color":ze,"--n-tab-font-weight":_e,"--n-tab-font-weight-active":st,"--n-tab-padding":ge,"--n-tab-padding-vertical":Te,"--n-tab-gap":ut,"--n-tab-gap-vertical":Yt,"--n-pane-padding-left":dt(he,"left"),"--n-pane-padding-right":dt(he,"right"),"--n-pane-padding-top":dt(he,"top"),"--n-pane-padding-bottom":dt(he,"bottom"),"--n-font-weight-strong":it,"--n-tab-color-segment":x}}),ne=s?et("tabs",o.computed(()=>`${g.value[0]}${e.type[0]}`),A,e):void 0;return Object.assign({mergedClsPrefix:l,mergedValue:$,renderedNames:new Set,segmentCapsuleElRef:we,tabsPaneWrapperRef:j,tabsElRef:c,barElRef:f,addTabInstRef:p,xScrollInstRef:m,scrollWrapperElRef:u,addTabFixed:Me,tabWrapperStyle:M,handleNavResize:le,mergedSize:g,handleScroll:Ue,handleTabsResize:Le,cssVars:s?void 0:A,themeClass:ne==null?void 0:ne.themeClass,animationDirection:ie,renderNameListRef:de,yScrollElRef:h,handleSegmentResize:q,onAnimationBeforeLeave:Z,onAnimationEnter:X,onAnimationAfterEnter:Y,onRender:ne==null?void 0:ne.onRender},ke)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:i,mergedSize:a,renderNameListRef:l,onRender:s,paneWrapperClass:d,paneWrapperStyle:c,$slots:{default:f,prefix:u,suffix:p}}=this;s==null||s();const m=f?Tn(f()).filter(k=>k.type.__TAB_PANE__===!0):[],h=f?Tn(f()).filter(k=>k.type.__TAB__===!0):[],v=!h.length,w=t==="card",g=t==="segment",P=!w&&!g&&this.justifyContent;l.value=[];const H=()=>{const k=o.h("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},P?null:o.h("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),v?m.map((M,b)=>(l.value.push(M.props.name),Ti(o.h(zi,Object.assign({},M.props,{internalCreatedByPane:!0,internalLeftPadded:b!==0&&(!P||P==="center"||P==="start"||P==="end")}),M.children?{default:M.children.tab}:void 0)))):h.map((M,b)=>(l.value.push(M.props.name),Ti(b!==0&&!P?Is(M):M))),!r&&i&&w?Ms(i,(v?m.length:h.length)!==0):null,P?null:o.h("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return o.h("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},w&&i?o.h(jt,{onResize:this.handleTabsResize},{default:()=>k}):k,w?o.h("div",{class:`${e}-tabs-pad`}):null,w?null:o.h("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},$=g?"top":n;return o.h("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,P&&`${e}-tabs--flex`,`${e}-tabs--${$}`],style:this.cssVars},o.h("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${$}`,`${e}-tabs-nav`]},Oe(u,k=>k&&o.h("div",{class:`${e}-tabs-nav__prefix`},k)),g?o.h(jt,{onResize:this.handleSegmentResize},{default:()=>o.h("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},o.h("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},o.h("div",{class:`${e}-tabs-wrapper`},o.h("div",{class:`${e}-tabs-tab`}))),v?m.map((k,M)=>(l.value.push(k.props.name),o.h(zi,Object.assign({},k.props,{internalCreatedByPane:!0,internalLeftPadded:M!==0}),k.children?{default:k.children.tab}:void 0))):h.map((k,M)=>(l.value.push(k.props.name),M===0?k:Is(k))))}):o.h(jt,{onResize:this.handleNavResize},{default:()=>o.h("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes($)?o.h(Oc,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:H}):o.h("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},H()))}),r&&i&&w?Ms(i,!0):null,Oe(p,k=>k&&o.h("div",{class:`${e}-tabs-nav__suffix`},k))),v&&(this.animated&&($==="top"||$==="bottom")?o.h("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,d]},Es(m,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Es(m,this.mergedValue,this.renderedNames)))}});function Es(e,t,n,r,i,a,l){const s=[];return e.forEach(d=>{const{name:c,displayDirective:f,"display-directive":u}=d.props,p=h=>f===h||u===h,m=t===c;if(d.key!==void 0&&(d.key=c),m||p("show")||p("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const h=!p("if");s.push(h?o.withDirectives(d,[[o.vShow,m]]):d)}}),l?o.h(o.TransitionGroup,{name:`${l}-transition`,onBeforeLeave:r,onEnter:i,onAfterEnter:a},{default:()=>s}):s}function Ms(e,t){return o.h(zi,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function Is(e){const t=o.cloneVNode(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Ti(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}async function Os(e,t,n){try{const{data:r}=await en().POST("/api/visualizations",{type:e,title:t,config:n});return r.id}catch(r){$n(r)}}async function E0(e,t,n,r){try{if(t)await As(t,n,r);else return await Os(e,n,r)}catch(i){$n(i)}}async function As(e,t,n){try{await en().PUT(`/api/visualizations/${e}`,{title:t,config:n})}catch(r){$n(r)}}function Fs(e){const t={};return e&&e.forEach(n=>{n.name?t[n.name]=n.value??null:console.debug("Warning: Detected input element with no name.")}),t}const M0={key:2,class:"border border-dotted border-green-600 rounded mt-2 p-2"},I0=o.defineComponent({__name:"InputConditional",props:o.mergeModels({datasetId:{},input:{}},{value:{},valueModifiers:{}}),emits:o.mergeModels(["update:value"],["update:value"]),setup(e,{emit:t}){const n=e,r=t;if(!n.input.test_param)throw`The conditional '${n.input.name}' is missing a test parameter.`;if(!n.input.cases||n.input.cases.length===0)throw`The conditional '${n.input.name}' is missing a cases.`;const i=o.ref(n.input.test_param),a=i.value.name;a||console.error(`Test parameter has no name: ${n.input.name}.`);const l=o.useModel(e,"value");(!l.value||!(a in l.value))&&console.error(`Test parameter of conditional not available: ${n.input.name}.`,l.value);const s=o.ref(p()),d=o.computed(()=>{const h={};if(n.input.cases&&n.input.cases.length>0)for(const v of n.input.cases)h[v.value]=Fs(v.inputs),h[v.value][a]=v.value;return h}),c=o.computed(()=>{const h={};if(n.input.cases&&n.input.cases.length>0)for(const v of n.input.cases)h[v.value]=v.inputs;return h}),f=o.computed(()=>c.value[s.value]),u=o.computed({get(){return s.value==="true"},set(h){s.value=String(h)}});function p(){return l.value&&l.value[a]}function m(h){let v={...d.value[s.value]};if(h){const w={};f.value.forEach(g=>{w[g.name]=h[g.name]}),v={...v,...h}}r("update:value",v)}return o.watch(()=>l.value,()=>{s.value=p()}),o.watch(()=>s.value,()=>{m()}),(h,v)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[i.value.type==="boolean"?(o.openBlock(),o.createBlock(o.unref(Rs),{key:0,value:u.value,"onUpdate:value":v[0]||(v[0]=w=>u.value=w)},null,8,["value"])):(o.openBlock(),o.createBlock(o.unref(rr),{key:1,value:s.value,"onUpdate:value":v[1]||(v[1]=w=>s.value=w),options:i.value.data},null,8,["value","options"])),f.value?(o.openBlock(),o.createElementBlock("div",M0,[o.createVNode(Pi,{"dataset-id":h.datasetId,inputs:f.value,values:l.value,"onUpdate:values":m},null,8,["dataset-id","inputs","values"])])):o.createCommentVNode("",!0)],64))}}),O0={key:0,class:"mb-1"},A0={key:1,class:"text-red-600 mb-1"},F0=o.createElementVNode("span",null,"Please select a dataset.",-1),D0=100,V0=o.defineComponent({__name:"InputData",props:o.mergeModels({extension:{},optional:{type:Boolean}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=e,n=o.ref([]),r=o.useModel(e,"value"),i=o.ref(!1),a=o.ref(null);async function l(d){i.value=!0;try{const c=t.extension?`q=extension-eq&qv=${t.extension}`:"",f=d?`q=name-contains&qv=${d}`:"",{data:u}=await en().GET(`/api/datasets?limit=${D0}&${c}&${f}`);if(u&&u.length>0){const p=u.map(m=>({label:m.name,value:{id:m.id,name:m.name}}));p.push({label:"...filter for more",value:null,disabled:!0}),t.optional&&p.unshift({label:"-- Clear Selection --",value:null}),n.value=p}}catch(c){console.log(c)}finally{i.value=!1}}function s(){r.value=a.value,a.value=null}return l(),(d,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[r.value?(o.openBlock(),o.createElementBlock("div",O0,[o.createVNode(o.unref(yt),{class:"size-3 mr-1"},{default:o.withCtx(()=>[o.createVNode(o.unref(Hi))]),_:1}),o.createElementVNode("span",null,"Selected: "+o.toDisplayString(r.value.name),1)])):d.optional?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",A0,[o.createVNode(o.unref(yt),{class:"size-3 mr-1"},{default:o.withCtx(()=>[o.createVNode(o.unref(Li))]),_:1}),F0])),o.createVNode(o.unref(rr),{value:a.value,"onUpdate:value":[c[0]||(c[0]=f=>a.value=f),s],filterable:"",placeholder:"Select a Dataset",loading:i.value,options:n.value,onSearch:l},null,8,["value","loading","options"])],64))}});function H0(e,t,n,r){const i=[];t&&i.push({label:"Column: Default",value:"auto"});const a=e.metadata_column_types;for(const l in a)(r&&["int","float"].includes(a[l])||n&&a[l]==="str"||!r&&!n)&&i.push({label:"Column: "+(parseInt(l)+1),value:l});return i}const L0=o.defineComponent({__name:"InputDataColumn",props:o.mergeModels({datasetId:{},isAuto:{type:Boolean},isText:{type:Boolean},isNumber:{type:Boolean}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=e,n=o.ref([]),r=o.useModel(e,"value");async function i(){if(t.datasetId)try{const{data:l}=await en().GET(`/api/datasets/${t.datasetId}`),s=H0(l,t.isAuto,t.isText,t.isNumber);n.value=s,a()}catch(l){console.log(l)}else console.log("Data column selector disabled, since `datasetId` is unavailable.")}function a(){n.value.length>0&&r.value===null&&(r.value=n.value[0].value)}return i(),o.watch(()=>r.value,()=>a()),(l,s)=>l.datasetId?(o.openBlock(),o.createBlock(o.unref(rr),{key:0,value:r.value,"onUpdate:value":s[0]||(s[0]=d=>r.value=d),options:n.value},null,8,["value","options"])):(o.openBlock(),o.createBlock(o.unref(Dn),{key:1,value:r.value,"onUpdate:value":s[1]||(s[1]=d=>r.value=d)},null,8,["value"]))}});function ho(e){return String(e).toLowerCase()==="true"}const N0={class:"overflow-auto select-none"},W0={class:"font-bold pb-1"},j0={key:0,class:"text-xs pb-1"},U0={key:5},Ds=.01,Pi=o.defineComponent({__name:"InputForm",props:{datasetId:{},inputs:{},values:{}},emits:["update:values"],setup(e,{emit:t}){const n=e,r=t,i=o.ref(a());function a(){const s={...n.values};return n.inputs.forEach(d=>{s[d.name]===void 0&&(s[d.name]=null)}),s}function l(){r("update:values",i.value)}return o.watch(()=>n.values,()=>{i.value=a()}),(s,d)=>(o.openBlock(),o.createElementBlock("div",N0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.inputs,(c,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"pb-2"},[o.createElementVNode("div",W0,o.toDisplayString(c.label||c.name),1),c.help?(o.openBlock(),o.createElementBlock("div",j0,o.toDisplayString(c.help),1)):o.createCommentVNode("",!0),o.createElementVNode("div",null,[c.type==="boolean"?(o.openBlock(),o.createBlock(o.unref(Rs),{key:0,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[0]||(d[0]=u=>l())]},null,8,["value","onUpdate:value"])):c.type==="color"?(o.openBlock(),o.createBlock(o.unref(Dv),{key:1,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[1]||(d[1]=u=>l())],modes:["hex"],"show-alpha":!1},null,8,["value","onUpdate:value"])):c.type==="conditional"?(o.openBlock(),o.createBlock(I0,{key:2,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[2]||(d[2]=u=>l())],"dataset-id":s.datasetId,input:c},null,8,["value","onUpdate:value","dataset-id","input"])):c.type==="data"?(o.openBlock(),o.createBlock(V0,{key:3,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[3]||(d[3]=u=>l())],extension:c.extension,optional:o.unref(ho)(c.optional)},null,8,["value","onUpdate:value","extension","optional"])):c.type==="data_column"?(o.openBlock(),o.createBlock(L0,{key:4,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[4]||(d[4]=u=>l())],"dataset-id":s.datasetId,"is-auto":o.unref(ho)(c.is_auto),"is-text":o.unref(ho)(c.is_text),"is-number":o.unref(ho)(c.is_number)},null,8,["value","onUpdate:value","dataset-id","is-auto","is-text","is-number"])):c.type==="float"?(o.openBlock(),o.createElementBlock("div",U0,[c.min!==void 0&&c.max!==void 0?(o.openBlock(),o.createBlock(o.unref(k0),{key:0,class:"mb-2",value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[5]||(d[5]=u=>l())],min:Number(c.min),max:Number(c.max),step:Ds},null,8,["value","onUpdate:value","min","max"])):o.createCommentVNode("",!0),o.createVNode(o.unref(w0),{value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[6]||(d[6]=u=>l())],size:"small",min:Number(c.min),max:Number(c.max),step:Ds},null,8,["value","onUpdate:value","min","max"])])):c.type==="select"?(o.openBlock(),o.createBlock(o.unref(rr),{key:6,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[7]||(d[7]=u=>l())],options:c.data},null,8,["value","onUpdate:value","options"])):c.type==="textarea"?(o.openBlock(),o.createBlock(o.unref(Dn),{key:7,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[8]||(d[8]=u=>l())],rows:Number(c.rows),type:"textarea"},null,8,["value","onUpdate:value","rows"])):(o.openBlock(),o.createBlock(o.unref(Dn),{key:8,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[9]||(d[9]=u=>l())]},null,8,["value","onUpdate:value"]))])]))),128))]))}}),G0=o.createElementVNode("span",{class:"mx-1"},"Add New Track",-1),K0={class:"border border-dotted border-green-600 rounded p-2"},q0={class:"flex text-green-600 my-1"},X0={class:"mx-1"},Y0=o.defineComponent({__name:"InputRepeats",props:{datasetId:{},inputs:{},valuesArray:{}},emits:["update:values-array"],setup(e,{emit:t}){const n=e,r=t,i=o.computed(()=>Fs(n.inputs));function a(){const d=[...n.valuesArray];d.unshift(i.value),r("update:values-array",d)}function l(d){const c=[...n.valuesArray];c.splice(d,1),r("update:values-array",c)}function s(d,c){const f=[...n.valuesArray];f[d]={...c},r("update:values-array",f)}return(d,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(o.unref(It),{size:"tiny",type:"primary",class:"mb-2",onClick:a},{default:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Ks))]),_:1}),G0]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.valuesArray,(f,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"my-2"},[o.createElementVNode("div",K0,[o.createVNode(Pi,{"dataset-id":d.datasetId,inputs:d.inputs,values:f,"onUpdate:values":p=>s(u,p)},null,8,["dataset-id","inputs","values","onUpdate:values"]),o.createElementVNode("div",q0,[o.createVNode(o.unref(It),{class:"text-green-600 w-full",size:"tiny",round:"",disabled:d.valuesArray.length<=1,onClick:p=>l(u)},{default:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Xs))]),_:1}),o.createElementVNode("span",X0,"Remove Track "+o.toDisplayString(d.valuesArray.length-u),1)]),_:2},1032,["disabled","onClick"])])])]))),128))],64))}}),Z0=2e3,J0=o.defineComponent({__name:"AlertNotify",props:{message:{},messageType:{default:"info"}},emits:["timeout"],setup(e,{emit:t}){const n=e,r=t;let i=null;return o.watch(()=>n.message,()=>{i&&clearTimeout(i),i=setTimeout(()=>r("timeout"),Z0)}),(a,l)=>a.message?(o.openBlock(),o.createBlock(o.unref(vi),{key:0,type:a.messageType,class:"m-4"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(a.message),1)]),_:1},8,["type"])):o.createCommentVNode("",!0)}}),Q0={class:"text-xs"},ex=o.createElementVNode("span",{class:"text-xs"},"Galaxy is not accessible!",-1),tx=o.defineComponent({__name:"ApiStatus",setup(e){const t=o.ref("...");async function n(){try{const{data:r}=await en().GET("/api/version");t.value=r.version_major}catch{console.log("Unable to connect to Galaxy. Verify Galaxy is running and refer to docs."),t.value=""}}return n(),(r,i)=>t.value?(o.openBlock(),o.createBlock(o.unref(Cs),{key:0,class:"mx-1",trigger:"hover"},{trigger:o.withCtx(()=>[o.createVNode(o.unref(yt),{class:"mx-1"},{default:o.withCtx(()=>[o.createVNode(o.unref(Hi),{class:"text-green-600"})]),_:1})]),default:o.withCtx(()=>[o.createElementVNode("span",Q0,"Connected to Galaxy Version "+o.toDisplayString(t.value)+".",1)]),_:1})):(o.openBlock(),o.createBlock(o.unref(Cs),{key:1,class:"mx-1",trigger:"hover"},{trigger:o.withCtx(()=>[o.createVNode(o.unref(yt),{class:"mx-1"},{default:o.withCtx(()=>[o.createVNode(o.unref(Li),{class:"text-red-600"})]),_:1})]),default:o.withCtx(()=>[ex]),_:1}))}}),nx={class:"overflow-auto select-none bg-white z-10"},ox={class:"flex p-2"},rx={class:"flex-1 font-thin text-lg p-1 p-2"},ix=o.createElementVNode("span",null,"Charts",-1),ax={key:0},lx={class:"m-4 mt-0 p-2 bg-sky-50 text-sky-900 rounded"},sx={class:"md:flex"},dx={class:"flex justify-center center-items"},cx={class:"m-2"},ux=["src"],fx={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 100 100",class:"size-14"},hx=[o.createElementVNode("circle",{cx:"50",cy:"50",r:"45",stroke:"#E30A17","stroke-width":"5"},null,-1),o.createElementVNode("path",{d:"M 50,5 A 45,45 0 0,1 95,50 L 50,50 Z",fill:"#E30A17"},null,-1)],px={class:"overflow-hidden break-words p-1"},bx={class:"font-bold"},gx=["innerHTML"],mx={class:"px-4 pb-2"},vx=o.createElementVNode("div",{class:"font-bold"},"Title",-1),xx=o.createElementVNode("div",{class:"text-xs py-1"},"Specify a visualization title.",-1),yx=o.createElementVNode("span",{class:"mx-1"},"Tracks",-1),wx=o.createElementVNode("span",{class:"mx-1"},"Settings",-1),Cx=o.defineComponent({__name:"SidePanel",props:{datasetId:{},description:{},logoUrl:{},html:{},name:{},settingInputs:{},settingValues:{},trackInputs:{},trackValues:{},visualizationId:{},visualizationTitle:{}},emits:["update:tracks","update:settings","update:visualization-id","update:visualization-title","toggle"],setup(e,{emit:t}){const n=e,r=t,i=o.ref(""),a=o.ref("info"),l=o.computed(()=>n.settingInputs.length===0||n.trackInputs.length===0);async function s(){try{if(n.visualizationId)await As(n.visualizationId,n.visualizationTitle,{dataset_id:n.datasetId,settings:n.settingValues,tracks:n.trackValues}),i.value="Successfully saved.",a.value="success";else{const u=await Os(n.name,n.visualizationTitle,{dataset_id:n.datasetId,settings:n.settingValues,tracks:n.trackValues});u?(i.value="Successfully created.",a.value="success",r("update:visualization-id",u)):(i.value="Something went wrong.",a.value="error")}}catch(u){i.value=Oi(u),a.value="error"}}function d(u){r("update:settings",u)}function c(u){r("update:tracks",u)}function f(u){r("update:visualization-title",u)}return(u,p)=>(o.openBlock(),o.createElementBlock("div",nx,[o.createElementVNode("div",ox,[o.createElementVNode("div",rx,[ix,o.createVNode(tx)]),u.datasetId?(o.openBlock(),o.createElementBlock("div",ax,[o.createVNode(o.unref(It),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-1",onClick:s},{icon:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Gs))]),_:1})]),_:1}),o.createVNode(o.unref(It),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-1",onClick:p[0]||(p[0]=m=>r("toggle"))},{icon:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Us))]),_:1})]),_:1})])):o.createCommentVNode("",!0)]),o.createVNode(J0,{message:i.value,"message-type":a.value,onTimeout:p[1]||(p[1]=m=>i.value=""),class:"m-4"},null,8,["message","message-type"]),o.createElementVNode("div",lx,[o.createElementVNode("div",sx,[o.createElementVNode("div",dx,[o.createElementVNode("div",cx,[n.logoUrl?(o.openBlock(),o.createElementBlock("img",{key:0,src:n.logoUrl,class:"min-w-14 max-w-14 object-contain"},null,8,ux)):(o.openBlock(),o.createElementBlock("svg",fx,hx))])]),o.createElementVNode("div",px,[o.createElementVNode("span",bx,o.toDisplayString(u.html),1),o.createElementVNode("div",{class:"text-xs",innerHTML:u.description},null,8,gx)])])]),o.createElementVNode("div",mx,[vx,xx,o.createVNode(o.unref(Dn),{value:u.visualizationTitle,onInput:f},null,8,["value"])]),o.createVNode(o.unref(_0),{type:"line",animated:"",class:"px-4","tab-class":l.value?"!hidden":""},{default:o.withCtx(()=>[u.trackInputs.length>0?(o.openBlock(),o.createBlock(o.unref(_s),{key:0,name:"tracks"},{tab:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(qs))]),_:1}),yx]),default:o.withCtx(()=>[o.createVNode(Y0,{"dataset-id":u.datasetId,inputs:u.trackInputs,"values-array":u.trackValues,"onUpdate:valuesArray":c},null,8,["dataset-id","inputs","values-array"])]),_:1})):o.createCommentVNode("",!0),u.settingInputs.length>0?(o.openBlock(),o.createBlock(o.unref(_s),{key:1,name:"settings"},{tab:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Ns))]),_:1}),wx]),default:o.withCtx(()=>[o.createVNode(Pi,{"dataset-id":u.datasetId,inputs:u.settingInputs,values:u.settingValues,"onUpdate:values":d},null,8,["dataset-id","inputs","values"])]),_:1})):o.createCommentVNode("",!0)]),_:1},8,["tab-class"])]))}});async function Sx(e,t={}){const n=Ri(e.settings,t.settings),r=e.specs,i=zx(e.tracks,t.tracks);return{plugin:e,settings:n,specs:r,tracks:i}}function $x(e,t){let n=t??e.value;return e.type==="float"?n=Number(n):e.type==="boolean"&&(n=ho(n)),n}function kx(e,t={}){var i,a,l;const n=t,r=(i=e.test_param)==null?void 0:i.name;if(!r)console.error(`Test parameter has no name: ${e.name}.`);else{const s=n[r]??((a=e.test_param)==null?void 0:a.value);for(const d of e.cases||[])d.value===s&&(n[r]=s,(l=d.inputs)!=null&&l.length&&Ri(d.inputs,n))}return n}function Ri(e,t){const n=t||{};return e==null||e.forEach(r=>{r.type==="conditional"?n[r.name]=kx(r,n[r.name]):n[r.name]=$x(r,n[r.name])}),n}function zx(e,t){const n=t||[];return e&&(n.length===0&&n.push({}),n.forEach((r,i)=>{n[i]=Ri(e,r)})),n}function Tx(e,t="app"){if(e===void 0){const s=document.getElementById(t);if(!s)throw new Error(`Container element '${t}' not found.`);e=JSON.parse((s==null?void 0:s.getAttribute("data-incoming"))||"{}")}const n=(e==null?void 0:e.root)??"/",r=(e==null?void 0:e.visualization_config)??{},i=(e==null?void 0:e.visualization_id)??null,a=(e==null?void 0:e.visualization_plugin)??{},l=(e==null?void 0:e.visualization_title)??"Unnamed Visualization";return{root:n,visualizationConfig:r,visualizationId:i,visualizationPlugin:a,visualizationTitle:l}}const Px={key:2,class:"m-2"},Rx=o.createElementVNode("span",{class:"text-xs"},"Please wait...",-1),Bx={key:1},_x=o.defineComponent({__name:"GalaxyCharts",props:{container:{},credentials:{},incoming:{}},setup(e){const t=e,{root:n,visualizationConfig:r,visualizationId:i,visualizationPlugin:a,visualizationTitle:l}=Tx(t.incoming,t.container),s=o.ref(!1),d=o.ref(""),c=o.ref(""),f=o.ref(""),u=o.ref(!0),p=o.ref(""),m=o.ref(""),h=o.ref([]),v=o.ref({}),w=o.ref({}),g=o.ref([]),P=o.ref([]),H=o.ref(i),$=o.ref(l),k=Di();k.setCredentials(t.credentials||"include"),k.setRoot(n||"/"),Sx(a,r).then(({plugin:Y,settings:de,specs:ie,tracks:ue})=>{d.value=Y.description||"",f.value=Y.html||"",u.value=!1,p.value=Y.logo||"",m.value=Y.name||"",h.value=Y.settings||[],v.value=de,w.value=ie||{},g.value=Y.tracks||[],P.value=ue});const M=o.computed(()=>r.dataset_id||""),b=o.computed(()=>r.dataset_url?(console.debug(`GalaxyCharts: Evaluating dataset url: ${r.dataset_url}.`),r.dataset_url):M.value?(console.debug(`GalaxyCharts: Built dataset url from dataset id: ${M.value}.`),Hs(n,M.value)):null),S=o.computed(()=>p.value&&`${n}${p.value}`),E=o.computed(()=>h.value.length===0&&g.value.length===0);async function D(){s.value=!s.value,await o.nextTick(),window?window.dispatchEvent(new Event("resize")):console.warn("window unavailable.")}function O(){try{window.postMessage({container:t.container,content:JSON.parse(JSON.stringify(V())),from:"galaxy-charts"},"*")}catch(Y){c.value=`Failed to postMessage: ${Y}`}}function V(){return{dataset_id:M.value,settings:v.value,tracks:P.value}}function j(Y){v.value={...Y},O()}function Q(Y){P.value=[...Y],O()}function N(Y){H.value=Y}function Z(Y){$.value=Y}async function X(Y){j({...v.value,...Y});try{const de=await E0(m.value,i,l,V());de&&N(de)}catch(de){c.value=`Failed to save: ${de}.`}}return(Y,de)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[c.value?(o.openBlock(),o.createBlock(o.unref(vi),{key:0,type:"error",class:"m-2"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(c.value),1)]),_:1})):o.createCommentVNode("",!0),b.value?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(vi),{key:1,type:"info",class:"m-2"},{default:o.withCtx(()=>[o.createTextVNode(" Only displaying available visualization inputs. Rendering requires `dataset_id` or `dataset_url`. ")]),_:1})),u.value?(o.openBlock(),o.createElementBlock("div",Px,[o.createElementVNode("span",null,[o.createVNode(o.unref(Ws),{class:"animate-spin size-4 inline mx-1"})]),Rx])):(o.openBlock(),o.createElementBlock("div",{key:3,class:o.normalizeClass(["grid h-screen",{"grid-cols-[70%_30%]":!s.value&&b.value&&!E.value}])},[b.value?o.renderSlot(Y.$slots,"default",{key:0,datasetId:M.value,datasetUrl:b.value,root:o.unref(n),settings:v.value,specs:w.value,tracks:P.value,save:X}):o.createCommentVNode("",!0),s.value&&b.value&&!E.value?(o.openBlock(),o.createElementBlock("div",Bx,[o.createVNode(o.unref(g0),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-2",top:0,right:0,onClick:D},{default:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(js))]),_:1})]),_:1})])):E.value?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(Cx,{key:2,"dataset-id":M.value,description:d.value,html:f.value,"logo-url":S.value,name:m.value,"setting-inputs":h.value,"setting-values":v.value,"track-inputs":g.value,"track-values":P.value,"visualization-id":H.value,"visualization-title":$.value,"onUpdate:settings":j,"onUpdate:tracks":Q,"onUpdate:visualizationId":N,"onUpdate:visualizationTitle":Z,onToggle:D},null,8,["dataset-id","description","html","logo-url","name","setting-inputs","setting-values","track-inputs","track-values","visualization-id","visualization-title"]))],2))],64))}});We.GalaxyApi=en,We.GalaxyCharts=_x,We.useColumnsStore=Ls,Object.defineProperty(We,Symbol.toStringTag,{value:"Module"})});
|
|
2068
|
+
`)])])])]),B0=Object.assign(Object.assign({},ye.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),_0=o.defineComponent({name:"Tabs",props:B0,setup(e,{slots:t}){var n,r,i,a;process.env.NODE_ENV!=="production"&&o.watchEffect(()=>{e.labelSize!==void 0&&tt("tabs","`label-size` is deprecated, please use `size` instead."),e.activeName!==void 0&&tt("tabs","`active-name` is deprecated, please use `value` instead."),e.onActiveNameChange!==void 0&&tt("tabs","`on-active-name-change` is deprecated, please use `on-update:value` instead.")});const{mergedClsPrefixRef:l,inlineThemeDisabled:s}=Ke(e),d=ye("Tabs","-tabs",R0,l0,e,l),c=o.ref(null),f=o.ref(null),u=o.ref(null),p=o.ref(null),m=o.ref(null),h=o.ref(null),v=o.ref(!0),w=o.ref(!0),g=To(e,["labelSize","size"]),P=To(e,["activeName","value"]),H=o.ref((r=(n=P.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(a=(i=Tn(t.default())[0])===null||i===void 0?void 0:i.props)===null||a===void 0?void 0:a.name:null),$=vt(P,H),k={id:0},M=o.computed(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});o.watch($,()=>{k.id=0,O(),V()});function b(){var _;const{value:F}=$;return F===null?null:(_=c.value)===null||_===void 0?void 0:_.querySelector(`[data-name="${F}"]`)}function S(_){if(e.type==="card")return;const{value:F}=f;if(!F)return;const K=F.style.opacity==="0";if(_){const z=`${l.value}-tabs-bar--disabled`,{barWidth:C,placement:B}=e;if(_.dataset.disabled==="true"?F.classList.add(z):F.classList.remove(z),["top","bottom"].includes(B)){if(D(["top","maxHeight","height"]),typeof C=="number"&&_.offsetWidth>=C){const oe=Math.floor((_.offsetWidth-C)/2)+_.offsetLeft;F.style.left=`${oe}px`,F.style.maxWidth=`${C}px`}else F.style.left=`${_.offsetLeft}px`,F.style.maxWidth=`${_.offsetWidth}px`;F.style.width="8192px",K&&(F.style.transition="none"),F.offsetWidth,K&&(F.style.transition="",F.style.opacity="1")}else{if(D(["left","maxWidth","width"]),typeof C=="number"&&_.offsetHeight>=C){const oe=Math.floor((_.offsetHeight-C)/2)+_.offsetTop;F.style.top=`${oe}px`,F.style.maxHeight=`${C}px`}else F.style.top=`${_.offsetTop}px`,F.style.maxHeight=`${_.offsetHeight}px`;F.style.height="8192px",K&&(F.style.transition="none"),F.offsetHeight,K&&(F.style.transition="",F.style.opacity="1")}}}function E(){if(e.type==="card")return;const{value:_}=f;_&&(_.style.opacity="0")}function D(_){const{value:F}=f;if(F)for(const K of _)F.style[K]=""}function O(){if(e.type==="card")return;const _=b();_?S(_):E()}function V(){var _;const F=(_=m.value)===null||_===void 0?void 0:_.$el;if(!F)return;const K=b();if(!K)return;const{scrollLeft:z,offsetWidth:C}=F,{offsetLeft:B,offsetWidth:oe}=K;z>B?F.scrollTo({top:0,left:B,behavior:"smooth"}):B+oe>z+C&&F.scrollTo({top:0,left:B+oe-C,behavior:"smooth"})}const j=o.ref(null);let Q=0,N=null;function Z(_){const F=j.value;if(F){Q=_.getBoundingClientRect().height;const K=`${Q}px`,z=()=>{F.style.height=K,F.style.maxHeight=K};N?(z(),N(),N=null):N=z}}function X(_){const F=j.value;if(F){const K=_.getBoundingClientRect().height,z=()=>{document.body.offsetHeight,F.style.maxHeight=`${K}px`,F.style.height=`${Math.max(Q,K)}px`};N?(N(),N=null,z()):N=z}}function Y(){const _=j.value;if(_){_.style.maxHeight="",_.style.height="";const{paneWrapperStyle:F}=e;if(typeof F=="string")_.style.cssText=F;else if(F){const{maxHeight:K,height:z}=F;K!==void 0&&(_.style.maxHeight=K),z!==void 0&&(_.style.height=z)}}}const de={value:[]},ie=o.ref("next");function ue(_){const F=$.value;let K="next";for(const z of de.value){if(z===F)break;if(z===_){K="prev";break}}ie.value=K,U(_)}function U(_){const{onActiveNameChange:F,onUpdateValue:K,"onUpdate:value":z}=e;F&&ce(F,_),K&&ce(K,_),z&&ce(z,_),H.value=_}function te(_){const{onClose:F}=e;F&&ce(F,_)}function ve(){const{value:_}=f;if(!_)return;const F="transition-disabled";_.classList.add(F),O(),_.classList.remove(F)}const we=o.ref(null);function re({transitionDisabled:_}){const F=c.value;if(!F)return;_&&F.classList.add("transition-disabled");const K=b();K&&we.value&&(we.value.style.width=`${K.offsetWidth}px`,we.value.style.height=`${K.offsetHeight}px`,we.value.style.transform=`translateX(${K.offsetLeft-ot(getComputedStyle(F).paddingLeft)}px)`,_&&we.value.offsetWidth),_&&F.classList.remove("transition-disabled")}o.watch([$],()=>{e.type==="segment"&&o.nextTick(()=>{re({transitionDisabled:!1})})}),o.onMounted(()=>{e.type==="segment"&&re({transitionDisabled:!0})});let Se=0;function Ce(_){var F;if(_.contentRect.width===0&&_.contentRect.height===0||Se===_.contentRect.width)return;Se=_.contentRect.width;const{type:K}=e;if((K==="line"||K==="bar")&&ve(),K!=="segment"){const{placement:z}=e;De((z==="top"||z==="bottom"?(F=m.value)===null||F===void 0?void 0:F.$el:h.value)||null)}}const le=ri(Ce,64);o.watch([()=>e.justifyContent,()=>e.size],()=>{o.nextTick(()=>{const{type:_}=e;(_==="line"||_==="bar")&&ve()})});const Me=o.ref(!1);function Re(_){var F;const{target:K,contentRect:{width:z}}=_,C=K.parentElement.offsetWidth;if(!Me.value)C<z&&(Me.value=!0);else{const{value:B}=p;if(!B)return;C-z>B.$el.offsetWidth&&(Me.value=!1)}De(((F=m.value)===null||F===void 0?void 0:F.$el)||null)}const Le=ri(Re,64);function Ie(){const{onAdd:_}=e;_&&_(),o.nextTick(()=>{const F=b(),{value:K}=m;!F||!K||K.scrollTo({left:F.offsetLeft,top:0,behavior:"smooth"})})}function De(_){if(!_)return;const{placement:F}=e;if(F==="top"||F==="bottom"){const{scrollLeft:K,scrollWidth:z,offsetWidth:C}=_;v.value=K<=0,w.value=K+C>=z}else{const{scrollTop:K,scrollHeight:z,offsetHeight:C}=_;v.value=K<=0,w.value=K+C>=z}}const Ue=ri(_=>{De(_.target)},64);o.provide(ki,{triggerRef:o.toRef(e,"trigger"),tabStyleRef:o.toRef(e,"tabStyle"),tabClassRef:o.toRef(e,"tabClass"),addTabStyleRef:o.toRef(e,"addTabStyle"),addTabClassRef:o.toRef(e,"addTabClass"),paneClassRef:o.toRef(e,"paneClass"),paneStyleRef:o.toRef(e,"paneStyle"),mergedClsPrefixRef:l,typeRef:o.toRef(e,"type"),closableRef:o.toRef(e,"closable"),valueRef:$,tabChangeIdRef:k,onBeforeLeaveRef:o.toRef(e,"onBeforeLeave"),activateTab:ue,handleClose:te,handleAdd:Ie}),ia(()=>{O(),V()}),o.watchEffect(()=>{const{value:_}=u;if(!_)return;const{value:F}=l,K=`${F}-tabs-nav-scroll-wrapper--shadow-start`,z=`${F}-tabs-nav-scroll-wrapper--shadow-end`;v.value?_.classList.remove(K):_.classList.add(K),w.value?_.classList.remove(z):_.classList.add(z)});const ke={syncBarPosition:()=>{O()}},q=()=>{re({transitionDisabled:!0})},A=o.computed(()=>{const{value:_}=g,{type:F}=e,K={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[F],z=`${_}${K}`,{self:{barColor:C,closeIconColor:B,closeIconColorHover:oe,closeIconColorPressed:xe,tabColor:ze,tabBorderColor:Ne,paneTextColor:Ae,tabFontWeight:_e,tabBorderRadius:qe,tabFontWeightActive:st,colorSegment:Je,fontWeightStrong:it,tabColorSegment:x,closeSize:L,closeIconSize:J,closeColorHover:ae,closeColorPressed:se,closeBorderRadius:fe,[ee("panePadding",_)]:he,[ee("tabPadding",z)]:ge,[ee("tabPaddingVertical",z)]:Te,[ee("tabGap",z)]:ut,[ee("tabGap",`${z}Vertical`)]:Yt,[ee("tabTextColor",F)]:wn,[ee("tabTextColorActive",F)]:Zt,[ee("tabTextColorHover",F)]:Jt,[ee("tabTextColorDisabled",F)]:po,[ee("tabFontSize",_)]:bo},common:{cubicBezierEaseInOut:Hn}}=d.value;return{"--n-bezier":Hn,"--n-color-segment":Je,"--n-bar-color":C,"--n-tab-font-size":bo,"--n-tab-text-color":wn,"--n-tab-text-color-active":Zt,"--n-tab-text-color-disabled":po,"--n-tab-text-color-hover":Jt,"--n-pane-text-color":Ae,"--n-tab-border-color":Ne,"--n-tab-border-radius":qe,"--n-close-size":L,"--n-close-icon-size":J,"--n-close-color-hover":ae,"--n-close-color-pressed":se,"--n-close-border-radius":fe,"--n-close-icon-color":B,"--n-close-icon-color-hover":oe,"--n-close-icon-color-pressed":xe,"--n-tab-color":ze,"--n-tab-font-weight":_e,"--n-tab-font-weight-active":st,"--n-tab-padding":ge,"--n-tab-padding-vertical":Te,"--n-tab-gap":ut,"--n-tab-gap-vertical":Yt,"--n-pane-padding-left":dt(he,"left"),"--n-pane-padding-right":dt(he,"right"),"--n-pane-padding-top":dt(he,"top"),"--n-pane-padding-bottom":dt(he,"bottom"),"--n-font-weight-strong":it,"--n-tab-color-segment":x}}),ne=s?et("tabs",o.computed(()=>`${g.value[0]}${e.type[0]}`),A,e):void 0;return Object.assign({mergedClsPrefix:l,mergedValue:$,renderedNames:new Set,segmentCapsuleElRef:we,tabsPaneWrapperRef:j,tabsElRef:c,barElRef:f,addTabInstRef:p,xScrollInstRef:m,scrollWrapperElRef:u,addTabFixed:Me,tabWrapperStyle:M,handleNavResize:le,mergedSize:g,handleScroll:Ue,handleTabsResize:Le,cssVars:s?void 0:A,themeClass:ne==null?void 0:ne.themeClass,animationDirection:ie,renderNameListRef:de,yScrollElRef:h,handleSegmentResize:q,onAnimationBeforeLeave:Z,onAnimationEnter:X,onAnimationAfterEnter:Y,onRender:ne==null?void 0:ne.onRender},ke)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:i,mergedSize:a,renderNameListRef:l,onRender:s,paneWrapperClass:d,paneWrapperStyle:c,$slots:{default:f,prefix:u,suffix:p}}=this;s==null||s();const m=f?Tn(f()).filter(k=>k.type.__TAB_PANE__===!0):[],h=f?Tn(f()).filter(k=>k.type.__TAB__===!0):[],v=!h.length,w=t==="card",g=t==="segment",P=!w&&!g&&this.justifyContent;l.value=[];const H=()=>{const k=o.h("div",{style:this.tabWrapperStyle,class:[`${e}-tabs-wrapper`]},P?null:o.h("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),v?m.map((M,b)=>(l.value.push(M.props.name),Ti(o.h(zi,Object.assign({},M.props,{internalCreatedByPane:!0,internalLeftPadded:b!==0&&(!P||P==="center"||P==="start"||P==="end")}),M.children?{default:M.children.tab}:void 0)))):h.map((M,b)=>(l.value.push(M.props.name),Ti(b!==0&&!P?Is(M):M))),!r&&i&&w?Ms(i,(v?m.length:h.length)!==0):null,P?null:o.h("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return o.h("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},w&&i?o.h(jt,{onResize:this.handleTabsResize},{default:()=>k}):k,w?o.h("div",{class:`${e}-tabs-pad`}):null,w?null:o.h("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},$=g?"top":n;return o.h("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${a}-size`,P&&`${e}-tabs--flex`,`${e}-tabs--${$}`],style:this.cssVars},o.h("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${$}`,`${e}-tabs-nav`]},Oe(u,k=>k&&o.h("div",{class:`${e}-tabs-nav__prefix`},k)),g?o.h(jt,{onResize:this.handleSegmentResize},{default:()=>o.h("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},o.h("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},o.h("div",{class:`${e}-tabs-wrapper`},o.h("div",{class:`${e}-tabs-tab`}))),v?m.map((k,M)=>(l.value.push(k.props.name),o.h(zi,Object.assign({},k.props,{internalCreatedByPane:!0,internalLeftPadded:M!==0}),k.children?{default:k.children.tab}:void 0))):h.map((k,M)=>(l.value.push(k.props.name),M===0?k:Is(k))))}):o.h(jt,{onResize:this.handleNavResize},{default:()=>o.h("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes($)?o.h(Oc,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:H}):o.h("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},H()))}),r&&i&&w?Ms(i,!0):null,Oe(p,k=>k&&o.h("div",{class:`${e}-tabs-nav__suffix`},k))),v&&(this.animated&&($==="top"||$==="bottom")?o.h("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,d]},Es(m,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Es(m,this.mergedValue,this.renderedNames)))}});function Es(e,t,n,r,i,a,l){const s=[];return e.forEach(d=>{const{name:c,displayDirective:f,"display-directive":u}=d.props,p=h=>f===h||u===h,m=t===c;if(d.key!==void 0&&(d.key=c),m||p("show")||p("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const h=!p("if");s.push(h?o.withDirectives(d,[[o.vShow,m]]):d)}}),l?o.h(o.TransitionGroup,{name:`${l}-transition`,onBeforeLeave:r,onEnter:i,onAfterEnter:a},{default:()=>s}):s}function Ms(e,t){return o.h(zi,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function Is(e){const t=o.cloneVNode(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Ti(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}async function Os(e,t,n){try{const{data:r}=await en().POST("/api/visualizations",{type:e,title:t,config:n});return r.id}catch(r){$n(r)}}async function E0(e,t,n,r){try{if(t)await As(t,n,r);else return await Os(e,n,r)}catch(i){$n(i)}}async function As(e,t,n){try{await en().PUT(`/api/visualizations/${e}`,{title:t,config:n})}catch(r){$n(r)}}function Fs(e){const t={};return e&&e.forEach(n=>{n.name?t[n.name]=n.value??null:console.debug("Warning: Detected input element with no name.")}),t}const M0={key:2,class:"border border-dotted border-green-600 rounded mt-2 p-2"},I0=o.defineComponent({__name:"InputConditional",props:o.mergeModels({datasetId:{},input:{}},{value:{},valueModifiers:{}}),emits:o.mergeModels(["update:value"],["update:value"]),setup(e,{emit:t}){const n=e,r=t;if(!n.input.test_param)throw`The conditional '${n.input.name}' is missing a test parameter.`;if(!n.input.cases||n.input.cases.length===0)throw`The conditional '${n.input.name}' is missing a cases.`;const i=o.ref(n.input.test_param),a=i.value.name;a||console.error(`Test parameter has no name: ${n.input.name}.`);const l=o.useModel(e,"value");(!l.value||!(a in l.value))&&console.error(`Test parameter of conditional not available: ${n.input.name}.`,l.value);const s=o.ref(p()),d=o.computed(()=>{const h={};if(n.input.cases&&n.input.cases.length>0)for(const v of n.input.cases)h[v.value]=Fs(v.inputs),h[v.value][a]=v.value;return h}),c=o.computed(()=>{const h={};if(n.input.cases&&n.input.cases.length>0)for(const v of n.input.cases)h[v.value]=v.inputs;return h}),f=o.computed(()=>c.value[s.value]),u=o.computed({get(){return s.value==="true"},set(h){s.value=String(h)}});function p(){return l.value&&l.value[a]}function m(h){let v={...d.value[s.value]};if(h){const w={};f.value.forEach(g=>{w[g.name]=h[g.name]}),v={...v,...h}}r("update:value",v)}return o.watch(()=>l.value,()=>{s.value=p()}),o.watch(()=>s.value,()=>{m()}),(h,v)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[i.value.type==="boolean"?(o.openBlock(),o.createBlock(o.unref(Rs),{key:0,value:u.value,"onUpdate:value":v[0]||(v[0]=w=>u.value=w)},null,8,["value"])):(o.openBlock(),o.createBlock(o.unref(rr),{key:1,value:s.value,"onUpdate:value":v[1]||(v[1]=w=>s.value=w),options:i.value.data},null,8,["value","options"])),f.value?(o.openBlock(),o.createElementBlock("div",M0,[o.createVNode(Pi,{"dataset-id":h.datasetId,inputs:f.value,values:l.value,"onUpdate:values":m},null,8,["dataset-id","inputs","values"])])):o.createCommentVNode("",!0)],64))}}),O0={key:0,class:"mb-1"},A0={key:1,class:"text-red-600 mb-1"},F0=o.createElementVNode("span",null,"Please select a dataset.",-1),D0=100,V0=o.defineComponent({__name:"InputData",props:o.mergeModels({extension:{},optional:{type:Boolean}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=e,n=o.ref([]),r=o.useModel(e,"value"),i=o.ref(!1),a=o.ref(null);async function l(d){i.value=!0;try{const c=t.extension?`q=extension-eq&qv=${t.extension}`:"",f=d?`q=name-contains&qv=${d}`:"",{data:u}=await en().GET(`/api/datasets?limit=${D0}&${c}&${f}`);if(u&&u.length>0){const p=u.map(m=>({label:m.name,value:{id:m.id,name:m.name}}));p.push({label:"...filter for more",value:null,disabled:!0}),t.optional&&p.unshift({label:"-- Clear Selection --",value:null}),n.value=p}}catch(c){console.log(c)}finally{i.value=!1}}function s(){r.value=a.value,a.value=null}return l(),(d,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[r.value?(o.openBlock(),o.createElementBlock("div",O0,[o.createVNode(o.unref(yt),{class:"size-3 mr-1"},{default:o.withCtx(()=>[o.createVNode(o.unref(Hi))]),_:1}),o.createElementVNode("span",null,"Selected: "+o.toDisplayString(r.value.name),1)])):d.optional?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",A0,[o.createVNode(o.unref(yt),{class:"size-3 mr-1"},{default:o.withCtx(()=>[o.createVNode(o.unref(Li))]),_:1}),F0])),o.createVNode(o.unref(rr),{value:a.value,"onUpdate:value":[c[0]||(c[0]=f=>a.value=f),s],filterable:"",placeholder:"Select a Dataset",loading:i.value,options:n.value,onSearch:l},null,8,["value","loading","options"])],64))}});function H0(e,t,n,r){const i=[];t&&i.push({label:"Column: Default",value:"auto"});const a=e.metadata_column_types;for(const l in a)(r&&["int","float"].includes(a[l])||n&&a[l]==="str"||!r&&!n)&&i.push({label:"Column: "+(parseInt(l)+1),value:l});return i}const L0=o.defineComponent({__name:"InputDataColumn",props:o.mergeModels({datasetId:{},isAuto:{type:Boolean},isText:{type:Boolean},isNumber:{type:Boolean}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(e){const t=e,n=o.ref([]),r=o.useModel(e,"value");async function i(){if(t.datasetId)try{const{data:l}=await en().GET(`/api/datasets/${t.datasetId}`),s=H0(l,t.isAuto,t.isText,t.isNumber);n.value=s,a()}catch(l){console.log(l)}else console.log("Data column selector disabled, since `datasetId` is unavailable.")}function a(){n.value.length>0&&r.value===null&&(r.value=n.value[0].value)}return i(),o.watch(()=>r.value,()=>a()),(l,s)=>l.datasetId?(o.openBlock(),o.createBlock(o.unref(rr),{key:0,value:r.value,"onUpdate:value":s[0]||(s[0]=d=>r.value=d),options:n.value},null,8,["value","options"])):(o.openBlock(),o.createBlock(o.unref(Dn),{key:1,value:r.value,"onUpdate:value":s[1]||(s[1]=d=>r.value=d)},null,8,["value"]))}});function ho(e){return String(e).toLowerCase()==="true"}const N0={class:"overflow-auto select-none"},W0={class:"font-bold pb-1"},j0={key:0,class:"text-xs pb-1"},U0={key:5},Ds=.01,Pi=o.defineComponent({__name:"InputForm",props:{datasetId:{},inputs:{},values:{}},emits:["update:values"],setup(e,{emit:t}){const n=e,r=t,i=o.ref(a());function a(){const s={...n.values};return n.inputs.forEach(d=>{s[d.name]===void 0&&(s[d.name]=null)}),s}function l(){r("update:values",i.value)}return o.watch(()=>n.values,()=>{i.value=a()}),(s,d)=>(o.openBlock(),o.createElementBlock("div",N0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.inputs,(c,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"pb-2"},[o.createElementVNode("div",W0,o.toDisplayString(c.label||c.name),1),c.help?(o.openBlock(),o.createElementBlock("div",j0,o.toDisplayString(c.help),1)):o.createCommentVNode("",!0),o.createElementVNode("div",null,[c.type==="boolean"?(o.openBlock(),o.createBlock(o.unref(Rs),{key:0,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[0]||(d[0]=u=>l())]},null,8,["value","onUpdate:value"])):c.type==="color"?(o.openBlock(),o.createBlock(o.unref(Dv),{key:1,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[1]||(d[1]=u=>l())],modes:["hex"],"show-alpha":!1},null,8,["value","onUpdate:value"])):c.type==="conditional"?(o.openBlock(),o.createBlock(I0,{key:2,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[2]||(d[2]=u=>l())],"dataset-id":s.datasetId,input:c},null,8,["value","onUpdate:value","dataset-id","input"])):c.type==="data"?(o.openBlock(),o.createBlock(V0,{key:3,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[3]||(d[3]=u=>l())],extension:c.extension,optional:o.unref(ho)(c.optional)},null,8,["value","onUpdate:value","extension","optional"])):c.type==="data_column"?(o.openBlock(),o.createBlock(L0,{key:4,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[4]||(d[4]=u=>l())],"dataset-id":s.datasetId,"is-auto":o.unref(ho)(c.is_auto),"is-text":o.unref(ho)(c.is_text),"is-number":o.unref(ho)(c.is_number)},null,8,["value","onUpdate:value","dataset-id","is-auto","is-text","is-number"])):c.type==="float"?(o.openBlock(),o.createElementBlock("div",U0,[c.min!==void 0&&c.max!==void 0?(o.openBlock(),o.createBlock(o.unref(k0),{key:0,class:"mb-2",value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[5]||(d[5]=u=>l())],min:Number(c.min),max:Number(c.max),step:Ds},null,8,["value","onUpdate:value","min","max"])):o.createCommentVNode("",!0),o.createVNode(o.unref(w0),{value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[6]||(d[6]=u=>l())],size:"small",min:Number(c.min),max:Number(c.max),step:Ds},null,8,["value","onUpdate:value","min","max"])])):c.type==="select"?(o.openBlock(),o.createBlock(o.unref(rr),{key:6,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[7]||(d[7]=u=>l())],options:c.data},null,8,["value","onUpdate:value","options"])):c.type==="textarea"?(o.openBlock(),o.createBlock(o.unref(Dn),{key:7,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[8]||(d[8]=u=>l())],rows:Number(c.rows),type:"textarea"},null,8,["value","onUpdate:value","rows"])):(o.openBlock(),o.createBlock(o.unref(Dn),{key:8,value:i.value[c.name],"onUpdate:value":[u=>i.value[c.name]=u,d[9]||(d[9]=u=>l())]},null,8,["value","onUpdate:value"]))])]))),128))]))}}),G0=o.createElementVNode("span",{class:"mx-1"},"Add New Track",-1),K0={class:"border border-dotted border-green-600 rounded p-2"},q0={class:"flex text-green-600 my-1"},X0={class:"mx-1"},Y0=o.defineComponent({__name:"InputRepeats",props:{datasetId:{},inputs:{},valuesArray:{}},emits:["update:values-array"],setup(e,{emit:t}){const n=e,r=t,i=o.computed(()=>Fs(n.inputs));function a(){const d=[...n.valuesArray];d.unshift(i.value),r("update:values-array",d)}function l(d){const c=[...n.valuesArray];c.splice(d,1),r("update:values-array",c)}function s(d,c){const f=[...n.valuesArray];f[d]={...c},r("update:values-array",f)}return(d,c)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(o.unref(It),{size:"tiny",type:"primary",class:"mb-2",onClick:a},{default:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Ks))]),_:1}),G0]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.valuesArray,(f,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"my-2"},[o.createElementVNode("div",K0,[o.createVNode(Pi,{"dataset-id":d.datasetId,inputs:d.inputs,values:f,"onUpdate:values":p=>s(u,p)},null,8,["dataset-id","inputs","values","onUpdate:values"]),o.createElementVNode("div",q0,[o.createVNode(o.unref(It),{class:"text-green-600 w-full",size:"tiny",round:"",disabled:d.valuesArray.length<=1,onClick:p=>l(u)},{default:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Xs))]),_:1}),o.createElementVNode("span",X0,"Remove Track "+o.toDisplayString(d.valuesArray.length-u),1)]),_:2},1032,["disabled","onClick"])])])]))),128))],64))}}),Z0=2e3,J0=o.defineComponent({__name:"AlertNotify",props:{message:{},messageType:{default:"info"}},emits:["timeout"],setup(e,{emit:t}){const n=e,r=t;let i=null;return o.watch(()=>n.message,()=>{i&&clearTimeout(i),i=setTimeout(()=>r("timeout"),Z0)}),(a,l)=>a.message?(o.openBlock(),o.createBlock(o.unref(vi),{key:0,type:a.messageType,class:"m-4"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(a.message),1)]),_:1},8,["type"])):o.createCommentVNode("",!0)}}),Q0={class:"text-xs"},ex=o.createElementVNode("span",{class:"text-xs"},"Galaxy is not accessible!",-1),tx=o.defineComponent({__name:"ApiStatus",setup(e){const t=o.ref("...");async function n(){try{const{data:r}=await en().GET("/api/version");t.value=r.version_major}catch{console.log("Unable to connect to Galaxy. Verify Galaxy is running and refer to docs."),t.value=""}}return n(),(r,i)=>t.value?(o.openBlock(),o.createBlock(o.unref(Cs),{key:0,class:"mx-1",trigger:"hover"},{trigger:o.withCtx(()=>[o.createVNode(o.unref(yt),{class:"mx-1"},{default:o.withCtx(()=>[o.createVNode(o.unref(Hi),{class:"text-green-600"})]),_:1})]),default:o.withCtx(()=>[o.createElementVNode("span",Q0,"Connected to Galaxy Version "+o.toDisplayString(t.value)+".",1)]),_:1})):(o.openBlock(),o.createBlock(o.unref(Cs),{key:1,class:"mx-1",trigger:"hover"},{trigger:o.withCtx(()=>[o.createVNode(o.unref(yt),{class:"mx-1"},{default:o.withCtx(()=>[o.createVNode(o.unref(Li),{class:"text-red-600"})]),_:1})]),default:o.withCtx(()=>[ex]),_:1}))}}),nx={class:"overflow-auto select-none bg-white z-10"},ox={class:"flex p-2"},rx={class:"flex-1 font-thin text-lg p-1 p-2"},ix=o.createElementVNode("span",null,"Charts",-1),ax={key:0},lx={class:"m-4 mt-0 p-2 bg-sky-50 text-sky-900 rounded"},sx={class:"md:flex"},dx={class:"flex justify-center center-items"},cx={class:"m-2"},ux=["src"],fx={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 100 100",class:"size-14"},hx=[o.createElementVNode("circle",{cx:"50",cy:"50",r:"45",stroke:"#E30A17","stroke-width":"5"},null,-1),o.createElementVNode("path",{d:"M 50,5 A 45,45 0 0,1 95,50 L 50,50 Z",fill:"#E30A17"},null,-1)],px={class:"overflow-hidden break-words p-1"},bx={class:"font-bold"},gx=["innerHTML"],mx={class:"px-4 pb-2"},vx=o.createElementVNode("div",{class:"font-bold"},"Title",-1),xx=o.createElementVNode("div",{class:"text-xs py-1"},"Specify a visualization title.",-1),yx=o.createElementVNode("span",{class:"mx-1"},"Tracks",-1),wx=o.createElementVNode("span",{class:"mx-1"},"Settings",-1),Cx=o.defineComponent({__name:"SidePanel",props:{datasetId:{},description:{},logoUrl:{},html:{},name:{},settingInputs:{},settingValues:{},trackInputs:{},trackValues:{},visualizationId:{},visualizationTitle:{}},emits:["update:tracks","update:settings","update:visualization-id","update:visualization-title","toggle"],setup(e,{emit:t}){const n=e,r=t,i=o.ref(""),a=o.ref("info"),l=o.computed(()=>n.settingInputs.length===0||n.trackInputs.length===0);async function s(){try{if(n.visualizationId)await As(n.visualizationId,n.visualizationTitle,{dataset_id:n.datasetId,settings:n.settingValues,tracks:n.trackValues}),i.value="Successfully saved.",a.value="success";else{const u=await Os(n.name,n.visualizationTitle,{dataset_id:n.datasetId,settings:n.settingValues,tracks:n.trackValues});u?(i.value="Successfully created.",a.value="success",r("update:visualization-id",u)):(i.value="Something went wrong.",a.value="error")}}catch(u){i.value=Oi(u),a.value="error"}}function d(u){r("update:settings",u)}function c(u){r("update:tracks",u)}function f(u){r("update:visualization-title",u)}return(u,p)=>(o.openBlock(),o.createElementBlock("div",nx,[o.createElementVNode("div",ox,[o.createElementVNode("div",rx,[ix,o.createVNode(tx)]),u.datasetId?(o.openBlock(),o.createElementBlock("div",ax,[o.createVNode(o.unref(It),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-1",onClick:s},{icon:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Gs))]),_:1})]),_:1}),o.createVNode(o.unref(It),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-1",onClick:p[0]||(p[0]=m=>r("toggle"))},{icon:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Us))]),_:1})]),_:1})])):o.createCommentVNode("",!0)]),o.createVNode(J0,{message:i.value,"message-type":a.value,onTimeout:p[1]||(p[1]=m=>i.value=""),class:"m-4"},null,8,["message","message-type"]),o.createElementVNode("div",lx,[o.createElementVNode("div",sx,[o.createElementVNode("div",dx,[o.createElementVNode("div",cx,[n.logoUrl?(o.openBlock(),o.createElementBlock("img",{key:0,src:n.logoUrl,class:"min-w-14 max-w-14 object-contain"},null,8,ux)):(o.openBlock(),o.createElementBlock("svg",fx,hx))])]),o.createElementVNode("div",px,[o.createElementVNode("span",bx,o.toDisplayString(u.html),1),o.createElementVNode("div",{class:"text-xs",innerHTML:u.description},null,8,gx)])])]),o.createElementVNode("div",mx,[vx,xx,o.createVNode(o.unref(Dn),{value:u.visualizationTitle,onInput:f},null,8,["value"])]),o.createVNode(o.unref(_0),{type:"line",animated:"",class:"px-4","tab-class":l.value?"!hidden":""},{default:o.withCtx(()=>[u.trackInputs.length>0?(o.openBlock(),o.createBlock(o.unref(_s),{key:0,name:"tracks"},{tab:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(qs))]),_:1}),yx]),default:o.withCtx(()=>[o.createVNode(Y0,{"dataset-id":u.datasetId,inputs:u.trackInputs,"values-array":u.trackValues,"onUpdate:valuesArray":c},null,8,["dataset-id","inputs","values-array"])]),_:1})):o.createCommentVNode("",!0),u.settingInputs.length>0?(o.openBlock(),o.createBlock(o.unref(_s),{key:1,name:"settings"},{tab:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(Ns))]),_:1}),wx]),default:o.withCtx(()=>[o.createVNode(Pi,{"dataset-id":u.datasetId,inputs:u.settingInputs,values:u.settingValues,"onUpdate:values":d},null,8,["dataset-id","inputs","values"])]),_:1})):o.createCommentVNode("",!0)]),_:1},8,["tab-class"])]))}});async function Sx(e,t={}){const n=Ri(e.settings,t.settings),r=e.specs,i=zx(e.tracks,t.tracks);return{plugin:e,settings:n,specs:r,tracks:i}}function $x(e,t){let n=t??e.value;return e.type==="float"?n=Number(n):e.type==="boolean"&&(n=ho(n)),n}function kx(e,t={}){var i,a,l;const n=t,r=(i=e.test_param)==null?void 0:i.name;if(!r)console.error(`Test parameter has no name: ${e.name}.`);else{const s=n[r]??((a=e.test_param)==null?void 0:a.value);for(const d of e.cases||[])d.value===s&&(n[r]=s,(l=d.inputs)!=null&&l.length&&Ri(d.inputs,n))}return n}function Ri(e,t){const n=t||{};return e==null||e.forEach(r=>{r.type==="conditional"?n[r.name]=kx(r,n[r.name]):n[r.name]=$x(r,n[r.name])}),n}function zx(e,t){const n=t||[];return e&&(n.length===0&&n.push({}),n.forEach((r,i)=>{n[i]=Ri(e,r)})),n}function Tx(e,t="app"){if(e===void 0){const s=document.getElementById(t);if(!s)throw new Error(`Container element '${t}' not found.`);e=JSON.parse((s==null?void 0:s.getAttribute("data-incoming"))||"{}")}const n=(e==null?void 0:e.root)??"/",r=(e==null?void 0:e.visualization_config)??{},i=(e==null?void 0:e.visualization_id)??null,a=(e==null?void 0:e.visualization_plugin)??{},l=(e==null?void 0:e.visualization_title)??"Unnamed Visualization";return{root:n,visualizationConfig:r,visualizationId:i,visualizationPlugin:a,visualizationTitle:l}}const Px={key:2,class:"m-2"},Rx=o.createElementVNode("span",{class:"text-xs"},"Please wait...",-1),Bx={key:1},_x=o.defineComponent({__name:"GalaxyCharts",props:{container:{},credentials:{},incoming:{}},setup(e){const t=e,{root:n,visualizationConfig:r,visualizationId:i,visualizationPlugin:a,visualizationTitle:l}=Tx(t.incoming,t.container),s=o.ref(!1),d=o.ref(""),c=o.ref(""),f=o.ref(""),u=o.ref(!0),p=o.ref(""),m=o.ref(""),h=o.ref([]),v=o.ref({}),w=o.ref({}),g=o.ref([]),P=o.ref([]),H=o.ref(i),$=o.ref(l),k=Di();k.setCredentials(t.credentials||"include"),k.setRoot(n||"/"),Sx(a,r).then(({plugin:Y,settings:de,specs:ie,tracks:ue})=>{d.value=Y.description||"",f.value=Y.html||"",u.value=!1,p.value=Y.logo||"",m.value=Y.name||"",h.value=Y.settings||[],v.value=de,w.value=ie||{},g.value=Y.tracks||[],P.value=ue});const M=o.computed(()=>r.dataset_id||""),b=o.computed(()=>r.dataset_url?(console.debug(`GalaxyCharts: Evaluating dataset url: ${r.dataset_url}.`),r.dataset_url):M.value?(console.debug(`GalaxyCharts: Built dataset url from dataset id: ${M.value}.`),Hs(n,M.value)):null),S=o.computed(()=>p.value&&`${n}${p.value}`),E=o.computed(()=>h.value.length===0&&g.value.length===0);async function D(){s.value=!s.value,await o.nextTick(),window?window.dispatchEvent(new Event("resize")):console.warn("window unavailable.")}function O(){try{window.postMessage({container:t.container,content:JSON.parse(JSON.stringify(V())),from:"galaxy-visualization"},"*")}catch(Y){c.value=`Failed to postMessage: ${Y}`}}function V(){return{dataset_id:M.value,settings:v.value,tracks:P.value}}function j(Y){v.value={...Y},O()}function Q(Y){P.value=[...Y],O()}function N(Y){H.value=Y}function Z(Y){$.value=Y}async function X(Y){j({...v.value,...Y});try{const de=await E0(m.value,i,l,V());de&&N(de)}catch(de){c.value=`Failed to save: ${de}.`}}return(Y,de)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[c.value?(o.openBlock(),o.createBlock(o.unref(vi),{key:0,type:"error",class:"m-2"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(c.value),1)]),_:1})):o.createCommentVNode("",!0),b.value?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(vi),{key:1,type:"info",class:"m-2"},{default:o.withCtx(()=>[o.createTextVNode(" Only displaying available visualization inputs. Rendering requires `dataset_id` or `dataset_url`. ")]),_:1})),u.value?(o.openBlock(),o.createElementBlock("div",Px,[o.createElementVNode("span",null,[o.createVNode(o.unref(Ws),{class:"animate-spin size-4 inline mx-1"})]),Rx])):(o.openBlock(),o.createElementBlock("div",{key:3,class:o.normalizeClass(["grid h-screen",{"grid-cols-[70%_30%]":!s.value&&b.value&&!E.value}])},[b.value?o.renderSlot(Y.$slots,"default",{key:0,datasetId:M.value,datasetUrl:b.value,root:o.unref(n),settings:v.value,specs:w.value,tracks:P.value,save:X}):o.createCommentVNode("",!0),s.value&&b.value&&!E.value?(o.openBlock(),o.createElementBlock("div",Bx,[o.createVNode(o.unref(g0),{strong:"",secondary:"",circle:"",class:"bg-sky-100 m-2",top:0,right:0,onClick:D},{default:o.withCtx(()=>[o.createVNode(o.unref(yt),null,{default:o.withCtx(()=>[o.createVNode(o.unref(js))]),_:1})]),_:1})])):E.value?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(Cx,{key:2,"dataset-id":M.value,description:d.value,html:f.value,"logo-url":S.value,name:m.value,"setting-inputs":h.value,"setting-values":v.value,"track-inputs":g.value,"track-values":P.value,"visualization-id":H.value,"visualization-title":$.value,"onUpdate:settings":j,"onUpdate:tracks":Q,"onUpdate:visualizationId":N,"onUpdate:visualizationTitle":Z,onToggle:D},null,8,["dataset-id","description","html","logo-url","name","setting-inputs","setting-values","track-inputs","track-values","visualization-id","visualization-title"]))],2))],64))}});We.GalaxyApi=en,We.GalaxyCharts=_x,We.useColumnsStore=Ls,Object.defineProperty(We,Symbol.toStringTag,{value:"Module"})});
|