bhl-forms 0.0.74 → 0.0.76

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.
@@ -9401,10 +9401,13 @@ var handleSubmitError = (err, node2) => {
9401
9401
  node2.setErrors(err.toString());
9402
9402
  return true;
9403
9403
  };
9404
- var getKey = (d3, path) => {
9404
+ var _getKey = (d3, path, def2) => {
9405
9405
  if (typeof path === "string") {
9406
9406
  path = path.split(".");
9407
9407
  }
9408
+ if (typeof def2 !== "undefined") {
9409
+ return path.reduce((x2, y3) => x2[y3] || def2, d3);
9410
+ }
9408
9411
  return path.reduce((x2, y3) => x2[y3], d3);
9409
9412
  };
9410
9413
  var keyValOverlap = (o1, o2) => {
@@ -9413,7 +9416,7 @@ var keyValOverlap = (o1, o2) => {
9413
9416
  if (key === "*") {
9414
9417
  continue;
9415
9418
  }
9416
- var o1_value = getKey(o1, key);
9419
+ var o1_value = _getKey(o1, key);
9417
9420
  if (!o1_value) {
9418
9421
  continue;
9419
9422
  }
@@ -9430,7 +9433,7 @@ var keyValOverlap = (o1, o2) => {
9430
9433
  }
9431
9434
  return result;
9432
9435
  };
9433
- var strSubUrl = (str, obj) => str.replace(/\${(.*?)}/g, (x2, g) => encodeURIComponent(getKey(obj, g)));
9436
+ var strSubUrl = (str, obj) => str.replace(/\${(.*?)}/g, (x2, g) => encodeURIComponent(_getKey(obj, g)));
9434
9437
  function usePrepop() {
9435
9438
  var prepopSettings = {};
9436
9439
  var urlParams2 = new URLSearchParams(window.location.search);
@@ -10659,6 +10662,9 @@ var dataDefaults = {
10659
10662
  }
10660
10663
  return enabledSteps().indexOf(stepName) > -1;
10661
10664
  },
10665
+ getKey: (d3, k2, def2) => {
10666
+ return _getKey(d3, k2, def2);
10667
+ },
10662
10668
  inputIsEnabled: (node2, key, inputName) => {
10663
10669
  if (!node2 || !key || !node2.attrs.inputMap) {
10664
10670
  return true;
@@ -18092,7 +18098,7 @@ var checkBoxClassification = {
18092
18098
  var buttonClassification = {
18093
18099
  wrapper: "t-mb-1",
18094
18100
  input: "t-bg-red-500 hover:t-bg-red-600 t-text-white t-text-xl t-font-normal t-py-4 t-px-9 sm:t-px-10 t-rounded",
18095
- outer: "t-mb-0"
18101
+ outer: "!t-mb-2 t-mt-4"
18096
18102
  };
18097
18103
  var theme = {
18098
18104
  global: {