Anvil/assets/Created-e62609b4.js
André Jaenisch e5b80964ed
Updates
2024-02-23 14:08:28 +01:00

1 line
1.6 KiB
JavaScript

import{a as b,n as o}from"./utils-09ff0c0e.js";import{e as c,i as y,d as l,a as f,t as k,H as g,b as m,f as _,g as v,c as j,h as p,j as u}from"./lifecycle-9898a056.js";import{S as w,i as C}from"./index-d94d5794.js";function h(r){let a,e,t,i;return{c(){a=f("span"),e=k("created "),t=f("date"),i=new g(!1),this.h()},l(n){a=m(n,"SPAN",{});var d=_(a);e=v(d,"created "),t=m(d,"DATE",{datetime:!0});var s=_(t);i=j(s,!1),s.forEach(l),d.forEach(l),this.h()},h(){i.a=null,p(t,"datetime",r[1])},m(n,d){y(n,a,d),u(a,e),u(a,t),i.m(r[0],t)},p(n,d){d&1&&i.p(n[0]),d&2&&p(t,"datetime",n[1])},d(n){n&&l(a)}}}function E(r){let a,e=r[1]&&r[0]&&h(r);return{c(){e&&e.c(),a=c()},l(t){e&&e.l(t),a=c()},m(t,i){e&&e.m(t,i),y(t,a,i)},p(t,[i]){t[1]&&t[0]?e?e.p(t,i):(e=h(t),e.c(),e.m(a.parentNode,a)):e&&(e.d(1),e=null)},i:o,o,d(t){t&&l(a),e&&e.d(t)}}}function H(r,a,e){let{created_at_formatted:t=""}=a,{created_at:i=null}=a;return r.$$set=n=>{"created_at_formatted"in n&&e(0,t=n.created_at_formatted),"created_at"in n&&e(1,i=n.created_at)},[t,i]}class S extends w{constructor(a){super(),C(this,a,H,E,b,{created_at_formatted:0,created_at:1})}}S.__docgen={version:3,name:"Created.svelte",data:[{keywords:[],visibility:"public",description:"Formatted datetime according to the locale.",name:"created_at_formatted",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""},{keywords:[],visibility:"public",description:"Date object for created time.",name:"created_at",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"},defaultValue:null}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{S as C};