1 line
1.8 KiB
JavaScript
1 line
1.8 KiB
JavaScript
import{a as V,n as x,c as j}from"./utils-09ff0c0e.js";import{a as _,t as g,s as D,H as E,b,f as k,g as v,d as m,k as S,c as P,h as w,i as N,j as c,l as q}from"./lifecycle-0dd9b729.js";import{S as A,i as C}from"./index-5c6b3333.js";import{$ as T}from"./runtime-ea3b2d3b.js";function U(o){let e,l,i=o[2]("page.profile.heading")+"",r,p,t,f,n,y,d,h;return{c(){e=_("h1"),l=_("span"),r=g(i),p=D(),t=new E(!1),f=D(),n=_("p"),y=g("("),d=new E(!1),h=g(")"),this.h()},l(a){e=b(a,"H1",{class:!0});var s=k(e);l=b(s,"SPAN",{class:!0});var H=k(l);r=v(H,i),H.forEach(m),p=S(s),t=P(s,!1),s.forEach(m),f=S(a),n=b(a,"P",{class:!0});var u=k(n);y=v(u,"("),d=P(u,!1),h=v(u,")"),u.forEach(m),this.h()},h(){w(l,"class","sr-only"),t.a=null,w(e,"class","h1 font-semibold text-4xl leading-tight"),d.a=h,w(n,"class","leading-normal my-1")},m(a,s){N(a,e,s),c(e,l),c(l,r),c(e,p),t.m(o[0],e),N(a,f,s),N(a,n,s),c(n,y),d.m(o[1],n),c(n,h)},p(a,[s]){s&4&&i!==(i=a[2]("page.profile.heading")+"")&&q(r,i),s&1&&t.p(a[0]),s&2&&d.p(a[1])},i:x,o:x,d(a){a&&(m(e),m(f),m(n))}}}function z(o,e,l){let i;j(o,T,t=>l(2,i=t));let{displayName:r=""}=e,{pronoun:p=""}=e;return o.$$set=t=>{"displayName"in t&&l(0,r=t.displayName),"pronoun"in t&&l(1,p=t.pronoun)},[r,p,i]}class B extends A{constructor(e){super(),C(this,e,z,U,V,{displayName:0,pronoun:1})}}B.__docgen={version:3,name:"DisplayName.svelte",data:[{keywords:[],visibility:"public",description:"Under which name shall the person be known?",name:"displayName",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""},{keywords:[],visibility:"public",description:"How to correctly address this person.",name:"pronoun",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{B as D};
|