hypnagaga/docs/assets/Article-5DKLq1Pp.js
github-actions[bot] 4839a19a1a docs
2024-10-23 05:41:42 +00:00

1 line
2.7 KiB
JavaScript

import{S as b,i as y,s as w,y as h,q as f,f as c,C as m,h as _,j as p,G as k,z as j,A as g,B as A,H as v,t as S,a as V,k as W}from"./index-C9aKRT5A.js";const C=(n,i)=>(Object.entries(i).forEach(([t,s])=>{n.style.setProperty(`--${t}`,s)}),{update(t){Object.entries(t).forEach(([s,o])=>{n.style.setProperty(`--${s}`,o),delete i[s]}),Object.keys(i).forEach(s=>{n.style.removeProperty(`--${s}`)}),i=t}});function E(n){let i,t,s,o,d,u;const r=n[6].default,a=h(r,n,n[5],null);return{c(){i=f("main"),t=f("article"),a&&a.c(),c(t,"id",n[1]),c(t,"role",n[2]),c(t,"class","svelte-jd0c2r"),m(t,"embedded",n[0]),c(i,"id","main-content")},m(e,l){_(e,i,l),p(i,t),a&&a.m(t,null),o=!0,d||(u=k(s=C.call(null,t,n[3])),d=!0)},p(e,[l]){a&&a.p&&(!o||l&32)&&j(a,r,e,e[5],o?A(r,e[5],l,null):g(e[5]),null),(!o||l&2)&&c(t,"id",e[1]),(!o||l&4)&&c(t,"role",e[2]),s&&v(s.update)&&l&8&&s.update.call(null,e[3]),(!o||l&1)&&m(t,"embedded",e[0])},i(e){o||(S(a,e),o=!0)},o(e){V(a,e),o=!1},d(e){e&&W(i),a&&a.d(e),d=!1,u()}}}function O(n,i,t){let s,{$$slots:o={},$$scope:d}=i,{embedded:u=!1}=i,{id:r=null}=i,{role:a=null}=i,{columnWidths:e={narrower:330,narrow:510,normal:660,wide:930,wider:1200}}=i;return n.$$set=l=>{"embedded"in l&&t(0,u=l.embedded),"id"in l&&t(1,r=l.id),"role"in l&&t(2,a=l.role),"columnWidths"in l&&t(4,e=l.columnWidths),"$$scope"in l&&t(5,d=l.$$scope)},n.$$.update=()=>{n.$$.dirty&16&&t(3,s={"narrower-column-width":e.narrower+"px","narrow-column-width":e.narrow+"px","normal-column-width":e.normal+"px","wide-column-width":e.wide+"px","wider-column-width":e.wider+"px"})},[u,r,a,s,e,d,o]}class q extends b{constructor(i){super(),y(this,i,O,E,w,{embedded:0,id:1,role:2,columnWidths:4})}}q.__docgen={version:3,name:"Article.svelte",data:[{keywords:[],visibility:"public",description:"Set to true for embeddables.",name:"embedded",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"boolean",type:"boolean"},defaultValue:!1},{keywords:[],visibility:"public",description:"Add an id to the article tag to target it with custom CSS.",name:"id",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"},defaultValue:null},{keywords:[],visibility:"public",description:"ARIA role of the article",name:"role",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"},defaultValue:null},{keywords:[],visibility:"public",description:"Set custom widths for the normal, wide and wider column dimensions",name:"columnWidths",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[{keywords:[],visibility:"public",description:"Article content",name:"default"}],refs:[]};export{q as A};