bt-core-app 1.4.445 → 1.4.447

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.
@@ -5345,20 +5345,34 @@ function qE(e) {
5345
5345
  if (e != null) {
5346
5346
  if (Array.isArray(e.data))
5347
5347
  throw "Is an array";
5348
- return e.data;
5348
+ return e;
5349
5349
  }
5350
5350
  }
5351
5351
  function GE(e) {
5352
5352
  if (e != null) {
5353
5353
  if (!Array.isArray(e.data))
5354
5354
  throw "Not an array";
5355
- return e.data;
5355
+ return e;
5356
5356
  }
5357
5357
  }
5358
5358
  function ZE(e) {
5359
+ if (e != null) {
5360
+ if (Array.isArray(e.data))
5361
+ throw "Is an array";
5362
+ return e.data;
5363
+ }
5364
+ }
5365
+ function KE(e) {
5366
+ if (e != null) {
5367
+ if (!Array.isArray(e.data))
5368
+ throw "Not an array";
5369
+ return e.data;
5370
+ }
5371
+ }
5372
+ function XE(e) {
5359
5373
  return e.reduce((t, n) => t += n, 0);
5360
5374
  }
5361
- function KE(e, t, n = !0) {
5375
+ function JE(e, t, n = !0) {
5362
5376
  return e.sort(function(a, l) {
5363
5377
  return t ? typeof t == "string" ? bn(a, t) > bn(l, t) ? n === !0 ? 1 : -1 : bn(a, t) < bn(l, t) ? n === !0 ? -1 : 1 : 0 : t(a) > t(l) ? n === !0 ? 1 : -1 : t(a) < t(l) ? n === !0 ? -1 : 1 : 0 : a > l ? n === !0 ? 1 : -1 : a < l ? n === !0 ? -1 : 1 : 0;
5364
5378
  });
@@ -5379,7 +5393,7 @@ function Yw(e, t, n) {
5379
5393
  let a = new Image();
5380
5394
  a.onload = t, a.onerror = n, a.src = e;
5381
5395
  }
5382
- function XE(e, t) {
5396
+ function QE(e, t) {
5383
5397
  if (e == null || !Array.isArray(e))
5384
5398
  return e;
5385
5399
  if (t == null)
@@ -5400,7 +5414,7 @@ function jw(e, t) {
5400
5414
  r ? r.push(a) : n.set(l, [a]);
5401
5415
  }), n;
5402
5416
  }
5403
- function JE(e = "blitzItExtensionExists") {
5417
+ function eV(e = "blitzItExtensionExists") {
5404
5418
  try {
5405
5419
  var t = document.getElementById(e);
5406
5420
  return t != null;
@@ -5408,7 +5422,7 @@ function JE(e = "blitzItExtensionExists") {
5408
5422
  return console.log(lx(n)), !1;
5409
5423
  }
5410
5424
  }
5411
- function QE(e, t) {
5425
+ function tV(e, t) {
5412
5426
  if (!(e.lat == null || e.lng == null))
5413
5427
  return [
5414
5428
  { lat: e.lat - t, lng: e.lng + t },
@@ -5417,7 +5431,7 @@ function QE(e, t) {
5417
5431
  { lat: e.lat + t, lng: e.lng + t }
5418
5432
  ];
5419
5433
  }
5420
- function eV(e, t) {
5434
+ function nV(e, t) {
5421
5435
  if (!(e.lat == null || e.lng == null))
5422
5436
  return [
5423
5437
  { lat: e.lat - t * 2, lng: e.lng + t },
@@ -5426,7 +5440,7 @@ function eV(e, t) {
5426
5440
  { lat: e.lat, lng: e.lng + t }
5427
5441
  ];
5428
5442
  }
5429
- function tV(e, t) {
5443
+ function aV(e, t) {
5430
5444
  if (!(e.lat == null || e.lng == null))
5431
5445
  return [
5432
5446
  { lat: e.lat, lng: e.lng + t },
@@ -5435,7 +5449,7 @@ function tV(e, t) {
5435
5449
  { lat: e.lat + t * 2, lng: e.lng + t }
5436
5450
  ];
5437
5451
  }
5438
- function nV(e) {
5452
+ function lV(e) {
5439
5453
  var t = wg(e, !0);
5440
5454
  return t = t.toLowerCase(), t = t.replace(" victoria ", "vic"), t = t.replace(" queensland ", "qld"), t = t.replace(" new south wales ", "nsw"), t = t.replace(" northern territory ", "nt"), t = t.replace(" western australia ", "wa"), t = t.replace(" tasmania ", "tas"), t = t.replace(" south australia ", "sa"), t = t.replace(" australian captial territory ", "act"), t = t.replace(" & ", " and "), t = t.replace(" road", " rd"), t = t.replace(" street", " st"), t = t.replace(" lane", " ln"), t = t.replace(" alley", " aly"), t = t.replace(" arcade", " arc"), t = t.replace(" boulevard", " blvd"), t = t.replace(" court", " ct"), t = t.replace(" cove", " cv"), t = t.replace(" highway", " hwy"), t.replaceAll(" ", "");
5441
5455
  }
@@ -5463,7 +5477,7 @@ function Gw(e) {
5463
5477
  var t = "";
5464
5478
  return e.suburb != null && (t = t + e.suburb + " "), e.state != null && (t = t + e.state + " "), e.postcode != null && (t = t + e.postcode), t;
5465
5479
  }
5466
- async function aV(e, t = !0) {
5480
+ async function rV(e, t = !0) {
5467
5481
  return new Promise((n, a) => {
5468
5482
  e == null && a("no url given");
5469
5483
  var l = new Image();
@@ -5480,7 +5494,7 @@ async function aV(e, t = !0) {
5480
5494
  function Zw(e) {
5481
5495
  return e && e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase());
5482
5496
  }
5483
- function lV(e) {
5497
+ function iV(e) {
5484
5498
  if (e != null && typeof e == "object")
5485
5499
  for (var t in e)
5486
5500
  /^[A-Z]/.test(t) && Object.hasOwnProperty.call(e, t) && (e[t.charAt(0).toLowerCase() + t.substring(1)] = e[t], delete e[t]);
@@ -5499,25 +5513,25 @@ const mo = [
5499
5513
  { value: 7, short: "sat", values: ["sat", "saturday"] },
5500
5514
  { value: 0, short: "always", values: ["always", null, void 0] }
5501
5515
  ];
5502
- function rV(e) {
5516
+ function oV(e) {
5503
5517
  if (e == null)
5504
5518
  return 0;
5505
5519
  const t = e.replaceAll(" ", "").split(",").map((a) => a.toLowerCase()), n = mo.filter((a) => a.values.some((l) => t.some((r) => l == r))).map((a) => a.value);
5506
5520
  return n.length == 0 ? 8 : Math.min(...n);
5507
5521
  }
5508
- function iV(e) {
5522
+ function sV(e) {
5509
5523
  return e == null ? e : e.toLowerCase().replaceAll(" ", "").split(",").map((t) => {
5510
5524
  let n = mo.find((a) => a.values.some((l) => l == t));
5511
5525
  return n != null ? n.short : "";
5512
5526
  }).filter((t) => t != null && t.length > 0).toString();
5513
5527
  }
5514
- function oV(e, t) {
5528
+ function uV(e, t) {
5515
5529
  if (e == null || t == null)
5516
5530
  return !0;
5517
5531
  const n = e.replaceAll(" ", "").split(",").map((r) => r.toLowerCase()), a = t.replaceAll(" ", "").toLowerCase(), l = mo.find((r) => r.values.some((i) => i == a));
5518
5532
  return l != null && n.some((r) => r == l.short || l.values.some((i) => i == r));
5519
5533
  }
5520
- function sV(e, t) {
5534
+ function cV(e, t) {
5521
5535
  if (t == null)
5522
5536
  return e;
5523
5537
  let n = e ?? "";
@@ -5525,13 +5539,13 @@ function sV(e, t) {
5525
5539
  let a = [...new Set(n.replaceAll(" ", "").toLowerCase().split(",").map((l) => mo.find((r) => r.values.some((i) => i == l))).filter((l) => l != null).sort(fl.firstBy((l) => (l == null ? void 0 : l.value) ?? 0)).map((l) => l == null ? void 0 : l.short))].toString();
5526
5540
  return a.length > 0 ? a : void 0;
5527
5541
  }
5528
- function uV(e, t) {
5542
+ function dV(e, t) {
5529
5543
  if (t == null || e == null)
5530
5544
  return e;
5531
5545
  let n = e ?? "", a = t.replaceAll(" ", "").toLowerCase(), l = [...new Set(n.replaceAll(" ", "").toLowerCase().split(",").map((r) => mo.find((i) => i.values.some((o) => o == r && o != a))).filter((r) => r != null).sort(fl.firstBy((r) => (r == null ? void 0 : r.value) ?? 0)).map((r) => r == null ? void 0 : r.short))].toString();
5532
5546
  return l.length > 0 ? l : void 0;
5533
5547
  }
5534
- function cV(e, t) {
5548
+ function fV(e, t) {
5535
5549
  return e != null && Array.isArray(e) && e.length == t;
5536
5550
  }
5537
5551
  function Tt(e, t = 0) {
@@ -5543,7 +5557,7 @@ function Is(e) {
5543
5557
  function Xw(e) {
5544
5558
  return e == "0001-01-01T00:00:00Z";
5545
5559
  }
5546
- function dV() {
5560
+ function mV() {
5547
5561
  return (/* @__PURE__ */ new Date("0001-01-01T00:00:00Z")).getTime();
5548
5562
  }
5549
5563
  function Jw() {
@@ -5552,7 +5566,7 @@ function Jw() {
5552
5566
  function Qw(e, t) {
5553
5567
  return e == null || t == null ? !1 : e.split(":")[0] == t.split(":")[0];
5554
5568
  }
5555
- function fV(e, t) {
5569
+ function vV(e, t) {
5556
5570
  let n = "1", a = 0;
5557
5571
  if (a < t)
5558
5572
  do
@@ -5561,7 +5575,7 @@ function fV(e, t) {
5561
5575
  let l = Number.parseInt(n);
5562
5576
  return Math.round(e * l) / l;
5563
5577
  }
5564
- function mV(e, t) {
5578
+ function hV(e, t) {
5565
5579
  let n = "";
5566
5580
  return e != null && (Array.isArray(e) ? n = e.toString() : n = e), t != null && (ex(n, t) ? n = n.split(",").filter((a) => a != t).toString() : n != null ? n = `${n},${t}` : n = t), n != null && n.length > 0 ? n : null;
5567
5581
  }
@@ -5636,10 +5650,10 @@ function ix(e, t, n) {
5636
5650
  }
5637
5651
  return !1;
5638
5652
  }
5639
- function vV(e) {
5653
+ function gV(e) {
5640
5654
  return e != null ? e.replaceAll(" ", "").toLowerCase() : null;
5641
5655
  }
5642
- function hV(e = 2e3) {
5656
+ function yV(e = 2e3) {
5643
5657
  return new Promise((t) => {
5644
5658
  setTimeout(() => t(), e);
5645
5659
  });
@@ -5670,7 +5684,7 @@ function sx(e) {
5670
5684
  function ux(e) {
5671
5685
  return e.endsWith("ies") ? e.slice(0, e.length - 3) : e.endsWith("s") ? e.slice(0, e.length - 1) : e;
5672
5686
  }
5673
- function gV(e) {
5687
+ function pV(e) {
5674
5688
  return e == null ? void 0 : e.replaceAll(" ", "").toLowerCase();
5675
5689
  }
5676
5690
  function Lo(e) {
@@ -7159,7 +7173,7 @@ function gu() {
7159
7173
  const e = Es();
7160
7174
  return pt == null ? "" : (pt[e] ?? pt.development).auth ?? "";
7161
7175
  }
7162
- function yV(e, t) {
7176
+ function bV(e, t) {
7163
7177
  const n = Es();
7164
7178
  if (pt == null)
7165
7179
  return "";
@@ -7173,7 +7187,7 @@ function fx(e) {
7173
7187
  const n = pt[t] ?? pt.development;
7174
7188
  return e == null || n.other == null ? n.data ?? "" : n.other[e] ?? n.data ?? "";
7175
7189
  }
7176
- function pV() {
7190
+ function wV() {
7177
7191
  return pt;
7178
7192
  }
7179
7193
  function mx(e) {
@@ -7187,7 +7201,7 @@ function El() {
7187
7201
  const e = Cg();
7188
7202
  return (Io == null || Io.config.name != e) && (Io = Sg.createInstance({ name: e })), Io;
7189
7203
  }
7190
- function bV() {
7204
+ function xV() {
7191
7205
  async function e(l) {
7192
7206
  const r = El();
7193
7207
  (await r.keys()).filter((s) => s.startsWith(l)).forEach((s) => {
@@ -7211,7 +7225,7 @@ function bV() {
7211
7225
  };
7212
7226
  }
7213
7227
  let ts;
7214
- function wV(e) {
7228
+ function kV(e) {
7215
7229
  return ts(e)();
7216
7230
  }
7217
7231
  function Al(e) {
@@ -8111,7 +8125,7 @@ function fd(e) {
8111
8125
  saveItem: f
8112
8126
  };
8113
8127
  }
8114
- function xV() {
8128
+ function SV() {
8115
8129
  const { actionErrorMsg: e, actionLoadingMsg: t, clearErrors: n, isLoading: a, doAction: l, logError: r } = bh(
8116
8130
  {
8117
8131
  stringifyError: (o) => typeof o == "object" ? o.message : o == null ? void 0 : o.toString()
@@ -8640,7 +8654,7 @@ let rc;
8640
8654
  function _g() {
8641
8655
  return rc;
8642
8656
  }
8643
- function kV(e) {
8657
+ function CV(e) {
8644
8658
  const t = localStorage.getItem("cosmetics");
8645
8659
  let n;
8646
8660
  return t != null && t.length > 0 && (n = JSON.parse(t)), n ?? (n = {}), n.dark ?? (n.dark = e == null ? void 0 : e.dark), n.light ?? (n.light = e == null ? void 0 : e.light), n.theme ?? (n.theme = e == null ? void 0 : e.defaultTheme), {
@@ -9199,7 +9213,7 @@ const Pg = [
9199
9213
  { text: "Monthly", value: "Monthly" },
9200
9214
  { text: "Custom", value: "Custom" }
9201
9215
  ];
9202
- function SV() {
9216
+ function _V() {
9203
9217
  const { timeZone: e } = Ol();
9204
9218
  function t(n) {
9205
9219
  if (n.cron == null)
@@ -9487,7 +9501,7 @@ function Kx(e) {
9487
9501
  unpack: g
9488
9502
  };
9489
9503
  }
9490
- const CV = {
9504
+ const TV = {
9491
9505
  canExportCSV: !1
9492
9506
  };
9493
9507
  function Xx() {
@@ -9544,7 +9558,7 @@ function Xx() {
9544
9558
  };
9545
9559
  }
9546
9560
  let cc;
9547
- function _V() {
9561
+ function MV() {
9548
9562
  return cc;
9549
9563
  }
9550
9564
  function Jx(e) {
@@ -9667,7 +9681,7 @@ function Qx(e) {
9667
9681
  Ll.options.splice(t, 1);
9668
9682
  };
9669
9683
  }
9670
- function TV(e) {
9684
+ function DV(e) {
9671
9685
  const t = Ll == null ? void 0 : Ll.options.find((n) => n.dialogType == "items");
9672
9686
  return t == null ? Promise.resolve({
9673
9687
  isError: !0,
@@ -33190,7 +33204,7 @@ const w1 = /* @__PURE__ */ Je({
33190
33204
  }), null, 16, ["class", "dark", "modelValue"]));
33191
33205
  }
33192
33206
  }), x1 = /* @__PURE__ */ Gs(kL, [["__scopeId", "data-v-7c7b6c83"]]);
33193
- function MV() {
33207
+ function AV() {
33194
33208
  const e = js();
33195
33209
  return async (t) => {
33196
33210
  let n = O(t.multiple ? [] : void 0);
@@ -33250,7 +33264,7 @@ function MV() {
33250
33264
  }
33251
33265
  };
33252
33266
  }
33253
- function DV() {
33267
+ function LV() {
33254
33268
  const e = js();
33255
33269
  return async (t) => {
33256
33270
  let n = O(t.multiple ? [] : void 0);
@@ -33273,7 +33287,7 @@ function DV() {
33273
33287
  return [...n.value];
33274
33288
  };
33275
33289
  }
33276
- function AV() {
33290
+ function IV() {
33277
33291
  const e = js();
33278
33292
  return async (t) => {
33279
33293
  let n;
@@ -33295,7 +33309,7 @@ function AV() {
33295
33309
  return n;
33296
33310
  };
33297
33311
  }
33298
- function LV() {
33312
+ function EV() {
33299
33313
  const e = js();
33300
33314
  return async (t) => {
33301
33315
  let n = t == null ? void 0 : t.modelValue;
@@ -33320,7 +33334,7 @@ function LV() {
33320
33334
  };
33321
33335
  }
33322
33336
  var SL = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
33323
- function IV(e) {
33337
+ function VV(e) {
33324
33338
  function t(n) {
33325
33339
  var l;
33326
33340
  const a = n.matched.slice().reverse().find((r) => r.meta && r.meta.title);
@@ -33336,7 +33350,7 @@ function IV(e) {
33336
33350
  updateMeta: t
33337
33351
  };
33338
33352
  }
33339
- function EV(e) {
33353
+ function PV(e) {
33340
33354
  var r;
33341
33355
  const t = ((r = e == null ? void 0 : e.dates) == null ? void 0 : r.tzDate) ?? Vs().tzDate, n = wi();
33342
33356
  function a(i) {
@@ -33428,7 +33442,7 @@ const CL = {
33428
33442
  component: Ad
33429
33443
  };
33430
33444
  var TL = "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z", ML = "M20 21H4V10H6V19H18V10H20V21M3 3H21V9H3V3M9.5 11H14.5C14.78 11 15 11.22 15 11.5V13H9V11.5C9 11.22 9.22 11 9.5 11M5 5V7H19V5H5Z", DL = "M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z", AL = "M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z", LL = "M22,3H7C6.31,3 5.77,3.35 5.41,3.88L0,12L5.41,20.11C5.77,20.64 6.31,21 7,21H22A2,2 0 0,0 24,19V5A2,2 0 0,0 22,3M19,15.59L17.59,17L14,13.41L10.41,17L9,15.59L12.59,12L9,8.41L10.41,7L14,10.59L17.59,7L19,8.41L15.41,12", IL = "M19,3H18V1H16V3H8V1H6V3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H10V19H5V8H19V9H21V5A2,2 0 0,0 19,3M21.7,13.35L20.7,14.35L18.65,12.35L19.65,11.35C19.85,11.14 20.19,11.13 20.42,11.35L21.7,12.63C21.89,12.83 21.89,13.15 21.7,13.35M12,18.94L18.07,12.88L20.12,14.88L14.06,21H12V18.94Z", EL = "M20 5H17L15 3H9L7 5H4C2.9 5 2 5.9 2 7V19C2 20.11 2.9 21 4 21H20C21.11 21 22 20.11 22 19V7C22 5.9 21.11 5 20 5M5 12H7.1C7.65 9.29 10.29 7.55 13 8.1C13.76 8.25 14.43 8.59 15 9L13.56 10.45C13.11 10.17 12.58 10 12 10C10.74 10 9.6 10.8 9.18 12H11L8 15L5 12M16.91 14C16.36 16.71 13.72 18.45 11 17.9C10.25 17.74 9.58 17.41 9 17L10.44 15.55C10.9 15.83 11.43 16 12 16C13.27 16 14.41 15.2 14.83 14H13L16 11L19 14H16.91Z", VL = "M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z", PL = "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z", $L = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", BL = "M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z", NL = "M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", FL = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", RL = "M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z", zL = "M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z", HL = "M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z", OL = "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z", WL = "M22.67,12L18.18,16.5L15.67,14L17.65,12L15.67,10.04L18.18,7.53L22.67,12M12,1.33L16.47,5.82L13.96,8.33L12,6.35L10,8.33L7.5,5.82L12,1.33M12,22.67L7.53,18.18L10.04,15.67L12,17.65L14,15.67L16.5,18.18L12,22.67M1.33,12L5.82,7.5L8.33,10L6.35,12L8.33,13.96L5.82,16.47L1.33,12M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10Z", UL = "M16.24,3.56L21.19,8.5C21.97,9.29 21.97,10.55 21.19,11.34L12,20.53C10.44,22.09 7.91,22.09 6.34,20.53L2.81,17C2.03,16.21 2.03,14.95 2.81,14.16L13.41,3.56C14.2,2.78 15.46,2.78 16.24,3.56M4.22,15.58L7.76,19.11C8.54,19.9 9.8,19.9 10.59,19.11L14.12,15.58L9.17,10.63L4.22,15.58Z", YL = "M15.14,3C14.63,3 14.12,3.2 13.73,3.59L2.59,14.73C1.81,15.5 1.81,16.77 2.59,17.56L5.03,20H12.69L21.41,11.27C22.2,10.5 22.2,9.23 21.41,8.44L16.56,3.59C16.17,3.2 15.65,3 15.14,3M17,18L15,20H22V18", jL = "M14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2M15 16L13 20H10L12 16H9V11H15V16M13 9V3.5L18.5 9H13Z", qL = "M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z", GL = "M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15 10.12,20.93C10.31,21.13 10.31,21.44 10.12,21.64C10,21.74 9.88,21.79 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z", ZL = "M17 7L15.59 8.41L18.17 11H8V13H18.17L15.59 15.58L17 17L22 12M4 5H12V3H4C2.9 3 2 3.9 2 5V19C2 20.1 2.9 21 4 21H12V19H4V5Z", KL = "M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z", XL = "M7,10L12,15L17,10H7Z", JL = "M1.88,0.46L0.46,1.88L5.59,7H2V9H9V2H7V5.59M11,7V9H21V15H23V9A2,2 0 0,0 21,7M7,11V21A2,2 0 0,0 9,23H15V21H9V11M15.88,14.46L14.46,15.88L19.6,21H17V23H23V17H21V19.59", QL = "M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z", eI = "M18.66,2C18.4,2 18.16,2.09 17.97,2.28L16.13,4.13L19.88,7.88L21.72,6.03C22.11,5.64 22.11,5 21.72,4.63L19.38,2.28C19.18,2.09 18.91,2 18.66,2M3.28,4L2,5.28L8.5,11.75L4,16.25V20H7.75L12.25,15.5L18.72,22L20,20.72L13.5,14.25L9.75,10.5L3.28,4M15.06,5.19L11.03,9.22L14.78,12.97L18.81,8.94L15.06,5.19Z", tI = "M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z", nI = "M7.5,2C5.71,3.15 4.5,5.18 4.5,7.5C4.5,9.82 5.71,11.85 7.53,13C4.46,13 2,10.54 2,7.5A5.5,5.5 0 0,1 7.5,2M19.07,3.5L20.5,4.93L4.93,20.5L3.5,19.07L19.07,3.5M12.89,5.93L11.41,5L9.97,6L10.39,4.3L9,3.24L10.75,3.12L11.33,1.47L12,3.1L13.73,3.13L12.38,4.26L12.89,5.93M9.59,9.54L8.43,8.81L7.31,9.59L7.65,8.27L6.56,7.44L7.92,7.35L8.37,6.06L8.88,7.33L10.24,7.36L9.19,8.23L9.59,9.54M19,13.5A5.5,5.5 0 0,1 13.5,19C12.28,19 11.15,18.6 10.24,17.93L17.93,10.24C18.6,11.15 19,12.28 19,13.5M14.6,20.08L17.37,18.93L17.13,22.28L14.6,20.08M18.93,17.38L20.08,14.61L22.28,17.15L18.93,17.38M20.08,12.42L18.94,9.64L22.28,9.88L20.08,12.42M9.63,18.93L12.4,20.08L9.87,22.27L9.63,18.93Z", aI = "M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z", lI = "M16,5V18H21V5M4,18H9V5H4M10,18H15V5H10V18Z", rI = "M4,4H20V20H4V4M6,8V18H18V8H6Z";
33431
- function VV(e) {
33445
+ function $V(e) {
33432
33446
  return {
33433
33447
  defaultSet: "mdi",
33434
33448
  aliases: {
@@ -33694,7 +33708,7 @@ function k1(e, t, n) {
33694
33708
  ...m
33695
33709
  };
33696
33710
  }
33697
- function PV(e) {
33711
+ function BV(e) {
33698
33712
  const t = (e == null ? void 0 : e.iterationCount) ?? 20, n = O(), a = (e == null ? void 0 : e.onError) ?? (() => {
33699
33713
  });
33700
33714
  async function l(r) {
@@ -33717,7 +33731,7 @@ function PV(e) {
33717
33731
  loadingMsg: n
33718
33732
  };
33719
33733
  }
33720
- function $V(e) {
33734
+ function NV(e) {
33721
33735
  const t = O([]), n = O(!1);
33722
33736
  function a() {
33723
33737
  t.value.every((r) => r.loaded) && (e.onAllLoaded(), n.value = !1);
@@ -33795,7 +33809,7 @@ function sI() {
33795
33809
  let $v, Bv, Nv, Fv = !1;
33796
33810
  const zo = O(!1), Uu = O(!1), Yu = O(), Ho = O(), Rv = O(!1);
33797
33811
  let Fc;
33798
- function BV() {
33812
+ function FV() {
33799
33813
  return Fc;
33800
33814
  }
33801
33815
  function uI() {
@@ -33841,7 +33855,7 @@ function uI() {
33841
33855
  }, Fc;
33842
33856
  }
33843
33857
  const S1 = Symbol(), cI = Symbol(), C1 = Symbol(), _1 = Symbol();
33844
- function NV(e, t, n, a) {
33858
+ function RV(e, t, n, a) {
33845
33859
  var h;
33846
33860
  const l = Ye(S1), r = Ye(_1), i = Ye(C1), o = l.findItem(e.meta.nav ?? e.name) ?? void 0, s = e.meta.requiresAuth !== !1 || o != null && o.requiresAuth !== !1, d = e.query.isDemo === "true", c = e.meta.permissions ?? [], f = e.meta.subscriptions ?? [];
33847
33861
  function m() {
@@ -33866,9 +33880,9 @@ function NV(e, t, n, a) {
33866
33880
  else if (m(), l.updateNavigationChange(e, t), r.tryLogin() && Is((h = t.name) == null ? void 0 : h.toString()))
33867
33881
  return { name: a };
33868
33882
  }
33869
- function FV(e) {
33883
+ function zV(e) {
33870
33884
  const t = [];
33871
- return (e == null ? void 0 : e.required) == !0 && t.push((n) => !!n || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((n) => !!n || "Password is required"), t.push((n) => n != null && n.length > 9 || "Password must be 10 or more characters"), t.push((n) => /^(.*[a-z].*)$/.test(n) || "Password must contain a lowercase letter"), t.push((n) => /^(.*[A-Z].*)$/.test(n) || "Password must contain an uppercase letter"), t.push((n) => /^(.*\d.*)$/.test(n) || "Password must contain a number"), t.push((n) => /^(.*\[#?!@$%^&*-].*)$/.test(n) || "Password must contain a special character like #?!@$%^&*-")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((n) => !!n || "Email is required"), t.push((n) => sx(n) || "Email must be valid")), t;
33885
+ return (e == null ? void 0 : e.required) == !0 && t.push((n) => !!n || "Field is required"), (e == null ? void 0 : e.otherRules) != null && (Array.isArray(e == null ? void 0 : e.otherRules) ? t.push(...e.otherRules) : t.push(e.otherRules)), (e == null ? void 0 : e.forPassword) == !0 && (t.push((n) => !!n || "Password is required"), t.push((n) => n != null && n.length > 9 || "Password must be 10 or more characters"), t.push((n) => /^(.*[a-z].*)$/.test(n) || "Password must contain a lowercase letter"), t.push((n) => /^(.*[A-Z].*)$/.test(n) || "Password must contain an uppercase letter"), t.push((n) => /^(.*\d.*)$/.test(n) || "Password must contain a number"), t.push((n) => /^(.*[#?!@\$%\^\&*\)\(+=._-].*)$/.test(n) || "Password must contain a special character like # ? ! @ $ % ^ & * - +")), (e == null ? void 0 : e.forEmail) == !0 && (t.push((n) => !!n || "Email is required"), t.push((n) => sx(n) || "Email must be valid")), t;
33872
33886
  }
33873
33887
  const dI = { class: "d-flex align-center justify-center h-100 w-100" }, fI = { class: "d-flex align-center justify-center h-100 w-100" }, mI = /* @__PURE__ */ Je({
33874
33888
  __name: "BT-Avatar",
@@ -40340,7 +40354,7 @@ const $E = /* @__PURE__ */ Je({
40340
40354
  return (l, r) => ($(), ie("span", null, Be(l.prefix) + Be(a.value) + Be(l.suffix), 1));
40341
40355
  }
40342
40356
  });
40343
- function RV(e) {
40357
+ function HV(e) {
40344
40358
  return {
40345
40359
  install(t, n) {
40346
40360
  var c, f, m, h, v, g;
@@ -40376,7 +40390,7 @@ function RV(e) {
40376
40390
  }
40377
40391
  };
40378
40392
  }
40379
- const RE = { class: "d-flex align-center" }, zV = /* @__PURE__ */ Je({
40393
+ const RE = { class: "d-flex align-center" }, OV = /* @__PURE__ */ Je({
40380
40394
  __name: "BT-Dialog-Select",
40381
40395
  setup(e) {
40382
40396
  const t = O(!1), n = O({}), a = O([]), { getValue: l } = Ip();
@@ -40578,21 +40592,21 @@ const RE = { class: "d-flex align-center" }, zV = /* @__PURE__ */ Je({
40578
40592
  }
40579
40593
  });
40580
40594
  export {
40581
- zV as BTDialogSelect,
40595
+ OV as BTDialogSelect,
40582
40596
  ax as DataURIToBlob,
40583
- sV as addWeekday,
40597
+ cV as addWeekday,
40584
40598
  on as appendUrl,
40585
40599
  _1 as authKey,
40586
40600
  Kw as capitalizeWords,
40587
40601
  Yw as checkImage,
40588
- gV as compareString,
40602
+ pV as compareString,
40589
40603
  nx as containsSearch,
40590
- oV as containsWeekday,
40604
+ uV as containsWeekday,
40591
40605
  dd as copyDeep,
40592
40606
  tx as copyItemByAlphabet,
40593
40607
  px as createApi,
40594
40608
  bx as createAuth,
40595
- RV as createCore,
40609
+ HV as createCore,
40596
40610
  Sx as createCosmetics,
40597
40611
  Zx as createDates,
40598
40612
  Jx as createDemo,
@@ -40607,30 +40621,32 @@ export {
40607
40621
  tS as createVuetify,
40608
40622
  mm as createWholeLastUpdateStoreDefinition,
40609
40623
  ex as csvContains,
40610
- CV as csvDefaults,
40624
+ TV as csvDefaults,
40611
40625
  xg as deepSelect,
40612
40626
  C1 as demoKey,
40613
- XE as distinct,
40614
- GE as expectArray,
40615
- qE as expectSingle,
40616
- JE as extensionExists,
40627
+ QE as distinct,
40628
+ KE as expectArray,
40629
+ GE as expectArrayReturn,
40630
+ ZE as expectSingle,
40631
+ qE as expectSingleReturn,
40632
+ eV as extensionExists,
40617
40633
  lx as extractErrorDescription,
40618
40634
  Zw as fromCamelCase,
40619
- QE as getAreaAround,
40620
- eV as getAreaToLeft,
40621
- tV as getAreaToRight,
40622
- nV as getGoogleMapsLocationLine,
40623
- aV as getImageData,
40635
+ tV as getAreaAround,
40636
+ nV as getAreaToLeft,
40637
+ aV as getAreaToRight,
40638
+ lV as getGoogleMapsLocationLine,
40639
+ rV as getImageData,
40624
40640
  wg as getLocationLine,
40625
40641
  qw as getLocationLineOne,
40626
40642
  Gw as getLocationLineTwo,
40627
- dV as getMinDate,
40643
+ mV as getMinDate,
40628
40644
  Jw as getMinDateString,
40629
40645
  rx as getRandomColor,
40630
40646
  jw as group,
40631
- NV as guardRoute,
40647
+ RV as guardRoute,
40632
40648
  ix as hasSearch,
40633
- cV as isArrayOfLength,
40649
+ fV as isArrayOfLength,
40634
40650
  Tt as isLengthyArray,
40635
40651
  Xw as isMinDate,
40636
40652
  Is as isNullOrEmpty,
@@ -40639,17 +40655,17 @@ export {
40639
40655
  Uw as jwtEncrypt,
40640
40656
  S1 as navigationKey,
40641
40657
  bn as nestedValue,
40642
- KE as orderBy,
40658
+ JE as orderBy,
40643
40659
  Qx as registerDialog,
40644
- uV as removeWeekday,
40645
- fV as roundTo,
40660
+ dV as removeWeekday,
40661
+ vV as roundTo,
40646
40662
  ux as singularize,
40647
40663
  ox as splitArray,
40648
- ZE as sum,
40649
- lV as toCamelCase,
40650
- vV as toCompareString,
40651
- mV as toggleCSV,
40652
- hV as twiddleThumbs,
40664
+ XE as sum,
40665
+ iV as toCamelCase,
40666
+ gV as toCompareString,
40667
+ hV as toggleCSV,
40668
+ yV as twiddleThumbs,
40653
40669
  cI as urlsKey,
40654
40670
  fd as useActions,
40655
40671
  bh as useActionsTracker,
@@ -40661,48 +40677,48 @@ export {
40661
40677
  _g as useCosmetics,
40662
40678
  Gx as useCron,
40663
40679
  Kx as useCronAdjustments,
40664
- SV as useCronPredictor,
40680
+ _V as useCronPredictor,
40665
40681
  Es as useCurrentEnv,
40666
40682
  fx as useDataUrl,
40667
40683
  Vs as useDates,
40668
40684
  Cg as useDbName,
40669
- _V as useDemo,
40670
- TV as useDialogSelect,
40671
- IV as useDocumentMeta,
40685
+ MV as useDemo,
40686
+ DV as useDialogSelect,
40687
+ VV as useDocumentMeta,
40672
40688
  wx as useDraggable,
40673
40689
  wi as useFilters,
40674
- EV as useGraphing,
40690
+ PV as useGraphing,
40675
40691
  nf as useHeights,
40676
- VV as useIcons,
40692
+ $V as useIcons,
40677
40693
  z0 as useId,
40678
40694
  jE as useIds,
40679
- yV as useImageUrl,
40695
+ bV as useImageUrl,
40680
40696
  k1 as useItem,
40681
- PV as useIterating,
40697
+ BV as useIterating,
40682
40698
  Qi as useList,
40683
- $V as useLists,
40684
- xV as useLocalActions,
40685
- bV as useLocalCache,
40686
- kV as useLocalCosmetics,
40699
+ NV as useLists,
40700
+ SV as useLocalActions,
40701
+ xV as useLocalCache,
40702
+ CV as useLocalCosmetics,
40687
40703
  El as useLocalDb,
40688
40704
  sI as useMenu,
40689
40705
  Lp as useNavBack,
40690
40706
  wr as useNavigation,
40691
40707
  Ip as useNested,
40692
- BV as usePWA,
40708
+ FV as usePWA,
40693
40709
  qs as usePresets,
40694
40710
  kx as useResizable,
40695
- FV as useRules,
40696
- AV as useSelectDate,
40697
- MV as useSelectItem,
40698
- DV as useSelectItems,
40699
- LV as useSelectNumber,
40700
- wV as useStore,
40711
+ zV as useRules,
40712
+ IV as useSelectDate,
40713
+ AV as useSelectItem,
40714
+ LV as useSelectItems,
40715
+ EV as useSelectNumber,
40716
+ kV as useStore,
40701
40717
  Al as useStoreDefinition,
40702
40718
  iI as useTracker,
40703
- pV as useUrls,
40719
+ wV as useUrls,
40704
40720
  sx as validEmail,
40705
40721
  mo as weekdayPairs,
40706
- iV as weekdayShortName,
40707
- rV as weekdayValue
40722
+ sV as weekdayShortName,
40723
+ oV as weekdayValue
40708
40724
  };
package/dist/index.d.ts CHANGED
@@ -558,8 +558,12 @@ declare type Environment = 'production' | 'staging' | 'development';
558
558
 
559
559
  export declare function expectArray<T>(res: StoreGetReturn<T | T[]> | StoreGetAllReturn<T> | undefined): T[] | undefined;
560
560
 
561
+ export declare function expectArrayReturn<T>(res: StoreGetReturn<T | T[]> | undefined): StoreGetReturn<T[]> | undefined;
562
+
561
563
  export declare function expectSingle<T>(res: StoreGetReturn<T | T[]> | StoreGetAllReturn<T> | undefined): T | undefined;
562
564
 
565
+ export declare function expectSingleReturn<T>(res: StoreGetReturn<T | T[]> | undefined): StoreGetReturn<T> | undefined;
566
+
563
567
  export declare interface ExportToCSVOptions {
564
568
  items: any[];
565
569
  headers?: TableColumn[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.445",
3
+ "version": "1.4.447",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {