@mgdis/stencil-helpers 2.2.0 → 2.2.1
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/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +13 -21
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(a,p){typeof exports=="object"&&typeof module<"u"?p(exports):typeof define=="function"&&define.amd?define(["exports"],p):(a=typeof globalThis<"u"?globalThis:a||self,p(a.StencilHelpersModule={}))})(this,function(a){"use strict";var vt=Object.defineProperty;var Se=a=>{throw TypeError(a)};var yt=(a,p,m)=>p in a?vt(a,p,{enumerable:!0,configurable:!0,writable:!0,value:m}):a[p]=m;var y=(a,p,m)=>yt(a,typeof p!="symbol"?p+"":p,m),ht=(a,p,m)=>p.has(a)||Se("Cannot "+m);var N=(a,p,m)=>(ht(a,p,"read from private field"),m?m.call(a):p.get(a)),Q=(a,p,m)=>p.has(a)?Se("Cannot add the same private member more than once"):p instanceof WeakSet?p.add(a):p.set(a,m);var E,U;const p=(e="",t=10)=>{const s=new Uint8Array(t);crypto.getRandomValues(s);const r=Array.from(s).map(n=>n.toString(16).padStart(2,"0")).join("").slice(0,t);return e!==""?`${e}-${r}`:r},m=e=>Y(e)&&/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e)!==null;class Te{constructor(t=[]){y(this,"classes");y(this,"add",t=>{this.has(t)||this.classes.push(t)});y(this,"delete",t=>{const s=this.classes.indexOf(t);s>-1&&this.classes.splice(s,1)});y(this,"has",t=>this.classes.includes(t));y(this,"join",()=>this.classes.join(" "));this.classes=t}}const ke=e=>Array.isArray(e)&&e.every(t=>typeof t=="string"),Ae=(e,t)=>t.includes(e==null?void 0:e.tagName.toLowerCase()),Ee='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button',je=e=>{const t=H(e),s=Z(e);return[e,...t,...s]},H=(e,t=[])=>{if(e.self!==e.top)try{const s=e.parent;return s?(t.push(s),H(s,t)):t}catch(s){return console.error("Different hosts between iframes:",s),t}return t},Z=(e,t=[])=>{if(e.frames.length>0)for(const s of Array.from(e.frames))t.push(s),Z(s,t);return t},Y=e=>typeof e=="string"&&e.trim()!=="",Le=e=>typeof e=="object"?JSON.stringify(e):`${e}`,Oe=e=>typeof e=="number"&&!Number.isNaN(e),Re=e=>typeof e=="string"?e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g,""):e,Me=async e=>e();var j={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},Ne=Object.defineProperty,xe=(e,t)=>{for(var s in t)Ne(e,s,{get:t[s],enumerable:!0})},V=(e,t)=>t in e,ee="http://www.w3.org/1999/xlink",I=typeof window<"u"?window:{},F=I.document||{head:{}};I.HTMLElement;var L={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},te={},De="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml",_e=e=>e!=null,se=e=>(e=typeof e,e==="object"||e==="function"),Ce={};xe(Ce,{err:()=>re,map:()=>Pe,ok:()=>z,unwrap:()=>we,unwrapErr:()=>Ue});var z=e=>({isOk:!0,isErr:!1,value:e}),re=e=>({isOk:!1,isErr:!0,value:e});function Pe(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>z(r)):z(s)}if(e.isErr){const s=e.value;return re(s)}throw"should never get here"}var we=e=>{if(e.isOk)return e.value;throw e.value},Ue=e=>{if(e.isErr)return e.value;throw e.value},We=(e,t,...s)=>{let r=null,n=null,o=null,i=!1,c=!1;const f=[],g=l=>{for(let $=0;$<l.length;$++)r=l[$],Array.isArray(r)?g(r):r!=null&&typeof r!="boolean"&&((i=!se(r))&&(r=String(r)),i&&c?f[f.length-1].$text$+=r:f.push(i?B(null,r):r),c=i)};g(s);const u=B(e,null);return u.$attrs$=t,f.length>0&&(u.$children$=f),u.$key$=n,u.$name$=o,u},B=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s.$name$=null,s},He={},Ie=e=>e&&e.$tag$===He,ne=(e,t,s,r,n,o)=>{if(s!==r){let i=V(e,t),c=t.toLowerCase();if(t==="class"){const f=e.classList,g=oe(s),u=oe(r);f.remove(...g.filter(l=>l&&!u.includes(l))),f.add(...u.filter(l=>l&&!g.includes(l)))}else if(t==="style"){for(const f in s)(!r||r[f]==null)&&(f.includes("-")?e.style.removeProperty(f):e.style[f]="");for(const f in r)(!s||r[f]!==s[f])&&(f.includes("-")?e.style.setProperty(f,r[f]):e.style[f]=r[f])}else if(t!=="key")if(t==="ref")r&&r(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):V(I,c)?t=c.slice(2):t=c[2]+t.slice(3),s||r){const f=t.endsWith(ie);t=t.replace(Be,""),s&&L.rel(e,t,s,f),r&&L.ael(e,t,r,f)}}else{const f=se(r);if((i||f&&r!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=r;else{const u=r??"";t==="list"?i=!1:(s==null||e[t]!=u)&&(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let g=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,g=!0),r==null||r===!1?(r!==!1||e.getAttribute(t)==="")&&(g?e.removeAttributeNS(ee,t):e.removeAttribute(t)):(!i||o&4||n)&&!f&&(r=r===!0?"":r,g?e.setAttributeNS(ee,t,r):e.setAttribute(t,r))}}},ze=/\s/,oe=e=>e?e.split(ze):[],ie="Capture",Be=new RegExp(ie+"$"),le=(e,t,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||te,o=t.$attrs$||te;for(const i of ae(Object.keys(n)))i in o||ne(r,i,n[i],void 0,s,t.$flags$);for(const i of ae(Object.keys(o)))ne(r,i,n[i],o[i],s,t.$flags$)};function ae(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var O,q,R,_=!1,C=!1,G=!1,b=!1,P=(e,t,s,r)=>{var n;const o=t.$children$[s];let i=0,c,f,g;if(_||(G=!0,o.$tag$==="slot"&&(O&&r.classList.add(O+"-s"),o.$flags$|=o.$children$?2:1)),o.$text$!==null)c=o.$elm$=F.createTextNode(o.$text$);else if(o.$flags$&1)c=o.$elm$=F.createTextNode("");else{if(b||(b=o.$tag$==="svg"),c=o.$elm$=F.createElementNS(b?De:Fe,!_&&j.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$),b&&o.$tag$==="foreignObject"&&(b=!1),le(null,o,b),!!c.getRootNode().querySelector("body")&&j.scoped&&_e(O)&&c["s-si"]!==O&&c.classList.add(c["s-si"]=O),J(c,r),o.$children$)for(i=0;i<o.$children$.length;++i)f=P(e,o,i,c),f&&c.appendChild(f);o.$tag$==="svg"?b=!1:c.tagName==="foreignObject"&&(b=!0)}return c["s-hn"]=R,o.$flags$&3&&(c["s-sr"]=!0,c["s-cr"]=q,c["s-sn"]=o.$name$||"",c["s-rf"]=(n=o.$attrs$)==null?void 0:n.ref,g=e&&e.$children$&&e.$children$[s],g&&g.$tag$===o.$tag$&&e.$elm$&&x(e.$elm$,!1)),c},x=(e,t)=>{L.$flags$|=1;const s=Array.from(e.childNodes);if(e["s-sr"]&&j.experimentalSlotFixes){let r=e;for(;r=r.nextSibling;)r&&r["s-sn"]===e["s-sn"]&&r["s-sh"]===R&&s.push(r)}for(let r=s.length-1;r>=0;r--){const n=s[r];n["s-hn"]!==R&&n["s-ol"]&&(A(ue(n),n,X(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,G=!0),t&&x(n,t)}L.$flags$&=-2},ce=(e,t,s,r,n,o)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e,c;for(i.shadowRoot&&i.tagName===R&&(i=i.shadowRoot);n<=o;++n)r[n]&&(c=P(null,s,n,e),c&&(r[n].$elm$=c,A(i,c,X(t))))},fe=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const o=n.$elm$;pe(n),o&&(C=!0,o["s-ol"]?o["s-ol"].remove():x(o,!0),o.remove())}}},qe=(e,t,s,r,n=!1)=>{let o=0,i=0,c=0,f=0,g=t.length-1,u=t[0],l=t[g],$=r.length-1,d=r[0],v=r[$],k,S;for(;o<=g&&i<=$;)if(u==null)u=t[++o];else if(l==null)l=t[--g];else if(d==null)d=r[++i];else if(v==null)v=r[--$];else if(w(u,d,n))M(u,d,n),u=t[++o],d=r[++i];else if(w(l,v,n))M(l,v,n),l=t[--g],v=r[--$];else if(w(u,v,n))(u.$tag$==="slot"||v.$tag$==="slot")&&x(u.$elm$.parentNode,!1),M(u,v,n),A(e,u.$elm$,l.$elm$.nextSibling),u=t[++o],v=r[--$];else if(w(l,d,n))(u.$tag$==="slot"||v.$tag$==="slot")&&x(l.$elm$.parentNode,!1),M(l,d,n),A(e,l.$elm$,u.$elm$),l=t[--g],d=r[++i];else{for(c=-1,f=o;f<=g;++f)if(t[f]&&t[f].$key$!==null&&t[f].$key$===d.$key$){c=f;break}c>=0?(S=t[c],S.$tag$!==d.$tag$?k=P(t&&t[i],s,c,e):(M(S,d,n),t[c]=void 0,k=S.$elm$),d=r[++i]):(k=P(t&&t[i],s,i,e),d=r[++i]),k&&A(ue(u.$elm$),k,X(u.$elm$))}o>g?ce(e,r[$+1]==null?null:r[$+1].$elm$,s,r,i,$):i>$&&fe(t,o,g)},w=(e,t,s=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?"$nodeId$"in e&&s&&e.$elm$.nodeType!==8?!1:e.$name$===t.$name$:s?!0:e.$key$===t.$key$:!1,X=e=>e&&e["s-ol"]||e,ue=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,M=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,o=t.$children$,i=t.$tag$,c=t.$text$;let f;c===null?(b=i==="svg"?!0:i==="foreignObject"?!1:b,i==="slot"&&!_||le(e,t,b),n!==null&&o!==null?qe(r,n,t,o,s):o!==null?(e.$text$!==null&&(r.textContent=""),ce(r,null,t,o,0,o.length-1)):!s&&j.updatable&&n!==null&&fe(n,0,n.length-1),b&&i==="svg"&&(b=!1)):(f=r["s-cr"])?f.parentNode.textContent=c:e.$text$!==c&&(r.data=c)},de=e=>{const t=e.childNodes;for(const s of t)if(s.nodeType===1){if(s["s-sr"]){const r=s["s-sn"];s.hidden=!1;for(const n of t)if(n!==s){if(n["s-hn"]!==s["s-hn"]||r!==""){if(n.nodeType===1&&(r===n.getAttribute("slot")||r===n["s-sn"])||n.nodeType===3&&r===n["s-sn"]){s.hidden=!0;break}}else if(n.nodeType===1||n.nodeType===3&&n.textContent.trim()!==""){s.hidden=!0;break}}}de(s)}},T=[],$e=e=>{let t,s,r;for(const n of e.childNodes){if(n["s-sr"]&&(t=n["s-cr"])&&t.parentNode){s=t.parentNode.childNodes;const o=n["s-sn"];for(r=s.length-1;r>=0;r--)if(t=s[r],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==n["s-hn"]&&!j.experimentalSlotFixes)if(ge(t,o)){let i=T.find(c=>c.$nodeToRelocate$===t);C=!0,t["s-sn"]=t["s-sn"]||o,i?(i.$nodeToRelocate$["s-sh"]=n["s-hn"],i.$slotRefNode$=n):(t["s-sh"]=n["s-hn"],T.push({$slotRefNode$:n,$nodeToRelocate$:t})),t["s-sr"]&&T.map(c=>{ge(c.$nodeToRelocate$,t["s-sn"])&&(i=T.find(f=>f.$nodeToRelocate$===t),i&&!c.$slotRefNode$&&(c.$slotRefNode$=i.$slotRefNode$))})}else T.some(i=>i.$nodeToRelocate$===t)||T.push({$nodeToRelocate$:t})}n.nodeType===1&&$e(n)}},ge=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",pe=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(pe)},A=(e,t,s)=>{const r=e==null?void 0:e.insertBefore(t,s);return J(t,e),r},ve=e=>{const t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...ve(e.parentElement)),t},J=(e,t,s=!1)=>{var r;if(e&&t&&e.nodeType===1){const n=new Set(ve(t).filter(Boolean));if(n.size&&((r=e.classList)==null||r.add(...e["s-scs"]=[...n]),e["s-ol"]||s))for(const o of Array.from(e.childNodes))J(o,e,!0)}},Ge=(e,t,s=!1)=>{var r,n,o,i,c;const f=e.$hostElement$,g=e.$cmpMeta$,u=e.$vnode$||B(null,null),l=Ie(t)?t:We(null,null,t);if(R=f.tagName,g.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},g.$attrsToReflect$.map(([$,d])=>l.$attrs$[d]=f[$])),s&&l.$attrs$)for(const $ of Object.keys(l.$attrs$))f.hasAttribute($)&&!["key","ref","style","class"].includes($)&&(l.$attrs$[$]=f[$]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=u.$elm$=f.shadowRoot||f,O=f["s-sc"],_=(g.$flags$&1)!==0,q=f["s-cr"],C=!1,M(u,l,s);{if(L.$flags$|=1,G){$e(l.$elm$);for(const $ of T){const d=$.$nodeToRelocate$;if(!d["s-ol"]){const v=F.createTextNode("");v["s-nr"]=d,A(d.parentNode,d["s-ol"]=v,d)}}for(const $ of T){const d=$.$nodeToRelocate$,v=$.$slotRefNode$;if(v){const k=v.parentNode;let S=v.nextSibling;{let W=(r=d["s-ol"])==null?void 0:r.previousSibling;for(;W;){let h=(n=W["s-nr"])!=null?n:null;if(h&&h["s-sn"]===d["s-sn"]&&k===h.parentNode){for(h=h.nextSibling;h===d||h!=null&&h["s-sr"];)h=h==null?void 0:h.nextSibling;if(!h||!h["s-nr"]){S=h;break}}W=W.previousSibling}}(!S&&k!==d.parentNode||d.nextSibling!==S)&&d!==S&&(!d["s-hn"]&&d["s-ol"]&&(d["s-hn"]=d["s-ol"].parentNode.nodeName),A(k,d,S),d.nodeType===1&&(d.hidden=(o=d["s-ih"])!=null?o:!1)),d&&typeof v["s-rf"]=="function"&&v["s-rf"](d)}else d.nodeType===1&&(s&&(d["s-ih"]=(i=d.hidden)!=null?i:!1),d.hidden=!0)}}C&&de(l.$elm$),L.$flags$&=-2,T.length=0}if(j.experimentalScopedSlotChanges&&g.$flags$&2)for(const $ of l.$elm$.childNodes)$["s-hn"]!==R&&!$["s-sh"]&&(s&&$["s-ih"]==null&&($["s-ih"]=(c=$.hidden)!=null?c:!1),$.hidden=!0);q=void 0};const Xe=(e,t,s)=>{[null,void 0,"",!1].includes(s)||["innerHTML","style"].includes(t)||e.setAttribute(t,["object","function"].includes(typeof s)?"/!\\ Object props are not rendered in the code example":s)},ye=(e,t,s,r,n)=>{if(t&&typeof t=="string"){const o=document.createElement(t);Object.keys(s||{}).forEach(i=>{Xe(o,i,s[i])}),r==null||r.forEach(i=>{ye(o,i.$tag$,i.$attrs$,i.$children$,i.$text$)}),s!=null&&s.innerHTML&&(o.innerHTML=s.innerHTML),e.appendChild(o)}n&&(e.innerHTML=n)},Je=(e,t)=>{const s={};if(typeof e!="object")throw new Error("filterArgs - args isn't an object.");for(const r in e)if(!r.startsWith("slot")){const n=e[r],o=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();(!t||!Object.keys(t).includes(r)||t[r]!==n)&&(s[o]=n)}return s},Ke=(e,t)=>{var r,n;const s=document.getElementById("storybook-root");if(s!==null)return(n=document.querySelector("[lang]"))==null||n.setAttribute("lang",((r=t.globals)==null?void 0:r.locale)||"en"),Ge({$ancestorComponent$:void 0,$flags$:0,$modeName$:void 0,$cmpMeta$:{$flags$:0,$tagName$:s.tagName},$hostElement$:s},e(t)),s.children[s.children.length-1]},Qe=({$tag$:e,$attrs$:t,$children$:s,$text$:r})=>{const n=document.createElement("div");return ye(n,e,t,s,r),n.innerHTML},D=(e,t)=>{if(!t)return;const s=t.split("/");return`${e}${s.slice(2,s.length-1).join("-")}--docs`};class Ze{constructor(t){y(this,"jsonDoc");Q(this,E,t=>this.jsonDoc.components.find(s=>s.tag===t));Q(this,U,t=>{const s=t.type.replace(/"([^"]+)"/g,"$1").replace(/\s/g,"").replace(/\(.*?\)/g,r=>r.replace(/\|/g," OR ")).split("|").map(r=>r.trim().replace(/ OR /g,"|"));return t.type==="string"?{control:{type:"text"}}:t.type==="number"?{control:{type:"number"}}:t.type==="boolean"?{control:{type:"boolean"}}:t.type.startsWith("{")&&t.type.endsWith("}")?{control:{type:"object"}}:s.length>1?s.includes("string")?{control:{type:"text"}}:s.every(r=>r==null?void 0:r.includes("[]"))?{control:{type:"object"}}:(s.unshift(void 0),{control:{type:"select"},options:s}):{control:{type:"object"}}});y(this,"extractArgTypes",t=>{const s=N(this,E).call(this,t),r=s==null?void 0:s.props.reduce((u,l)=>{const{control:$,options:d}=N(this,U).call(this,l);return{...u,[l.name]:{name:l.attr||l.name,description:l.docs,type:{required:l.required},table:{category:"props",type:{summary:l.type},defaultValue:{summary:l.default}},control:$,options:d}}},{}),n=s==null?void 0:s.events.reduce((u,l)=>({...u,[l.event]:{name:l.event,description:l.docs,table:{category:"events",type:{summary:l.detail}}}}),{}),o=s==null?void 0:s.methods.reduce((u,l)=>({...u,[l.name]:{name:l.name,description:l.docs,table:{category:"methods",type:{summary:l.signature}}}}),{}),i=s==null?void 0:s.slots.reduce((u,l)=>({...u,[l.name]:{name:l.name!==""?l.name:"default",description:l.docs,table:{category:"slots",type:{summary:void 0}}}}),{}),c=s==null?void 0:s.styles.reduce((u,l)=>({...u,[l.name]:{name:l.name,description:l.docs,table:{category:"custom properties",type:{summary:void 0}}}}),{}),f=s==null?void 0:s.dependencies.reduce((u,l)=>{const $=N(this,E).call(this,l);return{...u,[l]:{name:l,description:`<a href="./?path=/docs/${D("",$==null?void 0:$.filePath)}">View Component Documentation</a>`,table:{category:"depends on",type:{summary:void 0}}}}},{}),g=s==null?void 0:s.dependents.reduce((u,l)=>{const $=N(this,E).call(this,l);return{...u,[l]:{name:l,description:`<a href="./?path=/docs/${D("",$==null?void 0:$.filePath)}">View Component Documentation</a>`,table:{category:"used by",type:{summary:void 0}}}}},{});return{...r,...n,...o,...i,...c,...f,...g}});y(this,"extractComponentDescription",t=>{const s=N(this,E).call(this,t);return(s==null?void 0:s.readme)||(s==null?void 0:s.docs)});this.jsonDoc=t}}E=new WeakMap,U=new WeakMap;const Ye=(e,t)=>{if(t)return`${e}${t}`},he=e=>{let t=e.overview?`${e.overview}
|
|
1
|
+
(function(a,p){typeof exports=="object"&&typeof module<"u"?p(exports):typeof define=="function"&&define.amd?define(["exports"],p):(a=typeof globalThis<"u"?globalThis:a||self,p(a.StencilHelpersModule={}))})(this,function(a){"use strict";var vt=Object.defineProperty;var Se=a=>{throw TypeError(a)};var yt=(a,p,m)=>p in a?vt(a,p,{enumerable:!0,configurable:!0,writable:!0,value:m}):a[p]=m;var y=(a,p,m)=>yt(a,typeof p!="symbol"?p+"":p,m),ht=(a,p,m)=>p.has(a)||Se("Cannot "+m);var N=(a,p,m)=>(ht(a,p,"read from private field"),m?m.call(a):p.get(a)),Q=(a,p,m)=>p.has(a)?Se("Cannot add the same private member more than once"):p instanceof WeakSet?p.add(a):p.set(a,m);var E,U;const p=(e="",t=10)=>{const s=new Uint8Array(t);crypto.getRandomValues(s);const r=Array.from(s).map(n=>n.toString(16).padStart(2,"0")).join("").slice(0,t);return e!==""?`${e}-${r}`:r},m=e=>Y(e)&&/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e)!==null;class Te{constructor(t=[]){y(this,"classes");y(this,"add",t=>{this.has(t)||this.classes.push(t)});y(this,"delete",t=>{const s=this.classes.indexOf(t);s>-1&&this.classes.splice(s,1)});y(this,"has",t=>this.classes.includes(t));y(this,"join",()=>this.classes.join(" "));this.classes=t}}const ke=e=>Array.isArray(e)&&e.every(t=>typeof t=="string"),Ae=(e,t)=>t.includes(e==null?void 0:e.tagName.toLowerCase()),Ee='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button',je=e=>{const t=H(e),s=Z(e);return[e,...t,...s]},H=(e,t=[])=>{if(e.self!==e.top)try{const s=e.parent;return s?(t.push(s),H(s,t)):t}catch(s){return console.error("Different hosts between iframes:",s),t}return t},Z=(e,t=[])=>{if(e.frames.length>0)for(const s of Array.from(e.frames))t.push(s),Z(s,t);return t},Y=e=>typeof e=="string"&&e.trim()!=="",Le=e=>typeof e=="object"?JSON.stringify(e):`${e}`,Oe=e=>typeof e=="number"&&!Number.isNaN(e),Re=e=>typeof e=="string"?e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g,""):e,Me=async e=>e();var j={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},Ne=Object.defineProperty,xe=(e,t)=>{for(var s in t)Ne(e,s,{get:t[s],enumerable:!0})},V=(e,t)=>t in e,ee="http://www.w3.org/1999/xlink",I=typeof window<"u"?window:{},F=I.document||{head:{}};I.HTMLElement;var L={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},te={},De="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml",_e=e=>e!=null,se=e=>(e=typeof e,e==="object"||e==="function"),Ce={};xe(Ce,{err:()=>re,map:()=>Pe,ok:()=>z,unwrap:()=>we,unwrapErr:()=>Ue});var z=e=>({isOk:!0,isErr:!1,value:e}),re=e=>({isOk:!1,isErr:!0,value:e});function Pe(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>z(r)):z(s)}if(e.isErr){const s=e.value;return re(s)}throw"should never get here"}var we=e=>{if(e.isOk)return e.value;throw e.value},Ue=e=>{if(e.isErr)return e.value;throw e.value},We=(e,t,...s)=>{let r=null,n=null,o=null,i=!1,c=!1;const f=[],g=l=>{for(let $=0;$<l.length;$++)r=l[$],Array.isArray(r)?g(r):r!=null&&typeof r!="boolean"&&((i=!se(r))&&(r=String(r)),i&&c?f[f.length-1].$text$+=r:f.push(i?B(null,r):r),c=i)};g(s);const u=B(e,null);return u.$attrs$=t,f.length>0&&(u.$children$=f),u.$key$=n,u.$name$=o,u},B=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s.$name$=null,s},He={},Ie=e=>e&&e.$tag$===He,ne=(e,t,s,r,n,o)=>{if(s!==r){let i=V(e,t),c=t.toLowerCase();if(t==="class"){const f=e.classList,g=oe(s),u=oe(r);f.remove(...g.filter(l=>l&&!u.includes(l))),f.add(...u.filter(l=>l&&!g.includes(l)))}else if(t==="style"){for(const f in s)(!r||r[f]==null)&&(f.includes("-")?e.style.removeProperty(f):e.style[f]="");for(const f in r)(!s||r[f]!==s[f])&&(f.includes("-")?e.style.setProperty(f,r[f]):e.style[f]=r[f])}else if(t!=="key")if(t==="ref")r&&r(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):V(I,c)?t=c.slice(2):t=c[2]+t.slice(3),s||r){const f=t.endsWith(ie);t=t.replace(Be,""),s&&L.rel(e,t,s,f),r&&L.ael(e,t,r,f)}}else{const f=se(r);if((i||f&&r!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=r;else{const u=r??"";t==="list"?i=!1:(s==null||e[t]!=u)&&(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let g=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,g=!0),r==null||r===!1?(r!==!1||e.getAttribute(t)==="")&&(g?e.removeAttributeNS(ee,t):e.removeAttribute(t)):(!i||o&4||n)&&!f&&(r=r===!0?"":r,g?e.setAttributeNS(ee,t,r):e.setAttribute(t,r))}}},ze=/\s/,oe=e=>e?e.split(ze):[],ie="Capture",Be=new RegExp(ie+"$"),le=(e,t,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||te,o=t.$attrs$||te;for(const i of ae(Object.keys(n)))i in o||ne(r,i,n[i],void 0,s,t.$flags$);for(const i of ae(Object.keys(o)))ne(r,i,n[i],o[i],s,t.$flags$)};function ae(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var O,q,R,_=!1,C=!1,G=!1,b=!1,P=(e,t,s,r)=>{var n;const o=t.$children$[s];let i=0,c,f,g;if(_||(G=!0,o.$tag$==="slot"&&(O&&r.classList.add(O+"-s"),o.$flags$|=o.$children$?2:1)),o.$text$!==null)c=o.$elm$=F.createTextNode(o.$text$);else if(o.$flags$&1)c=o.$elm$=F.createTextNode("");else{if(b||(b=o.$tag$==="svg"),c=o.$elm$=F.createElementNS(b?De:Fe,!_&&j.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$),b&&o.$tag$==="foreignObject"&&(b=!1),le(null,o,b),!!c.getRootNode().querySelector("body")&&j.scoped&&_e(O)&&c["s-si"]!==O&&c.classList.add(c["s-si"]=O),J(c,r),o.$children$)for(i=0;i<o.$children$.length;++i)f=P(e,o,i,c),f&&c.appendChild(f);o.$tag$==="svg"?b=!1:c.tagName==="foreignObject"&&(b=!0)}return c["s-hn"]=R,o.$flags$&3&&(c["s-sr"]=!0,c["s-cr"]=q,c["s-sn"]=o.$name$||"",c["s-rf"]=(n=o.$attrs$)==null?void 0:n.ref,g=e&&e.$children$&&e.$children$[s],g&&g.$tag$===o.$tag$&&e.$elm$&&x(e.$elm$,!1)),c},x=(e,t)=>{L.$flags$|=1;const s=Array.from(e.childNodes);if(e["s-sr"]&&j.experimentalSlotFixes){let r=e;for(;r=r.nextSibling;)r&&r["s-sn"]===e["s-sn"]&&r["s-sh"]===R&&s.push(r)}for(let r=s.length-1;r>=0;r--){const n=s[r];n["s-hn"]!==R&&n["s-ol"]&&(A(ue(n),n,X(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,G=!0),t&&x(n,t)}L.$flags$&=-2},ce=(e,t,s,r,n,o)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e,c;for(i.shadowRoot&&i.tagName===R&&(i=i.shadowRoot);n<=o;++n)r[n]&&(c=P(null,s,n,e),c&&(r[n].$elm$=c,A(i,c,X(t))))},fe=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const o=n.$elm$;pe(n),o&&(C=!0,o["s-ol"]?o["s-ol"].remove():x(o,!0),o.remove())}}},qe=(e,t,s,r,n=!1)=>{let o=0,i=0,c=0,f=0,g=t.length-1,u=t[0],l=t[g],$=r.length-1,d=r[0],v=r[$],k,S;for(;o<=g&&i<=$;)if(u==null)u=t[++o];else if(l==null)l=t[--g];else if(d==null)d=r[++i];else if(v==null)v=r[--$];else if(w(u,d,n))M(u,d,n),u=t[++o],d=r[++i];else if(w(l,v,n))M(l,v,n),l=t[--g],v=r[--$];else if(w(u,v,n))(u.$tag$==="slot"||v.$tag$==="slot")&&x(u.$elm$.parentNode,!1),M(u,v,n),A(e,u.$elm$,l.$elm$.nextSibling),u=t[++o],v=r[--$];else if(w(l,d,n))(u.$tag$==="slot"||v.$tag$==="slot")&&x(l.$elm$.parentNode,!1),M(l,d,n),A(e,l.$elm$,u.$elm$),l=t[--g],d=r[++i];else{for(c=-1,f=o;f<=g;++f)if(t[f]&&t[f].$key$!==null&&t[f].$key$===d.$key$){c=f;break}c>=0?(S=t[c],S.$tag$!==d.$tag$?k=P(t&&t[i],s,c,e):(M(S,d,n),t[c]=void 0,k=S.$elm$),d=r[++i]):(k=P(t&&t[i],s,i,e),d=r[++i]),k&&A(ue(u.$elm$),k,X(u.$elm$))}o>g?ce(e,r[$+1]==null?null:r[$+1].$elm$,s,r,i,$):i>$&&fe(t,o,g)},w=(e,t,s=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?"$nodeId$"in e&&s&&e.$elm$.nodeType!==8?!1:e.$name$===t.$name$:s?!0:e.$key$===t.$key$:!1,X=e=>e&&e["s-ol"]||e,ue=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,M=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,o=t.$children$,i=t.$tag$,c=t.$text$;let f;c===null?(b=i==="svg"?!0:i==="foreignObject"?!1:b,i==="slot"&&!_||le(e,t,b),n!==null&&o!==null?qe(r,n,t,o,s):o!==null?(e.$text$!==null&&(r.textContent=""),ce(r,null,t,o,0,o.length-1)):!s&&j.updatable&&n!==null&&fe(n,0,n.length-1),b&&i==="svg"&&(b=!1)):(f=r["s-cr"])?f.parentNode.textContent=c:e.$text$!==c&&(r.data=c)},de=e=>{const t=e.childNodes;for(const s of t)if(s.nodeType===1){if(s["s-sr"]){const r=s["s-sn"];s.hidden=!1;for(const n of t)if(n!==s){if(n["s-hn"]!==s["s-hn"]||r!==""){if(n.nodeType===1&&(r===n.getAttribute("slot")||r===n["s-sn"])||n.nodeType===3&&r===n["s-sn"]){s.hidden=!0;break}}else if(n.nodeType===1||n.nodeType===3&&n.textContent.trim()!==""){s.hidden=!0;break}}}de(s)}},T=[],$e=e=>{let t,s,r;for(const n of e.childNodes){if(n["s-sr"]&&(t=n["s-cr"])&&t.parentNode){s=t.parentNode.childNodes;const o=n["s-sn"];for(r=s.length-1;r>=0;r--)if(t=s[r],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==n["s-hn"]&&!j.experimentalSlotFixes)if(ge(t,o)){let i=T.find(c=>c.$nodeToRelocate$===t);C=!0,t["s-sn"]=t["s-sn"]||o,i?(i.$nodeToRelocate$["s-sh"]=n["s-hn"],i.$slotRefNode$=n):(t["s-sh"]=n["s-hn"],T.push({$slotRefNode$:n,$nodeToRelocate$:t})),t["s-sr"]&&T.map(c=>{ge(c.$nodeToRelocate$,t["s-sn"])&&(i=T.find(f=>f.$nodeToRelocate$===t),i&&!c.$slotRefNode$&&(c.$slotRefNode$=i.$slotRefNode$))})}else T.some(i=>i.$nodeToRelocate$===t)||T.push({$nodeToRelocate$:t})}n.nodeType===1&&$e(n)}},ge=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",pe=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(pe)},A=(e,t,s)=>{const r=e==null?void 0:e.insertBefore(t,s);return J(t,e),r},ve=e=>{const t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...ve(e.parentElement)),t},J=(e,t,s=!1)=>{var r;if(e&&t&&e.nodeType===1){const n=new Set(ve(t).filter(Boolean));if(n.size&&((r=e.classList)==null||r.add(...e["s-scs"]=Array.from(n)),e["s-ol"]||s))for(const o of Array.from(e.childNodes))J(o,e,!0)}},Ge=(e,t,s=!1)=>{var r,n,o,i,c;const f=e.$hostElement$,g=e.$cmpMeta$,u=e.$vnode$||B(null,null),l=Ie(t)?t:We(null,null,t);if(R=f.tagName,g.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},g.$attrsToReflect$.map(([$,d])=>l.$attrs$[d]=f[$])),s&&l.$attrs$)for(const $ of Object.keys(l.$attrs$))f.hasAttribute($)&&!["key","ref","style","class"].includes($)&&(l.$attrs$[$]=f[$]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=u.$elm$=f.shadowRoot||f,O=f["s-sc"],_=(g.$flags$&1)!==0,q=f["s-cr"],C=!1,M(u,l,s);{if(L.$flags$|=1,G){$e(l.$elm$);for(const $ of T){const d=$.$nodeToRelocate$;if(!d["s-ol"]){const v=F.createTextNode("");v["s-nr"]=d,A(d.parentNode,d["s-ol"]=v,d)}}for(const $ of T){const d=$.$nodeToRelocate$,v=$.$slotRefNode$;if(v){const k=v.parentNode;let S=v.nextSibling;{let W=(r=d["s-ol"])==null?void 0:r.previousSibling;for(;W;){let h=(n=W["s-nr"])!=null?n:null;if(h&&h["s-sn"]===d["s-sn"]&&k===h.parentNode){for(h=h.nextSibling;h===d||h!=null&&h["s-sr"];)h=h==null?void 0:h.nextSibling;if(!h||!h["s-nr"]){S=h;break}}W=W.previousSibling}}(!S&&k!==d.parentNode||d.nextSibling!==S)&&d!==S&&(!d["s-hn"]&&d["s-ol"]&&(d["s-hn"]=d["s-ol"].parentNode.nodeName),A(k,d,S),d.nodeType===1&&(d.hidden=(o=d["s-ih"])!=null?o:!1)),d&&typeof v["s-rf"]=="function"&&v["s-rf"](d)}else d.nodeType===1&&(s&&(d["s-ih"]=(i=d.hidden)!=null?i:!1),d.hidden=!0)}}C&&de(l.$elm$),L.$flags$&=-2,T.length=0}if(j.experimentalScopedSlotChanges&&g.$flags$&2)for(const $ of l.$elm$.childNodes)$["s-hn"]!==R&&!$["s-sh"]&&(s&&$["s-ih"]==null&&($["s-ih"]=(c=$.hidden)!=null?c:!1),$.hidden=!0);q=void 0};const Xe=(e,t,s)=>{[null,void 0,"",!1].includes(s)||["innerHTML","style"].includes(t)||e.setAttribute(t,["object","function"].includes(typeof s)?"/!\\ Object props are not rendered in the code example":s)},ye=(e,t,s,r,n)=>{if(t&&typeof t=="string"){const o=document.createElement(t);Object.keys(s||{}).forEach(i=>{Xe(o,i,s[i])}),r==null||r.forEach(i=>{ye(o,i.$tag$,i.$attrs$,i.$children$,i.$text$)}),s!=null&&s.innerHTML&&(o.innerHTML=s.innerHTML),e.appendChild(o)}n&&(e.innerHTML=n)},Je=(e,t)=>{const s={};if(typeof e!="object")throw new Error("filterArgs - args isn't an object.");for(const r in e)if(!r.startsWith("slot")){const n=e[r],o=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();(!t||!Object.keys(t).includes(r)||t[r]!==n)&&(s[o]=n)}return s},Ke=(e,t)=>{var r,n;const s=document.getElementById("storybook-root");if(s!==null)return(n=document.querySelector("[lang]"))==null||n.setAttribute("lang",((r=t.globals)==null?void 0:r.locale)||"en"),Ge({$ancestorComponent$:void 0,$flags$:0,$modeName$:void 0,$cmpMeta$:{$flags$:0,$tagName$:s.tagName},$hostElement$:s},e(t)),s.children[s.children.length-1]},Qe=({$tag$:e,$attrs$:t,$children$:s,$text$:r})=>{const n=document.createElement("div");return ye(n,e,t,s,r),n.innerHTML},D=(e,t)=>{if(!t)return;const s=t.split("/");return`${e}${s.slice(2,s.length-1).join("-")}--docs`};class Ze{constructor(t){y(this,"jsonDoc");Q(this,E,t=>this.jsonDoc.components.find(s=>s.tag===t));Q(this,U,t=>{const s=t.type.replace(/"([^"]+)"/g,"$1").replace(/\s/g,"").replace(/\(.*?\)/g,r=>r.replace(/\|/g," OR ")).split("|").map(r=>r.trim().replace(/ OR /g,"|"));return t.type==="string"?{control:{type:"text"}}:t.type==="number"?{control:{type:"number"}}:t.type==="boolean"?{control:{type:"boolean"}}:t.type.startsWith("{")&&t.type.endsWith("}")?{control:{type:"object"}}:s.length>1?s.includes("string")?{control:{type:"text"}}:s.every(r=>r==null?void 0:r.includes("[]"))?{control:{type:"object"}}:(s.unshift(void 0),{control:{type:"select"},options:s}):{control:{type:"object"}}});y(this,"extractArgTypes",t=>{const s=N(this,E).call(this,t),r=s==null?void 0:s.props.reduce((u,l)=>{const{control:$,options:d}=N(this,U).call(this,l);return{...u,[l.name]:{name:l.attr||l.name,description:l.docs,type:{required:l.required},table:{category:"props",type:{summary:l.type},defaultValue:{summary:l.default}},control:$,options:d}}},{}),n=s==null?void 0:s.events.reduce((u,l)=>({...u,[l.event]:{name:l.event,description:l.docs,table:{category:"events",type:{summary:l.detail}}}}),{}),o=s==null?void 0:s.methods.reduce((u,l)=>({...u,[l.name]:{name:l.name,description:l.docs,table:{category:"methods",type:{summary:l.signature}}}}),{}),i=s==null?void 0:s.slots.reduce((u,l)=>({...u,[l.name]:{name:l.name!==""?l.name:"default",description:l.docs,table:{category:"slots",type:{summary:void 0}}}}),{}),c=s==null?void 0:s.styles.reduce((u,l)=>({...u,[l.name]:{name:l.name,description:l.docs,table:{category:"custom properties",type:{summary:void 0}}}}),{}),f=s==null?void 0:s.dependencies.reduce((u,l)=>{const $=N(this,E).call(this,l);return{...u,[l]:{name:l,description:`<a href="./?path=/docs/${D("",$==null?void 0:$.filePath)}">View Component Documentation</a>`,table:{category:"depends on",type:{summary:void 0}}}}},{}),g=s==null?void 0:s.dependents.reduce((u,l)=>{const $=N(this,E).call(this,l);return{...u,[l]:{name:l,description:`<a href="./?path=/docs/${D("",$==null?void 0:$.filePath)}">View Component Documentation</a>`,table:{category:"used by",type:{summary:void 0}}}}},{});return{...r,...n,...o,...i,...c,...f,...g}});y(this,"extractComponentDescription",t=>{const s=N(this,E).call(this,t);return(s==null?void 0:s.readme)||(s==null?void 0:s.docs)});this.jsonDoc=t}}E=new WeakMap,U=new WeakMap;const Ye=(e,t)=>{if(t)return`${e}${t}`},he=e=>{let t=e.overview?`${e.overview}
|
|
2
2
|
|
|
3
3
|
`:"";const s=e.props.filter(({attr:n})=>n!==void 0);s.length&&(t+=`Attributes:
|
|
4
4
|
`,t+=s.map(({attr:n,docs:o})=>`- \`${n}\`: ${o}
|