@vulcanjs/react-ui 0.6.6-alpha.6 → 0.6.6-y.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. package/dist/components/Datatable/Datatable.d.ts.map +0 -0
  2. package/dist/components/Datatable/DatatableCell.d.ts.map +0 -0
  3. package/dist/components/Datatable/DatatableContents.d.ts.map +0 -0
  4. package/dist/components/Datatable/DatatableFilter.d.ts.map +0 -0
  5. package/dist/components/Datatable/DatatableHeader.d.ts.map +0 -0
  6. package/dist/components/Datatable/DatatableRow.d.ts.map +0 -0
  7. package/dist/components/Datatable/DatatableSelect.d.ts.map +0 -0
  8. package/dist/components/Datatable/DatatableSorter.d.ts.map +0 -0
  9. package/dist/components/Datatable/DatatableSubmitSelected.d.ts.map +0 -0
  10. package/dist/components/Datatable/others/DeleteButton.d.ts.map +0 -0
  11. package/dist/components/Datatable/others/EditButton.d.ts.map +0 -0
  12. package/dist/components/Datatable/others/NewButton.d.ts.map +0 -0
  13. package/dist/components/HeadTags.d.ts.map +0 -0
  14. package/dist/components/LoadingButton.d.ts.map +0 -0
  15. package/dist/components/MutationButton.d.ts.map +0 -0
  16. package/dist/components/VulcanComponents/Consumer.d.ts.map +0 -0
  17. package/dist/components/VulcanComponents/Context.d.ts.map +0 -0
  18. package/dist/components/VulcanComponents/Dummy.d.ts.map +0 -0
  19. package/dist/components/VulcanComponents/Provider.d.ts.map +1 -1
  20. package/dist/components/VulcanComponents/defaultVulcanComponents/cellComponents.d.ts.map +0 -0
  21. package/dist/components/VulcanComponents/defaultVulcanComponents/coreComponents.d.ts.map +0 -0
  22. package/dist/components/VulcanComponents/defaultVulcanComponents/datatableComponents.d.ts.map +0 -0
  23. package/dist/components/VulcanComponents/defaultVulcanComponents/formComponents.d.ts.map +0 -0
  24. package/dist/components/VulcanComponents/defaultVulcanComponents/index.d.ts.map +0 -0
  25. package/dist/components/VulcanComponents/index.d.ts +1 -0
  26. package/dist/components/VulcanComponents/index.d.ts.map +1 -1
  27. package/dist/components/VulcanComponents/typings.d.ts.map +0 -0
  28. package/dist/components/VulcanCurrentUser/Consumer.d.ts.map +0 -0
  29. package/dist/components/VulcanCurrentUser/Context.d.ts.map +0 -0
  30. package/dist/components/VulcanCurrentUser/Provider.d.ts.map +0 -0
  31. package/dist/components/VulcanCurrentUser/index.d.ts.map +0 -0
  32. package/dist/components/bootstrap/Dropdown.d.ts.map +0 -0
  33. package/dist/components/bootstrap/Modal.d.ts.map +0 -0
  34. package/dist/components/bootstrap/ModalTrigger.d.ts.map +0 -0
  35. package/dist/components/bootstrap/TooltipTrigger.d.ts.map +0 -0
  36. package/dist/components/cell/CardItem.d.ts.map +0 -0
  37. package/dist/components/cell/CardItemArray.d.ts.map +0 -0
  38. package/dist/components/cell/CardItemDate.d.ts.map +0 -0
  39. package/dist/components/cell/CardItemDefault.d.ts.map +0 -0
  40. package/dist/components/cell/CardItemHTML.d.ts.map +0 -0
  41. package/dist/components/cell/CardItemImage.d.ts.map +0 -0
  42. package/dist/components/cell/CardItemNumber.d.ts.map +0 -0
  43. package/dist/components/cell/CardItemObject.d.ts.map +0 -0
  44. package/dist/components/cell/CardItemRelationHasMany.d.ts.map +0 -0
  45. package/dist/components/cell/CardItemRelationHasOne.d.ts.map +0 -0
  46. package/dist/components/cell/CardItemRelationItem.d.ts.map +0 -0
  47. package/dist/components/cell/CardItemString.d.ts.map +0 -0
  48. package/dist/components/cell/CardItemURL.d.ts.map +0 -0
  49. package/dist/components/core/Button.d.ts.map +0 -0
  50. package/dist/components/core/Loading.d.ts.map +0 -0
  51. package/dist/components/form/core/Form/Form.d.ts.map +0 -0
  52. package/dist/components/form/core/Form/fields.d.ts.map +0 -0
  53. package/dist/components/form/core/Form/index.d.ts.map +0 -0
  54. package/dist/components/form/core/Form/typings.d.ts.map +0 -0
  55. package/dist/components/form/core/Form/utils.d.ts.map +0 -0
  56. package/dist/components/form/core/FormComponent.d.ts.map +0 -0
  57. package/dist/components/form/core/FormComponentInner.d.ts.map +0 -0
  58. package/dist/components/form/core/FormComponentLoader.d.ts.map +0 -0
  59. package/dist/components/form/core/FormContainer.d.ts.map +0 -0
  60. package/dist/components/form/core/FormContext.d.ts.map +0 -0
  61. package/dist/components/form/core/FormGroup.d.ts.map +0 -0
  62. package/dist/components/form/core/index.d.ts.map +0 -0
  63. package/dist/components/form/elements/FieldErrors.d.ts.map +0 -0
  64. package/dist/components/form/elements/FormElement.d.ts.map +0 -0
  65. package/dist/components/form/elements/FormError.d.ts.map +0 -0
  66. package/dist/components/form/elements/FormErrors.d.ts.map +0 -0
  67. package/dist/components/form/elements/FormLayout.d.ts.map +0 -0
  68. package/dist/components/form/elements/FormSubmit.d.ts.map +0 -0
  69. package/dist/components/form/elements/index.d.ts.map +0 -0
  70. package/dist/components/form/hooks/useBlockTransition/block.d.ts.map +0 -0
  71. package/dist/components/form/hooks/useBlockTransition/useBlockTransition.d.ts.map +0 -0
  72. package/dist/components/form/hooks/useWarnOnUnsaved/index.d.ts.map +0 -0
  73. package/dist/components/form/hooks/useWarnOnUnsaved/useWarnOnUnsaved.d.ts.map +0 -0
  74. package/dist/components/form/index.d.ts.map +0 -0
  75. package/dist/components/form/inputs/AutocompleteMultiple.d.ts.map +0 -0
  76. package/dist/components/form/inputs/BasicInputs.d.ts.map +0 -0
  77. package/dist/components/form/inputs/Checkboxgroup.d.ts.map +0 -0
  78. package/dist/components/form/inputs/FormItem.d.ts.map +0 -0
  79. package/dist/components/form/inputs/FormOptionLabel.d.ts.map +0 -0
  80. package/dist/components/form/inputs/RadioGroup.d.ts.map +1 -1
  81. package/dist/components/form/inputs/SelectInputs.d.ts.map +0 -0
  82. package/dist/components/form/inputs/consts.d.ts.map +0 -0
  83. package/dist/components/form/inputs/index.d.ts.map +0 -0
  84. package/dist/components/form/intl/FormIntl.d.ts.map +0 -0
  85. package/dist/components/form/nested/FormNestedArray.d.ts.map +0 -0
  86. package/dist/components/form/nested/FormNestedArrayLayout.d.ts.map +0 -0
  87. package/dist/components/form/nested/FormNestedDivider.d.ts.map +0 -0
  88. package/dist/components/form/nested/FormNestedItem.d.ts.map +0 -0
  89. package/dist/components/form/nested/FormNestedObject.d.ts.map +0 -0
  90. package/dist/components/form/nested/index.d.ts.map +0 -0
  91. package/dist/components/form/typings.d.ts.map +0 -0
  92. package/dist/components/form/utils/formFragments.d.ts.map +0 -0
  93. package/dist/components/form/utils/path_utils.d.ts.map +0 -0
  94. package/dist/components/form/utils/schema_utils.d.ts.map +0 -0
  95. package/dist/components/form/utils/ui_utils.d.ts.map +0 -0
  96. package/dist/components/form/utils/utils.d.ts.map +0 -0
  97. package/dist/componentsHelpers.d.ts.map +0 -0
  98. package/dist/index.d.ts.map +0 -0
  99. package/dist/index.js +576 -573
  100. package/dist/index.js.map +1 -1
  101. package/package.json +2 -2
  102. package/dist/components/form/FieldErrors.d.ts +0 -6
  103. package/dist/components/form/Form/Form.d.ts +0 -4
  104. package/dist/components/form/Form/fields.d.ts +0 -22
  105. package/dist/components/form/Form/index.d.ts +0 -3
  106. package/dist/components/form/Form/typings.d.ts +0 -76
  107. package/dist/components/form/Form/utils.d.ts +0 -2
  108. package/dist/components/form/FormComponent.d.ts +0 -31
  109. package/dist/components/form/FormComponentInner.d.ts +0 -32
  110. package/dist/components/form/FormComponentLoader.d.ts +0 -15
  111. package/dist/components/form/FormContainer.d.ts +0 -18
  112. package/dist/components/form/FormContext.d.ts +0 -25
  113. package/dist/components/form/FormElement.d.ts +0 -4
  114. package/dist/components/form/FormError.d.ts +0 -11
  115. package/dist/components/form/FormErrors.d.ts +0 -3
  116. package/dist/components/form/FormGroup.d.ts +0 -30
  117. package/dist/components/form/FormIntl.d.ts +0 -15
  118. package/dist/components/form/FormLayout.d.ts +0 -10
  119. package/dist/components/form/FormNestedArray.d.ts +0 -26
  120. package/dist/components/form/FormNestedArrayLayout.d.ts +0 -18
  121. package/dist/components/form/FormNestedDivider.d.ts +0 -13
  122. package/dist/components/form/FormNestedItem.d.ts +0 -52
  123. package/dist/components/form/FormNestedObject.d.ts +0 -35
  124. package/dist/components/form/FormOptionLabel.d.ts +0 -5
  125. package/dist/components/form/FormSubmit.d.ts +0 -38
  126. package/dist/components/form/core/Button.d.ts +0 -4
  127. package/dist/components/form/core/Loading.d.ts +0 -3
  128. package/dist/components/form/modules/formFragments.d.ts +0 -16
  129. package/dist/components/form/modules/path_utils.d.ts +0 -6
  130. package/dist/components/form/modules/schema_utils.d.ts +0 -14
  131. package/dist/components/form/modules/utils.d.ts +0 -17
  132. package/dist/components/form/ui_utils.d.ts +0 -3
  133. package/dist/components/form/useBlockTransition/block.d.ts +0 -4
  134. package/dist/components/form/useBlockTransition/useBlockTransition.d.ts +0 -5
  135. package/dist/components/form/useWarnOnUnsaved/index.d.ts +0 -2
  136. package/dist/components/form/useWarnOnUnsaved/useWarnOnUnsaved.d.ts +0 -5
  137. package/dist/decorators/autocomplete.d.ts +0 -8
  138. package/dist/decorators/index.d.ts +0 -4
package/dist/index.js CHANGED
@@ -9602,7 +9602,48 @@ init_esm_shims();
9602
9602
 
9603
9603
  // components/VulcanComponents/Provider.tsx
9604
9604
  init_esm_shims();
9605
- import React65 from "react";
9605
+ import React8 from "react";
9606
+ import { debugVulcan as debugVulcan2 } from "@vulcanjs/utils";
9607
+ function _extends4() {
9608
+ _extends4 = Object.assign || function(target) {
9609
+ for (var i = 1; i < arguments.length; i++) {
9610
+ var source = arguments[i];
9611
+ for (var key in source) {
9612
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
9613
+ target[key] = source[key];
9614
+ }
9615
+ }
9616
+ }
9617
+ return target;
9618
+ };
9619
+ return _extends4.apply(this, arguments);
9620
+ }
9621
+ __name(_extends4, "_extends");
9622
+ var debugComponents = debugVulcan2("components");
9623
+ var VulcanComponentsProvider = /* @__PURE__ */ __name((_a) => {
9624
+ var _b = _a, { value } = _b, props = __objRest(_b, ["value"]);
9625
+ const currentComponents = useVulcanComponents();
9626
+ debugComponents("Current components __not_initialized?", currentComponents.__not_initialized);
9627
+ const mergedComponents = __spreadValues(__spreadValues({}, (currentComponents == null ? void 0 : currentComponents.__not_initialized) ? {} : currentComponents || {}), value || {});
9628
+ debugComponents("Merged components", mergedComponents);
9629
+ Object.keys(mergedComponents).forEach((componentName) => {
9630
+ if (mergedComponents[componentName]) {
9631
+ mergedComponents[componentName].displayName = "Vulcan." + componentName;
9632
+ } else {
9633
+ console.warn(`Encountered an undefined component: ${componentName}.
9634
+ The component may not be registered, or import failed.
9635
+ For instance due to an infinite import loop when importing
9636
+ "useVulcanComponents" from index instead of Consumer.`);
9637
+ }
9638
+ });
9639
+ return /* @__PURE__ */ React8.createElement(VulcanComponentsContext.Provider, _extends4({
9640
+ value: mergedComponents
9641
+ }, props));
9642
+ }, "VulcanComponentsProvider");
9643
+
9644
+ // components/VulcanComponents/typings.ts
9645
+ init_esm_shims();
9646
+ import React9 from "react";
9606
9647
 
9607
9648
  // components/VulcanComponents/defaultVulcanComponents/index.ts
9608
9649
  init_esm_shims();
@@ -9615,14 +9656,14 @@ init_esm_shims();
9615
9656
 
9616
9657
  // components/form/elements/FieldErrors.tsx
9617
9658
  init_esm_shims();
9618
- import React8 from "react";
9659
+ import React10 from "react";
9619
9660
  var FieldErrors = /* @__PURE__ */ __name(({ errors }) => {
9620
9661
  const VulcanComponents = useVulcanComponents();
9621
- return /* @__PURE__ */ React8.createElement("ul", {
9662
+ return /* @__PURE__ */ React10.createElement("ul", {
9622
9663
  className: "form-input-errors"
9623
- }, errors.map((error, index) => /* @__PURE__ */ React8.createElement("li", {
9664
+ }, errors.map((error, index) => /* @__PURE__ */ React10.createElement("li", {
9624
9665
  key: index
9625
- }, /* @__PURE__ */ React8.createElement(VulcanComponents.FormError, {
9666
+ }, /* @__PURE__ */ React10.createElement(VulcanComponents.FormError, {
9626
9667
  error,
9627
9668
  errorContext: "field"
9628
9669
  }))));
@@ -9630,10 +9671,10 @@ var FieldErrors = /* @__PURE__ */ __name(({ errors }) => {
9630
9671
 
9631
9672
  // components/form/elements/FormError.tsx
9632
9673
  init_esm_shims();
9633
- import React9 from "react";
9674
+ import React11 from "react";
9634
9675
  import get3 from "lodash/get.js";
9635
- function _extends4() {
9636
- _extends4 = Object.assign || function(target) {
9676
+ function _extends5() {
9677
+ _extends5 = Object.assign || function(target) {
9637
9678
  for (var i = 1; i < arguments.length; i++) {
9638
9679
  var source = arguments[i];
9639
9680
  for (var key in source) {
@@ -9644,9 +9685,9 @@ function _extends4() {
9644
9685
  }
9645
9686
  return target;
9646
9687
  };
9647
- return _extends4.apply(this, arguments);
9688
+ return _extends5.apply(this, arguments);
9648
9689
  }
9649
- __name(_extends4, "_extends");
9690
+ __name(_extends5, "_extends");
9650
9691
  var FormError = /* @__PURE__ */ __name(({ error, errorContext }) => {
9651
9692
  const VulcanComponents = useVulcanComponents();
9652
9693
  const { getLabel: getLabel2 } = useFormContext();
@@ -9676,7 +9717,7 @@ var FormError = /* @__PURE__ */ __name(({ error, errorContext }) => {
9676
9717
  values: exception.data
9677
9718
  });
9678
9719
  }
9679
- return /* @__PURE__ */ React9.createElement(VulcanComponents.FormattedMessage, _extends4({
9720
+ return /* @__PURE__ */ React11.createElement(VulcanComponents.FormattedMessage, _extends5({
9680
9721
  html: true
9681
9722
  }, messageProps));
9682
9723
  }, "FormError");
@@ -9686,18 +9727,18 @@ FormError.defaultProps = {
9686
9727
 
9687
9728
  // components/form/elements/FormErrors.tsx
9688
9729
  init_esm_shims();
9689
- import React10 from "react";
9730
+ import React12 from "react";
9690
9731
  var FormErrors = /* @__PURE__ */ __name(() => {
9691
9732
  const VulcanComponents = useVulcanComponents();
9692
9733
  const { errors } = useFormContext();
9693
- return /* @__PURE__ */ React10.createElement("div", {
9734
+ return /* @__PURE__ */ React12.createElement("div", {
9694
9735
  className: "form-errors"
9695
- }, !!errors.length && /* @__PURE__ */ React10.createElement(VulcanComponents.Alert, {
9736
+ }, !!errors.length && /* @__PURE__ */ React12.createElement(VulcanComponents.Alert, {
9696
9737
  className: "flash-message",
9697
9738
  variant: "danger"
9698
- }, /* @__PURE__ */ React10.createElement("ul", null, errors.map((error, index) => /* @__PURE__ */ React10.createElement("li", {
9739
+ }, /* @__PURE__ */ React12.createElement("ul", null, errors.map((error, index) => /* @__PURE__ */ React12.createElement("li", {
9699
9740
  key: index
9700
- }, /* @__PURE__ */ React10.createElement(VulcanComponents.FormError, {
9741
+ }, /* @__PURE__ */ React12.createElement(VulcanComponents.FormError, {
9701
9742
  error,
9702
9743
  errorContext: "form"
9703
9744
  }))))));
@@ -9706,7 +9747,7 @@ var FormErrors = /* @__PURE__ */ __name(() => {
9706
9747
  // components/form/elements/FormSubmit.tsx
9707
9748
  init_esm_shims();
9708
9749
  var import_prop_types = __toESM(require_prop_types(), 1);
9709
- import React11 from "react";
9750
+ import React13 from "react";
9710
9751
  import { canDeleteDocument } from "@vulcanjs/permissions";
9711
9752
  var FormSubmit = /* @__PURE__ */ __name(({
9712
9753
  submitLabel,
@@ -9721,44 +9762,44 @@ var FormSubmit = /* @__PURE__ */ __name(({
9721
9762
  }) => {
9722
9763
  const VulcanComponents = useVulcanComponents();
9723
9764
  const { clearForm } = useFormContext();
9724
- return /* @__PURE__ */ React11.createElement("div", {
9765
+ return /* @__PURE__ */ React13.createElement("div", {
9725
9766
  className: "form-submit"
9726
- }, /* @__PURE__ */ React11.createElement(VulcanComponents.Button, {
9767
+ }, /* @__PURE__ */ React13.createElement(VulcanComponents.Button, {
9727
9768
  type: "submit",
9728
9769
  variant: "primary"
9729
- }, submitLabel ? submitLabel : /* @__PURE__ */ React11.createElement(VulcanComponents.FormattedMessage, {
9770
+ }, submitLabel ? submitLabel : /* @__PURE__ */ React13.createElement(VulcanComponents.FormattedMessage, {
9730
9771
  id: "forms.submit",
9731
9772
  defaultMessage: "Submit"
9732
- })), cancelCallback ? /* @__PURE__ */ React11.createElement("a", {
9773
+ })), cancelCallback ? /* @__PURE__ */ React13.createElement("a", {
9733
9774
  className: "form-cancel",
9734
9775
  onClick: (e) => {
9735
9776
  e.preventDefault();
9736
9777
  cancelCallback(document);
9737
9778
  }
9738
- }, cancelLabel ? cancelLabel : /* @__PURE__ */ React11.createElement(VulcanComponents.FormattedMessage, {
9779
+ }, cancelLabel ? cancelLabel : /* @__PURE__ */ React13.createElement(VulcanComponents.FormattedMessage, {
9739
9780
  id: "forms.cancel",
9740
9781
  defaultMessage: "Cancel"
9741
- })) : null, revertCallback ? /* @__PURE__ */ React11.createElement("a", {
9782
+ })) : null, revertCallback ? /* @__PURE__ */ React13.createElement("a", {
9742
9783
  className: "form-cancel",
9743
9784
  onClick: (e) => {
9744
9785
  e.preventDefault();
9745
9786
  clearForm();
9746
9787
  revertCallback(document);
9747
9788
  }
9748
- }, revertLabel ? revertLabel : /* @__PURE__ */ React11.createElement(VulcanComponents.FormattedMessage, {
9789
+ }, revertLabel ? revertLabel : /* @__PURE__ */ React13.createElement(VulcanComponents.FormattedMessage, {
9749
9790
  id: "forms.revert",
9750
9791
  defaultMessage: "Revert"
9751
9792
  })) : null, deleteDocument && canDeleteDocument({
9752
9793
  user: currentUser,
9753
9794
  document,
9754
9795
  model
9755
- }) ? /* @__PURE__ */ React11.createElement("div", null, /* @__PURE__ */ React11.createElement("hr", null), /* @__PURE__ */ React11.createElement(VulcanComponents.Button, {
9796
+ }) ? /* @__PURE__ */ React13.createElement("div", null, /* @__PURE__ */ React13.createElement("hr", null), /* @__PURE__ */ React13.createElement(VulcanComponents.Button, {
9756
9797
  variant: "link",
9757
9798
  onClick: deleteDocument,
9758
9799
  className: `delete-link ${model.name}-delete-link`
9759
- }, /* @__PURE__ */ React11.createElement(VulcanComponents.Icon, {
9800
+ }, /* @__PURE__ */ React13.createElement(VulcanComponents.Icon, {
9760
9801
  name: "close"
9761
- }), " ", /* @__PURE__ */ React11.createElement(VulcanComponents.FormattedMessage, {
9802
+ }), " ", /* @__PURE__ */ React13.createElement(VulcanComponents.FormattedMessage, {
9762
9803
  id: "forms.delete",
9763
9804
  defaultMessage: "Delete"
9764
9805
  }))) : null);
@@ -9777,9 +9818,9 @@ FormSubmit.propTypes = {
9777
9818
 
9778
9819
  // components/form/elements/FormLayout.tsx
9779
9820
  init_esm_shims();
9780
- import React12 from "react";
9781
- function _extends5() {
9782
- _extends5 = Object.assign || function(target) {
9821
+ import React14 from "react";
9822
+ function _extends6() {
9823
+ _extends6 = Object.assign || function(target) {
9783
9824
  for (var i = 1; i < arguments.length; i++) {
9784
9825
  var source = arguments[i];
9785
9826
  for (var key in source) {
@@ -9790,19 +9831,19 @@ function _extends5() {
9790
9831
  }
9791
9832
  return target;
9792
9833
  };
9793
- return _extends5.apply(this, arguments);
9834
+ return _extends6.apply(this, arguments);
9794
9835
  }
9795
- __name(_extends5, "_extends");
9836
+ __name(_extends6, "_extends");
9796
9837
  var FormLayout = /* @__PURE__ */ __name(({ commonProps, formProps, repeatErrors, submitProps, children }) => {
9797
9838
  const VulcanComponents = useVulcanComponents();
9798
- return /* @__PURE__ */ React12.createElement(VulcanComponents.FormElement, _extends5({}, formProps), /* @__PURE__ */ React12.createElement(VulcanComponents.FormErrors, _extends5({}, commonProps)), children, repeatErrors && /* @__PURE__ */ React12.createElement(VulcanComponents.FormErrors, _extends5({}, commonProps)), /* @__PURE__ */ React12.createElement(VulcanComponents.FormSubmit, _extends5({}, commonProps, submitProps)));
9839
+ return /* @__PURE__ */ React14.createElement(VulcanComponents.FormElement, _extends6({}, formProps), /* @__PURE__ */ React14.createElement(VulcanComponents.FormErrors, _extends6({}, commonProps)), children, repeatErrors && /* @__PURE__ */ React14.createElement(VulcanComponents.FormErrors, _extends6({}, commonProps)), /* @__PURE__ */ React14.createElement(VulcanComponents.FormSubmit, _extends6({}, commonProps, submitProps)));
9799
9840
  }, "FormLayout");
9800
9841
 
9801
9842
  // components/form/elements/FormElement.tsx
9802
9843
  init_esm_shims();
9803
- import React13 from "react";
9804
- function _extends6() {
9805
- _extends6 = Object.assign || function(target) {
9844
+ import React15 from "react";
9845
+ function _extends7() {
9846
+ _extends7 = Object.assign || function(target) {
9806
9847
  for (var i = 1; i < arguments.length; i++) {
9807
9848
  var source = arguments[i];
9808
9849
  for (var key in source) {
@@ -9813,13 +9854,13 @@ function _extends6() {
9813
9854
  }
9814
9855
  return target;
9815
9856
  };
9816
- return _extends6.apply(this, arguments);
9857
+ return _extends7.apply(this, arguments);
9817
9858
  }
9818
- __name(_extends6, "_extends");
9819
- var FormElement = /* @__PURE__ */ React13.forwardRef((_a, ref) => {
9859
+ __name(_extends7, "_extends");
9860
+ var FormElement = /* @__PURE__ */ React15.forwardRef((_a, ref) => {
9820
9861
  var _b = _a, { children } = _b, otherProps = __objRest(_b, ["children"]);
9821
9862
  const { submitForm } = useFormContext();
9822
- return /* @__PURE__ */ React13.createElement("form", _extends6({}, otherProps, {
9863
+ return /* @__PURE__ */ React15.createElement("form", _extends7({}, otherProps, {
9823
9864
  onSubmit: submitForm,
9824
9865
  ref
9825
9866
  }), children);
@@ -9830,7 +9871,7 @@ init_esm_shims();
9830
9871
 
9831
9872
  // components/form/core/FormComponent.tsx
9832
9873
  init_esm_shims();
9833
- import React14, { useEffect as useEffect3, useState as useState2 } from "react";
9874
+ import React16, { useEffect as useEffect3, useState as useState2 } from "react";
9834
9875
  import get4 from "lodash/get.js";
9835
9876
  import SimpleSchema from "simpl-schema";
9836
9877
 
@@ -9878,8 +9919,8 @@ var getAutoInputFromType = /* @__PURE__ */ __name((fieldType) => {
9878
9919
  }, "getAutoInputFromType");
9879
9920
 
9880
9921
  // components/form/core/FormComponent.tsx
9881
- function _extends7() {
9882
- _extends7 = Object.assign || function(target) {
9922
+ function _extends8() {
9923
+ _extends8 = Object.assign || function(target) {
9883
9924
  for (var i = 1; i < arguments.length; i++) {
9884
9925
  var source = arguments[i];
9885
9926
  for (var key in source) {
@@ -9890,9 +9931,9 @@ function _extends7() {
9890
9931
  }
9891
9932
  return target;
9892
9933
  };
9893
- return _extends7.apply(this, arguments);
9934
+ return _extends8.apply(this, arguments);
9894
9935
  }
9895
- __name(_extends7, "_extends");
9936
+ __name(_extends8, "_extends");
9896
9937
  var getCharacterCounts = /* @__PURE__ */ __name((value, max) => {
9897
9938
  const characterCount = value && value.length ? value.length : 0;
9898
9939
  return {
@@ -10067,16 +10108,16 @@ var FormComponent = /* @__PURE__ */ __name((props) => {
10067
10108
  }, "clearField");
10068
10109
  const FormComponents = useVulcanComponents();
10069
10110
  if (intlInput) {
10070
- return /* @__PURE__ */ React14.createElement(FormComponents.FormIntl, _extends7({}, props));
10111
+ return /* @__PURE__ */ React16.createElement(FormComponents.FormIntl, _extends8({}, props));
10071
10112
  } else if (!input && nestedInput) {
10072
10113
  if (isArrayField(type)) {
10073
- return /* @__PURE__ */ React14.createElement(FormComponents.FormNestedArray, _extends7({}, props, {
10114
+ return /* @__PURE__ */ React16.createElement(FormComponents.FormNestedArray, _extends8({}, props, {
10074
10115
  formComponents: FormComponents,
10075
10116
  errors: getErrors2(),
10076
10117
  value: getValue()
10077
10118
  }));
10078
10119
  } else if (isObjectField(type)) {
10079
- return /* @__PURE__ */ React14.createElement(FormComponents.FormNestedObject, _extends7({}, props, {
10120
+ return /* @__PURE__ */ React16.createElement(FormComponents.FormNestedObject, _extends8({}, props, {
10080
10121
  formComponents: FormComponents,
10081
10122
  errors: getErrors2(),
10082
10123
  value: getValue()
@@ -10099,14 +10140,14 @@ var FormComponent = /* @__PURE__ */ __name((props) => {
10099
10140
  if (!query && typeof options === "function") {
10100
10141
  fciProps.options = options(fciProps);
10101
10142
  }
10102
- const fci = /* @__PURE__ */ React14.createElement(FormComponents.FormComponentInner, _extends7({}, fciProps));
10103
- return query ? /* @__PURE__ */ React14.createElement(FormComponents.FormComponentLoader, _extends7({}, fciProps), fci) : fci;
10143
+ const fci = /* @__PURE__ */ React16.createElement(FormComponents.FormComponentInner, _extends8({}, fciProps));
10144
+ return query ? /* @__PURE__ */ React16.createElement(FormComponents.FormComponentLoader, _extends8({}, fciProps), fci) : fci;
10104
10145
  }, "FormComponent");
10105
10146
  var FormComponent_default = FormComponent;
10106
10147
 
10107
10148
  // components/form/core/FormComponentInner.tsx
10108
10149
  init_esm_shims();
10109
- import React15 from "react";
10150
+ import React17 from "react";
10110
10151
  import { useIntlContext as useIntlContext3 } from "@vulcanjs/react-i18n";
10111
10152
 
10112
10153
  // components/form/utils/ui_utils.ts
@@ -10125,7 +10166,7 @@ var whitelistInputProps = /* @__PURE__ */ __name((props) => {
10125
10166
  "placeholder"
10126
10167
  ];
10127
10168
  const value = props.value;
10128
- let safeValue;
10169
+ let safeValue = value;
10129
10170
  if (value === null)
10130
10171
  safeValue = void 0;
10131
10172
  return __spreadProps(__spreadValues({}, pick3(props, whitelist)), {
@@ -10135,8 +10176,8 @@ var whitelistInputProps = /* @__PURE__ */ __name((props) => {
10135
10176
 
10136
10177
  // components/form/core/FormComponentInner.tsx
10137
10178
  import classNames from "classnames";
10138
- function _extends8() {
10139
- _extends8 = Object.assign || function(target) {
10179
+ function _extends9() {
10180
+ _extends9 = Object.assign || function(target) {
10140
10181
  for (var i = 1; i < arguments.length; i++) {
10141
10182
  var source = arguments[i];
10142
10183
  for (var key in source) {
@@ -10147,21 +10188,21 @@ function _extends8() {
10147
10188
  }
10148
10189
  return target;
10149
10190
  };
10150
- return _extends8.apply(this, arguments);
10191
+ return _extends9.apply(this, arguments);
10151
10192
  }
10152
- __name(_extends8, "_extends");
10193
+ __name(_extends9, "_extends");
10153
10194
  var FormComponentInner = /* @__PURE__ */ __name((props) => {
10154
10195
  const intl = useIntlContext3();
10155
10196
  const { inputType: inputType1, disabled, clearField } = props;
10156
10197
  const renderClear = /* @__PURE__ */ __name(() => {
10157
10198
  if (clearableInputs.includes(inputType1) && !disabled) {
10158
- return /* @__PURE__ */ React15.createElement("button", {
10199
+ return /* @__PURE__ */ React17.createElement("button", {
10159
10200
  className: "form-component-clear",
10160
10201
  title: intl.formatMessage({
10161
10202
  id: "forms.clear_field"
10162
10203
  }),
10163
10204
  onClick: clearField
10164
- }, /* @__PURE__ */ React15.createElement("span", null, "\u2715"));
10205
+ }, /* @__PURE__ */ React17.createElement("span", null, "\u2715"));
10165
10206
  }
10166
10207
  }, "renderClear");
10167
10208
  const getProperties = /* @__PURE__ */ __name(() => {
@@ -10204,11 +10245,11 @@ var FormComponentInner = /* @__PURE__ */ __name((props) => {
10204
10245
  });
10205
10246
  const properties1 = getProperties();
10206
10247
  const FormInput = formInput;
10207
- return /* @__PURE__ */ React15.createElement("div", {
10248
+ return /* @__PURE__ */ React17.createElement("div", {
10208
10249
  className: inputClass
10209
- }, /* @__PURE__ */ React15.createElement(FormInput, _extends8({}, properties1)), hasErrors ? /* @__PURE__ */ React15.createElement(FormComponents.FieldErrors, {
10250
+ }, /* @__PURE__ */ React17.createElement(FormInput, _extends9({}, properties1)), hasErrors ? /* @__PURE__ */ React17.createElement(FormComponents.FieldErrors, {
10210
10251
  errors
10211
- }) : null, renderClear(), showCharsRemaining && /* @__PURE__ */ React15.createElement("div", {
10252
+ }) : null, renderClear(), showCharsRemaining && /* @__PURE__ */ React17.createElement("div", {
10212
10253
  className: classNames("form-control-limit", {
10213
10254
  danger: charsRemaining < 10
10214
10255
  })
@@ -10217,7 +10258,7 @@ var FormComponentInner = /* @__PURE__ */ __name((props) => {
10217
10258
 
10218
10259
  // components/form/core/FormComponentLoader.tsx
10219
10260
  init_esm_shims();
10220
- import React16, { useEffect as useEffect4 } from "react";
10261
+ import React18, { useEffect as useEffect4 } from "react";
10221
10262
  import { useLazyQuery } from "@apollo/client";
10222
10263
  import isEmpty2 from "lodash/isEmpty.js";
10223
10264
  var FormComponentLoader = /* @__PURE__ */ __name((props) => {
@@ -10246,9 +10287,9 @@ var FormComponentLoader = /* @__PURE__ */ __name((props) => {
10246
10287
  throw new Error(error.toString());
10247
10288
  }
10248
10289
  if (loading) {
10249
- return /* @__PURE__ */ React16.createElement("div", {
10290
+ return /* @__PURE__ */ React18.createElement("div", {
10250
10291
  className: "form-component-loader"
10251
- }, /* @__PURE__ */ React16.createElement(VulcanComponents.Loading, null));
10292
+ }, /* @__PURE__ */ React18.createElement(VulcanComponents.Loading, null));
10252
10293
  }
10253
10294
  const extraProps = {
10254
10295
  data,
@@ -10262,11 +10303,11 @@ var FormComponentLoader = /* @__PURE__ */ __name((props) => {
10262
10303
  data
10263
10304
  }));
10264
10305
  }
10265
- if (!/* @__PURE__ */ React16.isValidElement(children)) {
10306
+ if (!/* @__PURE__ */ React18.isValidElement(children)) {
10266
10307
  throw new Error("Children of FormComponentLoader must be a React element, got " + children);
10267
10308
  }
10268
- const fci = /* @__PURE__ */ React16.cloneElement(children, extraProps);
10269
- return /* @__PURE__ */ React16.createElement("div", {
10309
+ const fci = /* @__PURE__ */ React18.cloneElement(children, extraProps);
10310
+ return /* @__PURE__ */ React18.createElement("div", {
10270
10311
  className: "form-component-loader"
10271
10312
  }, fci);
10272
10313
  }, "FormComponentLoader");
@@ -10274,11 +10315,11 @@ FormComponentLoader.propTypes = {};
10274
10315
 
10275
10316
  // components/form/core/FormGroup.tsx
10276
10317
  init_esm_shims();
10277
- import React17, { useState as useState3 } from "react";
10318
+ import React19, { useState as useState3 } from "react";
10278
10319
  import _some from "lodash/some.js";
10279
10320
  import { isAdmin } from "@vulcanjs/permissions";
10280
- function _extends9() {
10281
- _extends9 = Object.assign || function(target) {
10321
+ function _extends10() {
10322
+ _extends10 = Object.assign || function(target) {
10282
10323
  for (var i = 1; i < arguments.length; i++) {
10283
10324
  var source = arguments[i];
10284
10325
  for (var key in source) {
@@ -10289,14 +10330,14 @@ function _extends9() {
10289
10330
  }
10290
10331
  return target;
10291
10332
  };
10292
- return _extends9.apply(this, arguments);
10333
+ return _extends10.apply(this, arguments);
10293
10334
  }
10294
- __name(_extends9, "_extends");
10335
+ __name(_extends10, "_extends");
10295
10336
  var FormGroupLayout = /* @__PURE__ */ __name((_a) => {
10296
10337
  var _b = _a, { anchorName, collapsed, hasErrors, group, document, toggle } = _b, props = __objRest(_b, ["anchorName", "collapsed", "hasErrors", "group", "document", "toggle"]);
10297
- return /* @__PURE__ */ React17.createElement("fieldset", _extends9({}, props));
10338
+ return /* @__PURE__ */ React19.createElement("fieldset", _extends10({}, props));
10298
10339
  }, "FormGroupLayout");
10299
- var FormGroupHeader = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React17.createElement("h2", _extends9({}, props)), "FormGroupHeader");
10340
+ var FormGroupHeader = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React19.createElement("h2", _extends10({}, props)), "FormGroupHeader");
10300
10341
  var FormGroup = /* @__PURE__ */ __name((props) => {
10301
10342
  const { name: name2, label, group, fields, hidden, document, currentUser, disabled, itemProperties, prefilledProps, formType } = props;
10302
10343
  const { errors, clearFieldErrors } = useFormContext();
@@ -10309,7 +10350,7 @@ var FormGroup = /* @__PURE__ */ __name((props) => {
10309
10350
  const isHidden = typeof hidden === "function" ? hidden(__spreadProps(__spreadValues({}, props), {
10310
10351
  document
10311
10352
  })) : hidden || false;
10312
- const heading = /* @__PURE__ */ React17.createElement(VulcanComponents.FormGroupHeader, {
10353
+ const heading = /* @__PURE__ */ React19.createElement(VulcanComponents.FormGroupHeader, {
10313
10354
  toggle,
10314
10355
  label,
10315
10356
  collapsed: collapsed1,
@@ -10320,7 +10361,7 @@ var FormGroup = /* @__PURE__ */ __name((props) => {
10320
10361
  return null;
10321
10362
  }
10322
10363
  const anchorName = name2.split(".").length > 1 ? name2.split(".")[1] : name2;
10323
- return /* @__PURE__ */ React17.createElement(VulcanComponents.FormGroupLayout, {
10364
+ return /* @__PURE__ */ React19.createElement(VulcanComponents.FormGroupLayout, {
10324
10365
  label,
10325
10366
  anchorName,
10326
10367
  toggle,
@@ -10330,7 +10371,7 @@ var FormGroup = /* @__PURE__ */ __name((props) => {
10330
10371
  heading: name2 === "default" ? null : heading,
10331
10372
  hasErrors,
10332
10373
  document
10333
- }, fields.map((field) => /* @__PURE__ */ React17.createElement(VulcanComponents.FormComponent, _extends9({
10374
+ }, fields.map((field) => /* @__PURE__ */ React19.createElement(VulcanComponents.FormComponent, _extends10({
10334
10375
  key: field.name,
10335
10376
  disabled
10336
10377
  }, field, {
@@ -10345,10 +10386,10 @@ var FormGroup = /* @__PURE__ */ __name((props) => {
10345
10386
 
10346
10387
  // components/form/intl/FormIntl.tsx
10347
10388
  init_esm_shims();
10348
- import React18 from "react";
10389
+ import React20 from "react";
10349
10390
  import omit2 from "lodash/omit.js";
10350
- function _extends10() {
10351
- _extends10 = Object.assign || function(target) {
10391
+ function _extends11() {
10392
+ _extends11 = Object.assign || function(target) {
10352
10393
  for (var i = 1; i < arguments.length; i++) {
10353
10394
  var source = arguments[i];
10354
10395
  for (var key in source) {
@@ -10359,13 +10400,13 @@ function _extends10() {
10359
10400
  }
10360
10401
  return target;
10361
10402
  };
10362
- return _extends10.apply(this, arguments);
10403
+ return _extends11.apply(this, arguments);
10363
10404
  }
10364
- __name(_extends10, "_extends");
10365
- var FormIntlLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React18.createElement("div", {
10405
+ __name(_extends11, "_extends");
10406
+ var FormIntlLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React20.createElement("div", {
10366
10407
  className: "form-intl"
10367
10408
  }, children), "FormIntlLayout");
10368
- var FormIntlItemLayout = /* @__PURE__ */ __name(({ locale, children }) => /* @__PURE__ */ React18.createElement("div", {
10409
+ var FormIntlItemLayout = /* @__PURE__ */ __name(({ locale, children }) => /* @__PURE__ */ React20.createElement("div", {
10369
10410
  className: `form-intl-${locale.id}`
10370
10411
  }, children), "FormIntlItemLayout");
10371
10412
  var FormIntl = /* @__PURE__ */ __name((props) => {
@@ -10377,10 +10418,10 @@ var FormIntl = /* @__PURE__ */ __name((props) => {
10377
10418
  }, "getLocalePath");
10378
10419
  const { name: name2 } = props;
10379
10420
  const properties = omit2(props, "value", "inputProperties", "intlInput", "nestedInput");
10380
- return /* @__PURE__ */ React18.createElement(FormComponents.FormIntlLayout, null, Locales.map((locale, i) => /* @__PURE__ */ React18.createElement(FormComponents.FormIntlItemLayout, {
10421
+ return /* @__PURE__ */ React20.createElement(FormComponents.FormIntlLayout, null, Locales.map((locale, i) => /* @__PURE__ */ React20.createElement(FormComponents.FormIntlItemLayout, {
10381
10422
  key: locale.id,
10382
10423
  locale
10383
- }, /* @__PURE__ */ React18.createElement(FormComponents.FormComponent, _extends10({}, properties, {
10424
+ }, /* @__PURE__ */ React20.createElement(FormComponents.FormComponent, _extends11({}, properties, {
10384
10425
  label: getLabel2(name2, locale.id),
10385
10426
  path: getLocalePath(i),
10386
10427
  locale: locale.id
@@ -10392,11 +10433,11 @@ init_esm_shims();
10392
10433
 
10393
10434
  // components/form/nested/FormNestedArray.tsx
10394
10435
  init_esm_shims();
10395
- import React19, { useEffect as useEffect5 } from "react";
10436
+ import React21, { useEffect as useEffect5 } from "react";
10396
10437
  import _omit from "lodash/omit.js";
10397
10438
  import _get from "lodash/get.js";
10398
- function _extends11() {
10399
- _extends11 = Object.assign || function(target) {
10439
+ function _extends12() {
10440
+ _extends12 = Object.assign || function(target) {
10400
10441
  for (var i = 1; i < arguments.length; i++) {
10401
10442
  var source = arguments[i];
10402
10443
  for (var key in source) {
@@ -10407,18 +10448,18 @@ function _extends11() {
10407
10448
  }
10408
10449
  return target;
10409
10450
  };
10410
- return _extends11.apply(this, arguments);
10451
+ return _extends12.apply(this, arguments);
10411
10452
  }
10412
- __name(_extends11, "_extends");
10453
+ __name(_extends12, "_extends");
10413
10454
  var FormNestedArrayInnerLayout = /* @__PURE__ */ __name((props) => {
10414
10455
  const { label, children, addItem, BeforeComponent, AfterComponent } = props;
10415
10456
  const FormComponents = useVulcanComponents();
10416
- return /* @__PURE__ */ React19.createElement("div", {
10457
+ return /* @__PURE__ */ React21.createElement("div", {
10417
10458
  className: "form-nested-array-inner-layout"
10418
- }, /* @__PURE__ */ React19.createElement(BeforeComponent, _extends11({}, props)), children, /* @__PURE__ */ React19.createElement(FormComponents.FormNestedDivider, {
10459
+ }, /* @__PURE__ */ React21.createElement(BeforeComponent, _extends12({}, props)), children, /* @__PURE__ */ React21.createElement(FormComponents.FormNestedDivider, {
10419
10460
  label,
10420
10461
  addItem
10421
- }), /* @__PURE__ */ React19.createElement(AfterComponent, _extends11({}, props)));
10462
+ }), /* @__PURE__ */ React21.createElement(AfterComponent, _extends12({}, props)));
10422
10463
  }, "FormNestedArrayInnerLayout");
10423
10464
  var FormNestedArray = /* @__PURE__ */ __name((props) => {
10424
10465
  const { updateCurrentValues, deletedValues, errors } = useFormContext();
@@ -10465,18 +10506,18 @@ var FormNestedArray = /* @__PURE__ */ __name((props) => {
10465
10506
  properties.addItem = !maxCount || arrayLength < maxCount ? addItem : null;
10466
10507
  properties.nestedArrayErrors = errors.filter((error) => error.path && error.path === path1);
10467
10508
  properties.hasErrors = !!(properties.nestedArrayErrors && properties.nestedArrayErrors.length);
10468
- return /* @__PURE__ */ React19.createElement(FormComponents.FormNestedArrayLayout, _extends11({}, properties), value.map((subDocument, i) => {
10509
+ return /* @__PURE__ */ React21.createElement(FormComponents.FormNestedArrayLayout, _extends12({}, properties), value.map((subDocument, i) => {
10469
10510
  if (isDeleted(i))
10470
10511
  return null;
10471
10512
  const path = `${props.path}.${i}`;
10472
10513
  const visibleItemIndex = visibleItemIndexes[i];
10473
- return /* @__PURE__ */ React19.createElement(FormComponents.FormNestedArrayInnerLayout, _extends11({}, arrayField, {
10514
+ return /* @__PURE__ */ React21.createElement(FormComponents.FormNestedArrayInnerLayout, _extends12({}, arrayField, {
10474
10515
  key: path,
10475
10516
  addItem,
10476
10517
  itemIndex: i,
10477
10518
  visibleItemIndex,
10478
10519
  path
10479
- }), /* @__PURE__ */ React19.createElement(FormComponents.FormNestedItem, _extends11({}, properties, {
10520
+ }), /* @__PURE__ */ React21.createElement(FormComponents.FormNestedItem, _extends12({}, properties, {
10480
10521
  itemIndex: i,
10481
10522
  visibleItemIndex,
10482
10523
  path,
@@ -10487,21 +10528,21 @@ var FormNestedArray = /* @__PURE__ */ __name((props) => {
10487
10528
  })));
10488
10529
  }));
10489
10530
  }, "FormNestedArray");
10490
- var IconAdd = /* @__PURE__ */ __name(({ width = 24, height = 24 }) => /* @__PURE__ */ React19.createElement("svg", {
10531
+ var IconAdd = /* @__PURE__ */ __name(({ width = 24, height = 24 }) => /* @__PURE__ */ React21.createElement("svg", {
10491
10532
  width,
10492
10533
  height,
10493
10534
  xmlns: "http://www.w3.org/2000/svg",
10494
10535
  viewBox: "0 0 448 512"
10495
- }, /* @__PURE__ */ React19.createElement("path", {
10536
+ }, /* @__PURE__ */ React21.createElement("path", {
10496
10537
  fill: "currentColor",
10497
10538
  d: "M448 294.2v-76.4c0-13.3-10.7-24-24-24H286.2V56c0-13.3-10.7-24-24-24h-76.4c-13.3 0-24 10.7-24 24v137.8H24c-13.3 0-24 10.7-24 24v76.4c0 13.3 10.7 24 24 24h137.8V456c0 13.3 10.7 24 24 24h76.4c13.3 0 24-10.7 24-24V318.2H424c13.3 0 24-10.7 24-24z"
10498
10539
  })), "IconAdd");
10499
- var IconRemove = /* @__PURE__ */ __name(({ width = 24, height = 24 }) => /* @__PURE__ */ React19.createElement("svg", {
10540
+ var IconRemove = /* @__PURE__ */ __name(({ width = 24, height = 24 }) => /* @__PURE__ */ React21.createElement("svg", {
10500
10541
  width,
10501
10542
  height,
10502
10543
  xmlns: "http://www.w3.org/2000/svg",
10503
10544
  viewBox: "0 0 448 512"
10504
- }, /* @__PURE__ */ React19.createElement("path", {
10545
+ }, /* @__PURE__ */ React21.createElement("path", {
10505
10546
  fill: "currentColor",
10506
10547
  d: "M424 318.2c13.3 0 24-10.7 24-24v-76.4c0-13.3-10.7-24-24-24H24c-13.3 0-24 10.7-24 24v76.4c0 13.3 10.7 24 24 24h400z"
10507
10548
  })), "IconRemove");
@@ -10509,9 +10550,9 @@ var IconRemove = /* @__PURE__ */ __name(({ width = 24, height = 24 }) => /* @__P
10509
10550
  // components/form/nested/FormNestedArrayLayout.tsx
10510
10551
  init_esm_shims();
10511
10552
  var import_prop_types2 = __toESM(require_prop_types(), 1);
10512
- import React20 from "react";
10513
- function _extends12() {
10514
- _extends12 = Object.assign || function(target) {
10553
+ import React22 from "react";
10554
+ function _extends13() {
10555
+ _extends13 = Object.assign || function(target) {
10515
10556
  for (var i = 1; i < arguments.length; i++) {
10516
10557
  var source = arguments[i];
10517
10558
  for (var key in source) {
@@ -10522,30 +10563,30 @@ function _extends12() {
10522
10563
  }
10523
10564
  return target;
10524
10565
  };
10525
- return _extends12.apply(this, arguments);
10566
+ return _extends13.apply(this, arguments);
10526
10567
  }
10527
- __name(_extends12, "_extends");
10568
+ __name(_extends13, "_extends");
10528
10569
  var FormNestedArrayLayout = /* @__PURE__ */ __name((props) => {
10529
10570
  const { hasErrors, nestedArrayErrors, label, addItem, BeforeComponent, AfterComponent, children } = props;
10530
10571
  const VulcanComponents = useVulcanComponents();
10531
- return /* @__PURE__ */ React20.createElement("div", {
10572
+ return /* @__PURE__ */ React22.createElement("div", {
10532
10573
  className: `form-group row form-nested ${hasErrors ? "input-error" : ""}`
10533
- }, BeforeComponent && /* @__PURE__ */ React20.createElement(BeforeComponent, _extends12({}, props)), /* @__PURE__ */ React20.createElement("label", {
10574
+ }, BeforeComponent && /* @__PURE__ */ React22.createElement(BeforeComponent, _extends13({}, props)), /* @__PURE__ */ React22.createElement("label", {
10534
10575
  className: "control-label col-sm-3"
10535
- }, label), /* @__PURE__ */ React20.createElement("div", {
10576
+ }, label), /* @__PURE__ */ React22.createElement("div", {
10536
10577
  className: "col-sm-9"
10537
- }, children, addItem && /* @__PURE__ */ React20.createElement(VulcanComponents.Button, {
10578
+ }, children, addItem && /* @__PURE__ */ React22.createElement(VulcanComponents.Button, {
10538
10579
  className: "form-nested-button form-nested-add",
10539
10580
  size: "sm",
10540
10581
  variant: "success",
10541
10582
  onClick: addItem
10542
- }, /* @__PURE__ */ React20.createElement(VulcanComponents.IconAdd, {
10583
+ }, /* @__PURE__ */ React22.createElement(VulcanComponents.IconAdd, {
10543
10584
  height: 12,
10544
10585
  width: 12
10545
- })), props.hasErrors ? /* @__PURE__ */ React20.createElement(VulcanComponents.FieldErrors, {
10586
+ })), props.hasErrors ? /* @__PURE__ */ React22.createElement(VulcanComponents.FieldErrors, {
10546
10587
  key: "form-nested-errors",
10547
10588
  errors: nestedArrayErrors
10548
- }) : null), AfterComponent && /* @__PURE__ */ React20.createElement(AfterComponent, _extends12({}, props)));
10589
+ }) : null), AfterComponent && /* @__PURE__ */ React22.createElement(AfterComponent, _extends13({}, props)));
10549
10590
  }, "FormNestedArrayLayout");
10550
10591
  FormNestedArrayLayout.propTypes = {
10551
10592
  hasErrors: import_prop_types2.default.bool.isRequired,
@@ -10562,11 +10603,11 @@ FormNestedArrayLayout.propTypes = {
10562
10603
  // components/form/nested/FormNestedItem.tsx
10563
10604
  init_esm_shims();
10564
10605
  var import_prop_types3 = __toESM(require_prop_types(), 1);
10565
- import React21 from "react";
10606
+ import React23 from "react";
10566
10607
  import { intlShape } from "@vulcanjs/react-i18n";
10567
10608
  import { useIntlContext as useIntlContext4 } from "@vulcanjs/react-i18n";
10568
- function _extends13() {
10569
- _extends13 = Object.assign || function(target) {
10609
+ function _extends14() {
10610
+ _extends14 = Object.assign || function(target) {
10570
10611
  for (var i = 1; i < arguments.length; i++) {
10571
10612
  var source = arguments[i];
10572
10613
  for (var key in source) {
@@ -10577,19 +10618,19 @@ function _extends13() {
10577
10618
  }
10578
10619
  return target;
10579
10620
  };
10580
- return _extends13.apply(this, arguments);
10621
+ return _extends14.apply(this, arguments);
10581
10622
  }
10582
- __name(_extends13, "_extends");
10583
- var FormNestedItemLayout = /* @__PURE__ */ __name(({ content, removeButton }) => /* @__PURE__ */ React21.createElement("div", {
10623
+ __name(_extends14, "_extends");
10624
+ var FormNestedItemLayout = /* @__PURE__ */ __name(({ content, removeButton }) => /* @__PURE__ */ React23.createElement("div", {
10584
10625
  className: "form-nested-item"
10585
- }, /* @__PURE__ */ React21.createElement("div", {
10626
+ }, /* @__PURE__ */ React23.createElement("div", {
10586
10627
  className: "form-nested-item-inner"
10587
10628
  }, content), removeButton && [
10588
- /* @__PURE__ */ React21.createElement("div", {
10629
+ /* @__PURE__ */ React23.createElement("div", {
10589
10630
  key: "remove-button",
10590
10631
  className: "form-nested-item-remove"
10591
10632
  }, removeButton),
10592
- /* @__PURE__ */ React21.createElement("div", {
10633
+ /* @__PURE__ */ React23.createElement("div", {
10593
10634
  key: "remove-button-overlay",
10594
10635
  className: "form-nested-item-deleted-overlay"
10595
10636
  })
@@ -10603,9 +10644,9 @@ var FormNestedItem = /* @__PURE__ */ __name((_a) => {
10603
10644
  const VulcanComponents = useVulcanComponents();
10604
10645
  const intl = useIntlContext4();
10605
10646
  const isArray = typeof itemIndex !== "undefined";
10606
- return /* @__PURE__ */ React21.createElement(VulcanComponents.FormNestedItemLayout, {
10647
+ return /* @__PURE__ */ React23.createElement(VulcanComponents.FormNestedItemLayout, {
10607
10648
  content: nestedFields.map((field, i) => {
10608
- return /* @__PURE__ */ React21.createElement(VulcanComponents.FormComponent, _extends13({
10649
+ return /* @__PURE__ */ React23.createElement(VulcanComponents.FormComponent, _extends14({
10609
10650
  key: i
10610
10651
  }, props, field, {
10611
10652
  path: `${path}.${field.name}`,
@@ -10613,10 +10654,10 @@ var FormNestedItem = /* @__PURE__ */ __name((_a) => {
10613
10654
  }));
10614
10655
  }),
10615
10656
  removeButton: isArray && !hideRemove && [
10616
- /* @__PURE__ */ React21.createElement("div", {
10657
+ /* @__PURE__ */ React23.createElement("div", {
10617
10658
  key: "remove-button",
10618
10659
  className: "form-nested-item-remove"
10619
- }, /* @__PURE__ */ React21.createElement(VulcanComponents.Button, {
10660
+ }, /* @__PURE__ */ React23.createElement(VulcanComponents.Button, {
10620
10661
  className: "form-nested-button",
10621
10662
  variant: "danger",
10622
10663
  size: "sm",
@@ -10630,11 +10671,11 @@ var FormNestedItem = /* @__PURE__ */ __name((_a) => {
10630
10671
  }, {
10631
10672
  label
10632
10673
  })
10633
- }, /* @__PURE__ */ React21.createElement(VulcanComponents.IconRemove, {
10674
+ }, /* @__PURE__ */ React23.createElement(VulcanComponents.IconRemove, {
10634
10675
  height: 12,
10635
10676
  width: 12
10636
10677
  }))),
10637
- /* @__PURE__ */ React21.createElement("div", {
10678
+ /* @__PURE__ */ React23.createElement("div", {
10638
10679
  key: "remove-button-overlay",
10639
10680
  className: "form-nested-item-deleted-overlay"
10640
10681
  })
@@ -10655,8 +10696,8 @@ FormNestedItem.contextTypes = {
10655
10696
  // components/form/nested/FormNestedDivider.tsx
10656
10697
  init_esm_shims();
10657
10698
  var import_prop_types4 = __toESM(require_prop_types(), 1);
10658
- import React22 from "react";
10659
- var FormNestedDivider = /* @__PURE__ */ __name(({ label, addItem }) => /* @__PURE__ */ React22.createElement("div", null), "FormNestedDivider");
10699
+ import React24 from "react";
10700
+ var FormNestedDivider = /* @__PURE__ */ __name(({ label, addItem }) => /* @__PURE__ */ React24.createElement("div", null), "FormNestedDivider");
10660
10701
  FormNestedDivider.propTypes = {
10661
10702
  label: import_prop_types4.default.string,
10662
10703
  addItem: import_prop_types4.default.func
@@ -10665,10 +10706,10 @@ FormNestedDivider.propTypes = {
10665
10706
  // components/form/nested/FormNestedObject.tsx
10666
10707
  init_esm_shims();
10667
10708
  var import_prop_types5 = __toESM(require_prop_types(), 1);
10668
- import React23 from "react";
10709
+ import React25 from "react";
10669
10710
  import _omit2 from "lodash/omit.js";
10670
- function _extends14() {
10671
- _extends14 = Object.assign || function(target) {
10711
+ function _extends15() {
10712
+ _extends15 = Object.assign || function(target) {
10672
10713
  for (var i = 1; i < arguments.length; i++) {
10673
10714
  var source = arguments[i];
10674
10715
  for (var key in source) {
@@ -10679,14 +10720,14 @@ function _extends14() {
10679
10720
  }
10680
10721
  return target;
10681
10722
  };
10682
- return _extends14.apply(this, arguments);
10723
+ return _extends15.apply(this, arguments);
10683
10724
  }
10684
- __name(_extends14, "_extends");
10685
- var FormNestedObjectLayout = /* @__PURE__ */ __name(({ hasErrors, label, content }) => /* @__PURE__ */ React23.createElement("div", {
10725
+ __name(_extends15, "_extends");
10726
+ var FormNestedObjectLayout = /* @__PURE__ */ __name(({ hasErrors, label, content }) => /* @__PURE__ */ React25.createElement("div", {
10686
10727
  className: `form-group row form-nested ${hasErrors ? "input-error" : ""}`
10687
- }, /* @__PURE__ */ React23.createElement("label", {
10728
+ }, /* @__PURE__ */ React25.createElement("label", {
10688
10729
  className: "control-label col-sm-3"
10689
- }, label), /* @__PURE__ */ React23.createElement("div", {
10730
+ }, label), /* @__PURE__ */ React25.createElement("div", {
10690
10731
  className: "col-sm-9"
10691
10732
  }, content)), "FormNestedObjectLayout");
10692
10733
  FormNestedObjectLayout.propTypes = {
@@ -10703,16 +10744,16 @@ var FormNestedObject = /* @__PURE__ */ __name((props) => {
10703
10744
  const { errors } = useFormContext();
10704
10745
  const nestedObjectErrors = errors.filter((error) => error.path && error.path === props.path);
10705
10746
  const hasErrors = nestedObjectErrors && nestedObjectErrors.length;
10706
- return /* @__PURE__ */ React23.createElement(VulcanComponents.FormNestedObjectLayout, {
10747
+ return /* @__PURE__ */ React25.createElement(VulcanComponents.FormNestedObjectLayout, {
10707
10748
  hasErrors,
10708
10749
  label: props.label,
10709
10750
  content: [
10710
- /* @__PURE__ */ React23.createElement(VulcanComponents.FormNestedItem, _extends14({
10751
+ /* @__PURE__ */ React25.createElement(VulcanComponents.FormNestedItem, _extends15({
10711
10752
  key: "form-nested-item"
10712
10753
  }, properties, {
10713
10754
  path: `${props.path}`
10714
10755
  })),
10715
- hasErrors ? /* @__PURE__ */ React23.createElement(VulcanComponents.FieldErrors, {
10756
+ hasErrors ? /* @__PURE__ */ React25.createElement(VulcanComponents.FieldErrors, {
10716
10757
  key: "form-nested-errors",
10717
10758
  errors: nestedObjectErrors
10718
10759
  }) : null
@@ -10732,9 +10773,9 @@ init_esm_shims();
10732
10773
 
10733
10774
  // components/form/inputs/BasicInputs.tsx
10734
10775
  init_esm_shims();
10735
- import React24 from "react";
10736
- function _extends15() {
10737
- _extends15 = Object.assign || function(target) {
10776
+ import React26 from "react";
10777
+ function _extends16() {
10778
+ _extends16 = Object.assign || function(target) {
10738
10779
  for (var i = 1; i < arguments.length; i++) {
10739
10780
  var source = arguments[i];
10740
10781
  for (var key in source) {
@@ -10745,56 +10786,56 @@ function _extends15() {
10745
10786
  }
10746
10787
  return target;
10747
10788
  };
10748
- return _extends15.apply(this, arguments);
10789
+ return _extends16.apply(this, arguments);
10749
10790
  }
10750
- __name(_extends15, "_extends");
10791
+ __name(_extends16, "_extends");
10751
10792
  var HTMLInputAdapter = /* @__PURE__ */ __name((props) => {
10752
10793
  const Components2 = useVulcanComponents();
10753
10794
  const { inputProperties = {}, itemProperties = {}, path } = props;
10754
10795
  const _a = inputProperties, { label, name: name2 } = _a, otherInputProperties = __objRest(_a, ["label", "name"]);
10755
- return /* @__PURE__ */ React24.createElement(Components2.FormItem, _extends15({
10796
+ return /* @__PURE__ */ React26.createElement(Components2.FormItem, _extends16({
10756
10797
  name: name2,
10757
10798
  path,
10758
10799
  label,
10759
10800
  inputProperties
10760
- }, itemProperties), /* @__PURE__ */ React24.createElement("input", _extends15({}, otherInputProperties, {
10801
+ }, itemProperties), /* @__PURE__ */ React26.createElement("input", _extends16({}, otherInputProperties, {
10761
10802
  id: name2,
10762
10803
  name: name2,
10763
10804
  type: props.type
10764
10805
  })));
10765
10806
  }, "HTMLInputAdapter");
10766
- var FormComponentDefault = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React24.createElement(HTMLInputAdapter, _extends15({
10807
+ var FormComponentDefault = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React26.createElement(HTMLInputAdapter, _extends16({
10767
10808
  type: "text"
10768
10809
  }, props)), "FormComponentDefault");
10769
- var FormComponentPassword = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React24.createElement(HTMLInputAdapter, _extends15({
10810
+ var FormComponentPassword = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React26.createElement(HTMLInputAdapter, _extends16({
10770
10811
  type: "password"
10771
10812
  }, props)), "FormComponentPassword");
10772
- var FormComponentNumber = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React24.createElement(HTMLInputAdapter, _extends15({
10813
+ var FormComponentNumber = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React26.createElement(HTMLInputAdapter, _extends16({
10773
10814
  type: "number"
10774
10815
  }, props)), "FormComponentNumber");
10775
- var FormComponentUrl = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React24.createElement(HTMLInputAdapter, _extends15({
10816
+ var FormComponentUrl = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React26.createElement(HTMLInputAdapter, _extends16({
10776
10817
  type: "url"
10777
10818
  }, props)), "FormComponentUrl");
10778
- var FormComponentEmail = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React24.createElement(HTMLInputAdapter, _extends15({
10819
+ var FormComponentEmail = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React26.createElement(HTMLInputAdapter, _extends16({
10779
10820
  type: "email"
10780
10821
  }, props)), "FormComponentEmail");
10781
10822
  var FormComponentCheckbox = /* @__PURE__ */ __name((props) => {
10782
- return /* @__PURE__ */ React24.createElement(HTMLInputAdapter, _extends15({
10823
+ return /* @__PURE__ */ React26.createElement(HTMLInputAdapter, _extends16({
10783
10824
  type: "checkbox"
10784
10825
  }, props));
10785
10826
  }, "FormComponentCheckbox");
10786
- var FormComponentDate = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React24.createElement(HTMLInputAdapter, _extends15({
10827
+ var FormComponentDate = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React26.createElement(HTMLInputAdapter, _extends16({
10787
10828
  type: "date"
10788
10829
  }, props)), "FormComponentDate");
10789
- var FormComponentDateTime = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React24.createElement(HTMLInputAdapter, _extends15({
10830
+ var FormComponentDateTime = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React26.createElement(HTMLInputAdapter, _extends16({
10790
10831
  type: "datetime-local"
10791
10832
  }, props)), "FormComponentDateTime");
10792
- var FormComponentTime = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React24.createElement(HTMLInputAdapter, _extends15({
10833
+ var FormComponentTime = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React26.createElement(HTMLInputAdapter, _extends16({
10793
10834
  type: "time"
10794
10835
  }, props)), "FormComponentTime");
10795
10836
  var FormComponentStaticText = /* @__PURE__ */ __name((props) => {
10796
10837
  const { inputProperties } = props;
10797
- return /* @__PURE__ */ React24.createElement("input", _extends15({}, inputProperties, {
10838
+ return /* @__PURE__ */ React26.createElement("input", _extends16({}, inputProperties, {
10798
10839
  disabled: true
10799
10840
  }));
10800
10841
  }, "FormComponentStaticText");
@@ -10804,21 +10845,21 @@ var FormComponentTextarea = /* @__PURE__ */ __name((props) => {
10804
10845
  const Components2 = useVulcanComponents();
10805
10846
  const { inputProperties = {}, itemProperties = {}, path } = props;
10806
10847
  const _a = inputProperties, { label, name: name2 } = _a, otherInputProperties = __objRest(_a, ["label", "name"]);
10807
- return /* @__PURE__ */ React24.createElement(Components2.FormItem, _extends15({
10848
+ return /* @__PURE__ */ React26.createElement(Components2.FormItem, _extends16({
10808
10849
  name: name2,
10809
10850
  path,
10810
10851
  label,
10811
10852
  inputProperties
10812
- }, itemProperties), /* @__PURE__ */ React24.createElement("label", {
10853
+ }, itemProperties), /* @__PURE__ */ React26.createElement("label", {
10813
10854
  htmlFor: "name"
10814
- }, label), /* @__PURE__ */ React24.createElement("textarea", _extends15({}, inputProperties)));
10855
+ }, label), /* @__PURE__ */ React26.createElement("textarea", _extends16({}, inputProperties)));
10815
10856
  }, "FormComponentTextarea");
10816
10857
 
10817
10858
  // components/form/inputs/RadioGroup.tsx
10818
10859
  init_esm_shims();
10819
- import React25 from "react";
10820
- function _extends16() {
10821
- _extends16 = Object.assign || function(target) {
10860
+ import React27 from "react";
10861
+ function _extends17() {
10862
+ _extends17 = Object.assign || function(target) {
10822
10863
  for (var i = 1; i < arguments.length; i++) {
10823
10864
  var source = arguments[i];
10824
10865
  for (var key in source) {
@@ -10829,48 +10870,48 @@ function _extends16() {
10829
10870
  }
10830
10871
  return target;
10831
10872
  };
10832
- return _extends16.apply(this, arguments);
10873
+ return _extends17.apply(this, arguments);
10833
10874
  }
10834
- __name(_extends16, "_extends");
10875
+ __name(_extends17, "_extends");
10835
10876
  var FormComponentRadioGroup = /* @__PURE__ */ __name((props) => {
10836
- const { path, inputProperties, options = [], itemProperties } = props;
10877
+ const { value: propsValue, path, inputProperties, options = [], itemProperties } = props;
10837
10878
  const { label, name: name2 } = inputProperties;
10838
10879
  if (!Array.isArray(options))
10839
10880
  throw new Error("RadioGroup not yet supporting functional options");
10840
10881
  const Components2 = useVulcanComponents();
10841
- return /* @__PURE__ */ React25.createElement(Components2.FormItem, _extends16({
10882
+ return /* @__PURE__ */ React27.createElement(Components2.FormItem, _extends17({
10842
10883
  path,
10843
10884
  name: name2,
10844
10885
  label,
10845
10886
  inputProperties
10846
10887
  }, itemProperties), options.map((option) => {
10847
10888
  const { value, label: label2 } = option;
10848
- return /* @__PURE__ */ React25.createElement("div", {
10889
+ return /* @__PURE__ */ React27.createElement("div", {
10849
10890
  key: value,
10850
10891
  className: "form-radio-group-radio-item"
10851
- }, /* @__PURE__ */ React25.createElement(Components2.FormOptionLabel, {
10892
+ }, /* @__PURE__ */ React27.createElement(Components2.FormOptionLabel, {
10852
10893
  option
10853
- }), /* @__PURE__ */ React25.createElement("input", _extends16({
10894
+ }), /* @__PURE__ */ React27.createElement("input", _extends17({
10854
10895
  type: "radio",
10855
10896
  id: value,
10856
10897
  name: name2,
10857
10898
  key: value
10858
10899
  }, inputProperties, {
10859
10900
  value,
10860
- checked: value === inputProperties.value
10901
+ checked: value === propsValue
10861
10902
  })));
10862
10903
  }));
10863
10904
  }, "FormComponentRadioGroup");
10864
10905
 
10865
10906
  // components/form/inputs/Checkboxgroup.tsx
10866
10907
  init_esm_shims();
10867
- import React26, { useState as useState4 } from "react";
10908
+ import React28, { useState as useState4 } from "react";
10868
10909
  import without2 from "lodash/without.js";
10869
10910
  import omit3 from "lodash/omit.js";
10870
10911
  import uniq2 from "lodash/uniq.js";
10871
10912
  import isEmpty3 from "lodash/isEmpty.js";
10872
- function _extends17() {
10873
- _extends17 = Object.assign || function(target) {
10913
+ function _extends18() {
10914
+ _extends18 = Object.assign || function(target) {
10874
10915
  for (var i = 1; i < arguments.length; i++) {
10875
10916
  var source = arguments[i];
10876
10917
  for (var key in source) {
@@ -10881,9 +10922,9 @@ function _extends17() {
10881
10922
  }
10882
10923
  return target;
10883
10924
  };
10884
- return _extends17.apply(this, arguments);
10925
+ return _extends18.apply(this, arguments);
10885
10926
  }
10886
- __name(_extends17, "_extends");
10927
+ __name(_extends18, "_extends");
10887
10928
  var otherMarker = "[other]";
10888
10929
  var isOtherValue = /* @__PURE__ */ __name((s) => s && typeof s === "string" && s.substr(0, otherMarker.length) === otherMarker, "isOtherValue");
10889
10930
  var removeOtherMarker = /* @__PURE__ */ __name((s) => s && typeof s === "string" && s.substr(otherMarker.length), "removeOtherMarker");
@@ -10916,9 +10957,9 @@ var OtherComponent = /* @__PURE__ */ __name(({ value, path }) => {
10916
10957
  const textFieldItemProperties = {
10917
10958
  layout: "elementOnly"
10918
10959
  };
10919
- return /* @__PURE__ */ React26.createElement("div", {
10960
+ return /* @__PURE__ */ React28.createElement("div", {
10920
10961
  className: "form-option-other"
10921
- }, /* @__PURE__ */ React26.createElement(Components2.FormComponentCheckbox, {
10962
+ }, /* @__PURE__ */ React28.createElement(Components2.FormComponentCheckbox, {
10922
10963
  layout: "elementOnly",
10923
10964
  label: "Other",
10924
10965
  value: showOther,
@@ -10941,7 +10982,7 @@ var OtherComponent = /* @__PURE__ */ __name(({ value, path }) => {
10941
10982
  });
10942
10983
  }
10943
10984
  }
10944
- }), showOther && /* @__PURE__ */ React26.createElement(Components2.FormComponentText, {
10985
+ }), showOther && /* @__PURE__ */ React28.createElement(Components2.FormComponentText, {
10945
10986
  inputProperties: textFieldInputProperties,
10946
10987
  itemProperties: textFieldItemProperties
10947
10988
  }));
@@ -10955,23 +10996,23 @@ var FormComponentCheckboxGroup = /* @__PURE__ */ __name((props) => {
10955
10996
  throw new Error("FormComponentCheckboxGroup not yet supporting functional options");
10956
10997
  const value = valueFromProps ? uniq2(valueFromProps.filter((v) => isOtherValue(v) || options.map((o) => o.value).includes(v))) : [];
10957
10998
  const hasValue = value.length > 0;
10958
- return /* @__PURE__ */ React26.createElement(Components2.FormItem, _extends17({
10999
+ return /* @__PURE__ */ React28.createElement(Components2.FormItem, _extends18({
10959
11000
  name: name2,
10960
11001
  label,
10961
11002
  path,
10962
11003
  inputProperties
10963
- }, itemProperties), /* @__PURE__ */ React26.createElement("div", {
11004
+ }, itemProperties), /* @__PURE__ */ React28.createElement("div", {
10964
11005
  className: "form-item-options"
10965
11006
  }, options.map((option, i) => {
10966
11007
  const isChecked1 = value.includes(option.value);
10967
11008
  const checkClass = hasValue ? isChecked1 ? "form-check-checked" : "form-check-unchecked" : "";
10968
- return /* @__PURE__ */ React26.createElement("div", {
11009
+ return /* @__PURE__ */ React28.createElement("div", {
10969
11010
  className: "form-item-option",
10970
11011
  key: option.value
10971
- }, /* @__PURE__ */ React26.createElement(Components2.FormOptionLabel, {
11012
+ }, /* @__PURE__ */ React28.createElement(Components2.FormOptionLabel, {
10972
11013
  option,
10973
11014
  name: name2
10974
- }), /* @__PURE__ */ React26.createElement("input", _extends17({
11015
+ }), /* @__PURE__ */ React28.createElement("input", _extends18({
10975
11016
  type: "checkbox"
10976
11017
  }, omit3(inputProperties, "value"), {
10977
11018
  name: name2,
@@ -10990,7 +11031,7 @@ var FormComponentCheckboxGroup = /* @__PURE__ */ __name((props) => {
10990
11031
  },
10991
11032
  className: checkClass
10992
11033
  })));
10993
- }), itemProperties.showOther && /* @__PURE__ */ React26.createElement(OtherComponent, {
11034
+ }), itemProperties.showOther && /* @__PURE__ */ React28.createElement(OtherComponent, {
10994
11035
  value,
10995
11036
  path
10996
11037
  })));
@@ -10998,9 +11039,9 @@ var FormComponentCheckboxGroup = /* @__PURE__ */ __name((props) => {
10998
11039
 
10999
11040
  // components/form/inputs/SelectInputs.tsx
11000
11041
  init_esm_shims();
11001
- import React27 from "react";
11002
- function _extends18() {
11003
- _extends18 = Object.assign || function(target) {
11042
+ import React29 from "react";
11043
+ function _extends19() {
11044
+ _extends19 = Object.assign || function(target) {
11004
11045
  for (var i = 1; i < arguments.length; i++) {
11005
11046
  var source = arguments[i];
11006
11047
  for (var key in source) {
@@ -11011,56 +11052,56 @@ function _extends18() {
11011
11052
  }
11012
11053
  return target;
11013
11054
  };
11014
- return _extends18.apply(this, arguments);
11055
+ return _extends19.apply(this, arguments);
11015
11056
  }
11016
- __name(_extends18, "_extends");
11057
+ __name(_extends19, "_extends");
11017
11058
  var HTMLSelectAdapter = /* @__PURE__ */ __name((props) => {
11018
11059
  const { multiple, path, inputProperties = {}, options = [], itemProperties } = props;
11019
11060
  const { label: label1, name: name2 } = inputProperties;
11020
11061
  if (!Array.isArray(options))
11021
11062
  throw new Error("HTMLSelectAdapater not yet supporting functional options");
11022
11063
  const Components2 = useVulcanComponents();
11023
- return /* @__PURE__ */ React27.createElement(Components2.FormItem, _extends18({
11064
+ return /* @__PURE__ */ React29.createElement(Components2.FormItem, _extends19({
11024
11065
  name: name2,
11025
11066
  label: label1,
11026
11067
  path,
11027
11068
  inputProperties
11028
- }, itemProperties), /* @__PURE__ */ React27.createElement("select", _extends18({
11069
+ }, itemProperties), /* @__PURE__ */ React29.createElement("select", _extends19({
11029
11070
  multiple
11030
11071
  }, inputProperties, {
11031
11072
  value: inputProperties.value === null ? void 0 : inputProperties.value
11032
- }), options.map(({ label, value }) => /* @__PURE__ */ React27.createElement("option", {
11073
+ }), options.map(({ label, value }) => /* @__PURE__ */ React29.createElement("option", {
11033
11074
  key: value,
11034
11075
  label,
11035
11076
  value
11036
11077
  }))));
11037
11078
  }, "HTMLSelectAdapter");
11038
- var FormComponentSelect = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React27.createElement(HTMLSelectAdapter, _extends18({}, props)), "FormComponentSelect");
11079
+ var FormComponentSelect = /* @__PURE__ */ __name((props) => /* @__PURE__ */ React29.createElement(HTMLSelectAdapter, _extends19({}, props)), "FormComponentSelect");
11039
11080
  var FormComponentSelectMultiple = /* @__PURE__ */ __name((props) => {
11040
11081
  const Components2 = useVulcanComponents();
11041
- return /* @__PURE__ */ React27.createElement(Components2.FormComponentSelect, _extends18({
11082
+ return /* @__PURE__ */ React29.createElement(Components2.FormComponentSelect, _extends19({
11042
11083
  multiple: true
11043
11084
  }, props));
11044
11085
  }, "FormComponentSelectMultiple");
11045
11086
 
11046
11087
  // components/form/inputs/FormItem.tsx
11047
11088
  init_esm_shims();
11048
- import React28 from "react";
11089
+ import React30 from "react";
11049
11090
  var FormItem = /* @__PURE__ */ __name((props) => {
11050
11091
  const { inputProperties, label, name: name2 } = props;
11051
- return /* @__PURE__ */ React28.createElement("div", {
11092
+ return /* @__PURE__ */ React30.createElement("div", {
11052
11093
  className: `form-item ${name2}`
11053
- }, /* @__PURE__ */ React28.createElement("label", {
11094
+ }, /* @__PURE__ */ React30.createElement("label", {
11054
11095
  htmlFor: name2
11055
11096
  }, label), props.children);
11056
11097
  }, "FormItem");
11057
11098
 
11058
11099
  // components/form/inputs/FormOptionLabel.tsx
11059
11100
  init_esm_shims();
11060
- import React29 from "react";
11101
+ import React31 from "react";
11061
11102
  var FormOptionLabel = /* @__PURE__ */ __name(({ option, name: name2 }) => {
11062
11103
  const { label } = option;
11063
- return /* @__PURE__ */ React29.createElement("label", {
11104
+ return /* @__PURE__ */ React31.createElement("label", {
11064
11105
  htmlFor: name2,
11065
11106
  className: "form-option-label"
11066
11107
  }, label);
@@ -11069,10 +11110,10 @@ var FormOptionLabel = /* @__PURE__ */ __name(({ option, name: name2 }) => {
11069
11110
  // components/form/inputs/AutocompleteMultiple.tsx
11070
11111
  init_esm_shims();
11071
11112
  import { AsyncTypeahead } from "react-bootstrap-typeahead";
11072
- import React30, { useState as useState5 } from "react";
11113
+ import React32, { useState as useState5 } from "react";
11073
11114
  import { useLazyQuery as useLazyQuery2 } from "@apollo/client";
11074
- function _extends19() {
11075
- _extends19 = Object.assign || function(target) {
11115
+ function _extends20() {
11116
+ _extends20 = Object.assign || function(target) {
11076
11117
  for (var i = 1; i < arguments.length; i++) {
11077
11118
  var source = arguments[i];
11078
11119
  for (var key in source) {
@@ -11083,9 +11124,9 @@ function _extends19() {
11083
11124
  }
11084
11125
  return target;
11085
11126
  };
11086
- return _extends19.apply(this, arguments);
11127
+ return _extends20.apply(this, arguments);
11087
11128
  }
11088
- __name(_extends19, "_extends");
11129
+ __name(_extends20, "_extends");
11089
11130
  var AutocompleteMultiple = /* @__PURE__ */ __name((props) => {
11090
11131
  const {
11091
11132
  queryData,
@@ -11114,9 +11155,9 @@ var AutocompleteMultiple = /* @__PURE__ */ __name((props) => {
11114
11155
  const selectedItems = queryData && optionsFunction({
11115
11156
  data: queryData
11116
11157
  }).filter((d) => value1.includes(d.value));
11117
- return /* @__PURE__ */ React30.createElement(Components2.FormItem, _extends19({}, props, itemProperties, {
11158
+ return /* @__PURE__ */ React32.createElement(Components2.FormItem, _extends20({}, props, itemProperties, {
11118
11159
  name: path
11119
- }), /* @__PURE__ */ React30.createElement(AsyncTypeahead, _extends19({}, inputProperties, {
11160
+ }), /* @__PURE__ */ React32.createElement(AsyncTypeahead, _extends20({}, inputProperties, {
11120
11161
  multiple: true,
11121
11162
  onChange: (selected) => {
11122
11163
  const selectedIds = selected.map(({ value }) => value);
@@ -11196,14 +11237,14 @@ init_esm_shims();
11196
11237
 
11197
11238
  // components/Datatable/Datatable.tsx
11198
11239
  init_esm_shims();
11199
- import React31, { useEffect as useEffect6, useState as useState6 } from "react";
11240
+ import React33, { useEffect as useEffect6, useState as useState6 } from "react";
11200
11241
  import _isEmpty from "lodash/isEmpty.js";
11201
11242
  import { useMulti } from "@vulcanjs/react-hooks";
11202
11243
  import { isAdmin as isAdmin2 } from "@vulcanjs/permissions";
11203
11244
  import { useIntlContext as useIntlContext5 } from "@vulcanjs/react-i18n";
11204
11245
  import { permissionCheck } from "@vulcanjs/permissions";
11205
- function _extends20() {
11206
- _extends20 = Object.assign || function(target) {
11246
+ function _extends21() {
11247
+ _extends21 = Object.assign || function(target) {
11207
11248
  for (var i = 1; i < arguments.length; i++) {
11208
11249
  var source = arguments[i];
11209
11250
  for (var key in source) {
@@ -11214,9 +11255,9 @@ function _extends20() {
11214
11255
  }
11215
11256
  return target;
11216
11257
  };
11217
- return _extends20.apply(this, arguments);
11258
+ return _extends21.apply(this, arguments);
11218
11259
  }
11219
- __name(_extends20, "_extends");
11260
+ __name(_extends21, "_extends");
11220
11261
  var ascSortOperator = "asc";
11221
11262
  var descSortOperator = "desc";
11222
11263
  var delay = function() {
@@ -11317,7 +11358,7 @@ var Datatable = /* @__PURE__ */ __name((props) => {
11317
11358
  }
11318
11359
  }));
11319
11360
  if (data) {
11320
- return /* @__PURE__ */ React31.createElement(Components2.DatatableContents, _extends20({}, props, {
11361
+ return /* @__PURE__ */ React33.createElement(Components2.DatatableContents, _extends21({}, props, {
11321
11362
  datatableData: data,
11322
11363
  totalCount: data.length,
11323
11364
  results: data,
@@ -11348,9 +11389,9 @@ var Datatable = /* @__PURE__ */ __name((props) => {
11348
11389
  if (!_isEmpty(state.currentFilters)) {
11349
11390
  input.filter = state.currentFilters;
11350
11391
  }
11351
- return /* @__PURE__ */ React31.createElement(Components2.DatatableLayout, {
11392
+ return /* @__PURE__ */ React33.createElement(Components2.DatatableLayout, {
11352
11393
  model
11353
- }, /* @__PURE__ */ React31.createElement(Components2.DatatableAbove, _extends20({}, props, {
11394
+ }, /* @__PURE__ */ React33.createElement(Components2.DatatableAbove, _extends21({}, props, {
11354
11395
  model,
11355
11396
  canInsert: canCreate,
11356
11397
  canCreate,
@@ -11358,7 +11399,7 @@ var Datatable = /* @__PURE__ */ __name((props) => {
11358
11399
  updateSearch,
11359
11400
  selectedItems: state.selectedItems,
11360
11401
  onSubmitSelected
11361
- })), /* @__PURE__ */ React31.createElement(Components2.DatatableContents, _extends20({}, props, {
11402
+ })), /* @__PURE__ */ React33.createElement(Components2.DatatableContents, _extends21({}, props, {
11362
11403
  results: multiRes.documents,
11363
11404
  totalCount: multiRes.totalCount,
11364
11405
  count: multiRes.count,
@@ -11372,20 +11413,20 @@ var Datatable = /* @__PURE__ */ __name((props) => {
11372
11413
  toggleItem
11373
11414
  })));
11374
11415
  }, "Datatable");
11375
- var DatatableLayout = /* @__PURE__ */ __name(({ model, children }) => /* @__PURE__ */ React31.createElement("div", {
11416
+ var DatatableLayout = /* @__PURE__ */ __name(({ model, children }) => /* @__PURE__ */ React33.createElement("div", {
11376
11417
  className: `datatable datatable-${model.name.toLowerCase()}`
11377
11418
  }, children), "DatatableLayout");
11378
11419
  var DatatableAbove = /* @__PURE__ */ __name((props) => {
11379
11420
  const Components2 = useVulcanComponents();
11380
- return /* @__PURE__ */ React31.createElement(Components2.DatatableAboveLayout, null, /* @__PURE__ */ React31.createElement(Components2.DatatableAboveLeft, _extends20({}, props)), /* @__PURE__ */ React31.createElement(Components2.DatatableAboveRight, _extends20({}, props)));
11421
+ return /* @__PURE__ */ React33.createElement(Components2.DatatableAboveLayout, null, /* @__PURE__ */ React33.createElement(Components2.DatatableAboveLeft, _extends21({}, props)), /* @__PURE__ */ React33.createElement(Components2.DatatableAboveRight, _extends21({}, props)));
11381
11422
  }, "DatatableAbove");
11382
11423
  var DatatableAboveLeft = /* @__PURE__ */ __name((props) => {
11383
11424
  const { showSearch, searchValue, updateSearch } = props;
11384
11425
  const Components2 = useVulcanComponents();
11385
11426
  const intl = useIntlContext5();
11386
- return /* @__PURE__ */ React31.createElement("div", {
11427
+ return /* @__PURE__ */ React33.createElement("div", {
11387
11428
  className: "datatable-above-left"
11388
- }, showSearch && /* @__PURE__ */ React31.createElement(Components2.DatatableAboveSearchInput, {
11429
+ }, showSearch && /* @__PURE__ */ React33.createElement(Components2.DatatableAboveSearchInput, {
11389
11430
  className: "datatable-search form-control",
11390
11431
  inputProperties: {
11391
11432
  path: "datatableSearchQuery",
@@ -11401,16 +11442,16 @@ var DatatableAboveLeft = /* @__PURE__ */ __name((props) => {
11401
11442
  var DatatableAboveRight = /* @__PURE__ */ __name((props) => {
11402
11443
  const { currentUser, showNew, canInsert, options, newFormOptions, newFormProps, showSelect, selectedItems, onSubmitSelected, model } = props;
11403
11444
  const Components2 = useVulcanComponents();
11404
- return /* @__PURE__ */ React31.createElement("div", {
11445
+ return /* @__PURE__ */ React33.createElement("div", {
11405
11446
  className: "datatable-above-right"
11406
- }, showSelect && selectedItems.length > 0 && /* @__PURE__ */ React31.createElement("div", {
11447
+ }, showSelect && selectedItems.length > 0 && /* @__PURE__ */ React33.createElement("div", {
11407
11448
  className: "datatable-above-item"
11408
- }, /* @__PURE__ */ React31.createElement(Components2.DatatableSubmitSelected, {
11449
+ }, /* @__PURE__ */ React33.createElement(Components2.DatatableSubmitSelected, {
11409
11450
  selectedItems,
11410
11451
  onSubmitSelected
11411
- })), showNew && canInsert && /* @__PURE__ */ React31.createElement("div", {
11452
+ })), showNew && canInsert && /* @__PURE__ */ React33.createElement("div", {
11412
11453
  className: "datatable-above-item"
11413
- }, /* @__PURE__ */ React31.createElement(Components2.NewButton, _extends20({
11454
+ }, /* @__PURE__ */ React33.createElement(Components2.NewButton, _extends21({
11414
11455
  model,
11415
11456
  currentUser,
11416
11457
  mutationFragmentName: options && options.fragmentName
@@ -11418,20 +11459,20 @@ var DatatableAboveRight = /* @__PURE__ */ __name((props) => {
11418
11459
  }, "DatatableAboveRight");
11419
11460
  var DatatableAboveSearchInput = /* @__PURE__ */ __name((props) => {
11420
11461
  const Components2 = useVulcanComponents();
11421
- return /* @__PURE__ */ React31.createElement("div", {
11462
+ return /* @__PURE__ */ React33.createElement("div", {
11422
11463
  className: "datatable-above-search-input"
11423
- }, /* @__PURE__ */ React31.createElement(Components2.FormComponentText, _extends20({}, props)));
11464
+ }, /* @__PURE__ */ React33.createElement(Components2.FormComponentText, _extends21({}, props)));
11424
11465
  }, "DatatableAboveSearchInput");
11425
- var DatatableAboveLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React31.createElement("div", {
11466
+ var DatatableAboveLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React33.createElement("div", {
11426
11467
  className: "datatable-above"
11427
11468
  }, children), "DatatableAboveLayout");
11428
11469
 
11429
11470
  // components/Datatable/DatatableContents.tsx
11430
11471
  init_esm_shims();
11431
- import React32 from "react";
11472
+ import React34 from "react";
11432
11473
  import _sortBy from "lodash/sortBy.js";
11433
- function _extends21() {
11434
- _extends21 = Object.assign || function(target) {
11474
+ function _extends22() {
11475
+ _extends22 = Object.assign || function(target) {
11435
11476
  for (var i = 1; i < arguments.length; i++) {
11436
11477
  var source = arguments[i];
11437
11478
  for (var key in source) {
@@ -11442,9 +11483,9 @@ function _extends21() {
11442
11483
  }
11443
11484
  return target;
11444
11485
  };
11445
- return _extends21.apply(this, arguments);
11486
+ return _extends22.apply(this, arguments);
11446
11487
  }
11447
- __name(_extends21, "_extends");
11488
+ __name(_extends22, "_extends");
11448
11489
  var wrapColumns = /* @__PURE__ */ __name((c) => ({
11449
11490
  name: c
11450
11491
  }), "wrapColumns");
@@ -11466,18 +11507,18 @@ var DatatableContents = /* @__PURE__ */ __name((props) => {
11466
11507
  let { title = "", datatableData, results = [], columns, loading, loadMore, count = 0, totalCount = 0, networkStatus, showEdit, showDelete, currentUser, toggleSort, currentSort, submitFilters, currentFilters, modalProps, error, showSelect, model } = props;
11467
11508
  const Components2 = useVulcanComponents();
11468
11509
  if (loading) {
11469
- return /* @__PURE__ */ React32.createElement("div", {
11510
+ return /* @__PURE__ */ React34.createElement("div", {
11470
11511
  className: "datatable-list datatable-list-loading"
11471
- }, /* @__PURE__ */ React32.createElement(Components2.Loading, null));
11512
+ }, /* @__PURE__ */ React34.createElement(Components2.Loading, null));
11472
11513
  }
11473
11514
  const isLoadingMore = networkStatus === 2;
11474
11515
  const hasMore = results && totalCount > results.length;
11475
11516
  const sortedColumns = getColumns(columns, results, datatableData);
11476
- return /* @__PURE__ */ React32.createElement(Components2.DatatableContentsLayout, null, error && /* @__PURE__ */ React32.createElement(Components2.Alert, {
11517
+ return /* @__PURE__ */ React34.createElement(Components2.DatatableContentsLayout, null, error && /* @__PURE__ */ React34.createElement(Components2.Alert, {
11477
11518
  variant: "danger"
11478
- }, error.message), title && /* @__PURE__ */ React32.createElement(Components2.DatatableTitle, {
11519
+ }, error.message), title && /* @__PURE__ */ React34.createElement(Components2.DatatableTitle, {
11479
11520
  title
11480
- }), /* @__PURE__ */ React32.createElement(Components2.DatatableContentsInnerLayout, null, /* @__PURE__ */ React32.createElement(Components2.DatatableContentsHeadLayout, null, showSelect && /* @__PURE__ */ React32.createElement("th", null), sortedColumns.map((column, index) => /* @__PURE__ */ React32.createElement(Components2.DatatableHeader, {
11521
+ }), /* @__PURE__ */ React34.createElement(Components2.DatatableContentsInnerLayout, null, /* @__PURE__ */ React34.createElement(Components2.DatatableContentsHeadLayout, null, showSelect && /* @__PURE__ */ React34.createElement("th", null), sortedColumns.map((column, index) => /* @__PURE__ */ React34.createElement(Components2.DatatableHeader, {
11481
11522
  key: index,
11482
11523
  model,
11483
11524
  column,
@@ -11485,13 +11526,13 @@ var DatatableContents = /* @__PURE__ */ __name((props) => {
11485
11526
  currentSort,
11486
11527
  submitFilters,
11487
11528
  currentFilters
11488
- })), showEdit ? /* @__PURE__ */ React32.createElement("th", null, /* @__PURE__ */ React32.createElement(Components2.FormattedMessage, {
11529
+ })), showEdit ? /* @__PURE__ */ React34.createElement("th", null, /* @__PURE__ */ React34.createElement(Components2.FormattedMessage, {
11489
11530
  id: "datatable.edit",
11490
11531
  defaultMessage: "Edit"
11491
- })) : null, showDelete ? /* @__PURE__ */ React32.createElement("th", null, /* @__PURE__ */ React32.createElement(Components2.FormattedMessage, {
11532
+ })) : null, showDelete ? /* @__PURE__ */ React34.createElement("th", null, /* @__PURE__ */ React34.createElement(Components2.FormattedMessage, {
11492
11533
  id: "datatable.delete",
11493
11534
  defaultMessage: "Delete"
11494
- })) : null), /* @__PURE__ */ React32.createElement(Components2.DatatableContentsBodyLayout, null, results && results.length ? results.map((document, index) => /* @__PURE__ */ React32.createElement(Components2.DatatableRow, _extends21({}, props, {
11535
+ })) : null), /* @__PURE__ */ React34.createElement(Components2.DatatableContentsBodyLayout, null, results && results.length ? results.map((document, index) => /* @__PURE__ */ React34.createElement(Components2.DatatableRow, _extends22({}, props, {
11495
11536
  model,
11496
11537
  columns: sortedColumns,
11497
11538
  document,
@@ -11500,7 +11541,7 @@ var DatatableContents = /* @__PURE__ */ __name((props) => {
11500
11541
  showDelete,
11501
11542
  currentUser,
11502
11543
  modalProps
11503
- }))) : /* @__PURE__ */ React32.createElement(Components2.DatatableEmpty, null))), hasMore && /* @__PURE__ */ React32.createElement(Components2.DatatableContentsMoreLayout, null, isLoadingMore ? /* @__PURE__ */ React32.createElement(Components2.Loading, null) : /* @__PURE__ */ React32.createElement(Components2.DatatableLoadMoreButton, {
11544
+ }))) : /* @__PURE__ */ React34.createElement(Components2.DatatableEmpty, null))), hasMore && /* @__PURE__ */ React34.createElement(Components2.DatatableContentsMoreLayout, null, isLoadingMore ? /* @__PURE__ */ React34.createElement(Components2.Loading, null) : /* @__PURE__ */ React34.createElement(Components2.DatatableLoadMoreButton, {
11504
11545
  count,
11505
11546
  totalCount,
11506
11547
  onClick: (e) => {
@@ -11509,37 +11550,37 @@ var DatatableContents = /* @__PURE__ */ __name((props) => {
11509
11550
  }
11510
11551
  }, "Load More (", count, "/", totalCount, ")")));
11511
11552
  }, "DatatableContents");
11512
- var DatatableContentsLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React32.createElement("div", {
11553
+ var DatatableContentsLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React34.createElement("div", {
11513
11554
  className: "datatable-list"
11514
11555
  }, children), "DatatableContentsLayout");
11515
- var DatatableContentsInnerLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React32.createElement("table", {
11556
+ var DatatableContentsInnerLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React34.createElement("table", {
11516
11557
  className: "table"
11517
11558
  }, children), "DatatableContentsInnerLayout");
11518
- var DatatableContentsHeadLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React32.createElement("thead", null, /* @__PURE__ */ React32.createElement("tr", null, children)), "DatatableContentsHeadLayout");
11519
- var DatatableContentsBodyLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React32.createElement("tbody", null, children), "DatatableContentsBodyLayout");
11520
- var DatatableContentsMoreLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React32.createElement("div", {
11559
+ var DatatableContentsHeadLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React34.createElement("thead", null, /* @__PURE__ */ React34.createElement("tr", null, children)), "DatatableContentsHeadLayout");
11560
+ var DatatableContentsBodyLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React34.createElement("tbody", null, children), "DatatableContentsBodyLayout");
11561
+ var DatatableContentsMoreLayout = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ React34.createElement("div", {
11521
11562
  className: "datatable-list-load-more"
11522
11563
  }, children), "DatatableContentsMoreLayout");
11523
11564
  var DatatableLoadMoreButton = /* @__PURE__ */ __name((_a) => {
11524
11565
  var _b = _a, { count, totalCount, children } = _b, otherProps = __objRest(_b, ["count", "totalCount", "children"]);
11525
11566
  const Components2 = useVulcanComponents();
11526
- return /* @__PURE__ */ React32.createElement(Components2.Button, _extends21({
11567
+ return /* @__PURE__ */ React34.createElement(Components2.Button, _extends22({
11527
11568
  variant: "primary"
11528
11569
  }, otherProps), children);
11529
11570
  }, "DatatableLoadMoreButton");
11530
- var DatatableTitle = /* @__PURE__ */ __name(({ title }) => /* @__PURE__ */ React32.createElement("div", {
11571
+ var DatatableTitle = /* @__PURE__ */ __name(({ title }) => /* @__PURE__ */ React34.createElement("div", {
11531
11572
  className: "datatable-title"
11532
11573
  }, title), "DatatableTitle");
11533
11574
  var DatatableEmpty = /* @__PURE__ */ __name(() => {
11534
11575
  const Components2 = useVulcanComponents();
11535
- return /* @__PURE__ */ React32.createElement("tr", null, /* @__PURE__ */ React32.createElement("td", {
11576
+ return /* @__PURE__ */ React34.createElement("tr", null, /* @__PURE__ */ React34.createElement("td", {
11536
11577
  colSpan: 99
11537
- }, /* @__PURE__ */ React32.createElement("div", {
11578
+ }, /* @__PURE__ */ React34.createElement("div", {
11538
11579
  style: {
11539
11580
  textAlign: "center",
11540
11581
  padding: 10
11541
11582
  }
11542
- }, /* @__PURE__ */ React32.createElement(Components2.FormattedMessage, {
11583
+ }, /* @__PURE__ */ React34.createElement(Components2.FormattedMessage, {
11543
11584
  id: "datatable.empty",
11544
11585
  defaultMessage: "No items to display."
11545
11586
  }))));
@@ -11547,11 +11588,11 @@ var DatatableEmpty = /* @__PURE__ */ __name(() => {
11547
11588
 
11548
11589
  // components/Datatable/DatatableHeader.tsx
11549
11590
  init_esm_shims();
11550
- import React33 from "react";
11591
+ import React35 from "react";
11551
11592
  import { useIntlContext as useIntlContext6 } from "@vulcanjs/react-i18n";
11552
11593
  import { formatLabel as formatLabel2 } from "@vulcanjs/i18n";
11553
- function _extends22() {
11554
- _extends22 = Object.assign || function(target) {
11594
+ function _extends23() {
11595
+ _extends23 = Object.assign || function(target) {
11555
11596
  for (var i = 1; i < arguments.length; i++) {
11556
11597
  var source = arguments[i];
11557
11598
  for (var key in source) {
@@ -11562,9 +11603,9 @@ function _extends22() {
11562
11603
  }
11563
11604
  return target;
11564
11605
  };
11565
- return _extends22.apply(this, arguments);
11606
+ return _extends23.apply(this, arguments);
11566
11607
  }
11567
- __name(_extends22, "_extends");
11608
+ __name(_extends23, "_extends");
11568
11609
  var DatatableHeader = /* @__PURE__ */ __name(({ model, column, toggleSort, currentSort, submitFilters, currentFilters }) => {
11569
11610
  const Components2 = useVulcanComponents();
11570
11611
  const intl = useIntlContext6();
@@ -11585,16 +11626,16 @@ var DatatableHeader = /* @__PURE__ */ __name(({ model, column, toggleSort, curre
11585
11626
  const fieldOptions = field && field.options;
11586
11627
  const filterOptions = column.options ? column.options : fieldOptions;
11587
11628
  const filterQuery = field && field.staticQuery;
11588
- return /* @__PURE__ */ React33.createElement(Components2.DatatableHeaderCellLayout, {
11629
+ return /* @__PURE__ */ React35.createElement(Components2.DatatableHeaderCellLayout, {
11589
11630
  className: `datatable-header-${column.name}`
11590
- }, /* @__PURE__ */ React33.createElement("span", {
11631
+ }, /* @__PURE__ */ React35.createElement("span", {
11591
11632
  className: "datatable-header-cell-label"
11592
- }, formattedLabel), column.sortable && /* @__PURE__ */ React33.createElement(Components2.DatatableSorter, {
11633
+ }, formattedLabel), column.sortable && /* @__PURE__ */ React35.createElement(Components2.DatatableSorter, {
11593
11634
  name: column.name,
11594
11635
  label: formattedLabel,
11595
11636
  toggleSort,
11596
11637
  currentSort
11597
- }), column.filterable && /* @__PURE__ */ React33.createElement(Components2.DatatableFilter, {
11638
+ }), column.filterable && /* @__PURE__ */ React35.createElement(Components2.DatatableFilter, {
11598
11639
  model,
11599
11640
  field,
11600
11641
  name: column.name,
@@ -11610,25 +11651,25 @@ var DatatableHeader = /* @__PURE__ */ __name(({ model, column, toggleSort, curre
11610
11651
  id: column.name,
11611
11652
  defaultMessage: column.name
11612
11653
  });
11613
- return /* @__PURE__ */ React33.createElement(Components2.DatatableHeaderCellLayout, {
11654
+ return /* @__PURE__ */ React35.createElement(Components2.DatatableHeaderCellLayout, {
11614
11655
  className: `datatable-th-${formattedLabel2.toLowerCase().replace(/\s/g, "-")}`
11615
11656
  }, formattedLabel2);
11616
11657
  }
11617
11658
  }, "DatatableHeader");
11618
11659
  var DatatableHeaderCellLayout = /* @__PURE__ */ __name((_a) => {
11619
11660
  var _b = _a, { children } = _b, otherProps = __objRest(_b, ["children"]);
11620
- return /* @__PURE__ */ React33.createElement("th", _extends22({}, otherProps), /* @__PURE__ */ React33.createElement("div", {
11661
+ return /* @__PURE__ */ React35.createElement("th", _extends23({}, otherProps), /* @__PURE__ */ React35.createElement("div", {
11621
11662
  className: "datatable-header-cell-inner"
11622
11663
  }, children));
11623
11664
  }, "DatatableHeaderCellLayout");
11624
11665
 
11625
11666
  // components/Datatable/DatatableRow.tsx
11626
11667
  init_esm_shims();
11627
- import React34 from "react";
11668
+ import React36 from "react";
11628
11669
  import _isFunction from "lodash/isFunction.js";
11629
11670
  import { isAdmin as isAdmin3, permissionCheck as permissionCheck2 } from "@vulcanjs/permissions";
11630
- function _extends23() {
11631
- _extends23 = Object.assign || function(target) {
11671
+ function _extends24() {
11672
+ _extends24 = Object.assign || function(target) {
11632
11673
  for (var i = 1; i < arguments.length; i++) {
11633
11674
  var source = arguments[i];
11634
11675
  for (var key in source) {
@@ -11639,9 +11680,9 @@ function _extends23() {
11639
11680
  }
11640
11681
  return target;
11641
11682
  };
11642
- return _extends23.apply(this, arguments);
11683
+ return _extends24.apply(this, arguments);
11643
11684
  }
11644
- __name(_extends23, "_extends");
11685
+ __name(_extends24, "_extends");
11645
11686
  var DatatableRow = /* @__PURE__ */ __name((props) => {
11646
11687
  const { model, columns, document, showEdit, showDelete, currentUser, options, editFormOptions, editFormProps, rowClass, showSelect, toggleItem, selectedItems } = props;
11647
11688
  const Components2 = useVulcanComponents();
@@ -11660,33 +11701,33 @@ var DatatableRow = /* @__PURE__ */ __name((props) => {
11660
11701
  const row = typeof rowClass === "function" ? rowClass(document) : rowClass || "";
11661
11702
  const { modalProps = {} } = props;
11662
11703
  const defaultModalProps = {
11663
- title: /* @__PURE__ */ React34.createElement("code", null, document._id)
11704
+ title: /* @__PURE__ */ React36.createElement("code", null, document._id)
11664
11705
  };
11665
11706
  const customModalProps = __spreadValues(__spreadValues({}, defaultModalProps), _isFunction(modalProps) ? modalProps(document) : modalProps);
11666
11707
  const isSelected = selectedItems && selectedItems.includes(document._id);
11667
- return /* @__PURE__ */ React34.createElement(Components2.DatatableRowLayout, {
11708
+ return /* @__PURE__ */ React36.createElement(Components2.DatatableRowLayout, {
11668
11709
  className: `datatable-item ${row} ${isSelected ? "datatable-item-selected" : ""}`
11669
- }, showSelect && /* @__PURE__ */ React34.createElement(Components2.DatatableSelect, {
11710
+ }, showSelect && /* @__PURE__ */ React36.createElement(Components2.DatatableSelect, {
11670
11711
  document,
11671
11712
  toggleItem,
11672
11713
  selectedItems
11673
- }), columns.map((column, index) => /* @__PURE__ */ React34.createElement(Components2.DatatableCell, {
11714
+ }), columns.map((column, index) => /* @__PURE__ */ React36.createElement(Components2.DatatableCell, {
11674
11715
  key: index,
11675
11716
  column,
11676
11717
  document,
11677
11718
  currentUser,
11678
11719
  model
11679
- })), showEdit && canUpdate ? /* @__PURE__ */ React34.createElement(Components2.DatatableCellLayout, {
11720
+ })), showEdit && canUpdate ? /* @__PURE__ */ React36.createElement(Components2.DatatableCellLayout, {
11680
11721
  className: "datatable-edit"
11681
- }, /* @__PURE__ */ React34.createElement(Components2.EditButton, _extends23({
11722
+ }, /* @__PURE__ */ React36.createElement(Components2.EditButton, _extends24({
11682
11723
  model,
11683
11724
  documentId: document._id,
11684
11725
  currentUser,
11685
11726
  mutationFragmentName: options && options.fragmentName,
11686
11727
  modalProps: customModalProps
11687
- }, editFormOptions, editFormProps))) : null, showDelete && canUpdate ? /* @__PURE__ */ React34.createElement(Components2.DatatableCellLayout, {
11728
+ }, editFormOptions, editFormProps))) : null, showDelete && canUpdate ? /* @__PURE__ */ React36.createElement(Components2.DatatableCellLayout, {
11688
11729
  className: "datatable-delete"
11689
- }, /* @__PURE__ */ React34.createElement(Components2.DeleteButton, {
11730
+ }, /* @__PURE__ */ React36.createElement(Components2.DeleteButton, {
11690
11731
  model,
11691
11732
  documentId: document._id,
11692
11733
  currentUser
@@ -11694,14 +11735,14 @@ var DatatableRow = /* @__PURE__ */ __name((props) => {
11694
11735
  }, "DatatableRow");
11695
11736
  var DatatableRowLayout = /* @__PURE__ */ __name((_a) => {
11696
11737
  var _b = _a, { children } = _b, otherProps = __objRest(_b, ["children"]);
11697
- return /* @__PURE__ */ React34.createElement("tr", _extends23({}, otherProps), children);
11738
+ return /* @__PURE__ */ React36.createElement("tr", _extends24({}, otherProps), children);
11698
11739
  }, "DatatableRowLayout");
11699
11740
 
11700
11741
  // components/Datatable/DatatableCell.tsx
11701
11742
  init_esm_shims();
11702
- import React35 from "react";
11703
- function _extends24() {
11704
- _extends24 = Object.assign || function(target) {
11743
+ import React37 from "react";
11744
+ function _extends25() {
11745
+ _extends25 = Object.assign || function(target) {
11705
11746
  for (var i = 1; i < arguments.length; i++) {
11706
11747
  var source = arguments[i];
11707
11748
  for (var key in source) {
@@ -11712,18 +11753,18 @@ function _extends24() {
11712
11753
  }
11713
11754
  return target;
11714
11755
  };
11715
- return _extends24.apply(this, arguments);
11756
+ return _extends25.apply(this, arguments);
11716
11757
  }
11717
- __name(_extends24, "_extends");
11758
+ __name(_extends25, "_extends");
11718
11759
  var DatatableCell = /* @__PURE__ */ __name(({ column, document, currentUser, model }) => {
11719
11760
  const Components2 = useVulcanComponents();
11720
11761
  const Component = column.component || column.componentName && Components2[column.componentName] || Components2.DatatableDefaultCell;
11721
11762
  const columnName = column.label || column.name;
11722
11763
  if (!columnName)
11723
11764
  throw new Error("Column should have name or label");
11724
- return /* @__PURE__ */ React35.createElement(Components2.DatatableCellLayout, {
11765
+ return /* @__PURE__ */ React37.createElement(Components2.DatatableCellLayout, {
11725
11766
  className: `datatable-item-${columnName.toLowerCase().replace(/\s/g, "-")}`
11726
- }, /* @__PURE__ */ React35.createElement(Component, {
11767
+ }, /* @__PURE__ */ React37.createElement(Component, {
11727
11768
  column,
11728
11769
  document,
11729
11770
  currentUser,
@@ -11732,14 +11773,14 @@ var DatatableCell = /* @__PURE__ */ __name(({ column, document, currentUser, mod
11732
11773
  }, "DatatableCell");
11733
11774
  var DatatableCellLayout = /* @__PURE__ */ __name((_a) => {
11734
11775
  var _b = _a, { children } = _b, otherProps = __objRest(_b, ["children"]);
11735
- return /* @__PURE__ */ React35.createElement("td", _extends24({}, otherProps), /* @__PURE__ */ React35.createElement("div", {
11776
+ return /* @__PURE__ */ React37.createElement("td", _extends25({}, otherProps), /* @__PURE__ */ React37.createElement("div", {
11736
11777
  className: "cell-contents"
11737
11778
  }, children));
11738
11779
  }, "DatatableCellLayout");
11739
11780
  var DatatableDefaultCell = /* @__PURE__ */ __name((_a) => {
11740
11781
  var _b = _a, { column, document } = _b, rest = __objRest(_b, ["column", "document"]);
11741
11782
  const Components2 = useVulcanComponents();
11742
- return /* @__PURE__ */ React35.createElement(Components2.CardItemSwitcher, _extends24({
11783
+ return /* @__PURE__ */ React37.createElement(Components2.CardItemSwitcher, _extends25({
11743
11784
  value: document[column.name],
11744
11785
  document,
11745
11786
  fieldName: column.name
@@ -11749,11 +11790,11 @@ var DatatableDefaultCell = /* @__PURE__ */ __name((_a) => {
11749
11790
  // components/Datatable/DatatableFilter.tsx
11750
11791
  init_esm_shims();
11751
11792
  var import_moment = __toESM(require_moment(), 1);
11752
- import React36, { useState as useState7 } from "react";
11793
+ import React38, { useState as useState7 } from "react";
11753
11794
  import { useQuery } from "@apollo/client";
11754
11795
  import isEmpty4 from "lodash/isEmpty.js";
11755
- function _extends25() {
11756
- _extends25 = Object.assign || function(target) {
11796
+ function _extends26() {
11797
+ _extends26 = Object.assign || function(target) {
11757
11798
  for (var i = 1; i < arguments.length; i++) {
11758
11799
  var source = arguments[i];
11759
11800
  for (var key in source) {
@@ -11764,9 +11805,9 @@ function _extends25() {
11764
11805
  }
11765
11806
  return target;
11766
11807
  };
11767
- return _extends25.apply(this, arguments);
11808
+ return _extends26.apply(this, arguments);
11768
11809
  }
11769
- __name(_extends25, "_extends");
11810
+ __name(_extends26, "_extends");
11770
11811
  var getCount = /* @__PURE__ */ __name((columnFilters) => {
11771
11812
  if (!columnFilters) {
11772
11813
  return 0;
@@ -11781,16 +11822,16 @@ var getCount = /* @__PURE__ */ __name((columnFilters) => {
11781
11822
  }
11782
11823
  return 0;
11783
11824
  }, "getCount");
11784
- var Filter = /* @__PURE__ */ __name(({ count }) => /* @__PURE__ */ React36.createElement("svg", {
11825
+ var Filter = /* @__PURE__ */ __name(({ count }) => /* @__PURE__ */ React38.createElement("svg", {
11785
11826
  width: "16",
11786
11827
  height: "16",
11787
11828
  xmlns: "http://www.w3.org/2000/svg",
11788
11829
  viewBox: "0 0 448 512"
11789
- }, /* @__PURE__ */ React36.createElement("path", {
11830
+ }, /* @__PURE__ */ React38.createElement("path", {
11790
11831
  fill: "#000",
11791
11832
  d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z",
11792
11833
  fillOpacity: count ? 0.8 : 0.3
11793
- }), count ? /* @__PURE__ */ React36.createElement("text", {
11834
+ }), count ? /* @__PURE__ */ React38.createElement("text", {
11794
11835
  x: "50%",
11795
11836
  y: "55%",
11796
11837
  fill: "#000",
@@ -11798,7 +11839,7 @@ var Filter = /* @__PURE__ */ __name(({ count }) => /* @__PURE__ */ React36.creat
11798
11839
  textAnchor: "middle",
11799
11840
  alignmentBaseline: "middle",
11800
11841
  fillOpacity: 0.8
11801
- }, count) : /* @__PURE__ */ React36.createElement("path", {
11842
+ }, count) : /* @__PURE__ */ React38.createElement("path", {
11802
11843
  fill: "#000",
11803
11844
  d: "M224 200v-16c0-13.3-10.7-24-24-24h-24v-20c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v20h-24c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h24v148c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V224h24c13.3 0 24-10.7 24-24zM352 328v-16c0-13.3-10.7-24-24-24h-24V140c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v148h-24c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h24v20c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12v-20h24c13.3 0 24-10.7 24-24z",
11804
11845
  fillOpacity: 0.3
@@ -11806,10 +11847,10 @@ var Filter = /* @__PURE__ */ __name(({ count }) => /* @__PURE__ */ React36.creat
11806
11847
  var DatatableFilter = /* @__PURE__ */ __name((props) => {
11807
11848
  const Components2 = useVulcanComponents();
11808
11849
  const { columnFilters, label, query } = props;
11809
- return /* @__PURE__ */ React36.createElement("span", {
11850
+ return /* @__PURE__ */ React38.createElement("span", {
11810
11851
  className: "datatable-filter"
11811
- }, /* @__PURE__ */ React36.createElement(Components2.ModalTrigger, {
11812
- title: /* @__PURE__ */ React36.createElement(Components2.FormattedMessage, {
11852
+ }, /* @__PURE__ */ React38.createElement(Components2.ModalTrigger, {
11853
+ title: /* @__PURE__ */ React38.createElement(Components2.FormattedMessage, {
11813
11854
  id: "datatable.filter_column",
11814
11855
  values: {
11815
11856
  label
@@ -11817,10 +11858,10 @@ var DatatableFilter = /* @__PURE__ */ __name((props) => {
11817
11858
  defaultMessage: `Filter \u201C${label}\u201D`
11818
11859
  }),
11819
11860
  size: "small",
11820
- trigger: /* @__PURE__ */ React36.createElement(Filter, {
11861
+ trigger: /* @__PURE__ */ React38.createElement(Filter, {
11821
11862
  count: getCount(columnFilters)
11822
11863
  })
11823
- }, query ? /* @__PURE__ */ React36.createElement(Components2.DatatableFilterContentsWithData, _extends25({}, props)) : /* @__PURE__ */ React36.createElement(Components2.DatatableFilterContents, _extends25({}, props))));
11864
+ }, query ? /* @__PURE__ */ React38.createElement(Components2.DatatableFilterContentsWithData, _extends26({}, props)) : /* @__PURE__ */ React38.createElement(Components2.DatatableFilterContents, _extends26({}, props))));
11824
11865
  }, "DatatableFilter");
11825
11866
  var DatatableFilterContentsWithData = /* @__PURE__ */ __name((props) => {
11826
11867
  const Components2 = useVulcanComponents();
@@ -11831,14 +11872,14 @@ var DatatableFilterContentsWithData = /* @__PURE__ */ __name((props) => {
11831
11872
  const filterQuery = queryGql;
11832
11873
  const { loading, error, data } = useQuery(filterQuery);
11833
11874
  if (loading) {
11834
- return /* @__PURE__ */ React36.createElement(Components2.Loading, null);
11875
+ return /* @__PURE__ */ React38.createElement(Components2.Loading, null);
11835
11876
  } else if (error) {
11836
- return /* @__PURE__ */ React36.createElement("p", null, "error");
11877
+ return /* @__PURE__ */ React38.createElement("p", null, "error");
11837
11878
  } else {
11838
11879
  const queryOptions = options({
11839
11880
  data
11840
11881
  });
11841
- return /* @__PURE__ */ React36.createElement(Components2.DatatableFilterContents, _extends25({}, props, {
11882
+ return /* @__PURE__ */ React38.createElement(Components2.DatatableFilterContents, _extends26({}, props, {
11842
11883
  options: queryOptions
11843
11884
  }));
11844
11885
  }
@@ -11855,28 +11896,28 @@ var DatatableFilterContents = /* @__PURE__ */ __name((props) => {
11855
11896
  let contents;
11856
11897
  if (filterComponent) {
11857
11898
  const CustomFilter = filterComponent;
11858
- contents = /* @__PURE__ */ React36.createElement(CustomFilter, _extends25({}, filterProps));
11899
+ contents = /* @__PURE__ */ React38.createElement(CustomFilter, _extends26({}, filterProps));
11859
11900
  } else if (options) {
11860
- contents = /* @__PURE__ */ React36.createElement(Components2.DatatableFilterCheckboxes, _extends25({}, filterProps));
11901
+ contents = /* @__PURE__ */ React38.createElement(Components2.DatatableFilterCheckboxes, _extends26({}, filterProps));
11861
11902
  } else {
11862
11903
  switch (fieldType) {
11863
11904
  case Date:
11864
- contents = /* @__PURE__ */ React36.createElement(Components2.DatatableFilterDates, _extends25({}, filterProps));
11905
+ contents = /* @__PURE__ */ React38.createElement(Components2.DatatableFilterDates, _extends26({}, filterProps));
11865
11906
  break;
11866
11907
  case Number:
11867
- contents = /* @__PURE__ */ React36.createElement(Components2.DatatableFilterNumbers, _extends25({}, filterProps));
11908
+ contents = /* @__PURE__ */ React38.createElement(Components2.DatatableFilterNumbers, _extends26({}, filterProps));
11868
11909
  break;
11869
11910
  case Boolean:
11870
- contents = /* @__PURE__ */ React36.createElement(Components2.DatatableFilterBooleans, _extends25({}, filterProps));
11911
+ contents = /* @__PURE__ */ React38.createElement(Components2.DatatableFilterBooleans, _extends26({}, filterProps));
11871
11912
  break;
11872
11913
  default:
11873
- contents = /* @__PURE__ */ React36.createElement("p", null, /* @__PURE__ */ React36.createElement(Components2.FormattedMessage, {
11914
+ contents = /* @__PURE__ */ React38.createElement("p", null, /* @__PURE__ */ React38.createElement(Components2.FormattedMessage, {
11874
11915
  id: "datatable.specify_option",
11875
11916
  defaultMessage: "Please specify an options property on your schema field."
11876
11917
  }));
11877
11918
  }
11878
11919
  }
11879
- return /* @__PURE__ */ React36.createElement("form", null, contents, /* @__PURE__ */ React36.createElement(Components2.Button, {
11920
+ return /* @__PURE__ */ React38.createElement("form", null, contents, /* @__PURE__ */ React38.createElement(Components2.Button, {
11880
11921
  variant: "link",
11881
11922
  style: {
11882
11923
  display: "inline-block",
@@ -11886,10 +11927,10 @@ var DatatableFilterContents = /* @__PURE__ */ __name((props) => {
11886
11927
  onClick: () => {
11887
11928
  setFilters(void 0);
11888
11929
  }
11889
- }, /* @__PURE__ */ React36.createElement(Components2.FormattedMessage, {
11930
+ }, /* @__PURE__ */ React38.createElement(Components2.FormattedMessage, {
11890
11931
  id: "datatable.clear_all",
11891
11932
  defaultMessage: "Clear All"
11892
- })), /* @__PURE__ */ React36.createElement(Components2.Button, {
11933
+ })), /* @__PURE__ */ React38.createElement(Components2.Button, {
11893
11934
  type: "submit",
11894
11935
  className: "datatable_filter_submit",
11895
11936
  onClick: () => {
@@ -11898,7 +11939,7 @@ var DatatableFilterContents = /* @__PURE__ */ __name((props) => {
11898
11939
  filters
11899
11940
  });
11900
11941
  }
11901
- }, /* @__PURE__ */ React36.createElement(Components2.FormattedMessage, {
11942
+ }, /* @__PURE__ */ React38.createElement(Components2.FormattedMessage, {
11902
11943
  id: "datatable.submit",
11903
11944
  defaultMessage: "Submit"
11904
11945
  })));
@@ -11908,7 +11949,7 @@ var DatatableFilterCheckboxes = /* @__PURE__ */ __name(({ options, filters = {
11908
11949
  _in: []
11909
11950
  }, setFilters }) => {
11910
11951
  const Components2 = useVulcanComponents();
11911
- return /* @__PURE__ */ React36.createElement(Components2.FormComponentCheckboxGroup, {
11952
+ return /* @__PURE__ */ React38.createElement(Components2.FormComponentCheckboxGroup, {
11912
11953
  path: "filter",
11913
11954
  itemProperties: {
11914
11955
  layout: "inputOnly"
@@ -11942,7 +11983,7 @@ var DatatableFilterBooleans = /* @__PURE__ */ __name(({ filters = {
11942
11983
  _eq: []
11943
11984
  }, setFilters }) => {
11944
11985
  const Components2 = useVulcanComponents();
11945
- return /* @__PURE__ */ React36.createElement(Components2.FormComponentRadioGroup, {
11986
+ return /* @__PURE__ */ React38.createElement(Components2.FormComponentRadioGroup, {
11946
11987
  path: "filter",
11947
11988
  itemProperties: {
11948
11989
  layout: "inputOnly"
@@ -11961,10 +12002,10 @@ var DatatableFilterBooleans = /* @__PURE__ */ __name(({ filters = {
11961
12002
  }, "DatatableFilterBooleans");
11962
12003
  var DatatableFilterDates = /* @__PURE__ */ __name(({ filters, setFilters }) => {
11963
12004
  const Components2 = useVulcanComponents();
11964
- return /* @__PURE__ */ React36.createElement("div", null, /* @__PURE__ */ React36.createElement(Components2.FormComponentDate, {
12005
+ return /* @__PURE__ */ React38.createElement("div", null, /* @__PURE__ */ React38.createElement(Components2.FormComponentDate, {
11965
12006
  path: "_gte",
11966
12007
  itemProperties: {
11967
- label: /* @__PURE__ */ React36.createElement(Components2.FormattedMessage, {
12008
+ label: /* @__PURE__ */ React38.createElement(Components2.FormattedMessage, {
11968
12009
  id: "datatable.after",
11969
12010
  defaultMessage: "After"
11970
12011
  }),
@@ -11983,10 +12024,10 @@ var DatatableFilterDates = /* @__PURE__ */ __name(({ filters, setFilters }) => {
11983
12024
  }));
11984
12025
  }
11985
12026
  }
11986
- }), /* @__PURE__ */ React36.createElement(Components2.FormComponentDate, {
12027
+ }), /* @__PURE__ */ React38.createElement(Components2.FormComponentDate, {
11987
12028
  path: "_lte",
11988
12029
  itemProperties: {
11989
- label: /* @__PURE__ */ React36.createElement(Components2.FormattedMessage, {
12030
+ label: /* @__PURE__ */ React38.createElement(Components2.FormattedMessage, {
11990
12031
  id: "datatable.before",
11991
12032
  defaultMessage: "Before"
11992
12033
  }),
@@ -12009,10 +12050,10 @@ var DatatableFilterDates = /* @__PURE__ */ __name(({ filters, setFilters }) => {
12009
12050
  }, "DatatableFilterDates");
12010
12051
  var DatatableFilterNumbers = /* @__PURE__ */ __name(({ filters, setFilters }) => {
12011
12052
  const Components2 = useVulcanComponents();
12012
- return /* @__PURE__ */ React36.createElement("div", null, /* @__PURE__ */ React36.createElement(Components2.FormComponentNumber, {
12053
+ return /* @__PURE__ */ React38.createElement("div", null, /* @__PURE__ */ React38.createElement(Components2.FormComponentNumber, {
12013
12054
  path: "_gte",
12014
12055
  itemProperties: {
12015
- label: /* @__PURE__ */ React36.createElement(Components2.FormattedMessage, {
12056
+ label: /* @__PURE__ */ React38.createElement(Components2.FormattedMessage, {
12016
12057
  id: "datatable.greater_than",
12017
12058
  defaultMessage: "Greater than"
12018
12059
  }),
@@ -12033,10 +12074,10 @@ var DatatableFilterNumbers = /* @__PURE__ */ __name(({ filters, setFilters }) =>
12033
12074
  },
12034
12075
  value: filters && parseFloat(filters._gte)
12035
12076
  }
12036
- }), /* @__PURE__ */ React36.createElement(Components2.FormComponentNumber, {
12077
+ }), /* @__PURE__ */ React38.createElement(Components2.FormComponentNumber, {
12037
12078
  path: "_lte",
12038
12079
  itemProperties: {
12039
- label: /* @__PURE__ */ React36.createElement(Components2.FormattedMessage, {
12080
+ label: /* @__PURE__ */ React38.createElement(Components2.FormattedMessage, {
12040
12081
  id: "datatable.lower_than",
12041
12082
  defaultMessage: "Lower than"
12042
12083
  }),
@@ -12062,63 +12103,63 @@ var DatatableFilterNumbers = /* @__PURE__ */ __name(({ filters, setFilters }) =>
12062
12103
 
12063
12104
  // components/Datatable/DatatableSorter.tsx
12064
12105
  init_esm_shims();
12065
- import React37 from "react";
12066
- var SortNone = /* @__PURE__ */ __name(() => /* @__PURE__ */ React37.createElement("svg", {
12106
+ import React39 from "react";
12107
+ var SortNone = /* @__PURE__ */ __name(() => /* @__PURE__ */ React39.createElement("svg", {
12067
12108
  width: "16",
12068
12109
  height: "16",
12069
12110
  viewBox: "0 0 438 438",
12070
12111
  fill: "none",
12071
12112
  xmlns: "http://www.w3.org/2000/svg"
12072
- }, /* @__PURE__ */ React37.createElement("path", {
12113
+ }, /* @__PURE__ */ React39.createElement("path", {
12073
12114
  d: "M25.7368 247.243H280.263C303.149 247.243 314.592 274.958 298.444 291.116L171.18 418.456C161.128 428.515 144.872 428.515 134.926 418.456L7.55631 291.116C-8.59221 274.958 2.85078 247.243 25.7368 247.243ZM298.444 134.884L171.18 7.54408C161.128 -2.51469 144.872 -2.51469 134.926 7.54408L7.55631 134.884C-8.59221 151.042 2.85078 178.757 25.7368 178.757H280.263C303.149 178.757 314.592 151.042 298.444 134.884Z",
12074
12115
  transform: "translate(66 6)",
12075
12116
  fill: "#000",
12076
12117
  fillOpacity: "0.2"
12077
12118
  })), "SortNone");
12078
- var SortDesc = /* @__PURE__ */ __name(() => /* @__PURE__ */ React37.createElement("svg", {
12119
+ var SortDesc = /* @__PURE__ */ __name(() => /* @__PURE__ */ React39.createElement("svg", {
12079
12120
  width: "16",
12080
12121
  height: "16",
12081
12122
  viewBox: "0 0 438 438",
12082
12123
  fill: "none",
12083
12124
  xmlns: "http://www.w3.org/2000/svg"
12084
- }, /* @__PURE__ */ React37.createElement("path", {
12125
+ }, /* @__PURE__ */ React39.createElement("path", {
12085
12126
  d: "M25.7368 0H280.263C303.149 0 314.592 27.7151 298.444 43.8734L171.18 171.213C161.128 181.272 144.872 181.272 134.926 171.213L7.55631 43.8734C-8.59221 27.7151 2.85078 0 25.7368 0Z",
12086
12127
  transform: "translate(66 253.243)",
12087
12128
  fill: "black",
12088
12129
  fillOpacity: "0.7"
12089
- }), /* @__PURE__ */ React37.createElement("path", {
12130
+ }), /* @__PURE__ */ React39.createElement("path", {
12090
12131
  d: "M171.18 7.54408L298.444 134.884C314.592 151.042 303.149 178.757 280.263 178.757H25.7368C2.85078 178.757 -8.59221 151.042 7.55631 134.884L134.926 7.54408C144.872 -2.51469 161.128 -2.51469 171.18 7.54408Z",
12091
12132
  transform: "translate(66 6)",
12092
12133
  fill: "black",
12093
12134
  fillOpacity: "0.2"
12094
12135
  })), "SortDesc");
12095
- var SortAsc = /* @__PURE__ */ __name(() => /* @__PURE__ */ React37.createElement("svg", {
12136
+ var SortAsc = /* @__PURE__ */ __name(() => /* @__PURE__ */ React39.createElement("svg", {
12096
12137
  width: "16",
12097
12138
  height: "16",
12098
12139
  viewBox: "0 0 438 438",
12099
12140
  fill: "none",
12100
12141
  xmlns: "http://www.w3.org/2000/svg"
12101
- }, /* @__PURE__ */ React37.createElement("path", {
12142
+ }, /* @__PURE__ */ React39.createElement("path", {
12102
12143
  d: "M298.444 134.884L171.18 7.54408C161.128 -2.51469 144.872 -2.51469 134.926 7.54408L7.55631 134.884C-8.59221 151.042 2.85078 178.757 25.7368 178.757H280.263C303.149 178.757 314.592 151.042 298.444 134.884Z",
12103
12144
  transform: "translate(66 6)",
12104
12145
  fill: "black",
12105
12146
  fillOpacity: "0.7"
12106
- }), /* @__PURE__ */ React37.createElement("path", {
12147
+ }), /* @__PURE__ */ React39.createElement("path", {
12107
12148
  d: "M280.263 0H25.7368C2.85078 0 -8.59221 27.7151 7.55631 43.8734L134.926 171.213C144.872 181.272 161.128 181.272 171.18 171.213L298.444 43.8734C314.592 27.7151 303.149 0 280.263 0Z",
12108
12149
  transform: "translate(66 253.243)",
12109
12150
  fill: "black",
12110
12151
  fillOpacity: "0.2"
12111
12152
  })), "SortAsc");
12112
- var DatatableSorter = /* @__PURE__ */ __name(({ name: name2, label, toggleSort, currentSort }) => /* @__PURE__ */ React37.createElement("span", {
12153
+ var DatatableSorter = /* @__PURE__ */ __name(({ name: name2, label, toggleSort, currentSort }) => /* @__PURE__ */ React39.createElement("span", {
12113
12154
  className: "datatable-sorter",
12114
12155
  onClick: () => {
12115
12156
  toggleSort(name2);
12116
12157
  }
12117
- }, !currentSort[name2] ? /* @__PURE__ */ React37.createElement(SortNone, null) : currentSort[name2] === "asc" ? /* @__PURE__ */ React37.createElement(SortAsc, null) : /* @__PURE__ */ React37.createElement(SortDesc, null)), "DatatableSorter");
12158
+ }, !currentSort[name2] ? /* @__PURE__ */ React39.createElement(SortNone, null) : currentSort[name2] === "asc" ? /* @__PURE__ */ React39.createElement(SortAsc, null) : /* @__PURE__ */ React39.createElement(SortDesc, null)), "DatatableSorter");
12118
12159
 
12119
12160
  // components/Datatable/DatatableSelect.tsx
12120
12161
  init_esm_shims();
12121
- import React38 from "react";
12162
+ import React40 from "react";
12122
12163
  var DatatableSelect = /* @__PURE__ */ __name(({ toggleItem, selectedItems, document }) => {
12123
12164
  const value = selectedItems.includes(document._id || "");
12124
12165
  const onChange = /* @__PURE__ */ __name((e) => {
@@ -12127,9 +12168,9 @@ var DatatableSelect = /* @__PURE__ */ __name(({ toggleItem, selectedItems, docum
12127
12168
  toggleItem(document._id);
12128
12169
  }, "onChange");
12129
12170
  const Components2 = useVulcanComponents();
12130
- return /* @__PURE__ */ React38.createElement(Components2.DatatableCellLayout, {
12171
+ return /* @__PURE__ */ React40.createElement(Components2.DatatableCellLayout, {
12131
12172
  className: "datatable-check"
12132
- }, /* @__PURE__ */ React38.createElement(Components2.FormComponentCheckbox, {
12173
+ }, /* @__PURE__ */ React40.createElement(Components2.FormComponentCheckbox, {
12133
12174
  inputProperties: {
12134
12175
  value,
12135
12176
  onChange
@@ -12142,16 +12183,16 @@ var DatatableSelect = /* @__PURE__ */ __name(({ toggleItem, selectedItems, docum
12142
12183
 
12143
12184
  // components/Datatable/DatatableSubmitSelected.tsx
12144
12185
  init_esm_shims();
12145
- import React39 from "react";
12186
+ import React41 from "react";
12146
12187
  var DatatableSubmitSelected = /* @__PURE__ */ __name(({ selectedItems, onSubmitSelected }) => {
12147
12188
  const Components2 = useVulcanComponents();
12148
- return /* @__PURE__ */ React39.createElement(Components2.Button, {
12189
+ return /* @__PURE__ */ React41.createElement(Components2.Button, {
12149
12190
  className: "datatable-submit-selected",
12150
12191
  onClick: (e) => {
12151
12192
  e.preventDefault();
12152
12193
  onSubmitSelected(selectedItems);
12153
12194
  }
12154
- }, /* @__PURE__ */ React39.createElement(Components2.FormattedMessage, {
12195
+ }, /* @__PURE__ */ React41.createElement(Components2.FormattedMessage, {
12155
12196
  id: "datatable.submit"
12156
12197
  }));
12157
12198
  }, "DatatableSubmitSelected");
@@ -12159,9 +12200,9 @@ var DatatableSubmitSelected = /* @__PURE__ */ __name(({ selectedItems, onSubmitS
12159
12200
  // components/Datatable/others/EditButton.tsx
12160
12201
  init_esm_shims();
12161
12202
  import { useIntlContext as useIntlContext7 } from "@vulcanjs/react-i18n";
12162
- import React40 from "react";
12163
- function _extends26() {
12164
- _extends26 = Object.assign || function(target) {
12203
+ import React42 from "react";
12204
+ function _extends27() {
12205
+ _extends27 = Object.assign || function(target) {
12165
12206
  for (var i = 1; i < arguments.length; i++) {
12166
12207
  var source = arguments[i];
12167
12208
  for (var key in source) {
@@ -12172,27 +12213,27 @@ function _extends26() {
12172
12213
  }
12173
12214
  return target;
12174
12215
  };
12175
- return _extends26.apply(this, arguments);
12216
+ return _extends27.apply(this, arguments);
12176
12217
  }
12177
- __name(_extends26, "_extends");
12218
+ __name(_extends27, "_extends");
12178
12219
  var EditButton = /* @__PURE__ */ __name((_a) => {
12179
12220
  var _b = _a, { style = "primary", variant, label, size: size2, showId, modalProps, formProps, component } = _b, props = __objRest(_b, ["style", "variant", "label", "size", "showId", "modalProps", "formProps", "component"]);
12180
12221
  const Components2 = useVulcanComponents();
12181
12222
  const intl = useIntlContext7();
12182
- return /* @__PURE__ */ React40.createElement(Components2.ModalTrigger, {
12223
+ return /* @__PURE__ */ React42.createElement(Components2.ModalTrigger, {
12183
12224
  label: label || intl.formatMessage({
12184
12225
  id: "datatable.edit",
12185
12226
  defaultMessage: "Edit"
12186
12227
  }),
12187
- component: component ? component : /* @__PURE__ */ React40.createElement(Components2.Button, {
12228
+ component: component ? component : /* @__PURE__ */ React42.createElement(Components2.Button, {
12188
12229
  size: size2,
12189
12230
  variant: variant || style
12190
- }, label || /* @__PURE__ */ React40.createElement(Components2.FormattedMessage, {
12231
+ }, label || /* @__PURE__ */ React42.createElement(Components2.FormattedMessage, {
12191
12232
  id: "datatable.edit",
12192
12233
  defaultMessage: "Edit"
12193
12234
  })),
12194
12235
  modalProps
12195
- }, /* @__PURE__ */ React40.createElement(Components2.EditForm, _extends26({
12236
+ }, /* @__PURE__ */ React42.createElement(Components2.EditForm, _extends27({
12196
12237
  closeModal: () => {
12197
12238
  console.warn("closeModal not defined");
12198
12239
  }
@@ -12215,7 +12256,7 @@ var EditForm = /* @__PURE__ */ __name((_a) => {
12215
12256
  } : () => {
12216
12257
  closeModal();
12217
12258
  };
12218
- return /* @__PURE__ */ React40.createElement(Components2.SmartForm, _extends26({
12259
+ return /* @__PURE__ */ React42.createElement(Components2.SmartForm, _extends27({
12219
12260
  successCallback: success,
12220
12261
  removeSuccessCallback: remove
12221
12262
  }, formProps, props));
@@ -12224,9 +12265,9 @@ var EditForm = /* @__PURE__ */ __name((_a) => {
12224
12265
  // components/Datatable/others/NewButton.tsx
12225
12266
  init_esm_shims();
12226
12267
  import { useIntlContext as useIntlContext8 } from "@vulcanjs/react-i18n";
12227
- import React41 from "react";
12228
- function _extends27() {
12229
- _extends27 = Object.assign || function(target) {
12268
+ import React43 from "react";
12269
+ function _extends28() {
12270
+ _extends28 = Object.assign || function(target) {
12230
12271
  for (var i = 1; i < arguments.length; i++) {
12231
12272
  var source = arguments[i];
12232
12273
  for (var key in source) {
@@ -12237,27 +12278,27 @@ function _extends27() {
12237
12278
  }
12238
12279
  return target;
12239
12280
  };
12240
- return _extends27.apply(this, arguments);
12281
+ return _extends28.apply(this, arguments);
12241
12282
  }
12242
- __name(_extends27, "_extends");
12283
+ __name(_extends28, "_extends");
12243
12284
  var NewButton = /* @__PURE__ */ __name((_a) => {
12244
12285
  var _b = _a, { size: size2, label, style = "primary", formProps } = _b, props = __objRest(_b, ["size", "label", "style", "formProps"]);
12245
12286
  const intl = useIntlContext8();
12246
12287
  const Components2 = useVulcanComponents();
12247
- return /* @__PURE__ */ React41.createElement(Components2.ModalTrigger, {
12288
+ return /* @__PURE__ */ React43.createElement(Components2.ModalTrigger, {
12248
12289
  label: label || intl.formatMessage({
12249
12290
  id: "datatable.new"
12250
12291
  }),
12251
12292
  title: label || intl.formatMessage({
12252
12293
  id: "datatable.new"
12253
12294
  }),
12254
- component: /* @__PURE__ */ React41.createElement(Components2.Button, {
12295
+ component: /* @__PURE__ */ React43.createElement(Components2.Button, {
12255
12296
  variant: style,
12256
12297
  size: size2
12257
- }, label || /* @__PURE__ */ React41.createElement(Components2.FormattedMessage, {
12298
+ }, label || /* @__PURE__ */ React43.createElement(Components2.FormattedMessage, {
12258
12299
  id: "datatable.new"
12259
12300
  }))
12260
- }, /* @__PURE__ */ React41.createElement(Components2.NewForm, _extends27({
12301
+ }, /* @__PURE__ */ React43.createElement(Components2.NewForm, _extends28({
12261
12302
  formProps
12262
12303
  }, props)));
12263
12304
  }, "NewButton");
@@ -12269,7 +12310,7 @@ var NewForm = /* @__PURE__ */ __name(({ model, closeModal, successCallback, form
12269
12310
  } : () => {
12270
12311
  closeModal();
12271
12312
  };
12272
- return /* @__PURE__ */ React41.createElement(Components2.SmartForm, _extends27({
12313
+ return /* @__PURE__ */ React43.createElement(Components2.SmartForm, _extends28({
12273
12314
  model,
12274
12315
  successCallback: success
12275
12316
  }, formProps || {}));
@@ -12278,9 +12319,9 @@ var NewForm = /* @__PURE__ */ __name(({ model, closeModal, successCallback, form
12278
12319
  // components/Datatable/others/DeleteButton.tsx
12279
12320
  init_esm_shims();
12280
12321
  import { useDelete as useDelete2 } from "@vulcanjs/react-hooks";
12281
- import React42 from "react";
12282
- function _extends28() {
12283
- _extends28 = Object.assign || function(target) {
12322
+ import React44 from "react";
12323
+ function _extends29() {
12324
+ _extends29 = Object.assign || function(target) {
12284
12325
  for (var i = 1; i < arguments.length; i++) {
12285
12326
  var source = arguments[i];
12286
12327
  for (var key in source) {
@@ -12291,9 +12332,9 @@ function _extends28() {
12291
12332
  }
12292
12333
  return target;
12293
12334
  };
12294
- return _extends28.apply(this, arguments);
12335
+ return _extends29.apply(this, arguments);
12295
12336
  }
12296
- __name(_extends28, "_extends");
12337
+ __name(_extends29, "_extends");
12297
12338
  var DeleteButton = /* @__PURE__ */ __name((props) => {
12298
12339
  const Components2 = useVulcanComponents();
12299
12340
  const _a = props, { label, fragment, documentId, mutationOptions, currentUser, model } = _a, rest = __objRest(_a, ["label", "fragment", "documentId", "mutationOptions", "currentUser", "model"]);
@@ -12302,7 +12343,7 @@ var DeleteButton = /* @__PURE__ */ __name((props) => {
12302
12343
  fragment,
12303
12344
  mutationOptions
12304
12345
  });
12305
- return /* @__PURE__ */ React42.createElement(Components2.LoadingButton, _extends28({
12346
+ return /* @__PURE__ */ React44.createElement(Components2.LoadingButton, _extends29({
12306
12347
  loading,
12307
12348
  onClick: () => {
12308
12349
  deleteFunction({
@@ -12311,7 +12352,7 @@ var DeleteButton = /* @__PURE__ */ __name((props) => {
12311
12352
  }
12312
12353
  });
12313
12354
  },
12314
- label: label || /* @__PURE__ */ React42.createElement(Components2.FormattedMessage, {
12355
+ label: label || /* @__PURE__ */ React44.createElement(Components2.FormattedMessage, {
12315
12356
  id: "datatable.delete",
12316
12357
  defaultMessage: "Delete"
12317
12358
  })
@@ -12365,9 +12406,9 @@ init_esm_shims();
12365
12406
 
12366
12407
  // components/cell/CardItem.tsx
12367
12408
  init_esm_shims();
12368
- import React43 from "react";
12369
- function _extends29() {
12370
- _extends29 = Object.assign || function(target) {
12409
+ import React45 from "react";
12410
+ function _extends30() {
12411
+ _extends30 = Object.assign || function(target) {
12371
12412
  for (var i = 1; i < arguments.length; i++) {
12372
12413
  var source = arguments[i];
12373
12414
  for (var key in source) {
@@ -12378,9 +12419,9 @@ function _extends29() {
12378
12419
  }
12379
12420
  return target;
12380
12421
  };
12381
- return _extends29.apply(this, arguments);
12422
+ return _extends30.apply(this, arguments);
12382
12423
  }
12383
- __name(_extends29, "_extends");
12424
+ __name(_extends30, "_extends");
12384
12425
  var getTypeName = /* @__PURE__ */ __name((value, fieldName, model) => {
12385
12426
  const schema = model.schema;
12386
12427
  const fieldSchema = schema && schema[fieldName];
@@ -12411,7 +12452,7 @@ var CardItemSwitcher = /* @__PURE__ */ __name((props) => {
12411
12452
  }
12412
12453
  }
12413
12454
  if (typeof value === "undefined" || value === null) {
12414
- return /* @__PURE__ */ React43.createElement(React43.Fragment, null, '""');
12455
+ return /* @__PURE__ */ React45.createElement(React45.Fragment, null, '""');
12415
12456
  }
12416
12457
  const itemProps = {
12417
12458
  nestingLevel: nestingLevel + 1,
@@ -12421,7 +12462,7 @@ var CardItemSwitcher = /* @__PURE__ */ __name((props) => {
12421
12462
  model,
12422
12463
  fieldSchema
12423
12464
  };
12424
- if (/* @__PURE__ */ React43.isValidElement(itemProps.value)) {
12465
+ if (/* @__PURE__ */ React45.isValidElement(itemProps.value)) {
12425
12466
  return itemProps.value;
12426
12467
  }
12427
12468
  if (fieldSchema && fieldSchema.resolveAs && fieldSchema.resolveAs.relation) {
@@ -12429,15 +12470,15 @@ var CardItemSwitcher = /* @__PURE__ */ __name((props) => {
12429
12470
  itemProps.relatedDocument = document == null ? void 0 : document[itemProps.relatedFieldName || ""];
12430
12471
  itemProps.relatedModel = (_b = fieldSchema.relation) == null ? void 0 : _b.model;
12431
12472
  if (!itemProps.relatedDocument) {
12432
- return /* @__PURE__ */ React43.createElement("span", null, "Missing data for sub-document ", /* @__PURE__ */ React43.createElement("code", null, value), " of type", " ", /* @__PURE__ */ React43.createElement("code", null, typeName), " (", /* @__PURE__ */ React43.createElement("code", null, itemProps.relatedFieldName), ")");
12473
+ return /* @__PURE__ */ React45.createElement("span", null, "Missing data for sub-document ", /* @__PURE__ */ React45.createElement("code", null, value), " of type", " ", /* @__PURE__ */ React45.createElement("code", null, typeName), " (", /* @__PURE__ */ React45.createElement("code", null, itemProps.relatedFieldName), ")");
12433
12474
  }
12434
12475
  switch ((_c = fieldSchema.relation) == null ? void 0 : _c.kind) {
12435
12476
  case "hasOne":
12436
- return /* @__PURE__ */ React43.createElement(Components2.CardItemRelationHasOne, _extends29({}, itemProps));
12477
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemRelationHasOne, _extends30({}, itemProps));
12437
12478
  case "hasMany":
12438
- return /* @__PURE__ */ React43.createElement(Components2.CardItemRelationHasMany, _extends29({}, itemProps));
12479
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemRelationHasMany, _extends30({}, itemProps));
12439
12480
  default:
12440
- return /* @__PURE__ */ React43.createElement(Components2.CardItemDefault, _extends29({}, itemProps));
12481
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemDefault, _extends30({}, itemProps));
12441
12482
  }
12442
12483
  }
12443
12484
  if (Array.isArray(value)) {
@@ -12449,81 +12490,81 @@ var CardItemSwitcher = /* @__PURE__ */ __name((props) => {
12449
12490
  case "Number":
12450
12491
  case "number":
12451
12492
  case "SimpleSchema.Integer":
12452
- return /* @__PURE__ */ React43.createElement(Components2.CardItemNumber, _extends29({}, itemProps));
12493
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemNumber, _extends30({}, itemProps));
12453
12494
  case "Array":
12454
- return /* @__PURE__ */ React43.createElement(Components2.CardItemArray, _extends29({}, itemProps));
12495
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemArray, _extends30({}, itemProps));
12455
12496
  case "Object":
12456
12497
  case "object":
12457
- return /* @__PURE__ */ React43.createElement(Components2.CardItemObject, _extends29({}, itemProps));
12498
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemObject, _extends30({}, itemProps));
12458
12499
  case "Date":
12459
- return /* @__PURE__ */ React43.createElement(Components2.CardItemDate, _extends29({}, itemProps));
12500
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemDate, _extends30({}, itemProps));
12460
12501
  case "String":
12461
12502
  case "string":
12462
12503
  switch (contents) {
12463
12504
  case "html":
12464
- return /* @__PURE__ */ React43.createElement(Components2.CardItemHTML, _extends29({}, itemProps));
12505
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemHTML, _extends30({}, itemProps));
12465
12506
  case "date":
12466
- return /* @__PURE__ */ React43.createElement(Components2.CardItemDate, _extends29({}, itemProps));
12507
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemDate, _extends30({}, itemProps));
12467
12508
  case "image":
12468
- return /* @__PURE__ */ React43.createElement(Components2.CardItemImage, _extends29({}, itemProps, {
12509
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemImage, _extends30({}, itemProps, {
12469
12510
  force: true
12470
12511
  }));
12471
12512
  case "url":
12472
- return /* @__PURE__ */ React43.createElement(Components2.CardItemURL, _extends29({}, itemProps, {
12513
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemURL, _extends30({}, itemProps, {
12473
12514
  force: true
12474
12515
  }));
12475
12516
  default:
12476
- return /* @__PURE__ */ React43.createElement(Components2.CardItemImage, _extends29({}, itemProps));
12517
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemImage, _extends30({}, itemProps));
12477
12518
  }
12478
12519
  default:
12479
- return /* @__PURE__ */ React43.createElement(Components2.CardItemDefault, _extends29({}, itemProps));
12520
+ return /* @__PURE__ */ React45.createElement(Components2.CardItemDefault, _extends30({}, itemProps));
12480
12521
  }
12481
12522
  }, "CardItemSwitcher");
12482
12523
 
12483
12524
  // components/cell/CardItemRelationItem.tsx
12484
12525
  init_esm_shims();
12485
- import React44 from "react";
12526
+ import React46 from "react";
12486
12527
  var CardItemRelationItem = /* @__PURE__ */ __name(({ relatedDocument, relatedModel }) => {
12487
12528
  const Components2 = useVulcanComponents();
12488
12529
  const label = relatedDocument._id;
12489
12530
  const typeName = relatedDocument.__typename;
12490
12531
  const Cell = Components2[`${typeName}Cell`];
12491
- return Cell ? /* @__PURE__ */ React44.createElement(Cell, {
12532
+ return Cell ? /* @__PURE__ */ React46.createElement(Cell, {
12492
12533
  document: relatedDocument,
12493
12534
  label,
12494
12535
  Components: Components2
12495
- }) : /* @__PURE__ */ React44.createElement(Components2.DefaultCell, {
12536
+ }) : /* @__PURE__ */ React46.createElement(Components2.DefaultCell, {
12496
12537
  document: relatedDocument,
12497
12538
  label
12498
12539
  });
12499
12540
  }, "CardItemRelationItem");
12500
- var DefaultCell = /* @__PURE__ */ __name(({ document, label }) => /* @__PURE__ */ React44.createElement("li", {
12541
+ var DefaultCell = /* @__PURE__ */ __name(({ document, label }) => /* @__PURE__ */ React46.createElement("li", {
12501
12542
  className: "relation-default-cell"
12502
- }, document.pagePath ? /* @__PURE__ */ React44.createElement("a", {
12543
+ }, document.pagePath ? /* @__PURE__ */ React46.createElement("a", {
12503
12544
  href: document.pagePath
12504
- }, label) : /* @__PURE__ */ React44.createElement("span", null, label)), "DefaultCell");
12545
+ }, label) : /* @__PURE__ */ React46.createElement("span", null, label)), "DefaultCell");
12505
12546
  var UserCell = /* @__PURE__ */ __name(({ document }) => {
12506
12547
  const Components2 = useVulcanComponents();
12507
- return /* @__PURE__ */ React44.createElement("div", {
12548
+ return /* @__PURE__ */ React46.createElement("div", {
12508
12549
  className: "contents-user user-item"
12509
- }, document.pagePath ? /* @__PURE__ */ React44.createElement("a", {
12550
+ }, document.pagePath ? /* @__PURE__ */ React46.createElement("a", {
12510
12551
  className: "user-item-name",
12511
12552
  href: document.pagePath
12512
- }, document.displayName) : /* @__PURE__ */ React44.createElement("span", {
12553
+ }, document.displayName) : /* @__PURE__ */ React46.createElement("span", {
12513
12554
  className: "user-item-name"
12514
12555
  }, document.displayName));
12515
12556
  }, "UserCell");
12516
12557
 
12517
12558
  // components/cell/CardItemArray.tsx
12518
12559
  init_esm_shims();
12519
- import React45 from "react";
12560
+ import React47 from "react";
12520
12561
  var CardItemArray = /* @__PURE__ */ __name(({ nestingLevel, value }) => {
12521
12562
  const Components2 = useVulcanComponents();
12522
- return /* @__PURE__ */ React45.createElement("ol", {
12563
+ return /* @__PURE__ */ React47.createElement("ol", {
12523
12564
  className: "contents-array"
12524
- }, value.map((item, index) => /* @__PURE__ */ React45.createElement("li", {
12565
+ }, value.map((item, index) => /* @__PURE__ */ React47.createElement("li", {
12525
12566
  key: index
12526
- }, /* @__PURE__ */ React45.createElement(Components2.CardItem, {
12567
+ }, /* @__PURE__ */ React47.createElement(Components2.CardItem, {
12527
12568
  value: item,
12528
12569
  typeName: typeof item,
12529
12570
  nestingLevel
@@ -12533,20 +12574,20 @@ var CardItemArray = /* @__PURE__ */ __name(({ nestingLevel, value }) => {
12533
12574
  // components/cell/CardItemDate.tsx
12534
12575
  init_esm_shims();
12535
12576
  var import_moment2 = __toESM(require_moment(), 1);
12536
- import React46 from "react";
12537
- var CardItemDate = /* @__PURE__ */ __name(({ value }) => /* @__PURE__ */ React46.createElement("span", {
12577
+ import React48 from "react";
12578
+ var CardItemDate = /* @__PURE__ */ __name(({ value }) => /* @__PURE__ */ React48.createElement("span", {
12538
12579
  className: "contents-date"
12539
12580
  }, (0, import_moment2.default)(new Date(value)).format("YYYY/MM/DD, hh:mm")), "CardItemDate");
12540
12581
 
12541
12582
  // components/cell/CardItemDefault.tsx
12542
12583
  init_esm_shims();
12543
- import React47 from "react";
12544
- var CardItemDefault = /* @__PURE__ */ __name(({ value }) => /* @__PURE__ */ React47.createElement("span", null, value && value.toString()), "CardItemDefault");
12584
+ import React49 from "react";
12585
+ var CardItemDefault = /* @__PURE__ */ __name(({ value }) => /* @__PURE__ */ React49.createElement("span", null, value && value.toString()), "CardItemDefault");
12545
12586
 
12546
12587
  // components/cell/CardItemHTML.tsx
12547
12588
  init_esm_shims();
12548
- import React48 from "react";
12549
- var CardItemHTML = /* @__PURE__ */ __name(({ value }) => /* @__PURE__ */ React48.createElement("div", {
12589
+ import React50 from "react";
12590
+ var CardItemHTML = /* @__PURE__ */ __name(({ value }) => /* @__PURE__ */ React50.createElement("div", {
12550
12591
  className: "contents-html",
12551
12592
  dangerouslySetInnerHTML: {
12552
12593
  __html: value
@@ -12555,7 +12596,7 @@ var CardItemHTML = /* @__PURE__ */ __name(({ value }) => /* @__PURE__ */ React48
12555
12596
 
12556
12597
  // components/cell/CardItemImage.tsx
12557
12598
  init_esm_shims();
12558
- import React49 from "react";
12599
+ import React51 from "react";
12559
12600
  var CardItemImage = /* @__PURE__ */ __name(({ value, force = false }) => {
12560
12601
  const Components2 = useVulcanComponents();
12561
12602
  const isImage = [
@@ -12566,7 +12607,7 @@ var CardItemImage = /* @__PURE__ */ __name(({ value, force = false }) => {
12566
12607
  ".webp",
12567
12608
  ".jpeg"
12568
12609
  ].indexOf(value.substr(-5)) !== -1;
12569
- return isImage || force ? /* @__PURE__ */ React49.createElement("img", {
12610
+ return isImage || force ? /* @__PURE__ */ React51.createElement("img", {
12570
12611
  className: "contents-image",
12571
12612
  style: {
12572
12613
  width: "100%",
@@ -12576,24 +12617,24 @@ var CardItemImage = /* @__PURE__ */ __name(({ value, force = false }) => {
12576
12617
  },
12577
12618
  src: value,
12578
12619
  alt: value
12579
- }) : /* @__PURE__ */ React49.createElement(Components2.CardItemURL, {
12620
+ }) : /* @__PURE__ */ React51.createElement(Components2.CardItemURL, {
12580
12621
  value
12581
12622
  });
12582
12623
  }, "CardItemImage");
12583
12624
 
12584
12625
  // components/cell/CardItemNumber.tsx
12585
12626
  init_esm_shims();
12586
- import React50 from "react";
12587
- var CardItemNumber = /* @__PURE__ */ __name(({ value }) => /* @__PURE__ */ React50.createElement("code", {
12627
+ import React52 from "react";
12628
+ var CardItemNumber = /* @__PURE__ */ __name(({ value }) => /* @__PURE__ */ React52.createElement("code", {
12588
12629
  className: "contents-number"
12589
12630
  }, value.toString()), "CardItemNumber");
12590
12631
 
12591
12632
  // components/cell/CardItemObject.tsx
12592
12633
  init_esm_shims();
12593
- import React51 from "react";
12634
+ import React53 from "react";
12594
12635
  import without3 from "lodash/without.js";
12595
- function _extends30() {
12596
- _extends30 = Object.assign || function(target) {
12636
+ function _extends31() {
12637
+ _extends31 = Object.assign || function(target) {
12597
12638
  for (var i = 1; i < arguments.length; i++) {
12598
12639
  var source = arguments[i];
12599
12640
  for (var key in source) {
@@ -12604,36 +12645,36 @@ function _extends30() {
12604
12645
  }
12605
12646
  return target;
12606
12647
  };
12607
- return _extends30.apply(this, arguments);
12648
+ return _extends31.apply(this, arguments);
12608
12649
  }
12609
- __name(_extends30, "_extends");
12650
+ __name(_extends31, "_extends");
12610
12651
  var CardItemObject = /* @__PURE__ */ __name((props) => {
12611
12652
  const { nestingLevel, value, showExpand } = props;
12612
12653
  const Components2 = useVulcanComponents();
12613
12654
  const showExpandControl = showExpand || nestingLevel > 1;
12614
12655
  if (value.__typename === "User") {
12615
12656
  const user = value;
12616
- return /* @__PURE__ */ React51.createElement("div", {
12657
+ return /* @__PURE__ */ React53.createElement("div", {
12617
12658
  className: "dashboard-user",
12618
12659
  style: {
12619
12660
  whiteSpace: "nowrap"
12620
12661
  }
12621
- }, user.pagePath ? /* @__PURE__ */ React51.createElement("a", {
12662
+ }, user.pagePath ? /* @__PURE__ */ React53.createElement("a", {
12622
12663
  href: user.pagePath
12623
- }, user.displayName) : /* @__PURE__ */ React51.createElement("span", null, user.displayName));
12664
+ }, user.displayName) : /* @__PURE__ */ React53.createElement("span", null, user.displayName));
12624
12665
  } else {
12625
- return /* @__PURE__ */ React51.createElement("div", {
12666
+ return /* @__PURE__ */ React53.createElement("div", {
12626
12667
  className: "card-item-details"
12627
- }, showExpandControl ? /* @__PURE__ */ React51.createElement("details", null, /* @__PURE__ */ React51.createElement("summary", null, "Expand"), /* @__PURE__ */ React51.createElement(CardItemObjectContents, _extends30({}, props))) : /* @__PURE__ */ React51.createElement(CardItemObjectContents, _extends30({}, props)));
12668
+ }, showExpandControl ? /* @__PURE__ */ React53.createElement("details", null, /* @__PURE__ */ React53.createElement("summary", null, "Expand"), /* @__PURE__ */ React53.createElement(CardItemObjectContents, _extends31({}, props))) : /* @__PURE__ */ React53.createElement(CardItemObjectContents, _extends31({}, props)));
12628
12669
  }
12629
12670
  }, "CardItemObject");
12630
12671
  var CardItemObjectContents = /* @__PURE__ */ __name(({ nestingLevel, value: object }) => {
12631
12672
  const Components2 = useVulcanComponents();
12632
- return /* @__PURE__ */ React51.createElement("table", {
12673
+ return /* @__PURE__ */ React53.createElement("table", {
12633
12674
  className: "table table-bordered"
12634
- }, /* @__PURE__ */ React51.createElement("tbody", null, without3(Object.keys(object), "__typename").map((key) => /* @__PURE__ */ React51.createElement("tr", {
12675
+ }, /* @__PURE__ */ React53.createElement("tbody", null, without3(Object.keys(object), "__typename").map((key) => /* @__PURE__ */ React53.createElement("tr", {
12635
12676
  key
12636
- }, /* @__PURE__ */ React51.createElement("td", null, /* @__PURE__ */ React51.createElement("strong", null, key)), /* @__PURE__ */ React51.createElement("td", null, /* @__PURE__ */ React51.createElement(Components2.CardItemSwitcher, {
12677
+ }, /* @__PURE__ */ React53.createElement("td", null, /* @__PURE__ */ React53.createElement("strong", null, key)), /* @__PURE__ */ React53.createElement("td", null, /* @__PURE__ */ React53.createElement(Components2.CardItemSwitcher, {
12637
12678
  nestingLevel,
12638
12679
  value: object[key],
12639
12680
  typeName: typeof object[key]
@@ -12642,9 +12683,9 @@ var CardItemObjectContents = /* @__PURE__ */ __name(({ nestingLevel, value: obje
12642
12683
 
12643
12684
  // components/cell/CardItemRelationHasMany.tsx
12644
12685
  init_esm_shims();
12645
- import React52 from "react";
12646
- function _extends31() {
12647
- _extends31 = Object.assign || function(target) {
12686
+ import React54 from "react";
12687
+ function _extends32() {
12688
+ _extends32 = Object.assign || function(target) {
12648
12689
  for (var i = 1; i < arguments.length; i++) {
12649
12690
  var source = arguments[i];
12650
12691
  for (var key in source) {
@@ -12655,15 +12696,15 @@ function _extends31() {
12655
12696
  }
12656
12697
  return target;
12657
12698
  };
12658
- return _extends31.apply(this, arguments);
12699
+ return _extends32.apply(this, arguments);
12659
12700
  }
12660
- __name(_extends31, "_extends");
12701
+ __name(_extends32, "_extends");
12661
12702
  var CardItemRelationHasMany = /* @__PURE__ */ __name((_a) => {
12662
12703
  var _b = _a, { relatedDocument: relatedDocuments } = _b, rest = __objRest(_b, ["relatedDocument"]);
12663
12704
  const Components2 = useVulcanComponents();
12664
- return /* @__PURE__ */ React52.createElement("div", {
12705
+ return /* @__PURE__ */ React54.createElement("div", {
12665
12706
  className: "contents-hasmany"
12666
- }, relatedDocuments.map((relatedDocument) => /* @__PURE__ */ React52.createElement(Components2.CardItemRelationItem, _extends31({
12707
+ }, relatedDocuments.map((relatedDocument) => /* @__PURE__ */ React54.createElement(Components2.CardItemRelationItem, _extends32({
12667
12708
  key: relatedDocument._id,
12668
12709
  relatedDocument
12669
12710
  }, rest))));
@@ -12671,9 +12712,9 @@ var CardItemRelationHasMany = /* @__PURE__ */ __name((_a) => {
12671
12712
 
12672
12713
  // components/cell/CardItemRelationHasOne.tsx
12673
12714
  init_esm_shims();
12674
- import React53 from "react";
12675
- function _extends32() {
12676
- _extends32 = Object.assign || function(target) {
12715
+ import React55 from "react";
12716
+ function _extends33() {
12717
+ _extends33 = Object.assign || function(target) {
12677
12718
  for (var i = 1; i < arguments.length; i++) {
12678
12719
  var source = arguments[i];
12679
12720
  for (var key in source) {
@@ -12684,39 +12725,39 @@ function _extends32() {
12684
12725
  }
12685
12726
  return target;
12686
12727
  };
12687
- return _extends32.apply(this, arguments);
12728
+ return _extends33.apply(this, arguments);
12688
12729
  }
12689
- __name(_extends32, "_extends");
12730
+ __name(_extends33, "_extends");
12690
12731
  var CardItemRelationHasOne = /* @__PURE__ */ __name((_a) => {
12691
12732
  var rest = __objRest(_a, []);
12692
12733
  const Components2 = useVulcanComponents();
12693
- return /* @__PURE__ */ React53.createElement("div", {
12734
+ return /* @__PURE__ */ React55.createElement("div", {
12694
12735
  className: "contents-hasone"
12695
- }, /* @__PURE__ */ React53.createElement(Components2.CardItemRelationItem, _extends32({}, rest)));
12736
+ }, /* @__PURE__ */ React55.createElement(Components2.CardItemRelationItem, _extends33({}, rest)));
12696
12737
  }, "CardItemRelationHasOne");
12697
12738
 
12698
12739
  // components/cell/CardItemString.tsx
12699
12740
  init_esm_shims();
12700
- import React54 from "react";
12701
- var CardItemString = /* @__PURE__ */ __name(({ string }) => /* @__PURE__ */ React54.createElement("div", {
12741
+ import React56 from "react";
12742
+ var CardItemString = /* @__PURE__ */ __name(({ string }) => /* @__PURE__ */ React56.createElement("div", {
12702
12743
  className: "contents-string"
12703
- }, string.indexOf(" ") === -1 && string.length > 30 ? /* @__PURE__ */ React54.createElement("span", {
12744
+ }, string.indexOf(" ") === -1 && string.length > 30 ? /* @__PURE__ */ React56.createElement("span", {
12704
12745
  title: string
12705
- }, string.substr(0, 30), "\u2026") : /* @__PURE__ */ React54.createElement("span", null, string)), "CardItemString");
12746
+ }, string.substr(0, 30), "\u2026") : /* @__PURE__ */ React56.createElement("span", null, string)), "CardItemString");
12706
12747
 
12707
12748
  // components/cell/CardItemURL.tsx
12708
12749
  init_esm_shims();
12709
- import React55 from "react";
12750
+ import React57 from "react";
12710
12751
  var CardItemURL = /* @__PURE__ */ __name(({ value, force }) => {
12711
12752
  const Components2 = useVulcanComponents();
12712
- return force || value.slice(0, 4) === "http" ? /* @__PURE__ */ React55.createElement("a", {
12753
+ return force || value.slice(0, 4) === "http" ? /* @__PURE__ */ React57.createElement("a", {
12713
12754
  className: "contents-link",
12714
12755
  href: value,
12715
12756
  target: "_blank",
12716
12757
  rel: "noopener noreferrer"
12717
- }, /* @__PURE__ */ React55.createElement(Components2.CardItemString, {
12758
+ }, /* @__PURE__ */ React57.createElement(Components2.CardItemString, {
12718
12759
  string: value
12719
- })) : /* @__PURE__ */ React55.createElement(Components2.CardItemString, {
12760
+ })) : /* @__PURE__ */ React57.createElement(Components2.CardItemString, {
12720
12761
  string: value
12721
12762
  });
12722
12763
  }, "CardItemURL");
@@ -12747,9 +12788,9 @@ import { FormattedMessage } from "@vulcanjs/react-i18n";
12747
12788
 
12748
12789
  // components/core/Button.tsx
12749
12790
  init_esm_shims();
12750
- import React56 from "react";
12751
- function _extends33() {
12752
- _extends33 = Object.assign || function(target) {
12791
+ import React58 from "react";
12792
+ function _extends34() {
12793
+ _extends34 = Object.assign || function(target) {
12753
12794
  for (var i = 1; i < arguments.length; i++) {
12754
12795
  var source = arguments[i];
12755
12796
  for (var key in source) {
@@ -12760,27 +12801,27 @@ function _extends33() {
12760
12801
  }
12761
12802
  return target;
12762
12803
  };
12763
- return _extends33.apply(this, arguments);
12804
+ return _extends34.apply(this, arguments);
12764
12805
  }
12765
- __name(_extends33, "_extends");
12806
+ __name(_extends34, "_extends");
12766
12807
  var Button = /* @__PURE__ */ __name((_a) => {
12767
12808
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
12768
- return /* @__PURE__ */ React56.createElement("button", _extends33({}, props), children);
12809
+ return /* @__PURE__ */ React58.createElement("button", _extends34({}, props), children);
12769
12810
  }, "Button");
12770
12811
 
12771
12812
  // components/core/Loading.tsx
12772
12813
  init_esm_shims();
12773
- import React57 from "react";
12774
- var Loading = /* @__PURE__ */ __name(() => /* @__PURE__ */ React57.createElement("span", {
12814
+ import React59 from "react";
12815
+ var Loading = /* @__PURE__ */ __name(() => /* @__PURE__ */ React59.createElement("span", {
12775
12816
  "aria-live": "polite",
12776
12817
  "aria-busy": "true"
12777
12818
  }, "Loading..."), "Loading");
12778
12819
 
12779
12820
  // components/LoadingButton.tsx
12780
12821
  init_esm_shims();
12781
- import React58 from "react";
12782
- function _extends34() {
12783
- _extends34 = Object.assign || function(target) {
12822
+ import React60 from "react";
12823
+ function _extends35() {
12824
+ _extends35 = Object.assign || function(target) {
12784
12825
  for (var i = 1; i < arguments.length; i++) {
12785
12826
  var source = arguments[i];
12786
12827
  for (var key in source) {
@@ -12791,9 +12832,9 @@ function _extends34() {
12791
12832
  }
12792
12833
  return target;
12793
12834
  };
12794
- return _extends34.apply(this, arguments);
12835
+ return _extends35.apply(this, arguments);
12795
12836
  }
12796
- __name(_extends34, "_extends");
12837
+ __name(_extends35, "_extends");
12797
12838
  var LoadingButton = /* @__PURE__ */ __name((_a) => {
12798
12839
  var _b = _a, { loading, label, onClick, children, className = "" } = _b, rest = __objRest(_b, ["loading", "label", "onClick", "children", "className"]);
12799
12840
  const Components2 = useVulcanComponents();
@@ -12815,24 +12856,24 @@ var LoadingButton = /* @__PURE__ */ __name((_a) => {
12815
12856
  } : {
12816
12857
  display: "none"
12817
12858
  };
12818
- return /* @__PURE__ */ React58.createElement(Components2.Button, _extends34({
12859
+ return /* @__PURE__ */ React60.createElement(Components2.Button, _extends35({
12819
12860
  className: `loading-button ${loading ? "loading-button-loading" : "loading-button-notloading"} ${className}`,
12820
12861
  onClick
12821
- }, rest), /* @__PURE__ */ React58.createElement("span", {
12862
+ }, rest), /* @__PURE__ */ React60.createElement("span", {
12822
12863
  style: wrapperStyle
12823
- }, /* @__PURE__ */ React58.createElement("span", {
12864
+ }, /* @__PURE__ */ React60.createElement("span", {
12824
12865
  style: labelStyle
12825
- }, label || children), /* @__PURE__ */ React58.createElement("span", {
12866
+ }, label || children), /* @__PURE__ */ React60.createElement("span", {
12826
12867
  style: loadingStyle
12827
- }, /* @__PURE__ */ React58.createElement(Components2.Loading, null))));
12868
+ }, /* @__PURE__ */ React60.createElement(Components2.Loading, null))));
12828
12869
  }, "LoadingButton");
12829
12870
 
12830
12871
  // components/MutationButton.tsx
12831
12872
  init_esm_shims();
12832
- import React59, { useState as useState8 } from "react";
12873
+ import React61, { useState as useState8 } from "react";
12833
12874
  import { useMutation } from "@apollo/client";
12834
- function _extends35() {
12835
- _extends35 = Object.assign || function(target) {
12875
+ function _extends36() {
12876
+ _extends36 = Object.assign || function(target) {
12836
12877
  for (var i = 1; i < arguments.length; i++) {
12837
12878
  var source = arguments[i];
12838
12879
  for (var key in source) {
@@ -12843,9 +12884,9 @@ function _extends35() {
12843
12884
  }
12844
12885
  return target;
12845
12886
  };
12846
- return _extends35.apply(this, arguments);
12887
+ return _extends36.apply(this, arguments);
12847
12888
  }
12848
- __name(_extends35, "_extends");
12889
+ __name(_extends36, "_extends");
12849
12890
  var MutationButton = /* @__PURE__ */ __name((props) => {
12850
12891
  const Components2 = useVulcanComponents();
12851
12892
  const [loading, setLoading] = useState8(false);
@@ -12891,13 +12932,13 @@ var MutationButton = /* @__PURE__ */ __name((props) => {
12891
12932
  setLoading(false);
12892
12933
  }
12893
12934
  }, "handleClick");
12894
- const loadingButton = /* @__PURE__ */ React59.createElement(Components2.LoadingButton, _extends35({
12935
+ const loadingButton = /* @__PURE__ */ React61.createElement(Components2.LoadingButton, _extends36({
12895
12936
  loading,
12896
12937
  onClick: handleClick,
12897
12938
  label
12898
12939
  }, loadingButtonProps));
12899
12940
  if (error1) {
12900
- return /* @__PURE__ */ React59.createElement(Components2.TooltipTrigger, {
12941
+ return /* @__PURE__ */ React61.createElement(Components2.TooltipTrigger, {
12901
12942
  trigger: loadingButton,
12902
12943
  defaultShow: true
12903
12944
  }, error1.message.replace("GraphQL error: ", ""));
@@ -12907,7 +12948,7 @@ var MutationButton = /* @__PURE__ */ __name((props) => {
12907
12948
 
12908
12949
  // components/HeadTags.tsx
12909
12950
  init_esm_shims();
12910
- import React60, { PureComponent } from "react";
12951
+ import React62, { PureComponent } from "react";
12911
12952
  var HeadTags = class extends PureComponent {
12912
12953
  render() {
12913
12954
  console.warn("HeadTags won't work in Next.js, because Head doesn't support nesting. Define meta directly in your app instead.");
@@ -12919,45 +12960,45 @@ var HeadTags = class extends PureComponent {
12919
12960
  }
12920
12961
  image = siteUrl + image;
12921
12962
  }
12922
- return /* @__PURE__ */ React60.createElement(React60.Fragment, null, /* @__PURE__ */ React60.createElement("title", null, title), /* @__PURE__ */ React60.createElement("meta", {
12963
+ return /* @__PURE__ */ React62.createElement(React62.Fragment, null, /* @__PURE__ */ React62.createElement("title", null, title), /* @__PURE__ */ React62.createElement("meta", {
12923
12964
  charSet: "utf-8"
12924
- }), /* @__PURE__ */ React60.createElement("meta", {
12965
+ }), /* @__PURE__ */ React62.createElement("meta", {
12925
12966
  name: "description",
12926
12967
  content: description
12927
- }), /* @__PURE__ */ React60.createElement("meta", {
12968
+ }), /* @__PURE__ */ React62.createElement("meta", {
12928
12969
  name: "viewport",
12929
12970
  content: "width=device-width, initial-scale=1"
12930
- }), /* @__PURE__ */ React60.createElement("meta", {
12971
+ }), /* @__PURE__ */ React62.createElement("meta", {
12931
12972
  property: "og:type",
12932
12973
  content: "article"
12933
- }), /* @__PURE__ */ React60.createElement("meta", {
12974
+ }), /* @__PURE__ */ React62.createElement("meta", {
12934
12975
  property: "og:url",
12935
12976
  content: url
12936
- }), /* @__PURE__ */ React60.createElement("meta", {
12977
+ }), /* @__PURE__ */ React62.createElement("meta", {
12937
12978
  property: "og:image",
12938
12979
  content: image
12939
- }), /* @__PURE__ */ React60.createElement("meta", {
12980
+ }), /* @__PURE__ */ React62.createElement("meta", {
12940
12981
  property: "og:title",
12941
12982
  content: title
12942
- }), /* @__PURE__ */ React60.createElement("meta", {
12983
+ }), /* @__PURE__ */ React62.createElement("meta", {
12943
12984
  property: "og:description",
12944
12985
  content: description
12945
- }), /* @__PURE__ */ React60.createElement("meta", {
12986
+ }), /* @__PURE__ */ React62.createElement("meta", {
12946
12987
  name: "twitter:card",
12947
12988
  content: "summary"
12948
- }), /* @__PURE__ */ React60.createElement("meta", {
12989
+ }), /* @__PURE__ */ React62.createElement("meta", {
12949
12990
  name: "twitter:image:src",
12950
12991
  content: image
12951
- }), /* @__PURE__ */ React60.createElement("meta", {
12992
+ }), /* @__PURE__ */ React62.createElement("meta", {
12952
12993
  name: "twitter:title",
12953
12994
  content: title
12954
- }), /* @__PURE__ */ React60.createElement("meta", {
12995
+ }), /* @__PURE__ */ React62.createElement("meta", {
12955
12996
  name: "twitter:description",
12956
12997
  content: description
12957
- }), /* @__PURE__ */ React60.createElement("link", {
12998
+ }), /* @__PURE__ */ React62.createElement("link", {
12958
12999
  rel: "canonical",
12959
13000
  href: url
12960
- }), /* @__PURE__ */ React60.createElement("link", {
13001
+ }), /* @__PURE__ */ React62.createElement("link", {
12961
13002
  rel: "shortcut icon",
12962
13003
  href: faviconUrl || "/favicon.ico"
12963
13004
  }));
@@ -12967,9 +13008,9 @@ __name(HeadTags, "HeadTags");
12967
13008
 
12968
13009
  // components/bootstrap/TooltipTrigger.tsx
12969
13010
  init_esm_shims();
12970
- import React61 from "react";
13011
+ import React63 from "react";
12971
13012
  var TooltipTrigger = /* @__PURE__ */ __name(({ children, trigger }) => {
12972
- return /* @__PURE__ */ React61.createElement("div", {
13013
+ return /* @__PURE__ */ React63.createElement("div", {
12973
13014
  title: children
12974
13015
  }, trigger);
12975
13016
  }, "TooltipTrigger");
@@ -12977,10 +13018,10 @@ var TooltipTrigger = /* @__PURE__ */ __name(({ children, trigger }) => {
12977
13018
  // components/bootstrap/Dropdown.tsx
12978
13019
  init_esm_shims();
12979
13020
  var import_prop_types6 = __toESM(require_prop_types(), 1);
12980
- import React62 from "react";
13021
+ import React64 from "react";
12981
13022
  import { Dropdown, DropdownButton } from "react-bootstrap";
12982
- function _extends36() {
12983
- _extends36 = Object.assign || function(target) {
13023
+ function _extends37() {
13024
+ _extends37 = Object.assign || function(target) {
12984
13025
  for (var i = 1; i < arguments.length; i++) {
12985
13026
  var source = arguments[i];
12986
13027
  for (var key in source) {
@@ -12991,9 +13032,9 @@ function _extends36() {
12991
13032
  }
12992
13033
  return target;
12993
13034
  };
12994
- return _extends36.apply(this, arguments);
13035
+ return _extends37.apply(this, arguments);
12995
13036
  }
12996
- __name(_extends36, "_extends");
13037
+ __name(_extends37, "_extends");
12997
13038
  var DropdownItem = Dropdown.Item;
12998
13039
  var Item = /* @__PURE__ */ __name((_a) => {
12999
13040
  var _b = _a, {
@@ -13014,15 +13055,15 @@ var Item = /* @__PURE__ */ __name((_a) => {
13014
13055
  const Components2 = useVulcanComponents();
13015
13056
  let menuComponent;
13016
13057
  if (component) {
13017
- menuComponent = /* @__PURE__ */ React62.cloneElement(component, componentProps);
13058
+ menuComponent = /* @__PURE__ */ React64.cloneElement(component, componentProps);
13018
13059
  } else if (labelId) {
13019
- menuComponent = /* @__PURE__ */ React62.createElement(Components2.FormattedMessage, {
13060
+ menuComponent = /* @__PURE__ */ React64.createElement(Components2.FormattedMessage, {
13020
13061
  id: labelId
13021
13062
  });
13022
13063
  } else {
13023
- menuComponent = /* @__PURE__ */ React62.createElement("span", null, label);
13064
+ menuComponent = /* @__PURE__ */ React64.createElement("span", null, label);
13024
13065
  }
13025
- const item = /* @__PURE__ */ React62.createElement(DropdownItem, _extends36({
13066
+ const item = /* @__PURE__ */ React64.createElement(DropdownItem, _extends37({
13026
13067
  eventKey: index
13027
13068
  }, itemProps, rest), menuComponent);
13028
13069
  return item;
@@ -13038,9 +13079,9 @@ Item.propTypes = {
13038
13079
  };
13039
13080
  var Node = /* @__PURE__ */ __name((_a) => {
13040
13081
  var _b = _a, { childrenItems } = _b, rest = __objRest(_b, ["childrenItems"]);
13041
- return /* @__PURE__ */ React62.createElement(React62.Fragment, null, /* @__PURE__ */ React62.createElement(Item, _extends36({}, rest)), childrenItems && !!childrenItems.length && /* @__PURE__ */ React62.createElement("div", {
13082
+ return /* @__PURE__ */ React64.createElement(React64.Fragment, null, /* @__PURE__ */ React64.createElement(Item, _extends37({}, rest)), childrenItems && !!childrenItems.length && /* @__PURE__ */ React64.createElement("div", {
13042
13083
  className: "menu-node-children"
13043
- }, childrenItems.map((item, index) => /* @__PURE__ */ React62.createElement(Item, _extends36({
13084
+ }, childrenItems.map((item, index) => /* @__PURE__ */ React64.createElement(Item, _extends37({
13044
13085
  key: index
13045
13086
  }, item)))));
13046
13087
  }, "Node");
@@ -13052,11 +13093,11 @@ var BootstrapDropdown = /* @__PURE__ */ __name((_a) => {
13052
13093
  const Components2 = useVulcanComponents();
13053
13094
  const menuBody = menuContents ? menuContents : menuItems.map((item, index) => {
13054
13095
  if (item === "divider") {
13055
- return /* @__PURE__ */ React62.createElement(Dropdown.Divider, {
13096
+ return /* @__PURE__ */ React64.createElement(Dropdown.Divider, {
13056
13097
  key: index
13057
13098
  });
13058
13099
  } else {
13059
- return /* @__PURE__ */ React62.createElement(Node, _extends36({}, item, {
13100
+ return /* @__PURE__ */ React64.createElement(Node, _extends37({}, item, {
13060
13101
  key: index,
13061
13102
  index
13062
13103
  }));
@@ -13066,10 +13107,10 @@ var BootstrapDropdown = /* @__PURE__ */ __name((_a) => {
13066
13107
  return menuBody;
13067
13108
  } else {
13068
13109
  if (trigger) {
13069
- return /* @__PURE__ */ React62.createElement(Dropdown, _extends36({}, dropdownProps), /* @__PURE__ */ React62.createElement(Dropdown.Toggle, null, trigger), /* @__PURE__ */ React62.createElement(Dropdown.Menu, null, menuBody));
13110
+ return /* @__PURE__ */ React64.createElement(Dropdown, _extends37({}, dropdownProps), /* @__PURE__ */ React64.createElement(Dropdown.Toggle, null, trigger), /* @__PURE__ */ React64.createElement(Dropdown.Menu, null, menuBody));
13070
13111
  } else {
13071
- return /* @__PURE__ */ React62.createElement(DropdownButton, _extends36({}, buttonProps, {
13072
- title: labelId ? /* @__PURE__ */ React62.createElement(Components2.FormattedMessage, {
13112
+ return /* @__PURE__ */ React64.createElement(DropdownButton, _extends37({}, buttonProps, {
13113
+ title: labelId ? /* @__PURE__ */ React64.createElement(Components2.FormattedMessage, {
13073
13114
  id: labelId
13074
13115
  }) : label
13075
13116
  }, dropdownProps), menuBody);
@@ -13090,10 +13131,10 @@ var Dropdown_default = BootstrapDropdown;
13090
13131
  // components/bootstrap/Modal.tsx
13091
13132
  init_esm_shims();
13092
13133
  var import_prop_types7 = __toESM(require_prop_types(), 1);
13093
- import React63 from "react";
13134
+ import React65 from "react";
13094
13135
  import { Modal } from "react-bootstrap";
13095
- function _extends37() {
13096
- _extends37 = Object.assign || function(target) {
13136
+ function _extends38() {
13137
+ _extends38 = Object.assign || function(target) {
13097
13138
  for (var i = 1; i < arguments.length; i++) {
13098
13139
  var source = arguments[i];
13099
13140
  for (var key in source) {
@@ -13104,29 +13145,29 @@ function _extends37() {
13104
13145
  }
13105
13146
  return target;
13106
13147
  };
13107
- return _extends37.apply(this, arguments);
13148
+ return _extends38.apply(this, arguments);
13108
13149
  }
13109
- __name(_extends37, "_extends");
13150
+ __name(_extends38, "_extends");
13110
13151
  var BootstrapModal = /* @__PURE__ */ __name((_a) => {
13111
13152
  var _b = _a, { children, size: size2 = "lg", show = false, onHide, title, showCloseButton = true, header, footer } = _b, rest = __objRest(_b, ["children", "size", "show", "onHide", "title", "showCloseButton", "header", "footer"]);
13112
13153
  let headerComponent;
13113
13154
  if (header) {
13114
- headerComponent = /* @__PURE__ */ React63.createElement(Modal.Header, null, header);
13155
+ headerComponent = /* @__PURE__ */ React65.createElement(Modal.Header, null, header);
13115
13156
  } else if (title) {
13116
- headerComponent = /* @__PURE__ */ React63.createElement(Modal.Header, {
13157
+ headerComponent = /* @__PURE__ */ React65.createElement(Modal.Header, {
13117
13158
  closeButton: showCloseButton
13118
- }, /* @__PURE__ */ React63.createElement(Modal.Title, null, title));
13159
+ }, /* @__PURE__ */ React65.createElement(Modal.Title, null, title));
13119
13160
  } else {
13120
- headerComponent = /* @__PURE__ */ React63.createElement(Modal.Header, {
13161
+ headerComponent = /* @__PURE__ */ React65.createElement(Modal.Header, {
13121
13162
  closeButton: showCloseButton
13122
13163
  });
13123
13164
  }
13124
- const footerComponent = footer ? /* @__PURE__ */ React63.createElement(Modal.Footer, null, footer) : null;
13125
- return /* @__PURE__ */ React63.createElement(Modal, _extends37({
13165
+ const footerComponent = footer ? /* @__PURE__ */ React65.createElement(Modal.Footer, null, footer) : null;
13166
+ return /* @__PURE__ */ React65.createElement(Modal, _extends38({
13126
13167
  size: size2,
13127
13168
  show,
13128
13169
  onHide
13129
- }, rest), headerComponent, /* @__PURE__ */ React63.createElement(Modal.Body, null, children), footerComponent);
13170
+ }, rest), headerComponent, /* @__PURE__ */ React65.createElement(Modal.Body, null, children), footerComponent);
13130
13171
  }, "BootstrapModal");
13131
13172
  BootstrapModal.propTypes = {
13132
13173
  size: import_prop_types7.default.string,
@@ -13149,9 +13190,9 @@ BootstrapModal.propTypes = {
13149
13190
 
13150
13191
  // components/bootstrap/ModalTrigger.tsx
13151
13192
  init_esm_shims();
13152
- import React64, { useState as useState9 } from "react";
13153
- function _extends38() {
13154
- _extends38 = Object.assign || function(target) {
13193
+ import React66, { useState as useState9 } from "react";
13194
+ function _extends39() {
13195
+ _extends39 = Object.assign || function(target) {
13155
13196
  for (var i = 1; i < arguments.length; i++) {
13156
13197
  var source = arguments[i];
13157
13198
  for (var key in source) {
@@ -13162,9 +13203,9 @@ function _extends38() {
13162
13203
  }
13163
13204
  return target;
13164
13205
  };
13165
- return _extends38.apply(this, arguments);
13206
+ return _extends39.apply(this, arguments);
13166
13207
  }
13167
- __name(_extends38, "_extends");
13208
+ __name(_extends39, "_extends");
13168
13209
  var ModalTrigger = /* @__PURE__ */ __name((props) => {
13169
13210
  const [modalIsOpen, setModalIsOpen] = useState9(false);
13170
13211
  const { onClick, openCallback, closeCallback } = props;
@@ -13190,23 +13231,23 @@ var ModalTrigger = /* @__PURE__ */ __name((props) => {
13190
13231
  const Components2 = useVulcanComponents();
13191
13232
  const { trigger, component, children, label, size: size2, className, dialogClassName, title, modalProps, header, footer } = props;
13192
13233
  let triggerComponent = trigger || component;
13193
- triggerComponent = triggerComponent ? /* @__PURE__ */ React64.createElement("span", {
13234
+ triggerComponent = triggerComponent ? /* @__PURE__ */ React66.createElement("span", {
13194
13235
  onClick: clickHandler
13195
- }, triggerComponent) : /* @__PURE__ */ React64.createElement(Components2.Button, {
13236
+ }, triggerComponent) : /* @__PURE__ */ React66.createElement(Components2.Button, {
13196
13237
  onClick: clickHandler
13197
13238
  }, label);
13198
- const childrenComponent = /* @__PURE__ */ React64.cloneElement(children, {
13239
+ const childrenComponent = /* @__PURE__ */ React66.cloneElement(children, {
13199
13240
  closeModal
13200
13241
  });
13201
- const headerComponent = header && /* @__PURE__ */ React64.cloneElement(header, {
13242
+ const headerComponent = header && /* @__PURE__ */ React66.cloneElement(header, {
13202
13243
  closeModal
13203
13244
  });
13204
- const footerComponent = footer && /* @__PURE__ */ React64.cloneElement(footer, {
13245
+ const footerComponent = footer && /* @__PURE__ */ React66.cloneElement(footer, {
13205
13246
  closeModal
13206
13247
  });
13207
- return /* @__PURE__ */ React64.createElement("div", {
13248
+ return /* @__PURE__ */ React66.createElement("div", {
13208
13249
  className: "modal-trigger"
13209
- }, triggerComponent, /* @__PURE__ */ React64.createElement(Components2.Modal, _extends38({
13250
+ }, triggerComponent, /* @__PURE__ */ React66.createElement(Components2.Modal, _extends39({
13210
13251
  size: size2,
13211
13252
  className,
13212
13253
  show: modalIsOpen,
@@ -13237,49 +13278,6 @@ var defaultCoreComponents = {
13237
13278
  // components/VulcanComponents/defaultVulcanComponents/index.ts
13238
13279
  var defaultVulcanComponents = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, defaultDatatableComponents), defaultCellComponents), defaultCoreComponents), defaultFormComponents);
13239
13280
 
13240
- // components/VulcanComponents/Provider.tsx
13241
- import { debugVulcan as debugVulcan2 } from "@vulcanjs/utils";
13242
- function _extends39() {
13243
- _extends39 = Object.assign || function(target) {
13244
- for (var i = 1; i < arguments.length; i++) {
13245
- var source = arguments[i];
13246
- for (var key in source) {
13247
- if (Object.prototype.hasOwnProperty.call(source, key)) {
13248
- target[key] = source[key];
13249
- }
13250
- }
13251
- }
13252
- return target;
13253
- };
13254
- return _extends39.apply(this, arguments);
13255
- }
13256
- __name(_extends39, "_extends");
13257
- var debugComponents = debugVulcan2("components");
13258
- var VulcanComponentsProvider = /* @__PURE__ */ __name((_a) => {
13259
- var _b = _a, { value } = _b, props = __objRest(_b, ["value"]);
13260
- const currentComponents = useVulcanComponents();
13261
- debugComponents("Current components __not_initialized?", currentComponents.__not_initialized);
13262
- const mergedComponents = __spreadValues(__spreadValues(__spreadValues({}, defaultVulcanComponents), (currentComponents == null ? void 0 : currentComponents.__not_initialized) ? {} : currentComponents || {}), value || {});
13263
- debugComponents("Merged components", mergedComponents);
13264
- Object.keys(mergedComponents).forEach((componentName) => {
13265
- if (mergedComponents[componentName]) {
13266
- mergedComponents[componentName].displayName = "Vulcan." + componentName;
13267
- } else {
13268
- console.warn(`Encountered an undefined component: ${componentName}.
13269
- The component may not be registered, or import failed.
13270
- For instance due to an infinite import loop when importing
13271
- "useVulcanComponents" from index instead of Consumer.`);
13272
- }
13273
- });
13274
- return /* @__PURE__ */ React65.createElement(VulcanComponentsContext.Provider, _extends39({
13275
- value: mergedComponents
13276
- }, props));
13277
- }, "VulcanComponentsProvider");
13278
-
13279
- // components/VulcanComponents/typings.ts
13280
- init_esm_shims();
13281
- import React66 from "react";
13282
-
13283
13281
  // components/VulcanCurrentUser/index.ts
13284
13282
  init_esm_shims();
13285
13283
 
@@ -13399,6 +13397,11 @@ export {
13399
13397
  VulcanCurrentUserProvider,
13400
13398
  componentExists,
13401
13399
  coreComponents,
13400
+ defaultCellComponents,
13401
+ defaultCoreComponents,
13402
+ defaultDatatableComponents,
13403
+ defaultFormComponents,
13404
+ defaultVulcanComponents,
13402
13405
  delayedComponent,
13403
13406
  getRawComponent,
13404
13407
  instantiateComponent,