carta/_app/immutable/chunks/community-plugins.svelte.CU6GiIM0.js
2024-04-14 16:26:44 +00:00

1 line
7.7 KiB
JavaScript

import{s as oe,r as me,e as $,a as _,c as d,b as H,g as v,f as a,F as G,p as h,i as o,h as N,v as $e,w as de,x as ge,l as T,n as A,H as X,m as Z}from"./scheduler.DKiYiPX0.js";import{S as fe,i as pe,t as w,b as C,c as z,a as I,m as P,d as j}from"./index.z4bt_ZBS.js";import{C as J}from"./Code.tlNrnEug.js";function he(r){let e,l,s,n,u,f,g,k;const b=r[3].default,p=me(b,r,r[2],null);return{c(){e=$("div"),p&&p.c(),l=_(),s=$("a"),n=$("iconify-icon"),u=_(),f=$("a"),g=$("iconify-icon"),this.h()},l(c){e=d(c,"DIV",{class:!0});var m=H(e);p&&p.l(m),l=v(m),s=d(m,"A",{href:!0,class:!0});var L=H(s);n=d(L,"ICONIFY-ICON",{icon:!0,class:!0}),H(n).forEach(a),L.forEach(a),u=v(m),f=d(m,"A",{href:!0,class:!0});var Q=H(f);g=d(Q,"ICONIFY-ICON",{icon:!0,class:!0}),H(g).forEach(a),Q.forEach(a),m.forEach(a),this.h()},h(){G(n,"icon","mdi:github"),G(n,"class","text-3xl text-white hover:text-sky-300"),h(s,"href",r[1]),h(s,"class","flex aspect-square"),G(g,"icon","gg:npm"),G(g,"class","text-3xl text-white hover:text-sky-300"),h(f,"href",r[0]),h(f,"class","flex aspect-square"),h(e,"class","plugin-link mb-2 mt-6 flex items-end space-x-3")},m(c,m){o(c,e,m),p&&p.m(e,null),N(e,l),N(e,s),N(s,n),N(e,u),N(e,f),N(f,g),k=!0},p(c,[m]){p&&p.p&&(!k||m&4)&&$e(p,b,c,c[2],k?ge(b,c[2],m,null):de(c[2]),null),(!k||m&2)&&h(s,"href",c[1]),(!k||m&1)&&h(f,"href",c[0])},i(c){k||(w(p,c),k=!0)},o(c){C(p,c),k=!1},d(c){c&&a(e),p&&p.d(c)}}}function _e(r,e,l){let{$$slots:s={},$$scope:n}=e,{npmLink:u}=e,{githubLink:f}=e;return r.$$set=g=>{"npmLink"in g&&l(0,u=g.npmLink),"githubLink"in g&&l(1,f=g.githubLink),"$$scope"in g&&l(2,n=g.$$scope)},[u,f,n,s]}class W extends fe{constructor(e){super(),pe(this,e,_e,he,oe,{npmLink:0,githubLink:1})}}function ve(r){let e,l='<a href="#carta-plugin-video"><code>carta-plugin-video</code></a>';return{c(){e=$("h3"),e.innerHTML=l,this.h()},l(s){e=d(s,"H3",{id:!0,"data-svelte-h":!0}),T(e)!=="svelte-1obabne"&&(e.innerHTML=l),this.h()},h(){h(e,"id","carta-plugin-video")},m(s,n){o(s,e,n)},p:A,d(s){s&&a(e)}}}function ke(r){let e,l,s='<code class="language-undefined">npm i carta-plugin-video</code>';return{c(){e=$("pre"),l=new X(!1),this.h()},l(n){e=d(n,"PRE",{class:!0});var u=H(e);l=Z(u,!1),u.forEach(a),this.h()},h(){l.a=null,h(e,"class","language-undefined")},m(n,u){o(n,e,u),l.m(s,e)},p:A,d(n){n&&a(e)}}}function be(r){let e,l='<a href="#carta-plugin-imsize"><code>carta-plugin-imsize</code></a>';return{c(){e=$("h3"),e.innerHTML=l,this.h()},l(s){e=d(s,"H3",{id:!0,"data-svelte-h":!0}),T(e)!=="svelte-qkwifs"&&(e.innerHTML=l),this.h()},h(){h(e,"id","carta-plugin-imsize")},m(s,n){o(s,e,n)},p:A,d(s){s&&a(e)}}}function Le(r){let e,l,s='<code class="language-undefined">npm i carta-plugin-imsize</code>';return{c(){e=$("pre"),l=new X(!1),this.h()},l(n){e=d(n,"PRE",{class:!0});var u=H(e);l=Z(u,!1),u.forEach(a),this.h()},h(){l.a=null,h(e,"class","language-undefined")},m(n,u){o(n,e,u),l.m(s,e)},p:A,d(n){n&&a(e)}}}function we(r){let e,l='<a href="#carta-plugin-ins-del"><code>carta-plugin-ins-del</code></a>';return{c(){e=$("h3"),e.innerHTML=l,this.h()},l(s){e=d(s,"H3",{id:!0,"data-svelte-h":!0}),T(e)!=="svelte-125pqix"&&(e.innerHTML=l),this.h()},h(){h(e,"id","carta-plugin-ins-del")},m(s,n){o(s,e,n)},p:A,d(s){s&&a(e)}}}function Ce(r){let e,l,s='<code class="language-undefined">npm i carta-plugin-ins-del</code>';return{c(){e=$("pre"),l=new X(!1),this.h()},l(n){e=d(n,"PRE",{class:!0});var u=H(e);l=Z(u,!1),u.forEach(a),this.h()},h(){l.a=null,h(e,"class","language-undefined")},m(n,u){o(n,e,u),l.m(s,e)},p:A,d(n){n&&a(e)}}}function He(r){let e,l='<a href="#carta-plugin-subscript"><code>carta-plugin-subscript</code></a>';return{c(){e=$("h3"),e.innerHTML=l,this.h()},l(s){e=d(s,"H3",{id:!0,"data-svelte-h":!0}),T(e)!=="svelte-f841uo"&&(e.innerHTML=l),this.h()},h(){h(e,"id","carta-plugin-subscript")},m(s,n){o(s,e,n)},p:A,d(s){s&&a(e)}}}function Te(r){let e,l,s='<code class="language-undefined">npm i carta-plugin-subscript</code>';return{c(){e=$("pre"),l=new X(!1),this.h()},l(n){e=d(n,"PRE",{class:!0});var u=H(e);l=Z(u,!1),u.forEach(a),this.h()},h(){l.a=null,h(e,"class","language-undefined")},m(n,u){o(n,e,u),l.m(s,e)},p:A,d(n){n&&a(e)}}}function Ee(r){let e,l="Here are is a list of several plugins developed by the community:",s,n,u,f,g="<p>Adds ability to render online video from Youtube or Vimeo.</p>",k,b,p,c,m,L,Q="<p>Adds ability to render images in specific sizes.</p>",R,E,U,M,F,B,ee="<p><code>&lt;ins&gt;</code> and <code>&lt;del&gt;</code> tags support</p>",Y,q,S,x,V,K,te="<p>Adds ability to render subscripts and superscripts.</p>",y,O,D;return n=new W({props:{npmLink:"https://www.npmjs.com/package/carta-plugin-video",githubLink:"https://github.com/maisonsmd/carta-plugin-video",$$slots:{default:[ve]},$$scope:{ctx:r}}}),b=new J({props:{$$slots:{default:[ke]},$$scope:{ctx:r}}}),c=new W({props:{npmLink:"https://www.npmjs.com/package/carta-plugin-imsize",githubLink:"https://github.com/maisonsmd/carta-plugin-imsize",$$slots:{default:[be]},$$scope:{ctx:r}}}),E=new J({props:{$$slots:{default:[Le]},$$scope:{ctx:r}}}),M=new W({props:{npmLink:"https://www.npmjs.com/package/carta-plugin-ins-del",githubLink:"https://github.com/maisonsmd/carta-plugin-ins-del",$$slots:{default:[we]},$$scope:{ctx:r}}}),q=new J({props:{$$slots:{default:[Ce]},$$scope:{ctx:r}}}),x=new W({props:{npmLink:"https://www.npmjs.com/package/carta-plugin-subscript",githubLink:"https://github.com/maisonsmd/carta-plugin-subscript",$$slots:{default:[He]},$$scope:{ctx:r}}}),O=new J({props:{$$slots:{default:[Te]},$$scope:{ctx:r}}}),{c(){e=$("p"),e.textContent=l,s=_(),z(n.$$.fragment),u=_(),f=$("blockquote"),f.innerHTML=g,k=_(),z(b.$$.fragment),p=_(),z(c.$$.fragment),m=_(),L=$("blockquote"),L.innerHTML=Q,R=_(),z(E.$$.fragment),U=_(),z(M.$$.fragment),F=_(),B=$("blockquote"),B.innerHTML=ee,Y=_(),z(q.$$.fragment),S=_(),z(x.$$.fragment),V=_(),K=$("blockquote"),K.innerHTML=te,y=_(),z(O.$$.fragment)},l(t){e=d(t,"P",{"data-svelte-h":!0}),T(e)!=="svelte-1yac06t"&&(e.textContent=l),s=v(t),I(n.$$.fragment,t),u=v(t),f=d(t,"BLOCKQUOTE",{"data-svelte-h":!0}),T(f)!=="svelte-1js8uvm"&&(f.innerHTML=g),k=v(t),I(b.$$.fragment,t),p=v(t),I(c.$$.fragment,t),m=v(t),L=d(t,"BLOCKQUOTE",{"data-svelte-h":!0}),T(L)!=="svelte-n6pwbn"&&(L.innerHTML=Q),R=v(t),I(E.$$.fragment,t),U=v(t),I(M.$$.fragment,t),F=v(t),B=d(t,"BLOCKQUOTE",{"data-svelte-h":!0}),T(B)!=="svelte-1zz825"&&(B.innerHTML=ee),Y=v(t),I(q.$$.fragment,t),S=v(t),I(x.$$.fragment,t),V=v(t),K=d(t,"BLOCKQUOTE",{"data-svelte-h":!0}),T(K)!=="svelte-lr7j9o"&&(K.innerHTML=te),y=v(t),I(O.$$.fragment,t)},m(t,i){o(t,e,i),o(t,s,i),P(n,t,i),o(t,u,i),o(t,f,i),o(t,k,i),P(b,t,i),o(t,p,i),P(c,t,i),o(t,m,i),o(t,L,i),o(t,R,i),P(E,t,i),o(t,U,i),P(M,t,i),o(t,F,i),o(t,B,i),o(t,Y,i),P(q,t,i),o(t,S,i),P(x,t,i),o(t,V,i),o(t,K,i),o(t,y,i),P(O,t,i),D=!0},p(t,[i]){const ne={};i&1&&(ne.$$scope={dirty:i,ctx:t}),n.$set(ne);const se={};i&1&&(se.$$scope={dirty:i,ctx:t}),b.$set(se);const le={};i&1&&(le.$$scope={dirty:i,ctx:t}),c.$set(le);const ie={};i&1&&(ie.$$scope={dirty:i,ctx:t}),E.$set(ie);const ae={};i&1&&(ae.$$scope={dirty:i,ctx:t}),M.$set(ae);const ue={};i&1&&(ue.$$scope={dirty:i,ctx:t}),q.$set(ue);const re={};i&1&&(re.$$scope={dirty:i,ctx:t}),x.$set(re);const ce={};i&1&&(ce.$$scope={dirty:i,ctx:t}),O.$set(ce)},i(t){D||(w(n.$$.fragment,t),w(b.$$.fragment,t),w(c.$$.fragment,t),w(E.$$.fragment,t),w(M.$$.fragment,t),w(q.$$.fragment,t),w(x.$$.fragment,t),w(O.$$.fragment,t),D=!0)},o(t){C(n.$$.fragment,t),C(b.$$.fragment,t),C(c.$$.fragment,t),C(E.$$.fragment,t),C(M.$$.fragment,t),C(q.$$.fragment,t),C(x.$$.fragment,t),C(O.$$.fragment,t),D=!1},d(t){t&&(a(e),a(s),a(u),a(f),a(k),a(p),a(m),a(L),a(R),a(U),a(F),a(B),a(Y),a(S),a(V),a(K),a(y)),j(n,t),j(b,t),j(c,t),j(E,t),j(M,t),j(q,t),j(x,t),j(O,t)}}}const Oe={title:"Community Plugins",section:"Overview"};class ze extends fe{constructor(e){super(),pe(this,e,null,Ee,oe,{})}}export{ze as default,Oe as metadata};