Anvil/assets/DisplayName-0aad4912.js
André Jaenisch e5b80964ed
Updates
2024-02-23 14:08:28 +01:00

1 line
1.8 KiB
JavaScript

import{a as P,n as S,c as V}from"./utils-09ff0c0e.js";import{a as b,t as c,s as x,b as k,f as v,g as f,d as m,k as H,h as N,i as w,j as p,l as D}from"./lifecycle-9898a056.js";import{S as j,i as q}from"./index-d94d5794.js";import{$ as A}from"./runtime-ea3b2d3b.js";function C(i){let e,n,o=i[2]("page.profile.heading")+"",r,d,s,h,l,_,u,g;return{c(){e=b("h1"),n=b("span"),r=c(o),d=x(),s=c(i[0]),h=x(),l=b("p"),_=c("("),u=c(i[1]),g=c(")"),this.h()},l(t){e=k(t,"H1",{class:!0});var a=v(e);n=k(a,"SPAN",{class:!0});var E=v(n);r=f(E,o),E.forEach(m),d=H(a),s=f(a,i[0]),a.forEach(m),h=H(t),l=k(t,"P",{class:!0});var y=v(l);_=f(y,"("),u=f(y,i[1]),g=f(y,")"),y.forEach(m),this.h()},h(){N(n,"class","sr-only"),N(e,"class","h1 font-semibold text-4xl leading-tight"),N(l,"class","leading-normal my-1")},m(t,a){w(t,e,a),p(e,n),p(n,r),p(e,d),p(e,s),w(t,h,a),w(t,l,a),p(l,_),p(l,u),p(l,g)},p(t,[a]){a&4&&o!==(o=t[2]("page.profile.heading")+"")&&D(r,o),a&1&&D(s,t[0]),a&2&&D(u,t[1])},i:S,o:S,d(t){t&&(m(e),m(h),m(l))}}}function U(i,e,n){let o;V(i,A,s=>n(2,o=s));let{displayName:r=""}=e,{pronoun:d=""}=e;return i.$$set=s=>{"displayName"in s&&n(0,r=s.displayName),"pronoun"in s&&n(1,d=s.pronoun)},[r,d,o]}class z extends j{constructor(e){super(),q(this,e,U,C,P,{displayName:0,pronoun:1})}}z.__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{z as D};