import{S as H,c as P,a as V,n as w,g as q}from"./index-C1iGU3rq.js";import{a as _,t as y,b as j,e as D,f as b,h as k,j as h,d as c,k as E,l as g,i as u,m,n as N}from"./lifecycle-B8I1Hqtw.js";import{$ as A}from"./runtime-CtT-6RLV.js";function S(l){let e,n,o,p;return{c(){e=_("p"),n=y("("),o=y(l[2]),p=y(")"),this.h()},l(a){e=b(a,"P",{class:!0});var s=k(e);n=h(s,"("),o=h(s,l[2]),p=h(s,")"),s.forEach(c),this.h()},h(){g(e,"class","leading-normal my-1")},m(a,s){u(a,e,s),m(e,n),m(e,o),m(e,p)},p(a,s){s&4&&N(o,a[2])},d(a){a&&c(e)}}}function C(l){let e,n,o=l[3](l[1].heading)+"",p,a,s,r,f,i=l[2]&&S(l);return{c(){e=_("h1"),n=_("span"),p=y(o),a=j(),s=y(l[0]),r=j(),i&&i.c(),f=D(),this.h()},l(t){e=b(t,"H1",{class:!0});var d=k(e);n=b(d,"SPAN",{class:!0});var v=k(n);p=h(v,o),v.forEach(c),a=E(d),s=h(d,l[0]),d.forEach(c),r=E(t),i&&i.l(t),f=D(),this.h()},h(){g(n,"class","sr-only"),g(e,"class","h1 font-semibold text-4xl leading-tight")},m(t,d){u(t,e,d),m(e,n),m(n,p),m(e,a),m(e,s),u(t,r,d),i&&i.m(t,d),u(t,f,d)},p(t,[d]){d&10&&o!==(o=t[3](t[1].heading)+"")&&N(p,o),d&1&&N(s,t[0]),t[2]?i?i.p(t,d):(i=S(t),i.c(),i.m(f.parentNode,f)):i&&(i.d(1),i=null)},i:w,o:w,d(t){t&&(c(e),c(r),c(f)),i&&i.d(t)}}}function T(l,e,n){let o;q(l,A,r=>n(3,o=r));let{displayName:p=""}=e,{i18n:a={heading:""}}=e,{pronoun:s=""}=e;return l.$$set=r=>{"displayName"in r&&n(0,p=r.displayName),"i18n"in r&&n(1,a=r.i18n),"pronoun"in r&&n(2,s=r.pronoun)},[p,a,s,o]}class U extends H{constructor(e){super(),P(this,e,T,C,V,{displayName:0,i18n:1,pronoun:2})}}U.__docgen={version:3,name:"DisplayName.svelte",data:[{keywords:[{name:"type",description:"{string}"}],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:"Translation keys.",name:"i18n",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{keywords:[{name:"type",description:"{string}"}],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{U as D};