Anvil/assets/Profile.stories-a63c0d35.js
André Jaenisch 7079767402
Updates
2024-02-20 15:10:19 +01:00

19 lines
2.2 KiB
JavaScript

import{a as d}from"./utils-09ff0c0e.js";import{S as p,i as u,c as f,a as _,m as g,t as y,b as w,d as v}from"./index-5c6b3333.js";import{P as $}from"./Profile-5f682b6e.js";import"./lifecycle-0dd9b729.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";import"./ZoomOut24-f5a025b3.js";import"./spread-8a54911c.js";import"./Avatar-2b9a3926.js";import"./BlockOrReport-e34e260e.js";import"./Created-7ea15c21.js";import"./DisplayName-634e31b8.js";function h(a){let t,n;return t=new $({props:{data:a[0]}}),{c(){f(t.$$.fragment)},l(e){_(t.$$.fragment,e)},m(e,o){g(t,e,o),n=!0},p(e,[o]){const s={};o&1&&(s.data=e[0]),t.$set(s)},i(e){n||(y(t.$$.fragment,e),n=!0)},o(e){w(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function D(a,t,n){let{data:e=null}=t;return a.$$set=o=>{"data"in o&&n(0,e=o.data)},[e]}class l extends p{constructor(t){super(),u(this,t,D,h,d,{data:0})}}l.__docgen={version:3,name:"Profile.svelte",data:[{keywords:[],visibility:"public",description:"Data populated by SvelteKit",name:"data",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"},defaultValue:null}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const C={title:"Pages/Profile",component:l,tags:["autodocs"],argTypes:{data:{controls:"object"}}},r={args:{data:{user:{avatar:"",created_at:new Date,created_at_formatted:function(){const a="en-US";return new Intl.DateTimeFormat(a).format(new Date)}(),created_with:"Anvil",display_name:"Jane Doe",instance:"domain.example",pronoun:"she/her",username:"jane_doe"}}}};var i,m,c;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`{
args: {
data: {
user: {
avatar: '',
created_at: new Date(),
created_at_formatted: function () {
const locale = 'en-US';
return new Intl.DateTimeFormat(locale).format(new Date());
}(),
created_with: 'Anvil',
display_name: 'Jane Doe',
instance: 'domain.example',
pronoun: 'she/her',
username: 'jane_doe'
}
}
}
}`,...(c=(m=r.parameters)==null?void 0:m.docs)==null?void 0:c.source}}};const E=["Plain"];export{r as Plain,E as __namedExportsOrder,C as default};