import{Sasb,casg,aasv,nasc}from"./index-DmiCujb-.js";import{easm,iask,d,aasf,tasS,HasD,fasu,hasp,jasw,casC,las_,masy}from"./lifecycle-u0QeOdKt.js";functionh(n){leta,e,t,l,o;return{c(){a=f("span"),e=S("created "),t=f("time"),l=newD(!1),this.h()},l(i){a=u(i,"SPAN",{});vars=p(a);e=w(s,"created "),t=u(s,"TIME",{datetime:!0});varr=p(t);l=C(r,!1),r.forEach(d),s.forEach(d),this.h()},h(){vari;l.a=null,_(t,"datetime",o=(i=n[0])==null?void0:i.toISOString())},m(i,s){k(i,a,s),y(a,e),y(a,t),l.m(n[1],t)},p(i,s){varr;s&2&&l.p(i[1]),s&1&&o!==(o=(r=i[0])==null?void0:r.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]}classHextendsb{constructor(a){super(),g(this,a,E,I,v,{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};