PageSourceSearch

https://altar7.com/assets/MessagesPage-CEUO4-Dj.js

js altar7.com collected 2026-10-03 00:28:35 UTC 30,457 bytes, 1 lines download raw bytes

vendor: 5,040 bytes, line 1
1import{y as _,Z as V,r as D,u as B,a4 as O,j as s,au as I,_ as N,a0 as T,aq as S,aE as G,I as z,a7 as Y,a6 as k}from"./index-CsgrPEHw.js";import{A as J,b as K,c as U,d as Z,e as ee,f as te,g as ae,h as ne}from"./alert-dialog-Bv2SycWN.js";import{T as re}from"./trash-2-CLjm4PD-.js";const oe=_("MailOpen",[["path",{d:"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z",key:"1jhwl8"}],["path",{d:"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10",key:"1qfld7"}]]);function f(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function x(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const A=6048e5,ie=864e5;let se={};function W(){return se}function M(e,t){const a=W(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,r=f(e),i=r.getDay(),c=(i<n?7:0)+i-n;return r.setDate(r.getDate()-c),r.setHours(0,0,0,0),r}function j(e){return M(e,{weekStartsOn:1})}function L(e){const t=f(e),a=t.getFullYear(),n=x(e,0);n.setFullYear(a+1,0,4),n.setHours(0,0,0,0);const r=j(n),i=x(e,0);i.setFullYear(a,0,4),i.setHours(0,0,0,0);const c=j(i);return t.getTime()>=r.getTime()?a+1:t.getTime()>=c.getTime()?a:a-1}function C(e){const t=f(e);return t.setHours(0,0,0,0),t}function E(e){const t=f(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function de(e,t){const a=C(e),n=C(t),r=+a-E(a),i=+n-E(n);return Math.round((r-i)/ie)}function ce(e){const t=L(e),a=x(e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),j(a)}function ue(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function le(e){if(!ue(e)&&typeof e!="number")return!1;const t=f(e);return!isNaN(Number(t))}function me(e){const t=f(e),a=x(e,0);return a.setFullYear(t.getFullYear(),0,1),a.setHours(0,0,0,0),a}const he={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},fe=(e,t,a)=>{let n;const r=he[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),a?.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};function P(e){return(t={})=>{const a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}const ge={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},we={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},be={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ye={date:P({formats:ge,defaultWidth:"full"}),time:P({formats:we,defaultWidth:"full"}),dateTime:P({formats:be,defaultWidth:"full"})},pe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xe=(e,t,a,n)=>pe[e];function g(e){return(t,a)=>{const n=a?.context?String(a.context):"standalone";let r;if(n==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,l=a?.width?String(a.width):c;r=e.formattingValues[l]||e.formattingValues[c]}else{const c=e.defaultWidth,l=a?.width?String(a.width):e.defaultWidth;r=e.values[l]||e.values[c]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}const ve={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Pe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Me={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ke={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]},je={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},We={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},De=(e,t)=>{const a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Oe={ordinalNumber:De,era:g({values:ve,defaultWidth:"wide"}),quarter:g({values:Pe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:g({values:Me,defaultWidth:"wide"}),day:g({values:ke,defaultWidth:"wide"}),dayPeriod:g({values:je,defaultWidth:"wide",formattingValues:We,defaultFormattingWidth:"wide"})};function w(e){return(t,a={})=>{const n=a.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const c=i[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(l)?Te(l,o=>o.test(c)):Ne(l,o=>o.test(c));let h;h=e.valueCallback?e.valueCallback(m):m,h=a.valueCallback?a.valueCallback(h):h;const u=t.slice(c.length);return{value:h,rest:u}}}function Ne(e,t){for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function Te(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function Q(e){return(t,a={})=>{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],i=t.match(e.parsePattern);if(!i)return null;let c=e.valueCallback?e.valueCallback(i[0]):i[0];c=a.valueCallback?a.valueCallback(c):c;const l=t.slice(r.length);return{value:c,rest:l}}}const Se=/^(\d+)(th|st|nd|rd)?/i,Ye=/\d+/i,Ce={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ee={any:[/^b/i,/^(a|c)/i]},$e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fe={any:[/1/i,/2/i,/3/i,/4/i]},qe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},He={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ae={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Le={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Qe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Xe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Re={ordinalNumber:Q({matchPattern:Se,parsePattern:Ye,valueCallback:e=>parseInt(e,10)}),era:w({matchPatterns:Ce,defaultMatchWidth:"wide",parsePatterns:Ee,defaultParseWidth:"any"}),quarter:w({matchPatterns:$e,defaultMatchWidth:"wide",parsePatterns:Fe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:w({matchPatterns:qe,defaultMatchWidth:"wide",parsePatterns:He,defaultParseWidth:"any"}),day:w({matchPatterns:Ae,defaultMatchWidth:"wide",parsePatterns:Le,defaultParseWidth:"any"}),dayPeriod:w({matchPatterns:Qe,defaultMatchWidth:"any",parsePatterns:Xe,defaultParseWidth:"any"})},_e={code:"en-US",formatDistance:fe,formatLong:ye,formatRelative:xe,localize:Oe,match:Re,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ve(e){const t=f(e);return de(t,me(t))+1}function Be(e){const t=f(e),a=+j(t)-+ce(t);return Math.round(a/A)+1}function X(e,t){const a=f(e),n=a.getFullYear(),r=W(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,c=x(e,0);c.setFullYear(n+1,0,i),c.setHours(0,0,0,0);const l=M(c,t),m=x(e,0);m.setFullYear(n,0,i),m.setHours(0,0,0,0);const h=M(m,t);return a.getTime()>=l.getTime()?n+1:a.getTime()>=h.getTime()?n:n-1}function Ie(e,t){const a=W(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,r=X(e,t),i=x(e,0);return i.setFullYear(r,0,n),i.setHours(0,0,0,0),M(i,t)}function Ge(e,t){const a=f(e),n=+M(a,t)-+Ie(a,t);return Math.round(n/A)+1}function d(e,t){const a=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return a+n}const b={y(e,t){const a=e.getFullYear(),n=a>0?a:1-a;return d(t==="yy"?n%100:n,t.length)},M(e,t){const a=e.getMonth();return t==="M"?String(a+1):d(a+1,2)},d(e,t){return d(e.getDate(),t.length)},a(e,t){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];default:return a==="am"?"a.m.":"p.m."}},h(e,t){return d(e.getHours()%12||12,t.length)},H(e,t){return d(e.getHours(),t.length)},m(e,t){return d(e.getMinutes(),t.length)},s(e,t){return d(e.getSeconds(),t.length)},S(e,t){const a=t.length,n=e.getMilliseconds(),r=Math.trunc(n*Math.pow(10,a-3));return d(r,t.length)}},v={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$={G:function(e,t,a){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){const n=e.getFullYear(),r=n>0?n:1-n;return a.ordinalNumber(r,{unit:"year"})}return b.y(e,t)},Y:function(e,t,a,n){const r=X(e,n),i=r>0?r:1-r;if(t==="YY"){const c=i%100;return d(c,2)}return t==="Yo"?a.ordinalNumber(i,{unit:"year"}):d(i,t.length)},R:function(e,t){const a=L(e);return d(a,t.length)},u:function(e,t){const a=e.getFullYear();return d(a,t.length)},Q:function(e,t,a){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return d(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return d(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){const n=e.getMonth();switch(t){case"M":case"MM":return b.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return d(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){const r=Ge(e,n);return t==="wo"?a.ordinalNumber(r,{unit:"week"}):d(r,t.length)},I:function(e,t,a){const n=Be(e);return t==="Io"?a.ordinalNumber(n,{unit:"week"}):d(n,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):b.d(e,t)},D:function(e,t,a){const n=Ve(e);return t==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):d(n,t.length)},E:function(e,t,a){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){const r=e.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return d(i,2);case"eo":return a.ordinalNumber(i,{unit:"day"});case"eee":return a.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(r,{width:"short",context:"formatting"});default:return a.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){const r=e.getDay(),i=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return d(i,t.length);case"co":return a.ordinalNumber(i,{unit:"day"});case"ccc":return a.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(r,{width:"narrow",context:"standalone"});case"cccccc":return a.day(r,{width:"short",context:"standalone"});default:return a.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,a){const n=e.getDay(),r=n===0?7:n;switch(t){case"i":return String(r);case"ii":return d(r,t.length);case"io":return a.ordinalNumber(r,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,a){const n=e.getHours();let r;switch(n===12?r=v.noon:n===0?r=v.midnight:r=n/12>
vendor: 4,284 bytes, line 1
1=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,a){const n=e.getHours();let r;switch(n>=17?r=v.evening:n>=12?r=v.afternoon:n>=4?r=v.morning:r=v.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(r,{width:"narrow",context:"formatting"});default:return a.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return b.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):b.H(e,t)},K:function(e,t,a){const n=e.getHours()%12;return t==="Ko"?a.ordinalNumber(n,{unit:"hour"}):d(n,t.length)},k:function(e,t,a){let n=e.getHours();return n===0&&(n=24),t==="ko"?a.ordinalNumber(n,{unit:"hour"}):d(n,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):b.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):b.s(e,t)},S:function(e,t){return b.S(e,t)},X:function(e,t,a){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return q(n);case"XXXX":case"XX":return p(n);default:return p(n,":")}},x:function(e,t,a){const n=e.getTimezoneOffset();switch(t){case"x":return q(n);case"xxxx":case"xx":return p(n);default:return p(n,":")}},O:function(e,t,a){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+F(n,":");default:return"GMT"+p(n,":")}},z:function(e,t,a){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+F(n,":");default:return"GMT"+p(n,":")}},t:function(e,t,a){const n=Math.trunc(e.getTime()/1e3);return d(n,t.length)},T:function(e,t,a){const n=e.getTime();return d(n,t.length)}};function F(e,t=""){const a=e>0?"-":"+",n=Math.abs(e),r=Math.trunc(n/60),i=n%60;return i===0?a+String(r):a+String(r)+t+d(i,2)}function q(e,t){return e%60===0?(e>0?"-":"+")+d(Math.abs(e)/60,2):p(e,t)}function p(e,t=""){const a=e>0?"-":"+",n=Math.abs(e),r=d(Math.trunc(n/60),2),i=d(n%60,2);return a+r+t+i}const H=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},R=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ze=(e,t)=>{const a=e.match(/(P+)(p+)?/)||[],n=a[1],r=a[2];if(!r)return H(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",H(n,t)).replace("{{time}}",R(r,t))},Je={p:R,P:ze},Ke=/^D+$/,Ue=/^Y+$/,Ze=["D","DD","YY","YYYY"];function et(e){return Ke.test(e)}function tt(e){return Ue.test(e)}function at(e,t,a){const n=nt(e,t,a);if(console.warn(n),Ze.includes(e))throw new RangeError(n)}function nt(e,t,a){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const rt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ot=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,it=/^'([^]*?)'?$/,st=/''/g,dt=/[a-zA-Z]/;function ct(e,t,a){const n=W(),r=a?.locale??n.locale??_e,i=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,c=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=f(e);if(!le(l))throw new RangeError("Invalid time value");let m=t.match(ot).map(u=>{const o=u[0];if(o==="p"||o==="P"){const y=Je[o];return y(u,r.formatLong)}return u}).join("").match(rt).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const o=u[0];if(o==="'")return{isToken:!1,value:ut(u)};if($[o])return{isToken:!0,value:u};
1if(o.match(dt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return{isToken:!1,value:u}});r.localize.preprocessor&&(m=r.localize.preprocessor(l,m));const h={firstWeekContainsDate:i,weekStartsOn:c,locale:r};return m.map(u=>{if(!u.isToken)return u.value;const o=u.value;(!a?.useAdditionalWeekYearTokens&&tt(o)||!a?.useAdditionalDayOfYearTokens&&et(o))&&at(o,t,String(e));const y=$[o[0]];return y(l,o,r.localize,h)}).join("")}function ut(e){const t=e.match(it);return t?t[1].replace(st,"'"):e}const lt={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},mt=(e,t,a)=>{let n;const r=lt[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),a?.addSuffix?a.comparison&&a.comparison>0?"en "+n:"hace "+n:n},ht={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},ft={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},gt={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wt={date:P({formats:ht,defaultWidth:"full"}),time:P({formats:ft,defaultWidth:"full"}),dateTime:P({formats:gt,defaultWidth:"full"})},bt={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},yt={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},pt=(e,t,a,n)=>t.getHours()!==1?yt[e]:bt[e],xt={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},vt={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Pt={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},Mt={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},kt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},jt={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},Wt=(e,t)=>Number(e)+"º",Dt={ordinalNumber:Wt,era:g({values:xt,defaultWidth:"wide"}),quarter:g({values:vt,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:g({values:Pt,defaultWidth:"wide"}),day:g({values:Mt,defaultWidth:"wide"}),dayPeriod:g({values:kt,defaultWidth:"wide",formattingValues:jt,defaultFormattingWidth:"wide"})},Ot=/^(\d+)(º)?/i,Nt=/\d+/i,Tt={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|de
1spu[eé]s de cristo|era com[uú]n)/i},St={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},Yt={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Ct={any:[/1/i,/2/i,/3/i,/4/i]},Et={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},$t={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},Ft={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},qt={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},Ht={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},At={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},Lt={ordinalNumber:Q({matchPattern:Ot,parsePattern:Nt,valueCallback:function(e){return parseInt(e,10)}}),era:w({matchPatterns:Tt,defaultMatchWidth:"wide",parsePatterns:St,defaultParseWidth:"any"}),quarter:w({matchPatterns:Yt,defaultMatchWidth:"wide",parsePatterns:Ct,defaultParseWidth:"any",valueCallback:e=>e+1}),month:w({matchPatterns:Et,defaultMatchWidth:"wide",parsePatterns:$t,defaultParseWidth:"any"}),day:w({matchPatterns:Ft,defaultMatchWidth:"wide",parsePatterns:qt,defaultParseWidth:"any"}),dayPeriod:w({matchPatterns:Ht,defaultMatchWidth:"any",parsePatterns:At,defaultParseWidth:"any"})},Qt={code:"es",formatDistance:mt,formatLong:wt,formatRelative:pt,localize:Dt,match:Lt,options:{weekStartsOn:1,firstWeekContainsDate:1}};function Vt(){const{toast:e}=V(),[t,a]=D.useState(null),[n,r]=D.useState(null),{data:i=[],isLoading:c}=B({queryKey:["/api/admin/messages"]}),l=O({mutationFn:o=>Y("PATCH",`/api/admin/messages/${o}/read`),onSuccess:()=>{k.invalidateQueries({queryKey:["/api/admin/messages"]}),k.invalidateQueries({queryKey:["/api/dashboard/stats"]})}}),m=O({mutationFn:o=>Y("DELETE",`/api/admin/messages/${o}`),onSuccess:()=>{k.invalidateQueries({queryKey:["/api/admin/messages"]}),k.invalidateQueries({queryKey:["/api/dashboard/stats"]}),e({title:"Mensaje eliminado"}),a(null)}}),h=o=>{n===o.id?r(null):(r(o.id),o.read||l.mutate(o.id))},u=i.filter(o=>!o.read).length;return c?s.jsx("div",{className:"flex items-center justify-center py-12","data-testid":"messages-loading",children:s.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-[#ffb023]"})}):s.jsxs("div",{className:"space-y-6","data-testid":"messages-page",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("h1",{className:"text-2xl font-bold","data-testid":"text-messages-title",children:"Mensajes"}),u>0&&s.jsxs(I,{variant:"destructive","data-testid":"badge-unread-count",children:[u," sin leer"]})]}),s.jsxs("span",{className:"text-sm text-muted-foreground","data-testid":"text-total-messages",children:[i.length," mensaje",i.length!==1?"s":""]})]}),i.length===0?s.jsx(N,{children:s.jsxs(T,{className:"py-12 text-center text-muted-foreground",children:[s.jsx(S,{className:"h-12 w-12 mx-auto mb-4 opacity-30"}),s.jsx("p",{children:"No hay mensajes"})]})}):s.jsx("div",{className:"space-y-3",children:i.map(o=>s.jsx(N,{className:`cursor-pointer transition-colors ${o.read?"":"bg-amber-50/50 dark:bg-amber-900/10"}`,"data-testid":`card-message-${o.id}`,onClick:()=>h(o),children:s.jsxs(T,{className:"p-4",children:[s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{className:"flex items-start gap-3 min-w-0 flex-1",children:[s.jsx("div",{className:"mt-0.5",children:o.read?s.jsx(oe,{className:"h-5 w-5 text-muted-foreground"}):s.jsx(S,{className:"h-5 w-5 text-[#ffb023]"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("span",{className:`font-semibold ${o.read?"text-muted-foreground":"text-foreground"}`,"data-testid":`text-sender-${o.id}`,children:o.name}),s.jsxs("span",{className:"text-sm text-muted-foreground","data-testid":`text-email-${o.id}`,children:["<",o.email,">"]})]}),s.jsx("p",{className:`text-sm mt-0.5 ${o.read?"text-muted-foreground":"font-medium"}`,"data-testid":`text-subject-${o.id}`,children:o.subject}),n!==o.id&&s.jsxs("p",{className:"text-xs text-muted-foreground mt-1 truncate","data-testid":`text-preview-${o.id}`,children:[o.message.substring(0,120),o.message.length>120?"...":""]})]})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[s.jsxs("span",{className:"text-xs text-muted-foreground flex items-center gap-1","data-testid":`text-date-${o.id}`,children:[s.jsx(G,{className:"h-3 w-3"}),o.createdAt?ct(new Date(o.createdAt),"d MMM yyyy",{locale:Qt}):""]}),s.jsx(z,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground","data-testid":`button-delete-${o.id}`,onClick:y=>{y.stopPropagation(),a(o.id)},children:s.jsx(re,{className:"h-4 w-4"})})]})]}),n===o.id&&s.jsxs("div",{className:"mt-4 pl-8 border-t pt-4","data-testid":`text-body-${o.id}`,children:[s.jsx("p",{className:"text-sm whitespace-pre-wrap",children:o.message}),s.jsx("div",{className:"mt-3",children:s.jsx("a",{href:`mailto:${o.email}?subject=Re: ${o.subject}`,className:"text-sm text-[#ffb023] hover:underline","data-testid":`link-reply-${o.id}`,onClick:y=>y.stopPropagation(),children:"Responder por email"})})]})]})},o.id))}),s.jsx(J,{open:t!==null,onOpenChange:()=>a(null),children:s.jsxs(K,{children:[s.jsxs(U,{children:[s.jsx(Z,{children:"¿Eliminar mensaje?"}),s.jsx(ee,{children:"Esta acción no se puede deshacer."})]}),s.jsxs(te,{children:[s.jsx(ae,{children:"Cancelar"}),s.jsx(ne,{onClick:()=>t&&m.mutate(t),className:"bg-destructive text-destructive-foreground","data-testid":"button-confirm-delete",children:"Eliminar"})]})]})})]})}export{Vt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.