@das-fed/upf-utils 6.4.0-dev.241 → 6.4.0-dev.243

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.
Files changed (90) hide show
  1. package/api-services/es5.js +1537 -1518
  2. package/api-services/index.js +1231 -1221
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +1464 -1424
  5. package/api-services/modules/app-manage/index.js +1248 -1206
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +1228 -1188
  8. package/api-services/modules/authentication/index.js +1026 -984
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +874 -843
  11. package/api-services/modules/bems/index.js +714 -686
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +515 -487
  14. package/api-services/modules/contract/index.js +397 -373
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +1393 -1350
  17. package/api-services/modules/duty-manage/index.js +1196 -1150
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +1195 -1173
  20. package/api-services/modules/enterpriseright/index.js +983 -969
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +1426 -1383
  23. package/api-services/modules/file/es5.js +818 -787
  24. package/api-services/modules/file/index.js +644 -616
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +875 -844
  27. package/api-services/modules/gateway-edge/index.js +714 -686
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1146 -1100
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +1232 -1192
  32. package/api-services/modules/iot/index.js +1023 -981
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +1466 -1426
  35. package/api-services/modules/justauth/index.js +1249 -1207
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +1212 -1193
  38. package/api-services/modules/knowledge/index.js +999 -989
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +1386 -1343
  41. package/api-services/modules/link/index.js +1189 -1143
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +1212 -1193
  44. package/api-services/modules/permission/index.js +999 -989
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +1197 -1166
  47. package/api-services/modules/platformManage/index.js +1001 -973
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +1212 -1193
  50. package/api-services/modules/portal/index.js +999 -989
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +1178 -1147
  53. package/api-services/modules/space-manage/index.js +983 -955
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +1196 -1174
  56. package/api-services/modules/super-admin/index.js +978 -964
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +1192 -1173
  59. package/api-services/modules/supplier/index.js +977 -967
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +1178 -1147
  62. package/api-services/modules/supplychain-manage/index.js +983 -955
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +1013 -980
  65. package/api-services/modules/systemConfiguration/index.js +812 -780
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +1014 -980
  68. package/api-services/modules/tool/index.js +804 -772
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +1198 -1176
  71. package/api-services/src/create-service/index.js +985 -971
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +968 -937
  74. package/common-info/getPermissionMethod/es5.js +1474 -1434
  75. package/common-info/getPermissionMethod/index.js +1234 -1192
  76. package/common-info/getPermissionMethod/index.js.gz +0 -0
  77. package/common-info/index.js +783 -755
  78. package/common-info/index.js.gz +0 -0
  79. package/common-tools/timezone-format/es5.js +122 -90
  80. package/common-tools/timezone-format/index.js +84 -56
  81. package/common-tools/timezone-format/index.js.gz +0 -0
  82. package/create-api-service/es5.js +1194 -1173
  83. package/create-api-service/index.js +979 -965
  84. package/create-api-service/index.js.gz +0 -0
  85. package/hooks/use-get-auth/es5.js +1 -1
  86. package/hooks/use-get-auth/index.js +1 -1
  87. package/hooks/use-get-auth/index.js.gz +0 -0
  88. package/package.json +3 -3
  89. package/theme/es5.d.ts +1 -1
  90. package/theme/index.d.ts +1 -1
Binary file
@@ -7,134 +7,166 @@ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Sym
7
7
  function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
8
8
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9
9
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
- var l = require('dayjs');
11
- var T = require('dayjs/plugin/utc');
10
+ var i = require('dayjs');
11
+ var D = require('dayjs/plugin/utc');
12
12
  var w = require('dayjs/plugin/timezone');
13
- l.extend(T);
14
- l.extend(w);
15
- var f = "zh-CN",
16
- y = "YYYY.MM.DD HH:mm:ss",
17
- D = "UTC",
18
- m = {
13
+ i.extend(D);
14
+ i.extend(w);
15
+ var l = "zh-CN",
16
+ z = "YYYY.MM.DD HH:mm:ss",
17
+ v = "UTC",
18
+ u = {
19
19
  zh: "夏令时",
20
20
  "default": "DST"
21
+ };
22
+ var d, g;
23
+ var S = (g = (d = i.tz) == null ? undefined : d.guess) == null ? undefined : g.bind(i.tz),
24
+ Z = function Z() {
25
+ if (!((typeof Intl === "undefined" ? "undefined" : _typeof(Intl)) > "u" || typeof Intl.DateTimeFormat != "function")) try {
26
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
27
+ } catch (_unused) {
28
+ return;
29
+ }
30
+ },
31
+ C = function C(t) {
32
+ if (!t) return false;
33
+ if ((typeof Intl === "undefined" ? "undefined" : _typeof(Intl)) > "u" || typeof Intl.DateTimeFormat != "function") return true;
34
+ try {
35
+ return new Intl.DateTimeFormat(void 0, {
36
+ timeZone: t
37
+ }), !0;
38
+ } catch (_unused2) {
39
+ return false;
40
+ }
41
+ },
42
+ I = function I() {
43
+ var n;
44
+ var t = (n = i.tz) == null ? undefined : n.guess,
45
+ e = typeof t == "function" ? t : S;
46
+ try {
47
+ return e == null ? void 0 : e();
48
+ } catch (_unused3) {
49
+ return;
50
+ }
21
51
  },
22
- u = function u() {
23
- return l.tz.guess() || D;
52
+ m = function m() {
53
+ var t = I() || Z();
54
+ return C(t) ? t : v;
24
55
  },
25
- v = function v() {
56
+ b = function b() {
26
57
  var t;
27
- return (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" && (t = window.navigator) != null && t.language ? window.navigator.language : f;
58
+ return (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" && (t = window.navigator) != null && t.language ? window.navigator.language : l;
28
59
  },
29
- S = function S(t) {
60
+ p = function p(t) {
30
61
  var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
31
- var n = t || v() || f,
32
- r = n.toLowerCase();
33
- if (!e.length) return r === "en" ? "en-US" : r === "zh" || r === "zh-cn" ? f : n;
34
- var a = e.find(function (i) {
35
- return i.toLowerCase() === r;
62
+ var r = t || b() || l,
63
+ o = r.toLowerCase();
64
+ if (!e.length) return o === "en" ? "en-US" : o === "zh" || o === "zh-cn" ? l : r;
65
+ var s = e.find(function (c) {
66
+ return c.toLowerCase() === o;
36
67
  });
37
- if (a) return a;
38
- var c = r.split("-")[0],
39
- s = e.find(function (i) {
40
- return i.toLowerCase().split("-")[0] === c;
68
+ if (s) return s;
69
+ var a = o.split("-")[0],
70
+ f = e.find(function (c) {
71
+ return c.toLowerCase().split("-")[0] === a;
41
72
  });
42
- return s || (c === "en" ? e.find(function (i) {
43
- return i.toLowerCase().startsWith("en-");
44
- }) || n : c === "zh" ? e.find(function (i) {
45
- return i.toLowerCase().startsWith("zh-");
46
- }) || f : n);
47
- },
48
- g = function g(t) {
49
- if (l.isDayjs(t)) return t;
50
- if (t == null || t === "") return l();
51
- var e = l(t);
52
- return e.isValid() ? e : l();
73
+ return f || (a === "en" ? e.find(function (c) {
74
+ return c.toLowerCase().startsWith("en-");
75
+ }) || r : a === "zh" ? e.find(function (c) {
76
+ return c.toLowerCase().startsWith("zh-");
77
+ }) || l : r);
53
78
  },
54
79
  h = function h(t) {
55
- if (!t) return u();
80
+ if (i.isDayjs(t)) return t;
81
+ if (t == null || t === "") return i();
82
+ var e = i(t);
83
+ return e.isValid() ? e : i();
84
+ },
85
+ T = function T(t) {
86
+ if (!t) return m();
56
87
  try {
57
88
  return new Intl.DateTimeFormat(void 0, {
58
89
  timeZone: t
59
90
  }), t;
60
- } catch (_unused) {
61
- return u();
91
+ } catch (_unused4) {
92
+ return m();
62
93
  }
63
94
  },
64
- L = function L(t) {
95
+ y = function y(t) {
65
96
  return "UTC".concat(t);
66
97
  },
67
- z = function z(t, e) {
68
- var o = t.match(/([+-]\d{1,2})(?::?(\d{2}))?/) || [];
69
- if (!o[1]) return e;
70
- var n = o[1].startsWith("-") ? "-" : "+",
71
- r = o[1].replace(/[+-]/, "").padStart(2, "0"),
72
- a = o[2] || "00";
73
- return "UTC".concat(n).concat(r, ":").concat(a);
98
+ O = function O(t, e) {
99
+ var n = t.match(/([+-]\d{1,2})(?::?(\d{2}))?/) || [];
100
+ if (!n[1]) return e;
101
+ var r = n[1].startsWith("-") ? "-" : "+",
102
+ o = n[1].replace(/[+-]/, "").padStart(2, "0"),
103
+ s = n[2] || "00";
104
+ return "UTC".concat(r).concat(o, ":").concat(s);
74
105
  },
75
- C = function C(t, e, o) {
76
- var r, a;
77
- var n = L(o.format("Z"));
106
+ A = function A(t, e, n) {
107
+ var o, s;
108
+ var r = y(n.format("Z"));
78
109
  try {
79
- var c = Intl.DateTimeFormat.supportedLocalesOf([e])[0] || e,
80
- s = (a = (r = new Intl.DateTimeFormat(c, {
110
+ var a = Intl.DateTimeFormat.supportedLocalesOf([e])[0] || e,
111
+ f = (s = (o = new Intl.DateTimeFormat(a, {
81
112
  timeZone: t,
82
113
  timeZoneName: "long"
83
- }).formatToParts(o.toDate()).find(function (i) {
84
- return i.type === "timeZoneName";
85
- })) == null ? void 0 : r.value) == null ? void 0 : a.trim();
86
- return s ? /^(gmt|utc)/i.test(s) ? z(s, n) : s : n;
87
- } catch (_unused2) {
88
- return n;
114
+ }).formatToParts(n.toDate()).find(function (c) {
115
+ return c.type === "timeZoneName";
116
+ })) == null ? void 0 : o.value) == null ? void 0 : s.trim();
117
+ return f ? /^(gmt|utc)/i.test(f) ? O(f, r) : f : r;
118
+ } catch (_unused5) {
119
+ return r;
89
120
  }
90
121
  },
91
- Z = function Z(t, e) {
92
- var o = e.year();
122
+ F = function F(t, e) {
123
+ var n = e.year();
93
124
  return Array.from(new Set(Array.from({
94
125
  length: 12
95
- }, function (n, r) {
96
- var a = "".concat(r + 1).padStart(2, "0");
97
- return l.tz("".concat(o, "-").concat(a, "-15 12:00:00"), t).utcOffset();
126
+ }, function (r, o) {
127
+ var s = "".concat(o + 1).padStart(2, "0"),
128
+ a = "".concat(n, "-").concat(s, "-15 12:00:00");
129
+ return typeof i.tz == "function" ? i.tz(a, t).utcOffset() : i.utc(a).tz(t).utcOffset();
98
130
  })));
99
131
  },
100
- b = function b(t, e) {
101
- var o = h(t),
102
- n = g(e).tz(o),
103
- r = Z(o, n);
104
- return r.length <= 1 ? false : n.utcOffset() > Math.min.apply(Math, _toConsumableArray(r));
132
+ $ = function $(t, e) {
133
+ var n = T(t),
134
+ r = h(e).tz(n),
135
+ o = F(n, r);
136
+ return o.length <= 1 ? false : r.utcOffset() > Math.min.apply(Math, _toConsumableArray(o));
105
137
  },
106
- A = function A(t) {
138
+ M = function M(t) {
107
139
  var e = t.toLowerCase().split("-")[0];
108
- return m[e] || m["default"];
140
+ return u[e] || u["default"];
109
141
  },
110
- O = function O(t) {
142
+ N = function N(t) {
111
143
  var _t$showDaylightSaving;
112
144
  return typeof t.showDaylightSavingLabel == "boolean" ? t.showDaylightSavingLabel : (_t$showDaylightSaving = t.showDaylightSavingMarker) !== null && _t$showDaylightSaving !== void 0 ? _t$showDaylightSaving : true;
113
145
  },
114
- U = function U() {
146
+ E = function E() {
115
147
  var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
116
- var e = S(t.locale, t.supportedLocales),
117
- o = h(t.timeZone),
118
- n = g(t.value).tz(o),
119
- r = C(o, e, n),
120
- a = L(n.format("Z")),
121
- c = b(o, n),
122
- s = c ? A(e) : "",
123
- i = O(t),
124
- d = c && i ? "".concat(r, " - ").concat(s) : r;
148
+ var e = p(t.locale, t.supportedLocales),
149
+ n = T(t.timeZone),
150
+ r = h(t.value).tz(n),
151
+ o = A(n, e, r),
152
+ s = y(r.format("Z")),
153
+ a = $(n, r),
154
+ f = a ? M(e) : "",
155
+ c = N(t),
156
+ L = a && c ? "".concat(o, " - ").concat(f) : o;
125
157
  return {
126
- formattedValue: n.format(t.format || y),
158
+ formattedValue: r.format(t.format || z),
127
159
  locale: e,
128
- timeZone: o,
129
- timeZoneName: r,
130
- timeZoneLabel: d,
131
- offsetLabel: a,
132
- offsetMinutes: n.utcOffset(),
133
- isDaylightSavingTime: c,
134
- daylightSavingLabel: s
160
+ timeZone: n,
161
+ timeZoneName: o,
162
+ timeZoneLabel: L,
163
+ offsetLabel: s,
164
+ offsetMinutes: r.utcOffset(),
165
+ isDaylightSavingTime: a,
166
+ daylightSavingLabel: f
135
167
  };
136
168
  };
137
- exports.getClientTimeZone = u;
138
- exports.getTimeZoneDisplayInfo = U;
139
- exports.isDaylightSavingTime = b;
140
- exports.normalizeLocaleCode = S;
169
+ exports.getClientTimeZone = m;
170
+ exports.getTimeZoneDisplayInfo = E;
171
+ exports.isDaylightSavingTime = $;
172
+ exports.normalizeLocaleCode = p;
@@ -1,81 +1,109 @@
1
- import l from "dayjs";
2
- import T from "dayjs/plugin/utc";
1
+ import i from "dayjs";
2
+ import D from "dayjs/plugin/utc";
3
3
  import w from "dayjs/plugin/timezone";
4
- l.extend(T);
5
- l.extend(w);
6
- const f = "zh-CN", y = "YYYY.MM.DD HH:mm:ss", D = "UTC", m = {
4
+ i.extend(D);
5
+ i.extend(w);
6
+ const l = "zh-CN", z = "YYYY.MM.DD HH:mm:ss", v = "UTC", u = {
7
7
  zh: "夏令时",
8
8
  default: "DST"
9
- }, u = () => l.tz.guess() || D, v = () => {
9
+ };
10
+ var d, g;
11
+ const S = (g = (d = i.tz) == null ? void 0 : d.guess) == null ? void 0 : g.bind(i.tz), Z = () => {
12
+ if (!(typeof Intl > "u" || typeof Intl.DateTimeFormat != "function"))
13
+ try {
14
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
15
+ } catch {
16
+ return;
17
+ }
18
+ }, C = (t) => {
19
+ if (!t) return !1;
20
+ if (typeof Intl > "u" || typeof Intl.DateTimeFormat != "function") return !0;
21
+ try {
22
+ return new Intl.DateTimeFormat(void 0, { timeZone: t }), !0;
23
+ } catch {
24
+ return !1;
25
+ }
26
+ }, I = () => {
27
+ var n;
28
+ const t = (n = i.tz) == null ? void 0 : n.guess, e = typeof t == "function" ? t : S;
29
+ try {
30
+ return e == null ? void 0 : e();
31
+ } catch {
32
+ return;
33
+ }
34
+ }, m = () => {
35
+ const t = I() || Z();
36
+ return C(t) ? t : v;
37
+ }, b = () => {
10
38
  var t;
11
- return typeof window < "u" && ((t = window.navigator) != null && t.language) ? window.navigator.language : f;
12
- }, S = (t, e = []) => {
13
- const n = t || v() || f, r = n.toLowerCase();
39
+ return typeof window < "u" && ((t = window.navigator) != null && t.language) ? window.navigator.language : l;
40
+ }, p = (t, e = []) => {
41
+ const r = t || b() || l, o = r.toLowerCase();
14
42
  if (!e.length)
15
- return r === "en" ? "en-US" : r === "zh" || r === "zh-cn" ? f : n;
16
- const a = e.find((i) => i.toLowerCase() === r);
17
- if (a) return a;
18
- const c = r.split("-")[0], s = e.find((i) => i.toLowerCase().split("-")[0] === c);
19
- return s || (c === "en" ? e.find((i) => i.toLowerCase().startsWith("en-")) || n : c === "zh" ? e.find((i) => i.toLowerCase().startsWith("zh-")) || f : n);
20
- }, g = (t) => {
21
- if (l.isDayjs(t)) return t;
22
- if (t == null || t === "") return l();
23
- const e = l(t);
24
- return e.isValid() ? e : l();
43
+ return o === "en" ? "en-US" : o === "zh" || o === "zh-cn" ? l : r;
44
+ const s = e.find((c) => c.toLowerCase() === o);
45
+ if (s) return s;
46
+ const a = o.split("-")[0], f = e.find((c) => c.toLowerCase().split("-")[0] === a);
47
+ return f || (a === "en" ? e.find((c) => c.toLowerCase().startsWith("en-")) || r : a === "zh" ? e.find((c) => c.toLowerCase().startsWith("zh-")) || l : r);
25
48
  }, h = (t) => {
26
- if (!t) return u();
49
+ if (i.isDayjs(t)) return t;
50
+ if (t == null || t === "") return i();
51
+ const e = i(t);
52
+ return e.isValid() ? e : i();
53
+ }, T = (t) => {
54
+ if (!t) return m();
27
55
  try {
28
56
  return new Intl.DateTimeFormat(void 0, { timeZone: t }), t;
29
57
  } catch {
30
- return u();
58
+ return m();
31
59
  }
32
- }, L = (t) => `UTC${t}`, z = (t, e) => {
33
- const o = t.match(/([+-]\d{1,2})(?::?(\d{2}))?/) || [];
34
- if (!o[1]) return e;
35
- const n = o[1].startsWith("-") ? "-" : "+", r = o[1].replace(/[+-]/, "").padStart(2, "0"), a = o[2] || "00";
36
- return `UTC${n}${r}:${a}`;
37
- }, C = (t, e, o) => {
38
- var r, a;
39
- const n = L(o.format("Z"));
60
+ }, y = (t) => `UTC${t}`, O = (t, e) => {
61
+ const n = t.match(/([+-]\d{1,2})(?::?(\d{2}))?/) || [];
62
+ if (!n[1]) return e;
63
+ const r = n[1].startsWith("-") ? "-" : "+", o = n[1].replace(/[+-]/, "").padStart(2, "0"), s = n[2] || "00";
64
+ return `UTC${r}${o}:${s}`;
65
+ }, A = (t, e, n) => {
66
+ var o, s;
67
+ const r = y(n.format("Z"));
40
68
  try {
41
- const c = Intl.DateTimeFormat.supportedLocalesOf([e])[0] || e, s = (a = (r = new Intl.DateTimeFormat(c, { timeZone: t, timeZoneName: "long" }).formatToParts(o.toDate()).find((i) => i.type === "timeZoneName")) == null ? void 0 : r.value) == null ? void 0 : a.trim();
42
- return s ? /^(gmt|utc)/i.test(s) ? z(s, n) : s : n;
69
+ const a = Intl.DateTimeFormat.supportedLocalesOf([e])[0] || e, f = (s = (o = new Intl.DateTimeFormat(a, { timeZone: t, timeZoneName: "long" }).formatToParts(n.toDate()).find((c) => c.type === "timeZoneName")) == null ? void 0 : o.value) == null ? void 0 : s.trim();
70
+ return f ? /^(gmt|utc)/i.test(f) ? O(f, r) : f : r;
43
71
  } catch {
44
- return n;
72
+ return r;
45
73
  }
46
- }, Z = (t, e) => {
47
- const o = e.year();
74
+ }, F = (t, e) => {
75
+ const n = e.year();
48
76
  return Array.from(
49
77
  new Set(
50
- Array.from({ length: 12 }, (n, r) => {
51
- const a = `${r + 1}`.padStart(2, "0");
52
- return l.tz(`${o}-${a}-15 12:00:00`, t).utcOffset();
78
+ Array.from({ length: 12 }, (r, o) => {
79
+ const s = `${o + 1}`.padStart(2, "0"), a = `${n}-${s}-15 12:00:00`;
80
+ return typeof i.tz == "function" ? i.tz(a, t).utcOffset() : i.utc(a).tz(t).utcOffset();
53
81
  })
54
82
  )
55
83
  );
56
- }, b = (t, e) => {
57
- const o = h(t), n = g(e).tz(o), r = Z(o, n);
58
- return r.length <= 1 ? !1 : n.utcOffset() > Math.min(...r);
59
- }, A = (t) => {
84
+ }, $ = (t, e) => {
85
+ const n = T(t), r = h(e).tz(n), o = F(n, r);
86
+ return o.length <= 1 ? !1 : r.utcOffset() > Math.min(...o);
87
+ }, M = (t) => {
60
88
  const e = t.toLowerCase().split("-")[0];
61
- return m[e] || m.default;
62
- }, O = (t) => typeof t.showDaylightSavingLabel == "boolean" ? t.showDaylightSavingLabel : t.showDaylightSavingMarker ?? !0, U = (t = {}) => {
63
- const e = S(t.locale, t.supportedLocales), o = h(t.timeZone), n = g(t.value).tz(o), r = C(o, e, n), a = L(n.format("Z")), c = b(o, n), s = c ? A(e) : "", i = O(t), d = c && i ? `${r} - ${s}` : r;
89
+ return u[e] || u.default;
90
+ }, N = (t) => typeof t.showDaylightSavingLabel == "boolean" ? t.showDaylightSavingLabel : t.showDaylightSavingMarker ?? !0, E = (t = {}) => {
91
+ const e = p(t.locale, t.supportedLocales), n = T(t.timeZone), r = h(t.value).tz(n), o = A(n, e, r), s = y(r.format("Z")), a = $(n, r), f = a ? M(e) : "", c = N(t), L = a && c ? `${o} - ${f}` : o;
64
92
  return {
65
- formattedValue: n.format(t.format || y),
93
+ formattedValue: r.format(t.format || z),
66
94
  locale: e,
67
- timeZone: o,
68
- timeZoneName: r,
69
- timeZoneLabel: d,
70
- offsetLabel: a,
71
- offsetMinutes: n.utcOffset(),
72
- isDaylightSavingTime: c,
73
- daylightSavingLabel: s
95
+ timeZone: n,
96
+ timeZoneName: o,
97
+ timeZoneLabel: L,
98
+ offsetLabel: s,
99
+ offsetMinutes: r.utcOffset(),
100
+ isDaylightSavingTime: a,
101
+ daylightSavingLabel: f
74
102
  };
75
103
  };
76
104
  export {
77
- u as getClientTimeZone,
78
- U as getTimeZoneDisplayInfo,
79
- b as isDaylightSavingTime,
80
- S as normalizeLocaleCode
105
+ m as getClientTimeZone,
106
+ E as getTimeZoneDisplayInfo,
107
+ $ as isDaylightSavingTime,
108
+ p as normalizeLocaleCode
81
109
  };