axp-ui/docs/assets/config-01f88b40.js

33 lines
79 KiB
JavaScript
Raw Normal View History

2023-10-11 10:17:11 +03:00
import{h,c as createApp,i as isVNode,a as isReactive,r as reactive,w as watch,b as baseParse}from"./vue.esm-bundler-16b759a1.js";import{e as enhanceArgTypes,a as extractComponentDescription,h as hasDocgen,b as extractComponentProps,c as convert4,S as SourceType,d as SNIPPET_RENDERED}from"./index-f073aaf1.js";import{c as commonjsGlobal}from"./_commonjsHelpers-725317a4.js";const{sanitizeStoryContextUpdate}=__STORYBOOK_MODULE_PREVIEW_API__;function normalizeFunctionalComponent(_){return typeof _=="function"?{render:_,name:_.name}:_}function prepare(_,m){let o=_;return o===null?null:typeof o=="function"?o:m?{...normalizeFunctionalComponent(o),components:{...o.components||{},story:m}}:{render(){return h(o)}}}function decorateStory(_,m){return m.reduce((o,C)=>S=>{let R,I=C(H=>{let Y=sanitizeStoryContextUpdate(H);return H&&(Y.args=Object.assign(S.args,Y.args)),R=o({...S,...Y}),R},S);return R||(R=o(S)),I===R?R:prepare(I,()=>h(R))},o=>prepare(_(o)))}var render=(_,m)=>{let{id:o,component:C}=m;if(!C)throw new Error(`Unable to render story ${o} as the component annotation is missing from the default export`);return()=>h(C,_,getSlots(_,m))},runSetupFunctions=async(_,m)=>{globalThis&&globalThis.PLUGINS_SETUP_FUNCTIONS&&await Promise.all([...globalThis.PLUGINS_SETUP_FUNCTIONS].map(o=>o(_,m)))},map=new Map;async function renderToCanvas({storyFn:_,forceRemount:m,showMain:o,showException:C,storyContext:S,id:R},I){let H=map.get(I);if(H&&!m){let nn=_(),V=getArgs(nn,S);return updateArgs(H.reactiveArgs,V),()=>{teardown(H.vueApp,I)}}H&&m&&teardown(H.vueApp,I);let Y=createApp({setup(){S.args=reactive(S.args);let nn=_(),V=getArgs(nn,S),en={vueApp:Y,reactiveArgs:reactive(V)};return map.set(I,en),()=>h(nn)}});return Y.config.errorHandler=nn=>C(nn),await runSetupFunctions(Y,S),Y.mount(I),o(),()=>{teardown(Y,I)}}function getSlots(_,m){let{argTypes:o}=m,C=Object.entries(_).filter(([S])=>{var R,I;return((I=(R=o[S])==null?void 0:R.table)==null?void 0:I.category)==="slots"}).map(([S,R])=>[S,typeof R=="function"?R:()=>R]);return Object.fromEntries(C)}function getArgs(_,m){return _.props&&isVNode(_)?_.props:m.args}function updateArgs(_,m){if(Object.keys(m).length===0)return;let o=isReactive(_)?_:reactive(_);Object.keys(o).forEach(C=>{C in m||delete o[C]}),Object.assign(o,m)}function teardown(_,m){_==null||_.unmount(),map.has(m)&&map.delete(m)}var lodash={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/lodash.exports;(function(_,m){(function(){var o,C="4.17.21",S=200,R="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",I="Expected a function",H="Invalid `variable` option passed into `_.template`",Y="__lodash_hash_undefined__",nn=500,V="__lodash_placeholder__",en=1,Kn=2,qn=4,sn=1,te=2,Sn=1,pe=2,Oi=4,Fn=8,Ee=16,Mn=32,Te=64,zn=128,He=256,ir=512,fo=30,oo="...",so=800,lo=16,Ri=1,ao=2,co=3,ge=1/0,re=9007199254740991,ho=17976931348623157e292,ct=0/0,Bn=4294967295,po=Bn-1,go=Bn>>>1,_o=[["ary",zn],["bind",Sn],["bindKey",pe],["curry",Fn],["curryRight",Ee],["flip",ir],["partial",Mn],["partialRight",Te],["rearg",He]],Oe="[object Arguments]",ht="[object Array]",vo="[object AsyncFunction]",Ke="[object Boolean]",qe="[object Date]",wo="[object DOMException]",pt="[object Error]",gt="[object Function]",Ii="[object GeneratorFunction]",bn="[object Map]",ze="[object Number]",mo="[object Null]",Yn="[object Object]",Ci="[object Promise]",Ao="[object Proxy]",Ye="[object RegExp]",Wn="[object Set]",Ze="[object String]",_t="[object Symbol]",xo="[object Undefined]",Xe="[object WeakMap]",So="[object WeakSet]",Je="[object ArrayBuffer]",Re="[object DataView]",ur="[object Float32Array]",fr="[object Float64Array]",or="[object Int8Array]",sr="[object Int16Array]",lr="[object Int32Array]",ar="[object Uint8Array]",cr="[object Uint8ClampedArray]",hr="[object Uint16Array]",pr="[object Uint32Array]",yo=/\b__p \+= '';/g,Eo=/\b(__p \+=) '' \+/g,To=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Li=/&(?:amp|lt|gt|quot|#39);/g,bi=/[&<>"']/g,Oo=RegExp(Li.source),Ro=RegExp(bi.source),Io=/<%-([\s\S]+?)%>/g,Co=/<%([\s\S]+?)%>/g,Wi=/<%=([\s\S]+?)%>/g,Lo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bo=/^\w*$/,Wo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gr=/[\\^$.*+?()[\]{}|]/g,Po=RegExp(gr.source),_r=/^\s+/,No=/\s/,Do=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Uo=/\{\n\/\* \[wrapped with (.+)\] \*/,Fo=/,? & /,Mo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bo=/[()=,{}\[\]\/\s]/,$o=/\\(\\)?/g,Go=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,Ho=/^[-+]0x[0-9a-f]+$/i,Ko=/^0b[01]+$/i,qo=/^\[object .+?Constructor\]$/,zo=/^0o[0-7]+$/i,Yo=/^(?:0|[1-9]\d*)$/,Zo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,dt=/($^)/,Xo=/['\n\r\u2028\u2029\\]/g,vt="\\ud800-\\udfff",Jo="\\u0300-\\u036f",Qo="\\ufe20-\\ufe2f",Vo="\\u20d0-\\u20ff",Ni=Jo+Qo+Vo,Di="\\u2700-\\u27bf",Ui="a-z\\xdf-\\xf6\\xf8-\\xff",ko="\\xac\\xb1\\xd7\\xf7",jo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ns="\\u2000-\\u206f",es=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Fi="A-Z\\xc0-\\xd6\\xd8-\\xde",Mi="\\ufe0e\\ufe0f",Bi=ko+jo+ns+es,dr="[']",ts="["+vt+"]",$i="["+Bi+"]",wt="["+Ni+"]",Gi="\\d+",rs="["+Di+"]",Hi="["+Ui+"]",Ki="[^"+vt+Bi+Gi+Di+Ui+Fi+"]",vr="\\ud83c[\\udffb-\\udfff]",is="(?:"+wt+"|"+vr+")",qi="[^"+vt+"]",wr="(?:\\ud83c[\\udde6-\\uddff]){2}",mr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ie="["+Fi+"]",zi="\\u200d",Yi="(?:"+Hi+"|"+Ki+")",us="(?:"+Ie+"|"+Ki+")",Zi="(?:"+dr+"(?:d|ll|m|re|s|t|ve))?",Xi="(?:"+dr+"(?:D|LL|M|RE|S|T|VE))?",Ji=is+"?",Qi="["+Mi+"]?",fs="(?:"+zi+"(?:"+[qi,wr,mr].join("|")+")"+Qi+Ji+")*",os="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ss="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vi=Qi+Ji+fs,ls="(?:"+[rs,wr,mr].join("|")+")"+Vi,as="(?:"+[qi+wt+"?",wt,wr,mr,ts].join("|")+")",cs=RegExp(dr,"g"),hs=RegExp(wt,"g"),Ar=RegExp(vr+"(?="+vr+")|"+as+Vi,"g"),ps=RegExp([Ie+"?"+Hi+"+"+Zi+"(?="+[$i,Ie,"$"].join("|")+")",us+"+"+Xi+"(?="+[$i,Ie+Yi,"$"].join("|")+")",Ie+"?"+Yi+"+"+Zi,Ie+"+"+Xi,ss,os,Gi,ls].join("|"),"g"),gs=RegExp("["+zi+vt+Ni+Mi+"]"),_s=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ds=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isF
/* [wrapped with `+e+`] */
`)}function Na(n){return b(n)||ye(n)||!!(Au&&n&&n[Au])}function kn(n,e){var t=typeof n;return e=e??re,!!e&&(t=="number"||t!="symbol"&&Yo.test(n))&&n>-1&&n%1==0&&n<e}function an(n,e,t){if(!Z(t))return!1;var r=typeof e;return(r=="number"?pn(t)&&kn(e,t.length):r=="string"&&e in t)?Dn(t[e],n):!1}function oi(n,e){if(b(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||mn(n)?!0:bo.test(n)||!Lo.test(n)||e!=null&&n in G(e)}function Da(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function si(n){var e=Zt(n),t=u[e];if(typeof t!="function"||!(e in U.prototype))return!1;if(n===t)return!0;var r=ii(t);return!!r&&n===r[0]}function Ua(n){return!!du&&du in n}var Fa=yt?jn:Ti;function st(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||Pe;return n===t}function vf(n){return n===n&&!Z(n)}function wf(n,e){return function(t){return t==null?!1:t[n]===e&&(e!==o||n in G(t))}}function Ma(n){var e=jt(n,function(r){return t.size===nn&&t.clear(),r}),t=e.cache;return e}function Ba(n,e){var t=n[1],r=e[1],i=t|r,f=i<(Sn|pe|zn),s=r==zn&&t==Fn||r==zn&&t==He&&n[7].length<=e[8]||r==(zn|He)&&e[7].length<=e[8]&&t==Fn;if(!(f||s))return n;r&Sn&&(n[2]=e[2],i|=t&Sn?0:Oi);var l=e[3];if(l){var c=n[3];n[3]=c?ju(c,l,e[4]):l,n[4]=c?fe(n[3],V):e[4]}return l=e[5],l&&(c=n[5],n[5]=c?nf(c,l,e[6]):l,n[6]=c?fe(n[5],V):e[6]),l=e[7],l&&(n[7]=l),r&zn&&(n[8]=n[8]==null?e[8]:fn(n[8],e[8])),n[9]==null&&(n[9]=e[9]),n[0]=e[0],n[1]=i,n}function $a(n){var e=[];if(n!=null)for(var t in G(n))e.push(t);return e}function Ga(n){return Tt.call(n)}function mf(n,e,t){return e=j(e===o?n.length-1:e,0),function(){for(var r=arguments,i=-1,f=j(r.length-e,0),s=p(f);++i<f;)s[i]=r[e+i];i=-1;for(var l=p(e+1);++i<e;)l[i]=r[i];return l[e]=t(s),dn(n,this,l)}}function Af(n,e){return e.length<2?n:Ae(n,In(e,0,-1))}function Ha(n,e){for(var t=n.length,r=fn(e.length,t),i=hn(n);r--;){var f=e[r];n[r]=kn(f,t)?i[f]:o}return n}function li(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var xf=yf(Ku),lt=rl||function(n,e){return rn.setTimeout(n,e)},ai=yf(ca);function Sf(n,e,t){var r=e+"";return ai(n,Pa(r,Ka(La(r),t)))}function yf(n){var e=0,t=0;return function(){var r=ol(),i=lo-(r-t);if(t=r,i>0){if(++e>=so)return arguments[0]}else e=0;return n.apply(o,arguments)}}function Jt(n,e){var t=-1,r=n.length,i=r-1;for(e=e===o?r:e;++t<e;){var f=Yr(t,i),s=n[f];n[f]=n[t],n[t]=s}return n.length=e,n}var Ef=Ma(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(Wo,function(t,r,i,f){e.push(i?f.replace($o,"$1"):r||t)}),e});function Hn(n){if(typeof n=="string"||mn(n))return n;var e=n+"";return e=="0"&&1/n==-ge?"-0":e}function Se(n){if(n!=null){try{return Et.call(n)}catch{}try{return n+""}catch{}}return""}function Ka(n,e){return En(_o,function(t){var r="_."+t[0];e&t[1]&&!mt(n,r)&&n.push(r)}),n.sort()}function Tf(n){if(n instanceof U)return n.clone();var e=new On(n.__wrapped__,n.__chain__);return e.__actions__=hn(n.__actions__),e.__index__=n.__index__,e.__values__=n.__values__,e}function qa(n,e,t){(t?an(n,e,t):e===o)?e=1:e=j(W(e),0);var r=n==null?0:n.length;if(!r||e<1)return[];for(var i=0,f=0,s=p(bt(r/e));i<r;)s[f++]=In(n,i,i+=e);return s}function za(n){for(var e=-1,t=n==null?0:n.length,r=0,i=[];++e<t;){var f=n[e];f&&(i[r++]=f)}return i}function Ya(){var n=arguments.length;if(!n)return[];for(var e=p(n-1),t=arguments[0],r=n;r--;)e[r-1]=arguments[r];return ue(b(t)?hn(t):[t],un(e,1))}var Za=N(function(n,e){return J(n)?rt(n,un(e,1,J,!0)):[]}),Xa=N(function(n,e){var t=Cn(e);return J(t)&&(t=o),J(n)?rt(n,un(e,1,J,!0),E(t,2)):[]}),Ja=N(function(n,e){var t=Cn(e);return J(t)&&(t=o),J(n)?rt(n,un(e,1,J,!0),o,t):[]});function Qa(n,e,t){var r=n==null?0:n.length;return r?(e=t||e===o?1:W(e),In(n,e<0?0:e,r)):[]}function Va(n,e,t){var r=n==null?0:n.length;return r?(e=t||e===o?1:W(e),e=r-e,In(n,0,e<0?0:e)):[]}function ka(n,e){return n&&n.length?Gt(n,E(e,3),!0,!0):[]}function ja(n,e){return n&&n.length?Gt(n,E(e,3),!0):[]}function nc(n,e,t,r){var i=n==null?0:n.length;return i?(t&&typeof t!="number"&&an(n,e
`;n.replace(A,function(O,D,F,An,cn,xn){return F||(F=An),w+=n.slice(d,xn).replace(Xo,Fs),D&&(l=!0,w+=`' +
__e(`+D+`) +
'`),cn&&(c=!0,w+=`';
`+cn+`;
__p += '`),F&&(w+=`' +
((__t = (`+F+`)) == null ? '' : __t) +
'`),d=xn+O.length,O}),w+=`';
`;var T=$.call(e,"variable")&&e.variable;if(!T)w=`with (obj) {
`+w+`
}
`;else if(Bo.test(T))throw new L(H);w=(c?w.replace(yo,""):w).replace(Eo,"$1").replace(To,"$1;"),w="function("+(T||"obj")+`) {
`+(T?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+w+`return __p
}`;var P=ro(function(){return M(f,y+"return "+w).apply(o,s)});if(P.source=w,_i(P))throw P;return P}function lg(n){return B(n).toLowerCase()}function ag(n){return B(n).toUpperCase()}function cg(n,e,t){if(n=B(n),n&&(t||e===o))return cu(n);if(!n||!(e=wn(e)))return n;var r=Pn(n),i=Pn(e),f=hu(r,i),s=pu(r,i)+1;return ce(r,f,s).join("")}function hg(n,e,t){if(n=B(n),n&&(t||e===o))return n.slice(0,_u(n)+1);if(!n||!(e=wn(e)))return n;var r=Pn(n),i=pu(r,Pn(e))+1;return ce(r,0,i).join("")}function pg(n,e,t){if(n=B(n),n&&(t||e===o))return n.replace(_r,"");if(!n||!(e=wn(e)))return n;var r=Pn(n),i=hu(r,Pn(e));return ce(r,i).join("")}function gg(n,e){var t=fo,r=oo;if(Z(e)){var i="separator"in e?e.separator:i;t="length"in e?W(e.length):t,r="omission"in e?wn(e.omission):r}n=B(n);var f=n.length;if(Le(n)){var s=Pn(n);f=s.length}if(t>=f)return n;var l=t-be(r);if(l<1)return r;var c=s?ce(s,0,l).join(""):n.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),di(i)){if(n.slice(l).search(i)){var d,v=c;for(i.global||(i=Wr(i.source,B(Pi.exec(i))+"g")),i.lastIndex=0;d=i.exec(v);)var w=d.index;c=c.slice(0,w===o?l:w)}}else if(n.indexOf(wn(i),l)!=l){var A=c.lastIndexOf(i);A>-1&&(c=c.slice(0,A))}return c+r}function _g(n){return n=B(n),n&&Oo.test(n)?n.replace(Li,qs):n}var dg=Me(function(n,e,t){return n+(t?" ":"")+e.toUpperCase()}),mi=rf("toUpperCase");function to(n,e,t){return n=B(n),e=t?o:e,e===o?Bs(n)?Zs(n):Ls(n):n.match(e)||[]}var ro=N(function(n,e){try{return dn(n,o,e)}catch(t){return _i(t)?t:new L(t)}}),vg=Vn(function(n,e){return En(e,function(t){t=Hn(t),Jn(n,t,pi(n[t],n))}),n});function wg(n){var e=n==null?0:n.length,t=E();return n=e?z(n,function(r){if(typeof r[1]!="function")throw new Tn(I);return[t(r[0]),r[1]]}):[],N(function(r){for(var i=-1;++i<e;){var f=n[i];if(dn(f[0],this,r))return dn(f[1],this,r)}})}function mg(n){return ql(Rn(n,en))}function Ai(n){return function(){return n}}function Ag(n,e){return n==null||n!==n?e:n}var xg=ff(),Sg=ff(!0);function _n(n){return n}function xi(n){return Du(typeof n=="function"?n:Rn(n,en))}function yg(n){return Fu(Rn(n,en))}function Eg(n,e){return Mu(n,Rn(e,en))}var Tg=N(function(n,e){return function(t){return it(t,n,e)}}),Og=N(function(n,e){return function(t){return it(n,t,e)}});function Si(n,e,t){var r=tn(e),i=Mt(e,r);t==null&&!(Z(e)&&(i.length||!r.length))&&(t=e,e=n,n=this,i=Mt(e,tn(e)));var f=!(Z(t)&&"chain"in t)||!!t.chain,s=jn(n);return En(i,function(l){var c=e[l];n[l]=c,s&&(n.prototype[l]=function(){var d=this.__chain__;if(f||d){var v=n(this.__wrapped__),w=v.__actions__=hn(this.__actions__);return w.push({func:c,args:arguments,thisArg:n}),v.__chain__=d,v}return c.apply(n,ue([this.value()],arguments))})}),n}function Rg(){return rn._===this&&(rn._=js),this}function yi(){}function Ig(n){return n=W(n),N(function(e){return Bu(e,n)})}var Cg=ni(z),Lg=ni(fu),bg=ni(Tr);function io(n){return oi(n)?Or(Hn(n)):oa(n)}function Wg(n){return function(e){return n==null?o:Ae(n,e)}}var Pg=sf(),Ng=sf(!0);function Ei(){return[]}function Ti(){return!1}function Dg(){return{}}function Ug(){return""}function Fg(){return!0}function Mg(n,e){if(n=W(n),n<1||n>re)return[];var t=Bn,r=fn(n,Bn);e=E(e),n-=Bn;for(var i=Cr(r,e);++t<n;)e(t);return i}function Bg(n){return b(n)?z(n,Hn):mn(n)?[n]:hn(Ef(B(n)))}function $g(n){var e=++Vs;return B(n)+e}var Gg=qt(function(n,e){return n+e},0),Hg=ei("ceil"),Kg=qt(function(n,e){return n/e},1),qg=ei("floor");function zg(n){return n&&n.length?Ft(n,_n,$r):o}function Yg(n,e){return n&&n.length?Ft(n,E(e,2),$r):o}function Zg(n){return lu(n,_n)}function Xg(n,e){return lu(n,E(e,2))}function Jg(n){return n&&n.length?Ft(n,_n,qr):o}function Qg(n,e){return n&&n.length?Ft(n,E(e,2),qr):o}var Vg=qt(function(n,e){return n*e},1),kg=ei("round"),jg=qt(function(n,e){return n-e},0);function n_(n){return n&&n.length?Ir(n,_n):0}function e_(n,e){return n&&n.length?Ir(n,E(e,2)):0}return u.after=yh,u.ary=Df,u.assign=ap,u.assignIn=Jf,u.assignInWith=rr,u.assignWith=cp,u.at=hp,u.before=Uf,u.bind=pi,u.bindAll=vg,u.bindKey=Ff,u.castArray=Dh,u.chain=Wf,u.chunk=qa,u.compact=za,u.concat=Ya,u.cond=wg,u.conforms=mg,u.constant=Ai,u.count
`)}<\/script>`}function getTemplateComponents(_,m){try{let o=_,C=o?o(m==null?void 0:m.args,m):m==null?void 0:m.component,S=typeof C=="function"?C():C,{template:R}=S;return R?getComponents(R):[h(S,m==null?void 0:m.args)]}catch(o){return console.log("error",o),[]}}function getComponents(_){var o;return((o=baseParse(_))==null?void 0:o.children)||[]}function generateTemplateSource(componentOrNodes,{args,argTypes},byRef=!1){let isElementNode=_=>_&&_.type===1,isInterpolationNode=_=>_&&_.type===5,isTextNode=_=>_&&_.type===2,generateComponentSource=componentOrNode=>{var _,m;if(isElementNode(componentOrNode)){let{tag:o,props:C,children:S}=componentOrNode,R=typeof S=="string"?S:S.map(H=>generateComponentSource(H)).join(""),I=generateAttributesSource(C,args,argTypes,byRef);return R===""?`<${o} ${I} />`:`<${o} ${I}>${R}</${o}>`}if(isTextNode(componentOrNode)){let{content:o}=componentOrNode;return o}if(isInterpolationNode(componentOrNode)){let{content}=componentOrNode,expValue=evalExp(content.loc.source,args);return expValue===content.loc.source?`{{${expValue}}}`:eval(expValue)}if(isVNode(componentOrNode)){let o=componentOrNode,{props:C,type:S,children:R}=o,I=typeof R=="string"?void 0:R,H=(_=S==null?void 0:S.__docgenInfo)==null?void 0:_.slots,Y=I?Object.fromEntries(Object.entries(C??{}).filter(([sn,te])=>!I[sn]&&!["class","style"].includes(sn)).map(([sn,te])=>[sn,te])):C,nn=mapAttributesAndDirectives(Y??{}),V=Object.fromEntries(Object.entries(C??{}).filter(([sn,te])=>I==null?void 0:I[sn])),en=R?typeof R=="string"?R:mapSlots(V,generateComponentSource,H??[]).map(sn=>sn.content).join(""):"",Kn=typeof S=="string"?S:S.name||S.__name||((m=S.__docgenInfo)==null?void 0:m.displayName),qn=generateAttributesSource(nn,args,argTypes,byRef);return en.trim()===""?`<${Kn} ${qn}/>`:`<${Kn} ${qn}>${en}</${Kn}>`}return null},componentsOrNodes=Array.isArray(componentOrNodes)?componentOrNodes:[componentOrNodes],source=componentsOrNodes.map(_=>generateComponentSource(_)).join(" ");return source||null}var sourceDecorator=(_,m)=>{let o=skipSourceRender(m),C=_();return watch(()=>m.args,()=>{o||generateSource(m)},{immediate:!0,deep:!0}),C};function generateSource(_){var nn,V,en;let m=addons.getChannel(),{args:o={},argTypes:C={},id:S}=_||{},R=getTemplateComponents(_==null?void 0:_.originalStoryFn,_),I=((en=(V=(nn=_==null?void 0:_.parameters)==null?void 0:nn.docs)==null?void 0:V.source)==null?void 0:en.withScriptSetup)||!1,H=I?generateScriptSetup(o):"",Y=generateTemplateSource(R,_,I);if(Y){let Kn=`${H}
<template>
${Y}
</template>`;return m.emit(SNIPPET_RENDERED,{id:S,args:o,source:Kn,format:"vue"}),Kn}return null}var parameters={docs:{story:{inline:!0},extractArgTypes,extractComponentDescription}},decorators=[sourceDecorator],argTypesEnhancers=[enhanceArgTypes],parameters2={renderer:"vue3",...parameters};export{decorateStory as applyDecorators,argTypesEnhancers,decorators,parameters2 as parameters,render,renderToCanvas};
//# sourceMappingURL=config-01f88b40.js.map