@kestra-io/ui-libs 0.0.213 → 0.0.215
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/Collapsible.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 +107 -110
- 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/Collapsible.vue +17 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/misc/Collapsible.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Collapsible.vue.d.ts","sourceRoot":"","sources":["../../../src/components/misc/Collapsible.vue"],"names":[],"mappings":"AAkHI,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC9B,CAAC;AAsDN,iBAAS,cAAc;WAkET,OAAO,IAA6B;;sCAZR,GAAG;;;YACZ,GAAG;yBACP,GAAG;;;;EAe/B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;WA/IL,OAAO;UAFR,MAAM;uBAGO,OAAO;4FAuJjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
package/dist/kestra-index.cjs.js
CHANGED
|
@@ -26,7 +26,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
26
26
|
* (c) 2022 Evan You
|
|
27
27
|
* @license MIT
|
|
28
28
|
*/var vy="store";function Ct(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function xf(e){return e!==null&&typeof e=="object"}function _y(e){return e&&typeof e.then=="function"}function Ye(e,t){if(!e)throw new Error("[vuex] "+t)}function Ey(e,t){return function(){return e(t)}}function Mf(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function $f(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Tn(e,n,[],e._modules.root,!0),ja(e,n,t)}function ja(e,t,n){var r=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,s={},l={},u=i.effectScope(!0);u.run(function(){Ct(a,function(d,c){s[c]=Ey(d,e),l[c]=i.computed(function(){return s[c]()}),Object.defineProperty(e.getters,c,{get:function(){return l[c].value},enumerable:!0})})}),e._state=i.reactive({data:t}),e._scope=u,e.strict&&Ny(e),r&&n&&e._withCommit(function(){r.data=null}),o&&o.stop()}function Tn(e,t,n,r,o){var a=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+s+" for the namespaced module "+n.join("/")),e._modulesNamespaceMap[s]=r),!a&&!o){var l=Wa(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&u in l&&console.warn('[vuex] state field "'+u+'" was overridden by a module with the same name at "'+n.join(".")+'"'),l[u]=r.state})}var d=r.context=yy(e,s,n);r.forEachMutation(function(c,f){var h=s+f;by(e,h,c,d)}),r.forEachAction(function(c,f){var h=c.root?f:s+f,m=c.handler||c;ky(e,h,m,d)}),r.forEachGetter(function(c,f){var h=s+f;Cy(e,h,c,d)}),r.forEachChild(function(c,f){Tn(e,t,n.concat(f),c,o)})}function yy(e,t,n){var r=t==="",o={dispatch:r?e.dispatch:function(a,s,l){var u=cn(a,s,l),d=u.payload,c=u.options,f=u.type;if((!c||!c.root)&&(f=t+f,process.env.NODE_ENV!=="production"&&!e._actions[f])){console.error("[vuex] unknown local action type: "+u.type+", global type: "+f);return}return e.dispatch(f,d)},commit:r?e.commit:function(a,s,l){var u=cn(a,s,l),d=u.payload,c=u.options,f=u.type;if((!c||!c.root)&&(f=t+f,process.env.NODE_ENV!=="production"&&!e._mutations[f])){console.error("[vuex] unknown local mutation type: "+u.type+", global type: "+f);return}e.commit(f,d,c)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return qf(e,t)}},state:{get:function(){return Wa(e.state,n)}}}),o}function qf(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(o){if(o.slice(0,r)===t){var a=o.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[o]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function by(e,t,n,r){var o=e._mutations[t]||(e._mutations[t]=[]);o.push(function(s){n.call(e,r.state,s)})}function ky(e,t,n,r){var o=e._actions[t]||(e._actions[t]=[]);o.push(function(s){var l=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},s);return _y(l)||(l=Promise.resolve(l)),e._devtoolHook?l.catch(function(u){throw e._devtoolHook.emit("vuex:error",u),u}):l})}function Cy(e,t,n,r){if(e._wrappedGetters[t]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(a){return n(r.state,r.getters,a.state,a.getters)}}function Ny(e){i.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Ye(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Wa(e,t){return t.reduce(function(n,r){return n[r]},e)}function cn(e,t,n){return xf(e)&&e.type&&(n=t,t=e,e=e.type),process.env.NODE_ENV!=="production"&&Ye(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:n}}var wy="vuex bindings",id="vuex:mutations",ia="vuex:actions",Ot="vuex",Sy=0;function Ly(e,t){D_({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[wy]},function(n){n.addTimelineLayer({id,label:"Vuex Mutations",color:od}),n.addTimelineLayer({id:ia,label:"Vuex Actions",color:od}),n.addInspector({id:Ot,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===Ot)if(r.filter){var o=[];Gf(o,t._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[Hf(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===Ot){var o=r.nodeId;qf(t,o),r.state=Oy(Ry(t._modules,o),o==="root"?t.getters:t._makeLocalGettersCache,o)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===Ot){var o=r.nodeId,a=r.path;o!=="root"&&(a=o.split("/").filter(Boolean).concat(a)),t._withCommit(function(){r.set(t._state.data,a,r.state.value)})}}),t.subscribe(function(r,o){var a={};r.payload&&(a.payload=r.payload),a.state=o,n.notifyComponentUpdate(),n.sendInspectorTree(Ot),n.sendInspectorState(Ot),n.addTimelineEvent({layerId:id,event:{time:Date.now(),title:r.type,data:a}})}),t.subscribeAction({before:function(r,o){var a={};r.payload&&(a.payload=r.payload),r._id=Sy++,r._time=Date.now(),a.state=o,n.addTimelineEvent({layerId:ia,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:a}})},after:function(r,o){var a={},s=Date.now()-r._time;a.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},r.payload&&(a.payload=r.payload),a.state=o,n.addTimelineEvent({layerId:ia,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:a}})}})})}var od=8702998,Ty=6710886,Iy=16777215,Ff={label:"namespaced",textColor:Iy,backgroundColor:Ty};function Uf(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function Hf(e,t){return{id:t||"root",label:Uf(t),tags:e.namespaced?[Ff]:[],children:Object.keys(e._children).map(function(n){return Hf(e._children[n],t+n+"/")})}}function Gf(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[Ff]:[]}),Object.keys(t._children).forEach(function(o){Gf(e,t._children[o],n,r+o+"/")})}function Oy(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),o={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(r.length){var a=Ay(t);o.getters=Object.keys(a).map(function(s){return{key:s.endsWith("/")?Uf(s):s,editable:!1,value:ba(function(){return a[s]})}})}return o}function Ay(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var o=t,a=r.pop();r.forEach(function(s){o[s]||(o[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),o=o[s]._custom.value}),o[a]=ba(function(){return e[n]})}else t[n]=ba(function(){return e[n]})}),t}function Ry(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,o,a){var s=r[o];if(!s)throw new Error('Missing module "'+o+'" for path "'+t+'".');return a===n.length-1?s:s._children},t==="root"?e:e.root._children)}function ba(e){try{return e()}catch(t){return t}}var Xe=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},zf={namespaced:{configurable:!0}};zf.namespaced.get=function(){return!!this._rawModule.namespaced};Xe.prototype.addChild=function(t,n){this._children[t]=n};Xe.prototype.removeChild=function(t){delete this._children[t]};Xe.prototype.getChild=function(t){return this._children[t]};Xe.prototype.hasChild=function(t){return t in this._children};Xe.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Xe.prototype.forEachChild=function(t){Ct(this._children,t)};Xe.prototype.forEachGetter=function(t){this._rawModule.getters&&Ct(this._rawModule.getters,t)};Xe.prototype.forEachAction=function(t){this._rawModule.actions&&Ct(this._rawModule.actions,t)};Xe.prototype.forEachMutation=function(t){this._rawModule.mutations&&Ct(this._rawModule.mutations,t)};Object.defineProperties(Xe.prototype,zf);var Nt=function(t){this.register([],t,!1)};Nt.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};Nt.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,o){return n=n.getChild(o),r+(n.namespaced?o+"/":"")},"")};Nt.prototype.update=function(t){jf([],this.root,t)};Nt.prototype.register=function(t,n,r){var o=this;r===void 0&&(r=!0),process.env.NODE_ENV!=="production"&&Wf(t,n);var a=new Xe(n,r);if(t.length===0)this.root=a;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],a)}n.modules&&Ct(n.modules,function(l,u){o.register(t.concat(u),l,r)})};Nt.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],o=n.getChild(r);if(!o){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}o.runtime&&n.removeChild(r)};Nt.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function jf(e,t,n){if(process.env.NODE_ENV!=="production"&&Wf(e,n),t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");return}jf(e.concat(r),t.getChild(r),n.modules[r])}}var ad={assert:function(e){return typeof e=="function"},expected:"function"},Dy={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},sd={getters:ad,mutations:ad,actions:Dy};function Wf(e,t){Object.keys(sd).forEach(function(n){if(t[n]){var r=sd[n];Ct(t[n],function(o,a){Ye(r.assert(o),Py(e,n,a,o,r.expected))})}})}function Py(e,t,n,r,o){var a=t+" should be "+o+' but "'+t+"."+n+'"';return e.length>0&&(a+=' in module "'+e.join(".")+'"'),a+=" is "+JSON.stringify(r)+".",a}var He=function e(t){var n=this;t===void 0&&(t={}),process.env.NODE_ENV!=="production"&&(Ye(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Ye(this instanceof e,"store must be called with the new operator."));var r=t.plugins;r===void 0&&(r=[]);var o=t.strict;o===void 0&&(o=!1);var a=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Nt(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=a;var s=this,l=this,u=l.dispatch,d=l.commit;this.dispatch=function(h,m){return u.call(s,h,m)},this.commit=function(h,m,C){return d.call(s,h,m,C)},this.strict=o;var c=this._modules.root.state;Tn(this,c,[],this._modules.root),ja(this,c),r.forEach(function(f){return f(n)})},Ka={state:{configurable:!0}};He.prototype.install=function(t,n){t.provide(n||vy,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;r&&Ly(t,this)};Ka.state.get=function(){return this._state.data};Ka.state.set=function(e){process.env.NODE_ENV!=="production"&&Ye(!1,"use store.replaceState() to explicit replace store state.")};He.prototype.commit=function(t,n,r){var o=this,a=cn(t,n,r),s=a.type,l=a.payload,u=a.options,d={type:s,payload:l},c=this._mutations[s];if(!c){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+s);return}this._withCommit(function(){c.forEach(function(h){h(l)})}),this._subscribers.slice().forEach(function(f){return f(d,o.state)}),process.env.NODE_ENV!=="production"&&u&&u.silent&&console.warn("[vuex] mutation type: "+s+". Silent option has been removed. Use the filter functionality in the vue-devtools")};He.prototype.dispatch=function(t,n){var r=this,o=cn(t,n),a=o.type,s=o.payload,l={type:a,payload:s},u=this._actions[a];if(!u){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+a);return}try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(l,r.state)})}catch(c){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(c))}var d=u.length>1?Promise.all(u.map(function(c){return c(s)})):u[0](s);return new Promise(function(c,f){d.then(function(h){try{r._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(l,r.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(m))}c(h)},function(h){try{r._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(l,r.state,h)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(m))}f(h)})})};He.prototype.subscribe=function(t,n){return Mf(t,this._subscribers,n)};He.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return Mf(r,this._actionSubscribers,n)};He.prototype.watch=function(t,n,r){var o=this;return process.env.NODE_ENV!=="production"&&Ye(typeof t=="function","store.watch only accepts a function."),i.watch(function(){return t(o.state,o.getters)},n,Object.assign({},r))};He.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};He.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&(Ye(Array.isArray(t),"module path must be a string or an Array."),Ye(t.length>0,"cannot register the root module by using registerModule.")),this._modules.register(t,n),Tn(this,this.state,t,this._modules.get(t),r.preserveState),ja(this,this.state)};He.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ye(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var r=Wa(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),$f(this)};He.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),process.env.NODE_ENV!=="production"&&Ye(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)};He.prototype.hotUpdate=function(t){this._modules.update(t),$f(this,!0)};He.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(He.prototype,Ka);var Ya=Yf(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!Xa(t)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),Kf(t).forEach(function(r){var o=r.key,a=r.val;n[o]=function(){var l=this.$store.state,u=this.$store.getters;if(e){var d=Xf(this.$store,"mapState",e);if(!d)return;l=d.context.state,u=d.context.getters}return typeof a=="function"?a.call(this,l,u):l[a]},n[o].vuex=!0}),n}),By=Yf(function(e,t){var n={};return process.env.NODE_ENV!=="production"&&!Xa(t)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),Kf(t).forEach(function(r){var o=r.key,a=r.val;a=e+a,n[o]=function(){if(!(e&&!Xf(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(a in this.$store.getters)){console.error("[vuex] unknown getter: "+a);return}return this.$store.getters[a]}},n[o].vuex=!0}),n});function Kf(e){return Xa(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function Xa(e){return Array.isArray(e)||xf(e)}function Yf(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function Xf(e,t,n){var r=e._modulesNamespaceMap[n];return process.env.NODE_ENV!=="production"&&!r&&console.error("[vuex] module namespace not found in "+t+"(): "+n),r}const Vy={class:"icon rounded"},xy={class:"node-content"},My={class:"d-flex node-title"},$y={class:"text-truncate task-title"},qy={key:0,class:"d-flex"},Fy={class:"text-white top-button-div"},Uy={components:{ArrowExpand:Ln,InformationOutline:Vf,OpenInNew:za,Tooltip:le},emits:[H.EXPAND,H.OPEN_LINK,H.SHOW_LOGS,H.MOUSE_OVER,H.MOUSE_LEAVE,H.ADD_ERROR,H.EDIT,H.DELETE,H.ADD_TASK,H.SHOW_DESCRIPTION],inheritAttrs:!1,props:{id:{type:String,default:void 0},type:{type:String,default:void 0},disabled:{type:Boolean,default:void 0},state:{type:String,default:void 0},data:{type:Object,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{mouseover(){this.$emit(H.MOUSE_OVER,this.data.node)},mouseleave(){this.$emit(H.MOUSE_LEAVE)}},data(){return{filter:void 0,isOpen:!1}},computed:{Utils(){return ge},...Ya("execution",["execution"]),borderColor(){const e=this.data.color?this.data.color==="default"?null:this.data.color:null;return e||(this.expandable?"blue":null)},EVENTS(){return H},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null},trimmedId(){return ge.afterLastDot(this.id)},taskIconBg(){return["default","danger"].includes(this.data.color)?"":this.data.color},stateColor(){switch(this.state){case"RUNNING":return"primary";case"SUCCESS":return"success";case"WARNING":return"warning";case"FAILED":return"danger";default:return null}},classes(){var e,t,n,r;return{"unused-path":this.data.unused,[`border-${this.borderColor}`]:this.borderColor,disabled:((e=this.data.node.task)==null?void 0:e.disabled)||((r=(n=(t=this.data.parent)==null?void 0:t.taskNode)==null?void 0:n.task)==null?void 0:r.disabled),[this.$attrs.class]:!0}},cls(){var e;if(this.data.node.triggerDeclaration)return this.data.node.triggerDeclaration.type;if((e=this.data.node)!=null&&e.task)return this.data.node.task.type},hoverTooltip(){if(this.data.node.type.endsWith("SubflowGraphTask")){const e=this.data.node.task.subflowId??this.data.node.task;return e.namespace+" "+e.flowId}return this.trimmedId}}},Hy=Object.assign(Uy,{__name:"BasicNode",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass([t.classes,"node-wrapper rounded-3 border"]),onMouseover:n[3]||(n[3]=(...r)=>t.mouseover&&t.mouseover(...r)),onMouseleave:n[4]||(n[4]=(...r)=>t.mouseleave&&t.mouseleave(...r))},[e.state?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["status-div",[`bg-${t.stateColor}`]])},null,2)):i.createCommentVNode("",!0),i.createElementVNode("div",Vy,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.iconComponent||Ga),{cls:t.cls,class:i.normalizeClass([t.taskIconBg,"rounded bg-white"]),theme:"light",icons:e.icons},null,8,["cls","class","icons"]))]),i.createElementVNode("div",xy,[i.createElementVNode("div",My,[i.createElementVNode("div",$y,[i.createVNode(le,{title:t.hoverTooltip},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.trimmedId),1)]),_:1},8,["title"])]),t.description?(i.openBlock(),i.createElementBlock("span",qy,[i.createVNode(le,{title:t.$t("show description"),class:"d-flex align-items-center"},{default:i.withCtx(()=>[i.createVNode(Vf,{onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).SHOW_DESCRIPTION,{id:t.trimmedId,description:t.description})),class:"description-button ms-2"})]),_:1},8,["title"])])):i.createCommentVNode("",!0)]),i.renderSlot(t.$slots,"content",{},void 0,!0)]),i.createElementVNode("div",Fy,[i.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),e.data.link?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).OPEN_LINK,{link:e.data.link}))},[i.createVNode(le,{title:t.$t("open")},{default:i.withCtx(()=>[i.createVNode(za,{class:"button-icon",alt:"Open in new tab"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),t.expandable?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[2]||(n[2]=r=>t.$emit(i.unref(H).EXPAND))},[i.createVNode(le,{title:t.$t("expand")},{default:i.withCtx(()=>[i.createVNode(Ln,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])],34))}}),Zf=K(Hy,[["__scopeId","data-v-d71af44b"]]),Gy=["innerHTML"],zy=i.defineComponent({__name:"Duration",props:{histories:{}},setup(e){const t=e;i.watch(()=>t.histories,(m,C)=>{C[0].date!==m[0].date&&l()});const n=i.ref(""),r=i.ref();i.onMounted(()=>{l()});const o=i.computed(()=>{var m;return((m=t.histories)==null?void 0:m.length)&&new Date(t.histories[0].date.toString()).getTime()}),a=i.computed(()=>t.histories[t.histories.length-1]),s=i.computed(()=>t.histories.filter(m=>m.date.isValid()&&m.date&&m.state));function l(){r.value||(r.value=setInterval(()=>{f(),t.histories&&!Ce.isRunning(a.value.state)&&u()},100))}function u(){r.value&&(clearInterval(r.value),r.value=void 0)}function d(){return c()-o.value}function c(){return!t.histories||Ce.isRunning(a.value.state)?+new Date:new Date(a.value.date.toString()).getTime()}function f(){n.value=s.value.length===0?" ":ge.humanDuration(d()/1e3)}function h(m){return"ks-duration-tt-square-"+m.toLowerCase()}return i.onBeforeUnmount(()=>{u()}),(m,C)=>(i.openBlock(),i.createBlock(le,{key:a.value.date.toString()},{content:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(E,_)=>(i.openBlock(),i.createElementBlock("span",{key:"tt-"+_,class:"ks-duration-tt"},[i.createElementVNode("span",{class:i.normalizeClass(["ks-duration-tt-square",h(E.state)])},null,2),i.createElementVNode("strong",null,i.toDisplayString(E.state)+": ",1),i.createTextVNode(i.toDisplayString(i.unref(ge).dateFilter(E.date.toString(),"iso"))+" ",1),C[0]||(C[0]=i.createElementVNode("br",null,null,-1))]))),128))]),default:i.withCtx(()=>[i.createElementVNode("span",{innerHTML:n.value},null,8,Gy)]),_:1}))}}),jy={class:"btn-group content rounded-1 content-children text-truncate"},Wy={key:0,class:"taskRunCount"},Ky={key:1},Yy={key:2},Xy=i.defineComponent({name:"ExecutionInformations",__name:"ExecutionInformations",props:{color:{},uid:{},execution:{},task:{}},setup(e){const t=e,n=i.computed(()=>{var s;return(s=t.execution)!=null&&s.taskRunList?t.execution.taskRunList:[]}),r=i.computed(()=>n.value.filter(s=>s.taskId===ge.afterLastDot(t.uid??""))),o=i.computed(()=>{if(!r.value)return null;if(r.value.length===1)return r.value[0].state.current;const s=r.value.map(d=>d.state.current),l=[Ce.FAILED,Ce.KILLED,Ce.WARNING,Ce.KILLING,Ce.RUNNING,Ce.SUCCESS,Ce.RESTARTED,Ce.CREATED];return s.map(d=>{const c=l.indexOf(d[1]);return l[c]=void 0,[c,d]}).sort().map(d=>d[1])[0]}),a=i.computed(()=>{if(!r.value)return;const s=Math.max(...r.value.filter(u=>u.state.histories&&u.state.histories.length>0).map(u=>new Date(u.state.histories[u.state.histories.length-1].date).getTime())),l=Math.max(...r.value.map(u=>$t.duration(u.state.duration).asMilliseconds()/1e3,0));return[{date:$t(s).subtract(l,"second"),state:"CREATED"},{date:$t(s),state:o.value}]});return(s,l)=>(i.openBlock(),i.createElementBlock("div",jy,[r.value.length>0?(i.openBlock(),i.createElementBlock("span",Wy,i.toDisplayString(r.value.length)+" task runs",1)):i.createCommentVNode("",!0),r.value.length>0?(i.openBlock(),i.createElementBlock("span",Ky," | ")):i.createCommentVNode("",!0),a.value?(i.openBlock(),i.createElementBlock("span",Yy,[i.createVNode(zy,{histories:a.value},null,8,["histories"])])):i.createCommentVNode("",!0)]))}}),Jf=K(Xy,[["__scopeId","data-v-b7801302"]]),Zy={name:"PencilIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jy=["aria-hidden","aria-label"],Qy=["fill","width","height"],eb={d:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"},tb={key:0};function nb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon pencil-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",eb,[n.title?(i.openBlock(),i.createElementBlock("title",tb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Qy))],16,Jy)}const In=K(Zy,[["render",nb]]),rb={name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ib=["aria-hidden","aria-label"],ob=["fill","width","height"],ab={d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"},sb={key:0};function lb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon delete-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ab,[n.title?(i.openBlock(),i.createElementBlock("title",sb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ob))],16,ib)}const On=K(rb,[["render",lb]]),ub={name:"TextBoxSearchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},cb=["aria-hidden","aria-label"],db=["fill","width","height"],fb={d:"M15.5,12C18,12 20,14 20,16.5C20,17.38 19.75,18.21 19.31,18.9L22.39,22L21,23.39L17.88,20.32C17.19,20.75 16.37,21 15.5,21C13,21 11,19 11,16.5C11,14 13,12 15.5,12M15.5,14A2.5,2.5 0 0,0 13,16.5A2.5,2.5 0 0,0 15.5,19A2.5,2.5 0 0,0 18,16.5A2.5,2.5 0 0,0 15.5,14M7,15V17H9C9.14,18.55 9.8,19.94 10.81,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H19A2,2 0 0,1 21,5V13.03C19.85,11.21 17.82,10 15.5,10C14.23,10 13.04,10.37 12.04,11H7V13H10C9.64,13.6 9.34,14.28 9.17,15H7M17,9V7H7V9H17Z"},hb={key:0};function mb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon text-box-search-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",fb,[n.title?(i.openBlock(),i.createElementBlock("title",hb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,db))],16,cb)}const Qf=K(ub,[["render",mb]]),pb={name:"AlertOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},gb=["aria-hidden","aria-label"],vb=["fill","width","height"],_b={d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"},Eb={key:0};function yb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",_b,[n.title?(i.openBlock(),i.createElementBlock("title",Eb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,vb))],16,gb)}const eh=K(pb,[["render",yb]]),bb={name:"SendLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},kb=["aria-hidden","aria-label"],Cb=["fill","width","height"],Nb={d:"M23,18V17.5A2.5,2.5 0 0,0 20.5,15A2.5,2.5 0 0,0 18,17.5V18A1,1 0 0,0 17,19V23A1,1 0 0,0 18,24H23A1,1 0 0,0 24,23V19A1,1 0 0,0 23,18M22,18H19V17.5A1.5,1.5 0 0,1 20.5,16A1.5,1.5 0 0,1 22,17.5V18M23,12L2,21V14L17,12L2,10V3L23,12Z"},wb={key:0};function Sb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon send-lock-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Nb,[n.title?(i.openBlock(),i.createElementBlock("title",wb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Cb))],16,kb)}const th=K(bb,[["render",Sb]]),Lb={name:"Task",components:{Pencil:In,Delete:On,ExecutionInformations:Jf,Handle:te.Handle,TextBoxSearch:Qf,AlertOutline:eh,Tooltip:le,SendLock:th},inheritAttrs:!1,computed:{...Ya("execution",["execution"]),...By("execution",["subflowsExecutions"]),SECTIONS(){return nt},EVENTS(){return H},color(){return this.data.color??"primary"},taskId(){return ge.afterLastDot(this.id)},taskRunList(){return this.taskExecution&&this.taskExecution.taskRunList?this.taskExecution.taskRunList:[]},taskExecution(){var t,n;const e=this.data.executionId;if(e)return e===((t=this.execution)==null?void 0:t.id)?this.execution:(n=Object.values(this.subflowsExecutions).filter(r=>r.id===this.data.executionId))==null?void 0:n[0]},taskRuns(){return this.taskRunList.filter(e=>e.taskId===ge.afterLastDot(this.data.node.uid))},state(){if(!this.taskRuns)return null;if(this.taskRuns.length===1)return this.taskRuns[0].state.current;const e=this.taskRuns.map(r=>r.state.current),t=[Ce.FAILED,Ce.KILLED,Ce.WARNING,Ce.KILLING,Ce.RUNNING,Ce.SUCCESS,Ce.RESTARTED,Ce.CREATED];return e.map(r=>{const o=t.indexOf(r[1]);return t[o]=void 0,[o,r]}).sort().map(r=>r[1])[0]},classes(){return{"execution-no-taskrun":this.taskExecution&&this.taskRuns&&this.taskRuns.length===0}},expandData(){return{id:this.id,type:this.data.node.task.type}},dataWithLink(){var e,t,n,r;if(this.data.node.type.endsWith("SubflowGraphTask")&&this.enableSubflowInteraction){const o=this.data.node.task.subflowId??this.data.node.task;return{...this.data,link:{namespace:o.namespace,id:o.flowId,executionId:(r=(n=(t=(e=this.taskExecution)==null?void 0:e.taskRunList.filter(a=>{var s;return a.taskId===this.data.node.task.id&&((s=a.outputs)==null?void 0:s.executionId)}))==null?void 0:t[0])==null?void 0:n.outputs)==null?void 0:r.executionId}}}return this.data}},emits:[H.EXPAND,H.OPEN_LINK,H.SHOW_LOGS,H.MOUSE_OVER,H.MOUSE_LEAVE,H.ADD_ERROR,H.EDIT,H.DELETE,H.ADD_TASK,H.SHOW_CONDITION],props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},methods:{forwardEvent(e,t){this.$emit(e,t)}}},Tb=Object.assign(Lb,{setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createVNode(Zf,{id:e.id,data:t.dataWithLink,state:t.state,class:i.normalizeClass(t.classes),icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[5]||(n[5]=r=>t.forwardEvent(i.unref(H).SHOW_DESCRIPTION,r)),onExpand:n[6]||(n[6]=r=>t.forwardEvent(i.unref(H).EXPAND,t.expandData)),onOpenLink:n[7]||(n[7]=r=>t.forwardEvent(i.unref(H).OPEN_LINK,r)),onMouseover:n[8]||(n[8]=r=>t.forwardEvent(i.unref(H).MOUSE_OVER,r)),onMouseleave:n[9]||(n[9]=r=>t.forwardEvent(i.unref(H).MOUSE_LEAVE))},{content:i.withCtx(()=>[t.taskExecution?(i.openBlock(),i.createBlock(Jf,{key:0,execution:t.taskExecution,task:e.data.node.task,color:t.color,uid:e.data.node.uid},null,8,["execution","task","color","uid"])):i.createCommentVNode("",!0)]),"badge-button-before":i.withCtx(()=>[e.data.node.task&&e.data.node.task.runIf?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",["bg-warning"]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).SHOW_CONDITION,{id:t.taskId,task:e.data.node.task,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("show task condition")},{default:i.withCtx(()=>[i.createVNode(th,{class:"button-icon",alt:"Show condition"})]),_:1},8,["title"])])):i.createCommentVNode("",!0),t.taskExecution?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).SHOW_LOGS,{id:t.taskId,execution:t.taskExecution,taskRuns:t.taskRuns}))},[i.createVNode(le,{title:t.$t("show task logs")},{default:i.withCtx(()=>[i.createVNode(Qf,{class:"button-icon",alt:"Show logs"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly&&e.data.isFlowable?(i.openBlock(),i.createElementBlock("span",{key:2,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[2]||(n[2]=r=>t.$emit(i.unref(H).ADD_ERROR,{task:e.data.node.task}))},[i.createVNode(le,{title:t.$t("add error handler")},{default:i.withCtx(()=>[i.createVNode(eh,{class:"button-icon",alt:"Add error handler"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(i.openBlock(),i.createElementBlock("span",{key:3,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[3]||(n[3]=r=>t.$emit(i.unref(H).EDIT,{task:e.data.node.task,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("edit")},{default:i.withCtx(()=>[i.createVNode(In,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),!t.taskExecution&&!e.data.isReadOnly?(i.openBlock(),i.createElementBlock("span",{key:4,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[4]||(n[4]=r=>t.$emit(i.unref(H).DELETE,{id:t.taskId,section:i.unref(nt).TASKS}))},[i.createVNode(le,{title:t.$t("delete")},{default:i.withCtx(()=>[i.createVNode(On,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0)]),_:1},8,["id","data","state","class","icons","icon-component"]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Ib={name:"Task",inheritAttrs:!1,computed:{...Ya("execution",["execution"]),SECTIONS(){return nt},EVENTS(){return H},color(){return this.data.color??"primary"},formattedData(){var e,t,n,r;return{...this.data,unused:((t=(e=this.data.node)==null?void 0:e.triggerDeclaration)==null?void 0:t.disabled)||((r=(n=this.data.node)==null?void 0:n.trigger)==null?void 0:r.disabled)}},triggerId(){return ge.afterLastDot(this.id)}},emits:[H.DELETE,H.EDIT,H.SHOW_DESCRIPTION],components:{Delete:On,Pencil:In,Handle:te.Handle,Tooltip:le},props:{data:{type:Object,required:!0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},id:{type:String,required:!0},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0}},methods:{forwardEvent(e,t){this.$emit(e,t)}}},Ob=Object.assign(Ib,{setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createVNode(Zf,{id:e.id,data:t.formattedData,color:t.color,icons:e.icons,"icon-component":e.iconComponent,onShowDescription:n[2]||(n[2]=r=>t.forwardEvent(i.unref(H).SHOW_DESCRIPTION,r)),onExpand:n[3]||(n[3]=r=>t.forwardEvent(i.unref(H).EXPAND,{id:e.id}))},i.createSlots({_:2},[e.data.isReadOnly?void 0:{name:"badge-button-before",fn:i.withCtx(()=>[t.execution?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).EDIT,{task:e.data.node.triggerDeclaration,section:i.unref(nt).TRIGGERS}))},[i.createVNode(le,{title:t.$t("edit")},{default:i.withCtx(()=>[i.createVNode(In,{class:"button-icon",alt:"Edit task"})]),_:1},8,["title"])],2)),t.execution?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(["circle-button",[`bg-${t.color}`]]),onClick:n[1]||(n[1]=r=>t.$emit(i.unref(H).DELETE,{id:t.triggerId,section:i.unref(nt).TRIGGERS}))},[i.createVNode(le,{title:t.$t("delete")},{default:i.withCtx(()=>[i.createVNode(On,{class:"button-icon",alt:"Delete task"})]),_:1},8,["title"])],2))]),key:"0"}]),1032,["id","data","color","icons","icon-component"]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Ab={name:"LightningBoltIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Rb=["aria-hidden","aria-label"],Db=["fill","width","height"],Pb={d:"M11 15H6L13 1V9H18L11 23V15Z"},Bb={key:0};function Vb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon lightning-bolt-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Pb,[n.title?(i.openBlock(),i.createElementBlock("title",Bb,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Db))],16,Rb)}const xb=K(Ab,[["render",Vb]]),Mb={class:"collapsed-cluster-node d-flex"},$b={class:"node-text"},qb={class:"text-white top-button-div"},Fb={components:{Tooltip:le,Handle:te.Handle,ArrowExpand:Ln,LightningBolt:xb},inheritAttrs:!1,props:{id:{type:String,default:void 0},sourcePosition:{type:String,required:!0},targetPosition:{type:String,required:!0},data:{type:Object,required:!0}},data(){return{filter:void 0,isOpen:!1}},computed:{EVENTS(){return H},expandable(){var e;return((e=this.data)==null?void 0:e.expandable)||!1},description(){const e=this.data.node.task??this.data.node.trigger??null;return e?e.description??null:null}}},Ub=Object.assign(Fb,{__name:"CollapsedClusterNode",setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(te.Handle),{type:"source",position:e.sourcePosition},null,8,["position"]),i.createElementVNode("div",Mb,[i.createElementVNode("span",$b,[e.data.iconComponent?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.data.iconComponent),{key:0,class:i.normalizeClass(`text-${e.data.color} me-2`)},null,8,["class"])):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(i.unref(ge).afterLastDot(e.id)),1)]),i.createElementVNode("div",qb,[i.renderSlot(t.$slots,"badge-button-before",{},void 0,!0),t.expandable?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["circle-button",[`bg-${e.data.color}`]]),onClick:n[0]||(n[0]=r=>t.$emit(i.unref(H).EXPAND,{id:e.id}))},[i.createVNode(le,{title:t.$t("expand")},{default:i.withCtx(()=>[i.createVNode(Ln,{class:"button-icon",alt:"Expand task"})]),_:1},8,["title"])],2)):i.createCommentVNode("",!0),i.renderSlot(t.$slots,"badge-button-after",{},void 0,!0)])]),i.createVNode(i.unref(te.Handle),{type:"target",position:e.targetPosition},null,8,["position"])],64))}}),Hb=K(Ub,[["__scopeId","data-v-89413b39"]]),Gb={name:"SplitCellsVerticalIcon",emits:["click"]},zb={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("svg",zb,t[0]||(t[0]=[i.createElementVNode("g",{"clip-path":"url(#clip0_1111_7266)"},[i.createElementVNode("path",{d:"M1.97852 2.63349C1.97852 2.26366 2.27832 1.96387 2.64814 1.96387L13.3621 1.96387C13.7319 1.96387 14.0317 2.26366 14.0317 2.63349L14.0317 13.3475C14.0317 13.7173 13.7319 14.0171 13.3621 14.0171L2.64814 14.0171C2.27832 14.0171 1.97852 13.7173 1.97852 13.3475L1.97852 2.63349ZM3.31776 8.6601L3.31776 12.6778L12.6925 12.6778L12.6925 8.6601L10.014 8.6601L10.014 7.32085L12.6925 7.32085L12.6925 3.30311L3.31776 3.30311L3.31776 7.32086L5.99626 7.32085L5.99626 8.6601L3.31776 8.6601ZM5.99626 5.98161L8.00513 3.97274L10.014 5.98161L8.67475 5.98161L8.67475 9.99935L10.014 9.99935L8.00513 12.0082L5.99626 9.99935L7.3355 9.99935L7.3355 5.98161L5.99626 5.98161Z",fill:"currentColor"})],-1),i.createElementVNode("defs",null,[i.createElementVNode("clipPath",{id:"clip0_1111_7266"},[i.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor",transform:"translate(0 16) rotate(-90)"})])],-1)]))}const Wb=K(Gb,[["render",jb],["__scopeId","data-v-084c51e6"]]),Kb={name:"SplitCellsHorizontalIcon",emits:["click"]},Yb={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xb(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("svg",Yb,t[0]||(t[0]=[i.createElementVNode("g",{"clip-path":"url(#clip0_796_3996)"},[i.createElementVNode("path",{d:"M13.367 1.979C13.7368 1.979 14.0366 2.27881 14.0366 2.64863V13.3626C14.0366 13.7324 13.7368 14.0322 13.367 14.0322H2.65302C2.2832 14.0322 1.9834 13.7324 1.9834 13.3626V2.64863C1.9834 2.27881 2.2832 1.979 2.65302 1.979H13.367ZM7.34039 3.31825H3.32265V12.693H7.34039V10.0145H8.67963V12.693H12.6974V3.31825H8.67963V5.99675H7.34039V3.31825ZM10.0189 5.99675L12.0278 8.00562L10.0189 10.0145V8.67524H6.00114V10.0145L3.99227 8.00562L6.00114 5.99675V7.33599H10.0189V5.99675Z",fill:"currentColor"})],-1),i.createElementVNode("defs",null,[i.createElementVNode("clipPath",{id:"clip0_796_3996"},[i.createElementVNode("rect",{width:"16",height:"16",fill:"currentColor"})])],-1)]))}const Zb=K(Kb,[["render",Xb],["__scopeId","data-v-c77c1469"]]),Jb={name:"DownloadIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qb=["aria-hidden","aria-label"],e0=["fill","width","height"],t0={d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"},n0={key:0};function r0(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon download-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",t0,[n.title?(i.openBlock(),i.createElementBlock("title",n0,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,e0))],16,Qb)}const i0=K(Jb,[["render",r0]]);function o0(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}const a0=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function rt(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function dn(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function s0(e){const t=dn(e,"border-left-width"),n=dn(e,"border-right-width");return e.clientWidth+t+n}function l0(e){const t=dn(e,"border-top-width"),n=dn(e,"border-bottom-width");return e.clientHeight+t+n}function nh(e,t={}){const n=t.width||s0(e),r=t.height||l0(e);return{width:n,height:r}}function u0(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const $e=16384;function c0(e){(e.width>$e||e.height>$e)&&(e.width>$e&&e.height>$e?e.width>e.height?(e.height*=$e/e.width,e.width=$e):(e.width*=$e/e.height,e.height=$e):e.width>$e?(e.height*=$e/e.width,e.width=$e):(e.width*=$e/e.height,e.height=$e))}function fn(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function d0(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function f0(e,t,n){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),a=document.createElementNS(r,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),o.appendChild(a),a.appendChild(e),d0(o)}const Be=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||Be(n,t)};function h0(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function m0(e){return rt(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function p0(e,t,n){const r=`.${e}:${t}`,o=n.cssText?h0(n):m0(n);return document.createTextNode(`${r}{${o}}`)}function ld(e,t,n){const r=window.getComputedStyle(e,n),o=r.getPropertyValue("content");if(o===""||o==="none")return;const a=a0();try{t.className=`${t.className} ${a}`}catch{return}const s=document.createElement("style");s.appendChild(p0(a,n,r)),t.appendChild(s)}function g0(e,t){ld(e,t,":before"),ld(e,t,":after")}const ud="application/font-woff",cd="image/jpeg",v0={woff:ud,woff2:ud,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:cd,jpeg:cd,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function _0(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Za(e){const t=_0(e).toLowerCase();return v0[t]||""}function E0(e){return e.split(/,/)[1]}function ka(e){return e.search(/^(data:)/)!==-1}function y0(e,t){return`data:${t};base64,${e}`}async function rh(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((a,s)=>{const l=new FileReader;l.onerror=s,l.onloadend=()=>{try{a(n({res:r,result:l.result}))}catch(u){s(u)}},l.readAsDataURL(o)})}const oa={};function b0(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function Ja(e,t,n){const r=b0(e,t,n.includeQueryParams);if(oa[r]!=null)return oa[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let o;try{const a=await rh(e,n.fetchRequestInit,({res:s,result:l})=>(t||(t=s.headers.get("Content-Type")||""),E0(l)));o=y0(a,t)}catch(a){o=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${e}`;a&&(s=typeof a=="string"?a:a.message),s&&console.warn(s)}return oa[r]=o,o}async function k0(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):fn(t)}async function C0(e,t){if(e.currentSrc){const a=document.createElement("canvas"),s=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,s==null||s.drawImage(e,0,0,a.width,a.height);const l=a.toDataURL();return fn(l)}const n=e.poster,r=Za(n),o=await Ja(n,r,t);return fn(o)}async function N0(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await An(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function w0(e,t){return Be(e,HTMLCanvasElement)?k0(e):Be(e,HTMLVideoElement)?C0(e,t):Be(e,HTMLIFrameElement)?N0(e):e.cloneNode(!1)}const S0=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function L0(e,t,n){var r,o;let a=[];return S0(e)&&e.assignedNodes?a=rt(e.assignedNodes()):Be(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?a=rt(e.contentDocument.body.childNodes):a=rt(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes),a.length===0||Be(e,HTMLVideoElement)||await a.reduce((s,l)=>s.then(()=>An(l,n)).then(u=>{u&&t.appendChild(u)}),Promise.resolve()),t}function T0(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):rt(r).forEach(o=>{let a=r.getPropertyValue(o);o==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Be(e,HTMLIFrameElement)&&o==="display"&&a==="inline"&&(a="block"),o==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(o,a,r.getPropertyPriority(o))})}function I0(e,t){Be(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Be(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function O0(e,t){if(Be(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(o=>e.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function A0(e,t){return Be(t,Element)&&(T0(e,t),g0(e,t),I0(e,t),O0(e,t)),t}async function R0(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let a=0;a<n.length;a++){const l=n[a].getAttribute("xlink:href");if(l){const u=e.querySelector(l),d=document.querySelector(l);!u&&d&&!r[l]&&(r[l]=await An(d,t,!0))}}const o=Object.values(r);if(o.length){const a="http://www.w3.org/1999/xhtml",s=document.createElementNS(a,"svg");s.setAttribute("xmlns",a),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const l=document.createElementNS(a,"defs");s.appendChild(l);for(let u=0;u<o.length;u++)l.appendChild(o[u]);e.appendChild(s)}return e}async function An(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>w0(r,t)).then(r=>L0(e,r,t)).then(r=>A0(e,r)).then(r=>R0(r,t))}const ih=/url\((['"]?)([^'"]+?)\1\)/g,D0=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,P0=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function B0(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function V0(e){const t=[];return e.replace(ih,(n,r,o)=>(t.push(o),n)),t.filter(n=>!ka(n))}async function x0(e,t,n,r,o){try{const a=n?o0(t,n):t,s=Za(t);let l;return o||(l=await Ja(a,s,r)),e.replace(B0(t),`$1${l}$3`)}catch{}return e}function M0(e,{preferredFontFormat:t}){return t?e.replace(P0,n=>{for(;;){const[r,,o]=D0.exec(n)||[];if(!o)return"";if(o===t)return`src: ${r};`}}):e}function oh(e){return e.search(ih)!==-1}async function ah(e,t,n){if(!oh(e))return e;const r=M0(e,n);return V0(r).reduce((a,s)=>a.then(l=>x0(l,s,t,n)),Promise.resolve(r))}async function Jt(e,t,n){var r;const o=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(o){const a=await ah(o,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function $0(e,t){await Jt("background",e,t)||await Jt("background-image",e,t),await Jt("mask",e,t)||await Jt("mask-image",e,t)}async function q0(e,t){const n=Be(e,HTMLImageElement);if(!(n&&!ka(e.src))&&!(Be(e,SVGImageElement)&&!ka(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,o=await Ja(r,Za(r),t);await new Promise((a,s)=>{e.onload=a,e.onerror=s;const l=e;l.decode&&(l.decode=a),l.loading==="lazy"&&(l.loading="eager"),n?(e.srcset="",e.src=o):e.href.baseVal=o})}async function F0(e,t){const r=rt(e.childNodes).map(o=>sh(o,t));await Promise.all(r).then(()=>e)}async function sh(e,t){Be(e,Element)&&(await $0(e,t),await q0(e,t),await F0(e,t))}function U0(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(o=>{n[o]=r[o]}),e}const dd={};async function fd(e){let t=dd[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},dd[e]=t,t}async function hd(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let l=s.replace(r,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),rh(l,t.fetchRequestInit,({result:u})=>(n=n.replace(s,`url(${u})`),[s,u]))});return Promise.all(a).then(()=>n)}function md(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const u=o.exec(r);if(u===null)break;t.push(u[0])}r=r.replace(o,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,s="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(s,"gi");for(;;){let u=a.exec(r);if(u===null){if(u=l.exec(r),u===null)break;a.lastIndex=l.lastIndex}else l.lastIndex=a.lastIndex;t.push(u[0])}return t}async function H0(e,t){const n=[],r=[];return e.forEach(o=>{if("cssRules"in o)try{rt(o.cssRules||[]).forEach((a,s)=>{if(a.type===CSSRule.IMPORT_RULE){let l=s+1;const u=a.href,d=fd(u).then(c=>hd(c,t)).then(c=>md(c).forEach(f=>{try{o.insertRule(f,f.startsWith("@import")?l+=1:o.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:f,error:h})}})).catch(c=>{console.error("Error loading remote css",c.toString())});r.push(d)}})}catch(a){const s=e.find(l=>l.href==null)||document.styleSheets[0];o.href!=null&&r.push(fd(o.href).then(l=>hd(l,t)).then(l=>md(l).forEach(u=>{s.insertRule(u,o.cssRules.length)})).catch(l=>{console.error("Error loading remote stylesheet",l)})),console.error("Error inlining remote css file",a)}}),Promise.all(r).then(()=>(e.forEach(o=>{if("cssRules"in o)try{rt(o.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${o.href}`,a)}}),n))}function G0(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>oh(t.style.getPropertyValue("src")))}async function z0(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=rt(e.ownerDocument.styleSheets),r=await H0(n,t);return G0(r)}async function j0(e,t){const n=await z0(e,t);return(await Promise.all(n.map(o=>{const a=o.parentStyleSheet?o.parentStyleSheet.href:null;return ah(o.cssText,a,t)}))).join(`
|
|
29
|
-
`)}async function W0(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await j0(e,t);if(n){const r=document.createElement("style"),o=document.createTextNode(n);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function K0(e,t={}){const{width:n,height:r}=nh(e,t),o=await An(e,t,!0);return await W0(o,t),await sh(o,t),U0(o,t),await f0(o,n,r)}async function lh(e,t={}){const{width:n,height:r}=nh(e,t),o=await K0(e,t),a=await fn(o),s=document.createElement("canvas"),l=s.getContext("2d"),u=t.pixelRatio||u0(),d=t.canvasWidth||n,c=t.canvasHeight||r;return s.width=d*u,s.height=c*u,t.skipAutoScale||c0(s),s.style.width=`${d}`,s.style.height=`${c}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,s.width,s.height)),l.drawImage(a,0,0,s.width,s.height),s}async function Y0(e,t={}){return(await lh(e,t)).toDataURL()}async function X0(e,t={}){return(await lh(e,t)).toDataURL("image/jpeg",t.quality||1)}function Z0(){const e=i.ref(""),t=i.ref("png"),n=i.ref();async function r(l,u={}){let d;const c=u.fileName??`vue-flow-screenshot-${Date.now()}`;switch(u.type){case"jpeg":d=await o(l,u);break;case"png":d=await a(l,u);break;default:d=await a(l,u);break}return u.shouldDownload&&c!==""&&s(c),d}function o(l,u={quality:.95}){return n.value=null,X0(l,u).then(d=>(e.value=d,t.value="jpeg",d)).catch(d=>{throw d.value=d,new Error(d)})}function a(l,u={quality:.95}){return n.value=null,Y0(l,u).then(d=>(e.value=d,t.value="png",d)).catch(d=>{throw d.value=d,new Error(d)})}function s(l){const u=document.createElement("a");u.download=`${l}.${t.value}`,u.href=e.value,u.click()}return{capture:r,download:s,dataUrl:e,error:n}}const J0={key:1,class:"exporting"},Q0=i.defineComponent({__name:"Topology",props:{id:{type:String,required:!0},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{type:String,default:void 0,required:!0},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{type:Object,required:!0},flowId:{type:String,required:!1,default:void 0},namespace:{type:String,required:!1,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},emits:[H.EDIT,H.DELETE,H.OPEN_LINK,H.SHOW_LOGS,H.SHOW_DESCRIPTION,"on-add-flowable-error",H.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",H.SHOW_CONDITION],setup(e,{emit:t}){const n=e,r=i.ref(!1),o=i.ref(),{getNodes:a,onNodeDrag:s,onNodeDragStart:l,onNodeDragStop:u,fitView:d,setElements:c,vueFlowRef:f}=te.useVueFlow(n.id),h=i.ref({}),m=i.ref([]),C=i.ref(new Set),E=i.ref([]),{capture:_}=Z0(),p=t;i.onMounted(()=>{v()}),i.watch(()=>n.flowGraph,()=>{v()}),i.watch(()=>n.isHorizontal,()=>{v()});const v=()=>{tn.cleanGraph(n.id),i.nextTick(()=>{p("loading",!0);const M=C.value;C.value=new Set,m.value=[],h.value={},M.forEach(J=>T(ct+J,!1,!1));const D=tn.generateGraph(n.id,n.flowId,n.namespace,n.flowGraph,n.source,m.value,n.isHorizontal,h.value,C.value,E.value,n.isReadOnly,n.isAllowedEdit,n.enableSubflowInteraction);D&&(c(D),d(),p("loading",!1))})},y=M=>{r.value||tn.linkedElements(n.id,M.uid).forEach(D=>{(D==null?void 0:D.type)==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-gray-900")},D.class="rounded-3")})},g=()=>{k()},k=()=>{a.value.filter(M=>M.type==="task"||M.type==="trigger").forEach(M=>{M.style={...M.style,opacity:"1",outline:"none"},M.class=""})};l(M=>{r.value=!0,k(),M.node.style={...M.node.style,zIndex:1976},o.value=M.node.position}),u(M=>{if(r.value=!1,M.intersections&&b(M.intersections,M.node)===null){const D=M.node,J=M.intersections.find(W=>W.type==="task");if(J)try{n.source&&p("swapped-task",{newSource:L.swapBlocks({source:n.source,section:"tasks",key1:ge.afterLastDot(D.id)??"",key2:ge.afterLastDot(J.id)??""}),swappedTasks:[D.id,J.id]})}catch(W){p("message",{variant:"error",title:"cannot swap tasks",message:`${W.message}, ${W.messageOptions}`}),D.position=o.value}else D.position=o.value}else M.node.position=o.value;k(),M.node.style={...M.node.style,zIndex:5},o.value=null});const N=i.computed(()=>{var M;return(M=n.flowGraph)!=null&&M.clusters?n.flowGraph.clusters.filter(D=>D.cluster.type.endsWith("SubflowGraphCluster")).map(D=>D.cluster.taskNode.uid+"."):[]});s(M=>{k(),a.value.filter(D=>D.id!==M.node.id).forEach(D=>{var J;D.type==="trigger"||D.type==="task"&&(D.id.startsWith(M.node.id+".")||M.node.id.startsWith(D.id+"."))||(J=N==null?void 0:N.value)!=null&&J.some(W=>D.id.startsWith(W))?D.style={...D.style,opacity:"0.5"}:D.style={...D.style,opacity:"1"}}),M.intersections&&!b(M.intersections,M.node)&&M.intersections.filter(D=>D.type==="task").length===1&&(M.intersections.forEach(D=>{D.type==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-primary")},D.class="rounded-3")}),M.node.style={...M.node.style,outline:"0.5px solid "+Fe("--bs-primary")},M.node.class="rounded-3")});const b=(M,D)=>{const J=M.filter(W=>W.type==="task").map(W=>ge.afterLastDot(W.id));if(J.length>1)return"toomuchtaskerror";try{if(J.length===1&&n.source&&L.isParentChildrenRelation({source:n.source,sections:["tasks","triggers"],key1:ge.afterLastDot(J[0])??"",key2:ge.afterLastDot(D.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return M.filter(W=>W.type==="trigger").length>0?"triggererror":null},T=(M,D,J=!1)=>{const W=n.flowGraph.clusters.find(ne=>ne.cluster.uid.endsWith(M)),F=M.replace(ct,"");C.value.add(F),m.value=m.value.concat(W.nodes.filter(ne=>ne!==F||J)),m.value=m.value.concat([W.cluster.uid]),h.value={...h.value,[W.cluster.uid]:F,[W.start]:F,[W.end]:F};for(let ne of W.nodes)n.flowGraph.clusters.map(me=>me.cluster.uid).includes(ne)&&T(ne,!1,!0);D&&v()},A=M=>{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(M.type)&&!n.expandedSubflows.includes(M.id)){p("expand-subflow",[...n.expandedSubflows,M.id]);return}h.value={},m.value=[],E.value=[],C.value.delete(M.id),C.value.forEach(J=>T(J,!1,!1)),v()},R=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,U=i.ref(!0),V=i.ref(!1),j=()=>V.value=!V.value;function Z(M){if(!f.value){console.warn("Flow not found");return}U.value=!1,_(f.value,{type:M,shouldDownload:!0}).then(()=>U.value=!0).finally(()=>V.value=!1)}return(M,D)=>(i.openBlock(),i.createBlock(i.unref(te.VueFlow),{id:e.id,"default-marker-color":i.unref(Fe)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":i.withCtx(J=>[i.createVNode(BE,i.mergeProps(J,{onCollapse:D[0]||(D[0]=W=>T(W,!0))}),null,16)]),"node-dot":i.withCtx(J=>[i.createVNode(GE,i.normalizeProps(i.guardReactiveProps(J)),null,16)]),"node-task":i.withCtx(J=>[i.createVNode(Tb,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,onEdit:D[1]||(D[1]=W=>p(i.unref(H).EDIT,W)),onDelete:D[2]||(D[2]=W=>p(i.unref(H).DELETE,W)),onExpand:D[3]||(D[3]=W=>A(W)),onOpenLink:D[4]||(D[4]=W=>p(i.unref(H).OPEN_LINK,W)),onShowLogs:D[5]||(D[5]=W=>p(i.unref(H).SHOW_LOGS,W)),onShowDescription:D[6]||(D[6]=W=>p(i.unref(H).SHOW_DESCRIPTION,W)),onShowCondition:D[7]||(D[7]=W=>p(i.unref(H).SHOW_CONDITION,W)),onMouseover:D[8]||(D[8]=W=>y(W)),onMouseleave:D[9]||(D[9]=W=>g()),onAddError:D[10]||(D[10]=W=>p("on-add-flowable-error",W)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":i.withCtx(J=>[i.createVNode(Ob,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:D[11]||(D[11]=W=>p(i.unref(H).DELETE,W)),onEdit:D[12]||(D[12]=W=>p(i.unref(H).EDIT,W)),onShowDescription:D[13]||(D[13]=W=>p(i.unref(H).SHOW_DESCRIPTION,W))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":i.withCtx(J=>[i.createVNode(Hb,i.mergeProps(J,{onExpand:D[14]||(D[14]=W=>A(W))}),null,16)]),"edge-edge":i.withCtx(J=>[i.createVNode(iy,i.mergeProps(J,{"yaml-source":e.source,onAddTask:D[15]||(D[15]=W=>p(i.unref(H).ADD_TASK,W)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:i.withCtx(()=>[i.createVNode(i.unref(NE),{"pattern-color":R?i.unref(Fe)("--bs-grey-500"):i.unref(Fe)("--bs-grey-300")},null,8,["pattern-color"]),U.value?(i.openBlock(),i.createBlock(i.unref(Dn.Controls),{key:0,"show-interactive":!1},{default:i.withCtx(()=>[e.toggleOrientationButton?(i.openBlock(),i.createBlock(i.unref(Dn.ControlButton),{key:0,onClick:D[16]||(D[16]=J=>p("toggle-orientation",J))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.isHorizontal?Zb:Wb)))]),_:1})):i.createCommentVNode("",!0),i.createVNode(i.unref(Dn.ControlButton),{onClick:j},{default:i.withCtx(()=>[i.createVNode(i0)]),_:1}),V.value?(i.openBlock(),i.createElementBlock("ul",J0,[i.createElementVNode("li",{onClick:D[17]||(D[17]=J=>Z("jpeg")),class:"item"}," Export as .JPEG "),i.createElementVNode("li",{onClick:D[18]||(D[18]=J=>Z("png")),class:"item"}," Export as .PNG ")])):i.createCommentVNode("",!0)]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),ek=K(Q0,[["__scopeId","data-v-ecaa6943"]]),tk={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nk=["aria-hidden","aria-label"],rk=["fill","width","height"],ik={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},ok={key:0};function ak(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon check-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ik,[n.title?(i.openBlock(),i.createElementBlock("title",ok,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,rk))],16,nk)}const sk=K(tk,[["render",ak]]),lk={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uk=["aria-hidden","aria-label"],ck=["fill","width","height"],dk={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"},fk={key:0};function hk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon content-copy-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",dk,[n.title?(i.openBlock(),i.createElementBlock("title",fk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ck))],16,uk)}const mk=K(lk,[["render",hk]]),pk={key:0,class:"language"},gk=["innerHTML"],vk=i.defineComponent({__name:"SchemaToCode",props:{highlighter:{},code:{default:""},language:{default:null},filename:{default:null},highlights:{default:()=>[]},meta:{default:null},theme:{default:"github-dark"}},setup(e){const t={ContentCopy:i.shallowRef(mk),Check:i.shallowRef(sk)},n=e,r=i.ref(!1),o=i.ref(),a=i.shallowRef(t.ContentCopy.value),s=i.ref(),l=i.ref(),u=i.computed(()=>n.highlighter.codeToHtml(n.code,{lang:n.language,theme:n.theme}));function d(){r.value=!0,o.value&&i.nextTick(()=>{s.value&&l.value&&Uh.createPopper(s.value,l.value,{placement:"left"})})}function c(){clearTimeout(o.value),navigator.clipboard.writeText(n.code.trimEnd()),a.value=t.Check.value,o.value=setTimeout(()=>{a.value=t.ContentCopy.value,o.value=void 0},2e3)}return(f,h)=>(i.openBlock(),i.createElementBlock("div",{class:"code-block",onMouseover:d,onMouseleave:h[0]||(h[0]=m=>r.value=!1)},[f.language&&!r.value?(i.openBlock(),i.createElementBlock("div",pk,i.toDisplayString(f.language),1)):i.createCommentVNode("",!0),r.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("button",{ref_key:"copyButton",ref:s,class:"copy"},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{onClick:c}))],512),o.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:l,id:"copied-tooltip",role:"tooltip"},h[1]||(h[1]=[i.createTextVNode(" Copied! "),i.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)]),512)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createElementVNode("div",{innerHTML:u.value},null,8,gk)],32))}}),pd=K(vk,[["__scopeId","data-v-a899f6a1"]]),_k={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ek=["aria-hidden","aria-label"],yk=["fill","width","height"],bk={d:"M10,17L15,12L10,7V17Z"},kk={key:0};function Ck(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-right-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",bk,[n.title?(i.openBlock(),i.createElementBlock("title",kk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,yk))],16,Ek)}const Nk=K(_k,[["render",Ck]]),wk={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sk=["aria-hidden","aria-label"],Lk=["fill","width","height"],Tk={d:"M7,10L12,15L17,10H7Z"},Ik={key:0};function Ok(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Tk,[n.title?(i.openBlock(),i.createElementBlock("title",Ik,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Lk))],16,Sk)}const Ak=K(wk,[["render",Ok]]),Rk=["id","open"],Dk={class:"d-flex gap-2 align-items-center"},Pk={key:0,class:"d-flex flex-grow-1"},Bk=["id"],Vk=i.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:t}){const n=e,r=i.ref(!0),o=on.useRoute(),a=on.useRouter(),s=i.computed(()=>`#${n.href}-body`),l=()=>{r.value=!r.value,a.replace({hash:r.value?"":s.value})},u=t;i.watch(()=>o.hash,c=>{c===s.value&&(r.value=!1,u("expand"))},{immediate:!0});const d=i.computed(()=>n.initiallyExpanded||o.hash===s.value);return i.watch(()=>n.initiallyExpanded,c=>{c!==void 0&&(r.value=!c)},{immediate:!0}),(c,f)=>(i.openBlock(),i.createElementBlock("details",{id:c.href,onClick:l,open:d.value},[i.createElementVNode("summary",{class:i.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:r.value}])},[i.createElementVNode("span",Dk,[c.arrow?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value?Nk:Ak),{key:0,class:"arrow"})):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(c.clickableText)+" ",1),i.renderSlot(c.$slots,"additionalButtonText",{},void 0,!0)]),c.$slots.buttonRight?(i.openBlock(),i.createElementBlock("span",Pk,[i.renderSlot(c.$slots,"buttonRight",{collapsed:r.value},void 0,!0)])):i.createCommentVNode("",!0)],2),c.$slots.content?(i.openBlock(),i.createElementBlock("div",{key:0,id:c.href+"-body"},[i.createElementVNode("div",null,[i.renderSlot(c.$slots,"content",{},void 0,!0)])],8,Bk)):i.createCommentVNode("",!0)],8,Rk))}}),hn=K(Vk,[["__scopeId","data-v-2304f89e"]]);function Qt(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function uh(e){const t=e.split("_")[0];return t.substring(t.lastIndexOf(".")+1)}function xk(e){var t,n;if(e.enum)return e.enum;if((t=e.items)!=null&&t.enum)return e.items.enum;if((n=e.additionalProperties)!=null&&n.enum)return e.additionalProperties.enum}function Mk(e){return e.allOf&&(e=e.allOf.reduce((t,n)=>({...t,...n}),{...e}),delete e.allOf),e}function ch(e){const t={},n=Qt(e);return n?t.types=[n]:e.anyOf?t.types=e.anyOf.map(Qt).filter(r=>r!==void 0).filter(ge.distinctFilter):t.types=["object"],e.additionalProperties?t.subType=Qt(e.additionalProperties):e.items&&(t.subType=Qt(e.items)),t}const $k={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qk=["aria-hidden","aria-label"],Fk=["fill","width","height"],Uk={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Hk={key:0};function Gk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Uk,[n.title?(i.openBlock(),i.createElementBlock("title",Hk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Fk))],16,qk)}const zk=K($k,[["render",Gk]]),jk={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wk=["aria-hidden","aria-label"],Kk=["fill","width","height"],Yk={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"},Xk={key:0};function Zk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Yk,[n.title?(i.openBlock(),i.createElementBlock("title",Xk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Kk))],16,Wk)}const dh=K(jk,[["render",Zk]]),Jk={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qk=["aria-hidden","aria-label"],eC=["fill","width","height"],tC={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"},nC={key:0};function rC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon file-document-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",tC,[n.title?(i.openBlock(),i.createElementBlock("title",nC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,eC))],16,Qk)}const iC=K(Jk,[["render",rC]]),oC={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},aC=["aria-hidden","aria-label"],sC=["fill","width","height"],lC={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},uC={key:0};function cC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",lC,[n.title?(i.openBlock(),i.createElementBlock("title",uC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,sC))],16,aC)}const fh=K(oC,[["render",cC]]),dC={class:"me-3"},fC={class:"d-flex flex-column"},hC=i.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const t=e,n=i.computed(()=>{switch(t.type){case"success":return iC;case"info":return la;case"warning":return fh;case"danger":return sa;default:return la}});return(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass("doc-alert alert alert-"+r.type),role:"alert"},[i.createElementVNode("div",dC,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:"alert-icon"}))]),i.createElementVNode("div",fC,[i.renderSlot(r.$slots,"default",{},void 0,!0)])],2))}}),mC=K(hC,[["__scopeId","data-v-f7fd8bc1"]]),pC={class:"property-detail"},gC={key:0},vC=["href"],_C={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},EC={class:"ref-type"},yC={key:1,class:"type-box rounded fs-7 px-2 py-1"},bC={key:1},kC={class:"border rounded px-2 py-1"},CC={key:2},NC={class:"border rounded px-2 py-1"},wC={key:3},SC={class:"border rounded px-2 py-1"},LC={key:4},TC={class:"border rounded px-2 py-1"},IC={key:5},OC={class:"border rounded px-2 py-1"},AC={key:6},RC={class:"border rounded px-2 py-1"},DC={key:7},PC={class:"border rounded px-2 py-1"},BC={key:8},VC={class:"border rounded px-2 py-1"},xC={key:9},MC={class:"border rounded px-2 py-1"},$C={key:10},qC={class:"border rounded px-2 py-1"},FC={key:11},UC={class:"border rounded px-2 py-1"},HC={key:12},GC={class:"border rounded px-2 py-1"},zC={key:13},jC={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},WC={key:14},KC={class:"property-description markdown"},YC={key:2},XC=i.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const t=e,n=i.ref(ch(t.property).subType),r=i.ref(xk(t.property)),o=a=>a.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(a,s)=>(i.openBlock(),i.createElementBlock("div",pC,[n.value?(i.openBlock(),i.createElementBlock("div",gC,[s[1]||(s[1]=i.createElementVNode("span",null," SubType ",-1)),n.value.startsWith("#")?(i.openBlock(),i.createElementBlock("a",{key:0,href:n.value,onClick:s[0]||(s[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("button",_C,[i.createElementVNode("span",EC,i.toDisplayString(i.unref(uh)(n.value)),1),i.createVNode(dh)])],8,vC)):(i.openBlock(),i.createElementBlock("span",yC,i.toDisplayString(n.value),1))])):i.createCommentVNode("",!0),a.property.default!==void 0?(i.openBlock(),i.createElementBlock("div",bC,[s[2]||(s[2]=i.createElementVNode("span",null," Default ",-1)),i.createElementVNode("code",kC,i.toDisplayString(a.property.default),1)])):i.createCommentVNode("",!0),a.property.pattern!==void 0?(i.openBlock(),i.createElementBlock("div",CC,[s[3]||(s[3]=i.createElementVNode("span",null," Validation RegExp ",-1)),i.createElementVNode("code",NC,i.toDisplayString(a.property.pattern),1)])):i.createCommentVNode("",!0),a.property.unit!==void 0&&a.property.unit.trim().length>0?(i.openBlock(),i.createElementBlock("div",wC,[s[4]||(s[4]=i.createElementVNode("span",null," Unit ",-1)),i.createElementVNode("code",SC,i.toDisplayString(a.property.unit),1)])):i.createCommentVNode("",!0),a.property.minLength!==void 0?(i.openBlock(),i.createElementBlock("div",LC,[s[5]||(s[5]=i.createElementVNode("span",null," Min length ",-1)),i.createElementVNode("code",TC,i.toDisplayString(a.property.minLength),1)])):i.createCommentVNode("",!0),a.property.maxLength!==void 0?(i.openBlock(),i.createElementBlock("div",IC,[s[6]||(s[6]=i.createElementVNode("span",null," Max length ",-1)),i.createElementVNode("code",OC,i.toDisplayString(a.property.maxLength),1)])):i.createCommentVNode("",!0),a.property.minItems!==void 0?(i.openBlock(),i.createElementBlock("div",AC,[s[7]||(s[7]=i.createElementVNode("span",null," Min items ",-1)),i.createElementVNode("code",RC,i.toDisplayString(a.property.minItems),1)])):i.createCommentVNode("",!0),a.property.maxItems!==void 0?(i.openBlock(),i.createElementBlock("div",DC,[s[8]||(s[8]=i.createElementVNode("span",null," Max items ",-1)),i.createElementVNode("code",PC,i.toDisplayString(a.property.maxItems),1)])):i.createCommentVNode("",!0),a.property.minimum!==void 0?(i.openBlock(),i.createElementBlock("div",BC,[s[9]||(s[9]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",VC," >= "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMinimum!==void 0?(i.openBlock(),i.createElementBlock("div",xC,[s[10]||(s[10]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",MC," > "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.maximum!==void 0?(i.openBlock(),i.createElementBlock("div",$C,[s[11]||(s[11]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",qC," <= "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMaximum!==void 0?(i.openBlock(),i.createElementBlock("div",FC,[s[12]||(s[12]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",UC," < "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.format!==void 0?(i.openBlock(),i.createElementBlock("div",HC,[s[13]||(s[13]=i.createElementVNode("span",null," Format ",-1)),i.createElementVNode("code",GC,i.toDisplayString(a.property.format),1)])):i.createCommentVNode("",!0),r.value!==void 0?(i.openBlock(),i.createElementBlock("div",zC,[s[14]||(s[14]=i.createElementVNode("span",null," Possible Values ",-1)),i.createElementVNode("div",jC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(l,u)=>(i.openBlock(),i.createElementBlock("code",{class:"border rounded px-2 py-1",key:u},i.toDisplayString(l),1))),128))])])):i.createCommentVNode("",!0),a.property.title!==void 0||a.property.description!==void 0?(i.openBlock(),i.createElementBlock("div",WC,[i.createElementVNode("div",KC,[a.property.title!==void 0?i.renderSlot(a.$slots,"markdown",{key:0,content:o(a.property.title)},void 0,!0):i.createCommentVNode("",!0),a.property.description!==void 0?i.renderSlot(a.$slots,"markdown",{key:1,content:o(a.property.description)},void 0,!0):i.createCommentVNode("",!0),a.property.$internalStorageURI?(i.openBlock(),i.createElementBlock("div",YC,[i.createVNode(mC,{type:"info"},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}}),ZC=K(XC,[["__scopeId","data-v-79715a4e"]]),JC={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},QC=["aria-hidden","aria-label"],eN=["fill","width","height"],tN={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},nN={key:0};function rN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",tN,[n.title?(i.openBlock(),i.createElementBlock("title",nN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,eN))],16,QC)}const iN=K(JC,[["render",rN]]),oN={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},aN=["aria-hidden","aria-label"],sN=["fill","width","height"],lN={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"},uN={key:0};function cN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon snowflake-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",lN,[n.title?(i.openBlock(),i.createElementBlock("title",uN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,sN))],16,aN)}const dN=K(oN,[["render",cN]]),fN={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hN=["aria-hidden","aria-label"],mN=["fill","width","height"],pN={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"},gN={key:0};function vN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",pN,[n.title?(i.openBlock(),i.createElementBlock("title",gN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,mN))],16,hN)}const _N=K(fN,[["render",vN]]),EN={class:"border overflow-hidden"},yN={class:"d-flex flex-grow-1 align-items-center justify-content-between"},bN={class:"d-flex gap-2"},kN={class:"d-flex flex-wrap gap-2"},CN=["href"],NN={class:"ref-type"},wN={key:1,class:"type-box rounded fs-7 px-2 py-1"},SN=i.defineComponent({__name:"CollapsibleProperties",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}},emits:["expand"],setup(e,{emit:t}){const n=t,r=i.ref(!1);i.watch(r,s=>{s&&n("expand")});const o=s=>{var l;return s.$dynamic===!0?!0:s.$dynamic===!1?!1:((l=s.anyOf)==null?void 0:l.some(u=>u.$dynamic===!0))??!1};function a(s){const l=[],u=[];for(const f in s)typeof s[f]=="object"&&(s[f]=Mk(s[f]),s[f].$required?l.push(f):u.push(f));const d=[...l.sort(),...u.sort()],c={};return d.forEach(f=>{c[f]=s[f]}),c}return(s,l)=>(i.openBlock(),i.createBlock(hn,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:l[2]||(l[2]=u=>n("expand")),"initially-expanded":s.initiallyExpanded||r.value},i.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:i.withCtx(()=>[i.createElementVNode("div",EN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a(s.properties),(u,d)=>(i.openBlock(),i.createBlock(hn,{class:"property",key:d,arrow:!1,"clickable-text":d,href:s.href+"_"+d,onExpand:l[1]||(l[1]=c=>r.value=!0)},{additionalButtonText:i.withCtx(()=>[u.$required?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Required"},{default:i.withCtx(()=>l[3]||(l[3]=[i.createElementVNode("span",{class:"text-danger"}," *",-1)])),_:1})):i.createCommentVNode("",!0)]),buttonRight:i.withCtx(({collapsed:c})=>[i.createElementVNode("span",yN,[i.createElementVNode("span",bN,[s.showDynamic&&!o(u)?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Non-dynamic"},{default:i.withCtx(()=>[i.createVNode(dN,{class:"text-info"})]),_:1})):i.createCommentVNode("",!0),u.$beta?(i.openBlock(),i.createBlock(le,{key:1,class:"d-flex",title:"Beta"},{default:i.withCtx(()=>[i.createVNode(_N,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0),u.$deprecated?(i.openBlock(),i.createBlock(le,{key:2,class:"d-flex",title:"Deprecated"},{default:i.withCtx(()=>[i.createVNode(fh,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0)]),i.createElementVNode("span",kN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(ch)(u).types,f=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[f.startsWith("#")?(i.openBlock(),i.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:f,onClick:l[0]||(l[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("span",NN,i.toDisplayString(i.unref(uh)(f)),1),i.createVNode(dh)],8,CN)):(i.openBlock(),i.createElementBlock("span",wN,i.toDisplayString(f),1))],64))),128)),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(c?zk:iN),{class:"arrow"}))])])]),content:i.withCtx(()=>[i.createVNode(ZC,{property:u},{markdown:i.withCtx(({content:c})=>[i.renderSlot(s.$slots,"markdown",{content:c},void 0,!0)]),_:2},1032,["property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),en=K(SN,[["__scopeId","data-v-d73516e7"]]),LN={class:"d-flex flex-column gap-6"},TN={key:0,class:"alert alert-info",role:"alert"},IN={key:1,class:"plugin-title markdown"},ON={key:2,class:"markdown"},AN={class:"d-flex flex-column gap-4"},RN={class:"d-flex flex-column gap-3"},DN={class:"markdown"},PN={key:0,class:"w-100 align-self-center"},BN={class:"markdown"},VN={class:"markdown"},xN={class:"markdown"},MN={class:"d-flex flex-column gap-7 ps-3"},$N={class:"markdown"},qN=i.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1}},async setup(e){let t,n;const r=e,o=i.ref(!1),a=i.ref(new Set),s=i.ref(0),l=async()=>{var N;const g=window.location.hash.slice(1);if(!g||!r.schema.definitions){a.value.clear();return}const k=g.includes("#")?(N=g.split("#").pop())==null?void 0:N.split(".").pop():g;if(k&&k in r.schema.definitions){o.value=!0,s.value+=1,a.value.clear(),a.value.add(k),await i.nextTick();let b=0;const T=30,A=()=>{const R=document.getElementById(k);R?R.scrollIntoView({behavior:"smooth",block:"start"}):b<T&&(b++,requestAnimationFrame(A))};requestAnimationFrame(A)}else a.value.clear()};i.watch([()=>r.schema,()=>r.pluginType],([g,k],[N,b])=>{(g!==N||k!==b)&&r.schema.definitions&&l()},{immediate:!0});const u=g=>{var k;return g!=null&&g.full?g.code:`id: "${(k=r.pluginType.split(".").reverse()[0])==null?void 0:k.toLowerCase()}"
|
|
29
|
+
`)}async function W0(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await j0(e,t);if(n){const r=document.createElement("style"),o=document.createTextNode(n);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function K0(e,t={}){const{width:n,height:r}=nh(e,t),o=await An(e,t,!0);return await W0(o,t),await sh(o,t),U0(o,t),await f0(o,n,r)}async function lh(e,t={}){const{width:n,height:r}=nh(e,t),o=await K0(e,t),a=await fn(o),s=document.createElement("canvas"),l=s.getContext("2d"),u=t.pixelRatio||u0(),d=t.canvasWidth||n,c=t.canvasHeight||r;return s.width=d*u,s.height=c*u,t.skipAutoScale||c0(s),s.style.width=`${d}`,s.style.height=`${c}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,s.width,s.height)),l.drawImage(a,0,0,s.width,s.height),s}async function Y0(e,t={}){return(await lh(e,t)).toDataURL()}async function X0(e,t={}){return(await lh(e,t)).toDataURL("image/jpeg",t.quality||1)}function Z0(){const e=i.ref(""),t=i.ref("png"),n=i.ref();async function r(l,u={}){let d;const c=u.fileName??`vue-flow-screenshot-${Date.now()}`;switch(u.type){case"jpeg":d=await o(l,u);break;case"png":d=await a(l,u);break;default:d=await a(l,u);break}return u.shouldDownload&&c!==""&&s(c),d}function o(l,u={quality:.95}){return n.value=null,X0(l,u).then(d=>(e.value=d,t.value="jpeg",d)).catch(d=>{throw d.value=d,new Error(d)})}function a(l,u={quality:.95}){return n.value=null,Y0(l,u).then(d=>(e.value=d,t.value="png",d)).catch(d=>{throw d.value=d,new Error(d)})}function s(l){const u=document.createElement("a");u.download=`${l}.${t.value}`,u.href=e.value,u.click()}return{capture:r,download:s,dataUrl:e,error:n}}const J0={key:1,class:"exporting"},Q0=i.defineComponent({__name:"Topology",props:{id:{type:String,required:!0},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{type:String,default:void 0,required:!0},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{type:Object,required:!0},flowId:{type:String,required:!1,default:void 0},namespace:{type:String,required:!1,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0}},emits:[H.EDIT,H.DELETE,H.OPEN_LINK,H.SHOW_LOGS,H.SHOW_DESCRIPTION,"on-add-flowable-error",H.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",H.SHOW_CONDITION],setup(e,{emit:t}){const n=e,r=i.ref(!1),o=i.ref(),{getNodes:a,onNodeDrag:s,onNodeDragStart:l,onNodeDragStop:u,fitView:d,setElements:c,vueFlowRef:f}=te.useVueFlow(n.id),h=i.ref({}),m=i.ref([]),C=i.ref(new Set),E=i.ref([]),{capture:_}=Z0(),p=t;i.onMounted(()=>{v()}),i.watch(()=>n.flowGraph,()=>{v()}),i.watch(()=>n.isHorizontal,()=>{v()});const v=()=>{tn.cleanGraph(n.id),i.nextTick(()=>{p("loading",!0);const M=C.value;C.value=new Set,m.value=[],h.value={},M.forEach(J=>T(ct+J,!1,!1));const D=tn.generateGraph(n.id,n.flowId,n.namespace,n.flowGraph,n.source,m.value,n.isHorizontal,h.value,C.value,E.value,n.isReadOnly,n.isAllowedEdit,n.enableSubflowInteraction);D&&(c(D),d(),p("loading",!1))})},y=M=>{r.value||tn.linkedElements(n.id,M.uid).forEach(D=>{(D==null?void 0:D.type)==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-gray-900")},D.class="rounded-3")})},g=()=>{k()},k=()=>{a.value.filter(M=>M.type==="task"||M.type==="trigger").forEach(M=>{M.style={...M.style,opacity:"1",outline:"none"},M.class=""})};l(M=>{r.value=!0,k(),M.node.style={...M.node.style,zIndex:1976},o.value=M.node.position}),u(M=>{if(r.value=!1,M.intersections&&b(M.intersections,M.node)===null){const D=M.node,J=M.intersections.find(W=>W.type==="task");if(J)try{n.source&&p("swapped-task",{newSource:L.swapBlocks({source:n.source,section:"tasks",key1:ge.afterLastDot(D.id)??"",key2:ge.afterLastDot(J.id)??""}),swappedTasks:[D.id,J.id]})}catch(W){p("message",{variant:"error",title:"cannot swap tasks",message:`${W.message}, ${W.messageOptions}`}),D.position=o.value}else D.position=o.value}else M.node.position=o.value;k(),M.node.style={...M.node.style,zIndex:5},o.value=null});const N=i.computed(()=>{var M;return(M=n.flowGraph)!=null&&M.clusters?n.flowGraph.clusters.filter(D=>D.cluster.type.endsWith("SubflowGraphCluster")).map(D=>D.cluster.taskNode.uid+"."):[]});s(M=>{k(),a.value.filter(D=>D.id!==M.node.id).forEach(D=>{var J;D.type==="trigger"||D.type==="task"&&(D.id.startsWith(M.node.id+".")||M.node.id.startsWith(D.id+"."))||(J=N==null?void 0:N.value)!=null&&J.some(W=>D.id.startsWith(W))?D.style={...D.style,opacity:"0.5"}:D.style={...D.style,opacity:"1"}}),M.intersections&&!b(M.intersections,M.node)&&M.intersections.filter(D=>D.type==="task").length===1&&(M.intersections.forEach(D=>{D.type==="task"&&(D.style={...D.style,outline:"0.5px solid "+Fe("--bs-primary")},D.class="rounded-3")}),M.node.style={...M.node.style,outline:"0.5px solid "+Fe("--bs-primary")},M.node.class="rounded-3")});const b=(M,D)=>{const J=M.filter(W=>W.type==="task").map(W=>ge.afterLastDot(W.id));if(J.length>1)return"toomuchtaskerror";try{if(J.length===1&&n.source&&L.isParentChildrenRelation({source:n.source,sections:["tasks","triggers"],key1:ge.afterLastDot(J[0])??"",key2:ge.afterLastDot(D.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return M.filter(W=>W.type==="trigger").length>0?"triggererror":null},T=(M,D,J=!1)=>{const W=n.flowGraph.clusters.find(ne=>ne.cluster.uid.endsWith(M)),F=M.replace(ct,"");C.value.add(F),m.value=m.value.concat(W.nodes.filter(ne=>ne!==F||J)),m.value=m.value.concat([W.cluster.uid]),h.value={...h.value,[W.cluster.uid]:F,[W.start]:F,[W.end]:F};for(let ne of W.nodes)n.flowGraph.clusters.map(me=>me.cluster.uid).includes(ne)&&T(ne,!1,!0);D&&v()},A=M=>{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(M.type)&&!n.expandedSubflows.includes(M.id)){p("expand-subflow",[...n.expandedSubflows,M.id]);return}h.value={},m.value=[],E.value=[],C.value.delete(M.id),C.value.forEach(J=>T(J,!1,!1)),v()},R=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,U=i.ref(!0),V=i.ref(!1),j=()=>V.value=!V.value;function Z(M){if(!f.value){console.warn("Flow not found");return}U.value=!1,_(f.value,{type:M,shouldDownload:!0}).then(()=>U.value=!0).finally(()=>V.value=!1)}return(M,D)=>(i.openBlock(),i.createBlock(i.unref(te.VueFlow),{id:e.id,"default-marker-color":i.unref(Fe)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":i.withCtx(J=>[i.createVNode(BE,i.mergeProps(J,{onCollapse:D[0]||(D[0]=W=>T(W,!0))}),null,16)]),"node-dot":i.withCtx(J=>[i.createVNode(GE,i.normalizeProps(i.guardReactiveProps(J)),null,16)]),"node-task":i.withCtx(J=>[i.createVNode(Tb,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,onEdit:D[1]||(D[1]=W=>p(i.unref(H).EDIT,W)),onDelete:D[2]||(D[2]=W=>p(i.unref(H).DELETE,W)),onExpand:D[3]||(D[3]=W=>A(W)),onOpenLink:D[4]||(D[4]=W=>p(i.unref(H).OPEN_LINK,W)),onShowLogs:D[5]||(D[5]=W=>p(i.unref(H).SHOW_LOGS,W)),onShowDescription:D[6]||(D[6]=W=>p(i.unref(H).SHOW_DESCRIPTION,W)),onShowCondition:D[7]||(D[7]=W=>p(i.unref(H).SHOW_CONDITION,W)),onMouseover:D[8]||(D[8]=W=>y(W)),onMouseleave:D[9]||(D[9]=W=>g()),onAddError:D[10]||(D[10]=W=>p("on-add-flowable-error",W)),"enable-subflow-interaction":e.enableSubflowInteraction}),null,16,["icons","icon-component","enable-subflow-interaction"])]),"node-trigger":i.withCtx(J=>[i.createVNode(Ob,i.mergeProps(J,{icons:e.icons,"icon-component":e.iconComponent,"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit,onDelete:D[11]||(D[11]=W=>p(i.unref(H).DELETE,W)),onEdit:D[12]||(D[12]=W=>p(i.unref(H).EDIT,W)),onShowDescription:D[13]||(D[13]=W=>p(i.unref(H).SHOW_DESCRIPTION,W))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":i.withCtx(J=>[i.createVNode(Hb,i.mergeProps(J,{onExpand:D[14]||(D[14]=W=>A(W))}),null,16)]),"edge-edge":i.withCtx(J=>[i.createVNode(iy,i.mergeProps(J,{"yaml-source":e.source,onAddTask:D[15]||(D[15]=W=>p(i.unref(H).ADD_TASK,W)),"is-read-only":e.isReadOnly,"is-allowed-edit":e.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:i.withCtx(()=>[i.createVNode(i.unref(NE),{"pattern-color":R?i.unref(Fe)("--bs-grey-500"):i.unref(Fe)("--bs-grey-300")},null,8,["pattern-color"]),U.value?(i.openBlock(),i.createBlock(i.unref(Dn.Controls),{key:0,"show-interactive":!1},{default:i.withCtx(()=>[e.toggleOrientationButton?(i.openBlock(),i.createBlock(i.unref(Dn.ControlButton),{key:0,onClick:D[16]||(D[16]=J=>p("toggle-orientation",J))},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.isHorizontal?Zb:Wb)))]),_:1})):i.createCommentVNode("",!0),i.createVNode(i.unref(Dn.ControlButton),{onClick:j},{default:i.withCtx(()=>[i.createVNode(i0)]),_:1}),V.value?(i.openBlock(),i.createElementBlock("ul",J0,[i.createElementVNode("li",{onClick:D[17]||(D[17]=J=>Z("jpeg")),class:"item"}," Export as .JPEG "),i.createElementVNode("li",{onClick:D[18]||(D[18]=J=>Z("png")),class:"item"}," Export as .PNG ")])):i.createCommentVNode("",!0)]),_:1})):i.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),ek=K(Q0,[["__scopeId","data-v-ecaa6943"]]),tk={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},nk=["aria-hidden","aria-label"],rk=["fill","width","height"],ik={d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"},ok={key:0};function ak(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon check-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",ik,[n.title?(i.openBlock(),i.createElementBlock("title",ok,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,rk))],16,nk)}const sk=K(tk,[["render",ak]]),lk={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},uk=["aria-hidden","aria-label"],ck=["fill","width","height"],dk={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"},fk={key:0};function hk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon content-copy-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",dk,[n.title?(i.openBlock(),i.createElementBlock("title",fk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,ck))],16,uk)}const mk=K(lk,[["render",hk]]),pk={key:0,class:"language"},gk=["innerHTML"],vk=i.defineComponent({__name:"SchemaToCode",props:{highlighter:{},code:{default:""},language:{default:null},filename:{default:null},highlights:{default:()=>[]},meta:{default:null},theme:{default:"github-dark"}},setup(e){const t={ContentCopy:i.shallowRef(mk),Check:i.shallowRef(sk)},n=e,r=i.ref(!1),o=i.ref(),a=i.shallowRef(t.ContentCopy.value),s=i.ref(),l=i.ref(),u=i.computed(()=>n.highlighter.codeToHtml(n.code,{lang:n.language,theme:n.theme}));function d(){r.value=!0,o.value&&i.nextTick(()=>{s.value&&l.value&&Uh.createPopper(s.value,l.value,{placement:"left"})})}function c(){clearTimeout(o.value),navigator.clipboard.writeText(n.code.trimEnd()),a.value=t.Check.value,o.value=setTimeout(()=>{a.value=t.ContentCopy.value,o.value=void 0},2e3)}return(f,h)=>(i.openBlock(),i.createElementBlock("div",{class:"code-block",onMouseover:d,onMouseleave:h[0]||(h[0]=m=>r.value=!1)},[f.language&&!r.value?(i.openBlock(),i.createElementBlock("div",pk,i.toDisplayString(f.language),1)):i.createCommentVNode("",!0),r.value?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("button",{ref_key:"copyButton",ref:s,class:"copy"},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.value),{onClick:c}))],512),o.value?(i.openBlock(),i.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:l,id:"copied-tooltip",role:"tooltip"},h[1]||(h[1]=[i.createTextVNode(" Copied! "),i.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)]),512)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createElementVNode("div",{innerHTML:u.value},null,8,gk)],32))}}),pd=K(vk,[["__scopeId","data-v-a899f6a1"]]),_k={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ek=["aria-hidden","aria-label"],yk=["fill","width","height"],bk={d:"M10,17L15,12L10,7V17Z"},kk={key:0};function Ck(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-right-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",bk,[n.title?(i.openBlock(),i.createElementBlock("title",kk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,yk))],16,Ek)}const Nk=K(_k,[["render",Ck]]),wk={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Sk=["aria-hidden","aria-label"],Lk=["fill","width","height"],Tk={d:"M7,10L12,15L17,10H7Z"},Ik={key:0};function Ok(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon menu-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Tk,[n.title?(i.openBlock(),i.createElementBlock("title",Ik,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Lk))],16,Sk)}const Ak=K(wk,[["render",Ok]]),Rk=["id","open"],Dk={class:"d-flex gap-2 align-items-center"},Pk={key:0,class:"d-flex flex-grow-1"},Bk=["id"],Vk=i.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1}},emits:["expand"],setup(e,{emit:t}){const n=e,r=i.ref(!0),o=on.useRoute(),a=on.useRouter(),s=t,l=i.computed(()=>`#${n.href}-body`),u=()=>{r.value=!r.value,r.value||s("expand"),a.replace({hash:r.value?"":l.value})},d=i.ref(!1);return i.watch(()=>n.initiallyExpanded,c=>{c!==void 0&&(d.value=c,r.value=!c)},{immediate:!0}),i.watch(()=>o.hash,c=>{c===l.value&&r.value&&(d.value=!0,r.value=!1)}),(c,f)=>(i.openBlock(),i.createElementBlock("details",{id:c.href,onClick:u,open:d.value},[i.createElementVNode("summary",{class:i.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:r.value}])},[i.createElementVNode("span",Dk,[c.arrow?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.value?Nk:Ak),{key:0,class:"arrow"})):i.createCommentVNode("",!0),i.createTextVNode(" "+i.toDisplayString(c.clickableText)+" ",1),i.renderSlot(c.$slots,"additionalButtonText",{},void 0,!0)]),c.$slots.buttonRight?(i.openBlock(),i.createElementBlock("span",Pk,[i.renderSlot(c.$slots,"buttonRight",{collapsed:r.value},void 0,!0)])):i.createCommentVNode("",!0)],2),c.$slots.content?(i.openBlock(),i.createElementBlock("div",{key:0,id:c.href+"-body"},[i.createElementVNode("div",null,[i.renderSlot(c.$slots,"content",{},void 0,!0)])],8,Bk)):i.createCommentVNode("",!0)],8,Rk))}}),hn=K(Vk,[["__scopeId","data-v-39ac5754"]]);function Qt(e){if(e.type)return e.type;if(e.$ref)return"#"+e.$ref.slice(8)}function uh(e){const t=e.split("_")[0];return t.substring(t.lastIndexOf(".")+1)}function xk(e){var t,n;if(e.enum)return e.enum;if((t=e.items)!=null&&t.enum)return e.items.enum;if((n=e.additionalProperties)!=null&&n.enum)return e.additionalProperties.enum}function Mk(e){return e.allOf&&(e=e.allOf.reduce((t,n)=>({...t,...n}),{...e}),delete e.allOf),e}function ch(e){const t={},n=Qt(e);return n?t.types=[n]:e.anyOf?t.types=e.anyOf.map(Qt).filter(r=>r!==void 0).filter(ge.distinctFilter):t.types=["object"],e.additionalProperties?t.subType=Qt(e.additionalProperties):e.items&&(t.subType=Qt(e.items)),t}const $k={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qk=["aria-hidden","aria-label"],Fk=["fill","width","height"],Uk={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Hk={key:0};function Gk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Uk,[n.title?(i.openBlock(),i.createElementBlock("title",Hk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Fk))],16,qk)}const zk=K($k,[["render",Gk]]),jk={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Wk=["aria-hidden","aria-label"],Kk=["fill","width","height"],Yk={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"},Xk={key:0};function Zk(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",Yk,[n.title?(i.openBlock(),i.createElementBlock("title",Xk,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,Kk))],16,Wk)}const dh=K(jk,[["render",Zk]]),Jk={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Qk=["aria-hidden","aria-label"],eC=["fill","width","height"],tC={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"},nC={key:0};function rC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon file-document-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",tC,[n.title?(i.openBlock(),i.createElementBlock("title",nC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,eC))],16,Qk)}const iC=K(Jk,[["render",rC]]),oC={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},aC=["aria-hidden","aria-label"],sC=["fill","width","height"],lC={d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"},uC={key:0};function cC(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alert-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",lC,[n.title?(i.openBlock(),i.createElementBlock("title",uC,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,sC))],16,aC)}const fh=K(oC,[["render",cC]]),dC={class:"me-3"},fC={class:"d-flex flex-column"},hC=i.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(e){const t=e,n=i.computed(()=>{switch(t.type){case"success":return iC;case"info":return la;case"warning":return fh;case"danger":return sa;default:return la}});return(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass("doc-alert alert alert-"+r.type),role:"alert"},[i.createElementVNode("div",dC,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.value),{class:"alert-icon"}))]),i.createElementVNode("div",fC,[i.renderSlot(r.$slots,"default",{},void 0,!0)])],2))}}),mC=K(hC,[["__scopeId","data-v-f7fd8bc1"]]),pC={class:"property-detail"},gC={key:0},vC=["href"],_C={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},EC={class:"ref-type"},yC={key:1,class:"type-box rounded fs-7 px-2 py-1"},bC={key:1},kC={class:"border rounded px-2 py-1"},CC={key:2},NC={class:"border rounded px-2 py-1"},wC={key:3},SC={class:"border rounded px-2 py-1"},LC={key:4},TC={class:"border rounded px-2 py-1"},IC={key:5},OC={class:"border rounded px-2 py-1"},AC={key:6},RC={class:"border rounded px-2 py-1"},DC={key:7},PC={class:"border rounded px-2 py-1"},BC={key:8},VC={class:"border rounded px-2 py-1"},xC={key:9},MC={class:"border rounded px-2 py-1"},$C={key:10},qC={class:"border rounded px-2 py-1"},FC={key:11},UC={class:"border rounded px-2 py-1"},HC={key:12},GC={class:"border rounded px-2 py-1"},zC={key:13},jC={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},WC={key:14},KC={class:"property-description markdown"},YC={key:2},XC=i.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(e){const t=e,n=i.ref(ch(t.property).subType),r=i.ref(xk(t.property)),o=a=>a.replaceAll(/(```)(?:bash|yaml|js|console|json)(\n) *([\s\S]*?```)/g,"$1$2$3").replaceAll(new RegExp("(?<!:):(?![: /])","g"),": ");return(a,s)=>(i.openBlock(),i.createElementBlock("div",pC,[n.value?(i.openBlock(),i.createElementBlock("div",gC,[s[1]||(s[1]=i.createElementVNode("span",null," SubType ",-1)),n.value.startsWith("#")?(i.openBlock(),i.createElementBlock("a",{key:0,href:n.value,onClick:s[0]||(s[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("button",_C,[i.createElementVNode("span",EC,i.toDisplayString(i.unref(uh)(n.value)),1),i.createVNode(dh)])],8,vC)):(i.openBlock(),i.createElementBlock("span",yC,i.toDisplayString(n.value),1))])):i.createCommentVNode("",!0),a.property.default!==void 0?(i.openBlock(),i.createElementBlock("div",bC,[s[2]||(s[2]=i.createElementVNode("span",null," Default ",-1)),i.createElementVNode("code",kC,i.toDisplayString(a.property.default),1)])):i.createCommentVNode("",!0),a.property.pattern!==void 0?(i.openBlock(),i.createElementBlock("div",CC,[s[3]||(s[3]=i.createElementVNode("span",null," Validation RegExp ",-1)),i.createElementVNode("code",NC,i.toDisplayString(a.property.pattern),1)])):i.createCommentVNode("",!0),a.property.unit!==void 0&&a.property.unit.trim().length>0?(i.openBlock(),i.createElementBlock("div",wC,[s[4]||(s[4]=i.createElementVNode("span",null," Unit ",-1)),i.createElementVNode("code",SC,i.toDisplayString(a.property.unit),1)])):i.createCommentVNode("",!0),a.property.minLength!==void 0?(i.openBlock(),i.createElementBlock("div",LC,[s[5]||(s[5]=i.createElementVNode("span",null," Min length ",-1)),i.createElementVNode("code",TC,i.toDisplayString(a.property.minLength),1)])):i.createCommentVNode("",!0),a.property.maxLength!==void 0?(i.openBlock(),i.createElementBlock("div",IC,[s[6]||(s[6]=i.createElementVNode("span",null," Max length ",-1)),i.createElementVNode("code",OC,i.toDisplayString(a.property.maxLength),1)])):i.createCommentVNode("",!0),a.property.minItems!==void 0?(i.openBlock(),i.createElementBlock("div",AC,[s[7]||(s[7]=i.createElementVNode("span",null," Min items ",-1)),i.createElementVNode("code",RC,i.toDisplayString(a.property.minItems),1)])):i.createCommentVNode("",!0),a.property.maxItems!==void 0?(i.openBlock(),i.createElementBlock("div",DC,[s[8]||(s[8]=i.createElementVNode("span",null," Max items ",-1)),i.createElementVNode("code",PC,i.toDisplayString(a.property.maxItems),1)])):i.createCommentVNode("",!0),a.property.minimum!==void 0?(i.openBlock(),i.createElementBlock("div",BC,[s[9]||(s[9]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",VC," >= "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMinimum!==void 0?(i.openBlock(),i.createElementBlock("div",xC,[s[10]||(s[10]=i.createElementVNode("span",null," Minimum ",-1)),i.createElementVNode("code",MC," > "+i.toDisplayString(a.property.minimum),1)])):i.createCommentVNode("",!0),a.property.maximum!==void 0?(i.openBlock(),i.createElementBlock("div",$C,[s[11]||(s[11]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",qC," <= "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.exclusiveMaximum!==void 0?(i.openBlock(),i.createElementBlock("div",FC,[s[12]||(s[12]=i.createElementVNode("span",null," Maximum ",-1)),i.createElementVNode("code",UC," < "+i.toDisplayString(a.property.maximum),1)])):i.createCommentVNode("",!0),a.property.format!==void 0?(i.openBlock(),i.createElementBlock("div",HC,[s[13]||(s[13]=i.createElementVNode("span",null," Format ",-1)),i.createElementVNode("code",GC,i.toDisplayString(a.property.format),1)])):i.createCommentVNode("",!0),r.value!==void 0?(i.openBlock(),i.createElementBlock("div",zC,[s[14]||(s[14]=i.createElementVNode("span",null," Possible Values ",-1)),i.createElementVNode("div",jC,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(l,u)=>(i.openBlock(),i.createElementBlock("code",{class:"border rounded px-2 py-1",key:u},i.toDisplayString(l),1))),128))])])):i.createCommentVNode("",!0),a.property.title!==void 0||a.property.description!==void 0?(i.openBlock(),i.createElementBlock("div",WC,[i.createElementVNode("div",KC,[a.property.title!==void 0?i.renderSlot(a.$slots,"markdown",{key:0,content:o(a.property.title)},void 0,!0):i.createCommentVNode("",!0),a.property.description!==void 0?i.renderSlot(a.$slots,"markdown",{key:1,content:o(a.property.description)},void 0,!0):i.createCommentVNode("",!0),a.property.$internalStorageURI?(i.openBlock(),i.createElementBlock("div",YC,[i.createVNode(mC,{type:"info"},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):i.createCommentVNode("",!0)])])):i.createCommentVNode("",!0)]))}}),ZC=K(XC,[["__scopeId","data-v-79715a4e"]]),JC={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},QC=["aria-hidden","aria-label"],eN=["fill","width","height"],tN={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},nN={key:0};function rN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",tN,[n.title?(i.openBlock(),i.createElementBlock("title",nN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,eN))],16,QC)}const iN=K(JC,[["render",rN]]),oN={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},aN=["aria-hidden","aria-label"],sN=["fill","width","height"],lN={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"},uN={key:0};function cN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon snowflake-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",lN,[n.title?(i.openBlock(),i.createElementBlock("title",uN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,sN))],16,aN)}const dN=K(oN,[["render",cN]]),fN={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hN=["aria-hidden","aria-label"],mN=["fill","width","height"],pN={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"},gN={key:0};function vN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",pN,[n.title?(i.openBlock(),i.createElementBlock("title",gN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,mN))],16,hN)}const _N=K(fN,[["render",vN]]),EN={class:"border overflow-hidden"},yN={class:"d-flex flex-grow-1 align-items-center justify-content-between"},bN={class:"d-flex gap-2"},kN={class:"d-flex flex-wrap gap-2"},CN=["href"],NN={class:"ref-type"},wN={key:1,class:"type-box rounded fs-7 px-2 py-1"},SN=i.defineComponent({__name:"CollapsibleProperties",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}},emits:["expand"],setup(e,{emit:t}){const n=t,r=i.ref(!1);i.watch(r,s=>{s&&n("expand")});const o=s=>{var l;return s.$dynamic===!0?!0:s.$dynamic===!1?!1:((l=s.anyOf)==null?void 0:l.some(u=>u.$dynamic===!0))??!1};function a(s){const l=[],u=[];for(const f in s)typeof s[f]=="object"&&(s[f]=Mk(s[f]),s[f].$required?l.push(f):u.push(f));const d=[...l.sort(),...u.sort()],c={};return d.forEach(f=>{c[f]=s[f]}),c}return(s,l)=>(i.openBlock(),i.createBlock(hn,{class:"section-collapsible","clickable-text":s.sectionName,href:s.href,onExpand:l[2]||(l[2]=u=>n("expand")),"initially-expanded":s.initiallyExpanded||r.value},i.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:i.withCtx(()=>[i.createElementVNode("div",EN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a(s.properties),(u,d)=>(i.openBlock(),i.createBlock(hn,{class:"property",key:d,arrow:!1,"clickable-text":d,href:s.href+"_"+d,onExpand:l[1]||(l[1]=c=>r.value=!0)},{additionalButtonText:i.withCtx(()=>[u.$required?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Required"},{default:i.withCtx(()=>l[3]||(l[3]=[i.createElementVNode("span",{class:"text-danger"}," *",-1)])),_:1})):i.createCommentVNode("",!0)]),buttonRight:i.withCtx(({collapsed:c})=>[i.createElementVNode("span",yN,[i.createElementVNode("span",bN,[s.showDynamic&&!o(u)?(i.openBlock(),i.createBlock(le,{key:0,class:"d-flex",title:"Non-dynamic"},{default:i.withCtx(()=>[i.createVNode(dN,{class:"text-info"})]),_:1})):i.createCommentVNode("",!0),u.$beta?(i.openBlock(),i.createBlock(le,{key:1,class:"d-flex",title:"Beta"},{default:i.withCtx(()=>[i.createVNode(_N,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0),u.$deprecated?(i.openBlock(),i.createBlock(le,{key:2,class:"d-flex",title:"Deprecated"},{default:i.withCtx(()=>[i.createVNode(fh,{class:"text-warning"})]),_:1})):i.createCommentVNode("",!0)]),i.createElementVNode("span",kN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(ch)(u).types,f=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:f},[f.startsWith("#")?(i.openBlock(),i.createElementBlock("a",{key:0,class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1",href:f,onClick:l[0]||(l[0]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("span",NN,i.toDisplayString(i.unref(uh)(f)),1),i.createVNode(dh)],8,CN)):(i.openBlock(),i.createElementBlock("span",wN,i.toDisplayString(f),1))],64))),128)),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(c?zk:iN),{class:"arrow"}))])])]),content:i.withCtx(()=>[i.createVNode(ZC,{property:u},{markdown:i.withCtx(({content:c})=>[i.renderSlot(s.$slots,"markdown",{content:c},void 0,!0)]),_:2},1032,["property"])]),_:2},1032,["clickable-text","href"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded"]))}}),en=K(SN,[["__scopeId","data-v-d73516e7"]]),LN={class:"d-flex flex-column gap-6"},TN={key:0,class:"alert alert-info",role:"alert"},IN={key:1,class:"plugin-title markdown"},ON={key:2,class:"markdown"},AN={class:"d-flex flex-column gap-4"},RN={class:"d-flex flex-column gap-3"},DN={class:"markdown"},PN={key:0,class:"w-100 align-self-center"},BN={class:"markdown"},VN={class:"markdown"},xN={class:"markdown"},MN={class:"d-flex flex-column gap-7 ps-3"},$N={class:"markdown"},qN=i.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1}},async setup(e){let t,n;const r=e,o=i.ref(!1),a=i.ref(new Set),s=i.ref(0),l=async()=>{var N;const g=window.location.hash.slice(1);if(!g||!r.schema.definitions){a.value.clear();return}const k=g.includes("#")?(N=g.split("#").pop())==null?void 0:N.split(".").pop():g;if(k&&k in r.schema.definitions){o.value=!0,s.value+=1,a.value.clear(),a.value.add(k),await i.nextTick();let b=0;const T=30,A=()=>{const R=document.getElementById(k);R?R.scrollIntoView({behavior:"smooth",block:"start"}):b<T&&(b++,requestAnimationFrame(A))};requestAnimationFrame(A)}else a.value.clear()};i.watch([()=>r.schema,()=>r.pluginType],([g,k],[N,b])=>{(g!==N||k!==b)&&r.schema.definitions&&l()},{immediate:!0});const u=g=>{var k;return g!=null&&g.full?g.code:`id: "${(k=r.pluginType.split(".").reverse()[0])==null?void 0:k.toLowerCase()}"
|
|
30
30
|
type: "${r.pluginType}"
|
|
31
31
|
`.concat(g.code)},d=i.ref(null),c=i.computed(()=>{var g;return(g=r.schema.properties)==null?void 0:g.$examples}),f=i.computed(()=>{var g,k;return Object.fromEntries((k=(g=r.schema.properties)==null?void 0:g.$metrics)==null?void 0:k.map(N=>[N.name,{...N,name:void 0}]))}),{githubLight:h,githubDark:m,yaml:C,python:E,javascript:_,createJavaScriptRegexEngine:p,createHighlighterCore:v}=([t,n]=i.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BiVCa5d0.cjs"))),t=await t,n(),t);d.value=([t,n]=i.withAsyncContext(()=>v({themes:[r.darkMode?m:h],langs:[C,E,_],engine:p()})),t=await t,n(),t);const y="github-"+(r.darkMode?"dark":"light");return i.onMounted(()=>{l(),window.addEventListener("hashchange",l)}),i.onUnmounted(()=>{var g;window.removeEventListener("hashchange",l),(g=d.value)==null||g.dispose()}),(g,k)=>{var N,b,T,A,R,U;return i.openBlock(),i.createElementBlock("div",LN,[i.createElementVNode("div",null,[(N=g.schema.properties)!=null&&N.$beta?(i.openBlock(),i.createElementBlock("div",TN,k[0]||(k[0]=[i.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)]))):i.createCommentVNode("",!0),(b=g.schema.properties)!=null&&b.title?(i.openBlock(),i.createElementBlock("div",IN,[i.renderSlot(g.$slots,"markdown",{content:g.schema.properties.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):i.createCommentVNode("",!0),(T=g.schema.properties)!=null&&T.description?(i.openBlock(),i.createElementBlock("div",ON,[i.renderSlot(g.$slots,"markdown",{content:g.schema.properties.description.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0)])):i.createCommentVNode("",!0),(i.openBlock(),i.createBlock(pd,{highlighter:d.value,language:"yaml",theme:y,code:`type: "${g.pluginType}"`,key:g.pluginType},null,8,["highlighter","code"]))]),(i.openBlock(),i.createElementBlock("div",{class:"d-flex flex-column gap-3",key:g.pluginType},[c.value?(i.openBlock(),i.createBlock(hn,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples"},{content:i.withCtx(()=>[i.createElementVNode("div",AN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,(V,j)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:g.pluginType+"-"+j},[i.createElementVNode("div",RN,[i.createElementVNode("div",DN,[V.title?i.renderSlot(g.$slots,"markdown",{key:0,content:V.title.replaceAll(/ *:(?![ /])/g,": ")},void 0,!0):i.createCommentVNode("",!0)]),V.code?(i.openBlock(),i.createBlock(pd,{key:0,highlighter:d.value,language:V.lang??"yaml",theme:y,code:u(V)},null,8,["highlighter","language","code"])):i.createCommentVNode("",!0)]),j<c.value.length-1?(i.openBlock(),i.createElementBlock("hr",PN)):i.createCommentVNode("",!0)],64))),128))])]),_:3})):i.createCommentVNode("",!0),(A=g.schema.properties)!=null&&A.properties?(i.openBlock(),i.createBlock(en,{key:1,class:"plugin-section",properties:g.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":g.propsInitiallyExpanded},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",BN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties","initially-expanded"])):i.createCommentVNode("",!0),(R=g.schema.outputs)!=null&&R.properties&&Object.keys(g.schema.outputs.properties).length>0?(i.openBlock(),i.createBlock(en,{key:2,class:"plugin-section",properties:g.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",VN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):i.createCommentVNode("",!0),(U=g.schema.properties)!=null&&U.$metrics?(i.openBlock(),i.createBlock(en,{key:3,class:"plugin-section",properties:f.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1},{markdown:i.withCtx(({content:V})=>[i.createElementVNode("div",xN,[i.renderSlot(g.$slots,"markdown",{content:V},void 0,!0)])]),_:3},8,["properties"])):i.createCommentVNode("",!0),g.schema.definitions&&Object.keys(g.schema.definitions).length>0?(i.openBlock(),i.createBlock(hn,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":o.value,key:`definitions-${g.pluginType}-${s.value}`},{content:i.withCtx(()=>[i.createElementVNode("div",MN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Object.entries(g.schema.definitions),([V,j])=>(i.openBlock(),i.createBlock(en,{properties:j.properties,"section-name":j.title??V.split("_")[0],href:V,"show-dynamic":!1,"initially-expanded":a.value.has(V),key:g.pluginType+"-"+V,class:"plugin-section nested-button-py-2",onExpand:Z=>{o.value=!0,a.value.add(V)}},{markdown:i.withCtx(({content:Z})=>[i.createElementVNode("div",$N,[i.renderSlot(g.$slots,"markdown",{content:Z},void 0,!0)])]),_:2},1032,["properties","section-name","href","initially-expanded","onExpand"]))),128))])]),_:3},8,["initially-expanded"])):i.createCommentVNode("",!0)]))])}}}),FN=K(qN,[["__scopeId","data-v-d07027c2"]]),UN={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},HN=["aria-hidden","aria-label"],GN=["fill","width","height"],zN={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},jN={key:0};function WN(e,t,n,r,o,a){return i.openBlock(),i.createElementBlock("span",i.mergeProps(e.$attrs,{"aria-hidden":n.title?null:!0,"aria-label":n.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(i.openBlock(),i.createElementBlock("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[i.createElementVNode("path",zN,[n.title?(i.openBlock(),i.createElementBlock("title",jN,i.toDisplayString(n.title),1)):i.createCommentVNode("",!0)])],8,GN))],16,HN)}const KN=K(UN,[["render",WN]]),YN=["href"],XN=["src","alt"],ZN=i.defineComponent({__name:"RowLink",props:{iconB64Svg:{},text:{},href:{}},setup(e){const t=e,{path:n}=on.useRoute(),r=i.computed(()=>t.href===void 0?`${n}/${_t(t.text)}`:t.href);return(o,a)=>(i.openBlock(),i.createElementBlock("a",{href:r.value,class:"row-link d-flex flex-grow-1 align-items-center gap-7 rounded"},[i.createElementVNode("img",{src:o.iconB64Svg,alt:`${o.text} icon`},null,8,XN),i.createTextVNode(i.toDisplayString(o.text)+" ",1),i.createVNode(KN,{class:"ms-auto"})],8,YN))}}),gd=K(ZN,[["__scopeId","data-v-b787c0f3"]]),JN={class:"d-flex flex-column gap-4"},QN={key:1,class:"d-flex flex-column"},ew=["id"],tw={class:"d-flex flex-column"},nw=i.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},subGroup:{},icons:{}},emits:["goTo"],setup(e){const t=e,n=i.computed(()=>t.plugins.find(f=>t.subGroup===void 0?!0:_t(At(f))===t.subGroup)),r=i.computed(()=>{var f,h;return((f=n.value)==null?void 0:f.longDescription)??((h=n.value)==null?void 0:h.description)}),o=i.computed(()=>t.plugins.filter(f=>f.name.toLowerCase()===t.pluginName.toLowerCase()&&f.subGroup!==void 0)),a=f=>{let h=f.split(".");return h==null?void 0:h[h.length-1]},{path:s}=on.useRoute(),l=f=>`${s}/${_t(f)}`,u=f=>`${s}/${f}`;function d(f){return Object.fromEntries(Object.entries(f).filter(([h,m])=>nf(h,m)).map(([h,m])=>[h.replaceAll(/[A-Z]/g,C=>` ${C}`),m]))}const c=i.computed(()=>d(n.value));return(f,h)=>(i.openBlock(),i.createElementBlock("div",JN,[r.value!==void 0?i.renderSlot(f.$slots,"markdown",{key:0,content:r.value.replaceAll(/ *:(?![ /])/g,": ")}):i.createCommentVNode("",!0),f.subGroup===void 0&&f.plugins.length>1?(i.openBlock(),i.createElementBlock("div",QN,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,m=>(i.openBlock(),i.createBlock(gd,{id:`group-${i.unref(_t)(i.unref(At)(m))}`,"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[m.subGroup]??f.icons[m.group]),text:i.unref(At)(m),href:l(i.unref(At)(m)),key:i.unref(At)(m),class:"text-capitalize",onClick:C=>f.$emit("goTo",{subGroup:m})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:2},i.renderList(c.value,(m,C)=>(i.openBlock(),i.createElementBlock("div",{class:"d-flex flex-column elements-section",key:C},[i.createElementVNode("h4",{id:`section-${i.unref(_t)(C)}`,class:"text-capitalize"},i.toDisplayString(C),9,ew),i.createElementVNode("div",tw,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(m,E=>(i.openBlock(),i.createBlock(gd,{id:i.unref(_t)(E),"icon-b64-svg":"data:image/svg+xml;base64,"+(f.icons[E]??f.icons[n.value.subGroup??n.value.group]??f.icons[n.value.group]),text:a(E),href:u(E),key:E,class:"text-capitalize",onClick:_=>f.$emit("goTo",{element:E})},null,8,["id","icon-b64-svg","text","href","onClick"]))),128))])]))),128))]))}}),rw=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,iw=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,ow=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function aw(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){sw(e);return}return t}function sw(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function lw(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!ow.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(rw.test(e)||iw.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,aw)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const uw=/\d/,cw=["-","_","/","."];function dw(e=""){if(!uw.test(e))return e!==e.toLowerCase()}function hh(e,t){const n=cw,r=[];if(!e||typeof e!="string")return r;let o="",a,s;for(const l of e){const u=n.includes(l);if(u===!0){r.push(o),o="",a=void 0;continue}const d=dw(l);if(s===!1){if(a===!1&&d===!0){r.push(o),o=l,a=d;continue}if(a===!0&&d===!1&&o.length>1){const c=o.at(-1);r.push(o.slice(0,Math.max(0,o.length-1))),o=c+l,a=d;continue}}o+=l,a=d,s=u}return r.push(o),r}function fw(e){return e?e[0].toUpperCase()+e.slice(1):""}function mh(e,t){return e?(Array.isArray(e)?e:hh(e)).map(n=>fw(n)).join(""):""}function hw(e,t){return e?(Array.isArray(e)?e:hh(e)).map(n=>n.toLowerCase()).join("-"):""}class zt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}zt.prototype.normal={};zt.prototype.property={};zt.prototype.space=void 0;function ph(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new zt(n,r,t)}function Ca(e){return e.toLowerCase()}class Ve{constructor(t,n){this.attribute=n,this.property=t}}Ve.prototype.attribute="";Ve.prototype.booleanish=!1;Ve.prototype.boolean=!1;Ve.prototype.commaOrSpaceSeparated=!1;Ve.prototype.commaSeparated=!1;Ve.prototype.defined=!1;Ve.prototype.mustUseProperty=!1;Ve.prototype.number=!1;Ve.prototype.overloadedBoolean=!1;Ve.prototype.property="";Ve.prototype.spaceSeparated=!1;Ve.prototype.space=void 0;let mw=0;const Q=wt(),ke=wt(),gh=wt(),x=wt(),de=wt(),Dt=wt(),qe=wt();function wt(){return 2**++mw}const Na=Object.freeze(Object.defineProperty({__proto__:null,boolean:Q,booleanish:ke,commaOrSpaceSeparated:qe,commaSeparated:Dt,number:x,overloadedBoolean:gh,spaceSeparated:de},Symbol.toStringTag,{value:"Module"})),aa=Object.keys(Na);class Qa extends Ve{constructor(t,n,r,o){let a=-1;if(super(t,n),vd(this,"space",o),typeof r=="number")for(;++a<aa.length;){const s=aa[a];vd(this,aa[a],(r&Na[s])===Na[s])}}}Qa.prototype.defined=!0;function vd(e,t,n){n&&(e[t]=n)}function xt(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new Qa(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ca(r)]=r,n[Ca(a.attribute)]=r}return new zt(t,n,e.space)}const vh=xt({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:de,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:x,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:de,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:ke,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function _h(e,t){return t in e?e[t]:t}function Eh(e,t){return _h(e,t.toLowerCase())}const pw=xt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dt,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:Q,allowPaymentRequest:Q,allowUserMedia:Q,alt:null,as:null,async:Q,autoCapitalize:null,autoComplete:de,autoFocus:Q,autoPlay:Q,blocking:de,capture:null,charSet:null,checked:Q,cite:null,className:de,cols:x,colSpan:null,content:null,contentEditable:ke,controls:Q,controlsList:de,coords:x|Dt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Q,defer:Q,dir:null,dirName:null,disabled:Q,download:gh,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Q,formTarget:null,headers:de,height:x,hidden:Q,high:x,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:Q,inputMode:null,integrity:null,is:null,isMap:Q,itemId:null,itemProp:de,itemRef:de,itemScope:Q,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Q,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:Q,muted:Q,name:null,nonce:null,noModule:Q,noValidate:Q,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Q,optimum:x,pattern:null,ping:de,placeholder:null,playsInline:Q,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Q,referrerPolicy:null,rel:de,required:Q,reversed:Q,rows:x,rowSpan:x,sandbox:de,scope:null,scoped:Q,seamless:Q,selected:Q,shadowRootClonable:Q,shadowRootDelegatesFocus:Q,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:Q,useMap:null,value:ke,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Q,declare:Q,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:Q,noHref:Q,noShade:Q,noWrap:Q,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Q,disableRemotePlayback:Q,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:Eh}),gw=xt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:qe,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:de,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:Q,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Dt,g2:Dt,glyphName:Dt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:_h}),yh=xt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),bh=xt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Eh}),kh=xt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),vw=/[A-Z]/g,_d=/-[a-z]/g,_w=/^data[-\w.:]+$/i;function Ew(e,t){const n=Ca(t);let r=t,o=Ve;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_w.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(_d,bw);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!_d.test(a)){let s=a.replace(vw,yw);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Qa}return new o(r,t)}function yw(e){return"-"+e.toLowerCase()}function bw(e){return e.charAt(1).toUpperCase()}const kw=ph([vh,pw,yh,bh,kh],"html");ph([vh,gw,yh,bh,kh],"svg");const es=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],Cw=["p","h1","h2","h3","h4","h5","h6","li"];function mn(e,t){return e.type===t||typeof e.type=="object"&&e.type.tag===t||e.tag===t}function ts(e){return mn(e,"text")||mn(e,Symbol.for("v-txt"))}function Ch(e){var t;return Array.isArray(e.children)||typeof e.children=="string"?e.children:typeof((t=e.children)==null?void 0:t.default)=="function"?e.children.default():[]}function pn(e){if(!e)return"";if(Array.isArray(e))return e.map(pn).join("");if(ts(e))return e.value||e.children||"";const t=Ch(e);return Array.isArray(t)?t.map(pn).filter(Boolean).join(""):""}function Nh(e,t=[]){if(Array.isArray(e))return e.flatMap(r=>Nh(r,t));let n=e;return t.some(r=>r==="*"||mn(e,r))&&(n=Ch(e)||e,!Array.isArray(n)&&Cw.some(r=>mn(e,r))&&(n=[n])),n}function wh(e,t=[]){return e=Array.isArray(e)?e:[e],t.length?e.flatMap(n=>wh(Nh(n,[t[0]]),t.slice(1))).filter(n=>!(ts(n)&&pn(n).trim()==="")):e}function Sh(e,t=[]){return typeof t=="string"&&(t=t.split(/[,\s]/).map(n=>n.trim()).filter(Boolean)),t.length?wh(e,t).reduce((n,r)=>(ts(r)?typeof n[n.length-1]=="string"?n[n.length-1]+=r.children:n.push(r.children):n.push(r),n),[]):e}function Nw(e,t){return t.reduce((n,r)=>{const o=ww(e,r);return o!==void 0&&(n[r]=o),n},{})}function ww(e,t){return t.split(".").reduce((n,r)=>n&&n[r],e)}const wa="default",Lh=/^@|^v-on:/,Th=/^:|^v-bind:/,Sw=/^v-model/,Lw=["select","textarea","input"],Tw=["math","svg"],Iw=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(e=>[e,`prose-${e}`])),Ow=i.defineComponent({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(e){var d,c,f,h,m,C,E;const t=(c=(d=i.getCurrentInstance())==null?void 0:d.appContext)==null?void 0:c.app,n=t==null?void 0:t.$nuxt,r=(n==null?void 0:n.$route)||(n==null?void 0:n._route),{mdc:o}=((f=n==null?void 0:n.$config)==null?void 0:f.public)||{},a={...(h=o==null?void 0:o.components)!=null&&h.prose&&e.prose!==!1?Iw:{},...((m=o==null?void 0:o.components)==null?void 0:m.map)||{},...i.toRaw(((E=(C=e.data)==null?void 0:C.mdc)==null?void 0:E.components)||{}),...e.components},s=i.computed(()=>{var p;const _=(((p=e.body)==null?void 0:p.children)||[]).map(v=>v.tag||v.type).filter(v=>!es.includes(v));return Array.from(new Set(_)).sort().join(".")}),l=i.reactive({...e.data});i.watch(()=>e.data,_=>{Object.assign(l,_)}),await Fw(e.body,{tags:a});function u(_,p){const v=_.split(".").length-1;return _.split(".").reduce((y,g,k)=>k==v&&y?(y[g]=p,y[g]):typeof y=="object"?y[g]:void 0,l)}return{tags:a,contentKey:s,route:r,runtimeData:l,updateRuntimeData:u}},render(e){var m,C;const{tags:t,tag:n,body:r,data:o,contentKey:a,route:s,unwrap:l,runtimeData:u,updateRuntimeData:d}=e;if(!r)return null;const c={...o,tags:t,$route:s,runtimeData:u,updateRuntimeData:d},f=n!==!1?Sa(n||((m=c.component)==null?void 0:m.name)||c.component||"div"):void 0;return f?i.h(f,{...(C=c.component)==null?void 0:C.props,class:e.class,...this.$attrs,key:a},{default:h}):h==null?void 0:h();function h(){const E=Ih(r,i.h,{documentMeta:c,parentScope:c,resolveComponent:Sa});return E!=null&&E.default?l?Sh(E.default(),typeof l=="string"?l.split(" "):["*"]):E.default():null}}});function Aw(e,t,n){const{documentMeta:r,parentScope:o,resolveComponent:a}=n;if(e.type==="text")return t(i.Text,e.value);if(e.type==="comment")return t(i.Comment,null,e.value);const s=e.tag,l=Ah(e,r.tags);if(e.tag==="binding")return Rw(e,t,r,o);const u=Oh(l)?f=>f:a;if(l==="script")return t("pre",{class:"script-to-pre"},`<script>
|
|
32
32
|
`+pn(e)+`
|