UNPKG

@appscode/ui-builder

Version:
1 lines 903 B
import{e as t,m as r,j as e,h as n}from"./wrapper-5d451278.js";import"./es.array.concat-bc6da240.js";import{_ as c,r as o}from"./stickyContent-c27d9838.js";var a={props:{contextObject:{type:Object,default:function(){return{}}}},computed:t({},r({functions:"wizard/functions"})),methods:{performFuncCall:function(r,a){var s=this;return c(o.mark((function c(){var i,u,p,f,d;return o.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(c.prev=0,i=r.split("|"),u=i.shift(),p=e(i),void 0!==(f=n(s.functions,u))){c.next=9;break}throw new Error('function "'.concat(u,'" not declared in your functions.js file'));case 9:return c.next=11,f.apply(void 0,[t(t({},s.contextObject),{},{itemCtx:a})].concat(e(p)));case 11:return d=c.sent,c.abrupt("return",d);case 13:c.next=18;break;case 15:c.prev=15,c.t0=c.catch(0),console.log(c.t0);case 18:case"end":return c.stop()}}),c,null,[[0,15]])})))()}}};export{a as f};