@coffer-org/web 2.5.5 → 2.6.0

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 (50) hide show
  1. package/dist/assets/{ChatWidget-BJkTiD5X.js → ChatWidget-D_mykvfd.js} +1 -1
  2. package/dist/assets/{ExtendReasonInfo-CiNt5Y3V.js → ExtendReasonInfo-DvfVQWJR.js} +1 -1
  3. package/dist/assets/NewRecordView-BfyaaO_5.js +1 -0
  4. package/dist/assets/{PluginSettingsPage-i-OMHgqv.js → PluginSettingsPage-EhIpvmcl.js} +1 -1
  5. package/dist/assets/{SettingsForm-DhXLCpGR.js → SettingsForm-Dwry8Oe1.js} +1 -1
  6. package/dist/assets/{Toolbar-tBn9ARi5.js → Toolbar-C5S0_fah.js} +1 -1
  7. package/dist/assets/{chrome-izijxuBU.js → chrome-_m2AYIjS.js} +1 -1
  8. package/dist/assets/{data-size-ncAO72C8.js → data-size-BFf4oF5n.js} +1 -1
  9. package/dist/assets/{dispatch-BR6ES1YV.js → dispatch-Bpnn2XRC.js} +1 -1
  10. package/dist/assets/{extend-CK_8aGP-.js → extend-C4MFviaS.js} +1 -1
  11. package/dist/assets/{field-frame-DRn_YTLz.js → field-frame-cFE-u56I.js} +1 -1
  12. package/dist/assets/{fields-BbsbCIvX.js → fields-fE_vzhqS.js} +1 -1
  13. package/dist/assets/{index-pM8Du-1p.js → index-wCQxsLAS.js} +11 -11
  14. package/dist/assets/{shelf-DPQYW8n7.js → shelf-BU6Jrxdn.js} +1 -1
  15. package/dist/assets/src-0vuf5cD2.js +1 -0
  16. package/dist/assets/{src-C99L3laQ.js → src-97trQW1e.js} +1 -1
  17. package/dist/assets/{src-5zhuOMm-.js → src-B5J6a7xU.js} +1 -1
  18. package/dist/assets/{src-DnlNLa7L.js → src-BG7tifqi.js} +2 -2
  19. package/dist/assets/{src-D3BnFRPS.js → src-BckYqSba.js} +1 -1
  20. package/dist/assets/{src-CuZmkqRm.js → src-BlTOHYZL.js} +1 -1
  21. package/dist/assets/{src-DdcjPE8f.js → src-BscxyzWm.js} +1 -1
  22. package/dist/assets/{src-DcsqR-q0.js → src-BwT6fU6Z.js} +1 -1
  23. package/dist/assets/{src-CdtEUqtE.js → src-C8SGMFDC.js} +1 -1
  24. package/dist/assets/src-C9oB3ukn.js +1 -0
  25. package/dist/assets/src-CK9rs1Ky.js +1 -0
  26. package/dist/assets/{src-N4vEUcQu.js → src-CMbUQsqp.js} +1 -1
  27. package/dist/assets/{src-DqtBktfY.js → src-CNbzboJN.js} +1 -1
  28. package/dist/assets/{src-BLvQI8Un.js → src-CREOT_7V.js} +1 -1
  29. package/dist/assets/{src-BJDg-3KB.js → src-CTajJz2B.js} +1 -1
  30. package/dist/assets/{src-C7_YQgbA.js → src-CVXUq44N.js} +1 -1
  31. package/dist/assets/{src-BN2zezj6.js → src-CcrtnEIQ.js} +1 -1
  32. package/dist/assets/{src-Ck2r9PdK.js → src-ClmEI4bL.js} +1 -1
  33. package/dist/assets/{src-Dajw9Az6.js → src-CpLYaHc_.js} +1 -1
  34. package/dist/assets/{src-CX8lJ_Bd.js → src-DPq_gXsF.js} +1 -1
  35. package/dist/assets/{src-yWzIeLL6.js → src-Dr1EPJgR.js} +1 -1
  36. package/dist/assets/{src-DF0JjvAL.js → src-XWTmD-Mn.js} +1 -1
  37. package/dist/assets/{src-BhzIt6X_.js → src-ethXcfjn.js} +1 -1
  38. package/dist/assets/src-gM-6BSUd.js +1 -0
  39. package/dist/assets/{src-KGPu1fwh.js → src-qvD2ou1m.js} +1 -1
  40. package/dist/assets/{ui-CAcWu8py.js → ui-Bl4kUgYS.js} +1 -1
  41. package/dist/assets/{ui-BRZ7wpuB.js → ui-DnlLcAtd.js} +1 -1
  42. package/dist/assets/{ui-DwQMDUGA.js → ui-QD_F7vze.js} +2 -2
  43. package/dist/index.html +11 -11
  44. package/dist-vendor/web-sdk.js +246 -212
  45. package/package.json +1 -1
  46. package/dist/assets/NewRecordView-DOotbZbV.js +0 -1
  47. package/dist/assets/src-BJeZ0fIl.js +0 -1
  48. package/dist/assets/src-Blz6vbqg.js +0 -1
  49. package/dist/assets/src-COqoTMyz.js +0 -1
  50. package/dist/assets/src-D0IOasYV.js +0 -1
@@ -3433,6 +3433,8 @@ function K(e) {
3433
3433
  unique: n.unique,
3434
3434
  fixed: n.fixed,
3435
3435
  exts: n.exts,
3436
+ ext: n.ext,
3437
+ maxBytes: n.maxBytes,
3436
3438
  lead: n.lead,
3437
3439
  by: n.by,
3438
3440
  min: n.min,
@@ -3640,6 +3642,37 @@ function jo(e) {
3640
3642
  });
3641
3643
  }
3642
3644
  function Mo(e) {
3645
+ return e.includes("\0") || e.includes("�");
3646
+ }
3647
+ function No(e) {
3648
+ let t = K(e), n = t.required ?? !1, r = t.ext ?? "txt", i = t.maxBytes ?? 262144, a = F(uo()).superRefine((e, t) => {
3649
+ if (Mo(e)) {
3650
+ t.addIssue({
3651
+ code: B.custom,
3652
+ message: H("source_binary")
3653
+ });
3654
+ return;
3655
+ }
3656
+ new TextEncoder().encode(e).length > i && t.addIssue({
3657
+ code: B.custom,
3658
+ message: H("source_too_large", { maxBytes: i })
3659
+ });
3660
+ });
3661
+ return J(t, {
3662
+ kind: "source",
3663
+ label: t.label ?? "",
3664
+ required: n,
3665
+ prim: "text",
3666
+ column: "text",
3667
+ hints: {
3668
+ ext: r,
3669
+ maxBytes: i,
3670
+ noEditControl: !0
3671
+ },
3672
+ zod: G(a, n)
3673
+ });
3674
+ }
3675
+ function Po(e) {
3643
3676
  let t = K(e), n = t.required ?? !1, r = e.rules?.max ?? 5, i = V(lo()).int({ message: H("int") }).min(1, { message: H("min", { min: 1 }) }).max(r, { message: H("max", { max: r }) });
3644
3677
  return J(t, Y({
3645
3678
  kind: "rating",
@@ -3651,7 +3684,7 @@ function Mo(e) {
3651
3684
  zod: G(i, n)
3652
3685
  }, t.multiple ?? !1));
3653
3686
  }
3654
- function No(e) {
3687
+ function Fo(e) {
3655
3688
  let t = K(e), n = t.required ?? !1, r = e.rules?.max ?? 604800, i = e.rules?.step ?? 60, a = V(lo()).int({ message: H("int") }).min(0, { message: H("min", { min: 0 }) }).max(r, { message: H("max", { max: r }) });
3656
3689
  return J(t, Y({
3657
3690
  kind: "duration",
@@ -3666,8 +3699,8 @@ function No(e) {
3666
3699
  zod: G(a, n)
3667
3700
  }, t.multiple ?? !1));
3668
3701
  }
3669
- function Po(e) {
3670
- let t = K(e), n = vs({
3702
+ function Io(e) {
3703
+ let t = K(e), n = bs({
3671
3704
  label: e.label,
3672
3705
  rules: e.rules,
3673
3706
  view: e.view
@@ -3682,9 +3715,9 @@ function Po(e) {
3682
3715
  }
3683
3716
  });
3684
3717
  }
3685
- var Fo = gs, Io = _s;
3686
- function Lo(e) {
3687
- return Fo({
3718
+ var Lo = vs, Ro = ys;
3719
+ function zo(e) {
3720
+ return Lo({
3688
3721
  ...e,
3689
3722
  rules: {
3690
3723
  min: 0,
@@ -3693,8 +3726,8 @@ function Lo(e) {
3693
3726
  }
3694
3727
  });
3695
3728
  }
3696
- function Ro(e) {
3697
- return Io({
3729
+ function Bo(e) {
3730
+ return Ro({
3698
3731
  ...e,
3699
3732
  rules: {
3700
3733
  min: 1900,
@@ -3703,8 +3736,8 @@ function Ro(e) {
3703
3736
  }
3704
3737
  });
3705
3738
  }
3706
- function zo(e) {
3707
- let t = K(e), n = _s({
3739
+ function Vo(e) {
3740
+ let t = K(e), n = ys({
3708
3741
  label: e.label,
3709
3742
  rules: {
3710
3743
  min: 1,
@@ -3721,7 +3754,7 @@ function zo(e) {
3721
3754
  }
3722
3755
  });
3723
3756
  }
3724
- function Bo(e) {
3757
+ function Ho(e) {
3725
3758
  let t = K(e), n = t.required ?? !1, r = fo(z({
3726
3759
  w: L().int().nonnegative(),
3727
3760
  h: L().int().nonnegative(),
@@ -3742,13 +3775,13 @@ function Bo(e) {
3742
3775
  zod: G(r, n)
3743
3776
  });
3744
3777
  }
3745
- function Vo(e) {
3746
- return Cs({
3778
+ function Uo(e) {
3779
+ return Ts({
3747
3780
  ...e,
3748
3781
  options: "countries"
3749
3782
  });
3750
3783
  }
3751
- var Ho = {
3784
+ var Wo = {
3752
3785
  email: po,
3753
3786
  tel: mo,
3754
3787
  slug: yo,
@@ -3761,17 +3794,18 @@ var Ho = {
3761
3794
  tags: ko,
3762
3795
  markdown: Ao,
3763
3796
  snippet: jo,
3764
- rating: Mo,
3765
- duration: No,
3766
- reminder: Po,
3767
- percent: Lo,
3768
- year: Ro,
3769
- weight: zo,
3770
- dimensions: Bo,
3771
- country: Vo,
3797
+ source: No,
3798
+ rating: Po,
3799
+ duration: Fo,
3800
+ reminder: Io,
3801
+ percent: zo,
3802
+ year: Bo,
3803
+ weight: Vo,
3804
+ dimensions: Ho,
3805
+ country: Uo,
3772
3806
  internalApiToken: go,
3773
3807
  internalOauthGrants: _o
3774
- }, Uo = /* @__PURE__ */ t(((e, t) => {
3808
+ }, Go = /* @__PURE__ */ t(((e, t) => {
3775
3809
  t.exports = {
3776
3810
  aa: {
3777
3811
  name: "Afar",
@@ -4506,8 +4540,8 @@ var Ho = {
4506
4540
  nativeName: "isiZulu"
4507
4541
  }
4508
4542
  };
4509
- })), Wo = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
4510
- var n = Uo(), r = {}, i = {}, a = [], o = [], s = [];
4543
+ })), Ko = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
4544
+ var n = Go(), r = {}, i = {}, a = [], o = [], s = [];
4511
4545
  for (let e in n) {
4512
4546
  let { name: t, nativeName: c } = n[e];
4513
4547
  r[e] = i[t.toLowerCase()] = i[c.toLowerCase()] = {
@@ -4547,13 +4581,13 @@ var Ho = {
4547
4581
  }
4548
4582
  };
4549
4583
  })))(), 1);
4550
- Wo.default.getAllCodes().map((e) => ({
4584
+ Ko.default.getAllCodes().map((e) => ({
4551
4585
  code: e,
4552
- name: Wo.default.getNativeName(e)
4586
+ name: Ko.default.getNativeName(e)
4553
4587
  })).sort((e, t) => e.name.localeCompare(t.name));
4554
4588
  //#endregion
4555
4589
  //#region ../sdk/src/fields.ts
4556
- var Go = (e) => "key" in e && !("el" in e), Ko = (e) => "el" in e && e.el === "static", qo = (e) => "el" in e && e.el === "group", Jo = (e) => "el" in e && e.el === "divider", Yo = (e) => "el" in e && e.el === "info", Xo = (e) => "el" in e && e.el === "button";
4590
+ var qo = (e) => "key" in e && !("el" in e), Jo = (e) => "el" in e && e.el === "static", Yo = (e) => "el" in e && e.el === "group", Xo = (e) => "el" in e && e.el === "divider", Zo = (e) => "el" in e && e.el === "info", Qo = (e) => "el" in e && e.el === "button";
4557
4591
  function q(e) {
4558
4592
  let t = e.rules ?? {}, n = e.view ?? {};
4559
4593
  if (e.key) {
@@ -4575,7 +4609,7 @@ function q(e) {
4575
4609
  fields: e.fields
4576
4610
  };
4577
4611
  }
4578
- function Zo(e) {
4612
+ function $o(e) {
4579
4613
  return q({
4580
4614
  label: e.label,
4581
4615
  icon: e.icon,
@@ -4583,7 +4617,7 @@ function Zo(e) {
4583
4617
  view: { display: "scroll" }
4584
4618
  });
4585
4619
  }
4586
- function Qo(e) {
4620
+ function es(e) {
4587
4621
  return q({
4588
4622
  key: e.key,
4589
4623
  label: e.label,
@@ -4595,10 +4629,10 @@ function Qo(e) {
4595
4629
  view: { display: "table" }
4596
4630
  });
4597
4631
  }
4598
- function $o(e) {
4632
+ function ts(e) {
4599
4633
  let t = [];
4600
4634
  return e.fields.forEach((e, n) => {
4601
- n > 0 && t.push(as()), t.push(...e);
4635
+ n > 0 && t.push(ss()), t.push(...e);
4602
4636
  }), q({
4603
4637
  label: e.label,
4604
4638
  icon: e.icon,
@@ -4606,7 +4640,7 @@ function $o(e) {
4606
4640
  view: { display: "sheet" }
4607
4641
  });
4608
4642
  }
4609
- function es(e) {
4643
+ function ns(e) {
4610
4644
  return q({
4611
4645
  key: e.key,
4612
4646
  label: e.label ?? e.key,
@@ -4617,14 +4651,14 @@ function es(e) {
4617
4651
  X({ key: "username" }),
4618
4652
  X({ key: "password" }),
4619
4653
  X({ key: "host" }),
4620
- _s({ key: "port" }),
4654
+ ys({ key: "port" }),
4621
4655
  X({ key: "path" }),
4622
4656
  X({ key: "query" }),
4623
4657
  X({ key: "hash" })
4624
4658
  ]
4625
4659
  });
4626
4660
  }
4627
- function ts(e) {
4661
+ function rs(e) {
4628
4662
  if (e.fixed && e.by.type.prim !== "select") throw Error(`[field.keyed] fixed requires by=select (enumerated), got '${e.by.type.prim}'`);
4629
4663
  return {
4630
4664
  ...(e.container ?? q)({
@@ -4639,20 +4673,20 @@ function ts(e) {
4639
4673
  fixed: e.fixed
4640
4674
  };
4641
4675
  }
4642
- var ns = (e) => e.key != null && e.multiple === !0, rs = (e) => e.key != null && e.multiple !== !0;
4643
- function is() {
4676
+ var is = (e) => e.key != null && e.multiple === !0, as = (e) => e.key != null && e.multiple !== !0;
4677
+ function os() {
4644
4678
  return { el: "divider" };
4645
4679
  }
4646
- function as() {
4680
+ function ss() {
4647
4681
  return { el: "break" };
4648
4682
  }
4649
- function os(e) {
4683
+ function cs(e) {
4650
4684
  return {
4651
4685
  el: "info",
4652
4686
  text: e
4653
4687
  };
4654
4688
  }
4655
- function ss(e) {
4689
+ function ls(e) {
4656
4690
  return {
4657
4691
  el: "button",
4658
4692
  label: e.label,
@@ -4702,17 +4736,17 @@ function J(e, t) {
4702
4736
  value: e.value
4703
4737
  } : n;
4704
4738
  }
4705
- function cs(e) {
4739
+ function us(e) {
4706
4740
  return e === "today" ? (/* @__PURE__ */ new Date()).toISOString().slice(0, 10) : e;
4707
4741
  }
4708
- function ls(e) {
4742
+ function ds(e) {
4709
4743
  try {
4710
4744
  return JSON.parse(e);
4711
4745
  } catch {
4712
4746
  return;
4713
4747
  }
4714
4748
  }
4715
- function us(e) {
4749
+ function fs(e) {
4716
4750
  return R().superRefine((t, n) => {
4717
4751
  let r;
4718
4752
  if (Array.isArray(t)) r = t;
@@ -4750,7 +4784,7 @@ function us(e) {
4750
4784
  }
4751
4785
  function Y(e, t) {
4752
4786
  if (!t) return e;
4753
- let n = us(e.zod);
4787
+ let n = fs(e.zod);
4754
4788
  return {
4755
4789
  ...e,
4756
4790
  column: "text",
@@ -4777,7 +4811,7 @@ function X(e) {
4777
4811
  zod: G(a, n)
4778
4812
  }, t.multiple ?? !1));
4779
4813
  }
4780
- function ds(e, t, n) {
4814
+ function ps(e, t, n) {
4781
4815
  let r = e.required ?? !1, i = F(uo());
4782
4816
  return e.required === !0 && (i = i.min(1, { message: H("min_length", { min: 1 }) })), J(e, {
4783
4817
  kind: t,
@@ -4790,12 +4824,12 @@ function ds(e, t, n) {
4790
4824
  ...e.default === void 0 ? {} : { default: e.default }
4791
4825
  });
4792
4826
  }
4793
- function fs(e) {
4794
- return ds(K(e), "localDir");
4827
+ function ms(e) {
4828
+ return ps(K(e), "localDir");
4795
4829
  }
4796
- function ps(e) {
4830
+ function hs(e) {
4797
4831
  let t = K(e);
4798
- return ds(t, "localFile", t.exts);
4832
+ return ps(t, "localFile", t.exts);
4799
4833
  }
4800
4834
  function Z(e) {
4801
4835
  return J(K(e), {
@@ -4808,7 +4842,7 @@ function Z(e) {
4808
4842
  kind: "textarea"
4809
4843
  });
4810
4844
  }
4811
- function ms(e) {
4845
+ function gs(e) {
4812
4846
  return J(K(e), {
4813
4847
  ...Z({
4814
4848
  ...e,
@@ -4818,7 +4852,7 @@ function ms(e) {
4818
4852
  kind: "i18n"
4819
4853
  });
4820
4854
  }
4821
- function hs(e) {
4855
+ function _s(e) {
4822
4856
  return J(K(e), {
4823
4857
  ...Z({
4824
4858
  ...e,
@@ -4828,7 +4862,7 @@ function hs(e) {
4828
4862
  kind: "smalltext"
4829
4863
  });
4830
4864
  }
4831
- function gs(e) {
4865
+ function vs(e) {
4832
4866
  let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = V(lo());
4833
4867
  return r.min != null && (i = i.min(r.min, { message: H("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: H("max", { max: r.max }) })), J(t, Y({
4834
4868
  kind: "number",
@@ -4844,7 +4878,7 @@ function gs(e) {
4844
4878
  zod: G(i, n)
4845
4879
  }, t.multiple ?? !1));
4846
4880
  }
4847
- function _s(e) {
4881
+ function ys(e) {
4848
4882
  let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = V(lo()).int({ message: H("int") });
4849
4883
  return r.min != null && (i = i.min(r.min, { message: H("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: H("max", { max: r.max }) })), J(t, Y({
4850
4884
  kind: "number",
@@ -4860,7 +4894,7 @@ function _s(e) {
4860
4894
  zod: G(i, n)
4861
4895
  }, t.multiple ?? !1));
4862
4896
  }
4863
- function vs(e) {
4897
+ function bs(e) {
4864
4898
  let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "day", i;
4865
4899
  return i = r === "year" ? F(U()).regex(/^\d{4}$/, { message: H("date_format") }).superRefine((e, n) => {
4866
4900
  t.min && e < t.min && n.addIssue({
@@ -4879,12 +4913,12 @@ function vs(e) {
4879
4913
  message: H("date_max", { max: t.max })
4880
4914
  });
4881
4915
  }) : F(U()).regex(/^\d{4}-\d{2}-\d{2}$/, { message: H("date_format") }).superRefine((e, n) => {
4882
- t.min && e < cs(t.min) && n.addIssue({
4916
+ t.min && e < us(t.min) && n.addIssue({
4883
4917
  code: B.custom,
4884
- message: H("date_min", { min: cs(t.min) })
4885
- }), t.max && e > cs(t.max) && n.addIssue({
4918
+ message: H("date_min", { min: us(t.min) })
4919
+ }), t.max && e > us(t.max) && n.addIssue({
4886
4920
  code: B.custom,
4887
- message: H("date_max", { max: cs(t.max) })
4921
+ message: H("date_max", { max: us(t.max) })
4888
4922
  });
4889
4923
  }), J(t, Y({
4890
4924
  kind: "date",
@@ -4900,7 +4934,7 @@ function vs(e) {
4900
4934
  zod: G(i, n)
4901
4935
  }, t.multiple ?? !1));
4902
4936
  }
4903
- function ys(e) {
4937
+ function xs(e) {
4904
4938
  let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "second", i = F(U()).regex({
4905
4939
  hour: /^([01]\d|2[0-3])$/,
4906
4940
  minute: /^([01]\d|2[0-3]):[0-5]\d$/,
@@ -4916,7 +4950,7 @@ function ys(e) {
4916
4950
  zod: G(i, n)
4917
4951
  }, t.multiple ?? !1));
4918
4952
  }
4919
- function bs(e) {
4953
+ function Ss(e) {
4920
4954
  let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "minute", i = F(U()).regex({
4921
4955
  hour: /^\d{4}-\d{2}-\d{2}T([01]\d|2[0-3])$/,
4922
4956
  minute: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,
@@ -4932,7 +4966,7 @@ function bs(e) {
4932
4966
  zod: G(i, n)
4933
4967
  }, t.multiple ?? !1));
4934
4968
  }
4935
- function xs(e) {
4969
+ function Cs(e) {
4936
4970
  let t = K(e), n = $a((e) => e === "true" || e === 1 || e === "1" ? !0 : e === "false" || e === 0 || e === "0" ? !1 : e, ma().default(!1).nullable());
4937
4971
  return J(t, {
4938
4972
  kind: "boolean",
@@ -4944,7 +4978,7 @@ function xs(e) {
4944
4978
  zod: n
4945
4979
  });
4946
4980
  }
4947
- function Ss(e) {
4981
+ function ws(e) {
4948
4982
  let t = K(e), n = t.required ?? !1, r = Oa([
4949
4983
  "yes",
4950
4984
  "no",
@@ -4960,7 +4994,7 @@ function Ss(e) {
4960
4994
  zod: G(r, n)
4961
4995
  });
4962
4996
  }
4963
- function Cs(e) {
4997
+ function Ts(e) {
4964
4998
  let t = K(e), n = t.required ?? !1, r = typeof t.options == "string" ? t.options : null, i = Array.isArray(t.options) ? t.options : [], a = i.length > 0 ? Oa(i.map((e) => e.value), { error: () => H("enum") }) : F(U());
4965
4999
  return J(t, Y({
4966
5000
  kind: "select",
@@ -4973,7 +5007,7 @@ function Cs(e) {
4973
5007
  zod: G(a, n)
4974
5008
  }, t.multiple ?? !1));
4975
5009
  }
4976
- function ws(e) {
5010
+ function Es(e) {
4977
5011
  let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1, i;
4978
5012
  return i = r ? R().superRefine((e, t) => {
4979
5013
  let n = W(e);
@@ -4999,7 +5033,7 @@ function ws(e) {
4999
5033
  zod: G(i, n)
5000
5034
  });
5001
5035
  }
5002
- function Ts(e) {
5036
+ function Ds(e) {
5003
5037
  let t = K(e), n = t.required ?? !1, r = R().superRefine((e, t) => {
5004
5038
  if (typeof e == "string") try {
5005
5039
  JSON.parse(e);
@@ -5021,7 +5055,7 @@ function Ts(e) {
5021
5055
  zod: G(r, n)
5022
5056
  });
5023
5057
  }
5024
- function Es(e) {
5058
+ function Os(e) {
5025
5059
  let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1, i = t.slots && t.slots.length > 0 ? t.slots : [""], a = t.fields?.length ? t.fields : [X({
5026
5060
  key: "text",
5027
5061
  label: "core.fields.text"
@@ -5032,7 +5066,7 @@ function Es(e) {
5032
5066
  if (!r && (e.type.virtual || e.type.columns)) throw Error(`[field.check] single content field '${e.key}' must be a scalar stored field`);
5033
5067
  o.add(e.key);
5034
5068
  }
5035
- let s = i.map((e, t) => xs({
5069
+ let s = i.map((e, t) => Cs({
5036
5070
  key: `check${t}`,
5037
5071
  label: e || "core.fields.check"
5038
5072
  }));
@@ -5053,7 +5087,7 @@ function Es(e) {
5053
5087
  c[`check${t}`] = ma(), l[`check${t}`] = "boolean";
5054
5088
  });
5055
5089
  let u = z(c).passthrough(), d = R().superRefine((e, t) => {
5056
- let n = typeof e == "string" ? ls(e) : e;
5090
+ let n = typeof e == "string" ? ds(e) : e;
5057
5091
  if (n === void 0) {
5058
5092
  t.addIssue({
5059
5093
  code: B.custom,
@@ -5076,14 +5110,14 @@ function Es(e) {
5076
5110
  slots: i,
5077
5111
  fields: a.map((e) => ({
5078
5112
  key: e.key,
5079
- ...tc(e.type)
5113
+ ...rc(e.type)
5080
5114
  }))
5081
5115
  },
5082
5116
  columns: l,
5083
5117
  zod: G(d, n)
5084
5118
  });
5085
5119
  }
5086
- function Ds(e) {
5120
+ function ks(e) {
5087
5121
  let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = ao((t.options, t.options)), a = L().finite();
5088
5122
  r.step === 1 && (a = a.int({ message: H("int") })), r.min != null && (a = a.min(r.min)), r.max != null && (a = a.max(r.max));
5089
5123
  let o = z({
@@ -5132,7 +5166,7 @@ function Ds(e) {
5132
5166
  zod: G(s, n)
5133
5167
  });
5134
5168
  }
5135
- function Os(e) {
5169
+ function As(e) {
5136
5170
  let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = L().finite();
5137
5171
  r.min != null && (i = i.min(r.min)), r.max != null && (i = i.max(r.max));
5138
5172
  let a = z({
@@ -5170,7 +5204,7 @@ function Os(e) {
5170
5204
  zod: G(o, n)
5171
5205
  });
5172
5206
  }
5173
- function ks(e) {
5207
+ function js(e) {
5174
5208
  let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = z({
5175
5209
  code: F(),
5176
5210
  lang: F()
@@ -5202,7 +5236,7 @@ function ks(e) {
5202
5236
  zod: G(a, n)
5203
5237
  });
5204
5238
  }
5205
- function As(e) {
5239
+ function Ms(e) {
5206
5240
  let t = K(e), n = t.required ?? !1, r = z({
5207
5241
  lat: L().min(-90).max(90),
5208
5242
  lng: L().min(-180).max(180),
@@ -5243,18 +5277,18 @@ function As(e) {
5243
5277
  zod: G(i, n)
5244
5278
  });
5245
5279
  }
5246
- function js(e) {
5280
+ function Ns(e) {
5247
5281
  return {
5248
- ...ts({
5282
+ ...rs({
5249
5283
  key: e.key,
5250
5284
  label: e.label,
5251
- by: Cs({
5285
+ by: Ts({
5252
5286
  key: "day",
5253
5287
  label: "core.fields.weekday",
5254
5288
  options: "weekdays"
5255
5289
  }),
5256
5290
  fixed: !0,
5257
- fields: [gs({
5291
+ fields: [vs({
5258
5292
  key: "value",
5259
5293
  label: "core.fields.value",
5260
5294
  rules: e.rules
@@ -5263,7 +5297,7 @@ function js(e) {
5263
5297
  kind: "per-weekday"
5264
5298
  };
5265
5299
  }
5266
- function Ms(e) {
5300
+ function Ps(e) {
5267
5301
  let t = K(e);
5268
5302
  return J(t, {
5269
5303
  kind: "lookup",
@@ -5280,11 +5314,11 @@ function Ms(e) {
5280
5314
  zod: ga().optional()
5281
5315
  });
5282
5316
  }
5283
- function Ns(e) {
5284
- let t = K(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ? bs({
5317
+ function Fs(e) {
5318
+ let t = K(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ? Ss({
5285
5319
  key: e,
5286
5320
  label: t
5287
- }) : vs({
5321
+ }) : bs({
5288
5322
  key: e,
5289
5323
  label: t,
5290
5324
  rules: { granularity: n === "month" ? "month" : "day" }
@@ -5321,10 +5355,10 @@ function Ns(e) {
5321
5355
  });
5322
5356
  let d = n === "datetime" ? "datetime" : n === "day" ? "date" : "text", f = [{
5323
5357
  key: "from",
5324
- ...tc(o.type)
5358
+ ...rc(o.type)
5325
5359
  }, {
5326
5360
  key: "until",
5327
- ...tc(s.type)
5361
+ ...rc(s.type)
5328
5362
  }];
5329
5363
  return J(t, {
5330
5364
  kind: "period",
@@ -5345,25 +5379,25 @@ function Ns(e) {
5345
5379
  zod: G(u, r)
5346
5380
  });
5347
5381
  }
5348
- var Ps = /* @__PURE__ */ new Set([
5382
+ var Is = /* @__PURE__ */ new Set([
5349
5383
  "name",
5350
5384
  "mime",
5351
5385
  "size"
5352
- ]), Fs = [
5386
+ ]), Ls = [
5353
5387
  "url",
5354
5388
  "src",
5355
5389
  "href",
5356
5390
  "link"
5357
5391
  ];
5358
- function Is(e) {
5392
+ function Rs(e) {
5359
5393
  if (typeof e != "object" || !e || Array.isArray(e)) return "file_structure";
5360
5394
  let t = e;
5361
- if (Fs.some((e) => e in t)) return "file_remote_url";
5395
+ if (Ls.some((e) => e in t)) return "file_remote_url";
5362
5396
  let n = t.name;
5363
5397
  if (typeof n != "string" || n === "") return "file_structure";
5364
5398
  if (n.includes("://") || n.startsWith("//")) return "file_remote_url";
5365
5399
  if (/[\\/]/.test(n) || n.includes("..")) return "file_name";
5366
- for (let e of Object.keys(t)) if (!Ps.has(e)) return "file_unknown_key";
5400
+ for (let e of Object.keys(t)) if (!Is.has(e)) return "file_unknown_key";
5367
5401
  return t.mime !== void 0 && typeof t.mime != "string" || t.size !== void 0 && typeof t.size != "number" ? "file_structure" : null;
5368
5402
  }
5369
5403
  function Q(e, t) {
@@ -5379,7 +5413,7 @@ function Q(e, t) {
5379
5413
  }
5380
5414
  let n = W(e), r = Array.isArray(n) ? n : [n];
5381
5415
  for (let e of r) {
5382
- let n = Is(e);
5416
+ let n = Rs(e);
5383
5417
  if (n) {
5384
5418
  t.addIssue({
5385
5419
  code: B.custom,
@@ -5400,42 +5434,42 @@ function Q(e, t) {
5400
5434
  zod: G(a, r)
5401
5435
  });
5402
5436
  }
5403
- function Ls(e) {
5437
+ function zs(e) {
5404
5438
  return Q("file", e);
5405
5439
  }
5406
- function Rs(e) {
5440
+ function Bs(e) {
5407
5441
  return Q("document", e);
5408
5442
  }
5409
- function zs(e) {
5443
+ function Vs(e) {
5410
5444
  return Q("audio", e);
5411
5445
  }
5412
- function Bs(e) {
5446
+ function Hs(e) {
5413
5447
  return Q("video", e);
5414
5448
  }
5415
- function Vs(e) {
5449
+ function Us(e) {
5416
5450
  return Q("image", e);
5417
5451
  }
5418
- function Hs(e) {
5452
+ function Ws(e) {
5419
5453
  return Q("media", e);
5420
5454
  }
5421
- function Us(e) {
5455
+ function Gs(e) {
5422
5456
  return Q("avatar", e);
5423
5457
  }
5424
- function Ws(e) {
5458
+ function Ks(e) {
5425
5459
  return Q("cover", e);
5426
5460
  }
5427
- function Gs(e) {
5461
+ function qs(e) {
5428
5462
  return Q("poster", e);
5429
5463
  }
5430
- function Ks(e) {
5464
+ function Js(e) {
5431
5465
  let t = K(e), n = {
5432
5466
  ...t.option ?? X({ label: "" }),
5433
5467
  label: t.valueLabel ?? ""
5434
5468
  };
5435
- return ts({
5469
+ return rs({
5436
5470
  key: t.key,
5437
5471
  label: t.label ?? "",
5438
- container: t.container ?? Qo,
5472
+ container: t.container ?? es,
5439
5473
  by: X({
5440
5474
  key: "key",
5441
5475
  label: t.keyLabel ?? ""
@@ -5447,7 +5481,7 @@ function Ks(e) {
5447
5481
  required: t.required
5448
5482
  });
5449
5483
  }
5450
- function qs(e, t, n) {
5484
+ function Ys(e, t, n) {
5451
5485
  let r = K(n), i = r.required ?? !1, a = r.config ?? {}, o = L().finite();
5452
5486
  t && (o = o.int({ message: H("int") })), a.min != null && (o = o.min(a.min)), a.max != null && (o = o.max(a.max));
5453
5487
  let s = z({
@@ -5497,13 +5531,13 @@ function qs(e, t, n) {
5497
5531
  zod: G(c, i)
5498
5532
  });
5499
5533
  }
5500
- function Js(e) {
5501
- return qs("numberRange", !0, e);
5534
+ function Xs(e) {
5535
+ return Ys("numberRange", !0, e);
5502
5536
  }
5503
- function Ys(e) {
5504
- return qs("realRange", !1, e);
5537
+ function Zs(e) {
5538
+ return Ys("realRange", !1, e);
5505
5539
  }
5506
- function Xs(e) {
5540
+ function Qs(e) {
5507
5541
  let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1, i = z({
5508
5542
  url: F().min(1),
5509
5543
  title: F().optional(),
@@ -5531,68 +5565,68 @@ function Xs(e) {
5531
5565
  zod: G(a, n)
5532
5566
  });
5533
5567
  }
5534
- var Zs = {
5568
+ var $s = {
5535
5569
  string: X,
5536
5570
  text: Z,
5537
- i18n: ms,
5538
- smallText: hs,
5539
- localDir: fs,
5540
- localFile: ps,
5541
- real: gs,
5542
- int: _s,
5543
- date: vs,
5544
- time: ys,
5545
- datetime: bs,
5546
- boolean: xs,
5547
- triState: Ss,
5548
- select: Cs,
5549
- relation: ws,
5550
- json: Ts,
5551
- check: Es,
5552
- measured: Ds,
5553
- money: Os,
5554
- code: ks,
5555
- geo: As,
5556
- lookup: Ms,
5557
- perWeekday: js,
5558
- period: Ns,
5559
- file: Ls,
5560
- document: Rs,
5561
- audio: zs,
5562
- video: Bs,
5563
- image: Vs,
5564
- media: Hs,
5565
- avatar: Us,
5566
- cover: Ws,
5567
- poster: Gs,
5568
- embed: Xs,
5569
- keyValue: Ks,
5570
- numberRange: Js,
5571
- realRange: Ys,
5571
+ i18n: gs,
5572
+ smallText: _s,
5573
+ localDir: ms,
5574
+ localFile: hs,
5575
+ real: vs,
5576
+ int: ys,
5577
+ date: bs,
5578
+ time: xs,
5579
+ datetime: Ss,
5580
+ boolean: Cs,
5581
+ triState: ws,
5582
+ select: Ts,
5583
+ relation: Es,
5584
+ json: Ds,
5585
+ check: Os,
5586
+ measured: ks,
5587
+ money: As,
5588
+ code: js,
5589
+ geo: Ms,
5590
+ lookup: Ps,
5591
+ perWeekday: Ns,
5592
+ period: Fs,
5593
+ file: zs,
5594
+ document: Bs,
5595
+ audio: Vs,
5596
+ video: Hs,
5597
+ image: Us,
5598
+ media: Ws,
5599
+ avatar: Gs,
5600
+ cover: Ks,
5601
+ poster: qs,
5602
+ embed: Qs,
5603
+ keyValue: Js,
5604
+ numberRange: Xs,
5605
+ realRange: Zs,
5572
5606
  group: q,
5573
- row: Zo,
5574
- table: Qo,
5575
- sheet: $o,
5576
- keyed: ts,
5577
- url: es,
5578
- divider: is,
5579
- break: as,
5580
- info: os,
5581
- button: ss
5607
+ row: $o,
5608
+ table: es,
5609
+ sheet: ts,
5610
+ keyed: rs,
5611
+ url: ns,
5612
+ divider: os,
5613
+ break: ss,
5614
+ info: cs,
5615
+ button: ls
5582
5616
  };
5583
- function Qs(e) {
5584
- for (let t of Object.keys(e)) if (t in Zs) throw Error(`[f] preset '${t}' overrides a primitive`);
5617
+ function ec(e) {
5618
+ for (let t of Object.keys(e)) if (t in $s) throw Error(`[f] preset '${t}' overrides a primitive`);
5585
5619
  return {
5586
- ...Zs,
5620
+ ...$s,
5587
5621
  ...e
5588
5622
  };
5589
5623
  }
5590
- var $s, ec = () => $s ??= Qs(Ho);
5624
+ var tc, nc = () => tc ??= ec(Wo);
5591
5625
  new Proxy({}, {
5592
- get: (e, t) => ec()[t],
5593
- has: (e, t) => t in ec()
5626
+ get: (e, t) => nc()[t],
5627
+ has: (e, t) => t in nc()
5594
5628
  });
5595
- function tc(e) {
5629
+ function rc(e) {
5596
5630
  let { kind: t, label: n, required: r, prim: i, hints: a, options: o, relation: s, virtual: c, json: l, hidden: u } = e;
5597
5631
  return {
5598
5632
  kind: t,
@@ -5609,8 +5643,8 @@ function tc(e) {
5609
5643
  }
5610
5644
  //#endregion
5611
5645
  //#region ../web-sdk/src/registry.ts
5612
- var nc = {};
5613
- function rc(e) {
5646
+ var ic = {};
5647
+ function ac(e) {
5614
5648
  if (!e.kinds.length) throw Error("[render] renderer without kinds");
5615
5649
  let t = {
5616
5650
  kinds: e.kinds,
@@ -5621,90 +5655,90 @@ function rc(e) {
5621
5655
  keys: e.keys
5622
5656
  };
5623
5657
  for (let n of e.kinds) {
5624
- if (nc[n]) throw Error(`[render] kind '${n}' already registered`);
5625
- nc[n] = t;
5658
+ if (ic[n]) throw Error(`[render] kind '${n}' already registered`);
5659
+ ic[n] = t;
5626
5660
  }
5627
5661
  }
5628
- function ic(e) {
5629
- return nc[e.kind];
5630
- }
5631
- function ac(e) {
5632
- if (Go(e) || Ko(e)) return e.type.kind;
5633
- if (qo(e)) return e.kind ?? (ns(e) ? "collection" : rs(e) ? "embedded" : "group");
5634
- if (Xo(e)) return "button";
5635
- if (Jo(e)) return "divider";
5636
- if (Yo(e)) return "info";
5662
+ function oc(e) {
5663
+ return ic[e.kind];
5664
+ }
5665
+ function sc(e) {
5666
+ if (qo(e) || Jo(e)) return e.type.kind;
5667
+ if (Yo(e)) return e.kind ?? (is(e) ? "collection" : as(e) ? "embedded" : "group");
5668
+ if (Qo(e)) return "button";
5669
+ if (Xo(e)) return "divider";
5670
+ if (Zo(e)) return "info";
5637
5671
  throw Error("[render] unknown layout element");
5638
5672
  }
5639
- function oc(e) {
5640
- let t = ic(e)?.layout;
5673
+ function cc(e) {
5674
+ let t = oc(e)?.layout;
5641
5675
  return typeof t == "function" ? t(e) : t ?? "scalar";
5642
5676
  }
5643
- var sc = (e) => e.hints.multi === !0 || e.hints.multiple === !0 ? "block" : "scalar", cc = {};
5644
- function lc(e, t) {
5645
- if (cc[e]) throw Error(`[template] '${e}' already registered`);
5646
- cc[e] = t;
5677
+ var lc = (e) => e.hints.multi === !0 || e.hints.multiple === !0 ? "block" : "scalar", uc = {};
5678
+ function dc(e, t) {
5679
+ if (uc[e]) throw Error(`[template] '${e}' already registered`);
5680
+ uc[e] = t;
5647
5681
  }
5648
- function uc(e) {
5649
- return cc[e];
5682
+ function fc(e) {
5683
+ return uc[e];
5650
5684
  }
5651
5685
  //#endregion
5652
5686
  //#region ../web-sdk/src/list-view.ts
5653
- var dc = {};
5654
- function fc(e) {
5687
+ var pc = {};
5688
+ function mc(e) {
5655
5689
  if (!e.kind) throw Error("[list-view] view without kind");
5656
- if (dc[e.kind]) throw Error(`[list-view] kind '${e.kind}' already registered`);
5657
- dc[e.kind] = e;
5690
+ if (pc[e.kind]) throw Error(`[list-view] kind '${e.kind}' already registered`);
5691
+ pc[e.kind] = e;
5658
5692
  }
5659
- function pc(e) {
5660
- return dc[e];
5693
+ function hc(e) {
5694
+ return pc[e];
5661
5695
  }
5662
5696
  //#endregion
5663
5697
  //#region ../web-sdk/src/plugin-ui.ts
5664
- function mc(e) {
5698
+ function gc(e) {
5665
5699
  return e;
5666
5700
  }
5667
- var $ = /* @__PURE__ */ new Map(), hc = /* @__PURE__ */ new Map(), gc = /* @__PURE__ */ new Map();
5668
- function _c(e) {
5701
+ var $ = /* @__PURE__ */ new Map(), _c = /* @__PURE__ */ new Map(), vc = /* @__PURE__ */ new Map();
5702
+ function yc(e) {
5669
5703
  for (let t of e.slots ?? []) {
5670
5704
  let e = $.get(t.slot);
5671
5705
  e || (e = /* @__PURE__ */ new Map(), $.set(t.slot, e)), e.set(t.id, t);
5672
5706
  }
5673
- for (let t of e.routes ?? []) hc.set(t.path, t);
5674
- for (let t of e.nav ?? []) gc.set(t.to, t);
5707
+ for (let t of e.routes ?? []) _c.set(t.path, t);
5708
+ for (let t of e.nav ?? []) vc.set(t.to, t);
5675
5709
  }
5676
- function vc(e) {
5710
+ function bc(e) {
5677
5711
  return (t, n) => (t.order ?? 0) - (n.order ?? 0) || e(t).localeCompare(e(n));
5678
5712
  }
5679
- function yc(e) {
5680
- return [...$.get(e)?.values() ?? []].sort(vc((e) => e.id));
5713
+ function xc(e) {
5714
+ return [...$.get(e)?.values() ?? []].sort(bc((e) => e.id));
5681
5715
  }
5682
- function bc() {
5683
- return [...hc.values()];
5716
+ function Sc() {
5717
+ return [..._c.values()];
5684
5718
  }
5685
- function xc() {
5686
- return [...gc.values()].sort(vc((e) => e.to));
5719
+ function Cc() {
5720
+ return [...vc.values()].sort(bc((e) => e.to));
5687
5721
  }
5688
- function Sc() {
5689
- $.clear(), hc.clear(), gc.clear();
5722
+ function wc() {
5723
+ $.clear(), _c.clear(), vc.clear();
5690
5724
  }
5691
5725
  //#endregion
5692
5726
  //#region ../web-sdk/src/site-links.ts
5693
- var Cc = [], wc = [];
5694
- function Tc(e) {
5695
- Cc = [...e];
5696
- }
5697
- function Ec() {
5698
- return [...Cc];
5699
- }
5727
+ var Tc = [], Ec = [];
5700
5728
  function Dc(e) {
5701
- wc = [...e];
5729
+ Tc = [...e];
5702
5730
  }
5703
5731
  function Oc() {
5704
- return [...wc];
5732
+ return [...Tc];
5733
+ }
5734
+ function kc(e) {
5735
+ Ec = [...e];
5736
+ }
5737
+ function Ac() {
5738
+ return [...Ec];
5705
5739
  }
5706
- function kc() {
5707
- Cc = [], wc = [];
5740
+ function jc() {
5741
+ Tc = [], Ec = [];
5708
5742
  }
5709
5743
  //#endregion
5710
- export { _c as applyAppUI, mc as definePluginUI, ac as elementKind, oc as fieldLayout, xc as getPluginNav, bc as getPluginRoutes, Ec as getSiteLinks, Oc as getSiteShelves, yc as getSlotEntries, dc as listViewRegistry, sc as multiBlock, fc as registerListView, rc as registerRenderer, Tc as registerSiteLinks, Dc as registerSiteShelves, lc as registerTemplate, nc as rendererRegistry, Sc as resetAppUI, kc as resetSiteLinks, pc as resolveListView, ic as resolveRenderer, uc as resolveTemplate };
5744
+ export { yc as applyAppUI, gc as definePluginUI, sc as elementKind, cc as fieldLayout, Cc as getPluginNav, Sc as getPluginRoutes, Oc as getSiteLinks, Ac as getSiteShelves, xc as getSlotEntries, pc as listViewRegistry, lc as multiBlock, mc as registerListView, ac as registerRenderer, Dc as registerSiteLinks, kc as registerSiteShelves, dc as registerTemplate, ic as rendererRegistry, wc as resetAppUI, jc as resetSiteLinks, hc as resolveListView, oc as resolveRenderer, fc as resolveTemplate };