Anvil/assets/Profile.stories-B39mtrtA.js

20 lines
2.6 KiB
JavaScript
Raw Normal View History

2024-07-27 14:18:38 +02:00
import{S as l,c as d,a as u,d as f,e as _,m as g,b as y,t as w,f as v}from"./index-CP70Tq58.js";import{P as $}from"./Profile-CienB8Eu.js";import"./lifecycle-D_bIUHQK.js";import"./each-C4g42ehH.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";import"./ZoomOut24-450rB1Ps.js";import"./spread-CgU5AtxT.js";import"./Avatar-CaS7JzBb.js";import"./XPro-_Ll7JVYJ.js";import"./globals-D0QH3NT1.js";import"./BlockOrReport-Ba6EyyOa.js";import"./Created-TehUZe-O.js";import"./DisplayName-CjT3AqU3.js";import"./History-BuVIB1eV.js";import"./CommitBody-FH4xpO6b.js";import"./CommitDate-19ChJWCX.js";import"./MainMenuActions-Dk-swOe-.js";import"./MainMenuSummary-B5TGP2kT.js";import"./popup-BXRymj07.js";import"./OverlayAvatar-D80G8lIP.js";import"./MainMenuDetails-CM25VkFu.js";import"./Project-DKd8PCcN.js";function h(a){let e,n;return e=new $({props:{data:a[0]}}),{c(){f(e.$$.fragment)},l(t){_(e.$$.fragment,t)},m(t,o){g(e,t,o),n=!0},p(t,[o]){const i={};o&1&&(i.data=t[0]),e.$set(i)},i(t){n||(y(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){v(e,t)}}}function D(a,e,n){let{data:t=null}=e;return a.$$set=o=>{"data"in o&&n(0,t=o.data)},[t]}class c extends l{constructor(e){super(),d(this,e,D,h,u,{data:0})}}c.__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 Q={title:"Pages/Profile",component:c,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,p;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'
}
}
}
}`,...(p=(m=r.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};const R=["Plain"];export{r as Plain,R as __namedExportsOrder,Q as default};