@kestra-io/ui-libs 0.0.293 → 0.0.294
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/components/misc/ElementCard.vue.d.ts.map +1 -1
- package/dist/kestra-index.cjs.js +1 -1
- package/dist/kestra-index.cjs.js.map +1 -1
- package/dist/kestra-index.es.js +1 -1
- package/dist/kestra-index.es.js.map +1 -1
- package/dist/ui-libs.css +1 -1
- package/package.json +1 -1
- package/src/components/misc/ElementCard.vue +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/misc/ElementCard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ElementCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/misc/ElementCard.vue"],"names":[],"mappings":"AA2II,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,CAAC;AAiFN,QAAA,IAAI,OAAO;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
package/dist/kestra-index.cjs.js
CHANGED
|
@@ -12,7 +12,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
12
12
|
stroke-width: ${E.strokeWidth};
|
|
13
13
|
stroke-dasharray: ${E.strokeDasharray};
|
|
14
14
|
fill: none;
|
|
15
|
-
`),{element:k,original:T}});try{const f=c.type==="jpeg"?await r(s,c):await a(s,c);return c.shouldDownload&&u&&i(u),f}finally{h.forEach(({element:f,original:k})=>k?f.setAttribute("style",k):f.removeAttribute("style")),s.classList.remove("is-exporting")}}function r(s,c={quality:.95}){return o.value=null,Rf(s,c).then(u=>(t.value=u,n.value="jpeg",u)).catch(u=>{throw u.value=u,new Error(u)})}function a(s,c={quality:.95}){return o.value=null,Pf(s,c).then(u=>(t.value=u,n.value="png",u)).catch(u=>{throw u.value=u,new Error(u)})}function i(s){const c=document.createElement("a");c.download=`${s}.${n.value}`,c.href=t.value,c.click()}return{capture:l,download:i,dataUrl:t,error:o}}const Ff={key:1,class:"exporting"},Uf=e.defineComponent({__name:"Topology",props:{id:{},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{},flowId:{default:void 0},namespace:{default:void 0},expandedSubflows:{default:()=>[]},icons:{default:()=>({})},iconComponent:{default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},execution:{default:void 0},subflowsExecutions:{default:()=>({})},playgroundEnabled:{type:Boolean,default:!1},playgroundReadyToStart:{type:Boolean,default:!1},getNodeDimensions:{type:Function,default:void 0}},emits:[b.EVENTS.EDIT,b.EVENTS.DELETE,b.EVENTS.RUN_TASK,b.EVENTS.OPEN_LINK,b.EVENTS.SHOW_LOGS,b.EVENTS.SHOW_DESCRIPTION,b.EVENTS.RUN_TASK,"on-add-flowable-error",b.EVENTS.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",b.EVENTS.SHOW_CONDITION],setup(t,{emit:n}){const o=t,l=e.ref(!1),r=e.ref(),{getNodes:a,onNodeDrag:i,onNodeDragStart:s,onNodeDragStop:c,fitView:u,setElements:d,vueFlowRef:h}=oe.useVueFlow(o.id),f=e.ref({}),k=e.ref([]),T=e.ref(new Set),E=e.ref([]),{capture:N}=Mf();e.provide(Gn,e.computed(()=>o.execution)),e.provide(Pl,e.computed(()=>o.subflowsExecutions));const m=n;e.onMounted(()=>{y()}),e.watch(()=>o.flowGraph,()=>{y()}),e.watch(()=>o.isHorizontal,()=>{y()});const y=()=>{b.cleanGraph(o.id),e.nextTick(()=>{m("loading",!0);const x=T.value;T.value=new Set,k.value=[],f.value={},x.forEach(H=>R(b.CLUSTER_PREFIX+H,!1,!1));const I=b.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,k.value,o.isHorizontal,f.value,T.value,E.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction,o.getNodeDimensions);I&&(d(I),u(),m("loading",!1))})},S=x=>{l.value||b.linkedElements(o.id,x.uid).forEach(I=>{I?.type==="task"&&(I.style={...I.style,outline:"0.5px solid "+_e("--bs-gray-900")},I.class="rounded-3")})},_=()=>{w()},w=()=>{a.value.filter(x=>x.type==="task"||x.type==="trigger").forEach(x=>{x.style={...x.style,opacity:"1",outline:"none"},x.class=""})};s(x=>{l.value=!0,w(),x.node.style={...x.node.style,zIndex:1976},r.value=x.node.position}),c(x=>{if(l.value=!1,x.intersections&&C(x.intersections,x.node)===null){const I=x.node,H=x.intersections.find(P=>P.type==="task");if(H)try{o.source&&m("swapped-task",{newSource:W.swapBlocks({source:o.source,section:"tasks",key1:b.Utils.afterLastDot(I.id)??"",key2:b.Utils.afterLastDot(H.id)??""}),swappedTasks:[I.id,H.id]})}catch(P){m("message",{variant:"error",title:"cannot swap tasks",message:`${P.message}, ${P.messageOptions}`}),I.position=r.value}else I.position=r.value}else x.node.position=r.value;w(),x.node.style={...x.node.style,zIndex:5},r.value=null});const $=e.computed(()=>o.flowGraph?.clusters?o.flowGraph.clusters.filter(x=>x.cluster.type.endsWith("SubflowGraphCluster")).map(x=>x.cluster.taskNode.uid+"."):[]);i(x=>{w(),a.value.filter(I=>I.id!==x.node.id).forEach(I=>{I.type==="trigger"||I.type==="task"&&(I.id.startsWith(x.node.id+".")||x.node.id.startsWith(I.id+"."))||$?.value?.some(H=>I.id.startsWith(H))?I.style={...I.style,opacity:"0.5"}:I.style={...I.style,opacity:"1"}}),x.intersections&&!C(x.intersections,x.node)&&x.intersections.filter(I=>I.type==="task").length===1&&(x.intersections.forEach(I=>{I.type==="task"&&(I.style={...I.style,outline:"0.5px solid "+_e("--bs-primary")},I.class="rounded-3")}),x.node.style={...x.node.style,outline:"0.5px solid "+_e("--bs-primary")},x.node.class="rounded-3")});const C=(x,I)=>{const H=x.filter(P=>P.type==="task").map(P=>b.Utils.afterLastDot(P.id));if(H.length>1)return"toomuchtaskerror";try{if(H.length===1&&o.source&&W.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:b.Utils.afterLastDot(H[0])??"",key2:b.Utils.afterLastDot(I.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return x.filter(P=>P.type==="trigger").length>0?"triggererror":null},R=(x,I,H=!1)=>{const P=o.flowGraph.clusters.find(me=>me.cluster.uid.endsWith(x)),$e=x.replace(b.CLUSTER_PREFIX,"");T.value.add($e),k.value=k.value.concat(P.nodes.filter(me=>me!==$e||H)),k.value=k.value.concat([P.cluster.uid]),f.value={...f.value,[P.cluster.uid]:$e,[P.start]:$e,[P.end]:$e};for(let me of P.nodes)o.flowGraph.clusters.map(He=>He.cluster.uid).includes(me)&&R(me,!1,!0);I&&y()},U=x=>{if(["io.kestra.core.tasks.flows.Flow","io.kestra.core.tasks.flows.Subflow","io.kestra.plugin.core.flow.Subflow","io.kestra.core.tasks.flows.ForEachItem$ForEachItemExecutable","io.kestra.plugin.core.flow.ForEachItem$ForEachItemExecutable"].includes(x.type)&&!o.expandedSubflows.includes(x.id)){m("expand-subflow",[...o.expandedSubflows,x.id]);return}f.value={},k.value=[],E.value=[],T.value.delete(x.id),T.value.forEach(H=>R(H,!1,!1)),y()},Q=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,ge=e.ref(!0),Z=e.ref(!1),Re=()=>Z.value=!Z.value;function Je(x){if(!h.value){console.warn("Flow not found");return}ge.value=!1,N(h.value,{type:x,shouldDownload:!0}).then(()=>ge.value=!0).finally(()=>Z.value=!1)}return(x,I)=>(e.openBlock(),e.createBlock(e.unref(oe.VueFlow),{id:t.id,"default-marker-color":e.unref(_e)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":e.withCtx(H=>[e.createVNode(uu,e.mergeProps(H,{onCollapse:I[0]||(I[0]=P=>R(P,!0))}),null,16)]),"node-dot":e.withCtx(H=>[e.createVNode(yu,e.normalizeProps(e.guardReactiveProps(H)),null,16)]),"node-task":e.withCtx(H=>[e.createVNode(pm,e.mergeProps(H,{icons:t.icons,"icon-component":t.iconComponent,"playground-enabled":t.playgroundEnabled,"playground-ready-to-start":t.playgroundReadyToStart,onEdit:I[1]||(I[1]=P=>m(e.unref(b.EVENTS).EDIT,P)),onDelete:I[2]||(I[2]=P=>m(e.unref(b.EVENTS).DELETE,P)),onRunTask:I[3]||(I[3]=P=>m(e.unref(b.EVENTS).RUN_TASK,P)),onExpand:I[4]||(I[4]=P=>U(P)),onOpenLink:I[5]||(I[5]=P=>m(e.unref(b.EVENTS).OPEN_LINK,P)),onShowLogs:I[6]||(I[6]=P=>m(e.unref(b.EVENTS).SHOW_LOGS,P)),onShowDescription:I[7]||(I[7]=P=>m(e.unref(b.EVENTS).SHOW_DESCRIPTION,P)),onShowCondition:I[8]||(I[8]=P=>m(e.unref(b.EVENTS).SHOW_CONDITION,P)),onMouseover:I[9]||(I[9]=P=>S(P)),onMouseleave:I[10]||(I[10]=P=>_()),onAddError:I[11]||(I[11]=P=>m("on-add-flowable-error",P)),"enable-subflow-interaction":t.enableSubflowInteraction}),{details:e.withCtx(()=>[e.renderSlot(x.$slots,"taskDetails",e.normalizeProps(e.guardReactiveProps(H)),void 0,!0)]),_:2},1040,["icons","icon-component","playground-enabled","playground-ready-to-start","enable-subflow-interaction"])]),"node-custom":e.withCtx(H=>[e.createVNode(jn,e.mergeProps(H,{icons:t.icons,"icon-component":t.iconComponent}),null,16,["icons","icon-component"])]),"node-trigger":e.withCtx(H=>[e.createVNode(hm,e.mergeProps(H,{icons:t.icons,"icon-component":t.iconComponent,"is-read-only":t.isReadOnly,"is-allowed-edit":t.isAllowedEdit,onDelete:I[12]||(I[12]=P=>m(e.unref(b.EVENTS).DELETE,P)),onEdit:I[13]||(I[13]=P=>m(e.unref(b.EVENTS).EDIT,P)),onShowDescription:I[14]||(I[14]=P=>m(e.unref(b.EVENTS).SHOW_DESCRIPTION,P))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":e.withCtx(H=>[e.createVNode(Vm,e.mergeProps(H,{onExpand:I[15]||(I[15]=P=>U(P))}),null,16)]),"edge-edge":e.withCtx(H=>[e.createVNode(Iu,e.mergeProps(H,{"yaml-source":t.source,onAddTask:I[16]||(I[16]=P=>m(e.unref(b.EVENTS).ADD_TASK,P)),"is-read-only":t.isReadOnly,"is-allowed-edit":t.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:e.withCtx(()=>[e.createVNode(e.unref(Qc),{"pattern-color":Q?e.unref(_e)("--bs-grey-500"):e.unref(_e)("--bs-grey-300")},null,8,["pattern-color"]),ge.value?(e.openBlock(),e.createBlock(e.unref(an.Controls),{key:0,"show-interactive":!1},{default:e.withCtx(()=>[t.toggleOrientationButton?(e.openBlock(),e.createBlock(e.unref(an.ControlButton),{key:0,onClick:I[17]||(I[17]=H=>m("toggle-orientation",H))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.isHorizontal?Pm:Am)))]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(an.ControlButton),{onClick:Re},{default:e.withCtx(()=>[e.createVNode(Wm)]),_:1}),Z.value?(e.openBlock(),e.createElementBlock("ul",Ff,[e.createElementVNode("li",{onClick:I[18]||(I[18]=H=>Je("jpeg")),class:"item"}," Export as .JPEG "),e.createElementVNode("li",{onClick:I[19]||(I[19]=H=>Je("png")),class:"item"}," Export as .PNG ")])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0)]),_:3},8,["id","default-marker-color"]))}}),Hf=A(Uf,[["__scopeId","data-v-6f358b88"]]),zf={class:"text"},Wf=e.defineComponent({__name:"Status",props:{status:{},title:{default:void 0},icon:{type:Boolean,default:!1},size:{default:"default"}},setup(t){const n=t,o=e.computed(()=>n.icon?ne.icon()[n.status?.toUpperCase()]:void 0),l=e.computed(()=>n.title??n.status),r=e.computed(()=>["status-button",n.status?.toLowerCase()&&`status-button--${n.status.toLowerCase()}`,n.size!=="default"&&`status-button--${n.size}`].filter(Boolean));return(a,i)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(r.value)},[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:0,class:"icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",zf,e.toDisplayString(l.value),1)],2))}}),jf=A(Wf,[["__scopeId","data-v-ce6b0e30"]]),Gf={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Kf=["aria-hidden","aria-label"],Yf=["fill","width","height"],qf={d:"M10,17L15,12L10,7V17Z"},Xf={key:0};function Zf(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-right-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",qf,[o.title?(e.openBlock(),e.createElementBlock("title",Xf,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Yf))],16,Kf)}const Jf=A(Gf,[["render",Zf]]),Qf={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ep=["aria-hidden","aria-label"],tp=["fill","width","height"],np={d:"M7,10L12,15L17,10H7Z"},op={key:0};function lp(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-down-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",np,[o.title?(e.openBlock(),e.createElementBlock("title",op,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,tp))],16,ep)}const rp=A(Qf,[["render",lp]]);function ql(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function Xl(t){return typeof t=="function"?t():e.unref(t)}const ap=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ip=Object.prototype.toString,sp=t=>ip.call(t)==="[object Object]",cp=()=>{};function up(t){return Object.entries(t)}function dp(t){return e.getCurrentInstance()}function mp(t,n=!0,o){dp()?e.onMounted(t,o):n?t():e.nextTick(t)}function Ye(t){var n;const o=Xl(t);return(n=o?.$el)!=null?n:o}const qt=ap?window:void 0;function Zo(...t){let n,o,l,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,r]=t,n=qt):[n,o,l,r]=t,!n)return cp;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},s=(d,h,f,k)=>(d.addEventListener(h,f,k),()=>d.removeEventListener(h,f,k)),c=e.watch(()=>[Ye(n),Xl(r)],([d,h])=>{if(i(),!d)return;const f=sp(h)?{...h}:h;a.push(...o.flatMap(k=>l.map(T=>s(d,k,T,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return ql(u),u}function fp(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function pp(t){const n=fp();return e.computed(()=>(n.value,!!t()))}const Jo=["hash","host","hostname","href","pathname","port","protocol","search"];function Zl(t={}){const{window:n=qt}=t,o=Object.fromEntries(Jo.map(a=>[a,e.ref()]));for(const[a,i]of up(o))e.watch(i,s=>{!n?.location||n.location[a]===s||(n.location[a]=s)});const l=a=>{var i;const{state:s,length:c}=n?.history||{},{origin:u}=n?.location||{};for(const d of Jo)o[d].value=(i=n?.location)==null?void 0:i[d];return e.reactive({trigger:a,state:s,length:c,origin:u,...o})},r=e.ref(l("load"));return n&&(Zo(n,"popstate",()=>r.value=l("popstate"),{passive:!0}),Zo(n,"hashchange",()=>r.value=l("hashchange"),{passive:!0})),r}function gp(t,n,o={}){const{window:l=qt,...r}=o;let a;const i=pp(()=>l&&"ResizeObserver"in l),s=()=>{a&&(a.disconnect(),a=void 0)},c=e.computed(()=>Array.isArray(t)?t.map(h=>Ye(h)):[Ye(t)]),u=e.watch(c,h=>{if(s(),i.value&&l){a=new ResizeObserver(n);for(const f of h)f&&a.observe(f,r)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return ql(d),{isSupported:i,stop:d}}function Qo(t,n={width:0,height:0},o={}){const{window:l=qt,box:r="content-box"}=o,a=e.computed(()=>{var h,f;return(f=(h=Ye(t))==null?void 0:h.namespaceURI)==null?void 0:f.includes("svg")}),i=e.ref(n.width),s=e.ref(n.height),{stop:c}=gp(t,([h])=>{const f=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(l&&a.value){const k=Ye(t);if(k){const T=k.getBoundingClientRect();i.value=T.width,s.value=T.height}}else if(f){const k=Array.isArray(f)?f:[f];i.value=k.reduce((T,{inlineSize:E})=>T+E,0),s.value=k.reduce((T,{blockSize:E})=>T+E,0)}else i.value=h.contentRect.width,s.value=h.contentRect.height},o);mp(()=>{const h=Ye(t);h&&(i.value="offsetWidth"in h?h.offsetWidth:n.width,s.value="offsetHeight"in h?h.offsetHeight:n.height)});const u=e.watch(()=>Ye(t),h=>{i.value=h?n.width:0,s.value=h?n.height:0});function d(){c(),u()}return{width:i,height:s,stop:d}}const hp=["id","open"],Ep={class:"d-flex gap-2 align-items-center"},kp={key:0,class:"d-flex flex-grow-1"},yp=["id"],vp=e.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(t,{emit:n}){const o=t,l=e.ref(!0),r=Zl(),a=n,i=e.computed(()=>`#${o.href}-body`),s=u=>{u.preventDefault(),u.stopPropagation(),l.value=!l.value,c.value=!l.value,l.value||a("expand"),!o.noUrlChange&&(l.value?history.replaceState(null,"",window.location.pathname+window.location.search):window.location.hash=i.value)},c=e.ref(!1);return e.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),e.watch(()=>r.value.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,d)=>(e.openBlock(),e.createElementBlock("details",{id:t.href,open:c.value},[e.createElementVNode("summary",{class:e.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:l.value}]),onClick:s},[e.createElementVNode("span",Ep,[t.arrow?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value?Jf:rp),{key:0,class:"arrow"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.clickableText)+" ",1),e.renderSlot(u.$slots,"additionalButtonText",{},void 0,!0)]),u.$slots.buttonRight?(e.openBlock(),e.createElementBlock("span",kp,[e.renderSlot(u.$slots,"buttonRight",{collapsed:l.value},void 0,!0)])):e.createCommentVNode("",!0)],2),u.$slots.content?(e.openBlock(),e.createElementBlock("div",{key:0,id:t.href+"-body"},[e.createElementVNode("div",null,[e.renderSlot(u.$slots,"content",{},void 0,!0)])],8,yp)):e.createCommentVNode("",!0)],8,hp))}}),Et=A(vp,[["__scopeId","data-v-6b6ffd9a"]]),Cp={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_p=["aria-hidden","aria-label"],Np=["fill","width","height"],Sp={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},bp={key:0};function wp(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Sp,[o.title?(e.openBlock(),e.createElementBlock("title",bp,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Np))],16,_p)}const Zn=A(Cp,[["render",wp]]),Lp={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Bp=["aria-hidden","aria-label"],Vp=["fill","width","height"],Tp={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},$p={key:0};function Ip(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Tp,[o.title?(e.openBlock(),e.createElementBlock("title",$p,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Vp))],16,Bp)}const Jn=A(Lp,[["render",Ip]]),Ap=["id","open"],Dp={key:0,class:"chevron"},Op=["id"],xp=e.defineComponent({__name:"CollapsibleV2",props:{href:{default:Math.random().toString(36).substring(2,5)},title:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(t,{emit:n}){const o=t,l=e.ref(!0),r=Zl(),a=n,i=e.computed(()=>`#${o.href}-body`),s=u=>{if(u.preventDefault(),l.value=!l.value,c.value=!l.value,l.value||a("expand"),o.noUrlChange)return;const d=window.location.pathname+window.location.search+(l.value?"":i.value);try{window.history.pushState(null,"",d)}catch{try{l.value?window.history.replaceState(null,"",window.location.pathname+window.location.search):window.location.hash=i.value}catch{}}},c=e.ref(!1);return e.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),e.watch(()=>r.value.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,d)=>(e.openBlock(),e.createElementBlock("details",{id:t.href,open:c.value},[e.createElementVNode("summary",{class:e.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:l.value}]),onClick:s},[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),e.renderSlot(u.$slots,"additional",{},void 0,!0)]),e.renderSlot(u.$slots,"right",{},void 0,!0),t.arrow?(e.openBlock(),e.createElementBlock("span",Dp,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value?Zn:Jn)))])):e.createCommentVNode("",!0)],2),u.$slots.content?(e.openBlock(),e.createElementBlock("div",{key:0,id:t.href+"-body"},[e.createElementVNode("div",null,[e.renderSlot(u.$slots,"content",{},void 0,!0)])],8,Op)):e.createCommentVNode("",!0)],8,Ap))}}),kt=A(xp,[["__scopeId","data-v-23ac75a7"]]),Pp=["href"],Rp={class:"top-row"},Mp={class:"icon-content"},Fp=["src","alt"],Up={class:"text-content"},Hp={key:0,class:"description"},zp={class:"footer"},Wp={class:"bottom-row"},jp={class:"left"},Gp={key:0},Kp={key:1},Yp=e.defineComponent({__name:"SubgroupCard",props:{iconSrc:{default:void 0},text:{},routePath:{},totalCount:{default:0},description:{default:""},href:{default:void 0},isActive:{type:Boolean,default:!1},blueprintsCount:{default:0}},emits:["navigate"],setup(t,{emit:n}){const o=t,l=n,r=e.computed(()=>o.href===void 0?`${o.routePath}/${Ce(o.text)}`:o.href);return(a,i)=>(e.openBlock(),e.createElementBlock("a",{href:r.value,onClick:i[0]||(i[0]=e.withModifiers(s=>l("navigate",r.value),["prevent"]))},[e.createElementVNode("div",{class:e.normalizeClass(["plugin",{"is-active":t.isActive}])},[e.createElementVNode("div",Rp,[e.createElementVNode("div",Mp,[t.iconSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.iconSrc,alt:`${t.text} icon`},null,8,Fp)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Up,[e.createElementVNode("h6",null,e.toDisplayString(t.text),1),t.description?(e.openBlock(),e.createElementBlock("p",Hp,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",zp,[i[3]||(i[3]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",Wp,[e.createElementVNode("div",jp,[o.totalCount?(e.openBlock(),e.createElementBlock("p",Gp,[e.createTextVNode(e.toDisplayString(o.totalCount??0)+" ",1),i[1]||(i[1]=e.createElementVNode("span",null,"Tasks",-1))])):e.createCommentVNode("",!0),o.blueprintsCount?(e.openBlock(),e.createElementBlock("p",Kp,[e.createTextVNode(e.toDisplayString(o.blueprintsCount??0)+" ",1),i[2]||(i[2]=e.createElementVNode("span",null,"Blueprints",-1))])):e.createCommentVNode("",!0)]),e.createVNode(Zn)])])],2)],8,Pp))}}),Jl=A(Yp,[["__scopeId","data-v-4c31d96c"]]),qp=["href"],Xp={class:"element-card"},Zp={class:"top-row"},Jp={class:"text-capitalize"},Qp={key:0},eg={class:"plugin-info"},tg={class:"plugin-class"},ng=e.defineComponent({__name:"ElementCard",props:{text:{},routePath:{},pluginClass:{},href:{},title:{}},emits:["navigate"],setup(t,{emit:n}){const o=t,l=n,r=e.computed(()=>o.href===void 0?`${o.routePath}/${Ce(o.text)}`:o.href);return(a,i)=>(e.openBlock(),e.createElementBlock("a",{href:r.value,onClick:i[0]||(i[0]=e.withModifiers(s=>l("navigate",r.value),["prevent"]))},[e.createElementVNode("div",Xp,[e.createElementVNode("div",Zp,[e.createElementVNode("h6",Jp,e.toDisplayString(t.text),1),e.createVNode(Zn)]),t.title?(e.openBlock(),e.createElementBlock("div",Qp,[e.renderSlot(a.$slots,"markdown",{content:t.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",eg,[e.createElementVNode("code",tg,e.toDisplayString(t.pluginClass),1)])])],8,qp))}}),Ql=A(ng,[["__scopeId","data-v-0c96172a"]]),og={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lg=["aria-hidden","aria-label"],rg=["fill","width","height"],ag={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},ig={key:0};function sg(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon content-copy-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",ag,[o.title?(e.openBlock(),e.createElementBlock("title",ig,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,rg))],16,lg)}const cg=A(og,[["render",sg]]),ug={key:0,class:"language"},dg=["innerHTML"],mg=e.defineComponent({__name:"SchemaToCode",props:{highlighter:{},code:{default:""},language:{default:null},filename:{default:null},highlights:{default:()=>[]},meta:{default:null},theme:{default:"github-dark"}},setup(t){const n={ContentCopy:e.shallowRef(cg),Check:e.shallowRef(Rl)},o=t,l=e.ref(!1),r=e.ref(),a=e.shallowRef(n.ContentCopy.value),i=e.ref(),s=e.ref(),c=e.computed(()=>o.highlighter.codeToHtml(o.code,{lang:o.language,theme:o.theme}));function u(){l.value=!0,r.value&&e.nextTick(()=>{i.value&&s.value&&Pr.createPopper(i.value,s.value,{placement:"left"})})}function d(){clearTimeout(r.value),navigator.clipboard.writeText(o.code.trimEnd()),a.value=n.Check.value,r.value=setTimeout(()=>{a.value=n.ContentCopy.value,r.value=void 0},2e3)}return(h,f)=>(e.openBlock(),e.createElementBlock("div",{class:"code-block",onMouseover:u,onMouseleave:f[0]||(f[0]=k=>l.value=!1)},[t.language&&!l.value?(e.openBlock(),e.createElementBlock("div",ug,e.toDisplayString(t.language),1)):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{ref_key:"copyButton",ref:i,class:"copy"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value),{onClick:d}))],512),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:s,id:"copied-tooltip",role:"tooltip"},[...f[1]||(f[1]=[e.createTextVNode(" Copied! ",-1),e.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)])],512)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{innerHTML:c.value},null,8,dg)],32))}}),ot=A(mg,[["__scopeId","data-v-a899f6a1"]]);function Vt(t){if(t.type)return Array.isArray(t.type)?t.type:[t.type];if(t.$ref){const o=t.$ref.split("/");return["#"+o[o.length-1]]}}function er(t){const n=t.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function Qn(t){if(t.enum)return t.enum;if(t.items?.enum)return t.items.enum;if(t.additionalProperties?.enum)return t.additionalProperties.enum}function tr(t){return t.allOf&&(t=t.allOf.reduce((n,o)=>({...n,...o}),{...t}),delete t.allOf),t}function it(t){const n={},o=r=>{const a=Vt(r);if(a&&a.length>0)return a;if(r.anyOf)return r.anyOf.flatMap(Vt).filter(i=>i!==void 0).filter(b.Utils.distinctFilter)},l=o(t);if(l?n.types=l:n.types=["object"],n.types.includes("array")&&t.items){const r=o(t.items);r&&t.items.anyOf&&(n.types=n.types.filter(a=>a!=="array").concat(r))}return t.additionalProperties?n.subType=Vt(t.additionalProperties)?.[0]:t.items&&(n.subType=Vt(t.items)?.[0]),n}function eo(t){return t?.$deprecated===!0||t?.$deprecated==="true"}function nr(t,n,o=new Set){if(!n)return[];const l=it(t),r=[];if(l.types.forEach(a=>{if(a.startsWith("#")){const i=a.slice(1);n[i]&&!o.has(i)&&!r.includes(i)&&r.push(i)}}),l.subType?.startsWith("#")){const a=l.subType.slice(1);n[a]&&!o.has(a)&&!r.includes(a)&&r.push(a)}return r.filter(a=>!eo(n[a])).map(a=>{const i=n[a],s=i?.properties?{...i.properties}:{},c=i?.$examples||s.$examples;return{key:a,title:i?.title??a.split("_")[0],description:i?.description,properties:s,$examples:c}})}function or(t){return t.$dynamic===!0?!0:t.$dynamic===!1?!1:t.anyOf?.some(n=>n.$dynamic===!0)??!1}const fg={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pg=["aria-hidden","aria-label"],gg=["fill","width","height"],hg={d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"},Eg={key:0};function kg(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon file-document-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",hg,[o.title?(e.openBlock(),e.createElementBlock("title",Eg,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,gg))],16,pg)}const yg=A(fg,[["render",kg]]),vg={class:"me-3"},Cg={class:"d-flex flex-column"},_g=e.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(t){const n=t,o=e.computed(()=>{switch(n.type){case"success":return yg;case"info":return At;case"warning":return Kt;case"danger":return hn;default:return At}});return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass("doc-alert alert alert-"+t.type),role:"alert"},[e.createElementVNode("div",vg,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),e.createElementVNode("div",Cg,[e.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),lr=A(_g,[["__scopeId","data-v-f7fd8bc1"]]),Ng={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sg=["aria-hidden","aria-label"],bg=["fill","width","height"],wg={d:"M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z"},Lg={key:0};function Bg(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",wg,[o.title?(e.openBlock(),e.createElementBlock("title",Lg,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,bg))],16,Sg)}const rr=A(Ng,[["render",Bg]]),Vg={class:"property-detail"},Tg={key:0},$g=["href"],Ig={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},Ag={class:"ref-type"},Dg={key:1,class:"type-box rounded fs-7 px-2 py-1"},Og={key:1},xg={class:"border rounded px-2 py-1"},Pg={key:2},Rg={class:"border rounded px-2 py-1"},Mg={key:3},Fg={class:"border rounded px-2 py-1"},Ug={key:4},Hg={class:"border rounded px-2 py-1"},zg={key:5},Wg={class:"border rounded px-2 py-1"},jg={key:6},Gg={class:"border rounded px-2 py-1"},Kg={key:7},Yg={class:"border rounded px-2 py-1"},qg={key:8},Xg={class:"border rounded px-2 py-1"},Zg={key:9},Jg={class:"border rounded px-2 py-1"},Qg={key:10},eh={class:"border rounded px-2 py-1"},th={key:11},nh={class:"border rounded px-2 py-1"},oh={key:12},lh={class:"border rounded px-2 py-1"},rh={key:13},ah={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},ih={key:14},sh={class:"property-description markdown"},ch={key:2},uh=e.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(t){const n=t,o=e.ref(it(n.property).subType),l=e.ref(Qn(n.property)),r=b.sanitizeForMarkdown;return(a,i)=>(e.openBlock(),e.createElementBlock("div",Vg,[o.value?(e.openBlock(),e.createElementBlock("div",Tg,[i[1]||(i[1]=e.createElementVNode("span",null," SubType ",-1)),o.value.startsWith("#")?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.value,onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("button",Ig,[e.createElementVNode("span",Ag,e.toDisplayString(e.unref(er)(o.value)),1),e.createVNode(rr)])],8,$g)):(e.openBlock(),e.createElementBlock("span",Dg,e.toDisplayString(o.value),1))])):e.createCommentVNode("",!0),t.property.default!==void 0?(e.openBlock(),e.createElementBlock("div",Og,[i[2]||(i[2]=e.createElementVNode("span",null," Default ",-1)),e.createElementVNode("code",xg,e.toDisplayString(t.property.default),1)])):e.createCommentVNode("",!0),t.property.pattern!==void 0?(e.openBlock(),e.createElementBlock("div",Pg,[i[3]||(i[3]=e.createElementVNode("span",null," Validation RegExp ",-1)),e.createElementVNode("code",Rg,e.toDisplayString(t.property.pattern),1)])):e.createCommentVNode("",!0),t.property.unit!==void 0&&t.property.unit.trim().length>0?(e.openBlock(),e.createElementBlock("div",Mg,[i[4]||(i[4]=e.createElementVNode("span",null," Unit ",-1)),e.createElementVNode("code",Fg,e.toDisplayString(t.property.unit),1)])):e.createCommentVNode("",!0),t.property.minLength!==void 0?(e.openBlock(),e.createElementBlock("div",Ug,[i[5]||(i[5]=e.createElementVNode("span",null," Min length ",-1)),e.createElementVNode("code",Hg,e.toDisplayString(t.property.minLength),1)])):e.createCommentVNode("",!0),t.property.maxLength!==void 0?(e.openBlock(),e.createElementBlock("div",zg,[i[6]||(i[6]=e.createElementVNode("span",null," Max length ",-1)),e.createElementVNode("code",Wg,e.toDisplayString(t.property.maxLength),1)])):e.createCommentVNode("",!0),t.property.minItems!==void 0?(e.openBlock(),e.createElementBlock("div",jg,[i[7]||(i[7]=e.createElementVNode("span",null," Min items ",-1)),e.createElementVNode("code",Gg,e.toDisplayString(t.property.minItems),1)])):e.createCommentVNode("",!0),t.property.maxItems!==void 0?(e.openBlock(),e.createElementBlock("div",Kg,[i[8]||(i[8]=e.createElementVNode("span",null," Max items ",-1)),e.createElementVNode("code",Yg,e.toDisplayString(t.property.maxItems),1)])):e.createCommentVNode("",!0),t.property.minimum!==void 0?(e.openBlock(),e.createElementBlock("div",qg,[i[9]||(i[9]=e.createElementVNode("span",null," Minimum ",-1)),e.createElementVNode("code",Xg," >= "+e.toDisplayString(t.property.minimum),1)])):e.createCommentVNode("",!0),t.property.exclusiveMinimum!==void 0?(e.openBlock(),e.createElementBlock("div",Zg,[i[10]||(i[10]=e.createElementVNode("span",null," Minimum ",-1)),e.createElementVNode("code",Jg," > "+e.toDisplayString(t.property.minimum),1)])):e.createCommentVNode("",!0),t.property.maximum!==void 0?(e.openBlock(),e.createElementBlock("div",Qg,[i[11]||(i[11]=e.createElementVNode("span",null," Maximum ",-1)),e.createElementVNode("code",eh," <= "+e.toDisplayString(t.property.maximum),1)])):e.createCommentVNode("",!0),t.property.exclusiveMaximum!==void 0?(e.openBlock(),e.createElementBlock("div",th,[i[12]||(i[12]=e.createElementVNode("span",null," Maximum ",-1)),e.createElementVNode("code",nh," < "+e.toDisplayString(t.property.maximum),1)])):e.createCommentVNode("",!0),t.property.format!==void 0?(e.openBlock(),e.createElementBlock("div",oh,[i[13]||(i[13]=e.createElementVNode("span",null," Format ",-1)),e.createElementVNode("code",lh,e.toDisplayString(t.property.format),1)])):e.createCommentVNode("",!0),l.value!==void 0?(e.openBlock(),e.createElementBlock("div",rh,[i[14]||(i[14]=e.createElementVNode("span",null," Possible Values ",-1)),e.createElementVNode("div",ah,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(s,c)=>(e.openBlock(),e.createElementBlock("code",{class:"border rounded px-2 py-1",key:c},e.toDisplayString(s),1))),128))])])):e.createCommentVNode("",!0),t.property.title!==void 0||t.property.description!==void 0?(e.openBlock(),e.createElementBlock("div",ih,[e.createElementVNode("div",sh,[t.property.title!==void 0?e.renderSlot(a.$slots,"markdown",{key:0,content:e.unref(r)(t.property.title)},void 0,!0):e.createCommentVNode("",!0),t.property.description!==void 0?e.renderSlot(a.$slots,"markdown",{key:1,content:e.unref(r)(t.property.description)},void 0,!0):e.createCommentVNode("",!0),t.property.$internalStorageURI?(e.openBlock(),e.createElementBlock("div",ch,[e.createVNode(lr,{type:"info"},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]))}}),dh=A(uh,[["__scopeId","data-v-e4c1ea43"]]),mh={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fh=["aria-hidden","aria-label"],ph=["fill","width","height"],gh={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},hh={key:0};function Eh(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",gh,[o.title?(e.openBlock(),e.createElementBlock("title",hh,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,ph))],16,fh)}const ar=A(mh,[["render",Eh]]),kh={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},yh=["aria-hidden","aria-label"],vh=["fill","width","height"],Ch={d:"M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z"},_h={key:0};function Nh(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon snowflake-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Ch,[o.title?(e.openBlock(),e.createElementBlock("title",_h,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,vh))],16,yh)}const ir=A(kh,[["render",Nh]]),Sh={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},bh=["aria-hidden","aria-label"],wh=["fill","width","height"],Lh={d:"M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M15,10.5V9A2,2 0 0,0 13,7H9V17H13A2,2 0 0,0 15,15V13.5C15,12.7 14.3,12 13.5,12C14.3,12 15,11.3 15,10.5M13,15H11V13H13V15M13,11H11V9H13V11Z"},Bh={key:0};function Vh(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Lh,[o.title?(e.openBlock(),e.createElementBlock("title",Bh,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,wh))],16,bh)}const sr=A(Sh,[["render",Vh]]),Th={key:0,class:"d-flex flex-column gap-3 mb-3 mt-2"},$h={key:0,class:"markdown"},Ih={key:1,class:"examples-container"},Ah={class:"border overflow-hidden"},Dh={class:"d-flex flex-grow-1 align-items-center justify-content-between"},Oh={class:"d-flex gap-2"},xh={class:"d-flex flex-wrap justify-content-end gap-2"},Ph=["href"],Rh={class:"ref-type"},Mh={key:1,class:"type-box rounded fs-7 px-2 py-1"},Fh=e.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},definitions:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1},description:{default:void 0},examples:{default:void 0}},emits:["expand"],setup(t,{emit:n}){const o=t,l=n,r=e.ref(!1);e.watch(r,s=>{s&&l("expand")});const a=s=>s.filter(c=>!c.startsWith("#")||!eo(o.definitions?.[c.slice(1)]));function i(s){s=s??{};const c=[],u=[];for(const f in s)typeof s[f]=="object"&&(s[f]=tr(s[f]),s[f].$required?c.push(f):u.push(f));const d=[...c.sort(),...u.sort()],h={};return d.forEach(f=>{(!s[f].$deprecated||o.forceInclude?.includes(f))&&(h[f]=s[f])}),h}return(s,c)=>(e.openBlock(),e.createBlock(Et,{class:"section-collapsible","clickable-text":t.sectionName,href:t.href,onExpand:c[2]||(c[2]=u=>l("expand")),"initially-expanded":t.initiallyExpanded||r.value,"no-url-change":t.noUrlChange},e.createSlots({_:2},[Object.keys(t.properties??{}).length>0?{name:"content",fn:e.withCtx(()=>[t.description||t.examples&&t.examples.length>0?(e.openBlock(),e.createElementBlock("div",Th,[t.description?(e.openBlock(),e.createElementBlock("div",$h,[e.renderSlot(s.$slots,"markdown",{content:t.description},void 0,!0)])):e.createCommentVNode("",!0),t.examples&&t.examples.length>0?(e.openBlock(),e.createElementBlock("div",Ih,[c[3]||(c[3]=e.createElementVNode("h6",{class:"fw-bold mb-2"}," Examples ",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.examples,(u,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"mb-2"},[e.renderSlot(s.$slots,"example",{example:u},void 0,!0)]))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ah,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i(t.properties),(u,d)=>(e.openBlock(),e.createBlock(Et,{class:"property",key:d,arrow:!1,"clickable-text":d,href:t.href+"_"+d,onExpand:c[1]||(c[1]=h=>r.value=!0),"no-url-change":t.noUrlChange},{additionalButtonText:e.withCtx(()=>[u.$required?(e.openBlock(),e.createBlock(j,{key:0,class:"d-flex",title:"Required"},{default:e.withCtx(()=>[...c[4]||(c[4]=[e.createElementVNode("span",{class:"text-danger"}," *",-1)])]),_:1})):e.createCommentVNode("",!0)]),buttonRight:e.withCtx(({collapsed:h})=>[e.createElementVNode("span",Dh,[e.createElementVNode("span",Oh,[t.showDynamic&&!e.unref(or)(u)?(e.openBlock(),e.createBlock(j,{key:0,class:"d-flex",title:"Non-dynamic"},{default:e.withCtx(()=>[e.createVNode(ir,{class:"text-info"})]),_:1})):e.createCommentVNode("",!0),u.$beta?(e.openBlock(),e.createBlock(j,{key:1,class:"d-flex",title:"Beta"},{default:e.withCtx(()=>[e.createVNode(sr,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0),u.$deprecated?(e.openBlock(),e.createBlock(j,{key:2,class:"d-flex",title:"Deprecated"},{default:e.withCtx(()=>[e.createVNode(Kt,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("span",xh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a(e.unref(it)(u).types),f=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[f.startsWith("#")?(e.openBlock(),e.createElementBlock("a",{key:0,class:"d-flex fw-bold ref-type-box rounded fs-7 px-2 py-1",href:f,onClick:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("span",Rh,e.toDisplayString(e.unref(er)(f)),1),e.createVNode(rr)],8,Ph)):(e.openBlock(),e.createElementBlock("span",Mh,e.toDisplayString(f),1))],64))),128)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h?Jn:ar),{class:"arrow"}))])])]),content:e.withCtx(()=>[e.createVNode(dh,{property:u},{markdown:e.withCtx(({content:h})=>[e.renderSlot(s.$slots,"markdown",{content:h},void 0,!0)]),_:3},8,["property"])]),_:2},1032,["clickable-text","href","no-url-change"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded","no-url-change"]))}}),Tt=A(Fh,[["__scopeId","data-v-b4f5f7ad"]]),Uh={class:"d-flex flex-column gap-6"},Hh={class:"d-flex flex-column gap-3"},zh={key:0,class:"alert alert-info mb-2",role:"alert"},Wh={key:1,class:"plugin-title markdown"},jh={key:2,class:"markdown"},Gh={class:"d-flex flex-column gap-4"},Kh={class:"d-flex flex-column gap-3"},Yh={class:"markdown"},qh={key:0,class:"w-100 align-self-center"},Xh={class:"markdown"},Zh={class:"markdown"},Jh={class:"markdown"},Qh={class:"d-flex flex-column gap-7 ps-3"},e1={class:"markdown"},t1={class:"d-flex flex-column gap-2"},n1={key:0,class:"markdown"},o1=e.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(t){let n,o;const l=t,r=e.ref(!1),a=e.ref(new Set),i=e.ref(0),s=e.computed(()=>Object.entries(l.schema.definitions??{}).filter(([,E])=>!eo(E))),c=async()=>{const E=window.location.hash.slice(1);if(!E||!l.schema.definitions){a.value.clear();return}const N=E.replace(/-body$/,""),m=Object.keys(l.schema.definitions).find(y=>N===y||N.startsWith(y+"_"));if(m){r.value=!0,i.value+=1,a.value.clear(),a.value.add(m),await e.nextTick();let y=0;const S=30,_=()=>{const w=document.getElementById(N);w?w.scrollIntoView({behavior:"smooth",block:"start"}):y<S&&(y++,requestAnimationFrame(_))};requestAnimationFrame(_)}else a.value.clear()};e.watch([()=>l.schema,()=>l.pluginType],([E,N],[m,y])=>{(E!==m||N!==y)&&l.schema.definitions&&c()});const u=E=>E?.full?E.code:`id: ${l.pluginType.split(".").reverse()[0]?.toLowerCase()}
|
|
15
|
+
`),{element:k,original:T}});try{const f=c.type==="jpeg"?await r(s,c):await a(s,c);return c.shouldDownload&&u&&i(u),f}finally{h.forEach(({element:f,original:k})=>k?f.setAttribute("style",k):f.removeAttribute("style")),s.classList.remove("is-exporting")}}function r(s,c={quality:.95}){return o.value=null,Rf(s,c).then(u=>(t.value=u,n.value="jpeg",u)).catch(u=>{throw u.value=u,new Error(u)})}function a(s,c={quality:.95}){return o.value=null,Pf(s,c).then(u=>(t.value=u,n.value="png",u)).catch(u=>{throw u.value=u,new Error(u)})}function i(s){const c=document.createElement("a");c.download=`${s}.${n.value}`,c.href=t.value,c.click()}return{capture:l,download:i,dataUrl:t,error:o}}const Ff={key:1,class:"exporting"},Uf=e.defineComponent({__name:"Topology",props:{id:{},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{},flowId:{default:void 0},namespace:{default:void 0},expandedSubflows:{default:()=>[]},icons:{default:()=>({})},iconComponent:{default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},execution:{default:void 0},subflowsExecutions:{default:()=>({})},playgroundEnabled:{type:Boolean,default:!1},playgroundReadyToStart:{type:Boolean,default:!1},getNodeDimensions:{type:Function,default:void 0}},emits:[b.EVENTS.EDIT,b.EVENTS.DELETE,b.EVENTS.RUN_TASK,b.EVENTS.OPEN_LINK,b.EVENTS.SHOW_LOGS,b.EVENTS.SHOW_DESCRIPTION,b.EVENTS.RUN_TASK,"on-add-flowable-error",b.EVENTS.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",b.EVENTS.SHOW_CONDITION],setup(t,{emit:n}){const o=t,l=e.ref(!1),r=e.ref(),{getNodes:a,onNodeDrag:i,onNodeDragStart:s,onNodeDragStop:c,fitView:u,setElements:d,vueFlowRef:h}=oe.useVueFlow(o.id),f=e.ref({}),k=e.ref([]),T=e.ref(new Set),E=e.ref([]),{capture:N}=Mf();e.provide(Gn,e.computed(()=>o.execution)),e.provide(Pl,e.computed(()=>o.subflowsExecutions));const m=n;e.onMounted(()=>{y()}),e.watch(()=>o.flowGraph,()=>{y()}),e.watch(()=>o.isHorizontal,()=>{y()});const y=()=>{b.cleanGraph(o.id),e.nextTick(()=>{m("loading",!0);const x=T.value;T.value=new Set,k.value=[],f.value={},x.forEach(H=>R(b.CLUSTER_PREFIX+H,!1,!1));const I=b.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,k.value,o.isHorizontal,f.value,T.value,E.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction,o.getNodeDimensions);I&&(d(I),u(),m("loading",!1))})},S=x=>{l.value||b.linkedElements(o.id,x.uid).forEach(I=>{I?.type==="task"&&(I.style={...I.style,outline:"0.5px solid "+_e("--bs-gray-900")},I.class="rounded-3")})},_=()=>{w()},w=()=>{a.value.filter(x=>x.type==="task"||x.type==="trigger").forEach(x=>{x.style={...x.style,opacity:"1",outline:"none"},x.class=""})};s(x=>{l.value=!0,w(),x.node.style={...x.node.style,zIndex:1976},r.value=x.node.position}),c(x=>{if(l.value=!1,x.intersections&&C(x.intersections,x.node)===null){const I=x.node,H=x.intersections.find(P=>P.type==="task");if(H)try{o.source&&m("swapped-task",{newSource:W.swapBlocks({source:o.source,section:"tasks",key1:b.Utils.afterLastDot(I.id)??"",key2:b.Utils.afterLastDot(H.id)??""}),swappedTasks:[I.id,H.id]})}catch(P){m("message",{variant:"error",title:"cannot swap tasks",message:`${P.message}, ${P.messageOptions}`}),I.position=r.value}else I.position=r.value}else x.node.position=r.value;w(),x.node.style={...x.node.style,zIndex:5},r.value=null});const $=e.computed(()=>o.flowGraph?.clusters?o.flowGraph.clusters.filter(x=>x.cluster.type.endsWith("SubflowGraphCluster")).map(x=>x.cluster.taskNode.uid+"."):[]);i(x=>{w(),a.value.filter(I=>I.id!==x.node.id).forEach(I=>{I.type==="trigger"||I.type==="task"&&(I.id.startsWith(x.node.id+".")||x.node.id.startsWith(I.id+"."))||$?.value?.some(H=>I.id.startsWith(H))?I.style={...I.style,opacity:"0.5"}:I.style={...I.style,opacity:"1"}}),x.intersections&&!C(x.intersections,x.node)&&x.intersections.filter(I=>I.type==="task").length===1&&(x.intersections.forEach(I=>{I.type==="task"&&(I.style={...I.style,outline:"0.5px solid "+_e("--bs-primary")},I.class="rounded-3")}),x.node.style={...x.node.style,outline:"0.5px solid "+_e("--bs-primary")},x.node.class="rounded-3")});const C=(x,I)=>{const H=x.filter(P=>P.type==="task").map(P=>b.Utils.afterLastDot(P.id));if(H.length>1)return"toomuchtaskerror";try{if(H.length===1&&o.source&&W.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:b.Utils.afterLastDot(H[0])??"",key2:b.Utils.afterLastDot(I.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return x.filter(P=>P.type==="trigger").length>0?"triggererror":null},R=(x,I,H=!1)=>{const P=o.flowGraph.clusters.find(me=>me.cluster.uid.endsWith(x)),$e=x.replace(b.CLUSTER_PREFIX,"");T.value.add($e),k.value=k.value.concat(P.nodes.filter(me=>me!==$e||H)),k.value=k.value.concat([P.cluster.uid]),f.value={...f.value,[P.cluster.uid]:$e,[P.start]:$e,[P.end]:$e};for(let me of P.nodes)o.flowGraph.clusters.map(He=>He.cluster.uid).includes(me)&&R(me,!1,!0);I&&y()},U=x=>{if(["io.kestra.core.tasks.flows.Flow","io.kestra.core.tasks.flows.Subflow","io.kestra.plugin.core.flow.Subflow","io.kestra.core.tasks.flows.ForEachItem$ForEachItemExecutable","io.kestra.plugin.core.flow.ForEachItem$ForEachItemExecutable"].includes(x.type)&&!o.expandedSubflows.includes(x.id)){m("expand-subflow",[...o.expandedSubflows,x.id]);return}f.value={},k.value=[],E.value=[],T.value.delete(x.id),T.value.forEach(H=>R(H,!1,!1)),y()},Q=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,ge=e.ref(!0),Z=e.ref(!1),Re=()=>Z.value=!Z.value;function Je(x){if(!h.value){console.warn("Flow not found");return}ge.value=!1,N(h.value,{type:x,shouldDownload:!0}).then(()=>ge.value=!0).finally(()=>Z.value=!1)}return(x,I)=>(e.openBlock(),e.createBlock(e.unref(oe.VueFlow),{id:t.id,"default-marker-color":e.unref(_e)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":e.withCtx(H=>[e.createVNode(uu,e.mergeProps(H,{onCollapse:I[0]||(I[0]=P=>R(P,!0))}),null,16)]),"node-dot":e.withCtx(H=>[e.createVNode(yu,e.normalizeProps(e.guardReactiveProps(H)),null,16)]),"node-task":e.withCtx(H=>[e.createVNode(pm,e.mergeProps(H,{icons:t.icons,"icon-component":t.iconComponent,"playground-enabled":t.playgroundEnabled,"playground-ready-to-start":t.playgroundReadyToStart,onEdit:I[1]||(I[1]=P=>m(e.unref(b.EVENTS).EDIT,P)),onDelete:I[2]||(I[2]=P=>m(e.unref(b.EVENTS).DELETE,P)),onRunTask:I[3]||(I[3]=P=>m(e.unref(b.EVENTS).RUN_TASK,P)),onExpand:I[4]||(I[4]=P=>U(P)),onOpenLink:I[5]||(I[5]=P=>m(e.unref(b.EVENTS).OPEN_LINK,P)),onShowLogs:I[6]||(I[6]=P=>m(e.unref(b.EVENTS).SHOW_LOGS,P)),onShowDescription:I[7]||(I[7]=P=>m(e.unref(b.EVENTS).SHOW_DESCRIPTION,P)),onShowCondition:I[8]||(I[8]=P=>m(e.unref(b.EVENTS).SHOW_CONDITION,P)),onMouseover:I[9]||(I[9]=P=>S(P)),onMouseleave:I[10]||(I[10]=P=>_()),onAddError:I[11]||(I[11]=P=>m("on-add-flowable-error",P)),"enable-subflow-interaction":t.enableSubflowInteraction}),{details:e.withCtx(()=>[e.renderSlot(x.$slots,"taskDetails",e.normalizeProps(e.guardReactiveProps(H)),void 0,!0)]),_:2},1040,["icons","icon-component","playground-enabled","playground-ready-to-start","enable-subflow-interaction"])]),"node-custom":e.withCtx(H=>[e.createVNode(jn,e.mergeProps(H,{icons:t.icons,"icon-component":t.iconComponent}),null,16,["icons","icon-component"])]),"node-trigger":e.withCtx(H=>[e.createVNode(hm,e.mergeProps(H,{icons:t.icons,"icon-component":t.iconComponent,"is-read-only":t.isReadOnly,"is-allowed-edit":t.isAllowedEdit,onDelete:I[12]||(I[12]=P=>m(e.unref(b.EVENTS).DELETE,P)),onEdit:I[13]||(I[13]=P=>m(e.unref(b.EVENTS).EDIT,P)),onShowDescription:I[14]||(I[14]=P=>m(e.unref(b.EVENTS).SHOW_DESCRIPTION,P))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":e.withCtx(H=>[e.createVNode(Vm,e.mergeProps(H,{onExpand:I[15]||(I[15]=P=>U(P))}),null,16)]),"edge-edge":e.withCtx(H=>[e.createVNode(Iu,e.mergeProps(H,{"yaml-source":t.source,onAddTask:I[16]||(I[16]=P=>m(e.unref(b.EVENTS).ADD_TASK,P)),"is-read-only":t.isReadOnly,"is-allowed-edit":t.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:e.withCtx(()=>[e.createVNode(e.unref(Qc),{"pattern-color":Q?e.unref(_e)("--bs-grey-500"):e.unref(_e)("--bs-grey-300")},null,8,["pattern-color"]),ge.value?(e.openBlock(),e.createBlock(e.unref(an.Controls),{key:0,"show-interactive":!1},{default:e.withCtx(()=>[t.toggleOrientationButton?(e.openBlock(),e.createBlock(e.unref(an.ControlButton),{key:0,onClick:I[17]||(I[17]=H=>m("toggle-orientation",H))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.isHorizontal?Pm:Am)))]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(an.ControlButton),{onClick:Re},{default:e.withCtx(()=>[e.createVNode(Wm)]),_:1}),Z.value?(e.openBlock(),e.createElementBlock("ul",Ff,[e.createElementVNode("li",{onClick:I[18]||(I[18]=H=>Je("jpeg")),class:"item"}," Export as .JPEG "),e.createElementVNode("li",{onClick:I[19]||(I[19]=H=>Je("png")),class:"item"}," Export as .PNG ")])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0)]),_:3},8,["id","default-marker-color"]))}}),Hf=A(Uf,[["__scopeId","data-v-6f358b88"]]),zf={class:"text"},Wf=e.defineComponent({__name:"Status",props:{status:{},title:{default:void 0},icon:{type:Boolean,default:!1},size:{default:"default"}},setup(t){const n=t,o=e.computed(()=>n.icon?ne.icon()[n.status?.toUpperCase()]:void 0),l=e.computed(()=>n.title??n.status),r=e.computed(()=>["status-button",n.status?.toLowerCase()&&`status-button--${n.status.toLowerCase()}`,n.size!=="default"&&`status-button--${n.size}`].filter(Boolean));return(a,i)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(r.value)},[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:0,class:"icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",zf,e.toDisplayString(l.value),1)],2))}}),jf=A(Wf,[["__scopeId","data-v-ce6b0e30"]]),Gf={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Kf=["aria-hidden","aria-label"],Yf=["fill","width","height"],qf={d:"M10,17L15,12L10,7V17Z"},Xf={key:0};function Zf(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-right-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",qf,[o.title?(e.openBlock(),e.createElementBlock("title",Xf,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Yf))],16,Kf)}const Jf=A(Gf,[["render",Zf]]),Qf={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ep=["aria-hidden","aria-label"],tp=["fill","width","height"],np={d:"M7,10L12,15L17,10H7Z"},op={key:0};function lp(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-down-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",np,[o.title?(e.openBlock(),e.createElementBlock("title",op,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,tp))],16,ep)}const rp=A(Qf,[["render",lp]]);function ql(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function Xl(t){return typeof t=="function"?t():e.unref(t)}const ap=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ip=Object.prototype.toString,sp=t=>ip.call(t)==="[object Object]",cp=()=>{};function up(t){return Object.entries(t)}function dp(t){return e.getCurrentInstance()}function mp(t,n=!0,o){dp()?e.onMounted(t,o):n?t():e.nextTick(t)}function Ye(t){var n;const o=Xl(t);return(n=o?.$el)!=null?n:o}const qt=ap?window:void 0;function Zo(...t){let n,o,l,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,r]=t,n=qt):[n,o,l,r]=t,!n)return cp;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},s=(d,h,f,k)=>(d.addEventListener(h,f,k),()=>d.removeEventListener(h,f,k)),c=e.watch(()=>[Ye(n),Xl(r)],([d,h])=>{if(i(),!d)return;const f=sp(h)?{...h}:h;a.push(...o.flatMap(k=>l.map(T=>s(d,k,T,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return ql(u),u}function fp(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function pp(t){const n=fp();return e.computed(()=>(n.value,!!t()))}const Jo=["hash","host","hostname","href","pathname","port","protocol","search"];function Zl(t={}){const{window:n=qt}=t,o=Object.fromEntries(Jo.map(a=>[a,e.ref()]));for(const[a,i]of up(o))e.watch(i,s=>{!n?.location||n.location[a]===s||(n.location[a]=s)});const l=a=>{var i;const{state:s,length:c}=n?.history||{},{origin:u}=n?.location||{};for(const d of Jo)o[d].value=(i=n?.location)==null?void 0:i[d];return e.reactive({trigger:a,state:s,length:c,origin:u,...o})},r=e.ref(l("load"));return n&&(Zo(n,"popstate",()=>r.value=l("popstate"),{passive:!0}),Zo(n,"hashchange",()=>r.value=l("hashchange"),{passive:!0})),r}function gp(t,n,o={}){const{window:l=qt,...r}=o;let a;const i=pp(()=>l&&"ResizeObserver"in l),s=()=>{a&&(a.disconnect(),a=void 0)},c=e.computed(()=>Array.isArray(t)?t.map(h=>Ye(h)):[Ye(t)]),u=e.watch(c,h=>{if(s(),i.value&&l){a=new ResizeObserver(n);for(const f of h)f&&a.observe(f,r)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return ql(d),{isSupported:i,stop:d}}function Qo(t,n={width:0,height:0},o={}){const{window:l=qt,box:r="content-box"}=o,a=e.computed(()=>{var h,f;return(f=(h=Ye(t))==null?void 0:h.namespaceURI)==null?void 0:f.includes("svg")}),i=e.ref(n.width),s=e.ref(n.height),{stop:c}=gp(t,([h])=>{const f=r==="border-box"?h.borderBoxSize:r==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(l&&a.value){const k=Ye(t);if(k){const T=k.getBoundingClientRect();i.value=T.width,s.value=T.height}}else if(f){const k=Array.isArray(f)?f:[f];i.value=k.reduce((T,{inlineSize:E})=>T+E,0),s.value=k.reduce((T,{blockSize:E})=>T+E,0)}else i.value=h.contentRect.width,s.value=h.contentRect.height},o);mp(()=>{const h=Ye(t);h&&(i.value="offsetWidth"in h?h.offsetWidth:n.width,s.value="offsetHeight"in h?h.offsetHeight:n.height)});const u=e.watch(()=>Ye(t),h=>{i.value=h?n.width:0,s.value=h?n.height:0});function d(){c(),u()}return{width:i,height:s,stop:d}}const hp=["id","open"],Ep={class:"d-flex gap-2 align-items-center"},kp={key:0,class:"d-flex flex-grow-1"},yp=["id"],vp=e.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(t,{emit:n}){const o=t,l=e.ref(!0),r=Zl(),a=n,i=e.computed(()=>`#${o.href}-body`),s=u=>{u.preventDefault(),u.stopPropagation(),l.value=!l.value,c.value=!l.value,l.value||a("expand"),!o.noUrlChange&&(l.value?history.replaceState(null,"",window.location.pathname+window.location.search):window.location.hash=i.value)},c=e.ref(!1);return e.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),e.watch(()=>r.value.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,d)=>(e.openBlock(),e.createElementBlock("details",{id:t.href,open:c.value},[e.createElementVNode("summary",{class:e.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:l.value}]),onClick:s},[e.createElementVNode("span",Ep,[t.arrow?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value?Jf:rp),{key:0,class:"arrow"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.clickableText)+" ",1),e.renderSlot(u.$slots,"additionalButtonText",{},void 0,!0)]),u.$slots.buttonRight?(e.openBlock(),e.createElementBlock("span",kp,[e.renderSlot(u.$slots,"buttonRight",{collapsed:l.value},void 0,!0)])):e.createCommentVNode("",!0)],2),u.$slots.content?(e.openBlock(),e.createElementBlock("div",{key:0,id:t.href+"-body"},[e.createElementVNode("div",null,[e.renderSlot(u.$slots,"content",{},void 0,!0)])],8,yp)):e.createCommentVNode("",!0)],8,hp))}}),Et=A(vp,[["__scopeId","data-v-6b6ffd9a"]]),Cp={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},_p=["aria-hidden","aria-label"],Np=["fill","width","height"],Sp={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},bp={key:0};function wp(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Sp,[o.title?(e.openBlock(),e.createElementBlock("title",bp,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Np))],16,_p)}const Zn=A(Cp,[["render",wp]]),Lp={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Bp=["aria-hidden","aria-label"],Vp=["fill","width","height"],Tp={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},$p={key:0};function Ip(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Tp,[o.title?(e.openBlock(),e.createElementBlock("title",$p,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Vp))],16,Bp)}const Jn=A(Lp,[["render",Ip]]),Ap=["id","open"],Dp={key:0,class:"chevron"},Op=["id"],xp=e.defineComponent({__name:"CollapsibleV2",props:{href:{default:Math.random().toString(36).substring(2,5)},title:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(t,{emit:n}){const o=t,l=e.ref(!0),r=Zl(),a=n,i=e.computed(()=>`#${o.href}-body`),s=u=>{if(u.preventDefault(),l.value=!l.value,c.value=!l.value,l.value||a("expand"),o.noUrlChange)return;const d=window.location.pathname+window.location.search+(l.value?"":i.value);try{window.history.pushState(null,"",d)}catch{try{l.value?window.history.replaceState(null,"",window.location.pathname+window.location.search):window.location.hash=i.value}catch{}}},c=e.ref(!1);return e.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),e.watch(()=>r.value.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,d)=>(e.openBlock(),e.createElementBlock("details",{id:t.href,open:c.value},[e.createElementVNode("summary",{class:e.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:l.value}]),onClick:s},[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),e.renderSlot(u.$slots,"additional",{},void 0,!0)]),e.renderSlot(u.$slots,"right",{},void 0,!0),t.arrow?(e.openBlock(),e.createElementBlock("span",Dp,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value?Zn:Jn)))])):e.createCommentVNode("",!0)],2),u.$slots.content?(e.openBlock(),e.createElementBlock("div",{key:0,id:t.href+"-body"},[e.createElementVNode("div",null,[e.renderSlot(u.$slots,"content",{},void 0,!0)])],8,Op)):e.createCommentVNode("",!0)],8,Ap))}}),kt=A(xp,[["__scopeId","data-v-23ac75a7"]]),Pp=["href"],Rp={class:"top-row"},Mp={class:"icon-content"},Fp=["src","alt"],Up={class:"text-content"},Hp={key:0,class:"description"},zp={class:"footer"},Wp={class:"bottom-row"},jp={class:"left"},Gp={key:0},Kp={key:1},Yp=e.defineComponent({__name:"SubgroupCard",props:{iconSrc:{default:void 0},text:{},routePath:{},totalCount:{default:0},description:{default:""},href:{default:void 0},isActive:{type:Boolean,default:!1},blueprintsCount:{default:0}},emits:["navigate"],setup(t,{emit:n}){const o=t,l=n,r=e.computed(()=>o.href===void 0?`${o.routePath}/${Ce(o.text)}`:o.href);return(a,i)=>(e.openBlock(),e.createElementBlock("a",{href:r.value,onClick:i[0]||(i[0]=e.withModifiers(s=>l("navigate",r.value),["prevent"]))},[e.createElementVNode("div",{class:e.normalizeClass(["plugin",{"is-active":t.isActive}])},[e.createElementVNode("div",Rp,[e.createElementVNode("div",Mp,[t.iconSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.iconSrc,alt:`${t.text} icon`},null,8,Fp)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Up,[e.createElementVNode("h6",null,e.toDisplayString(t.text),1),t.description?(e.openBlock(),e.createElementBlock("p",Hp,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",zp,[i[3]||(i[3]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",Wp,[e.createElementVNode("div",jp,[o.totalCount?(e.openBlock(),e.createElementBlock("p",Gp,[e.createTextVNode(e.toDisplayString(o.totalCount??0)+" ",1),i[1]||(i[1]=e.createElementVNode("span",null,"Tasks",-1))])):e.createCommentVNode("",!0),o.blueprintsCount?(e.openBlock(),e.createElementBlock("p",Kp,[e.createTextVNode(e.toDisplayString(o.blueprintsCount??0)+" ",1),i[2]||(i[2]=e.createElementVNode("span",null,"Blueprints",-1))])):e.createCommentVNode("",!0)]),e.createVNode(Zn)])])],2)],8,Pp))}}),Jl=A(Yp,[["__scopeId","data-v-4c31d96c"]]),qp=["href"],Xp={class:"element-card"},Zp={class:"top-row"},Jp={class:"text-capitalize"},Qp={key:0},eg={class:"plugin-info"},tg={class:"plugin-class"},ng=e.defineComponent({__name:"ElementCard",props:{text:{},routePath:{},pluginClass:{},href:{},title:{}},emits:["navigate"],setup(t,{emit:n}){const o=t,l=n,r=e.computed(()=>o.href===void 0?`${o.routePath}/${Ce(o.text)}`:o.href);return(a,i)=>(e.openBlock(),e.createElementBlock("a",{href:r.value,onClick:i[0]||(i[0]=e.withModifiers(s=>l("navigate",r.value),["prevent"]))},[e.createElementVNode("div",Xp,[e.createElementVNode("div",Zp,[e.createElementVNode("h6",Jp,e.toDisplayString(t.text),1),e.createVNode(Zn)]),t.title?(e.openBlock(),e.createElementBlock("div",Qp,[e.renderSlot(a.$slots,"markdown",{content:t.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",eg,[e.createElementVNode("code",tg,e.toDisplayString(t.pluginClass),1)])])],8,qp))}}),Ql=A(ng,[["__scopeId","data-v-ec3e36ad"]]),og={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},lg=["aria-hidden","aria-label"],rg=["fill","width","height"],ag={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},ig={key:0};function sg(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon content-copy-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",ag,[o.title?(e.openBlock(),e.createElementBlock("title",ig,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,rg))],16,lg)}const cg=A(og,[["render",sg]]),ug={key:0,class:"language"},dg=["innerHTML"],mg=e.defineComponent({__name:"SchemaToCode",props:{highlighter:{},code:{default:""},language:{default:null},filename:{default:null},highlights:{default:()=>[]},meta:{default:null},theme:{default:"github-dark"}},setup(t){const n={ContentCopy:e.shallowRef(cg),Check:e.shallowRef(Rl)},o=t,l=e.ref(!1),r=e.ref(),a=e.shallowRef(n.ContentCopy.value),i=e.ref(),s=e.ref(),c=e.computed(()=>o.highlighter.codeToHtml(o.code,{lang:o.language,theme:o.theme}));function u(){l.value=!0,r.value&&e.nextTick(()=>{i.value&&s.value&&Pr.createPopper(i.value,s.value,{placement:"left"})})}function d(){clearTimeout(r.value),navigator.clipboard.writeText(o.code.trimEnd()),a.value=n.Check.value,r.value=setTimeout(()=>{a.value=n.ContentCopy.value,r.value=void 0},2e3)}return(h,f)=>(e.openBlock(),e.createElementBlock("div",{class:"code-block",onMouseover:u,onMouseleave:f[0]||(f[0]=k=>l.value=!1)},[t.language&&!l.value?(e.openBlock(),e.createElementBlock("div",ug,e.toDisplayString(t.language),1)):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{ref_key:"copyButton",ref:i,class:"copy"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value),{onClick:d}))],512),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:s,id:"copied-tooltip",role:"tooltip"},[...f[1]||(f[1]=[e.createTextVNode(" Copied! ",-1),e.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)])],512)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{innerHTML:c.value},null,8,dg)],32))}}),ot=A(mg,[["__scopeId","data-v-a899f6a1"]]);function Vt(t){if(t.type)return Array.isArray(t.type)?t.type:[t.type];if(t.$ref){const o=t.$ref.split("/");return["#"+o[o.length-1]]}}function er(t){const n=t.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function Qn(t){if(t.enum)return t.enum;if(t.items?.enum)return t.items.enum;if(t.additionalProperties?.enum)return t.additionalProperties.enum}function tr(t){return t.allOf&&(t=t.allOf.reduce((n,o)=>({...n,...o}),{...t}),delete t.allOf),t}function it(t){const n={},o=r=>{const a=Vt(r);if(a&&a.length>0)return a;if(r.anyOf)return r.anyOf.flatMap(Vt).filter(i=>i!==void 0).filter(b.Utils.distinctFilter)},l=o(t);if(l?n.types=l:n.types=["object"],n.types.includes("array")&&t.items){const r=o(t.items);r&&t.items.anyOf&&(n.types=n.types.filter(a=>a!=="array").concat(r))}return t.additionalProperties?n.subType=Vt(t.additionalProperties)?.[0]:t.items&&(n.subType=Vt(t.items)?.[0]),n}function eo(t){return t?.$deprecated===!0||t?.$deprecated==="true"}function nr(t,n,o=new Set){if(!n)return[];const l=it(t),r=[];if(l.types.forEach(a=>{if(a.startsWith("#")){const i=a.slice(1);n[i]&&!o.has(i)&&!r.includes(i)&&r.push(i)}}),l.subType?.startsWith("#")){const a=l.subType.slice(1);n[a]&&!o.has(a)&&!r.includes(a)&&r.push(a)}return r.filter(a=>!eo(n[a])).map(a=>{const i=n[a],s=i?.properties?{...i.properties}:{},c=i?.$examples||s.$examples;return{key:a,title:i?.title??a.split("_")[0],description:i?.description,properties:s,$examples:c}})}function or(t){return t.$dynamic===!0?!0:t.$dynamic===!1?!1:t.anyOf?.some(n=>n.$dynamic===!0)??!1}const fg={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},pg=["aria-hidden","aria-label"],gg=["fill","width","height"],hg={d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"},Eg={key:0};function kg(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon file-document-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",hg,[o.title?(e.openBlock(),e.createElementBlock("title",Eg,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,gg))],16,pg)}const yg=A(fg,[["render",kg]]),vg={class:"me-3"},Cg={class:"d-flex flex-column"},_g=e.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(t){const n=t,o=e.computed(()=>{switch(n.type){case"success":return yg;case"info":return At;case"warning":return Kt;case"danger":return hn;default:return At}});return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass("doc-alert alert alert-"+t.type),role:"alert"},[e.createElementVNode("div",vg,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),e.createElementVNode("div",Cg,[e.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),lr=A(_g,[["__scopeId","data-v-f7fd8bc1"]]),Ng={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sg=["aria-hidden","aria-label"],bg=["fill","width","height"],wg={d:"M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z"},Lg={key:0};function Bg(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",wg,[o.title?(e.openBlock(),e.createElementBlock("title",Lg,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,bg))],16,Sg)}const rr=A(Ng,[["render",Bg]]),Vg={class:"property-detail"},Tg={key:0},$g=["href"],Ig={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},Ag={class:"ref-type"},Dg={key:1,class:"type-box rounded fs-7 px-2 py-1"},Og={key:1},xg={class:"border rounded px-2 py-1"},Pg={key:2},Rg={class:"border rounded px-2 py-1"},Mg={key:3},Fg={class:"border rounded px-2 py-1"},Ug={key:4},Hg={class:"border rounded px-2 py-1"},zg={key:5},Wg={class:"border rounded px-2 py-1"},jg={key:6},Gg={class:"border rounded px-2 py-1"},Kg={key:7},Yg={class:"border rounded px-2 py-1"},qg={key:8},Xg={class:"border rounded px-2 py-1"},Zg={key:9},Jg={class:"border rounded px-2 py-1"},Qg={key:10},eh={class:"border rounded px-2 py-1"},th={key:11},nh={class:"border rounded px-2 py-1"},oh={key:12},lh={class:"border rounded px-2 py-1"},rh={key:13},ah={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},ih={key:14},sh={class:"property-description markdown"},ch={key:2},uh=e.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(t){const n=t,o=e.ref(it(n.property).subType),l=e.ref(Qn(n.property)),r=b.sanitizeForMarkdown;return(a,i)=>(e.openBlock(),e.createElementBlock("div",Vg,[o.value?(e.openBlock(),e.createElementBlock("div",Tg,[i[1]||(i[1]=e.createElementVNode("span",null," SubType ",-1)),o.value.startsWith("#")?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.value,onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("button",Ig,[e.createElementVNode("span",Ag,e.toDisplayString(e.unref(er)(o.value)),1),e.createVNode(rr)])],8,$g)):(e.openBlock(),e.createElementBlock("span",Dg,e.toDisplayString(o.value),1))])):e.createCommentVNode("",!0),t.property.default!==void 0?(e.openBlock(),e.createElementBlock("div",Og,[i[2]||(i[2]=e.createElementVNode("span",null," Default ",-1)),e.createElementVNode("code",xg,e.toDisplayString(t.property.default),1)])):e.createCommentVNode("",!0),t.property.pattern!==void 0?(e.openBlock(),e.createElementBlock("div",Pg,[i[3]||(i[3]=e.createElementVNode("span",null," Validation RegExp ",-1)),e.createElementVNode("code",Rg,e.toDisplayString(t.property.pattern),1)])):e.createCommentVNode("",!0),t.property.unit!==void 0&&t.property.unit.trim().length>0?(e.openBlock(),e.createElementBlock("div",Mg,[i[4]||(i[4]=e.createElementVNode("span",null," Unit ",-1)),e.createElementVNode("code",Fg,e.toDisplayString(t.property.unit),1)])):e.createCommentVNode("",!0),t.property.minLength!==void 0?(e.openBlock(),e.createElementBlock("div",Ug,[i[5]||(i[5]=e.createElementVNode("span",null," Min length ",-1)),e.createElementVNode("code",Hg,e.toDisplayString(t.property.minLength),1)])):e.createCommentVNode("",!0),t.property.maxLength!==void 0?(e.openBlock(),e.createElementBlock("div",zg,[i[6]||(i[6]=e.createElementVNode("span",null," Max length ",-1)),e.createElementVNode("code",Wg,e.toDisplayString(t.property.maxLength),1)])):e.createCommentVNode("",!0),t.property.minItems!==void 0?(e.openBlock(),e.createElementBlock("div",jg,[i[7]||(i[7]=e.createElementVNode("span",null," Min items ",-1)),e.createElementVNode("code",Gg,e.toDisplayString(t.property.minItems),1)])):e.createCommentVNode("",!0),t.property.maxItems!==void 0?(e.openBlock(),e.createElementBlock("div",Kg,[i[8]||(i[8]=e.createElementVNode("span",null," Max items ",-1)),e.createElementVNode("code",Yg,e.toDisplayString(t.property.maxItems),1)])):e.createCommentVNode("",!0),t.property.minimum!==void 0?(e.openBlock(),e.createElementBlock("div",qg,[i[9]||(i[9]=e.createElementVNode("span",null," Minimum ",-1)),e.createElementVNode("code",Xg," >= "+e.toDisplayString(t.property.minimum),1)])):e.createCommentVNode("",!0),t.property.exclusiveMinimum!==void 0?(e.openBlock(),e.createElementBlock("div",Zg,[i[10]||(i[10]=e.createElementVNode("span",null," Minimum ",-1)),e.createElementVNode("code",Jg," > "+e.toDisplayString(t.property.minimum),1)])):e.createCommentVNode("",!0),t.property.maximum!==void 0?(e.openBlock(),e.createElementBlock("div",Qg,[i[11]||(i[11]=e.createElementVNode("span",null," Maximum ",-1)),e.createElementVNode("code",eh," <= "+e.toDisplayString(t.property.maximum),1)])):e.createCommentVNode("",!0),t.property.exclusiveMaximum!==void 0?(e.openBlock(),e.createElementBlock("div",th,[i[12]||(i[12]=e.createElementVNode("span",null," Maximum ",-1)),e.createElementVNode("code",nh," < "+e.toDisplayString(t.property.maximum),1)])):e.createCommentVNode("",!0),t.property.format!==void 0?(e.openBlock(),e.createElementBlock("div",oh,[i[13]||(i[13]=e.createElementVNode("span",null," Format ",-1)),e.createElementVNode("code",lh,e.toDisplayString(t.property.format),1)])):e.createCommentVNode("",!0),l.value!==void 0?(e.openBlock(),e.createElementBlock("div",rh,[i[14]||(i[14]=e.createElementVNode("span",null," Possible Values ",-1)),e.createElementVNode("div",ah,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(s,c)=>(e.openBlock(),e.createElementBlock("code",{class:"border rounded px-2 py-1",key:c},e.toDisplayString(s),1))),128))])])):e.createCommentVNode("",!0),t.property.title!==void 0||t.property.description!==void 0?(e.openBlock(),e.createElementBlock("div",ih,[e.createElementVNode("div",sh,[t.property.title!==void 0?e.renderSlot(a.$slots,"markdown",{key:0,content:e.unref(r)(t.property.title)},void 0,!0):e.createCommentVNode("",!0),t.property.description!==void 0?e.renderSlot(a.$slots,"markdown",{key:1,content:e.unref(r)(t.property.description)},void 0,!0):e.createCommentVNode("",!0),t.property.$internalStorageURI?(e.openBlock(),e.createElementBlock("div",ch,[e.createVNode(lr,{type:"info"},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]))}}),dh=A(uh,[["__scopeId","data-v-e4c1ea43"]]),mh={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fh=["aria-hidden","aria-label"],ph=["fill","width","height"],gh={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},hh={key:0};function Eh(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",gh,[o.title?(e.openBlock(),e.createElementBlock("title",hh,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,ph))],16,fh)}const ar=A(mh,[["render",Eh]]),kh={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},yh=["aria-hidden","aria-label"],vh=["fill","width","height"],Ch={d:"M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z"},_h={key:0};function Nh(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon snowflake-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Ch,[o.title?(e.openBlock(),e.createElementBlock("title",_h,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,vh))],16,yh)}const ir=A(kh,[["render",Nh]]),Sh={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},bh=["aria-hidden","aria-label"],wh=["fill","width","height"],Lh={d:"M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M15,10.5V9A2,2 0 0,0 13,7H9V17H13A2,2 0 0,0 15,15V13.5C15,12.7 14.3,12 13.5,12C14.3,12 15,11.3 15,10.5M13,15H11V13H13V15M13,11H11V9H13V11Z"},Bh={key:0};function Vh(t,n,o,l,r,a){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Lh,[o.title?(e.openBlock(),e.createElementBlock("title",Bh,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,wh))],16,bh)}const sr=A(Sh,[["render",Vh]]),Th={key:0,class:"d-flex flex-column gap-3 mb-3 mt-2"},$h={key:0,class:"markdown"},Ih={key:1,class:"examples-container"},Ah={class:"border overflow-hidden"},Dh={class:"d-flex flex-grow-1 align-items-center justify-content-between"},Oh={class:"d-flex gap-2"},xh={class:"d-flex flex-wrap justify-content-end gap-2"},Ph=["href"],Rh={class:"ref-type"},Mh={key:1,class:"type-box rounded fs-7 px-2 py-1"},Fh=e.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},definitions:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1},description:{default:void 0},examples:{default:void 0}},emits:["expand"],setup(t,{emit:n}){const o=t,l=n,r=e.ref(!1);e.watch(r,s=>{s&&l("expand")});const a=s=>s.filter(c=>!c.startsWith("#")||!eo(o.definitions?.[c.slice(1)]));function i(s){s=s??{};const c=[],u=[];for(const f in s)typeof s[f]=="object"&&(s[f]=tr(s[f]),s[f].$required?c.push(f):u.push(f));const d=[...c.sort(),...u.sort()],h={};return d.forEach(f=>{(!s[f].$deprecated||o.forceInclude?.includes(f))&&(h[f]=s[f])}),h}return(s,c)=>(e.openBlock(),e.createBlock(Et,{class:"section-collapsible","clickable-text":t.sectionName,href:t.href,onExpand:c[2]||(c[2]=u=>l("expand")),"initially-expanded":t.initiallyExpanded||r.value,"no-url-change":t.noUrlChange},e.createSlots({_:2},[Object.keys(t.properties??{}).length>0?{name:"content",fn:e.withCtx(()=>[t.description||t.examples&&t.examples.length>0?(e.openBlock(),e.createElementBlock("div",Th,[t.description?(e.openBlock(),e.createElementBlock("div",$h,[e.renderSlot(s.$slots,"markdown",{content:t.description},void 0,!0)])):e.createCommentVNode("",!0),t.examples&&t.examples.length>0?(e.openBlock(),e.createElementBlock("div",Ih,[c[3]||(c[3]=e.createElementVNode("h6",{class:"fw-bold mb-2"}," Examples ",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.examples,(u,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"mb-2"},[e.renderSlot(s.$slots,"example",{example:u},void 0,!0)]))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ah,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i(t.properties),(u,d)=>(e.openBlock(),e.createBlock(Et,{class:"property",key:d,arrow:!1,"clickable-text":d,href:t.href+"_"+d,onExpand:c[1]||(c[1]=h=>r.value=!0),"no-url-change":t.noUrlChange},{additionalButtonText:e.withCtx(()=>[u.$required?(e.openBlock(),e.createBlock(j,{key:0,class:"d-flex",title:"Required"},{default:e.withCtx(()=>[...c[4]||(c[4]=[e.createElementVNode("span",{class:"text-danger"}," *",-1)])]),_:1})):e.createCommentVNode("",!0)]),buttonRight:e.withCtx(({collapsed:h})=>[e.createElementVNode("span",Dh,[e.createElementVNode("span",Oh,[t.showDynamic&&!e.unref(or)(u)?(e.openBlock(),e.createBlock(j,{key:0,class:"d-flex",title:"Non-dynamic"},{default:e.withCtx(()=>[e.createVNode(ir,{class:"text-info"})]),_:1})):e.createCommentVNode("",!0),u.$beta?(e.openBlock(),e.createBlock(j,{key:1,class:"d-flex",title:"Beta"},{default:e.withCtx(()=>[e.createVNode(sr,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0),u.$deprecated?(e.openBlock(),e.createBlock(j,{key:2,class:"d-flex",title:"Deprecated"},{default:e.withCtx(()=>[e.createVNode(Kt,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("span",xh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a(e.unref(it)(u).types),f=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[f.startsWith("#")?(e.openBlock(),e.createElementBlock("a",{key:0,class:"d-flex fw-bold ref-type-box rounded fs-7 px-2 py-1",href:f,onClick:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("span",Rh,e.toDisplayString(e.unref(er)(f)),1),e.createVNode(rr)],8,Ph)):(e.openBlock(),e.createElementBlock("span",Mh,e.toDisplayString(f),1))],64))),128)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h?Jn:ar),{class:"arrow"}))])])]),content:e.withCtx(()=>[e.createVNode(dh,{property:u},{markdown:e.withCtx(({content:h})=>[e.renderSlot(s.$slots,"markdown",{content:h},void 0,!0)]),_:3},8,["property"])]),_:2},1032,["clickable-text","href","no-url-change"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded","no-url-change"]))}}),Tt=A(Fh,[["__scopeId","data-v-b4f5f7ad"]]),Uh={class:"d-flex flex-column gap-6"},Hh={class:"d-flex flex-column gap-3"},zh={key:0,class:"alert alert-info mb-2",role:"alert"},Wh={key:1,class:"plugin-title markdown"},jh={key:2,class:"markdown"},Gh={class:"d-flex flex-column gap-4"},Kh={class:"d-flex flex-column gap-3"},Yh={class:"markdown"},qh={key:0,class:"w-100 align-self-center"},Xh={class:"markdown"},Zh={class:"markdown"},Jh={class:"markdown"},Qh={class:"d-flex flex-column gap-7 ps-3"},e1={class:"markdown"},t1={class:"d-flex flex-column gap-2"},n1={key:0,class:"markdown"},o1=e.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(t){let n,o;const l=t,r=e.ref(!1),a=e.ref(new Set),i=e.ref(0),s=e.computed(()=>Object.entries(l.schema.definitions??{}).filter(([,E])=>!eo(E))),c=async()=>{const E=window.location.hash.slice(1);if(!E||!l.schema.definitions){a.value.clear();return}const N=E.replace(/-body$/,""),m=Object.keys(l.schema.definitions).find(y=>N===y||N.startsWith(y+"_"));if(m){r.value=!0,i.value+=1,a.value.clear(),a.value.add(m),await e.nextTick();let y=0;const S=30,_=()=>{const w=document.getElementById(N);w?w.scrollIntoView({behavior:"smooth",block:"start"}):y<S&&(y++,requestAnimationFrame(_))};requestAnimationFrame(_)}else a.value.clear()};e.watch([()=>l.schema,()=>l.pluginType],([E,N],[m,y])=>{(E!==m||N!==y)&&l.schema.definitions&&c()});const u=E=>E?.full?E.code:`id: ${l.pluginType.split(".").reverse()[0]?.toLowerCase()}
|
|
16
16
|
type: ${l.pluginType}
|
|
17
17
|
`.concat(E.code),d=e.ref(),h=e.computed(()=>l.schema.properties?.$examples),f=e.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(E=>[E.name,{...E,name:void 0}]))),{getHighlighterCore:k}=([n,o]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BEGfHQp3.cjs"))),n=await n,o(),n);d.value=([n,o]=e.withAsyncContext(()=>k()),n=await n,o(),n);const T="github-"+(l.darkMode?"dark":"light");return e.onMounted(()=>{c(),window.addEventListener("hashchange",c)}),e.onUnmounted(()=>{window.removeEventListener("hashchange",c)}),(E,N)=>(e.openBlock(),e.createElementBlock("div",Uh,[e.createElementVNode("div",Hh,[t.schema.properties?.$beta?(e.openBlock(),e.createElementBlock("div",zh,[...N[0]||(N[0]=[e.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)])])):e.createCommentVNode("",!0),t.schema.properties?.title?(e.openBlock(),e.createElementBlock("div",Wh,[e.renderSlot(E.$slots,"markdown",{content:t.schema.properties.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),t.schema.properties?.description?(e.openBlock(),e.createElementBlock("div",jh,[e.renderSlot(E.$slots,"markdown",{content:t.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(ot,{highlighter:d.value,language:"yaml",theme:T,code:`type: ${t.pluginType}`,key:t.pluginType},null,8,["highlighter","code"]))]),(e.openBlock(),e.createElementBlock("div",{class:"d-flex flex-column gap-3",key:t.pluginType},[h.value?(e.openBlock(),e.createBlock(Et,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples","no-url-change":t.noUrlChange},{content:e.withCtx(()=>[e.createElementVNode("div",Gh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(m,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t.pluginType+"-"+y},[e.createElementVNode("div",Kh,[e.createElementVNode("div",Yh,[m.title?e.renderSlot(E.$slots,"markdown",{key:0,content:m.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):e.createCommentVNode("",!0)]),m.code?(e.openBlock(),e.createBlock(ot,{key:0,highlighter:d.value,language:m.lang??"yaml",theme:T,code:u(m)},null,8,["highlighter","language","code"])):e.createCommentVNode("",!0)]),y<h.value.length-1?(e.openBlock(),e.createElementBlock("hr",qh)):e.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):e.createCommentVNode("",!0),t.schema.properties?.properties?(e.openBlock(),e.createBlock(Tt,{key:1,class:"plugin-section",properties:t.schema.properties.properties,definitions:t.schema.definitions,"section-name":"Properties",href:"properties","initially-expanded":t.propsInitiallyExpanded,"force-include":t.forceIncludeProperties,"no-url-change":t.noUrlChange},{markdown:e.withCtx(({content:m})=>[e.createElementVNode("div",Xh,[e.renderSlot(E.$slots,"markdown",{content:m},void 0,!0)])]),_:3},8,["properties","definitions","initially-expanded","force-include","no-url-change"])):e.createCommentVNode("",!0),t.schema.outputs?.properties&&Object.keys(t.schema.outputs.properties).length>0?(e.openBlock(),e.createBlock(Tt,{key:2,class:"plugin-section",properties:t.schema.outputs.properties,definitions:t.schema.definitions,"section-name":"Outputs",href:"outputs","show-dynamic":!1,"no-url-change":t.noUrlChange},{markdown:e.withCtx(({content:m})=>[e.createElementVNode("div",Zh,[e.renderSlot(E.$slots,"markdown",{content:m},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):e.createCommentVNode("",!0),t.schema.properties?.$metrics?(e.openBlock(),e.createBlock(Tt,{key:3,class:"plugin-section",properties:f.value,definitions:t.schema.definitions,"section-name":"Metrics",href:"metrics","show-dynamic":!1,"no-url-change":t.noUrlChange},{markdown:e.withCtx(({content:m})=>[e.createElementVNode("div",Jh,[e.renderSlot(E.$slots,"markdown",{content:m},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):e.createCommentVNode("",!0),s.value.length>0?(e.openBlock(),e.createBlock(Et,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":r.value,key:`definitions-${t.pluginType}-${i.value}`,"no-url-change":t.noUrlChange},{content:e.withCtx(()=>[e.createElementVNode("div",Qh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,([m,y])=>(e.openBlock(),e.createBlock(Tt,{properties:y.properties,definitions:t.schema.definitions,"section-name":y.title??m.split("_")[0],href:m,"show-dynamic":!1,"initially-expanded":a.value.has(m),key:t.pluginType+"-"+m,class:"plugin-section nested-button-py-2",onExpand:S=>{r.value=!0,a.value.add(m)},"no-url-change":t.noUrlChange,description:y.description,examples:y?.$examples},{markdown:e.withCtx(({content:S})=>[e.createElementVNode("div",e1,[e.renderSlot(E.$slots,"markdown",{content:S},void 0,!0)])]),example:e.withCtx(({example:S})=>[e.createElementVNode("div",t1,[S.title?(e.openBlock(),e.createElementBlock("div",n1,[e.renderSlot(E.$slots,"markdown",{content:`**${S.title}**`},void 0,!0)])):e.createCommentVNode("",!0),S.code?(e.openBlock(),e.createBlock(ot,{key:1,highlighter:d.value,language:S.lang??"yaml",theme:T,code:u(S)},null,8,["highlighter","language","code"])):e.createCommentVNode("",!0)])]),_:3},8,["properties","definitions","section-name","href","initially-expanded","onExpand","no-url-change","description","examples"]))),128))])]),_:3},8,["initially-expanded","no-url-change"])):e.createCommentVNode("",!0)]))]))}}),l1=A(o1,[["__scopeId","data-v-02295168"]]),r1={key:0},a1={class:"type-box rounded fs-7 px-2 py-1"},i1={key:1},s1={class:"border rounded px-2 py-1"},c1={key:2},u1={class:"border rounded px-2 py-1"},d1={key:3},m1={class:"border rounded px-2 py-1"},f1={key:4},p1={class:"border rounded px-2 py-1"},g1={key:5},h1={class:"border rounded px-2 py-1"},E1={key:6},k1={class:"border rounded px-2 py-1"},y1={key:7},v1={class:"border rounded px-2 py-1"},C1={key:8},_1={class:"border rounded px-2 py-1"},N1={key:9},S1={class:"border rounded px-2 py-1"},b1={key:10},w1={class:"border rounded px-2 py-1"},L1={key:11},B1={class:"border rounded px-2 py-1"},V1={key:12},T1={class:"border rounded px-2 py-1"},$1={key:13},I1={class:"values-wrapper d-flex flex-wrap justify-content-end gap-7 p-0"},A1=e.defineComponent({__name:"PropertyMeta",props:{property:{},subtype:{},enumValues:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.subtype&&!t.subtype.startsWith("#")?(e.openBlock(),e.createElementBlock("div",r1,[o[0]||(o[0]=e.createElementVNode("span",null,"SubType",-1)),e.createElementVNode("span",a1,e.toDisplayString(t.subtype),1)])):e.createCommentVNode("",!0),t.property.default!==void 0?(e.openBlock(),e.createElementBlock("div",i1,[o[1]||(o[1]=e.createElementVNode("span",null,"Default",-1)),e.createElementVNode("code",s1,e.toDisplayString(t.property.default),1)])):e.createCommentVNode("",!0),t.property.pattern!==void 0?(e.openBlock(),e.createElementBlock("div",c1,[o[2]||(o[2]=e.createElementVNode("span",null,"Validation RegExp",-1)),e.createElementVNode("code",u1,e.toDisplayString(t.property.pattern),1)])):e.createCommentVNode("",!0),t.property.unit!==void 0&&t.property.unit.trim().length>0?(e.openBlock(),e.createElementBlock("div",d1,[o[3]||(o[3]=e.createElementVNode("span",null,"Unit",-1)),e.createElementVNode("code",m1,e.toDisplayString(t.property.unit),1)])):e.createCommentVNode("",!0),t.property.minLength!==void 0?(e.openBlock(),e.createElementBlock("div",f1,[o[4]||(o[4]=e.createElementVNode("span",null,"Min length",-1)),e.createElementVNode("code",p1,e.toDisplayString(t.property.minLength),1)])):e.createCommentVNode("",!0),t.property.maxLength!==void 0?(e.openBlock(),e.createElementBlock("div",g1,[o[5]||(o[5]=e.createElementVNode("span",null,"Max length",-1)),e.createElementVNode("code",h1,e.toDisplayString(t.property.maxLength),1)])):e.createCommentVNode("",!0),t.property.minItems!==void 0?(e.openBlock(),e.createElementBlock("div",E1,[o[6]||(o[6]=e.createElementVNode("span",null,"Min items",-1)),e.createElementVNode("code",k1,e.toDisplayString(t.property.minItems),1)])):e.createCommentVNode("",!0),t.property.maxItems!==void 0?(e.openBlock(),e.createElementBlock("div",y1,[o[7]||(o[7]=e.createElementVNode("span",null,"Max items",-1)),e.createElementVNode("code",v1,e.toDisplayString(t.property.maxItems),1)])):e.createCommentVNode("",!0),t.property.minimum!==void 0?(e.openBlock(),e.createElementBlock("div",C1,[o[8]||(o[8]=e.createElementVNode("span",null,"Minimum",-1)),e.createElementVNode("code",_1,">= "+e.toDisplayString(t.property.minimum),1)])):e.createCommentVNode("",!0),t.property.exclusiveMinimum!==void 0?(e.openBlock(),e.createElementBlock("div",N1,[o[9]||(o[9]=e.createElementVNode("span",null,"Minimum",-1)),e.createElementVNode("code",S1,"> "+e.toDisplayString(t.property.minimum),1)])):e.createCommentVNode("",!0),t.property.maximum!==void 0?(e.openBlock(),e.createElementBlock("div",b1,[o[10]||(o[10]=e.createElementVNode("span",null,"Maximum",-1)),e.createElementVNode("code",w1,"<= "+e.toDisplayString(t.property.maximum),1)])):e.createCommentVNode("",!0),t.property.exclusiveMaximum!==void 0?(e.openBlock(),e.createElementBlock("div",L1,[o[11]||(o[11]=e.createElementVNode("span",null,"Maximum",-1)),e.createElementVNode("code",B1,"< "+e.toDisplayString(t.property.maximum),1)])):e.createCommentVNode("",!0),t.property.format!==void 0?(e.openBlock(),e.createElementBlock("div",V1,[o[12]||(o[12]=e.createElementVNode("span",null,"Format",-1)),e.createElementVNode("code",T1,e.toDisplayString(t.property.format),1)])):e.createCommentVNode("",!0),t.enumValues!==void 0?(e.openBlock(),e.createElementBlock("div",$1,[o[13]||(o[13]=e.createElementVNode("span",null,"Possible Values",-1)),e.createElementVNode("div",I1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.enumValues,(l,r)=>(e.openBlock(),e.createElementBlock("code",{class:"border rounded px-2 py-1",key:r},e.toDisplayString(l),1))),128))])])):e.createCommentVNode("",!0)],64))}}),cr=A(A1,[["__scopeId","data-v-ce25a1e1"]]),D1={class:"d-flex flex-grow-1 align-items-center justify-content-between"},O1={key:0,class:"d-flex gap-2 flex-wrap align-items-center"},x1=e.defineComponent({__name:"PropertyBadges",props:{property:{},showDynamic:{type:Boolean,default:!0},sectionClass:{default:""}},setup(t){function n(o){return it(o).types.filter(r=>!r.startsWith("#"))}return(o,l)=>(e.openBlock(),e.createElementBlock("span",D1,[e.createElementVNode("span",{class:e.normalizeClass(["d-flex gap-2 flex-wrap align-items-center",t.sectionClass])},[t.property&&t.property.$required?(e.openBlock(),e.createBlock(j,{key:0,class:"d-flex align-items-center",title:"Required"},{default:e.withCtx(()=>[...l[0]||(l[0]=[e.createElementVNode("span",{class:"text-danger"},"*",-1)])]),_:1})):e.createCommentVNode("",!0),t.showDynamic&&t.property&&!e.unref(or)(t.property)?(e.openBlock(),e.createBlock(j,{key:1,class:"d-flex",title:"Non-dynamic"},{default:e.withCtx(()=>[e.createVNode(ir,{class:"text-info"})]),_:1})):e.createCommentVNode("",!0),t.property&&t.property.$beta?(e.openBlock(),e.createBlock(j,{key:2,class:"d-flex",title:"Beta"},{default:e.withCtx(()=>[e.createVNode(sr,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0),t.property&&t.property.$deprecated?(e.openBlock(),e.createBlock(j,{key:3,class:"d-flex",title:"Deprecated"},{default:e.withCtx(()=>[e.createVNode(Kt,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0)],2),t.property?(e.openBlock(),e.createElementBlock("span",O1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n(t.property),r=>(e.openBlock(),e.createElementBlock("span",{key:r,class:"type-box rounded fs-7 px-2 py-1"},e.toDisplayString(r),1))),128))])):e.createCommentVNode("",!0)]))}}),ur=A(x1,[["__scopeId","data-v-1fcc5d4c"]]),P1={class:"def-content"},R1={key:0,class:"def-description"},M1={key:1,class:"def-examples"},F1={class:"d-flex flex-column gap-4"},U1={class:"d-flex flex-column"},H1={class:"markdown"},z1={key:0,class:"w-100 align-self-center"},W1={class:"d-flex align-items-center justify-content-between gap-2"},j1={class:"prop-key"},G1={key:0,class:"property-desc mt-2"},K1={key:1,class:"mt-3 nested-defs"},Y1=e.defineComponent({__name:"DefinitionCollapsible",props:{definition:{},definitions:{default:void 0},visitedKeys:{default:()=>new Set},depth:{default:0},maxDepth:{default:3},section:{default:"properties"}},setup(t){const n=t,o=e.inject("highlighter",e.ref(void 0)),l=e.inject("codeTheme",e.ref("github-dark")),r=b.sanitizeForMarkdown,a=u=>{const d=it(u).subType;return d&&!d.startsWith("#")?d:void 0},i=u=>Qn(u),s=u=>{const d=n.definitions,h=n.depth,f=n.maxDepth,k=n.visitedKeys;return!d||h>=f?[]:nr(u,d,k)},c=e.computed(()=>{const u=new Set(n.visitedKeys);return u.add(n.definition.key),u});return(u,d)=>{const h=e.resolveComponent("DefinitionCollapsible",!0);return e.openBlock(),e.createBlock(kt,{title:t.definition.title,href:`def-${t.definition.key}`,class:e.normalizeClass(["def-collapsible",`section-${t.section}`]),arrow:"","no-url-change":""},{content:e.withCtx(()=>[e.createElementVNode("div",P1,[t.definition.description?(e.openBlock(),e.createElementBlock("div",R1,[e.renderSlot(u.$slots,"markdown",{content:e.unref(r)(t.definition.description)},void 0,!0)])):e.createCommentVNode("",!0),t.definition.$examples&&t.definition.$examples.length?(e.openBlock(),e.createElementBlock("div",M1,[d[0]||(d[0]=e.createElementVNode("div",{class:"def-examples-header"}," Example ",-1)),e.createElementVNode("div",F1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.definition.$examples,(f,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${t.definition.key}-example-${k}`},[e.createElementVNode("div",U1,[e.createElementVNode("div",H1,[f.title?e.renderSlot(u.$slots,"markdown",{key:0,content:f.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):e.createCommentVNode("",!0)]),f.code?(e.openBlock(),e.createBlock(ot,{key:0,highlighter:e.unref(o),language:f.lang??"yaml",theme:e.unref(l),code:f.code},null,8,["highlighter","language","theme","code"])):e.createCommentVNode("",!0)]),k<t.definition.$examples.length-1?(e.openBlock(),e.createElementBlock("hr",z1)):e.createCommentVNode("",!0)],64))),128))])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.definition.properties,(f,k)=>(e.openBlock(),e.createElementBlock("div",{key:k,class:"def-property"},[e.createElementVNode("div",W1,[e.createElementVNode("span",j1,e.toDisplayString(k),1),e.createVNode(ur,{property:f,"show-dynamic":!1,"section-class":"section-properties"},null,8,["property"])]),e.createVNode(cr,{property:f,subtype:a(f),"enum-values":i(f)},null,8,["property","subtype","enum-values"]),f.title!==void 0||f.description!==void 0?(e.openBlock(),e.createElementBlock("div",G1,[f.title?e.renderSlot(u.$slots,"markdown",{key:0,content:e.unref(r)(f.title)},void 0,!0):e.createCommentVNode("",!0),f.description?e.renderSlot(u.$slots,"markdown",{key:1,content:e.unref(r)(f.description)},void 0,!0):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.depth<t.maxDepth&&s(f).length?(e.openBlock(),e.createElementBlock("div",K1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s(f),T=>(e.openBlock(),e.createBlock(h,{key:`${t.definition.key}-${T.key}`,definition:T,definitions:t.definitions,"visited-keys":c.value,depth:t.depth+1,"max-depth":t.maxDepth},{markdown:e.withCtx(({content:E})=>[e.renderSlot(u.$slots,"markdown",{content:E},void 0,!0)]),_:3},8,["definition","definitions","visited-keys","depth","max-depth"]))),128))])):e.createCommentVNode("",!0)]))),128))])]),_:3},8,["title","href","class"])}}}),q1=A(Y1,[["__scopeId","data-v-96ed960d"]]),X1={class:"property-detail"},Z1={key:0},J1={class:"property-description markdown"},Q1={key:2},eE={key:3,class:"mt-3"},tE=e.defineComponent({__name:"PropertyDetailV2",props:{property:{},definitions:{default:void 0},visitedKeys:{default:()=>new Set},depth:{default:0},maxDepth:{default:3},section:{default:"properties"}},setup(t){const n=t,o=e.computed(()=>it(n.property).subType),l=e.computed(()=>Qn(n.property)),r=e.computed(()=>{const s=n.definitions,c=n.depth,u=n.maxDepth,d=n.property,h=n.visitedKeys;return!s||c>=u?[]:nr(d,s,h)}),a=e.computed(()=>{const s=new Set(n.visitedKeys);return r.value.forEach(c=>s.add(c.key)),s}),i=b.sanitizeForMarkdown;return(s,c)=>(e.openBlock(),e.createElementBlock("div",X1,[e.createVNode(cr,{property:t.property,subtype:o.value,"enum-values":l.value},null,8,["property","subtype","enum-values"]),t.property.title!==void 0||t.property.description!==void 0||t.depth<t.maxDepth&&r.value.length>0?(e.openBlock(),e.createElementBlock("div",Z1,[e.createElementVNode("div",J1,[t.property.title!==void 0?e.renderSlot(s.$slots,"markdown",{key:0,content:e.unref(i)(t.property.title)},void 0,!0):e.createCommentVNode("",!0),t.property.description!==void 0?e.renderSlot(s.$slots,"markdown",{key:1,content:e.unref(i)(t.property.description)},void 0,!0):e.createCommentVNode("",!0),t.property.$internalStorageURI?(e.openBlock(),e.createElementBlock("div",Q1,[e.createVNode(lr,{type:"info"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):e.createCommentVNode("",!0),t.depth<t.maxDepth&&r.value.length>0?(e.openBlock(),e.createElementBlock("div",eE,[c[0]||(c[0]=e.createElementVNode("div",{class:"definitions-header"}," Definitions ",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,u=>(e.openBlock(),e.createBlock(q1,{key:`${u.key}-${t.depth}`,definition:u,definitions:t.definitions,"visited-keys":a.value,depth:t.depth+1,"max-depth":t.maxDepth,section:t.section},{markdown:e.withCtx(({content:d})=>[e.renderSlot(s.$slots,"markdown",{content:d},void 0,!0)]),_:3},8,["definition","definitions","visited-keys","depth","max-depth","section"]))),128))])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]))}}),nE=A(tE,[["__scopeId","data-v-32bc6580"]]),oE={class:"border overflow-hidden"},lE=e.defineComponent({__name:"CollapsiblePropertiesV2",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1},definitions:{default:void 0}},emits:["expand"],setup(t,{emit:n}){const o=t,l=n,r=e.computed(()=>{const s=o.sectionName.toLowerCase();return s==="properties"?"section-properties":s==="outputs"?"section-outputs":s==="metrics"?"section-metrics":""}),a=e.ref(!1);e.watch(a,s=>{s&&l("expand")});function i(s){s=s??{};const c=[],u=[];for(const f in s)typeof s[f]=="object"&&(s[f]=tr(s[f]),s[f].$required?c.push(f):u.push(f));const d=[...c.sort(),...u.sort()],h={};return d.forEach(f=>{(!s[f].$deprecated||o.forceInclude?.includes(f))&&(h[f]=s[f])}),h}return(s,c)=>(e.openBlock(),e.createBlock(kt,{class:"section-collapsible",title:t.sectionName,href:t.href,onExpand:c[1]||(c[1]=u=>l("expand")),"initially-expanded":t.initiallyExpanded||a.value,"no-url-change":t.noUrlChange},e.createSlots({_:2},[Object.keys(t.properties??{}).length>0?{name:"content",fn:e.withCtx(()=>[e.createElementVNode("div",oE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i(t.properties),(u,d)=>(e.openBlock(),e.createBlock(kt,{class:e.normalizeClass(["property",r.value]),key:d,title:d,href:t.href+"_"+d,onExpand:c[0]||(c[0]=h=>a.value=!0),"no-url-change":t.noUrlChange},{right:e.withCtx(()=>[e.createVNode(ur,{property:u,"show-dynamic":t.showDynamic},null,8,["property","show-dynamic"])]),content:e.withCtx(()=>[e.createVNode(nE,{property:u,definitions:t.definitions,section:t.sectionName.toLowerCase()},{markdown:e.withCtx(({content:h})=>[e.renderSlot(s.$slots,"markdown",{content:h},void 0,!0)]),_:3},8,["property","definitions","section"])]),_:2},1032,["title","href","no-url-change","class"]))),128))])]),key:"0"}:void 0]),1032,["title","href","initially-expanded","no-url-change"]))}}),pn=A(lE,[["__scopeId","data-v-99775171"]]),rE={class:"d-flex flex-column gap-6"},aE={class:"d-flex flex-column"},iE={key:0,class:"alert alert-info mb-2",role:"alert"},sE={key:1,class:"markdown"},cE={class:"d-flex flex-column gap-4"},uE={class:"d-flex flex-column"},dE={class:"markdown"},mE={key:0,class:"w-100 align-self-center"},fE={class:"markdown"},pE={class:"markdown"},gE={class:"markdown"},hE=e.defineComponent({__name:"SchemaToHtmlV2",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(t){let n,o;const l=t,r=k=>k?.full?k.code:`id: ${l.pluginType.split(".").reverse()[0]?.toLowerCase()}
|
|
18
18
|
type: ${l.pluginType}
|