import{aasb,nasc}from"./utils-AUSSiI9x.js";import{easm,iask,d,aasf,tasg,Hasv,fasp,hasu,jasS,casD,las_,masy}from"./lifecycle-DZHCWxcx.js";import{Sasw,iasC}from"./index-CRVYNev9.js";functionh(n){leta,e,t,l,o;return{c(){a=f("span"),e=g("created "),t=f("time"),l=newv(!1),this.h()},l(i){a=p(i,"SPAN",{});varr=u(a);e=S(r,"created "),t=p(r,"TIME",{datetime:!0});vars=u(t);l=D(s,!1),s.forEach(d),r.forEach(d),this.h()},h(){vari;l.a=null,_(t,"datetime",o=(i=n[0])==null?void0:i.toISOString())},m(i,r){k(i,a,r),y(a,e),y(a,t),l.m(n[1],t)},p(i,r){vars;r&2&&l.p(i[1]),r&1&&o!==(o=(s=i[0])==null?void0:s.toISOString())&&_(t,"datetime",o)},d(i){i&&d(a)}}}functionI(n){leta,e=n[0]&&n[1]&&h(n);return{c(){e&&e.c(),a=m()},l(t){e&&e.l(t),a=m()},m(t,l){e&&e.m(t,l),k(t,a,l)},p(t,[l]){t[0]&&t[1]?e?e.p(t,l):(e=h(t),e.c(),e.m(a.parentNode,a)):e&&(e.d(1),e=null)},i:c,o:c,d(t){t&&d(a),e&&e.d(t)}}}functionE(n,a,e){lett,{created_at:l=null}=a,{locale:o="en"}=a;returnn.$$set=i=>{"created_at"ini&&e(0,l=i.created_at),"locale"ini&&e(2,o=i.locale)},n.$$.update=()=>{n.$$.dirty&5&&e(1,t=newIntl.DateTimeFormat(o).format(l))},[l,t,o]}classHextendsw{constructor(a){super(),C(this,a,E,I,b,{created_at:0,locale:2})}}H.__docgen={version:3,name:"Created.svelte",data:[{keywords:[{name:"type",description:"{Date | null}"}],visibility:"public",description:"Date object for created time.",name:"created_at",kind:"let",static:!1,readonly:!1,type:{kind:"union",text:"Date | null",type:[{kind:"type",text:"Date",type:"Date"},{kind:"type",text:"null",type:"null"}]},defaultValue:null},{keywords:[],visibility:"public",description:"Locale to format the datetime according to.",name:"locale",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:"en"}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{HasC};