mirror of
https://github.com/detleph/components.git
synced 2026-09-04 08:36:03 +02:00
4 lines
909 B
JavaScript
4 lines
909 B
JavaScript
var l=Object.defineProperty;var p=(m,e)=>l(m,"name",{value:e,configurable:!0});import"./iframe.95c22648.js";var h=p(function(e){var s=e.name,u=e.parameterName,c=e.wrapper,f=e.skipIfNoParametersOrOptions,d=f===void 0?!1:f,o=p(function(r){return function(a,t){var n=t.parameters&&t.parameters[u];return n&&n.disable||d&&!r&&!n?a(t):c(a,t,{options:r,parameters:n})}},"decorator");return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return typeof r[0]=="function"?o().apply(void 0,r):function(){if(arguments.length>1)return r.length>1?o(r).apply(void 0,arguments):o.apply(void 0,r).apply(void 0,arguments);throw new Error("Passing stories directly into ".concat(s,`() is not allowed,
|
|
instead use addDecorator(`).concat(s,") and pass options with the '").concat(u,"' parameter"))}}},"makeDecorator");export{h as m};
|
|
//# sourceMappingURL=make-decorator.0fd4df31.js.map
|