Anvil/assets/DisplayName-85d2504f.js
André Jaenisch 9228a2bea3
Updates
2024-03-14 19:56:07 +01:00

1 line
2.3 KiB
JavaScript

import{a as H,n as w,c as P}from"./utils-6ebe0a8e.js";import{a as _,t as y,l as j,e as D,b,f as k,h,d as m,m as E,j as g,i as u,k as c,n as N}from"./lifecycle-cafe499b.js";import{S as V,i as q}from"./index-3a0d73e3.js";import{$ as A}from"./runtime-a5210d67.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 i=k(e);n=h(i,"("),o=h(i,l[2]),p=h(i,")"),i.forEach(m),this.h()},h(){g(e,"class","leading-normal my-1")},m(a,i){u(a,e,i),c(e,n),c(e,o),c(e,p)},p(a,i){i&4&&N(o,a[2])},d(a){a&&m(e)}}}function C(l){let e,n,o=l[3](l[1].heading)+"",p,a,i,r,f,s=l[2]&&S(l);return{c(){e=_("h1"),n=_("span"),p=y(o),a=j(),i=y(l[0]),r=j(),s&&s.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(m),a=E(d),i=h(d,l[0]),d.forEach(m),r=E(t),s&&s.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),c(e,n),c(n,p),c(e,a),c(e,i),u(t,r,d),s&&s.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(i,t[0]),t[2]?s?s.p(t,d):(s=S(t),s.c(),s.m(f.parentNode,f)):s&&(s.d(1),s=null)},i:w,o:w,d(t){t&&(m(e),m(r),m(f)),s&&s.d(t)}}}function T(l,e,n){let o;P(l,A,r=>n(3,o=r));let{displayName:p=""}=e,{i18n:a={heading:""}}=e,{pronoun:i=""}=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,i=r.pronoun)},[p,a,i,o]}class U extends V{constructor(e){super(),q(this,e,T,C,H,{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};