@strapi/plugin-users-permissions 5.0.0-beta.10 → 5.0.0-beta.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.
Files changed (29) hide show
  1. package/dist/_chunks/{index-CkV_Gx1w.js → index--GpG6tLA.js} +4 -4
  2. package/dist/_chunks/{index-CkV_Gx1w.js.map → index--GpG6tLA.js.map} +1 -1
  3. package/dist/_chunks/{index-jwAq-BX--Cqx0wYbj.js → index-7Wlj8eA7-7OWx8SwS.js} +1076 -197
  4. package/dist/_chunks/index-7Wlj8eA7-7OWx8SwS.js.map +1 -0
  5. package/dist/_chunks/{index-jwAq-BX--dMZbL-qM.mjs → index-7Wlj8eA7-DHTckV6T.mjs} +1078 -199
  6. package/dist/_chunks/index-7Wlj8eA7-DHTckV6T.mjs.map +1 -0
  7. package/dist/_chunks/{index-b5IzYPqT.mjs → index-C5U4ePo7.mjs} +2 -2
  8. package/dist/_chunks/{index-b5IzYPqT.mjs.map → index-C5U4ePo7.mjs.map} +1 -1
  9. package/dist/_chunks/{index-D9CJMgdl.js → index-C5qelx5h.js} +8 -8
  10. package/dist/_chunks/{index-D9CJMgdl.js.map → index-C5qelx5h.js.map} +1 -1
  11. package/dist/_chunks/{index-Bmp8oEaL.js → index-C61Rq3Wy.js} +7 -7
  12. package/dist/_chunks/{index-Bmp8oEaL.js.map → index-C61Rq3Wy.js.map} +1 -1
  13. package/dist/_chunks/{index-BoMRcQMw.mjs → index-CeYJys9a.mjs} +8 -8
  14. package/dist/_chunks/{index-BoMRcQMw.mjs.map → index-CeYJys9a.mjs.map} +1 -1
  15. package/dist/_chunks/{index-CqRSlrYn.js → index-CulAxKsW.js} +2 -2
  16. package/dist/_chunks/{index-CqRSlrYn.js.map → index-CulAxKsW.js.map} +1 -1
  17. package/dist/_chunks/{index-CgwV7-UQ.mjs → index-DPPPDM5v.mjs} +2 -2
  18. package/dist/_chunks/{index-CgwV7-UQ.mjs.map → index-DPPPDM5v.mjs.map} +1 -1
  19. package/dist/_chunks/{index-Ck-grCz9.js → index-UMWzcJhY.js} +2 -2
  20. package/dist/_chunks/{index-Ck-grCz9.js.map → index-UMWzcJhY.js.map} +1 -1
  21. package/dist/_chunks/{index-C3uAp27O.mjs → index-_80225_r.mjs} +3 -3
  22. package/dist/_chunks/{index-C3uAp27O.mjs.map → index-_80225_r.mjs.map} +1 -1
  23. package/dist/_chunks/{index-DNNjHtHG.mjs → index-xP-F2lwk.mjs} +3 -3
  24. package/dist/_chunks/{index-DNNjHtHG.mjs.map → index-xP-F2lwk.mjs.map} +1 -1
  25. package/dist/admin/index.js +1 -1
  26. package/dist/admin/index.mjs +1 -1
  27. package/package.json +4 -4
  28. package/dist/_chunks/index-jwAq-BX--Cqx0wYbj.js.map +0 -1
  29. package/dist/_chunks/index-jwAq-BX--dMZbL-qM.mjs.map +0 -1
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
  require("react-dom/client");
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const React = require("react");
5
4
  const designSystem = require("@strapi/design-system");
6
5
  require("lodash/isFunction");
7
6
  require("lodash/merge");
8
7
  require("lodash/pick");
9
- const reactRedux = require("react-redux");
10
8
  const reactRouterDom = require("react-router-dom");
9
+ const React = require("react");
11
10
  const reactIntl = require("react-intl");
12
11
  const icons = require("@strapi/icons");
13
12
  require("@strapi/icons/symbols");
14
13
  const reactDom = require("react-dom");
15
14
  const createNextState2 = require("immer");
15
+ const reactRedux = require("react-redux");
16
16
  const pipe = require("lodash/fp/pipe");
17
17
  const isEqual = require("lodash/isEqual");
18
18
  require("lodash/defaultsDeep");
@@ -9018,6 +9018,869 @@ function generateNKeysBetween(a2, b, n, digits = BASE_62_DIGITS) {
9018
9018
  ...generateNKeysBetween(c, b, n - mid - 1, digits)
9019
9019
  ];
9020
9020
  }
9021
+ function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {
9022
+ return amount - numerator * Math.floor(amount / numerator);
9023
+ }
9024
+ const $3b62074eb05584b2$var$EPOCH = 1721426;
9025
+ function $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {
9026
+ year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);
9027
+ let y1 = year - 1;
9028
+ let monthOffset = -2;
9029
+ if (month <= 2)
9030
+ monthOffset = 0;
9031
+ else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
9032
+ monthOffset = -1;
9033
+ return $3b62074eb05584b2$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);
9034
+ }
9035
+ function $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {
9036
+ return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
9037
+ }
9038
+ function $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year) {
9039
+ return era === "BC" ? 1 - year : year;
9040
+ }
9041
+ function $3b62074eb05584b2$export$4475b7e617eb123c(year) {
9042
+ let era = "AD";
9043
+ if (year <= 0) {
9044
+ era = "BC";
9045
+ year = 1 - year;
9046
+ }
9047
+ return [
9048
+ era,
9049
+ year
9050
+ ];
9051
+ }
9052
+ const $3b62074eb05584b2$var$daysInMonth = {
9053
+ standard: [
9054
+ 31,
9055
+ 28,
9056
+ 31,
9057
+ 30,
9058
+ 31,
9059
+ 30,
9060
+ 31,
9061
+ 31,
9062
+ 30,
9063
+ 31,
9064
+ 30,
9065
+ 31
9066
+ ],
9067
+ leapyear: [
9068
+ 31,
9069
+ 29,
9070
+ 31,
9071
+ 30,
9072
+ 31,
9073
+ 30,
9074
+ 31,
9075
+ 31,
9076
+ 30,
9077
+ 31,
9078
+ 30,
9079
+ 31
9080
+ ]
9081
+ };
9082
+ class $3b62074eb05584b2$export$80ee6245ec4f29ec {
9083
+ fromJulianDay(jd) {
9084
+ let jd0 = jd;
9085
+ let depoch = jd0 - $3b62074eb05584b2$var$EPOCH;
9086
+ let quadricent = Math.floor(depoch / 146097);
9087
+ let dqc = $2b4dce13dd5a17fa$export$842a2cf37af977e1(depoch, 146097);
9088
+ let cent = Math.floor(dqc / 36524);
9089
+ let dcent = $2b4dce13dd5a17fa$export$842a2cf37af977e1(dqc, 36524);
9090
+ let quad = Math.floor(dcent / 1461);
9091
+ let dquad = $2b4dce13dd5a17fa$export$842a2cf37af977e1(dcent, 1461);
9092
+ let yindex = Math.floor(dquad / 365);
9093
+ let extendedYear = quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0);
9094
+ let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);
9095
+ let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);
9096
+ let leapAdj = 2;
9097
+ if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1))
9098
+ leapAdj = 0;
9099
+ else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year))
9100
+ leapAdj = 1;
9101
+ let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);
9102
+ let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;
9103
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(era, year, month, day);
9104
+ }
9105
+ toJulianDay(date) {
9106
+ return $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, date.month, date.day);
9107
+ }
9108
+ getDaysInMonth(date) {
9109
+ return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? "leapyear" : "standard"][date.month - 1];
9110
+ }
9111
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
9112
+ getMonthsInYear(date) {
9113
+ return 12;
9114
+ }
9115
+ getDaysInYear(date) {
9116
+ return $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 366 : 365;
9117
+ }
9118
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
9119
+ getYearsInEra(date) {
9120
+ return 9999;
9121
+ }
9122
+ getEras() {
9123
+ return [
9124
+ "BC",
9125
+ "AD"
9126
+ ];
9127
+ }
9128
+ isInverseEra(date) {
9129
+ return date.era === "BC";
9130
+ }
9131
+ balanceDate(date) {
9132
+ if (date.year <= 0) {
9133
+ date.era = date.era === "BC" ? "AD" : "BC";
9134
+ date.year = 1 - date.year;
9135
+ }
9136
+ }
9137
+ constructor() {
9138
+ this.identifier = "gregory";
9139
+ }
9140
+ }
9141
+ function $14e0f24ef4ac5c92$export$68781ddf31c0090f(a2, b) {
9142
+ return a2.calendar.toJulianDay(a2) - b.calendar.toJulianDay(b);
9143
+ }
9144
+ function $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a2, b) {
9145
+ return $14e0f24ef4ac5c92$var$timeToMs(a2) - $14e0f24ef4ac5c92$var$timeToMs(b);
9146
+ }
9147
+ function $14e0f24ef4ac5c92$var$timeToMs(a2) {
9148
+ return a2.hour * 36e5 + a2.minute * 6e4 + a2.second * 1e3 + a2.millisecond;
9149
+ }
9150
+ let $14e0f24ef4ac5c92$var$localTimeZone = null;
9151
+ function $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {
9152
+ if ($14e0f24ef4ac5c92$var$localTimeZone == null)
9153
+ $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
9154
+ return $14e0f24ef4ac5c92$var$localTimeZone;
9155
+ }
9156
+ function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {
9157
+ date = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
9158
+ let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(date.era, date.year);
9159
+ return $11d87f3f76e88657$var$epochFromParts(year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);
9160
+ }
9161
+ function $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {
9162
+ let date = /* @__PURE__ */ new Date();
9163
+ date.setUTCHours(hour, minute, second, millisecond);
9164
+ date.setUTCFullYear(year, month - 1, day);
9165
+ return date.getTime();
9166
+ }
9167
+ function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
9168
+ if (timeZone === "UTC")
9169
+ return 0;
9170
+ if (ms > 0 && timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2())
9171
+ return new Date(ms).getTimezoneOffset() * -6e4;
9172
+ let { year, month, day, hour, minute, second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
9173
+ let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);
9174
+ return utc - Math.floor(ms / 1e3) * 1e3;
9175
+ }
9176
+ const $11d87f3f76e88657$var$formattersByTimeZone = /* @__PURE__ */ new Map();
9177
+ function $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {
9178
+ let formatter = $11d87f3f76e88657$var$formattersByTimeZone.get(timeZone);
9179
+ if (!formatter) {
9180
+ formatter = new Intl.DateTimeFormat("en-US", {
9181
+ timeZone,
9182
+ hour12: false,
9183
+ era: "short",
9184
+ year: "numeric",
9185
+ month: "numeric",
9186
+ day: "numeric",
9187
+ hour: "numeric",
9188
+ minute: "numeric",
9189
+ second: "numeric"
9190
+ });
9191
+ $11d87f3f76e88657$var$formattersByTimeZone.set(timeZone, formatter);
9192
+ }
9193
+ let parts = formatter.formatToParts(new Date(ms));
9194
+ let namedParts = {};
9195
+ for (let part of parts)
9196
+ if (part.type !== "literal")
9197
+ namedParts[part.type] = part.value;
9198
+ return {
9199
+ // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253
9200
+ year: namedParts.era === "BC" || namedParts.era === "B" ? -namedParts.year + 1 : +namedParts.year,
9201
+ month: +namedParts.month,
9202
+ day: +namedParts.day,
9203
+ hour: namedParts.hour === "24" ? 0 : +namedParts.hour,
9204
+ minute: +namedParts.minute,
9205
+ second: +namedParts.second
9206
+ };
9207
+ }
9208
+ const $11d87f3f76e88657$var$DAYMILLIS = 864e5;
9209
+ function $11d87f3f76e88657$var$getValidWallTimes(date, timeZone, earlier, later) {
9210
+ let found = earlier === later ? [
9211
+ earlier
9212
+ ] : [
9213
+ earlier,
9214
+ later
9215
+ ];
9216
+ return found.filter((absolute) => $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute));
9217
+ }
9218
+ function $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {
9219
+ let parts = $11d87f3f76e88657$var$getTimeZoneParts(absolute, timeZone);
9220
+ return date.year === parts.year && date.month === parts.month && date.day === parts.day && date.hour === parts.hour && date.minute === parts.minute && date.second === parts.second;
9221
+ }
9222
+ function $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = "compatible") {
9223
+ let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);
9224
+ if (timeZone === "UTC")
9225
+ return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
9226
+ if (timeZone === $14e0f24ef4ac5c92$export$aa8b41735afcabd2() && disambiguation === "compatible") {
9227
+ dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
9228
+ let date2 = /* @__PURE__ */ new Date();
9229
+ let year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(dateTime.era, dateTime.year);
9230
+ date2.setFullYear(year, dateTime.month - 1, dateTime.day);
9231
+ date2.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);
9232
+ return date2.getTime();
9233
+ }
9234
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);
9235
+ let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);
9236
+ let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);
9237
+ let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);
9238
+ if (valid.length === 1)
9239
+ return valid[0];
9240
+ if (valid.length > 1)
9241
+ switch (disambiguation) {
9242
+ case "compatible":
9243
+ case "earlier":
9244
+ return valid[0];
9245
+ case "later":
9246
+ return valid[valid.length - 1];
9247
+ case "reject":
9248
+ throw new RangeError("Multiple possible absolute times found");
9249
+ }
9250
+ switch (disambiguation) {
9251
+ case "earlier":
9252
+ return Math.min(ms - offsetBefore, ms - offsetAfter);
9253
+ case "compatible":
9254
+ case "later":
9255
+ return Math.max(ms - offsetBefore, ms - offsetAfter);
9256
+ case "reject":
9257
+ throw new RangeError("No such absolute time found");
9258
+ }
9259
+ }
9260
+ function $11d87f3f76e88657$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = "compatible") {
9261
+ return new Date($11d87f3f76e88657$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));
9262
+ }
9263
+ function $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone) {
9264
+ let offset = $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone);
9265
+ let date = new Date(ms + offset);
9266
+ let year = date.getUTCFullYear();
9267
+ let month = date.getUTCMonth() + 1;
9268
+ let day = date.getUTCDate();
9269
+ let hour = date.getUTCHours();
9270
+ let minute = date.getUTCMinutes();
9271
+ let second = date.getUTCSeconds();
9272
+ let millisecond = date.getUTCMilliseconds();
9273
+ return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(year, month, day, timeZone, offset, hour, minute, second, millisecond);
9274
+ }
9275
+ function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
9276
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
9277
+ }
9278
+ function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
9279
+ let hour = 0, minute = 0, second = 0, millisecond = 0;
9280
+ if ("timeZone" in date)
9281
+ ({ hour, minute, second, millisecond } = date);
9282
+ else if ("hour" in date && !time)
9283
+ return date;
9284
+ if (time)
9285
+ ({ hour, minute, second, millisecond } = time);
9286
+ return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
9287
+ }
9288
+ function $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {
9289
+ if (date.calendar.identifier === calendar.identifier)
9290
+ return date;
9291
+ let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));
9292
+ let copy = date.copy();
9293
+ copy.calendar = calendar;
9294
+ copy.era = calendarDate.era;
9295
+ copy.year = calendarDate.year;
9296
+ copy.month = calendarDate.month;
9297
+ copy.day = calendarDate.day;
9298
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(copy);
9299
+ return copy;
9300
+ }
9301
+ function $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {
9302
+ if (date instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea) {
9303
+ if (date.timeZone === timeZone)
9304
+ return date;
9305
+ return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
9306
+ }
9307
+ let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);
9308
+ return $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone);
9309
+ }
9310
+ function $11d87f3f76e88657$export$83aac07b4c37b25(date) {
9311
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
9312
+ return new Date(ms);
9313
+ }
9314
+ function $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone) {
9315
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;
9316
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone), date.calendar);
9317
+ }
9318
+ const $735220c2d4774dd3$var$ONE_HOUR = 36e5;
9319
+ function $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {
9320
+ let mutableDate = date.copy();
9321
+ let days = "hour" in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;
9322
+ $735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);
9323
+ if (mutableDate.calendar.balanceYearMonth)
9324
+ mutableDate.calendar.balanceYearMonth(mutableDate, date);
9325
+ mutableDate.month += duration.months || 0;
9326
+ $735220c2d4774dd3$var$balanceYearMonth(mutableDate);
9327
+ $735220c2d4774dd3$var$constrainMonthDay(mutableDate);
9328
+ mutableDate.day += (duration.weeks || 0) * 7;
9329
+ mutableDate.day += duration.days || 0;
9330
+ mutableDate.day += days;
9331
+ $735220c2d4774dd3$var$balanceDay(mutableDate);
9332
+ if (mutableDate.calendar.balanceDate)
9333
+ mutableDate.calendar.balanceDate(mutableDate);
9334
+ if (mutableDate.year < 1) {
9335
+ mutableDate.year = 1;
9336
+ mutableDate.month = 1;
9337
+ mutableDate.day = 1;
9338
+ }
9339
+ let maxYear = mutableDate.calendar.getYearsInEra(mutableDate);
9340
+ if (mutableDate.year > maxYear) {
9341
+ var _mutableDate_calendar_isInverseEra, _mutableDate_calendar;
9342
+ let isInverseEra = (_mutableDate_calendar_isInverseEra = (_mutableDate_calendar = mutableDate.calendar).isInverseEra) === null || _mutableDate_calendar_isInverseEra === void 0 ? void 0 : _mutableDate_calendar_isInverseEra.call(_mutableDate_calendar, mutableDate);
9343
+ mutableDate.year = maxYear;
9344
+ mutableDate.month = isInverseEra ? 1 : mutableDate.calendar.getMonthsInYear(mutableDate);
9345
+ mutableDate.day = isInverseEra ? 1 : mutableDate.calendar.getDaysInMonth(mutableDate);
9346
+ }
9347
+ if (mutableDate.month < 1) {
9348
+ mutableDate.month = 1;
9349
+ mutableDate.day = 1;
9350
+ }
9351
+ let maxMonth = mutableDate.calendar.getMonthsInYear(mutableDate);
9352
+ if (mutableDate.month > maxMonth) {
9353
+ mutableDate.month = maxMonth;
9354
+ mutableDate.day = mutableDate.calendar.getDaysInMonth(mutableDate);
9355
+ }
9356
+ mutableDate.day = Math.max(1, Math.min(mutableDate.calendar.getDaysInMonth(mutableDate), mutableDate.day));
9357
+ return mutableDate;
9358
+ }
9359
+ function $735220c2d4774dd3$var$addYears(date, years) {
9360
+ var _date_calendar_isInverseEra, _date_calendar;
9361
+ if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date))
9362
+ years = -years;
9363
+ date.year += years;
9364
+ }
9365
+ function $735220c2d4774dd3$var$balanceYearMonth(date) {
9366
+ while (date.month < 1) {
9367
+ $735220c2d4774dd3$var$addYears(date, -1);
9368
+ date.month += date.calendar.getMonthsInYear(date);
9369
+ }
9370
+ let monthsInYear = 0;
9371
+ while (date.month > (monthsInYear = date.calendar.getMonthsInYear(date))) {
9372
+ date.month -= monthsInYear;
9373
+ $735220c2d4774dd3$var$addYears(date, 1);
9374
+ }
9375
+ }
9376
+ function $735220c2d4774dd3$var$balanceDay(date) {
9377
+ while (date.day < 1) {
9378
+ date.month--;
9379
+ $735220c2d4774dd3$var$balanceYearMonth(date);
9380
+ date.day += date.calendar.getDaysInMonth(date);
9381
+ }
9382
+ while (date.day > date.calendar.getDaysInMonth(date)) {
9383
+ date.day -= date.calendar.getDaysInMonth(date);
9384
+ date.month++;
9385
+ $735220c2d4774dd3$var$balanceYearMonth(date);
9386
+ }
9387
+ }
9388
+ function $735220c2d4774dd3$var$constrainMonthDay(date) {
9389
+ date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));
9390
+ date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));
9391
+ }
9392
+ function $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {
9393
+ if (date.calendar.constrainDate)
9394
+ date.calendar.constrainDate(date);
9395
+ date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));
9396
+ $735220c2d4774dd3$var$constrainMonthDay(date);
9397
+ }
9398
+ function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
9399
+ let inverseDuration = {};
9400
+ for (let key in duration)
9401
+ if (typeof duration[key] === "number")
9402
+ inverseDuration[key] = -duration[key];
9403
+ return inverseDuration;
9404
+ }
9405
+ function $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {
9406
+ return $735220c2d4774dd3$export$e16d8520af44a096(date, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
9407
+ }
9408
+ function $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {
9409
+ let mutableDate = date.copy();
9410
+ if (fields.era != null)
9411
+ mutableDate.era = fields.era;
9412
+ if (fields.year != null)
9413
+ mutableDate.year = fields.year;
9414
+ if (fields.month != null)
9415
+ mutableDate.month = fields.month;
9416
+ if (fields.day != null)
9417
+ mutableDate.day = fields.day;
9418
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);
9419
+ return mutableDate;
9420
+ }
9421
+ function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
9422
+ let mutableValue = value.copy();
9423
+ if (fields.hour != null)
9424
+ mutableValue.hour = fields.hour;
9425
+ if (fields.minute != null)
9426
+ mutableValue.minute = fields.minute;
9427
+ if (fields.second != null)
9428
+ mutableValue.second = fields.second;
9429
+ if (fields.millisecond != null)
9430
+ mutableValue.millisecond = fields.millisecond;
9431
+ $735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
9432
+ return mutableValue;
9433
+ }
9434
+ function $735220c2d4774dd3$var$balanceTime(time) {
9435
+ time.second += Math.floor(time.millisecond / 1e3);
9436
+ time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1e3);
9437
+ time.minute += Math.floor(time.second / 60);
9438
+ time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);
9439
+ time.hour += Math.floor(time.minute / 60);
9440
+ time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);
9441
+ let days = Math.floor(time.hour / 24);
9442
+ time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);
9443
+ return days;
9444
+ }
9445
+ function $735220c2d4774dd3$export$7555de1e070510cb(time) {
9446
+ time.millisecond = Math.max(0, Math.min(time.millisecond, 1e3));
9447
+ time.second = Math.max(0, Math.min(time.second, 59));
9448
+ time.minute = Math.max(0, Math.min(time.minute, 59));
9449
+ time.hour = Math.max(0, Math.min(time.hour, 23));
9450
+ }
9451
+ function $735220c2d4774dd3$var$nonNegativeMod(a2, b) {
9452
+ let result = a2 % b;
9453
+ if (result < 0)
9454
+ result += b;
9455
+ return result;
9456
+ }
9457
+ function $735220c2d4774dd3$var$addTimeFields(time, duration) {
9458
+ time.hour += duration.hours || 0;
9459
+ time.minute += duration.minutes || 0;
9460
+ time.second += duration.seconds || 0;
9461
+ time.millisecond += duration.milliseconds || 0;
9462
+ return $735220c2d4774dd3$var$balanceTime(time);
9463
+ }
9464
+ function $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options) {
9465
+ let mutable = value.copy();
9466
+ switch (field) {
9467
+ case "era": {
9468
+ let eras = value.calendar.getEras();
9469
+ let eraIndex = eras.indexOf(value.era);
9470
+ if (eraIndex < 0)
9471
+ throw new Error("Invalid era: " + value.era);
9472
+ eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);
9473
+ mutable.era = eras[eraIndex];
9474
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
9475
+ break;
9476
+ }
9477
+ case "year":
9478
+ var _mutable_calendar_isInverseEra, _mutable_calendar;
9479
+ if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable))
9480
+ amount = -amount;
9481
+ mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);
9482
+ if (mutable.year === -Infinity)
9483
+ mutable.year = 1;
9484
+ if (mutable.calendar.balanceYearMonth)
9485
+ mutable.calendar.balanceYearMonth(mutable, value);
9486
+ break;
9487
+ case "month":
9488
+ mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);
9489
+ break;
9490
+ case "day":
9491
+ mutable.day = $735220c2d4774dd3$var$cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options === null || options === void 0 ? void 0 : options.round);
9492
+ break;
9493
+ default:
9494
+ throw new Error("Unsupported field " + field);
9495
+ }
9496
+ if (value.calendar.balanceDate)
9497
+ value.calendar.balanceDate(mutable);
9498
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);
9499
+ return mutable;
9500
+ }
9501
+ function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {
9502
+ let mutable = value.copy();
9503
+ switch (field) {
9504
+ case "hour": {
9505
+ let hours = value.hour;
9506
+ let min = 0;
9507
+ let max = 23;
9508
+ if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
9509
+ let isPM = hours >= 12;
9510
+ min = isPM ? 12 : 0;
9511
+ max = isPM ? 23 : 11;
9512
+ }
9513
+ mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
9514
+ break;
9515
+ }
9516
+ case "minute":
9517
+ mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
9518
+ break;
9519
+ case "second":
9520
+ mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
9521
+ break;
9522
+ case "millisecond":
9523
+ mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);
9524
+ break;
9525
+ default:
9526
+ throw new Error("Unsupported field " + field);
9527
+ }
9528
+ return mutable;
9529
+ }
9530
+ function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
9531
+ if (round) {
9532
+ value += Math.sign(amount);
9533
+ if (value < min)
9534
+ value = max;
9535
+ let div = Math.abs(amount);
9536
+ if (amount > 0)
9537
+ value = Math.ceil(value / div) * div;
9538
+ else
9539
+ value = Math.floor(value / div) * div;
9540
+ if (value > max)
9541
+ value = min;
9542
+ } else {
9543
+ value += amount;
9544
+ if (value < min)
9545
+ value = max - (min - value - 1);
9546
+ else if (value > max)
9547
+ value = min + (value - max - 1);
9548
+ }
9549
+ return value;
9550
+ }
9551
+ function $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {
9552
+ let ms;
9553
+ if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.weeks != null && duration.weeks !== 0 || duration.days != null && duration.days !== 0) {
9554
+ let res2 = $735220c2d4774dd3$export$e16d8520af44a096($11d87f3f76e88657$export$b21e0b124e224484(dateTime), {
9555
+ years: duration.years,
9556
+ months: duration.months,
9557
+ weeks: duration.weeks,
9558
+ days: duration.days
9559
+ });
9560
+ ms = $11d87f3f76e88657$export$5107c82f94518f5c(res2, dateTime.timeZone);
9561
+ } else
9562
+ ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
9563
+ ms += duration.milliseconds || 0;
9564
+ ms += (duration.seconds || 0) * 1e3;
9565
+ ms += (duration.minutes || 0) * 6e4;
9566
+ ms += (duration.hours || 0) * 36e5;
9567
+ let res = $11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone);
9568
+ return $11d87f3f76e88657$export$b4a036af3fc0b032(res, dateTime.calendar);
9569
+ }
9570
+ function $735220c2d4774dd3$export$6814caac34ca03c7(dateTime, duration) {
9571
+ return $735220c2d4774dd3$export$96b1d28349274637(dateTime, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
9572
+ }
9573
+ function $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, options) {
9574
+ switch (field) {
9575
+ case "hour": {
9576
+ let min = 0;
9577
+ let max = 23;
9578
+ if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
9579
+ let isPM = dateTime.hour >= 12;
9580
+ min = isPM ? 12 : 0;
9581
+ max = isPM ? 23 : 11;
9582
+ }
9583
+ let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
9584
+ let minDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
9585
+ hour: min
9586
+ }), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
9587
+ let minAbsolute = [
9588
+ $11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "earlier"),
9589
+ $11d87f3f76e88657$export$5107c82f94518f5c(minDate, dateTime.timeZone, "later")
9590
+ ].filter((ms2) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms2, dateTime.timeZone).day === minDate.day)[0];
9591
+ let maxDate = $11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {
9592
+ hour: max
9593
+ }), new $3b62074eb05584b2$export$80ee6245ec4f29ec());
9594
+ let maxAbsolute = [
9595
+ $11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "earlier"),
9596
+ $11d87f3f76e88657$export$5107c82f94518f5c(maxDate, dateTime.timeZone, "later")
9597
+ ].filter((ms2) => $11d87f3f76e88657$export$1b96692a1ba042ac(ms2, dateTime.timeZone).day === maxDate.day).pop();
9598
+ let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime) - dateTime.offset;
9599
+ let hours = Math.floor(ms / $735220c2d4774dd3$var$ONE_HOUR);
9600
+ let remainder = ms % $735220c2d4774dd3$var$ONE_HOUR;
9601
+ ms = $735220c2d4774dd3$var$cycleValue(hours, amount, Math.floor(minAbsolute / $735220c2d4774dd3$var$ONE_HOUR), Math.floor(maxAbsolute / $735220c2d4774dd3$var$ONE_HOUR), options === null || options === void 0 ? void 0 : options.round) * $735220c2d4774dd3$var$ONE_HOUR + remainder;
9602
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
9603
+ }
9604
+ case "minute":
9605
+ case "second":
9606
+ case "millisecond":
9607
+ return $735220c2d4774dd3$export$dd02b3e0007dfe28(dateTime, field, amount, options);
9608
+ case "era":
9609
+ case "year":
9610
+ case "month":
9611
+ case "day": {
9612
+ let res = $735220c2d4774dd3$export$d52ced6badfb9a4c($11d87f3f76e88657$export$b21e0b124e224484(dateTime), field, amount, options);
9613
+ let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone);
9614
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
9615
+ }
9616
+ default:
9617
+ throw new Error("Unsupported field " + field);
9618
+ }
9619
+ }
9620
+ function $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {
9621
+ let plainDateTime = $11d87f3f76e88657$export$b21e0b124e224484(dateTime);
9622
+ let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);
9623
+ if (res.compare(plainDateTime) === 0)
9624
+ return dateTime;
9625
+ let ms = $11d87f3f76e88657$export$5107c82f94518f5c(res, dateTime.timeZone, disambiguation);
9626
+ return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, dateTime.timeZone), dateTime.calendar);
9627
+ }
9628
+ const $fae977aafc393c5c$var$ABSOLUTE_RE = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;
9629
+ function $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {
9630
+ let m = value.match($fae977aafc393c5c$var$ABSOLUTE_RE);
9631
+ if (!m)
9632
+ throw new Error("Invalid ISO 8601 date time string: " + value);
9633
+ let date = new $35ea8db9cb2ccb90$export$d3b7288e7994edea($fae977aafc393c5c$var$parseNumber(m[1], 1, 9999), $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, timeZone, 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1e3 : 0);
9634
+ date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));
9635
+ var _m_;
9636
+ if (m[8])
9637
+ date.offset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23) * 36e5 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : "0", 0, 59) * 6e4;
9638
+ return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);
9639
+ }
9640
+ function $fae977aafc393c5c$var$parseNumber(value, min, max) {
9641
+ let val = Number(value);
9642
+ if (val < min || val > max)
9643
+ throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);
9644
+ return val;
9645
+ }
9646
+ function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
9647
+ return `${String(time.hour).padStart(2, "0")}:${String(time.minute).padStart(2, "0")}:${String(time.second).padStart(2, "0")}${time.millisecond ? String(time.millisecond / 1e3).slice(1) : ""}`;
9648
+ }
9649
+ function $fae977aafc393c5c$export$60dfd74aa96791bd(date) {
9650
+ let gregorianDate = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new $3b62074eb05584b2$export$80ee6245ec4f29ec());
9651
+ return `${String(gregorianDate.year).padStart(4, "0")}-${String(gregorianDate.month).padStart(2, "0")}-${String(gregorianDate.day).padStart(2, "0")}`;
9652
+ }
9653
+ function $fae977aafc393c5c$export$4223de14708adc63(date) {
9654
+ return `${$fae977aafc393c5c$export$60dfd74aa96791bd(date)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(date)}`;
9655
+ }
9656
+ function $fae977aafc393c5c$var$offsetToString(offset) {
9657
+ let sign = Math.sign(offset) < 0 ? "-" : "+";
9658
+ offset = Math.abs(offset);
9659
+ let offsetHours = Math.floor(offset / 36e5);
9660
+ let offsetMinutes = offset % 36e5 / 6e4;
9661
+ return `${sign}${String(offsetHours).padStart(2, "0")}:${String(offsetMinutes).padStart(2, "0")}`;
9662
+ }
9663
+ function $fae977aafc393c5c$export$bf79f1ebf4b18792(date) {
9664
+ return `${$fae977aafc393c5c$export$4223de14708adc63(date)}${$fae977aafc393c5c$var$offsetToString(date.offset)}[${date.timeZone}]`;
9665
+ }
9666
+ function _check_private_redeclaration(obj, privateCollection) {
9667
+ if (privateCollection.has(obj)) {
9668
+ throw new TypeError("Cannot initialize the same private elements twice on an object");
9669
+ }
9670
+ }
9671
+ function _class_private_field_init(obj, privateMap, value) {
9672
+ _check_private_redeclaration(obj, privateMap);
9673
+ privateMap.set(obj, value);
9674
+ }
9675
+ function $35ea8db9cb2ccb90$var$shiftArgs(args) {
9676
+ let calendar = typeof args[0] === "object" ? args.shift() : new $3b62074eb05584b2$export$80ee6245ec4f29ec();
9677
+ let era;
9678
+ if (typeof args[0] === "string")
9679
+ era = args.shift();
9680
+ else {
9681
+ let eras = calendar.getEras();
9682
+ era = eras[eras.length - 1];
9683
+ }
9684
+ let year = args.shift();
9685
+ let month = args.shift();
9686
+ let day = args.shift();
9687
+ return [
9688
+ calendar,
9689
+ era,
9690
+ year,
9691
+ month,
9692
+ day
9693
+ ];
9694
+ }
9695
+ var $35ea8db9cb2ccb90$var$_type = /* @__PURE__ */ new WeakMap();
9696
+ class $35ea8db9cb2ccb90$export$99faa760c7908e4f {
9697
+ /** Returns a copy of this date. */
9698
+ copy() {
9699
+ if (this.era)
9700
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);
9701
+ else
9702
+ return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);
9703
+ }
9704
+ /** Returns a new `CalendarDate` with the given duration added to it. */
9705
+ add(duration) {
9706
+ return $735220c2d4774dd3$export$e16d8520af44a096(this, duration);
9707
+ }
9708
+ /** Returns a new `CalendarDate` with the given duration subtracted from it. */
9709
+ subtract(duration) {
9710
+ return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this, duration);
9711
+ }
9712
+ /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */
9713
+ set(fields) {
9714
+ return $735220c2d4774dd3$export$adaa4cf7ef1b65be(this, fields);
9715
+ }
9716
+ /**
9717
+ * Returns a new `CalendarDate` with the given field adjusted by a specified amount.
9718
+ * When the resulting value reaches the limits of the field, it wraps around.
9719
+ */
9720
+ cycle(field, amount, options) {
9721
+ return $735220c2d4774dd3$export$d52ced6badfb9a4c(this, field, amount, options);
9722
+ }
9723
+ /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */
9724
+ toDate(timeZone) {
9725
+ return $11d87f3f76e88657$export$e67a095c620b86fe(this, timeZone);
9726
+ }
9727
+ /** Converts the date to an ISO 8601 formatted string. */
9728
+ toString() {
9729
+ return $fae977aafc393c5c$export$60dfd74aa96791bd(this);
9730
+ }
9731
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
9732
+ compare(b) {
9733
+ return $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
9734
+ }
9735
+ constructor(...args) {
9736
+ _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type, {
9737
+ writable: true,
9738
+ value: void 0
9739
+ });
9740
+ let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
9741
+ this.calendar = calendar;
9742
+ this.era = era;
9743
+ this.year = year;
9744
+ this.month = month;
9745
+ this.day = day;
9746
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
9747
+ }
9748
+ }
9749
+ var $35ea8db9cb2ccb90$var$_type2 = /* @__PURE__ */ new WeakMap();
9750
+ class $35ea8db9cb2ccb90$export$ca871e8dbb80966f {
9751
+ /** Returns a copy of this date. */
9752
+ copy() {
9753
+ if (this.era)
9754
+ return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
9755
+ else
9756
+ return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);
9757
+ }
9758
+ /** Returns a new `CalendarDateTime` with the given duration added to it. */
9759
+ add(duration) {
9760
+ return $735220c2d4774dd3$export$e16d8520af44a096(this, duration);
9761
+ }
9762
+ /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */
9763
+ subtract(duration) {
9764
+ return $735220c2d4774dd3$export$4e2d2ead65e5f7e3(this, duration);
9765
+ }
9766
+ /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
9767
+ set(fields) {
9768
+ return $735220c2d4774dd3$export$adaa4cf7ef1b65be($735220c2d4774dd3$export$e5d5e1c1822b6e56(this, fields), fields);
9769
+ }
9770
+ /**
9771
+ * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.
9772
+ * When the resulting value reaches the limits of the field, it wraps around.
9773
+ */
9774
+ cycle(field, amount, options) {
9775
+ switch (field) {
9776
+ case "era":
9777
+ case "year":
9778
+ case "month":
9779
+ case "day":
9780
+ return $735220c2d4774dd3$export$d52ced6badfb9a4c(this, field, amount, options);
9781
+ default:
9782
+ return $735220c2d4774dd3$export$dd02b3e0007dfe28(this, field, amount, options);
9783
+ }
9784
+ }
9785
+ /** Converts the date to a native JavaScript Date object in the given time zone. */
9786
+ toDate(timeZone, disambiguation) {
9787
+ return $11d87f3f76e88657$export$e67a095c620b86fe(this, timeZone, disambiguation);
9788
+ }
9789
+ /** Converts the date to an ISO 8601 formatted string. */
9790
+ toString() {
9791
+ return $fae977aafc393c5c$export$4223de14708adc63(this);
9792
+ }
9793
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
9794
+ compare(b) {
9795
+ let res = $14e0f24ef4ac5c92$export$68781ddf31c0090f(this, b);
9796
+ if (res === 0)
9797
+ return $14e0f24ef4ac5c92$export$c19a80a9721b80f6(this, $11d87f3f76e88657$export$b21e0b124e224484(b));
9798
+ return res;
9799
+ }
9800
+ constructor(...args) {
9801
+ _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type2, {
9802
+ writable: true,
9803
+ value: void 0
9804
+ });
9805
+ let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
9806
+ this.calendar = calendar;
9807
+ this.era = era;
9808
+ this.year = year;
9809
+ this.month = month;
9810
+ this.day = day;
9811
+ this.hour = args.shift() || 0;
9812
+ this.minute = args.shift() || 0;
9813
+ this.second = args.shift() || 0;
9814
+ this.millisecond = args.shift() || 0;
9815
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
9816
+ }
9817
+ }
9818
+ var $35ea8db9cb2ccb90$var$_type3 = /* @__PURE__ */ new WeakMap();
9819
+ class $35ea8db9cb2ccb90$export$d3b7288e7994edea {
9820
+ /** Returns a copy of this date. */
9821
+ copy() {
9822
+ if (this.era)
9823
+ return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
9824
+ else
9825
+ return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);
9826
+ }
9827
+ /** Returns a new `ZonedDateTime` with the given duration added to it. */
9828
+ add(duration) {
9829
+ return $735220c2d4774dd3$export$96b1d28349274637(this, duration);
9830
+ }
9831
+ /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */
9832
+ subtract(duration) {
9833
+ return $735220c2d4774dd3$export$6814caac34ca03c7(this, duration);
9834
+ }
9835
+ /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */
9836
+ set(fields, disambiguation) {
9837
+ return $735220c2d4774dd3$export$31b5430eb18be4f8(this, fields, disambiguation);
9838
+ }
9839
+ /**
9840
+ * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.
9841
+ * When the resulting value reaches the limits of the field, it wraps around.
9842
+ */
9843
+ cycle(field, amount, options) {
9844
+ return $735220c2d4774dd3$export$9a297d111fc86b79(this, field, amount, options);
9845
+ }
9846
+ /** Converts the date to a native JavaScript Date object. */
9847
+ toDate() {
9848
+ return $11d87f3f76e88657$export$83aac07b4c37b25(this);
9849
+ }
9850
+ /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */
9851
+ toString() {
9852
+ return $fae977aafc393c5c$export$bf79f1ebf4b18792(this);
9853
+ }
9854
+ /** Converts the date to an ISO 8601 formatted string in UTC. */
9855
+ toAbsoluteString() {
9856
+ return this.toDate().toISOString();
9857
+ }
9858
+ /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */
9859
+ compare(b) {
9860
+ return this.toDate().getTime() - $11d87f3f76e88657$export$84c95a83c799e074(b, this.timeZone).toDate().getTime();
9861
+ }
9862
+ constructor(...args) {
9863
+ _class_private_field_init(this, $35ea8db9cb2ccb90$var$_type3, {
9864
+ writable: true,
9865
+ value: void 0
9866
+ });
9867
+ let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);
9868
+ let timeZone = args.shift();
9869
+ let offset = args.shift();
9870
+ this.calendar = calendar;
9871
+ this.era = era;
9872
+ this.year = year;
9873
+ this.month = month;
9874
+ this.day = day;
9875
+ this.timeZone = timeZone;
9876
+ this.offset = offset;
9877
+ this.hour = args.shift() || 0;
9878
+ this.minute = args.shift() || 0;
9879
+ this.second = args.shift() || 0;
9880
+ this.millisecond = args.shift() || 0;
9881
+ $735220c2d4774dd3$export$c4e2ecac49351ef2(this);
9882
+ }
9883
+ }
9021
9884
  const [Provider, useHistory] = createContext("History", {
9022
9885
  history: [],
9023
9886
  currentLocationIndex: 0,
@@ -9077,10 +9940,184 @@ styledComponents.styled(designSystem.Typography)`
9077
9940
  word-break: break-all;
9078
9941
  color: ${({ theme }) => theme.colors.danger600};
9079
9942
  `;
9080
- ({
9081
- [adminApi.reducerPath]: adminApi.reducer,
9082
- admin_app: reducer$1
9083
- });
9943
+ const ActionLayout = ({ startActions, endActions }) => {
9944
+ if (!startActions && !endActions) {
9945
+ return null;
9946
+ }
9947
+ return /* @__PURE__ */ jsxRuntime.jsxs(
9948
+ designSystem.Flex,
9949
+ {
9950
+ justifyContent: "space-between",
9951
+ alignItems: "flex-start",
9952
+ paddingBottom: 4,
9953
+ paddingLeft: 10,
9954
+ paddingRight: 10,
9955
+ children: [
9956
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { gap: 2, wrap: "wrap", children: startActions }),
9957
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { gap: 2, shrink: 0, wrap: "wrap", children: endActions })
9958
+ ]
9959
+ }
9960
+ );
9961
+ };
9962
+ const ContentLayout = ({ children }) => {
9963
+ return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 10, paddingRight: 10, children });
9964
+ };
9965
+ const GridColSize = {
9966
+ S: 180,
9967
+ M: 250
9968
+ };
9969
+ const StyledGrid = styledComponents.styled(designSystem.Box)`
9970
+ display: grid;
9971
+ grid-template-columns: repeat(
9972
+ auto-fit,
9973
+ minmax(${({ $size }) => `${GridColSize[$size]}px`}, 1fr)
9974
+ );
9975
+ grid-gap: ${({ theme }) => theme.spaces[4]};
9976
+ `;
9977
+ const GridLayout = ({ size, children }) => {
9978
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledGrid, { $size: size, children });
9979
+ };
9980
+ const BaseHeaderLayout = React__namespace.forwardRef(
9981
+ ({ navigationAction, primaryAction, secondaryAction, subtitle, title, sticky, width, ...props }, ref) => {
9982
+ const isSubtitleString = typeof subtitle === "string";
9983
+ if (sticky) {
9984
+ return /* @__PURE__ */ jsxRuntime.jsx(
9985
+ designSystem.Box,
9986
+ {
9987
+ paddingLeft: 6,
9988
+ paddingRight: 6,
9989
+ paddingTop: 3,
9990
+ paddingBottom: 3,
9991
+ position: "fixed",
9992
+ top: 0,
9993
+ right: 0,
9994
+ background: "neutral0",
9995
+ shadow: "tableShadow",
9996
+ width: `${width}rem`,
9997
+ zIndex: 1,
9998
+ "data-strapi-header-sticky": true,
9999
+ children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", children: [
10000
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { children: [
10001
+ navigationAction && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingRight: 3, children: navigationAction }),
10002
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
10003
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "beta", tag: "h1", ...props, children: title }),
10004
+ isSubtitleString ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", children: subtitle }) : subtitle
10005
+ ] }),
10006
+ secondaryAction ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 4, children: secondaryAction }) : null
10007
+ ] }),
10008
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { children: primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 2, children: primaryAction }) : void 0 })
10009
+ ] })
10010
+ }
10011
+ );
10012
+ }
10013
+ return /* @__PURE__ */ jsxRuntime.jsxs(
10014
+ designSystem.Box,
10015
+ {
10016
+ ref,
10017
+ paddingLeft: 10,
10018
+ paddingRight: 10,
10019
+ paddingBottom: 8,
10020
+ paddingTop: navigationAction ? 6 : 8,
10021
+ background: "neutral100",
10022
+ "data-strapi-header": true,
10023
+ children: [
10024
+ navigationAction ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingBottom: 2, children: navigationAction }) : null,
10025
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", children: [
10026
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { minWidth: 0, children: [
10027
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h1", variant: "alpha", ...props, children: title }),
10028
+ secondaryAction ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 4, children: secondaryAction }) : null
10029
+ ] }),
10030
+ primaryAction
10031
+ ] }),
10032
+ isSubtitleString ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "epsilon", textColor: "neutral600", tag: "p", children: subtitle }) : subtitle
10033
+ ]
10034
+ }
10035
+ );
10036
+ }
10037
+ );
10038
+ const HeaderLayout = (props) => {
10039
+ const baseHeaderLayoutRef = React__namespace.useRef(null);
10040
+ const [headerSize, setHeaderSize] = React__namespace.useState(null);
10041
+ const [containerRef, isVisible] = useElementOnScreen({
10042
+ root: null,
10043
+ rootMargin: "0px",
10044
+ threshold: 0
10045
+ });
10046
+ useResizeObserver(containerRef, () => {
10047
+ if (containerRef.current) {
10048
+ setHeaderSize(containerRef.current.getBoundingClientRect());
10049
+ }
10050
+ });
10051
+ React__namespace.useEffect(() => {
10052
+ if (baseHeaderLayoutRef.current) {
10053
+ setHeaderSize(baseHeaderLayoutRef.current.getBoundingClientRect());
10054
+ }
10055
+ }, [baseHeaderLayoutRef]);
10056
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
10057
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { height: headerSize?.height }, ref: containerRef, children: isVisible && /* @__PURE__ */ jsxRuntime.jsx(BaseHeaderLayout, { ref: baseHeaderLayoutRef, ...props }) }),
10058
+ !isVisible && /* @__PURE__ */ jsxRuntime.jsx(BaseHeaderLayout, { ...props, sticky: true, width: headerSize?.width })
10059
+ ] });
10060
+ };
10061
+ HeaderLayout.displayName = "HeaderLayout";
10062
+ const useElementOnScreen = (options) => {
10063
+ const containerRef = React__namespace.useRef(null);
10064
+ const [isVisible, setIsVisible] = React__namespace.useState(true);
10065
+ const callback = ([entry]) => {
10066
+ setIsVisible(entry.isIntersecting);
10067
+ };
10068
+ React__namespace.useEffect(() => {
10069
+ const containerEl = containerRef.current;
10070
+ const observer = new IntersectionObserver(callback, options);
10071
+ if (containerEl) {
10072
+ observer.observe(containerRef.current);
10073
+ }
10074
+ return () => {
10075
+ if (containerEl) {
10076
+ observer.disconnect();
10077
+ }
10078
+ };
10079
+ }, [containerRef, options]);
10080
+ return [containerRef, isVisible];
10081
+ };
10082
+ const useResizeObserver = (sources, onResize) => {
10083
+ const handleResize = designSystem.useCallbackRef(onResize);
10084
+ React__namespace.useLayoutEffect(() => {
10085
+ const resizeObs = new ResizeObserver(handleResize);
10086
+ if (Array.isArray(sources)) {
10087
+ sources.forEach((source) => {
10088
+ if (source.current) {
10089
+ resizeObs.observe(source.current);
10090
+ }
10091
+ });
10092
+ } else if (sources.current) {
10093
+ resizeObs.observe(sources.current);
10094
+ }
10095
+ return () => {
10096
+ resizeObs.disconnect();
10097
+ };
10098
+ }, [sources, handleResize]);
10099
+ };
10100
+ const GridContainer = styledComponents.styled(designSystem.Box)`
10101
+ display: grid;
10102
+ grid-template-columns: ${({ $hasSideNav }) => $hasSideNav ? `auto 1fr` : "1fr"};
10103
+ `;
10104
+ const OverflowingItem = styledComponents.styled(designSystem.Box)`
10105
+ overflow-x: hidden;
10106
+ `;
10107
+ const RootLayout = ({ sideNav, children }) => {
10108
+ return /* @__PURE__ */ jsxRuntime.jsxs(GridContainer, { $hasSideNav: Boolean(sideNav), children: [
10109
+ sideNav,
10110
+ /* @__PURE__ */ jsxRuntime.jsx(OverflowingItem, { paddingBottom: 10, children })
10111
+ ] });
10112
+ };
10113
+ const Layouts = {
10114
+ Root: RootLayout,
10115
+ Header: HeaderLayout,
10116
+ BaseHeader: BaseHeaderLayout,
10117
+ Grid: GridLayout,
10118
+ Action: ActionLayout,
10119
+ Content: ContentLayout
10120
+ };
9084
10121
  function getIn(obj, key, def, pathStartIndex = 0) {
9085
10122
  const path = toPath__default.default(key);
9086
10123
  while (obj && pathStartIndex < path.length) {
@@ -9606,7 +10643,7 @@ const DateInput = React.forwardRef(
9606
10643
  field.onChange(name, date);
9607
10644
  },
9608
10645
  onClear: () => field.onChange(name, void 0),
9609
- value,
10646
+ value: value ? convertLocalDateToUTCDate(value) : void 0,
9610
10647
  ...props
9611
10648
  }
9612
10649
  ),
@@ -9615,6 +10652,12 @@ const DateInput = React.forwardRef(
9615
10652
  ] });
9616
10653
  }
9617
10654
  );
10655
+ const convertLocalDateToUTCDate = (date) => {
10656
+ const utcDateString = date.toISOString();
10657
+ const timeZone = $14e0f24ef4ac5c92$export$aa8b41735afcabd2();
10658
+ const zonedDateTime = $fae977aafc393c5c$export$5adfdab05168c219(utcDateString, timeZone);
10659
+ return $11d87f3f76e88657$export$93522d1a439f3617(zonedDateTime).toDate("UTC");
10660
+ };
9618
10661
  const MemoizedDateInput = React.memo(DateInput);
9619
10662
  const DateTimeInput = React.forwardRef(
9620
10663
  ({ name, required, label, hint, labelAction, ...props }, ref) => {
@@ -9855,7 +10898,7 @@ const TimeInput = React.forwardRef(
9855
10898
  ref: composedRefs,
9856
10899
  clearLabel: formatMessage({ id: "clearLabel", defaultMessage: "Clear" }),
9857
10900
  onChange: (time) => {
9858
- field.onChange(name, time);
10901
+ field.onChange(name, `${time}:00.000`);
9859
10902
  },
9860
10903
  onClear: () => field.onChange(name, void 0),
9861
10904
  value: field.value ?? "",
@@ -10151,184 +11194,10 @@ yup__namespace.object().shape({
10151
11194
  defaultMessage: "Passwords must match"
10152
11195
  })
10153
11196
  });
10154
- const ActionLayout = ({ startActions, endActions }) => {
10155
- if (!startActions && !endActions) {
10156
- return null;
10157
- }
10158
- return /* @__PURE__ */ jsxRuntime.jsxs(
10159
- designSystem.Flex,
10160
- {
10161
- justifyContent: "space-between",
10162
- alignItems: "flex-start",
10163
- paddingBottom: 4,
10164
- paddingLeft: 10,
10165
- paddingRight: 10,
10166
- children: [
10167
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { gap: 2, wrap: "wrap", children: startActions }),
10168
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { gap: 2, shrink: 0, wrap: "wrap", children: endActions })
10169
- ]
10170
- }
10171
- );
10172
- };
10173
- const ContentLayout = ({ children }) => {
10174
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 10, paddingRight: 10, children });
10175
- };
10176
- const GridColSize = {
10177
- S: 180,
10178
- M: 250
10179
- };
10180
- const StyledGrid = styledComponents.styled(designSystem.Box)`
10181
- display: grid;
10182
- grid-template-columns: repeat(
10183
- auto-fit,
10184
- minmax(${({ $size }) => `${GridColSize[$size]}px`}, 1fr)
10185
- );
10186
- grid-gap: ${({ theme }) => theme.spaces[4]};
10187
- `;
10188
- const GridLayout = ({ size, children }) => {
10189
- return /* @__PURE__ */ jsxRuntime.jsx(StyledGrid, { $size: size, children });
10190
- };
10191
- const BaseHeaderLayout = React__namespace.forwardRef(
10192
- ({ navigationAction, primaryAction, secondaryAction, subtitle, title, sticky, width, ...props }, ref) => {
10193
- const isSubtitleString = typeof subtitle === "string";
10194
- if (sticky) {
10195
- return /* @__PURE__ */ jsxRuntime.jsx(
10196
- designSystem.Box,
10197
- {
10198
- paddingLeft: 6,
10199
- paddingRight: 6,
10200
- paddingTop: 3,
10201
- paddingBottom: 3,
10202
- position: "fixed",
10203
- top: 0,
10204
- right: 0,
10205
- background: "neutral0",
10206
- shadow: "tableShadow",
10207
- width: `${width}rem`,
10208
- zIndex: 1,
10209
- "data-strapi-header-sticky": true,
10210
- children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", children: [
10211
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { children: [
10212
- navigationAction && /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingRight: 3, children: navigationAction }),
10213
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
10214
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "beta", tag: "h1", ...props, children: title }),
10215
- isSubtitleString ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", children: subtitle }) : subtitle
10216
- ] }),
10217
- secondaryAction ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 4, children: secondaryAction }) : null
10218
- ] }),
10219
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { children: primaryAction ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 2, children: primaryAction }) : void 0 })
10220
- ] })
10221
- }
10222
- );
10223
- }
10224
- return /* @__PURE__ */ jsxRuntime.jsxs(
10225
- designSystem.Box,
10226
- {
10227
- ref,
10228
- paddingLeft: 10,
10229
- paddingRight: 10,
10230
- paddingBottom: 8,
10231
- paddingTop: navigationAction ? 6 : 8,
10232
- background: "neutral100",
10233
- "data-strapi-header": true,
10234
- children: [
10235
- navigationAction ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingBottom: 2, children: navigationAction }) : null,
10236
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", children: [
10237
- /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { minWidth: 0, children: [
10238
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { tag: "h1", variant: "alpha", ...props, children: title }),
10239
- secondaryAction ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { paddingLeft: 4, children: secondaryAction }) : null
10240
- ] }),
10241
- primaryAction
10242
- ] }),
10243
- isSubtitleString ? /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "epsilon", textColor: "neutral600", tag: "p", children: subtitle }) : subtitle
10244
- ]
10245
- }
10246
- );
10247
- }
10248
- );
10249
- const HeaderLayout = (props) => {
10250
- const baseHeaderLayoutRef = React__namespace.useRef(null);
10251
- const [headerSize, setHeaderSize] = React__namespace.useState(null);
10252
- const [containerRef, isVisible] = useElementOnScreen({
10253
- root: null,
10254
- rootMargin: "0px",
10255
- threshold: 0
10256
- });
10257
- useResizeObserver(containerRef, () => {
10258
- if (containerRef.current) {
10259
- setHeaderSize(containerRef.current.getBoundingClientRect());
10260
- }
10261
- });
10262
- React__namespace.useEffect(() => {
10263
- if (baseHeaderLayoutRef.current) {
10264
- setHeaderSize(baseHeaderLayoutRef.current.getBoundingClientRect());
10265
- }
10266
- }, [baseHeaderLayoutRef]);
10267
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
10268
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { height: headerSize?.height }, ref: containerRef, children: isVisible && /* @__PURE__ */ jsxRuntime.jsx(BaseHeaderLayout, { ref: baseHeaderLayoutRef, ...props }) }),
10269
- !isVisible && /* @__PURE__ */ jsxRuntime.jsx(BaseHeaderLayout, { ...props, sticky: true, width: headerSize?.width })
10270
- ] });
10271
- };
10272
- HeaderLayout.displayName = "HeaderLayout";
10273
- const useElementOnScreen = (options) => {
10274
- const containerRef = React__namespace.useRef(null);
10275
- const [isVisible, setIsVisible] = React__namespace.useState(true);
10276
- const callback = ([entry]) => {
10277
- setIsVisible(entry.isIntersecting);
10278
- };
10279
- React__namespace.useEffect(() => {
10280
- const containerEl = containerRef.current;
10281
- const observer = new IntersectionObserver(callback, options);
10282
- if (containerEl) {
10283
- observer.observe(containerRef.current);
10284
- }
10285
- return () => {
10286
- if (containerEl) {
10287
- observer.disconnect();
10288
- }
10289
- };
10290
- }, [containerRef, options]);
10291
- return [containerRef, isVisible];
10292
- };
10293
- const useResizeObserver = (sources, onResize) => {
10294
- const handleResize = designSystem.useCallbackRef(onResize);
10295
- React__namespace.useLayoutEffect(() => {
10296
- const resizeObs = new ResizeObserver(handleResize);
10297
- if (Array.isArray(sources)) {
10298
- sources.forEach((source) => {
10299
- if (source.current) {
10300
- resizeObs.observe(source.current);
10301
- }
10302
- });
10303
- } else if (sources.current) {
10304
- resizeObs.observe(sources.current);
10305
- }
10306
- return () => {
10307
- resizeObs.disconnect();
10308
- };
10309
- }, [sources, handleResize]);
10310
- };
10311
- const GridContainer = styledComponents.styled(designSystem.Box)`
10312
- display: grid;
10313
- grid-template-columns: ${({ $hasSideNav }) => $hasSideNav ? `auto 1fr` : "1fr"};
10314
- `;
10315
- const OverflowingItem = styledComponents.styled(designSystem.Box)`
10316
- overflow-x: hidden;
10317
- `;
10318
- const RootLayout = ({ sideNav, children }) => {
10319
- return /* @__PURE__ */ jsxRuntime.jsxs(GridContainer, { $hasSideNav: Boolean(sideNav), children: [
10320
- sideNav,
10321
- /* @__PURE__ */ jsxRuntime.jsx(OverflowingItem, { paddingBottom: 10, children })
10322
- ] });
10323
- };
10324
- const Layouts = {
10325
- Root: RootLayout,
10326
- Header: HeaderLayout,
10327
- BaseHeader: BaseHeaderLayout,
10328
- Grid: GridLayout,
10329
- Action: ActionLayout,
10330
- Content: ContentLayout
10331
- };
11197
+ ({
11198
+ [adminApi.reducerPath]: adminApi.reducer,
11199
+ admin_app: reducer$1
11200
+ });
10332
11201
  React__namespace.memo(
10333
11202
  ({ description, id, props, update }) => {
10334
11203
  const comp = description(props);
@@ -10413,18 +11282,28 @@ React__namespace.forwardRef(
10413
11282
  onPageSizeChange(pageSize);
10414
11283
  }
10415
11284
  };
10416
- return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { ref: forwardedRef, paddingTop: 4, alignItems: "flex-end", justifyContent: "space-between", children: /* @__PURE__ */ jsxRuntime.jsx(
10417
- PaginationProvider,
11285
+ return /* @__PURE__ */ jsxRuntime.jsx(
11286
+ designSystem.Flex,
10418
11287
  {
10419
- currentQuery: query,
10420
- page: query.page,
10421
- pageSize: query.pageSize,
10422
- pageCount: pageCount.toString(),
10423
- setPageSize,
10424
- total,
10425
- children
11288
+ ref: forwardedRef,
11289
+ paddingTop: 4,
11290
+ paddingBottom: 4,
11291
+ alignItems: "flex-end",
11292
+ justifyContent: "space-between",
11293
+ children: /* @__PURE__ */ jsxRuntime.jsx(
11294
+ PaginationProvider,
11295
+ {
11296
+ currentQuery: query,
11297
+ page: query.page,
11298
+ pageSize: query.pageSize,
11299
+ pageCount: pageCount.toString(),
11300
+ setPageSize,
11301
+ total,
11302
+ children
11303
+ }
11304
+ )
10426
11305
  }
10427
- ) });
11306
+ );
10428
11307
  }
10429
11308
  );
10430
11309
  createContext("Table");
@@ -10591,4 +11470,4 @@ adminApi.enhanceEndpoints({
10591
11470
  });
10592
11471
  exports.Layouts = Layouts;
10593
11472
  exports.useTracking = useTracking;
10594
- //# sourceMappingURL=index-jwAq-BX--Cqx0wYbj.js.map
11473
+ //# sourceMappingURL=index-7Wlj8eA7-7OWx8SwS.js.map