@pivotfinancialtechnologies/admin-frontend-blueprint-template 0.0.3-dev.10 → 0.0.3-dev.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,62 +0,0 @@
1
- import { j as e } from "./jsx-runtime-gfdvceKf.js";
2
- import { useState as d, useEffect as m } from "react";
3
- import { Classes as a, Colors as c, Switch as u, Navbar as h, NavbarGroup as r, NavbarHeading as x, PopoverNext as b, Button as j, Menu as g, MenuItem as i, MenuDivider as p } from "@blueprintjs/core";
4
- const f = () => {
5
- const [s, n] = d(() => {
6
- if (typeof window > "u")
7
- return !1;
8
- try {
9
- return window.localStorage.getItem("theme") === "dark";
10
- } catch {
11
- return !1;
12
- }
13
- }), o = (t) => {
14
- document.body.classList.toggle(a.DARK, t), document.body.style.backgroundColor = t ? c.DARK_GRAY3 : c.LIGHT_GRAY5;
15
- try {
16
- window.localStorage.setItem("theme", t ? "dark" : "light");
17
- } catch {
18
- }
19
- n(t);
20
- };
21
- return m(() => {
22
- o(s);
23
- const t = new MutationObserver(() => {
24
- const l = document.body.classList.contains(a.DARK);
25
- n(l);
26
- });
27
- return t.observe(document.body, { attributes: !0, attributeFilter: ["class"] }), () => t.disconnect();
28
- }, [s]), {
29
- isDarkTheme: s,
30
- setTheme: o
31
- };
32
- }, v = (s) => {
33
- const { isDarkTheme: n, setTheme: o } = f(), t = () => o(!n);
34
- return /* @__PURE__ */ e.jsx(u, { ...s, checked: n, label: "Dark Mode", onChange: t, alignIndicator: "right" });
35
- }, y = ({ title: s, navigation: n, onProfileClick: o, onLogoutClick: t }) => /* @__PURE__ */ e.jsxs(h, { className: "bp6-fixed-top custom-navbar", children: [
36
- /* @__PURE__ */ e.jsx(r, { align: "left", children: /* @__PURE__ */ e.jsx(x, { children: s }) }),
37
- /* @__PURE__ */ e.jsx(r, { children: n }),
38
- /* @__PURE__ */ e.jsxs(r, { align: "end", children: [
39
- /* @__PURE__ */ e.jsx(v, { className: "mr-2 mb-0!" }),
40
- /* @__PURE__ */ e.jsx(
41
- b,
42
- {
43
- placement: "bottom-end",
44
- content: /* @__PURE__ */ e.jsxs(g, { children: [
45
- /* @__PURE__ */ e.jsx(i, { icon: "id-number", text: "My profile", onClick: o }),
46
- /* @__PURE__ */ e.jsx(p, {}),
47
- /* @__PURE__ */ e.jsx(i, { intent: "danger", icon: "log-out", text: "Sign out", onClick: t })
48
- ] }),
49
- children: /* @__PURE__ */ e.jsx(j, { icon: "user" })
50
- }
51
- )
52
- ] })
53
- ] }), D = ({ children: s, ...n }) => /* @__PURE__ */ e.jsxs("div", { className: "main-layout", children: [
54
- /* @__PURE__ */ e.jsx("div", { className: "topbar", children: /* @__PURE__ */ e.jsx(y, { ...n }) }),
55
- /* @__PURE__ */ e.jsx("div", { className: "body", children: s })
56
- ] });
57
- export {
58
- v as T,
59
- D as a,
60
- y as b,
61
- f as u
62
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("./jsx-runtime-DMhOxOJN.cjs"),i=require("react"),t=require("@blueprintjs/core"),a=()=>{const[r,n]=i.useState(()=>{if(typeof window>"u")return!1;try{return window.localStorage.getItem("theme")==="dark"}catch{return!1}}),o=s=>{document.body.classList.toggle(t.Classes.DARK,s),document.body.style.backgroundColor=s?t.Colors.DARK_GRAY3:t.Colors.LIGHT_GRAY5;try{window.localStorage.setItem("theme",s?"dark":"light")}catch{}n(s)};return i.useEffect(()=>{o(r);const s=new MutationObserver(()=>{const x=document.body.classList.contains(t.Classes.DARK);n(x)});return s.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>s.disconnect()},[r]),{isDarkTheme:r,setTheme:o}},c=r=>{const{isDarkTheme:n,setTheme:o}=a(),s=()=>o(!n);return e.jsxRuntimeExports.jsx(t.Switch,{...r,checked:n,label:"Dark Mode",onChange:s,alignIndicator:"right"})},u=({title:r,navigation:n,onProfileClick:o,onLogoutClick:s})=>e.jsxRuntimeExports.jsxs(t.Navbar,{className:"bp6-fixed-top custom-navbar",children:[e.jsxRuntimeExports.jsx(t.NavbarGroup,{align:"left",children:e.jsxRuntimeExports.jsx(t.NavbarHeading,{children:r})}),e.jsxRuntimeExports.jsx(t.NavbarGroup,{children:n}),e.jsxRuntimeExports.jsxs(t.NavbarGroup,{align:"end",children:[e.jsxRuntimeExports.jsx(c,{className:"mr-2 mb-0!"}),e.jsxRuntimeExports.jsx(t.PopoverNext,{placement:"bottom-end",content:e.jsxRuntimeExports.jsxs(t.Menu,{children:[e.jsxRuntimeExports.jsx(t.MenuItem,{icon:"id-number",text:"My profile",onClick:o}),e.jsxRuntimeExports.jsx(t.MenuDivider,{}),e.jsxRuntimeExports.jsx(t.MenuItem,{intent:"danger",icon:"log-out",text:"Sign out",onClick:s})]}),children:e.jsxRuntimeExports.jsx(t.Button,{icon:"user"})})]})]}),m=({children:r,...n})=>e.jsxRuntimeExports.jsxs("div",{className:"main-layout",children:[e.jsxRuntimeExports.jsx("div",{className:"topbar",children:e.jsxRuntimeExports.jsx(u,{...n})}),e.jsxRuntimeExports.jsx("div",{className:"body",children:r})]});exports.ThemeSwitch=c;exports.TopBarNavLayout=m;exports.Topbar=u;exports.useTheme=a;
@@ -1 +0,0 @@
1
- "use strict";const y=require("date-fns-tz");function c(e){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=a.width?String(a.width):e.defaultWidth,n=e.formats[t]||e.formats[e.defaultWidth];return n}}function s(e){return function(a,t){var n=t!=null&&t.context?String(t.context):"standalone",r;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=t!=null&&t.width?String(t.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var u=e.defaultWidth,l=t!=null&&t.width?String(t.width):e.defaultWidth;r=e.values[l]||e.values[u]}var d=e.argumentCallback?e.argumentCallback(a):a;return r[d]}}function m(e){return function(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=a.match(r);if(!i)return null;var o=i[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?w(u,function(h){return h.test(o)}):b(u,function(h){return h.test(o)}),d;d=e.valueCallback?e.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var g=a.slice(o.length);return{value:d,rest:g}}}function b(e,a){for(var t in e)if(e.hasOwnProperty(t)&&a(e[t]))return t}function w(e,a){for(var t=0;t<e.length;t++)if(a(e[t]))return t}function P(e){return function(a){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.match(e.matchPattern);if(!n)return null;var r=n[0],i=a.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var u=a.slice(r.length);return{value:o,rest:u}}}var p={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"}},M=function(a,t,n){var r,i=p[a];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},W={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},D={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},S={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},k={date:c({formats:W,defaultWidth:"full"}),time:c({formats:D,defaultWidth:"full"}),dateTime:c({formats:S,defaultWidth:"full"})},C={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},F=function(a,t,n,r){return C[a]},A={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},T={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},x={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"]},j={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","Friday","Saturday"]},V={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"}},q={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"}},z=function(a,t){var n=Number(a),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},L={ordinalNumber:z,era:s({values:A,defaultWidth:"wide"}),quarter:s({values:T,defaultWidth:"wide",argumentCallback:function(a){return a-1}}),month:s({values:x,defaultWidth:"wide"}),day:s({values:j,defaultWidth:"wide"}),dayPeriod:s({values:V,defaultWidth:"wide",formattingValues:q,defaultFormattingWidth:"wide"})},N=/^(\d+)(th|st|nd|rd)?/i,O=/\d+/i,J={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},X={any:[/^b/i,/^(a|c)/i]},R={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},E={any:[/1/i,/2/i,/3/i,/4/i]},Q={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},U={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]},Z={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},_={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]},H={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},Y={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}},B={ordinalNumber:P({matchPattern:N,parsePattern:O,valueCallback:function(a){return parseInt(a,10)}}),era:m({matchPatterns:J,defaultMatchWidth:"wide",parsePatterns:X,defaultParseWidth:"any"}),quarter:m({matchPatterns:R,defaultMatchWidth:"wide",parsePatterns:E,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:m({matchPatterns:Q,defaultMatchWidth:"wide",parsePatterns:U,defaultParseWidth:"any"}),day:m({matchPatterns:Z,defaultMatchWidth:"wide",parsePatterns:_,defaultParseWidth:"any"}),dayPeriod:m({matchPatterns:H,defaultMatchWidth:"any",parsePatterns:Y,defaultParseWidth:"any"})},v={code:"en-US",formatDistance:M,formatLong:k,formatRelative:F,localize:L,match:B,options:{weekStartsOn:0,firstWeekContainsDate:1}};const f={enUS:v},I=()=>Promise.resolve(v),K=(e,a="yyyy-MM-dd HH:mm:ss z",t="enUS",n="America/Los_Angeles")=>{if(!e)return"";const r=f[t]||f.enUS,i=typeof e=="string"?e.endsWith("Z")||e.includes("+")?new Date(e):new Date(e+"Z"):new Date(e);return y.formatInTimeZone(i,n,a,{locale:r})},G=(e,a="en-US")=>e?(typeof e=="string"?e.endsWith("Z")||e.includes("+")?new Date(e):new Date(e+"Z"):new Date(e)).toLocaleDateString(a):"";exports.formatDateOnly=G;exports.formatDateTime=K;exports.localeLoader=I;
@@ -1,389 +0,0 @@
1
- import { formatInTimeZone as y } from "date-fns-tz";
2
- function c(e) {
3
- return function() {
4
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = t.width ? String(t.width) : e.defaultWidth, n = e.formats[a] || e.formats[e.defaultWidth];
5
- return n;
6
- };
7
- }
8
- function s(e) {
9
- return function(t, a) {
10
- var n = a != null && a.context ? String(a.context) : "standalone", r;
11
- if (n === "formatting" && e.formattingValues) {
12
- var i = e.defaultFormattingWidth || e.defaultWidth, o = a != null && a.width ? String(a.width) : i;
13
- r = e.formattingValues[o] || e.formattingValues[i];
14
- } else {
15
- var u = e.defaultWidth, l = a != null && a.width ? String(a.width) : e.defaultWidth;
16
- r = e.values[l] || e.values[u];
17
- }
18
- var d = e.argumentCallback ? e.argumentCallback(t) : t;
19
- return r[d];
20
- };
21
- }
22
- function m(e) {
23
- return function(t) {
24
- var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = a.width, r = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], i = t.match(r);
25
- if (!i)
26
- return null;
27
- var o = i[0], u = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(u) ? w(u, function(h) {
28
- return h.test(o);
29
- }) : b(u, function(h) {
30
- return h.test(o);
31
- }), d;
32
- d = e.valueCallback ? e.valueCallback(l) : l, d = a.valueCallback ? a.valueCallback(d) : d;
33
- var g = t.slice(o.length);
34
- return {
35
- value: d,
36
- rest: g
37
- };
38
- };
39
- }
40
- function b(e, t) {
41
- for (var a in e)
42
- if (e.hasOwnProperty(a) && t(e[a]))
43
- return a;
44
- }
45
- function w(e, t) {
46
- for (var a = 0; a < e.length; a++)
47
- if (t(e[a]))
48
- return a;
49
- }
50
- function P(e) {
51
- return function(t) {
52
- var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.match(e.matchPattern);
53
- if (!n) return null;
54
- var r = n[0], i = t.match(e.parsePattern);
55
- if (!i) return null;
56
- var o = e.valueCallback ? e.valueCallback(i[0]) : i[0];
57
- o = a.valueCallback ? a.valueCallback(o) : o;
58
- var u = t.slice(r.length);
59
- return {
60
- value: o,
61
- rest: u
62
- };
63
- };
64
- }
65
- var p = {
66
- lessThanXSeconds: {
67
- one: "less than a second",
68
- other: "less than {{count}} seconds"
69
- },
70
- xSeconds: {
71
- one: "1 second",
72
- other: "{{count}} seconds"
73
- },
74
- halfAMinute: "half a minute",
75
- lessThanXMinutes: {
76
- one: "less than a minute",
77
- other: "less than {{count}} minutes"
78
- },
79
- xMinutes: {
80
- one: "1 minute",
81
- other: "{{count}} minutes"
82
- },
83
- aboutXHours: {
84
- one: "about 1 hour",
85
- other: "about {{count}} hours"
86
- },
87
- xHours: {
88
- one: "1 hour",
89
- other: "{{count}} hours"
90
- },
91
- xDays: {
92
- one: "1 day",
93
- other: "{{count}} days"
94
- },
95
- aboutXWeeks: {
96
- one: "about 1 week",
97
- other: "about {{count}} weeks"
98
- },
99
- xWeeks: {
100
- one: "1 week",
101
- other: "{{count}} weeks"
102
- },
103
- aboutXMonths: {
104
- one: "about 1 month",
105
- other: "about {{count}} months"
106
- },
107
- xMonths: {
108
- one: "1 month",
109
- other: "{{count}} months"
110
- },
111
- aboutXYears: {
112
- one: "about 1 year",
113
- other: "about {{count}} years"
114
- },
115
- xYears: {
116
- one: "1 year",
117
- other: "{{count}} years"
118
- },
119
- overXYears: {
120
- one: "over 1 year",
121
- other: "over {{count}} years"
122
- },
123
- almostXYears: {
124
- one: "almost 1 year",
125
- other: "almost {{count}} years"
126
- }
127
- }, M = function(t, a, n) {
128
- var r, i = p[t];
129
- return typeof i == "string" ? r = i : a === 1 ? r = i.one : r = i.other.replace("{{count}}", a.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
130
- }, W = {
131
- full: "EEEE, MMMM do, y",
132
- long: "MMMM do, y",
133
- medium: "MMM d, y",
134
- short: "MM/dd/yyyy"
135
- }, D = {
136
- full: "h:mm:ss a zzzz",
137
- long: "h:mm:ss a z",
138
- medium: "h:mm:ss a",
139
- short: "h:mm a"
140
- }, S = {
141
- full: "{{date}} 'at' {{time}}",
142
- long: "{{date}} 'at' {{time}}",
143
- medium: "{{date}}, {{time}}",
144
- short: "{{date}}, {{time}}"
145
- }, k = {
146
- date: c({
147
- formats: W,
148
- defaultWidth: "full"
149
- }),
150
- time: c({
151
- formats: D,
152
- defaultWidth: "full"
153
- }),
154
- dateTime: c({
155
- formats: S,
156
- defaultWidth: "full"
157
- })
158
- }, C = {
159
- lastWeek: "'last' eeee 'at' p",
160
- yesterday: "'yesterday at' p",
161
- today: "'today at' p",
162
- tomorrow: "'tomorrow at' p",
163
- nextWeek: "eeee 'at' p",
164
- other: "P"
165
- }, A = function(t, a, n, r) {
166
- return C[t];
167
- }, F = {
168
- narrow: ["B", "A"],
169
- abbreviated: ["BC", "AD"],
170
- wide: ["Before Christ", "Anno Domini"]
171
- }, x = {
172
- narrow: ["1", "2", "3", "4"],
173
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
174
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
175
- }, T = {
176
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
177
- abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
178
- wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
179
- }, j = {
180
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
181
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
182
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
183
- wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
184
- }, V = {
185
- narrow: {
186
- am: "a",
187
- pm: "p",
188
- midnight: "mi",
189
- noon: "n",
190
- morning: "morning",
191
- afternoon: "afternoon",
192
- evening: "evening",
193
- night: "night"
194
- },
195
- abbreviated: {
196
- am: "AM",
197
- pm: "PM",
198
- midnight: "midnight",
199
- noon: "noon",
200
- morning: "morning",
201
- afternoon: "afternoon",
202
- evening: "evening",
203
- night: "night"
204
- },
205
- wide: {
206
- am: "a.m.",
207
- pm: "p.m.",
208
- midnight: "midnight",
209
- noon: "noon",
210
- morning: "morning",
211
- afternoon: "afternoon",
212
- evening: "evening",
213
- night: "night"
214
- }
215
- }, N = {
216
- narrow: {
217
- am: "a",
218
- pm: "p",
219
- midnight: "mi",
220
- noon: "n",
221
- morning: "in the morning",
222
- afternoon: "in the afternoon",
223
- evening: "in the evening",
224
- night: "at night"
225
- },
226
- abbreviated: {
227
- am: "AM",
228
- pm: "PM",
229
- midnight: "midnight",
230
- noon: "noon",
231
- morning: "in the morning",
232
- afternoon: "in the afternoon",
233
- evening: "in the evening",
234
- night: "at night"
235
- },
236
- wide: {
237
- am: "a.m.",
238
- pm: "p.m.",
239
- midnight: "midnight",
240
- noon: "noon",
241
- morning: "in the morning",
242
- afternoon: "in the afternoon",
243
- evening: "in the evening",
244
- night: "at night"
245
- }
246
- }, q = function(t, a) {
247
- var n = Number(t), r = n % 100;
248
- if (r > 20 || r < 10)
249
- switch (r % 10) {
250
- case 1:
251
- return n + "st";
252
- case 2:
253
- return n + "nd";
254
- case 3:
255
- return n + "rd";
256
- }
257
- return n + "th";
258
- }, z = {
259
- ordinalNumber: q,
260
- era: s({
261
- values: F,
262
- defaultWidth: "wide"
263
- }),
264
- quarter: s({
265
- values: x,
266
- defaultWidth: "wide",
267
- argumentCallback: function(t) {
268
- return t - 1;
269
- }
270
- }),
271
- month: s({
272
- values: T,
273
- defaultWidth: "wide"
274
- }),
275
- day: s({
276
- values: j,
277
- defaultWidth: "wide"
278
- }),
279
- dayPeriod: s({
280
- values: V,
281
- defaultWidth: "wide",
282
- formattingValues: N,
283
- defaultFormattingWidth: "wide"
284
- })
285
- }, J = /^(\d+)(th|st|nd|rd)?/i, L = /\d+/i, O = {
286
- narrow: /^(b|a)/i,
287
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
288
- wide: /^(before christ|before common era|anno domini|common era)/i
289
- }, X = {
290
- any: [/^b/i, /^(a|c)/i]
291
- }, R = {
292
- narrow: /^[1234]/i,
293
- abbreviated: /^q[1234]/i,
294
- wide: /^[1234](th|st|nd|rd)? quarter/i
295
- }, E = {
296
- any: [/1/i, /2/i, /3/i, /4/i]
297
- }, Q = {
298
- narrow: /^[jfmasond]/i,
299
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
300
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
301
- }, U = {
302
- 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],
303
- 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]
304
- }, Z = {
305
- narrow: /^[smtwf]/i,
306
- short: /^(su|mo|tu|we|th|fr|sa)/i,
307
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
308
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
309
- }, _ = {
310
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
311
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
312
- }, H = {
313
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
314
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
315
- }, Y = {
316
- any: {
317
- am: /^a/i,
318
- pm: /^p/i,
319
- midnight: /^mi/i,
320
- noon: /^no/i,
321
- morning: /morning/i,
322
- afternoon: /afternoon/i,
323
- evening: /evening/i,
324
- night: /night/i
325
- }
326
- }, B = {
327
- ordinalNumber: P({
328
- matchPattern: J,
329
- parsePattern: L,
330
- valueCallback: function(t) {
331
- return parseInt(t, 10);
332
- }
333
- }),
334
- era: m({
335
- matchPatterns: O,
336
- defaultMatchWidth: "wide",
337
- parsePatterns: X,
338
- defaultParseWidth: "any"
339
- }),
340
- quarter: m({
341
- matchPatterns: R,
342
- defaultMatchWidth: "wide",
343
- parsePatterns: E,
344
- defaultParseWidth: "any",
345
- valueCallback: function(t) {
346
- return t + 1;
347
- }
348
- }),
349
- month: m({
350
- matchPatterns: Q,
351
- defaultMatchWidth: "wide",
352
- parsePatterns: U,
353
- defaultParseWidth: "any"
354
- }),
355
- day: m({
356
- matchPatterns: Z,
357
- defaultMatchWidth: "wide",
358
- parsePatterns: _,
359
- defaultParseWidth: "any"
360
- }),
361
- dayPeriod: m({
362
- matchPatterns: H,
363
- defaultMatchWidth: "any",
364
- parsePatterns: Y,
365
- defaultParseWidth: "any"
366
- })
367
- }, v = {
368
- code: "en-US",
369
- formatDistance: M,
370
- formatLong: k,
371
- formatRelative: A,
372
- localize: z,
373
- match: B,
374
- options: {
375
- weekStartsOn: 0,
376
- firstWeekContainsDate: 1
377
- }
378
- };
379
- const f = { enUS: v }, K = () => Promise.resolve(v), G = (e, t = "yyyy-MM-dd HH:mm:ss z", a = "enUS", n = "America/Los_Angeles") => {
380
- if (!e)
381
- return "";
382
- const r = f[a] || f.enUS, i = typeof e == "string" ? e.endsWith("Z") || e.includes("+") ? new Date(e) : /* @__PURE__ */ new Date(e + "Z") : new Date(e);
383
- return y(i, n, t, { locale: r });
384
- }, $ = (e, t = "en-US") => e ? (typeof e == "string" ? e.endsWith("Z") || e.includes("+") ? new Date(e) : /* @__PURE__ */ new Date(e + "Z") : new Date(e)).toLocaleDateString(t) : "";
385
- export {
386
- G as a,
387
- $ as f,
388
- K as l
389
- };
@@ -1,14 +0,0 @@
1
- "use strict";const Pe=require("react");var V={exports:{}},k={};var Te;function fr(){if(Te)return k;Te=1;var M=Pe,C=Symbol.for("react.element"),U=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,F=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A={key:!0,ref:!0,__self:!0,__source:!0};function w(y,f,T){var p,E={},_=null,I=null;T!==void 0&&(_=""+T),f.key!==void 0&&(_=""+f.key),f.ref!==void 0&&(I=f.ref);for(p in f)m.call(f,p)&&!A.hasOwnProperty(p)&&(E[p]=f[p]);if(y&&y.defaultProps)for(p in f=y.defaultProps,f)E[p]===void 0&&(E[p]=f[p]);return{$$typeof:C,type:y,key:_,ref:I,props:E,_owner:F.current}}return k.Fragment=U,k.jsx=w,k.jsxs=w,k}var D={};var Oe;function cr(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&(function(){var M=Pe,C=Symbol.for("react.element"),U=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),y=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),H=Symbol.iterator,Ce="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var r=H&&e[H]||e[Ce];return typeof r=="function"?r:null}var O=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];je("error",e,t)}}function je(e,r,t){{var n=O.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var xe=!1,ke=!1,De=!1,Fe=!1,Ae=!1,Z;Z=Symbol.for("react.module.reference");function Ie(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===A||Ae||e===F||e===T||e===p||Fe||e===I||xe||ke||De||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===E||e.$$typeof===w||e.$$typeof===y||e.$$typeof===f||e.$$typeof===Z||e.getModuleId!==void 0))}function $e(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function Q(e){return e.displayName||"Context"}function R(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case U:return"Portal";case A:return"Profiler";case F:return"StrictMode";case T:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var r=e;return Q(r)+".Consumer";case w:var t=e;return Q(t._context)+".Provider";case f:return $e(e,e.render,"ForwardRef");case E:var n=e.displayName||null;return n!==null?n:R(e.type)||"Memo";case _:{var o=e,u=o._payload,i=o._init;try{return R(i(u))}catch{return null}}}return null}var b=Object.assign,j=0,ee,re,te,ne,ae,ie,oe;function ue(){}ue.__reactDisabledLog=!0;function We(){{if(j===0){ee=console.log,re=console.info,te=console.warn,ne=console.error,ae=console.group,ie=console.groupCollapsed,oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}}function Ye(){{if(j--,j===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:b({},e,{value:ee}),info:b({},e,{value:re}),warn:b({},e,{value:te}),error:b({},e,{value:ne}),group:b({},e,{value:ae}),groupCollapsed:b({},e,{value:ie}),groupEnd:b({},e,{value:oe})})}j<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=O.ReactCurrentDispatcher,q;function $(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
2
- `+q+e}}var J=!1,W;{var Le=typeof WeakMap=="function"?WeakMap:Map;W=new Le}function se(e,r){if(!e||J)return"";{var t=W.get(e);if(t!==void 0)return t}var n;J=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=N.current,N.current=null,We();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(d){n=d}Reflect.construct(e,[],i)}else{try{i.call()}catch(d){n=d}e.call(i.prototype)}}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var a=d.stack.split(`
3
- `),v=n.stack.split(`
4
- `),s=a.length-1,l=v.length-1;s>=1&&l>=0&&a[s]!==v[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==v[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==v[l]){var g=`
5
- `+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&W.set(e,g),g}while(s>=1&&l>=0);break}}}finally{J=!1,N.current=u,Ye(),Error.prepareStackTrace=o}var P=e?e.displayName||e.name:"",h=P?$(P):"";return typeof e=="function"&&W.set(e,h),h}function Ve(e,r,t){return se(e,!1)}function Me(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Y(e,r,t){if(e==null)return"";if(typeof e=="function")return se(e,Me(e));if(typeof e=="string")return $(e);switch(e){case T:return $("Suspense");case p:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Ve(e.render);case E:return Y(e.type,r,t);case _:{var n=e,o=n._payload,u=n._init;try{return Y(u(o),r,t)}catch{}}}return""}var x=Object.prototype.hasOwnProperty,le={},fe=O.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);fe.setExtraStackFrame(t)}else fe.setExtraStackFrame(null)}function Ue(e,r,t,n,o){{var u=Function.call.bind(x);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(L(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),L(null)),a instanceof Error&&!(a.message in le)&&(le[a.message]=!0,L(o),c("Failed %s type: %s",t,a.message),L(null))}}}var Ne=Array.isArray;function B(e){return Ne(e)}function qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Je(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function ve(e){if(Je(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(e)),ce(e)}var de=O.ReactCurrentOwner,Be={key:!0,ref:!0,__self:!0,__source:!0},pe,ge;function Ke(e){if(x.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ge(e){if(x.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ze(e,r){typeof e.ref=="string"&&de.current}function Xe(e,r){{var t=function(){pe||(pe=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function He(e,r){{var t=function(){ge||(ge=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Ze=function(e,r,t,n,o,u,i){var a={$$typeof:C,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Qe(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(ve(t),a=""+t),Ge(r)&&(ve(r.key),a=""+r.key),Ke(r)&&(v=r.ref,ze(r,o));for(u in r)x.call(r,u)&&!Be.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Xe(i,l),v&&He(i,l)}return Ze(e,a,v,o,n,de.current,i)}}var K=O.ReactCurrentOwner,Ee=O.ReactDebugCurrentFrame;function S(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var G;G=!1;function z(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}function Re(){{if(K.current){var e=R(K.current.type);if(e)return`
6
-
7
- Check the render method of \``+e+"`."}return""}}function er(e){return""}var ye={};function rr(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
8
-
9
- Check the top-level render call using <`+t+">.")}return r}}function _e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=rr(r);if(ye[t])return;ye[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+R(e._owner.type)+"."),S(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),S(null)}}function be(e,r){{if(typeof e!="object")return;if(B(e))for(var t=0;t<e.length;t++){var n=e[t];z(n)&&_e(n,r)}else if(z(e))e._store&&(e._store.validated=!0);else if(e){var o=we(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)z(i.value)&&_e(i.value,r)}}}function tr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===E))t=r.propTypes;else return;if(t){var n=R(r);Ue(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!G){G=!0;var o=R(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function nr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){S(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),S(null);break}}e.ref!==null&&(S(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),S(null))}}var he={};function me(e,r,t,n,o,u){{var i=Ie(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=er();v?a+=v:a+=Re();var s;e===null?s="null":B(e)?s="array":e!==void 0&&e.$$typeof===C?(s="<"+(R(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=Qe(e,r,t,o,u);if(l==null)return l;if(i){var g=r.children;if(g!==void 0)if(n)if(B(g)){for(var P=0;P<g.length;P++)be(g[P],e);Object.freeze&&Object.freeze(g)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else be(g,e)}if(x.call(r,"key")){var h=R(e),d=Object.keys(r).filter(function(lr){return lr!=="key"}),X=d.length>0?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}";if(!he[h+X]){var sr=d.length>0?"{"+d.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
10
- let props = %s;
11
- <%s {...props} />
12
- React keys must be passed directly to JSX without using spread:
13
- let props = %s;
14
- <%s key={someKey} {...props} />`,X,h,sr,h),he[h+X]=!0}}return e===m?nr(l):tr(l),l}}function ar(e,r,t){return me(e,r,t,!0)}function ir(e,r,t){return me(e,r,t,!1)}var or=ir,ur=ar;D.Fragment=m,D.jsx=or,D.jsxs=ur})()),D}var Se;function vr(){return Se||(Se=1,process.env.NODE_ENV==="production"?V.exports=fr():V.exports=cr()),V.exports}var dr=vr();exports.jsxRuntimeExports=dr;