n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 3.32 kB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.13.4"}}catch(e){}}(),System.register(["./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./users.store-legacy-OKuN0qAC.js","./_baseOrderBy-legacy-PsQY_Pvh.js"],(function(e,t){var n,o,a,i,s,r,u,g,f,d,b,l,c,A,m,T,x,y;function p(e,t){if(0===t)return["just now","right now"];var n=d[Math.floor(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]}function h(e,t){if(0===t)return["刚刚","片刻后"];var n=b[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}function w(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}return{setters:[function(e){n=e.$,o=e.E,a=e.K,i=e.N,s=e.S,r=e.Sn},function(e){u=e.bt},function(e){g=e.ha},function(e){f=e.r}],execute:function(){try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(D=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[D]="deff5c5f-e9d8-4b26-909a-1f594fd9fbca",t._sentryDebugIdIdentifier="sentry-dbid-deff5c5f-e9d8-4b26-909a-1f594fd9fbca")}catch(t){}var t,D;d=["second","minute","hour","day","week","month","year"],b=["秒","分钟","小时","天","周","个月","年"],l={},A=function(e){return l[e]||l.en_US},m=[60,60,24,7,365/7/12,12],T=function(e,t,n){return function(e,t){for(var n=e<0?1:0,o=e=Math.abs(e),a=0;e>=m[a]&&a<m.length;a++)e/=m[a];return(e=Math.floor(e))>(0==(a*=2)?9:1)&&(a+=1),t(e,a,o)[n].replace("%s",e.toString())}(function(e,t){return(+(t?w(t):new Date)-+w(e))/1e3}(e,n&&n.relativeDate),A(t))},(c=function(e,t){l[e]=t})("en_US",p),c("zh_CN",h),x=["title"],y=i({__name:"TimeAgo",props:{date:{},capitalize:{type:Boolean,default:!1}},setup(e){const t=e,i=f(),d=u(),b=s((()=>i.defaultLocale)),l=s((()=>{const e=T(t.date,b.value);return t.capitalize?e:e.toLowerCase()})),A=s((()=>g(new Date(t.date).getTime())));function m(e,t){return[[d.baseText("timeAgo.justNow"),d.baseText("timeAgo.rightNow")],[d.baseText("timeAgo.justNow"),d.baseText("timeAgo.rightNow")],[d.baseText("timeAgo.oneMinuteAgo"),d.baseText("timeAgo.inOneMinute")],[d.baseText("timeAgo.minutesAgo"),d.baseText("timeAgo.inMinutes")],[d.baseText("timeAgo.oneHourAgo"),d.baseText("timeAgo.inOneHour")],[d.baseText("timeAgo.hoursAgo"),d.baseText("timeAgo.inHours")],[d.baseText("timeAgo.oneDayAgo"),d.baseText("timeAgo.inOneDay")],[d.baseText("timeAgo.daysAgo"),d.baseText("timeAgo.inDays")],[d.baseText("timeAgo.oneWeekAgo"),d.baseText("timeAgo.inOneWeek")],[d.baseText("timeAgo.weeksAgo"),d.baseText("timeAgo.inWeeks")],[d.baseText("timeAgo.oneMonthAgo"),d.baseText("timeAgo.inOneMonth")],[d.baseText("timeAgo.monthsAgo"),d.baseText("timeAgo.inMonths")],[d.baseText("timeAgo.oneYearAgo"),d.baseText("timeAgo.inOneYear")],[d.baseText("timeAgo.yearsAgo"),d.baseText("timeAgo.inYears")]][t]}return a((()=>{c(b.value,m)})),(e,t)=>(n(),o("span",{title:A.value},r(l.value),9,x))}}),e("t",y)}}}));
//# sourceMappingURL=TimeAgo-legacy-DuWY6_ss.js.map