Anvil/assets/Profile.stories-BHOkzrS3.js
André Jaenisch e545bd2756
Updates
2024-07-22 13:59:31 +02:00

19 lines
2.4 KiB
JavaScript

import{S as p,i as d,s as u,c as f,a as _,m as g,t as y,b as w,d as v}from"./index-7XOhh2kt.js";import{P as $}from"./Profile-BEei22Yb.js";import"./lifecycle-Dpe71s4v.js";import"./each-iA4Nym3y.js";import"./runtime-BQCs4yl7.js";import"./index-CGCTTfAD.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";import"./ZoomOut24-Cmc7Jjj8.js";import"./spread-CgU5AtxT.js";import"./Avatar-B31sakrc.js";import"./XPro-R6-17FUT.js";import"./globals-D0QH3NT1.js";import"./BlockOrReport-gP_ovLJD.js";import"./Created-BukJ6R8Y.js";import"./DisplayName-CEs0V3-x.js";import"./History-B1FrvVvb.js";import"./CommitBody-pbF6AUXn.js";import"./CommitDate-rn2hIMQp.js";import"./Project-E8T-J5XL.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 i={};o&1&&(i.data=e[0]),t.$set(i)},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(),d(this,t,D,h,u,{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 G={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 s,m,c;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.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 H=["Plain"];export{r as Plain,H as __namedExportsOrder,G as default};