@makeswift/runtime 0.0.0-ef05bba → 0.0.0-f5b044f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/builder.js +1 -0
  2. package/dist/Page.cjs.js +215 -0
  3. package/dist/Page.cjs.js.map +1 -0
  4. package/dist/Page.es.js +209 -0
  5. package/dist/Page.es.js.map +1 -0
  6. package/dist/actions.cjs.js +43 -2
  7. package/dist/actions.cjs.js.map +1 -1
  8. package/dist/actions.es.js +37 -2
  9. package/dist/actions.es.js.map +1 -1
  10. package/dist/api.cjs.js +1 -2
  11. package/dist/api.cjs.js.map +1 -1
  12. package/dist/box-model.cjs.js +1 -2
  13. package/dist/box-model.cjs.js.map +1 -1
  14. package/dist/box-models.cjs.js +2 -0
  15. package/dist/box-models.cjs.js.map +1 -1
  16. package/dist/box-models.es.js +2 -0
  17. package/dist/box-models.es.js.map +1 -1
  18. package/dist/builder.cjs.js +10 -0
  19. package/dist/builder.cjs.js.map +1 -0
  20. package/dist/builder.es.js +3 -0
  21. package/dist/builder.es.js.map +1 -0
  22. package/dist/components.cjs.js +54 -38
  23. package/dist/components.cjs.js.map +1 -1
  24. package/dist/components.es.js +14 -7
  25. package/dist/components.es.js.map +1 -1
  26. package/dist/constants.cjs.js +96 -1
  27. package/dist/constants.cjs.js.map +1 -1
  28. package/dist/constants.es.js +96 -1
  29. package/dist/constants.es.js.map +1 -1
  30. package/dist/control-serialization.cjs.js +223 -0
  31. package/dist/control-serialization.cjs.js.map +1 -0
  32. package/dist/control-serialization.es.js +218 -0
  33. package/dist/control-serialization.es.js.map +1 -0
  34. package/dist/descriptors.cjs.js +17 -3
  35. package/dist/descriptors.cjs.js.map +1 -1
  36. package/dist/descriptors.es.js +14 -4
  37. package/dist/descriptors.es.js.map +1 -1
  38. package/dist/index.cjs.js +8037 -0
  39. package/dist/index.cjs.js.map +1 -0
  40. package/dist/index.es.js +7956 -0
  41. package/dist/index.es.js.map +1 -0
  42. package/dist/instances.cjs.js +17 -0
  43. package/dist/instances.cjs.js.map +1 -1
  44. package/dist/instances.es.js +17 -1
  45. package/dist/instances.es.js.map +1 -1
  46. package/dist/main.cjs.js +10 -2
  47. package/dist/main.cjs.js.map +1 -1
  48. package/dist/main.es.js +5 -1
  49. package/dist/main.es.js.map +1 -1
  50. package/dist/next.cjs.js +64 -22
  51. package/dist/next.cjs.js.map +1 -1
  52. package/dist/next.es.js +61 -19
  53. package/dist/next.es.js.map +1 -1
  54. package/dist/prop-controllers.cjs.js +2 -2
  55. package/dist/prop-controllers.es.js +1 -1
  56. package/dist/react-builder-preview.cjs.js +36 -39
  57. package/dist/react-builder-preview.cjs.js.map +1 -1
  58. package/dist/react-builder-preview.es.js +34 -37
  59. package/dist/react-builder-preview.es.js.map +1 -1
  60. package/dist/react-page.cjs.js +263 -0
  61. package/dist/react-page.cjs.js.map +1 -0
  62. package/dist/react-page.es.js +241 -0
  63. package/dist/react-page.es.js.map +1 -0
  64. package/dist/react.cjs.js +21 -14
  65. package/dist/react.cjs.js.map +1 -1
  66. package/dist/react.cjs2.js +2500 -567
  67. package/dist/react.cjs2.js.map +1 -1
  68. package/dist/react.es.js +13 -7
  69. package/dist/react.es.js.map +1 -1
  70. package/dist/react.es2.js +2488 -557
  71. package/dist/react.es2.js.map +1 -1
  72. package/dist/types/api/constants.d.ts.map +1 -1
  73. package/dist/types/api/generated/graphql.d.ts +59 -0
  74. package/dist/types/api/generated/graphql.d.ts.map +1 -1
  75. package/dist/types/api/react.d.ts +26 -4
  76. package/dist/types/api/react.d.ts.map +1 -1
  77. package/dist/types/api/types.d.ts +2 -2
  78. package/dist/types/api/types.d.ts.map +1 -1
  79. package/dist/types/builder/index.d.ts +2 -0
  80. package/dist/types/builder/index.d.ts.map +1 -0
  81. package/dist/types/builder/serialization/control-serialization.d.ts +144 -0
  82. package/dist/types/builder/serialization/control-serialization.d.ts.map +1 -0
  83. package/dist/types/builder/serialization/function-serialization.d.ts +12 -0
  84. package/dist/types/builder/serialization/function-serialization.d.ts.map +1 -0
  85. package/dist/types/builder/serialization/index.d.ts +3 -0
  86. package/dist/types/builder/serialization/index.d.ts.map +1 -0
  87. package/dist/types/components/builtin/Box/Box.d.ts +2 -2
  88. package/dist/types/components/builtin/Box/Box.d.ts.map +1 -1
  89. package/dist/types/components/builtin/Button/Button.d.ts +5 -5
  90. package/dist/types/components/builtin/Button/Button.d.ts.map +1 -1
  91. package/dist/types/components/builtin/Carousel/Carousel.d.ts +6 -5
  92. package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -1
  93. package/dist/types/components/builtin/Countdown/Countdown.d.ts +6 -5
  94. package/dist/types/components/builtin/Countdown/Countdown.d.ts.map +1 -1
  95. package/dist/types/components/builtin/Divider/Divider.d.ts +4 -3
  96. package/dist/types/components/builtin/Divider/Divider.d.ts.map +1 -1
  97. package/dist/types/components/builtin/Embed/Embed.d.ts +2 -2
  98. package/dist/types/components/builtin/Embed/Embed.d.ts.map +1 -1
  99. package/dist/types/components/builtin/Form/Form.d.ts +42 -0
  100. package/dist/types/components/builtin/Form/Form.d.ts.map +1 -0
  101. package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts +15 -0
  102. package/dist/types/components/builtin/Form/components/Field/components/Checkbox/index.d.ts.map +1 -0
  103. package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts +15 -0
  104. package/dist/types/components/builtin/Form/components/Field/components/CheckboxTableField/index.d.ts.map +1 -0
  105. package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts +11 -0
  106. package/dist/types/components/builtin/Form/components/Field/components/EmailTableField/index.d.ts.map +1 -0
  107. package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts +14 -0
  108. package/dist/types/components/builtin/Form/components/Field/components/Input/index.d.ts.map +1 -0
  109. package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts +16 -0
  110. package/dist/types/components/builtin/Form/components/Field/components/Label/index.d.ts.map +1 -0
  111. package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts +10 -0
  112. package/dist/types/components/builtin/Form/components/Field/components/LongTextTableField/index.d.ts.map +1 -0
  113. package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts +23 -0
  114. package/dist/types/components/builtin/Form/components/Field/components/MultipleSelectTableField/index.d.ts.map +1 -0
  115. package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts +11 -0
  116. package/dist/types/components/builtin/Form/components/Field/components/NumberTableField/index.d.ts.map +1 -0
  117. package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts +11 -0
  118. package/dist/types/components/builtin/Form/components/Field/components/PhoneNumberTableField/index.d.ts.map +1 -0
  119. package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts +3 -0
  120. package/dist/types/components/builtin/Form/components/Field/components/PlaceholderTableField/index.d.ts.map +1 -0
  121. package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts +17 -0
  122. package/dist/types/components/builtin/Form/components/Field/components/RadioButton/index.d.ts.map +1 -0
  123. package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts +11 -0
  124. package/dist/types/components/builtin/Form/components/Field/components/SingleLineTextTableField/index.d.ts.map +1 -0
  125. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts +23 -0
  126. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnRadioButtonGroup/index.d.ts.map +1 -0
  127. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts +19 -0
  128. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/components/TableColumnSingleSelect/index.d.ts.map +1 -0
  129. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts +24 -0
  130. package/dist/types/components/builtin/Form/components/Field/components/SingleSelectTableField/index.d.ts.map +1 -0
  131. package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts +13 -0
  132. package/dist/types/components/builtin/Form/components/Field/components/TextArea/index.d.ts.map +1 -0
  133. package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts +11 -0
  134. package/dist/types/components/builtin/Form/components/Field/components/URLTableField/index.d.ts.map +1 -0
  135. package/dist/types/components/builtin/Form/components/Field/index.d.ts +19 -0
  136. package/dist/types/components/builtin/Form/components/Field/index.d.ts.map +1 -0
  137. package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts +11 -0
  138. package/dist/types/components/builtin/Form/components/Field/services/cssField.d.ts.map +1 -0
  139. package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts +9 -0
  140. package/dist/types/components/builtin/Form/components/Placeholder/index.d.ts.map +1 -0
  141. package/dist/types/components/builtin/Form/components/Spinner/index.d.ts +3 -0
  142. package/dist/types/components/builtin/Form/components/Spinner/index.d.ts.map +1 -0
  143. package/dist/types/components/builtin/Form/context/FormContext.d.ts +33 -0
  144. package/dist/types/components/builtin/Form/context/FormContext.d.ts.map +1 -0
  145. package/dist/types/components/builtin/Form/index.d.ts +2 -0
  146. package/dist/types/components/builtin/Form/index.d.ts.map +1 -0
  147. package/dist/types/components/builtin/Image/Image.d.ts.map +1 -1
  148. package/dist/types/components/builtin/Navigation/Navigation.d.ts +6 -5
  149. package/dist/types/components/builtin/Navigation/Navigation.d.ts.map +1 -1
  150. package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts +4 -3
  151. package/dist/types/components/builtin/Navigation/components/MobileMenu/index.d.ts.map +1 -1
  152. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts +5 -4
  153. package/dist/types/components/builtin/SocialLinks/SocialLinks.d.ts.map +1 -1
  154. package/dist/types/components/builtin/Text/Text.d.ts +2 -2
  155. package/dist/types/components/builtin/Text/Text.d.ts.map +1 -1
  156. package/dist/types/components/builtin/Video/Video.d.ts +15 -0
  157. package/dist/types/components/builtin/Video/Video.d.ts.map +1 -0
  158. package/dist/types/components/builtin/Video/index.d.ts +2 -0
  159. package/dist/types/components/builtin/Video/index.d.ts.map +1 -0
  160. package/dist/types/components/builtin/index.d.ts +1 -0
  161. package/dist/types/components/builtin/index.d.ts.map +1 -1
  162. package/dist/types/components/hooks/index.d.ts +1 -0
  163. package/dist/types/components/hooks/index.d.ts.map +1 -1
  164. package/dist/types/components/hooks/useTable.d.ts +66 -0
  165. package/dist/types/components/hooks/useTable.d.ts.map +1 -0
  166. package/dist/types/components/hooks/useTableFormFieldRefs.d.ts +8 -0
  167. package/dist/types/components/hooks/useTableFormFieldRefs.d.ts.map +1 -0
  168. package/dist/types/components/index.d.ts +2 -0
  169. package/dist/types/components/index.d.ts.map +1 -1
  170. package/dist/types/components/page/BodySnippet.d.ts +7 -0
  171. package/dist/types/components/page/BodySnippet.d.ts.map +1 -0
  172. package/dist/types/components/page/Page.d.ts +43 -0
  173. package/dist/types/components/page/Page.d.ts.map +1 -0
  174. package/dist/types/components/page/index.d.ts +2 -0
  175. package/dist/types/components/page/index.d.ts.map +1 -0
  176. package/dist/types/components/shared/BackgroundsContainer/components/Backgrounds/index.d.ts.map +1 -1
  177. package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts +7 -0
  178. package/dist/types/components/shared/FallbackComponent/FallbackComponent.d.ts.map +1 -0
  179. package/dist/types/components/shared/FallbackComponent/index.d.ts +2 -0
  180. package/dist/types/components/shared/FallbackComponent/index.d.ts.map +1 -0
  181. package/dist/types/components/utils/placeholders.d.ts +7 -0
  182. package/dist/types/components/utils/placeholders.d.ts.map +1 -1
  183. package/dist/types/components/utils/queries.d.ts +1 -0
  184. package/dist/types/components/utils/queries.d.ts.map +1 -1
  185. package/dist/types/components/utils/responsive-style.d.ts +9 -0
  186. package/dist/types/components/utils/responsive-style.d.ts.map +1 -0
  187. package/dist/types/components/utils/types.d.ts +1 -2
  188. package/dist/types/components/utils/types.d.ts.map +1 -1
  189. package/dist/types/controls/select.d.ts +19 -0
  190. package/dist/types/controls/select.d.ts.map +1 -0
  191. package/dist/types/controls.d.ts +4 -0
  192. package/dist/types/controls.d.ts.map +1 -0
  193. package/dist/types/index.d.ts +2 -1
  194. package/dist/types/index.d.ts.map +1 -1
  195. package/dist/types/next.d.ts +8 -4
  196. package/dist/types/next.d.ts.map +1 -1
  197. package/dist/types/prop-controllers/descriptors.d.ts +58 -26
  198. package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
  199. package/dist/types/prop-controllers/index.d.ts +3 -3
  200. package/dist/types/prop-controllers/index.d.ts.map +1 -1
  201. package/dist/types/prop-controllers/instances/slot.d.ts +2 -0
  202. package/dist/types/prop-controllers/instances/slot.d.ts.map +1 -0
  203. package/dist/types/prop-controllers/instances.d.ts +36 -4
  204. package/dist/types/prop-controllers/instances.d.ts.map +1 -1
  205. package/dist/types/react.d.ts +1 -1
  206. package/dist/types/react.d.ts.map +1 -1
  207. package/dist/types/runtimes/index.d.ts +43 -0
  208. package/dist/types/runtimes/index.d.ts.map +1 -0
  209. package/dist/types/runtimes/react/controls.d.ts +10 -0
  210. package/dist/types/runtimes/react/controls.d.ts.map +1 -0
  211. package/dist/types/runtimes/react/index.d.ts +45 -0
  212. package/dist/types/runtimes/react/index.d.ts.map +1 -0
  213. package/dist/types/runtimes/react/react.d.ts +43 -0
  214. package/dist/types/runtimes/react/react.d.ts.map +1 -0
  215. package/dist/types/runtimes/react.d.ts +16 -9
  216. package/dist/types/runtimes/react.d.ts.map +1 -1
  217. package/dist/types/state/actions.d.ts +55 -1
  218. package/dist/types/state/actions.d.ts.map +1 -1
  219. package/dist/types/state/modules/box-models.d.ts.map +1 -1
  220. package/dist/types/state/modules/read-only-documents.d.ts +8 -4
  221. package/dist/types/state/modules/read-only-documents.d.ts.map +1 -1
  222. package/dist/types/state/modules/read-write-documents.d.ts +1 -1
  223. package/dist/types/state/modules/read-write-documents.d.ts.map +1 -1
  224. package/dist/types/state/react-builder-preview.d.ts.map +1 -1
  225. package/dist/types/state/react-page.d.ts +4 -3
  226. package/dist/types/state/react-page.d.ts.map +1 -1
  227. package/package.json +22 -7
@@ -30,27 +30,34 @@ var __objRest = (source, exclude) => {
30
30
  }
31
31
  return target;
32
32
  };
33
+ var __publicField = (obj, key, value) => {
34
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
35
+ return value;
36
+ };
33
37
  var React = require("react");
34
38
  var withSelector = require("use-sync-external-store/shim/with-selector");
35
39
  var client = require("@apollo/client");
36
- var redux = require("redux");
37
- var thunk = require("redux-thunk");
40
+ var reactPage = require("./react-page.cjs.js");
38
41
  var actions = require("./actions.cjs.js");
39
- var descriptors = require("./descriptors.cjs.js");
40
42
  var styled = require("styled-components");
41
43
  var framerMotion = require("framer-motion");
44
+ var ssr = require("@apollo/client/react/ssr");
45
+ var slate = require("slate");
46
+ var uuid = require("uuid/v4");
42
47
  var jsxRuntime = require("react/jsx-runtime");
48
+ require("html-react-parser");
49
+ require("next/head");
43
50
  var boxModels = require("./box-models.cjs.js");
44
51
  var NextImage = require("next/image");
45
52
  var ReactPlayer = require("react-player");
53
+ var descriptors = require("./descriptors.cjs.js");
46
54
  var ColorHelper = require("color");
47
55
  var scrollIntoView = require("scroll-into-view-if-needed");
48
56
  var NextLink = require("next/link");
49
57
  var reactUseGesture = require("react-use-gesture");
50
58
  var popcorn = require("@popmotion/popcorn");
51
- var uuid = require("uuid/v4");
59
+ var formik = require("formik");
52
60
  var polished = require("polished");
53
- var slate = require("slate");
54
61
  var Hotkeys = require("slate-hotkeys");
55
62
  var ipsum = require("corporate-ipsum");
56
63
  var slateReact = require("slate-react");
@@ -61,7 +68,7 @@ function _interopDefaultLegacy(e) {
61
68
  function _interopNamespace(e) {
62
69
  if (e && e.__esModule)
63
70
  return e;
64
- var n = { __proto__: null, [Symbol.toStringTag]: "Module" };
71
+ var n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
65
72
  if (e) {
66
73
  Object.keys(e).forEach(function(k) {
67
74
  if (k !== "default") {
@@ -79,224 +86,16 @@ function _interopNamespace(e) {
79
86
  return Object.freeze(n);
80
87
  }
81
88
  var React__namespace = /* @__PURE__ */ _interopNamespace(React);
82
- var thunk__default = /* @__PURE__ */ _interopDefaultLegacy(thunk);
83
89
  var styled__default = /* @__PURE__ */ _interopDefaultLegacy(styled);
90
+ var uuid__default = /* @__PURE__ */ _interopDefaultLegacy(uuid);
84
91
  var NextImage__default = /* @__PURE__ */ _interopDefaultLegacy(NextImage);
85
92
  var ReactPlayer__default = /* @__PURE__ */ _interopDefaultLegacy(ReactPlayer);
86
93
  var ColorHelper__default = /* @__PURE__ */ _interopDefaultLegacy(ColorHelper);
87
94
  var scrollIntoView__default = /* @__PURE__ */ _interopDefaultLegacy(scrollIntoView);
88
95
  var NextLink__default = /* @__PURE__ */ _interopDefaultLegacy(NextLink);
89
- var uuid__default = /* @__PURE__ */ _interopDefaultLegacy(uuid);
90
96
  var Hotkeys__default = /* @__PURE__ */ _interopDefaultLegacy(Hotkeys);
91
97
  var ipsum__default = /* @__PURE__ */ _interopDefaultLegacy(ipsum);
92
98
  var Lists__default = /* @__PURE__ */ _interopDefaultLegacy(Lists);
93
- function isElementReference(element) {
94
- return !("props" in element);
95
- }
96
- function createDocument(rootElement) {
97
- return { rootElement };
98
- }
99
- function getInitialState$3({
100
- rootElements = /* @__PURE__ */ new Map()
101
- } = {}) {
102
- const initialState = /* @__PURE__ */ new Map();
103
- rootElements.forEach((rootElement, elementKey) => {
104
- initialState.set(elementKey, createDocument(rootElement));
105
- });
106
- return initialState;
107
- }
108
- function getDocuments(state) {
109
- return state;
110
- }
111
- function getDocument(state, documentKey) {
112
- var _a;
113
- return (_a = getDocuments(state).get(documentKey)) != null ? _a : null;
114
- }
115
- function getDocumentRootElement$1(state, documentKey) {
116
- var _a, _b;
117
- return (_b = (_a = getDocument(state, documentKey)) == null ? void 0 : _a.rootElement) != null ? _b : null;
118
- }
119
- function reducer$4(state = getInitialState$3(), _action) {
120
- return state;
121
- }
122
- function getInitialState$2({
123
- reactComponents = /* @__PURE__ */ new Map()
124
- } = {}) {
125
- return reactComponents;
126
- }
127
- function getReactComponents(state) {
128
- return state;
129
- }
130
- function getReactComponent$1(state, type) {
131
- var _a;
132
- return (_a = getReactComponents(state).get(type)) != null ? _a : null;
133
- }
134
- function reducer$3(state = getInitialState$2(), action) {
135
- switch (action.type) {
136
- case actions.ActionTypes.REGISTER_REACT_COMPONENT:
137
- return new Map(state).set(action.payload.type, action.payload.component);
138
- case actions.ActionTypes.UNREGISTER_REACT_COMPONENT: {
139
- const nextState = new Map(state);
140
- const deleted = nextState.delete(action.payload.type);
141
- return deleted ? nextState : state;
142
- }
143
- default:
144
- return state;
145
- }
146
- }
147
- function getInitialState$1({
148
- componentsMeta = /* @__PURE__ */ new Map()
149
- } = {}) {
150
- return componentsMeta;
151
- }
152
- function getComponentsMeta(state) {
153
- return state;
154
- }
155
- function reducer$2(state = getInitialState$1(), action) {
156
- switch (action.type) {
157
- case actions.ActionTypes.REGISTER_COMPONENT:
158
- return new Map(state).set(action.payload.type, action.payload.meta);
159
- case actions.ActionTypes.UNREGISTER_COMPONENT: {
160
- const nextState = new Map(state);
161
- const deleted = nextState.delete(action.payload.type);
162
- return deleted ? nextState : state;
163
- }
164
- default:
165
- return state;
166
- }
167
- }
168
- function getInitialState({
169
- propControllerDescriptors = /* @__PURE__ */ new Map()
170
- } = {}) {
171
- return propControllerDescriptors;
172
- }
173
- function getPropControllerDescriptors$1(state) {
174
- return state;
175
- }
176
- function getComponentPropControllerDescriptors$1(state, componentType) {
177
- var _a;
178
- return (_a = getPropControllerDescriptors$1(state).get(componentType)) != null ? _a : null;
179
- }
180
- function reducer$1(state = getInitialState(), action) {
181
- switch (action.type) {
182
- case actions.ActionTypes.REGISTER_COMPONENT:
183
- return new Map(state).set(action.payload.type, action.payload.propControllerDescriptors);
184
- case actions.ActionTypes.UNREGISTER_COMPONENT: {
185
- const nextState = new Map(state);
186
- const deleted = nextState.delete(action.payload.type);
187
- return deleted ? nextState : state;
188
- }
189
- default:
190
- return state;
191
- }
192
- }
193
- function getElementChildren(descriptor, prop) {
194
- if (prop == null)
195
- return [];
196
- switch (descriptor.type) {
197
- case descriptors.Types.Grid:
198
- return prop.elements;
199
- default:
200
- return [];
201
- }
202
- }
203
- function getElementId$1(descriptor, prop) {
204
- if (prop == null)
205
- return null;
206
- switch (descriptor.type) {
207
- case descriptors.Types.ElementID:
208
- return prop;
209
- default:
210
- return null;
211
- }
212
- }
213
- const reducer = redux.combineReducers({
214
- documents: reducer$4,
215
- reactComponents: reducer$3,
216
- componentsMeta: reducer$2,
217
- propControllers: reducer$1,
218
- isInBuilder: (_state = false, _action) => false
219
- });
220
- function getDocumentsStateSlice(state) {
221
- return state.documents;
222
- }
223
- function getDocumentRootElement(state, documentKey) {
224
- return getDocumentRootElement$1(getDocumentsStateSlice(state), documentKey);
225
- }
226
- function getReactComponentsStateSlice(state) {
227
- return state.reactComponents;
228
- }
229
- function getReactComponent(state, type) {
230
- return getReactComponent$1(getReactComponentsStateSlice(state), type);
231
- }
232
- function getPropControllersStateSlice(state) {
233
- return state.propControllers;
234
- }
235
- function getPropControllerDescriptors(state) {
236
- return getPropControllerDescriptors$1(getPropControllersStateSlice(state));
237
- }
238
- function getComponentPropControllerDescriptors(state, componentType) {
239
- return getComponentPropControllerDescriptors$1(getPropControllersStateSlice(state), componentType);
240
- }
241
- function normalizeElement(element, descriptors2) {
242
- const elements = /* @__PURE__ */ new Map();
243
- const remaining = [element];
244
- let current;
245
- while (current = remaining.pop()) {
246
- elements.set(current.key, current);
247
- if (isElementReference(current))
248
- continue;
249
- const elementDescriptors = descriptors2.get(element.type);
250
- if (elementDescriptors == null)
251
- continue;
252
- const parent = current;
253
- const children = Object.entries(elementDescriptors).reduce((acc, [propName, descriptor]) => {
254
- return [...acc, ...getElementChildren(descriptor, parent.props[propName])];
255
- }, []);
256
- remaining.push(...children);
257
- }
258
- return elements;
259
- }
260
- function getDocumentElements(state, documentKey) {
261
- const rootElement = getDocumentRootElement(state, documentKey);
262
- const descriptors2 = getPropControllerDescriptors(state);
263
- if (rootElement == null)
264
- return /* @__PURE__ */ new Map();
265
- return normalizeElement(rootElement, descriptors2);
266
- }
267
- function getElement(state, documentKey, elementKey) {
268
- var _a;
269
- return (_a = getDocumentElements(state, documentKey).get(elementKey)) != null ? _a : null;
270
- }
271
- function getElementPropControllerDescriptors(state, documentKey, elementKey) {
272
- const element = getElement(state, documentKey, elementKey);
273
- if (element == null || isElementReference(element))
274
- return null;
275
- return getComponentPropControllerDescriptors(state, element.type);
276
- }
277
- function getElementId(state, documentKey, elementKey) {
278
- const element = getElement(state, documentKey, elementKey);
279
- if (element == null || isElementReference(element))
280
- return null;
281
- const descriptors2 = getComponentPropControllerDescriptors(state, element.type);
282
- if (descriptors2 == null)
283
- return null;
284
- const elementId = Object.entries(descriptors2).reduce((acc, [propName, descriptor]) => {
285
- if (acc != null)
286
- return acc;
287
- return getElementId$1(descriptor, element.props[propName]);
288
- }, null);
289
- return elementId;
290
- }
291
- function getIsInBuilder(state) {
292
- return state.isInBuilder;
293
- }
294
- function configureStore({
295
- rootElements,
296
- preloadedState
297
- } = {}) {
298
- return redux.createStore(reducer, __spreadProps(__spreadValues({}, preloadedState), { documents: getInitialState$3({ rootElements }) }), redux.applyMiddleware(thunk__default["default"]));
299
- }
300
99
  const PlaceholderBase$1 = styled__default["default"].div`
301
100
  width: 100%;
302
101
  background: rgba(161, 168, 194, 0.18);
@@ -306,7 +105,7 @@ const PlaceholderBase$1 = styled__default["default"].div`
306
105
  hide
307
106
  }) => hide === true ? "hidden" : "initial"};
308
107
  `;
309
- var Placeholder$1 = React.forwardRef(function Placeholder2(_a, ref) {
108
+ var Placeholder$2 = React.forwardRef(function Placeholder2(_a, ref) {
310
109
  var _b = _a, {
311
110
  hide = false
312
111
  } = _b, restOfProps = __objRest(_b, [
@@ -420,21 +219,168 @@ const TYPOGRAPHIES_BY_ID = client.gql`
420
219
 
421
220
  ${TYPOGRAPHY_FRAGMENT}
422
221
  `;
222
+ const TABLE_BY_ID = client.gql`
223
+ query TableById($id: ID!) {
224
+ table(id: $id) {
225
+ id
226
+ name
227
+ columns {
228
+ id
229
+ name
230
+ ... on MultipleSelectTableColumn {
231
+ options {
232
+ id
233
+ name
234
+ }
235
+ }
236
+ ... on SingleSelectTableColumn {
237
+ options {
238
+ id
239
+ name
240
+ }
241
+ }
242
+ }
243
+ }
244
+ }
245
+ `;
423
246
  function isNonNullable(value) {
424
247
  return value != null;
425
248
  }
426
- const Context$1 = React.createContext(void 0);
249
+ const typePolicies = {
250
+ Query: {
251
+ fields: {
252
+ swatches(existingData, {
253
+ args,
254
+ toReference
255
+ }) {
256
+ return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
257
+ __typename: "Swatch",
258
+ id
259
+ }, true));
260
+ },
261
+ file(existingData, {
262
+ args,
263
+ toReference
264
+ }) {
265
+ return existingData != null ? existingData : toReference({
266
+ __typename: "File",
267
+ id: args == null ? void 0 : args.id
268
+ }, true);
269
+ },
270
+ files(existingData, {
271
+ args,
272
+ toReference
273
+ }) {
274
+ return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
275
+ __typename: "File",
276
+ id
277
+ }, true));
278
+ },
279
+ typographies(existingData, {
280
+ args,
281
+ toReference
282
+ }) {
283
+ return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
284
+ __typename: "Typography",
285
+ id
286
+ }, true));
287
+ },
288
+ pagePathnamesById(existingData, {
289
+ args,
290
+ toReference
291
+ }) {
292
+ return existingData != null ? existingData : args == null ? void 0 : args.ids.map((id) => toReference({
293
+ __typename: "PagePathnameSlice",
294
+ id
295
+ }, true));
296
+ },
297
+ globalElement(existingData, {
298
+ args,
299
+ toReference
300
+ }) {
301
+ return existingData != null ? existingData : toReference({
302
+ __typename: "GlobalElement",
303
+ id: args == null ? void 0 : args.id
304
+ }, true);
305
+ },
306
+ table(existingData, {
307
+ args,
308
+ toReference
309
+ }) {
310
+ return existingData != null ? existingData : toReference({
311
+ __typename: "Table",
312
+ id: args == null ? void 0 : args.id
313
+ }, true);
314
+ }
315
+ }
316
+ }
317
+ };
318
+ const PrefetchContext = React.createContext(false);
319
+ function useIsPrefetching() {
320
+ return React.useContext(PrefetchContext);
321
+ }
322
+ function createApolloClient({
323
+ uri,
324
+ cacheData
325
+ }) {
326
+ const cache = new client.InMemoryCache({
327
+ typePolicies
328
+ });
329
+ if (cacheData)
330
+ cache.restore(cacheData);
331
+ return new client.ApolloClient({
332
+ uri,
333
+ cache
334
+ });
335
+ }
336
+ class MakeswiftClient {
337
+ constructor({
338
+ uri,
339
+ cacheData
340
+ }) {
341
+ __publicField(this, "apolloClient");
342
+ this.apolloClient = createApolloClient({
343
+ uri,
344
+ cacheData
345
+ });
346
+ }
347
+ async prefetch(element) {
348
+ const id = uuid__default["default"]();
349
+ await ssr.getDataFromTree(/* @__PURE__ */ jsxRuntime.jsx(PrefetchContext.Provider, {
350
+ value: true,
351
+ children: /* @__PURE__ */ jsxRuntime.jsx(RuntimeProvider, {
352
+ client: this,
353
+ rootElements: /* @__PURE__ */ new Map([[id, element]]),
354
+ children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReference, {
355
+ documentReference: reactPage.createDocumentReference(id)
356
+ })
357
+ })
358
+ }));
359
+ slate.KeyUtils.resetGenerator();
360
+ return this.apolloClient.cache.extract();
361
+ }
362
+ updateCacheData(cacheData) {
363
+ this.apolloClient.cache.restore(cacheData);
364
+ }
365
+ }
366
+ const Context$2 = React.createContext(void 0);
427
367
  function useQuery(query, options) {
428
- const client$1 = React.useContext(Context$1);
368
+ const client$1 = React.useContext(Context$2);
429
369
  return client.useQuery(query, __spreadValues({
430
- client: client$1
370
+ client: client$1 == null ? void 0 : client$1.apolloClient
371
+ }, options));
372
+ }
373
+ function useMutation(mutation, options) {
374
+ const client$1 = React.useContext(Context$2);
375
+ return client.useMutation(mutation, __spreadValues({
376
+ client: client$1 == null ? void 0 : client$1.apolloClient
431
377
  }, options));
432
378
  }
433
- function ApolloProvider({
379
+ function MakeswiftProvider({
434
380
  client: client2,
435
381
  children
436
382
  }) {
437
- return /* @__PURE__ */ jsxRuntime.jsx(Context$1.Provider, {
383
+ return /* @__PURE__ */ jsxRuntime.jsx(Context$2.Provider, {
438
384
  value: client2,
439
385
  children
440
386
  });
@@ -647,8 +593,8 @@ function shallowMerge(a, b) {
647
593
  }
648
594
  const DEVICES = [
649
595
  { id: "desktop", minWidth: 769 },
650
- { id: "tablet", minWidth: 476, maxWidth: 768 },
651
- { id: "mobile", maxWidth: 475 }
596
+ { id: "tablet", minWidth: 576, maxWidth: 768 },
597
+ { id: "mobile", maxWidth: 575 }
652
598
  ];
653
599
  const getDevice = (deviceId) => {
654
600
  const device = DEVICES.find(({ id }) => id === deviceId);
@@ -722,6 +668,12 @@ function usePage(pageId) {
722
668
  const { pagePathnamesById: [page] = [] } = data;
723
669
  return page;
724
670
  }
671
+ function useTable(tableId) {
672
+ return useQuery(TABLE_BY_ID, {
673
+ skip: tableId == null,
674
+ variables: { id: tableId }
675
+ });
676
+ }
725
677
  const defaultExitedProps = {
726
678
  opacity: 0,
727
679
  x: 0,
@@ -1192,8 +1144,8 @@ function getScrollParent(element) {
1192
1144
  return element;
1193
1145
  return getScrollParent(parentElement);
1194
1146
  }
1195
- function Parallax(_g) {
1196
- var _h = _g, {
1147
+ function Parallax(_g2) {
1148
+ var _h = _g2, {
1197
1149
  strength,
1198
1150
  children
1199
1151
  } = _h, rest = __objRest(_h, [
@@ -1279,7 +1231,7 @@ function Parallax(_g) {
1279
1231
  children: children(getProps)
1280
1232
  }));
1281
1233
  }
1282
- const Container$8 = styled__default["default"].div`
1234
+ const Container$d = styled__default["default"].div`
1283
1235
  position: absolute;
1284
1236
  top: 0;
1285
1237
  left: 0;
@@ -1333,7 +1285,7 @@ function BackgroundVideo({
1333
1285
  }, [aspectRatio, zoom]);
1334
1286
  if (!ReactPlayer__default["default"].canPlay(url))
1335
1287
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
1336
- return /* @__PURE__ */ jsxRuntime.jsxs(Container$8, {
1288
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$d, {
1337
1289
  ref: container,
1338
1290
  children: [container.current && /* @__PURE__ */ jsxRuntime.jsx(ReactPlayer__default["default"], {
1339
1291
  url,
@@ -1412,10 +1364,10 @@ const AbsoluteFill = styled__default["default"].div`
1412
1364
  right: 0;
1413
1365
  bottom: 0;
1414
1366
  `;
1415
- const Container$7 = styled__default["default"](AbsoluteFill)`
1367
+ const Container$c = styled__default["default"](AbsoluteFill)`
1416
1368
  border-radius: inherit;
1417
1369
  `;
1418
- const BackgroundsContainer$1 = styled__default["default"](Container$7)`
1370
+ const BackgroundsContainer$1 = styled__default["default"](Container$c)`
1419
1371
  overflow: hidden;
1420
1372
  ${(p) => cssMediaRules([p.visibility], ([visibility]) => styled.css`
1421
1373
  display: ${visibility === true ? "block" : "none"};
@@ -1424,6 +1376,9 @@ const BackgroundsContainer$1 = styled__default["default"](Container$7)`
1424
1376
  function Backgrounds({
1425
1377
  backgrounds
1426
1378
  }) {
1379
+ const isPrefetching = useIsPrefetching();
1380
+ if (isPrefetching)
1381
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
1427
1382
  if (backgrounds == null)
1428
1383
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
1429
1384
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
@@ -1439,7 +1394,7 @@ function Backgrounds({
1439
1394
  visibility,
1440
1395
  children: [...value].reverse().map((bg) => {
1441
1396
  if (bg.type === "color") {
1442
- return /* @__PURE__ */ jsxRuntime.jsx(Container$7, {
1397
+ return /* @__PURE__ */ jsxRuntime.jsx(Container$c, {
1443
1398
  style: {
1444
1399
  backgroundColor: getColor(bg.payload)
1445
1400
  }
@@ -1475,7 +1430,7 @@ function Backgrounds({
1475
1430
  }
1476
1431
  return /* @__PURE__ */ jsxRuntime.jsx(Parallax, {
1477
1432
  strength: parallax,
1478
- children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$7, __spreadValues({}, getParallaxProps({
1433
+ children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$c, __spreadValues({}, getParallaxProps({
1479
1434
  style: {
1480
1435
  backgroundImage: publicUrl != null ? `url('${publicUrl}')` : void 0,
1481
1436
  backgroundPosition,
@@ -1493,7 +1448,7 @@ function Backgrounds({
1493
1448
  isRadial
1494
1449
  } = bg.payload;
1495
1450
  const gradient = `${getStopsStyle(stops)}`;
1496
- return /* @__PURE__ */ jsxRuntime.jsx(Container$7, {
1451
+ return /* @__PURE__ */ jsxRuntime.jsx(Container$c, {
1497
1452
  style: {
1498
1453
  background: isRadial ? `radial-gradient(${gradient})` : `linear-gradient(${angle}rad, ${gradient})`
1499
1454
  }
@@ -1510,7 +1465,7 @@ function Backgrounds({
1510
1465
  } = bg.payload;
1511
1466
  return /* @__PURE__ */ jsxRuntime.jsx(Parallax, {
1512
1467
  strength: parallax,
1513
- children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$7, __spreadProps(__spreadValues({}, getParallaxProps({})), {
1468
+ children: (getParallaxProps) => /* @__PURE__ */ jsxRuntime.jsx(Container$c, __spreadProps(__spreadValues({}, getParallaxProps({})), {
1514
1469
  children: /* @__PURE__ */ jsxRuntime.jsx(BackgroundVideo, {
1515
1470
  url,
1516
1471
  zoom,
@@ -1578,7 +1533,7 @@ const Grid$1 = styled__default["default"](framerMotion.motion.div)`
1578
1533
  alignContent
1579
1534
  }))}
1580
1535
  `;
1581
- const GridItem$1 = styled__default["default"](framerMotion.motion.div)`
1536
+ const GridItem$2 = styled__default["default"](framerMotion.motion.div)`
1582
1537
  display: flex;
1583
1538
 
1584
1539
  /* IE11 doesn't recognize space-between and treats it as stretch, so we fall back to flex-start */
@@ -1689,7 +1644,7 @@ const Box = React.forwardRef(function Box2({
1689
1644
  animate: animate == null ? void 0 : animate.parent,
1690
1645
  initial: initial == null ? void 0 : initial.parent,
1691
1646
  transition: transition == null ? void 0 : transition.parent,
1692
- children: children && children.elements.length > 0 ? children.elements.map((child, index) => /* @__PURE__ */ jsxRuntime.jsx(GridItem$1, {
1647
+ children: children && children.elements.length > 0 ? children.elements.map((child, index) => /* @__PURE__ */ jsxRuntime.jsx(GridItem$2, {
1693
1648
  grid: children.columns,
1694
1649
  index,
1695
1650
  columnGap,
@@ -1700,13 +1655,20 @@ const Box = React.forwardRef(function Box2({
1700
1655
  children: /* @__PURE__ */ jsxRuntime.jsx(Element$1, {
1701
1656
  element: child
1702
1657
  })
1703
- }, child.key)) : /* @__PURE__ */ jsxRuntime.jsx(Placeholder$1, {
1658
+ }, child.key)) : /* @__PURE__ */ jsxRuntime.jsx(Placeholder$2, {
1704
1659
  hide: hidePlaceholder
1705
1660
  })
1706
1661
  })
1707
1662
  }, key == null ? void 0 : key.container);
1708
1663
  });
1709
- function registerComponent$a(runtime) {
1664
+ function registerComponent$c(runtime) {
1665
+ function isHiddenBasedOnAnimationType(props, deviceId, property) {
1666
+ var _a, _b;
1667
+ const animateIn = props[property];
1668
+ return ((_b = (_a = findDeviceOverride(animateIn, deviceId)) == null ? void 0 : _a.value) != null ? _b : "none") === "none";
1669
+ }
1670
+ const isHiddenBasedOnBoxAnimation = (props, deviceId) => isHiddenBasedOnAnimationType(props, deviceId, "boxAnimateType");
1671
+ const isHiddenBasedOnItemAnimation = (props, deviceId) => isHiddenBasedOnAnimationType(props, deviceId, "itemAnimateType");
1710
1672
  return runtime.registerComponent(Box, {
1711
1673
  type: "./components/Box/index.js",
1712
1674
  label: "Box",
@@ -1775,8 +1737,12 @@ function registerComponent$a(runtime) {
1775
1737
  border: descriptors.Border(),
1776
1738
  borderRadius: descriptors.BorderRadius(),
1777
1739
  boxShadow: descriptors.Shadows(),
1778
- rowGap: descriptors.GapY({}),
1779
- columnGap: descriptors.GapX({}),
1740
+ rowGap: descriptors.GapY((props) => ({
1741
+ hidden: props.children == null
1742
+ })),
1743
+ columnGap: descriptors.GapX((props) => ({
1744
+ hidden: props.children == null
1745
+ })),
1780
1746
  boxAnimateType: descriptors.ResponsiveSelect({
1781
1747
  label: "Animate box in",
1782
1748
  labelOrientation: "vertical",
@@ -1810,20 +1776,22 @@ function registerComponent$a(runtime) {
1810
1776
  }],
1811
1777
  defaultValue: "none"
1812
1778
  }),
1813
- boxAnimateDuration: descriptors.ResponsiveNumber({
1779
+ boxAnimateDuration: descriptors.ResponsiveNumber((props, device) => ({
1814
1780
  label: "Box duration",
1815
1781
  defaultValue: DEFAULT_BOX_ANIMATE_DURATION,
1816
1782
  min: 0.1,
1817
1783
  step: 0.05,
1818
- suffix: "s"
1819
- }),
1820
- boxAnimateDelay: descriptors.ResponsiveNumber({
1784
+ suffix: "s",
1785
+ hidden: isHiddenBasedOnBoxAnimation(props, device)
1786
+ })),
1787
+ boxAnimateDelay: descriptors.ResponsiveNumber((props, device) => ({
1821
1788
  label: "Box delay",
1822
1789
  defaultValue: DEFAULT_BOX_ANIMATE_DELAY,
1823
1790
  min: 0,
1824
1791
  step: 0.05,
1825
- suffix: "s"
1826
- }),
1792
+ suffix: "s",
1793
+ hidden: isHiddenBasedOnBoxAnimation(props, device)
1794
+ })),
1827
1795
  itemAnimateType: descriptors.ResponsiveSelect({
1828
1796
  label: "Animate items in",
1829
1797
  labelOrientation: "vertical",
@@ -1857,30 +1825,34 @@ function registerComponent$a(runtime) {
1857
1825
  }],
1858
1826
  defaultValue: "none"
1859
1827
  }),
1860
- itemAnimateDuration: descriptors.ResponsiveNumber({
1828
+ itemAnimateDuration: descriptors.ResponsiveNumber((props, device) => ({
1861
1829
  label: "Items duration",
1862
1830
  defaultValue: DEFAULT_BOX_ANIMATE_DURATION,
1863
1831
  min: 0.1,
1864
1832
  step: 0.05,
1865
- suffix: "s"
1866
- }),
1867
- itemAnimateDelay: descriptors.ResponsiveNumber({
1833
+ suffix: "s",
1834
+ hidden: isHiddenBasedOnItemAnimation(props, device)
1835
+ })),
1836
+ itemAnimateDelay: descriptors.ResponsiveNumber((props, device) => ({
1868
1837
  label: "Items delay",
1869
1838
  defaultValue: DEFAULT_ITEM_ANIMATE_DELAY,
1870
1839
  min: 0,
1871
1840
  step: 0.05,
1872
- suffix: "s"
1873
- }),
1874
- itemStaggerDuration: descriptors.ResponsiveNumber({
1841
+ suffix: "s",
1842
+ hidden: isHiddenBasedOnItemAnimation(props, device)
1843
+ })),
1844
+ itemStaggerDuration: descriptors.ResponsiveNumber((props, device) => ({
1875
1845
  label: "Stagger",
1876
1846
  min: 0,
1877
1847
  step: 0.05,
1878
1848
  suffix: "s",
1879
- defaultValue: DEFAULT_ITEM_STAGGER_DURATION
1880
- }),
1881
- hidePlaceholder: descriptors.Checkbox({
1882
- label: "Hide placeholder"
1883
- }),
1849
+ defaultValue: DEFAULT_ITEM_STAGGER_DURATION,
1850
+ hidden: isHiddenBasedOnItemAnimation(props, device)
1851
+ })),
1852
+ hidePlaceholder: descriptors.Checkbox((props) => ({
1853
+ label: "Hide placeholder",
1854
+ hidden: props.children != null
1855
+ })),
1884
1856
  children: descriptors.Grid()
1885
1857
  }
1886
1858
  });
@@ -1971,7 +1943,7 @@ const Link = React.forwardRef(function Link2(_k, ref) {
1971
1943
  }))
1972
1944
  });
1973
1945
  });
1974
- const StyledButton = styled__default["default"](Link)`
1946
+ const StyledButton$1 = styled__default["default"](Link)`
1975
1947
  display: table;
1976
1948
  border: 0;
1977
1949
  outline: 0;
@@ -2163,7 +2135,7 @@ const StyledButton = styled__default["default"](Link)`
2163
2135
  })}
2164
2136
  ${cssTextStyle()}
2165
2137
  `;
2166
- const Button = React.forwardRef(function Button2(_m, ref) {
2138
+ const Button$1 = React.forwardRef(function Button2(_m, ref) {
2167
2139
  var _n = _m, {
2168
2140
  id,
2169
2141
  children,
@@ -2189,7 +2161,7 @@ const Button = React.forwardRef(function Button2(_m, ref) {
2189
2161
  "width",
2190
2162
  "margin"
2191
2163
  ]);
2192
- return /* @__PURE__ */ jsxRuntime.jsx(StyledButton, __spreadProps(__spreadValues({}, restOfProps), {
2164
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledButton$1, __spreadProps(__spreadValues({}, restOfProps), {
2193
2165
  ref,
2194
2166
  id,
2195
2167
  color: useColor(color),
@@ -2204,8 +2176,8 @@ const Button = React.forwardRef(function Button2(_m, ref) {
2204
2176
  children: children == null ? "Button Text" : children
2205
2177
  }));
2206
2178
  });
2207
- function registerComponent$9(runtime) {
2208
- return runtime.registerComponent(Button, {
2179
+ function registerComponent$b(runtime) {
2180
+ return runtime.registerComponent(Button$1, {
2209
2181
  type: "./components/Button/index.js",
2210
2182
  label: "Button",
2211
2183
  props: {
@@ -2300,6 +2272,10 @@ const placeholders = {
2300
2272
  image: {
2301
2273
  src: "data:image/svg+xml,%3Csvg width='360' height='240' viewBox='0 0 360 240' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0)'%3E%3Cpath d='M0 0H360V240H0V0Z' fill='%23A1A8C2' fill-opacity='0.18'/%3E%3Cpath d='M260 59C260 78.33 244.33 94 225 94C205.67 94 190 78.33 190 59C190 39.67 205.67 24 225 24C244.33 24 260 39.67 260 59Z' fill='%23A1A8C2' fill-opacity='0.25'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M319 250H417L291.485 124.485C286.799 119.799 279.201 119.799 274.515 124.485L234 165L319 250Z' fill='%23A1A8C2' fill-opacity='0.25'/%3E%3Cpath d='M311 250L-89 250L102.515 58.4853C107.201 53.799 114.799 53.799 119.485 58.4853L311 250Z' fill='%23A1A8C2' fill-opacity='0.25'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0'%3E%3Cpath d='M0 0H360V240H0V0Z' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A",
2302
2274
  dimensions: { width: 360, height: 240 }
2275
+ },
2276
+ video: {
2277
+ src: "data:image/svg+xml,%3Csvg width='712' height='400' viewBox='0 0 712 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M712 0H0V400H712V0ZM356 240C378.091 240 396 222.091 396 200C396 177.909 378.091 160 356 160C333.909 160 316 177.909 316 200C316 222.091 333.909 240 356 240Z' fill='%23A1A8C2' fill-opacity='0.18'/%3E%3Cpath d='M344 216.503V183.497C344 181.95 345.681 180.989 347.014 181.773L375.069 198.276C376.384 199.049 376.384 200.951 375.069 201.724L347.014 218.227C345.681 219.011 344 218.05 344 216.503Z' fill='%23A1A8C2' fill-opacity='0.4'/%3E%3C/svg%3E%0A",
2278
+ dimensions: { width: 712, height: 400 }
2303
2279
  }
2304
2280
  };
2305
2281
  function loadImage(src) {
@@ -2359,6 +2335,7 @@ const ImageComponent = React.forwardRef(function Image2({
2359
2335
  const dataDimensions = (fileData == null ? void 0 : fileData.publicUrl) ? fileData == null ? void 0 : fileData.dimensions : placeholder2.dimensions;
2360
2336
  const [measuredDimensions, setMeasuredDimensions] = React.useState(null);
2361
2337
  const isInBuilder = useIsInBuilder();
2338
+ const isPrefetching = useIsPrefetching();
2362
2339
  React.useEffect(() => {
2363
2340
  if (dataDimensions)
2364
2341
  return;
@@ -2378,6 +2355,8 @@ const ImageComponent = React.forwardRef(function Image2({
2378
2355
  const dimensions = dataDimensions != null ? dataDimensions : measuredDimensions;
2379
2356
  if (!dimensions)
2380
2357
  return null;
2358
+ if (isPrefetching)
2359
+ return null;
2381
2360
  return /* @__PURE__ */ jsxRuntime.jsx(ImageContainer, {
2382
2361
  as: link ? Link : "div",
2383
2362
  link,
@@ -2405,7 +2384,7 @@ const ImageComponent = React.forwardRef(function Image2({
2405
2384
  })
2406
2385
  });
2407
2386
  });
2408
- function registerComponent$8(runtime) {
2387
+ function registerComponent$a(runtime) {
2409
2388
  return runtime.registerComponent(ImageComponent, {
2410
2389
  type: "./components/Image/index.js",
2411
2390
  label: "Image",
@@ -2454,7 +2433,7 @@ const RightChevron = () => /* @__PURE__ */ jsxRuntime.jsx("svg", {
2454
2433
  strokeWidth: "2"
2455
2434
  })
2456
2435
  });
2457
- const Container$6 = styled__default["default"].div`
2436
+ const Container$b = styled__default["default"].div`
2458
2437
  position: relative;
2459
2438
  height: 100%;
2460
2439
  `;
@@ -2754,7 +2733,7 @@ const Carousel = React.forwardRef(function Carousel2({
2754
2733
  break;
2755
2734
  }
2756
2735
  },
2757
- children: [/* @__PURE__ */ jsxRuntime.jsxs(Container$6, {
2736
+ children: [/* @__PURE__ */ jsxRuntime.jsxs(Container$b, {
2758
2737
  children: [/* @__PURE__ */ jsxRuntime.jsx(ClipMask, {
2759
2738
  children: /* @__PURE__ */ jsxRuntime.jsx(Page, __spreadProps(__spreadValues({}, bindPage()), {
2760
2739
  animate: animation,
@@ -2830,7 +2809,7 @@ const Carousel = React.forwardRef(function Carousel2({
2830
2809
  })]
2831
2810
  });
2832
2811
  });
2833
- function registerComponent$7(runtime) {
2812
+ function registerComponent$9(runtime) {
2834
2813
  return runtime.registerComponent(Carousel, {
2835
2814
  type: "./components/Carousel/index.js",
2836
2815
  label: "Carousel",
@@ -2950,14 +2929,14 @@ const Block$1 = styled__default["default"].div`
2950
2929
  padding: 0.5em;
2951
2930
  font-size: 1em;
2952
2931
  `;
2953
- const Label = styled__default["default"].div`
2932
+ const Label$3 = styled__default["default"].div`
2954
2933
  margin-top: 0.25em;
2955
2934
  `;
2956
2935
  const Segment = styled__default["default"].div`
2957
2936
  flex: 1;
2958
2937
  text-align: center;
2959
2938
  `;
2960
- const Container$5 = styled__default["default"].div`
2939
+ const Container$a = styled__default["default"].div`
2961
2940
  display: flex;
2962
2941
  ${cssWidth("560px")}
2963
2942
  ${cssMargin()}
@@ -2967,7 +2946,7 @@ const Container$5 = styled__default["default"].div`
2967
2946
  return styled.css`
2968
2947
  font-size: 18px;
2969
2948
 
2970
- ${Label} {
2949
+ ${Label$3} {
2971
2950
  font-size: 14px;
2972
2951
  }
2973
2952
  `;
@@ -2975,7 +2954,7 @@ const Container$5 = styled__default["default"].div`
2975
2954
  return styled.css`
2976
2955
  font-size: 32px;
2977
2956
 
2978
- ${Label} {
2957
+ ${Label$3} {
2979
2958
  font-size: 18px;
2980
2959
  }
2981
2960
  `;
@@ -2983,7 +2962,7 @@ const Container$5 = styled__default["default"].div`
2983
2962
  return styled.css`
2984
2963
  font-size: 24px;
2985
2964
 
2986
- ${Label} {
2965
+ ${Label$3} {
2987
2966
  font-size: 16px;
2988
2967
  }
2989
2968
  `;
@@ -3120,7 +3099,7 @@ const Container$5 = styled__default["default"].div`
3120
3099
  })}
3121
3100
  }
3122
3101
 
3123
- ${Label} {
3102
+ ${Label$3} {
3124
3103
  ${(p) => cssMediaRules([p.labelColor, p.labelFont], ([labelColor = {
3125
3104
  swatch: {
3126
3105
  hue: 0,
@@ -3197,7 +3176,7 @@ const Countdown = React.forwardRef(function Countdown2({
3197
3176
  }, 1e3);
3198
3177
  return () => clearInterval(intervalId);
3199
3178
  }, [date]);
3200
- return /* @__PURE__ */ jsxRuntime.jsxs(Container$5, {
3179
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$a, {
3201
3180
  ref,
3202
3181
  id,
3203
3182
  width,
@@ -3216,7 +3195,7 @@ const Countdown = React.forwardRef(function Countdown2({
3216
3195
  children: /* @__PURE__ */ jsxRuntime.jsx("span", {
3217
3196
  children: days
3218
3197
  })
3219
- }), /* @__PURE__ */ jsxRuntime.jsx(Label, {
3198
+ }), /* @__PURE__ */ jsxRuntime.jsx(Label$3, {
3220
3199
  children: daysLabel == null ? "Days" : daysLabel
3221
3200
  })]
3222
3201
  }), /* @__PURE__ */ jsxRuntime.jsxs(Segment, {
@@ -3224,7 +3203,7 @@ const Countdown = React.forwardRef(function Countdown2({
3224
3203
  children: /* @__PURE__ */ jsxRuntime.jsx("span", {
3225
3204
  children: hours
3226
3205
  })
3227
- }), /* @__PURE__ */ jsxRuntime.jsx(Label, {
3206
+ }), /* @__PURE__ */ jsxRuntime.jsx(Label$3, {
3228
3207
  children: hoursLabel == null ? "Hours" : hoursLabel
3229
3208
  })]
3230
3209
  }), /* @__PURE__ */ jsxRuntime.jsxs(Segment, {
@@ -3232,7 +3211,7 @@ const Countdown = React.forwardRef(function Countdown2({
3232
3211
  children: /* @__PURE__ */ jsxRuntime.jsx("span", {
3233
3212
  children: minutes
3234
3213
  })
3235
- }), /* @__PURE__ */ jsxRuntime.jsx(Label, {
3214
+ }), /* @__PURE__ */ jsxRuntime.jsx(Label$3, {
3236
3215
  children: minutesLabel == null ? "Minutes" : minutesLabel
3237
3216
  })]
3238
3217
  }), /* @__PURE__ */ jsxRuntime.jsxs(Segment, {
@@ -3240,13 +3219,13 @@ const Countdown = React.forwardRef(function Countdown2({
3240
3219
  children: /* @__PURE__ */ jsxRuntime.jsx("span", {
3241
3220
  children: seconds
3242
3221
  })
3243
- }), /* @__PURE__ */ jsxRuntime.jsx(Label, {
3222
+ }), /* @__PURE__ */ jsxRuntime.jsx(Label$3, {
3244
3223
  children: secondsLabel == null ? "Seconds" : secondsLabel
3245
3224
  })]
3246
3225
  })]
3247
3226
  });
3248
3227
  });
3249
- function registerComponent$6(runtime) {
3228
+ function registerComponent$8(runtime) {
3250
3229
  return runtime.registerComponent(Countdown, {
3251
3230
  type: "./components/Countdown/index.js",
3252
3231
  label: "Countdown",
@@ -3382,7 +3361,7 @@ const IE11MinHeightContainer = styled__default["default"].div`
3382
3361
  ${cssWidth()}
3383
3362
  ${cssMargin()}
3384
3363
  `;
3385
- const Container$4 = styled__default["default"].div`
3364
+ const Container$9 = styled__default["default"].div`
3386
3365
  display: flex;
3387
3366
  flex-direction: column;
3388
3367
  justify-content: center;
@@ -3441,7 +3420,7 @@ const Divider = React.forwardRef(function Divider2({
3441
3420
  id,
3442
3421
  width,
3443
3422
  margin,
3444
- children: /* @__PURE__ */ jsxRuntime.jsx(Container$4, {
3423
+ children: /* @__PURE__ */ jsxRuntime.jsx(Container$9, {
3445
3424
  children: /* @__PURE__ */ jsxRuntime.jsx(Line, {
3446
3425
  variant,
3447
3426
  thickness,
@@ -3450,7 +3429,7 @@ const Divider = React.forwardRef(function Divider2({
3450
3429
  })
3451
3430
  });
3452
3431
  });
3453
- function registerComponent$5(runtime) {
3432
+ function registerComponent$7(runtime) {
3454
3433
  return runtime.registerComponent(Divider, {
3455
3434
  type: "./components/Divider/index.js",
3456
3435
  label: "Divider",
@@ -3500,7 +3479,7 @@ function registerComponent$5(runtime) {
3500
3479
  }
3501
3480
  });
3502
3481
  }
3503
- const Container$3 = styled__default["default"].div`
3482
+ const Container$8 = styled__default["default"].div`
3504
3483
  min-height: 15px;
3505
3484
  ${cssWidth()}
3506
3485
  ${cssMargin()}
@@ -3580,7 +3559,7 @@ const Embed = React.forwardRef(function Embed2({
3580
3559
  }, [container, html]);
3581
3560
  if (shouldRender === false)
3582
3561
  return null;
3583
- return /* @__PURE__ */ jsxRuntime.jsx(Container$3, {
3562
+ return /* @__PURE__ */ jsxRuntime.jsx(Container$8, {
3584
3563
  ref: setContainer,
3585
3564
  id,
3586
3565
  margin,
@@ -3590,7 +3569,7 @@ const Embed = React.forwardRef(function Embed2({
3590
3569
  }
3591
3570
  });
3592
3571
  });
3593
- function registerComponent$4(runtime) {
3572
+ function registerComponent$6(runtime) {
3594
3573
  return runtime.registerComponent(Embed, {
3595
3574
  type: "./components/Embed/index.js",
3596
3575
  label: "Embed",
@@ -3606,9 +3585,9 @@ function registerComponent$4(runtime) {
3606
3585
  }
3607
3586
  });
3608
3587
  }
3609
- var _path$r;
3610
- function _extends$r() {
3611
- _extends$r = Object.assign || function(target) {
3588
+ var _path$t;
3589
+ function _extends$u() {
3590
+ _extends$u = Object.assign || function(target) {
3612
3591
  for (var i = 1; i < arguments.length; i++) {
3613
3592
  var source = arguments[i];
3614
3593
  for (var key in source) {
@@ -3619,82 +3598,1860 @@ function _extends$r() {
3619
3598
  }
3620
3599
  return target;
3621
3600
  };
3622
- return _extends$r.apply(this, arguments);
3601
+ return _extends$u.apply(this, arguments);
3623
3602
  }
3624
- var SvgMobileMenu28 = function SvgMobileMenu282(props) {
3625
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$r({
3626
- xmlns: "http://www.w3.org/2000/svg",
3627
- width: 28,
3628
- height: 28
3629
- }, props), _path$r || (_path$r = /* @__PURE__ */ React__namespace.createElement("path", {
3630
- d: "M27 15H1a1 1 0 0 1-1-1 1 1 0 0 1 1-1h26a1 1 0 0 1 1 1 1 1 0 0 1-1 1zm0-10H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h26a1 1 0 0 0 1-1 1 1 0 0 0-1-1zm0 16H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h26a1 1 0 0 0 1-1 1 1 0 0 0-1-1z"
3603
+ var SvgCheck12 = function SvgCheck122(props) {
3604
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$u({
3605
+ width: 12,
3606
+ height: 12,
3607
+ xmlns: "http://www.w3.org/2000/svg"
3608
+ }, props), _path$t || (_path$t = /* @__PURE__ */ React__namespace.createElement("path", {
3609
+ fillRule: "evenodd",
3610
+ clipRule: "evenodd",
3611
+ d: "M11.707 1.793a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 1.414-1.414L4 8.086l6.293-6.293a1 1 0 0 1 1.414 0Z"
3631
3612
  })));
3632
3613
  };
3633
- const GutterContainer = styled__default["default"].div`
3634
- ${(p) => cssMediaRules([p.gutter], ([gutter = {
3635
- value: 0,
3636
- unit: "px"
3637
- }]) => styled.css`
3638
- padding-left: ${p.first ? "0px" : `${gutter.value / 2}${gutter.unit}`};
3639
- padding-right: ${p.last ? "0px" : `${gutter.value / 2}${gutter.unit}`};
3614
+ const Shapes = Object.freeze({
3615
+ SQUARE: "square",
3616
+ ROUNDED: "rounded",
3617
+ PILL: "pill"
3618
+ });
3619
+ const Sizes = Object.freeze({
3620
+ SMALL: "small",
3621
+ MEDIUM: "medium",
3622
+ LARGE: "large"
3623
+ });
3624
+ const Contrasts = Object.freeze({
3625
+ LIGHT: "light",
3626
+ DARK: "dark"
3627
+ });
3628
+ const Context$1 = React.createContext({});
3629
+ function useFormContext() {
3630
+ return React.useContext(Context$1);
3631
+ }
3632
+ const { Provider } = Context$1;
3633
+ function getSizeHeight$2(size) {
3634
+ switch (size) {
3635
+ case Sizes.SMALL:
3636
+ return 30;
3637
+ case Sizes.MEDIUM:
3638
+ return 38;
3639
+ case Sizes.LARGE:
3640
+ return 48;
3641
+ default:
3642
+ throw new Error(`Invalid form size "${size}"`);
3643
+ }
3644
+ }
3645
+ function getSizeHorizontalPadding(size) {
3646
+ switch (size) {
3647
+ case Sizes.SMALL:
3648
+ return 8;
3649
+ case Sizes.MEDIUM:
3650
+ return 12;
3651
+ case Sizes.LARGE:
3652
+ return 16;
3653
+ default:
3654
+ throw new Error(`Invalid form size "${size}"`);
3655
+ }
3656
+ }
3657
+ function getSizeVerticalPadding(size) {
3658
+ switch (size) {
3659
+ case Sizes.SMALL:
3660
+ return 3;
3661
+ case Sizes.MEDIUM:
3662
+ return 7;
3663
+ case Sizes.LARGE:
3664
+ return 11;
3665
+ default:
3666
+ throw new Error(`Invalid form size "${size}"`);
3667
+ }
3668
+ }
3669
+ function getShapeBorderRadius(shape) {
3670
+ switch (shape) {
3671
+ case Shapes.SQUARE:
3672
+ return 0;
3673
+ case Shapes.ROUNDED:
3674
+ return 4;
3675
+ case Shapes.PILL:
3676
+ return 500;
3677
+ default:
3678
+ throw new Error(`Invalid form shape "${shape}"`);
3679
+ }
3680
+ }
3681
+ function getContrastBorderColor(contrast, error) {
3682
+ switch (contrast) {
3683
+ case Contrasts.LIGHT:
3684
+ return error ? "rgba(255, 0, 0, 0.7)" : "rgba(0, 0, 0, 0.25)";
3685
+ case Contrasts.DARK:
3686
+ return error ? "rgba(255, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.6)";
3687
+ default:
3688
+ throw new Error(`Invalid form contrast "${contrast}"`);
3689
+ }
3690
+ }
3691
+ function getContrastBackgroundColor(contrast) {
3692
+ switch (contrast) {
3693
+ case Contrasts.LIGHT:
3694
+ return "white";
3695
+ case Contrasts.DARK:
3696
+ return "rgba(0, 0, 0, 0.7)";
3697
+ default:
3698
+ throw new Error(`Invalid form contrast "${contrast}"`);
3699
+ }
3700
+ }
3701
+ function getContrastColor$1(contrast) {
3702
+ switch (contrast) {
3703
+ case Contrasts.LIGHT:
3704
+ return "rgba(0, 0, 0, 0.95)";
3705
+ case Contrasts.DARK:
3706
+ return "white";
3707
+ default:
3708
+ throw new Error(`Invalid form contrast "${contrast}"`);
3709
+ }
3710
+ }
3711
+ function getContrastPlaceholderColor(contrast) {
3712
+ switch (contrast) {
3713
+ case Contrasts.LIGHT:
3714
+ return "rgba(0, 0, 0, 0.3)";
3715
+ case Contrasts.DARK:
3716
+ return "rgba(255,255,255,0.3)";
3717
+ default:
3718
+ throw new Error(`Invalid form contrast "${contrast}"`);
3719
+ }
3720
+ }
3721
+ function cssField() {
3722
+ return styled.css`
3723
+ display: block;
3724
+ width: 100%;
3725
+ outline: none;
3726
+ border-width: 1px;
3727
+ border-style: solid;
3728
+ transition: border-color 200ms;
3729
+ ${(props) => cssMediaRules([props.shape, props.size, props.contrast, props.brandColor], ([
3730
+ shape = Shapes.ROUNDED,
3731
+ size = Sizes.MEDIUM,
3732
+ contrast = Contrasts.LIGHT,
3733
+ brandColor = { swatch: { hue: 0, saturation: 0, lightness: 0 }, alpha: 1 }
3734
+ ]) => styled.css`
3735
+ padding: ${getSizeVerticalPadding(size)}px ${getSizeHorizontalPadding(size)}px;
3736
+ border-radius: ${getShapeBorderRadius(shape)}px;
3737
+ border-color: ${getContrastBorderColor(contrast, props.error)};
3738
+ color: ${getContrastColor$1(contrast)};
3739
+ background-color: ${getContrastBackgroundColor(contrast)};
3740
+
3741
+ :focus,
3742
+ :focus-within {
3743
+ border-color: ${colorToString(brandColor)};
3744
+ }
3745
+
3746
+ ::placeholder {
3747
+ color: ${getContrastPlaceholderColor(contrast)};
3748
+ }
3749
+ `)}
3750
+ `;
3751
+ }
3752
+ function getSizeHeight$1(size) {
3753
+ switch (size) {
3754
+ case Sizes.SMALL:
3755
+ return 36;
3756
+ case Sizes.MEDIUM:
3757
+ return 42;
3758
+ case Sizes.LARGE:
3759
+ return 48;
3760
+ default:
3761
+ throw new Error(`Invalid form size "${size}"`);
3762
+ }
3763
+ }
3764
+ const Base$2 = styled__default["default"].input`
3765
+ ${cssField()}
3766
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
3767
+ min-height: ${getSizeHeight$1(size)}px;
3768
+ max-height: ${getSizeHeight$1(size)}px;
3640
3769
  `)}
3641
3770
  `;
3642
- const PlaceholderLink$1 = styled__default["default"].div`
3643
- width: ${(props) => props.width}px;
3644
- height: ${(props) => props.button === true ? 32 : 8}px;
3771
+ var Input$2 = React.forwardRef(function Input2(_o, ref) {
3772
+ var _p = _o, {
3773
+ error = false,
3774
+ form
3775
+ } = _p, restOfProps = __objRest(_p, [
3776
+ "error",
3777
+ "form"
3778
+ ]);
3779
+ const {
3780
+ shape,
3781
+ size,
3782
+ contrast,
3783
+ brandColor
3784
+ } = useFormContext();
3785
+ return /* @__PURE__ */ jsxRuntime.jsx(Base$2, __spreadProps(__spreadValues({}, restOfProps), {
3786
+ ref,
3787
+ error,
3788
+ shape,
3789
+ size,
3790
+ contrast,
3791
+ brandColor
3792
+ }));
3793
+ });
3794
+ const Container$7 = styled__default["default"].div`
3795
+ display: flex;
3796
+ flex-direction: column;
3797
+ ${cssWidth()};
3798
+ ${cssMargin()};
3799
+ `;
3800
+ const Label$2 = styled__default["default"].div`
3801
+ max-width: 120px;
3802
+ min-width: 60px;
3803
+ height: 8px;
3804
+ border-radius: 2px;
3645
3805
  background-color: #a1a8c2;
3646
- border-radius: ${(props) => props.button === true ? 6 : 2}px;
3647
3806
  opacity: 0.4;
3807
+ margin-bottom: 8px;
3648
3808
  `;
3649
- const links$1 = [{
3650
- width: 50
3651
- }, {
3652
- width: 70
3653
- }, {
3654
- width: 60
3655
- }, {
3656
- width: 80,
3657
- button: true
3658
- }];
3659
- function LinksPlaceholder({
3660
- gutter
3661
- }) {
3662
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
3663
- children: links$1.map((link, i) => /* @__PURE__ */ jsxRuntime.jsx(GutterContainer, {
3664
- gutter,
3665
- first: i === 0,
3666
- last: i === links$1.length - 1,
3667
- children: /* @__PURE__ */ jsxRuntime.jsx(PlaceholderLink$1, __spreadValues({}, link))
3668
- }, i))
3669
- });
3670
- }
3671
- var _path$q;
3672
- function _extends$q() {
3673
- _extends$q = Object.assign || function(target) {
3674
- for (var i = 1; i < arguments.length; i++) {
3675
- var source = arguments[i];
3676
- for (var key in source) {
3677
- if (Object.prototype.hasOwnProperty.call(source, key)) {
3678
- target[key] = source[key];
3679
- }
3680
- }
3681
- }
3682
- return target;
3683
- };
3684
- return _extends$q.apply(this, arguments);
3685
- }
3686
- var SvgCaretDown8 = function SvgCaretDown82(props) {
3687
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$q({
3688
- width: 8,
3689
- height: 8,
3809
+ const Input$1 = styled__default["default"].div`
3810
+ min-width: 80px;
3811
+ height: 32px;
3812
+ border-radius: 4px;
3813
+ border-width: 2px;
3814
+ border-style: solid;
3815
+ border-color: #a1a8c2;
3816
+ opacity: 0.4;
3817
+ `;
3818
+ const Button = styled__default["default"].div`
3819
+ min-width: 140px;
3820
+ height: 32px;
3821
+ border-radius: 4px;
3822
+ background-color: #a1a8c2;
3823
+ opacity: 0.4;
3824
+ `;
3825
+ var Placeholder$1 = React.forwardRef(function Placeholder3({
3826
+ width,
3827
+ margin
3828
+ }, ref) {
3829
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$7, {
3830
+ ref,
3831
+ width,
3832
+ margin,
3833
+ children: [/* @__PURE__ */ jsxRuntime.jsxs("div", {
3834
+ style: {
3835
+ display: "flex",
3836
+ flexDirection: "column",
3837
+ marginBottom: 16
3838
+ },
3839
+ children: [/* @__PURE__ */ jsxRuntime.jsx(Label$2, {}), /* @__PURE__ */ jsxRuntime.jsx(Input$1, {})]
3840
+ }), /* @__PURE__ */ jsxRuntime.jsxs("div", {
3841
+ style: {
3842
+ display: "flex",
3843
+ flexDirection: "column",
3844
+ marginBottom: 16
3845
+ },
3846
+ children: [/* @__PURE__ */ jsxRuntime.jsx(Label$2, {}), /* @__PURE__ */ jsxRuntime.jsx(Input$1, {})]
3847
+ }), /* @__PURE__ */ jsxRuntime.jsx("div", {
3848
+ style: {
3849
+ display: "flex",
3850
+ flexDirection: "column",
3851
+ justifyContent: "flex-end"
3852
+ },
3853
+ children: /* @__PURE__ */ jsxRuntime.jsx(Button, {})
3854
+ })]
3855
+ });
3856
+ });
3857
+ function getSizeHeight(size) {
3858
+ switch (size) {
3859
+ case Sizes.SMALL:
3860
+ return 14;
3861
+ case Sizes.MEDIUM:
3862
+ return 18;
3863
+ case Sizes.LARGE:
3864
+ return 22;
3865
+ default:
3866
+ throw new Error(`Invalid form size "${size}"`);
3867
+ }
3868
+ }
3869
+ function getContrastColor(contrast) {
3870
+ switch (contrast) {
3871
+ case Contrasts.LIGHT:
3872
+ return "rgba(0, 0, 0, 0.8)";
3873
+ case Contrasts.DARK:
3874
+ return "rgba(255, 255, 255, 0.95)";
3875
+ default:
3876
+ throw new Error(`Invalid form contrast "${contrast}"`);
3877
+ }
3878
+ }
3879
+ const Base$1 = styled__default["default"].label`
3880
+ display: block;
3881
+ margin: 0 0 0.25em 0;
3882
+ ${cssTextStyle()}
3883
+ ${(props) => cssMediaRules([props.size, props.contrast, props.textColor], ([size = Sizes.MEDIUM, contrast = Contrasts.LIGHT, textColor]) => styled.css`
3884
+ min-height: ${getSizeHeight(size)}px;
3885
+ color: ${textColor == null ? getContrastColor(contrast) : colorToString(textColor)};
3886
+ `)}
3887
+ `;
3888
+ function Label$1(props) {
3889
+ const {
3890
+ contrast,
3891
+ size,
3892
+ labelTextStyle,
3893
+ labelTextColor
3894
+ } = useFormContext();
3895
+ return /* @__PURE__ */ jsxRuntime.jsx(Base$1, __spreadProps(__spreadValues({}, props), {
3896
+ contrast,
3897
+ size,
3898
+ textStyle: labelTextStyle,
3899
+ textColor: useColor(labelTextColor)
3900
+ }));
3901
+ }
3902
+ var SingleLineTextTableField = React.forwardRef(function SingleLineTextTableField2(_q, ref) {
3903
+ var _r = _q, {
3904
+ id,
3905
+ label = "",
3906
+ name,
3907
+ error,
3908
+ hideLabel = false
3909
+ } = _r, restOfProps = __objRest(_r, [
3910
+ "id",
3911
+ "label",
3912
+ "name",
3913
+ "error",
3914
+ "hideLabel"
3915
+ ]);
3916
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
3917
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
3918
+ htmlFor: id,
3919
+ children: label
3920
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
3921
+ "aria-label": label,
3922
+ ref,
3923
+ id,
3924
+ name,
3925
+ type: "text",
3926
+ error: error != null
3927
+ }))]
3928
+ });
3929
+ });
3930
+ const Base = styled__default["default"].textarea`
3931
+ resize: vertical;
3932
+ ${cssField()}
3933
+ `;
3934
+ var TextArea = React.forwardRef(function TextArea2(_s, ref) {
3935
+ var _t = _s, {
3936
+ error = false,
3937
+ form
3938
+ } = _t, restOfProps = __objRest(_t, [
3939
+ "error",
3940
+ "form"
3941
+ ]);
3942
+ const {
3943
+ shape,
3944
+ size,
3945
+ contrast,
3946
+ brandColor
3947
+ } = useFormContext();
3948
+ return /* @__PURE__ */ jsxRuntime.jsx(Base, __spreadProps(__spreadValues({}, restOfProps), {
3949
+ ref,
3950
+ rows: 4,
3951
+ error,
3952
+ shape,
3953
+ size,
3954
+ contrast,
3955
+ brandColor
3956
+ }));
3957
+ });
3958
+ var LongTextTableField = React.forwardRef(function LongTextTableField2(_u, ref) {
3959
+ var _v = _u, {
3960
+ id,
3961
+ label = "",
3962
+ error,
3963
+ hideLabel = false
3964
+ } = _v, restOfProps = __objRest(_v, [
3965
+ "id",
3966
+ "label",
3967
+ "error",
3968
+ "hideLabel"
3969
+ ]);
3970
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
3971
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
3972
+ htmlFor: id,
3973
+ children: label
3974
+ }), /* @__PURE__ */ jsxRuntime.jsx(TextArea, __spreadProps(__spreadValues({}, restOfProps), {
3975
+ "aria-label": label,
3976
+ ref,
3977
+ id,
3978
+ error: error != null
3979
+ }))]
3980
+ });
3981
+ });
3982
+ function getCheckmarkColor$1({
3983
+ swatch: {
3984
+ hue: h,
3985
+ saturation: s,
3986
+ lightness: l
3987
+ },
3988
+ alpha: a
3989
+ }) {
3990
+ return ColorHelper__default["default"]({
3991
+ h,
3992
+ s,
3993
+ l
3994
+ }).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
3995
+ }
3996
+ const Container$6 = styled__default["default"].div`
3997
+ position: relative;
3998
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
3999
+ height: ${getSizeHeight(size)}px;
4000
+ width: ${getSizeHeight(size)}px;
4001
+ `)}
4002
+ `;
4003
+ const FakeCheckbox = styled__default["default"].div`
4004
+ position: absolute;
4005
+ width: 100%;
4006
+ height: 100%;
4007
+ border-style: solid;
4008
+ border-radius: 4px;
4009
+ pointer-events: none;
4010
+ border-width: 1px;
4011
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => styled.css`
4012
+ border-color: ${getContrastBorderColor(contrast, props.error)};
4013
+ background-color: ${getContrastBackgroundColor(contrast)};
4014
+ `)}
4015
+ `;
4016
+ const HiddenCheckbox = styled__default["default"].input`
4017
+ position: absolute;
4018
+ opacity: 0;
4019
+ width: 100%;
4020
+ height: 100%;
4021
+ cursor: pointer;
4022
+
4023
+ &:disabled {
4024
+ cursor: no-drop;
4025
+
4026
+ & ~ ${FakeCheckbox} {
4027
+ opacity: 0.5;
4028
+ }
4029
+ }
4030
+
4031
+ &:checked ~ ${FakeCheckbox} {
4032
+ ${(props) => cssMediaRules([props.brandColor], ([{
4033
+ swatch = {
4034
+ hue: 0,
4035
+ saturation: 0,
4036
+ lightness: 0
4037
+ },
4038
+ alpha = 1
4039
+ } = {}]) => styled.css`
4040
+ background-color: ${colorToString({
4041
+ swatch,
4042
+ alpha
4043
+ })};
4044
+ `)}
4045
+ border-color: transparent;
4046
+
4047
+ &::after {
4048
+ content: '';
4049
+ position: absolute;
4050
+ box-sizing: content-box;
4051
+ width: 25%;
4052
+ height: 50%;
4053
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
4054
+ border-width: ${getSizeHeight(size) * 0.1}px;
4055
+ border-left: 0;
4056
+ border-top: 0;
4057
+ `)}
4058
+ border-style: solid;
4059
+ ${(props) => cssMediaRules([props.brandColor], ([{
4060
+ swatch = {
4061
+ hue: 0,
4062
+ saturation: 0,
4063
+ lightness: 0
4064
+ },
4065
+ alpha = 1
4066
+ } = {}]) => styled.css`
4067
+ border-color: ${getCheckmarkColor$1({
4068
+ swatch,
4069
+ alpha
4070
+ })};
4071
+ `)}
4072
+ transform: rotate(45deg) translate3d(91%, -23%, 0);
4073
+ }
4074
+ }
4075
+
4076
+ &:not(:disabled) {
4077
+ &:focus ~ ${FakeCheckbox} {
4078
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4079
+ swatch: {
4080
+ hue: 0,
4081
+ saturation: 0,
4082
+ lightness: 0
4083
+ },
4084
+ alpha: 1
4085
+ }]) => styled.css`
4086
+ border-color: ${colorToString(brandColor)};
4087
+ `)}
4088
+ }
4089
+ }
4090
+
4091
+ &:not(:disabled):checked {
4092
+ &:focus ~ ${FakeCheckbox} {
4093
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => styled.css`
4094
+ border-color: ${getContrastBorderColor(contrast, props.error)};
4095
+ `)}
4096
+ }
4097
+ }
4098
+ `;
4099
+ var Checkbox = React.forwardRef(function Checkbox2(_w, ref) {
4100
+ var _x = _w, {
4101
+ error,
4102
+ className,
4103
+ style,
4104
+ form
4105
+ } = _x, restOfProps = __objRest(_x, [
4106
+ "error",
4107
+ "className",
4108
+ "style",
4109
+ "form"
4110
+ ]);
4111
+ const {
4112
+ size,
4113
+ contrast,
4114
+ brandColor
4115
+ } = useFormContext();
4116
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$6, {
4117
+ size,
4118
+ children: [/* @__PURE__ */ jsxRuntime.jsx(HiddenCheckbox, __spreadProps(__spreadValues({}, restOfProps), {
4119
+ type: "checkbox",
4120
+ ref,
4121
+ error,
4122
+ size,
4123
+ contrast,
4124
+ brandColor
4125
+ })), /* @__PURE__ */ jsxRuntime.jsx(FakeCheckbox, {
4126
+ className,
4127
+ error,
4128
+ contrast,
4129
+ style
4130
+ })]
4131
+ });
4132
+ });
4133
+ const StyledLabel$2 = styled__default["default"](Label$1)`
4134
+ display: flex;
4135
+ align-items: center;
4136
+ margin: 0;
4137
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
4138
+ min-height: ${getSizeHeight$1(size)}px;
4139
+ max-height: ${getSizeHeight$1(size)}px;
4140
+ `)}
4141
+ `;
4142
+ const CheckboxContainer$1 = styled__default["default"].span`
4143
+ margin-right: 8px;
4144
+ `;
4145
+ var CheckboxTableField = React.forwardRef(function CheckboxTableField2(_y, ref) {
4146
+ var _z = _y, {
4147
+ form,
4148
+ id,
4149
+ name,
4150
+ label = "",
4151
+ value = false,
4152
+ error
4153
+ } = _z, restOfProps = __objRest(_z, [
4154
+ "form",
4155
+ "id",
4156
+ "name",
4157
+ "label",
4158
+ "value",
4159
+ "error"
4160
+ ]);
4161
+ const {
4162
+ size
4163
+ } = useFormContext();
4164
+ function handleChange(event) {
4165
+ form.setFieldValue(name, event.currentTarget.checked);
4166
+ }
4167
+ return /* @__PURE__ */ jsxRuntime.jsxs(StyledLabel$2, {
4168
+ htmlFor: id,
4169
+ size,
4170
+ children: [/* @__PURE__ */ jsxRuntime.jsx(CheckboxContainer$1, {
4171
+ children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, __spreadProps(__spreadValues({}, restOfProps), {
4172
+ "aria-label": label,
4173
+ checked: value,
4174
+ onChange: handleChange,
4175
+ ref,
4176
+ id,
4177
+ error: error != null
4178
+ }))
4179
+ }), label]
4180
+ });
4181
+ });
4182
+ const MainLabel = styled__default["default"](Label$1)`
4183
+ margin: 0 0 4px 0;
4184
+ `;
4185
+ const StyledLabel$1 = styled__default["default"](Label$1)`
4186
+ display: flex;
4187
+ align-items: center;
4188
+ margin: 8px 0;
4189
+
4190
+ &:last-of-type {
4191
+ margin-bottom: 0;
4192
+ }
4193
+ `;
4194
+ const CheckboxContainer = styled__default["default"].span`
4195
+ margin-right: 8px;
4196
+ `;
4197
+ var MultipleSelectTableField = React.forwardRef(function MultipleSelectTableField2(_A, ref) {
4198
+ var _B = _A, {
4199
+ tableColumn,
4200
+ label = "",
4201
+ required,
4202
+ value = [],
4203
+ onChange,
4204
+ hideLabel = false
4205
+ } = _B, restOfProps = __objRest(_B, [
4206
+ "tableColumn",
4207
+ "label",
4208
+ "required",
4209
+ "value",
4210
+ "onChange",
4211
+ "hideLabel"
4212
+ ]);
4213
+ const handle = React.useRef({
4214
+ validity: {
4215
+ valueMissing: required === true && value.length === 0,
4216
+ typeMismatch: false
4217
+ }
4218
+ });
4219
+ React.useImperativeHandle(ref, () => handle.current, []);
4220
+ function handleChange(event) {
4221
+ handle.current.validity.valueMissing = required === true && !event.currentTarget.checked && value.filter((v) => v !== event.currentTarget.value).length === 0;
4222
+ onChange(event);
4223
+ }
4224
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
4225
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(MainLabel, {
4226
+ children: label
4227
+ }), tableColumn.options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(StyledLabel$1, {
4228
+ htmlFor: option.id,
4229
+ children: [/* @__PURE__ */ jsxRuntime.jsx(CheckboxContainer, {
4230
+ children: /* @__PURE__ */ jsxRuntime.jsx(Checkbox, __spreadProps(__spreadValues({}, restOfProps), {
4231
+ "aria-label": label,
4232
+ onChange: handleChange,
4233
+ checked: value.includes(option.name),
4234
+ id: option.id,
4235
+ value: option.name
4236
+ }))
4237
+ }), option.name]
4238
+ }, option.id))]
4239
+ });
4240
+ });
4241
+ function getCheckmarkColor({
4242
+ swatch: {
4243
+ hue: h,
4244
+ saturation: s,
4245
+ lightness: l
4246
+ } = {
4247
+ hue: 0,
4248
+ saturation: 0,
4249
+ lightness: 0
4250
+ },
4251
+ alpha: a
4252
+ }) {
4253
+ return ColorHelper__default["default"]({
4254
+ h,
4255
+ s,
4256
+ l
4257
+ }).alpha(a).isLight() ? "rgba(0, 0, 0, 0.7)" : "rgba(255, 255, 255, 0.95)";
4258
+ }
4259
+ const Container$5 = styled__default["default"].div`
4260
+ position: relative;
4261
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
4262
+ height: ${getSizeHeight(size)}px;
4263
+ width: ${getSizeHeight(size)}px;
4264
+ `)}
4265
+ `;
4266
+ const FakeRadioButton = styled__default["default"].div`
4267
+ position: absolute;
4268
+ width: 100%;
4269
+ height: 100%;
4270
+ border-style: solid;
4271
+ border-radius: 50%;
4272
+ pointer-events: none;
4273
+ border-width: 1px;
4274
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => styled.css`
4275
+ border-color: ${getContrastBorderColor(contrast, props.error)};
4276
+ background-color: ${getContrastBackgroundColor(contrast)};
4277
+ `)}
4278
+ `;
4279
+ const HiddenRadioButton = styled__default["default"].input.attrs({
4280
+ type: "radio"
4281
+ })`
4282
+ position: absolute;
4283
+ opacity: 0;
4284
+ width: 100%;
4285
+ height: 100%;
4286
+ cursor: pointer;
4287
+
4288
+ &:disabled {
4289
+ cursor: no-drop;
4290
+
4291
+ & ~ ${FakeRadioButton} {
4292
+ opacity: 0.5;
4293
+ }
4294
+ }
4295
+
4296
+ &:checked ~ ${FakeRadioButton} {
4297
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4298
+ swatch: {
4299
+ hue: 0,
4300
+ saturation: 0,
4301
+ lightness: 0
4302
+ },
4303
+ alpha: 1
4304
+ }]) => styled.css`
4305
+ background-color: ${colorToString(brandColor)};
4306
+ `)}
4307
+ border-color: transparent;
4308
+
4309
+ &::after {
4310
+ content: '';
4311
+ position: absolute;
4312
+ box-sizing: content-box;
4313
+ top: 50%;
4314
+ left: 50%;
4315
+ width: 50%;
4316
+ height: 50%;
4317
+ border-radius: 50%;
4318
+ transform: translate(-50%, -50%);
4319
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4320
+ swatch: {
4321
+ hue: 0,
4322
+ saturation: 0,
4323
+ lightness: 0
4324
+ },
4325
+ alpha: 1
4326
+ }]) => styled.css`
4327
+ background-color: ${getCheckmarkColor(brandColor)};
4328
+ `)}
4329
+ }
4330
+ }
4331
+
4332
+ &:not(:disabled) {
4333
+ &:focus ~ ${FakeRadioButton} {
4334
+ ${(props) => cssMediaRules([props.brandColor], ([brandColor = {
4335
+ swatch: {
4336
+ hue: 0,
4337
+ saturation: 0,
4338
+ lightness: 0
4339
+ },
4340
+ alpha: 1
4341
+ }]) => styled.css`
4342
+ border-color: ${colorToString(brandColor)};
4343
+ `)}
4344
+ }
4345
+ }
4346
+
4347
+ &:not(:disabled):checked {
4348
+ &:focus ~ ${FakeRadioButton} {
4349
+ ${(props) => cssMediaRules([props.contrast], ([contrast = Contrasts.LIGHT]) => styled.css`
4350
+ border-color: ${getContrastBorderColor(contrast, props.error)};
4351
+ `)}
4352
+ }
4353
+ }
4354
+ `;
4355
+ var RadioButton = React.forwardRef(function RadioButton2(_C, ref) {
4356
+ var _D = _C, {
4357
+ error,
4358
+ className,
4359
+ style,
4360
+ form
4361
+ } = _D, restOfProps = __objRest(_D, [
4362
+ "error",
4363
+ "className",
4364
+ "style",
4365
+ "form"
4366
+ ]);
4367
+ const {
4368
+ size,
4369
+ contrast,
4370
+ brandColor
4371
+ } = useFormContext();
4372
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$5, {
4373
+ size,
4374
+ children: [/* @__PURE__ */ jsxRuntime.jsx(HiddenRadioButton, __spreadProps(__spreadValues({}, restOfProps), {
4375
+ ref,
4376
+ error,
4377
+ contrast,
4378
+ brandColor
4379
+ })), /* @__PURE__ */ jsxRuntime.jsx(FakeRadioButton, {
4380
+ className,
4381
+ error,
4382
+ contrast,
4383
+ style
4384
+ })]
4385
+ });
4386
+ });
4387
+ const StyledLabel = styled__default["default"](Label$1)`
4388
+ display: flex;
4389
+ align-items: center;
4390
+ margin: 8px 0;
4391
+
4392
+ &:last-of-type {
4393
+ margin-bottom: 0;
4394
+ }
4395
+ `;
4396
+ const RadioButtonContainer = styled__default["default"].span`
4397
+ margin-right: 8px;
4398
+ `;
4399
+ var TableColumnRadioButtonGroup = React.forwardRef(function TableColumnRadioButtonGroup2(_E, ref) {
4400
+ var _F = _E, {
4401
+ tableColumn,
4402
+ label = "",
4403
+ value = "",
4404
+ required = false,
4405
+ hideLabel = false,
4406
+ onChange
4407
+ } = _F, restOfProps = __objRest(_F, [
4408
+ "tableColumn",
4409
+ "label",
4410
+ "value",
4411
+ "required",
4412
+ "hideLabel",
4413
+ "onChange"
4414
+ ]);
4415
+ const handle = React.useRef({
4416
+ validity: {
4417
+ valueMissing: required === true && value === "",
4418
+ typeMismatch: false
4419
+ }
4420
+ });
4421
+ React.useImperativeHandle(ref, () => handle.current, []);
4422
+ function handleChange(event) {
4423
+ handle.current.validity.valueMissing = required === true && !event.currentTarget.checked;
4424
+ onChange(event);
4425
+ }
4426
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", {
4427
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4428
+ as: "p",
4429
+ children: label
4430
+ }), tableColumn.options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(StyledLabel, {
4431
+ htmlFor: option.id,
4432
+ "aria-label": label,
4433
+ children: [/* @__PURE__ */ jsxRuntime.jsx(RadioButtonContainer, {
4434
+ children: /* @__PURE__ */ jsxRuntime.jsx(RadioButton, __spreadProps(__spreadValues({}, restOfProps), {
4435
+ onChange: handleChange,
4436
+ checked: value === option.name,
4437
+ id: option.id,
4438
+ value: option.name
4439
+ }))
4440
+ }), option.name]
4441
+ }, option.id))]
4442
+ });
4443
+ });
4444
+ const Container$4 = styled__default["default"].div`
4445
+ ${cssField()}
4446
+ display: flex;
4447
+ align-items: center;
4448
+ position: relative;
4449
+ user-select: none;
4450
+ border-color: #f19eb9;
4451
+
4452
+ &:focus,
4453
+ &:focus-within {
4454
+ border-color: #e54e7f;
4455
+ }
4456
+
4457
+ ${(props) => cssMediaRules([props.size, props.contrast], ([size = Sizes.MEDIUM, contrast = Contrasts.LIGHT]) => styled.css`
4458
+ min-height: ${getSizeHeight$2(size)}px;
4459
+ max-height: ${getSizeHeight$2(size)}px;
4460
+
4461
+ &::after {
4462
+ content: '';
4463
+ position: absolute;
4464
+ right: ${getSizeHorizontalPadding(size)}px;
4465
+ top: 50%;
4466
+ transform: translate3d(0, -25%, 0);
4467
+ border: solid 0.35em transparent;
4468
+ border-top-color: ${getContrastColor$1(contrast)};
4469
+ }
4470
+ `)}
4471
+ `;
4472
+ const Select = styled__default["default"].select`
4473
+ appearance: none;
4474
+ position: absolute;
4475
+ top: 0;
4476
+ left: 0;
4477
+ opacity: 0;
4478
+ width: 100%;
4479
+ height: 100%;
4480
+ `;
4481
+ var TableColumnSingleSelect = React.forwardRef(function TableColumnSingleSelect2(_G, ref) {
4482
+ var _H = _G, {
4483
+ id,
4484
+ tableColumn,
4485
+ value = "",
4486
+ label = "",
4487
+ error = false,
4488
+ hideLabel = false,
4489
+ form
4490
+ } = _H, restOfProps = __objRest(_H, [
4491
+ "id",
4492
+ "tableColumn",
4493
+ "value",
4494
+ "label",
4495
+ "error",
4496
+ "hideLabel",
4497
+ "form"
4498
+ ]);
4499
+ const {
4500
+ shape,
4501
+ size,
4502
+ contrast,
4503
+ brandColor
4504
+ } = useFormContext();
4505
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4506
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4507
+ htmlFor: id,
4508
+ children: label
4509
+ }), /* @__PURE__ */ jsxRuntime.jsxs(Container$4, {
4510
+ error,
4511
+ shape,
4512
+ size,
4513
+ contrast,
4514
+ brandColor,
4515
+ children: [/* @__PURE__ */ jsxRuntime.jsx("span", {
4516
+ children: value === "" ? "-" : value
4517
+ }), /* @__PURE__ */ jsxRuntime.jsxs(Select, __spreadProps(__spreadValues({}, restOfProps), {
4518
+ "aria-label": label,
4519
+ ref,
4520
+ id,
4521
+ value,
4522
+ children: [/* @__PURE__ */ jsxRuntime.jsx("option", {
4523
+ value: "",
4524
+ children: "-"
4525
+ }), tableColumn.options.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", {
4526
+ value: option.name,
4527
+ children: option.name
4528
+ }, option.id))]
4529
+ }))]
4530
+ })]
4531
+ });
4532
+ });
4533
+ var SingleSelectTableField = React.forwardRef(function SingleSelectTableField2(_I, ref) {
4534
+ var _J = _I, {
4535
+ type
4536
+ } = _J, restOfProps = __objRest(_J, [
4537
+ "type"
4538
+ ]);
4539
+ return type === "select" ? /* @__PURE__ */ jsxRuntime.jsx(TableColumnSingleSelect, __spreadProps(__spreadValues({}, restOfProps), {
4540
+ ref
4541
+ })) : /* @__PURE__ */ jsxRuntime.jsx(TableColumnRadioButtonGroup, __spreadProps(__spreadValues({}, restOfProps), {
4542
+ ref
4543
+ }));
4544
+ });
4545
+ var PhoneNumberTableField = React.forwardRef(function PhoneNumberTableField2(_K, ref) {
4546
+ var _L = _K, {
4547
+ id,
4548
+ label = "",
4549
+ name,
4550
+ error,
4551
+ hideLabel = false
4552
+ } = _L, restOfProps = __objRest(_L, [
4553
+ "id",
4554
+ "label",
4555
+ "name",
4556
+ "error",
4557
+ "hideLabel"
4558
+ ]);
4559
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4560
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4561
+ htmlFor: id,
4562
+ children: label
4563
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4564
+ "aria-label": label,
4565
+ ref,
4566
+ id,
4567
+ name,
4568
+ type: "tel",
4569
+ error: error != null
4570
+ }))]
4571
+ });
4572
+ });
4573
+ var EmailTableField = React.forwardRef(function EmailTableField2(_M, ref) {
4574
+ var _N = _M, {
4575
+ id,
4576
+ label = "",
4577
+ name,
4578
+ error,
4579
+ hideLabel = false
4580
+ } = _N, restOfProps = __objRest(_N, [
4581
+ "id",
4582
+ "label",
4583
+ "name",
4584
+ "error",
4585
+ "hideLabel"
4586
+ ]);
4587
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4588
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4589
+ htmlFor: id,
4590
+ children: label
4591
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4592
+ "aria-label": label,
4593
+ ref,
4594
+ id,
4595
+ name,
4596
+ type: "email",
4597
+ error: error != null
4598
+ }))]
4599
+ });
4600
+ });
4601
+ var URLTableField = React.forwardRef(function URLTableField2(_O, ref) {
4602
+ var _P = _O, {
4603
+ id,
4604
+ label = "",
4605
+ name,
4606
+ error,
4607
+ hideLabel = false
4608
+ } = _P, restOfProps = __objRest(_P, [
4609
+ "id",
4610
+ "label",
4611
+ "name",
4612
+ "error",
4613
+ "hideLabel"
4614
+ ]);
4615
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4616
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4617
+ htmlFor: id,
4618
+ children: label
4619
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4620
+ "aria-label": label,
4621
+ ref,
4622
+ id,
4623
+ name,
4624
+ type: "url",
4625
+ error: error != null
4626
+ }))]
4627
+ });
4628
+ });
4629
+ var NumberTableField = React.forwardRef(function NumberTableField2(_Q, ref) {
4630
+ var _R = _Q, {
4631
+ id,
4632
+ label = "",
4633
+ name,
4634
+ error,
4635
+ hideLabel = false
4636
+ } = _R, restOfProps = __objRest(_R, [
4637
+ "id",
4638
+ "label",
4639
+ "name",
4640
+ "error",
4641
+ "hideLabel"
4642
+ ]);
4643
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4644
+ children: [!hideLabel && /* @__PURE__ */ jsxRuntime.jsx(Label$1, {
4645
+ htmlFor: id,
4646
+ children: label
4647
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input$2, __spreadProps(__spreadValues({}, restOfProps), {
4648
+ "aria-label": label,
4649
+ ref,
4650
+ id,
4651
+ name,
4652
+ type: "number",
4653
+ error: error != null
4654
+ }))]
4655
+ });
4656
+ });
4657
+ const Label = styled__default["default"].div`
4658
+ display: block;
4659
+ max-width: 120px;
4660
+ min-width: 60px;
4661
+ border-radius: 2px;
4662
+ background-color: #5f49f4;
4663
+ opacity: 0.4;
4664
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
4665
+ margin: calc(0.25 * ${getSizeHeight(size)}px + 2px) 0;
4666
+ min-height: ${0.5 * getSizeHeight(size)}px;
4667
+ max-height: ${0.5 * getSizeHeight(size)}px;
4668
+ `)}
4669
+ `;
4670
+ const Input = styled__default["default"].div`
4671
+ display: block;
4672
+ width: 100%;
4673
+ border-width: 2px;
4674
+ border-style: solid;
4675
+ border-color: #5f49f4;
4676
+ opacity: 0.4;
4677
+ ${(props) => cssMediaRules([props.shape, props.size], ([shape = Shapes.ROUNDED, size = Sizes.MEDIUM]) => styled.css`
4678
+ min-height: ${getSizeHeight$1(size)}px;
4679
+ max-height: ${getSizeHeight$1(size)}px;
4680
+ border-radius: ${getShapeBorderRadius(shape)}px;
4681
+ `)}
4682
+ `;
4683
+ function PlaceholderTableField() {
4684
+ const {
4685
+ size,
4686
+ shape
4687
+ } = useFormContext();
4688
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
4689
+ children: [/* @__PURE__ */ jsxRuntime.jsx(Label, {
4690
+ size
4691
+ }), /* @__PURE__ */ jsxRuntime.jsx(Input, {
4692
+ shape,
4693
+ size
4694
+ })]
4695
+ });
4696
+ }
4697
+ function getTypeMismatchErrorMessage(tableColumn, label) {
4698
+ switch ((tableColumn || {}).__typename) {
4699
+ case "PhoneNumberTableColumn":
4700
+ return `${label} field must be a valid phone number.`;
4701
+ case "EmailTableColumn":
4702
+ return `${label} field must be a valid email.`;
4703
+ case "URLTableColumn":
4704
+ return `${label} field must be a valid URL.`;
4705
+ case "NumberTableColumn":
4706
+ return `${label} field must be a valid number.`;
4707
+ case "SingleLineTextTableColumn":
4708
+ case "LongTextTableColumn":
4709
+ case "CheckboxTableColumn":
4710
+ default:
4711
+ return `${label} field is invalid.`;
4712
+ }
4713
+ }
4714
+ function getTableColumnField(tableColumn) {
4715
+ switch ((tableColumn || {}).__typename) {
4716
+ case "SingleLineTextTableColumn":
4717
+ return SingleLineTextTableField;
4718
+ case "LongTextTableColumn":
4719
+ return LongTextTableField;
4720
+ case "CheckboxTableColumn":
4721
+ return CheckboxTableField;
4722
+ case "MultipleSelectTableColumn":
4723
+ return MultipleSelectTableField;
4724
+ case "SingleSelectTableColumn":
4725
+ return SingleSelectTableField;
4726
+ case "PhoneNumberTableColumn":
4727
+ return PhoneNumberTableField;
4728
+ case "EmailTableColumn":
4729
+ return EmailTableField;
4730
+ case "URLTableColumn":
4731
+ return URLTableField;
4732
+ case "NumberTableColumn":
4733
+ return NumberTableField;
4734
+ default:
4735
+ return SingleLineTextTableField;
4736
+ }
4737
+ }
4738
+ function Field({
4739
+ tableColumn,
4740
+ tableFormField: {
4741
+ id,
4742
+ label = "",
4743
+ placeholder: placeholder2,
4744
+ required = false,
4745
+ hidden = false,
4746
+ type = "radio",
4747
+ hideLabel = false
4748
+ }
4749
+ }) {
4750
+ const TableColumnField = getTableColumnField(tableColumn);
4751
+ const input = React.useRef(null);
4752
+ if (!tableColumn)
4753
+ return /* @__PURE__ */ jsxRuntime.jsx(PlaceholderTableField, {});
4754
+ function validate() {
4755
+ let errorMessage;
4756
+ if (input.current) {
4757
+ const {
4758
+ validity = {}
4759
+ } = input.current;
4760
+ if (validity.valueMissing)
4761
+ errorMessage = `${label} is required.`;
4762
+ if (validity.typeMismatch)
4763
+ errorMessage = getTypeMismatchErrorMessage(tableColumn, label);
4764
+ }
4765
+ return errorMessage;
4766
+ }
4767
+ return /* @__PURE__ */ jsxRuntime.jsx(formik.Field, {
4768
+ name: tableColumn.name,
4769
+ validate,
4770
+ children: ({
4771
+ field,
4772
+ form
4773
+ }) => hidden ? /* @__PURE__ */ jsxRuntime.jsx("input", __spreadProps(__spreadValues({}, field), {
4774
+ ref: input,
4775
+ type: "hidden"
4776
+ })) : /* @__PURE__ */ jsxRuntime.jsx(TableColumnField, __spreadProps(__spreadValues({}, field), {
4777
+ type,
4778
+ form,
4779
+ tableColumn,
4780
+ ref: input,
4781
+ id,
4782
+ error: formik.getIn(form.touched, field.name) && formik.getIn(form.errors, field.name),
4783
+ label,
4784
+ placeholder: placeholder2,
4785
+ required,
4786
+ hideLabel
4787
+ }))
4788
+ });
4789
+ }
4790
+ var _g;
4791
+ function _extends$t() {
4792
+ _extends$t = Object.assign || function(target) {
4793
+ for (var i = 1; i < arguments.length; i++) {
4794
+ var source = arguments[i];
4795
+ for (var key in source) {
4796
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
4797
+ target[key] = source[key];
4798
+ }
4799
+ }
4800
+ }
4801
+ return target;
4802
+ };
4803
+ return _extends$t.apply(this, arguments);
4804
+ }
4805
+ var SvgSpinner20 = function SvgSpinner202(props) {
4806
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$t({
4807
+ xmlns: "http://www.w3.org/2000/svg",
4808
+ width: 20,
4809
+ height: 20
4810
+ }, props), _g || (_g = /* @__PURE__ */ React__namespace.createElement("g", {
4811
+ fill: "none",
4812
+ strokeWidth: 2,
4813
+ transform: "translate(1 1)"
4814
+ }, /* @__PURE__ */ React__namespace.createElement("circle", {
4815
+ stroke: "currentColor",
4816
+ cx: 9,
4817
+ cy: 9,
4818
+ r: 9,
4819
+ strokeOpacity: 0.4
4820
+ }), /* @__PURE__ */ React__namespace.createElement("path", {
4821
+ d: "M9 18A9 9 0 0 0 9 0"
4822
+ }))));
4823
+ };
4824
+ const spin = styled.keyframes`
4825
+ from {
4826
+ transform: rotate(0deg);
4827
+ }
4828
+ to {
4829
+ transform: rotate(360deg);
4830
+ }
4831
+ `;
4832
+ const Icon = styled__default["default"](SvgSpinner20)`
4833
+ display: inline-flex;
4834
+ animation: ${spin} 1s linear infinite;
4835
+ stroke: currentColor;
4836
+ `;
4837
+ function Spinner() {
4838
+ return /* @__PURE__ */ jsxRuntime.jsx(Icon, {});
4839
+ }
4840
+ function useTableFormFieldRefs(propController, { fieldsCount }) {
4841
+ const [container, setContainer] = React.useState(null);
4842
+ const [items, setItems] = React.useState(Array(fieldsCount + 1).fill(null));
4843
+ const isInBuilder = useIsInBuilder();
4844
+ React.useEffect(() => {
4845
+ if (!isInBuilder)
4846
+ return;
4847
+ let animationFrameHandle = requestAnimationFrame(handleAnimationFrameRequest);
4848
+ return () => {
4849
+ cancelAnimationFrame(animationFrameHandle);
4850
+ };
4851
+ function handleAnimationFrameRequest() {
4852
+ if (propController == null)
4853
+ return;
4854
+ if (container != null)
4855
+ propController.tableFormLayoutChange({ layout: boxModels.getBox(container) });
4856
+ items.map((item, index) => {
4857
+ if (item == null)
4858
+ return;
4859
+ propController.tableFormFieldLayoutChange({ index, layout: boxModels.getBox(item) });
4860
+ });
4861
+ animationFrameHandle = requestAnimationFrame(handleAnimationFrameRequest);
4862
+ }
4863
+ }, [propController, container, items, isInBuilder]);
4864
+ const itemRefs = React.useMemo(() => Array.from({ length: fieldsCount + 1 }).map((_, index) => (item) => {
4865
+ setItems((is) => [...is.slice(0, index), item, ...is.slice(index + 1)]);
4866
+ }), [fieldsCount, setItems]);
4867
+ return { container: setContainer, items: itemRefs };
4868
+ }
4869
+ const LOCAL_STORAGE_NAMESPACE = "@@makeswift/components/form";
4870
+ function getSizeFontSize(size) {
4871
+ switch (size) {
4872
+ case Sizes.SMALL:
4873
+ return 12;
4874
+ case Sizes.MEDIUM:
4875
+ return 14;
4876
+ case Sizes.LARGE:
4877
+ return 18;
4878
+ default:
4879
+ throw new Error(`Invalid form size "${size}"`);
4880
+ }
4881
+ }
4882
+ const Alignments = {
4883
+ LEFT: "left",
4884
+ CENTER: "center",
4885
+ RIGHT: "right"
4886
+ };
4887
+ const GridForm = styled__default["default"].form`
4888
+ display: flex;
4889
+ flex-wrap: wrap;
4890
+ width: 100%;
4891
+ ${(props) => cssMediaRules([props.size], ([size = Sizes.MEDIUM]) => styled.css`
4892
+ font-size: ${getSizeFontSize(size)}px;
4893
+ `)}
4894
+ ${cssWidth()}
4895
+ ${cssMargin()}
4896
+ `;
4897
+ const GridItem$1 = styled__default["default"].div`
4898
+ align-self: flex-end;
4899
+ flex-direction: column;
4900
+ ${cssGridItem()}
4901
+ `;
4902
+ function getAlignmentMargin(alignment) {
4903
+ switch (alignment) {
4904
+ case Alignments.LEFT:
4905
+ return "0 auto 0 0";
4906
+ case Alignments.RIGHT:
4907
+ return "0 0 0 auto";
4908
+ default:
4909
+ return "0 auto";
4910
+ }
4911
+ }
4912
+ const StyledButton = styled__default["default"]((props) => /* @__PURE__ */ jsxRuntime.jsx(Button$1, __spreadProps(__spreadValues({}, props), {
4913
+ as: "button"
4914
+ })))`
4915
+ display: flex;
4916
+ align-items: center;
4917
+ justify-content: center;
4918
+ ${(props) => cssMediaRules([props.size, props.alignment], ([size = Sizes.MEDIUM, alignment = Alignments.CENTER]) => styled.css`
4919
+ min-height: ${getSizeHeight$1(size)}px;
4920
+ max-height: ${getSizeHeight$1(size)}px;
4921
+ margin: ${getAlignmentMargin(alignment)};
4922
+ padding-top: 0;
4923
+ padding-bottom: 0;
4924
+ `)}
4925
+ `;
4926
+ const ErrorContainer = styled__default["default"].div`
4927
+ padding: 8px 16px;
4928
+ background-color: #f19eb9;
4929
+ border-radius: 4px;
4930
+ margin-top: 16px;
4931
+ `;
4932
+ const IconContainer = styled__default["default"].div`
4933
+ fill: currentColor;
4934
+ `;
4935
+ const ErrorMessage = styled__default["default"].p`
4936
+ font-size: 12px;
4937
+ margin: 8px 0;
4938
+ color: rgba(127, 0, 0, 0.95);
4939
+ `;
4940
+ function getTableColumnDefaultValue(tableColumn) {
4941
+ switch (tableColumn.__typename) {
4942
+ case "CheckboxTableColumn":
4943
+ return false;
4944
+ case "MultipleSelectTableColumn":
4945
+ return [];
4946
+ case "SingleLineTextTableColumn":
4947
+ case "LongTextTableColumn":
4948
+ case "SingleSelectTableColumn":
4949
+ case "PhoneNumberTableColumn":
4950
+ case "EmailTableColumn":
4951
+ case "URLTableColumn":
4952
+ case "NumberTableColumn":
4953
+ default:
4954
+ return "";
4955
+ }
4956
+ }
4957
+ const CREATE_TABLE_RECORD = client.gql`
4958
+ mutation CreateTableRecord($input: CreateTableRecordInput!) {
4959
+ createTableRecord(input: $input) {
4960
+ tableRecord {
4961
+ id
4962
+ }
4963
+ }
4964
+ }
4965
+ `;
4966
+ const Form = React.forwardRef(function Form2({
4967
+ id,
4968
+ tableId,
4969
+ fields: fieldsProp,
4970
+ submitLabel = "Submit",
4971
+ submitLink,
4972
+ shape,
4973
+ size,
4974
+ contrast,
4975
+ brandColor,
4976
+ gap,
4977
+ width,
4978
+ margin,
4979
+ submitTextStyle,
4980
+ submitVariant,
4981
+ submitTextColor,
4982
+ submitWidth,
4983
+ submitAlignment,
4984
+ labelTextStyle,
4985
+ labelTextColor
4986
+ }, ref) {
4987
+ const fields = React.useMemo(() => {
4988
+ var _a;
4989
+ return (_a = fieldsProp == null ? void 0 : fieldsProp.fields) != null ? _a : [];
4990
+ }, [fieldsProp]);
4991
+ const grid = React.useMemo(() => {
4992
+ var _a;
4993
+ return (_a = fieldsProp == null ? void 0 : fieldsProp.grid) != null ? _a : [];
4994
+ }, [fieldsProp]);
4995
+ const {
4996
+ data: {
4997
+ table
4998
+ } = {}
4999
+ } = useTable(tableId);
5000
+ const [createTableRecord] = useMutation(CREATE_TABLE_RECORD);
5001
+ const [refEl, setRefEl] = React.useState(null);
5002
+ const [propControllers, setPropControllers] = React.useState(null);
5003
+ const [initialValues, setInitialValues] = React.useState(() => fields.reduce((acc, formField) => {
5004
+ const tableColumn = table && table.columns.find((field) => field.id === formField.tableColumnId);
5005
+ const defaultValue = formField ? formField.defaultValue : null;
5006
+ if (tableColumn) {
5007
+ acc[tableColumn.name] = defaultValue == null ? getTableColumnDefaultValue(tableColumn) : defaultValue;
5008
+ }
5009
+ return acc;
5010
+ }, {}));
5011
+ const controller = propControllers == null ? void 0 : propControllers.fields;
5012
+ const {
5013
+ container,
5014
+ items
5015
+ } = useTableFormFieldRefs(controller, {
5016
+ fieldsCount: fields.length
5017
+ });
5018
+ const [isDone, setIsDone] = React.useState(false);
5019
+ const linkRef = React.useRef(null);
5020
+ React.useImperativeHandle(ref, () => ({
5021
+ getBoxModel() {
5022
+ return refEl instanceof Element ? boxModels.getBox(refEl) : null;
5023
+ },
5024
+ setPropControllers
5025
+ }), [refEl, setPropControllers]);
5026
+ React.useEffect(() => {
5027
+ container(refEl);
5028
+ }, [container, refEl]);
5029
+ React.useEffect(() => {
5030
+ if (!isDone)
5031
+ return;
5032
+ let timeoutId = setTimeout(() => setIsDone(false), 2500);
5033
+ return () => clearTimeout(timeoutId);
5034
+ }, [isDone]);
5035
+ function getTableColumn({
5036
+ tableColumnId
5037
+ }) {
5038
+ return table && table.columns.find((field) => tableColumnId === field.id);
5039
+ }
5040
+ async function handleSubmit(values, {
5041
+ setSubmitting,
5042
+ resetForm,
5043
+ setStatus
5044
+ }) {
5045
+ if (table) {
5046
+ const columns = [];
5047
+ fields.forEach((field) => {
5048
+ const tableColumn = getTableColumn(field);
5049
+ if (tableColumn) {
5050
+ const data = values[tableColumn.name];
5051
+ if (data) {
5052
+ columns.push({
5053
+ columnId: field.tableColumnId,
5054
+ data
5055
+ });
5056
+ if (field.autofill) {
5057
+ localStorage.setItem(`${LOCAL_STORAGE_NAMESPACE}/${tableColumn.name}`, JSON.stringify(data));
5058
+ }
5059
+ }
5060
+ }
5061
+ });
5062
+ try {
5063
+ await createTableRecord({
5064
+ variables: {
5065
+ input: {
5066
+ data: {
5067
+ tableId: table.id,
5068
+ columns
5069
+ }
5070
+ }
5071
+ }
5072
+ });
5073
+ setIsDone(true);
5074
+ setInitialValues((prev) => fields.reduce((acc, field) => {
5075
+ const tableColumn = getTableColumn(field);
5076
+ if (tableColumn) {
5077
+ const data = values[tableColumn.name];
5078
+ if (data && field.autofill)
5079
+ return __spreadProps(__spreadValues({}, acc), {
5080
+ [tableColumn.name]: data
5081
+ });
5082
+ }
5083
+ return acc;
5084
+ }, __spreadValues({}, prev)));
5085
+ resetForm();
5086
+ if (linkRef.current != null)
5087
+ linkRef.current.click();
5088
+ } catch (error) {
5089
+ setStatus({
5090
+ error: "An unexpected error has occurred, please try again later"
5091
+ });
5092
+ } finally {
5093
+ setSubmitting(false);
5094
+ }
5095
+ }
5096
+ }
5097
+ React.useEffect(() => {
5098
+ setInitialValues((prev) => fields.reduce((acc, formField) => {
5099
+ const tableColumn = table && table.columns.find((field) => field.id === formField.tableColumnId);
5100
+ if (tableColumn && formField.autofill) {
5101
+ const storedValue = localStorage.getItem(`${LOCAL_STORAGE_NAMESPACE}/${tableColumn.name}`);
5102
+ if (storedValue) {
5103
+ try {
5104
+ acc[tableColumn.name] = JSON.parse(storedValue);
5105
+ } catch (e) {
5106
+ }
5107
+ }
5108
+ }
5109
+ return acc;
5110
+ }, __spreadValues({}, prev)));
5111
+ }, [fields, table]);
5112
+ const brandColorData = useColor(brandColor);
5113
+ return /* @__PURE__ */ jsxRuntime.jsx(Provider, {
5114
+ value: {
5115
+ shape,
5116
+ size,
5117
+ contrast,
5118
+ brandColor: brandColorData,
5119
+ labelTextStyle,
5120
+ labelTextColor
5121
+ },
5122
+ children: tableId == null ? /* @__PURE__ */ jsxRuntime.jsx(Placeholder$1, {
5123
+ ref: setRefEl,
5124
+ width,
5125
+ margin
5126
+ }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
5127
+ children: /* @__PURE__ */ jsxRuntime.jsx(formik.Formik, {
5128
+ onSubmit: handleSubmit,
5129
+ initialValues,
5130
+ initialStatus: {
5131
+ error: null
5132
+ },
5133
+ enableReinitialize: true,
5134
+ children: (formik$1) => {
5135
+ const error = formik$1.status && formik$1.status.error;
5136
+ const errors = fields.map((field) => {
5137
+ const tableColumn = getTableColumn(field);
5138
+ return tableColumn && formik.getIn(formik$1.touched, tableColumn.name) && formik.getIn(formik$1.errors, tableColumn.name);
5139
+ }).filter((message) => typeof message === "string");
5140
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
5141
+ children: [/* @__PURE__ */ jsxRuntime.jsxs(GridForm, {
5142
+ ref: setRefEl,
5143
+ id,
5144
+ width,
5145
+ margin,
5146
+ size,
5147
+ onSubmit: formik$1.handleSubmit,
5148
+ onReset: formik$1.handleReset,
5149
+ noValidate: true,
5150
+ children: [fields.map((field, index) => {
5151
+ const tableColumn = getTableColumn(field);
5152
+ return /* @__PURE__ */ jsxRuntime.jsx(GridItem$1, {
5153
+ ref: items[index],
5154
+ grid,
5155
+ index,
5156
+ rowGap: gap,
5157
+ columnGap: gap,
5158
+ children: /* @__PURE__ */ jsxRuntime.jsx(Field, {
5159
+ tableColumn,
5160
+ tableFormField: field
5161
+ })
5162
+ }, field.id);
5163
+ }), /* @__PURE__ */ jsxRuntime.jsxs(GridItem$1, {
5164
+ ref: items[fields.length],
5165
+ grid,
5166
+ index: fields.length,
5167
+ rowGap: gap,
5168
+ columnGap: gap,
5169
+ children: [/* @__PURE__ */ jsxRuntime.jsx(StyledButton, {
5170
+ type: "submit",
5171
+ disabled: formik$1.isSubmitting || isDone,
5172
+ shape,
5173
+ size,
5174
+ color: brandColor,
5175
+ variant: submitVariant,
5176
+ textColor: submitTextColor,
5177
+ width: submitWidth,
5178
+ alignment: submitAlignment,
5179
+ textStyle: submitTextStyle,
5180
+ children: formik$1.isSubmitting ? /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}) : isDone ? /* @__PURE__ */ jsxRuntime.jsx(IconContainer, {
5181
+ children: /* @__PURE__ */ jsxRuntime.jsx(SvgCheck12, {})
5182
+ }) : submitLabel
5183
+ }), (errors.length > 0 || error) && /* @__PURE__ */ jsxRuntime.jsxs(ErrorContainer, {
5184
+ children: [errors.map((message) => /* @__PURE__ */ jsxRuntime.jsx(ErrorMessage, {
5185
+ children: message
5186
+ }, message)), error != null && /* @__PURE__ */ jsxRuntime.jsx(ErrorMessage, {
5187
+ children: error
5188
+ })]
5189
+ })]
5190
+ })]
5191
+ }), submitLink != null && /* @__PURE__ */ jsxRuntime.jsx(Link, {
5192
+ ref: linkRef,
5193
+ hidden: true,
5194
+ link: submitLink
5195
+ })]
5196
+ });
5197
+ }
5198
+ })
5199
+ })
5200
+ });
5201
+ });
5202
+ function registerComponent$5(runtime) {
5203
+ return runtime.registerComponent(Form, {
5204
+ type: "./components/Form/index.js",
5205
+ label: "Form",
5206
+ icon: "Form40",
5207
+ props: {
5208
+ id: descriptors.ElementID(),
5209
+ tableId: descriptors.Table(),
5210
+ fields: descriptors.TableFormFields(),
5211
+ submitLink: descriptors.Link({
5212
+ label: "Redirect to",
5213
+ options: [{
5214
+ value: "OPEN_PAGE",
5215
+ label: "Open page"
5216
+ }, {
5217
+ value: "OPEN_URL",
5218
+ label: "Open URL"
5219
+ }]
5220
+ }),
5221
+ gap: descriptors.GapY({
5222
+ preset: [{
5223
+ deviceId: "desktop",
5224
+ value: {
5225
+ value: 10,
5226
+ unit: "px"
5227
+ }
5228
+ }],
5229
+ label: "Gap",
5230
+ defaultValue: {
5231
+ value: 0,
5232
+ unit: "px"
5233
+ }
5234
+ }),
5235
+ shape: descriptors.ResponsiveIconRadioGroup({
5236
+ label: "Shape",
5237
+ options: [{
5238
+ label: "Pill",
5239
+ value: Shapes.PILL,
5240
+ icon: "ButtonPill16"
5241
+ }, {
5242
+ label: "Rounded",
5243
+ value: Shapes.ROUNDED,
5244
+ icon: "ButtonRounded16"
5245
+ }, {
5246
+ label: "Square",
5247
+ value: Shapes.SQUARE,
5248
+ icon: "ButtonSquare16"
5249
+ }],
5250
+ defaultValue: Shapes.ROUNDED
5251
+ }),
5252
+ size: descriptors.ResponsiveIconRadioGroup({
5253
+ label: "Size",
5254
+ options: [{
5255
+ label: "Small",
5256
+ value: Sizes.SMALL,
5257
+ icon: "SizeSmall16"
5258
+ }, {
5259
+ label: "Medium",
5260
+ value: Sizes.MEDIUM,
5261
+ icon: "SizeMedium16"
5262
+ }, {
5263
+ label: "Large",
5264
+ value: Sizes.LARGE,
5265
+ icon: "SizeLarge16"
5266
+ }],
5267
+ defaultValue: Sizes.MEDIUM
5268
+ }),
5269
+ contrast: descriptors.ResponsiveIconRadioGroup({
5270
+ label: "Color",
5271
+ options: [{
5272
+ label: "Light mode",
5273
+ value: Contrasts.LIGHT,
5274
+ icon: "Sun16"
5275
+ }, {
5276
+ label: "Dark mode",
5277
+ value: Contrasts.DARK,
5278
+ icon: "Moon16"
5279
+ }],
5280
+ defaultValue: Contrasts.LIGHT
5281
+ }),
5282
+ labelTextStyle: descriptors.TextStyle({
5283
+ label: "Label text style"
5284
+ }),
5285
+ labelTextColor: descriptors.ResponsiveColor({
5286
+ label: "Label text color"
5287
+ }),
5288
+ submitTextStyle: descriptors.TextStyle({
5289
+ label: "Button text style"
5290
+ }),
5291
+ brandColor: descriptors.ResponsiveColor({
5292
+ label: "Button color",
5293
+ placeholder: "black"
5294
+ }),
5295
+ submitTextColor: descriptors.ResponsiveColor({
5296
+ label: "Button text color",
5297
+ placeholder: "white"
5298
+ }),
5299
+ submitLabel: descriptors.TextInput({
5300
+ label: "Button label",
5301
+ placeholder: "Submit"
5302
+ }),
5303
+ submitVariant: descriptors.ResponsiveSelect({
5304
+ label: "Button style",
5305
+ options: [{
5306
+ value: "flat",
5307
+ label: "Flat"
5308
+ }, {
5309
+ value: "outline",
5310
+ label: "Outline"
5311
+ }, {
5312
+ value: "shadow",
5313
+ label: "Floating"
5314
+ }, {
5315
+ value: "clear",
5316
+ label: "Clear"
5317
+ }, {
5318
+ value: "blocky",
5319
+ label: "Blocky"
5320
+ }, {
5321
+ value: "bubbly",
5322
+ label: "Bubbly"
5323
+ }, {
5324
+ value: "skewed",
5325
+ label: "Skewed"
5326
+ }],
5327
+ defaultValue: "flat"
5328
+ }),
5329
+ submitWidth: descriptors.ResponsiveLength({
5330
+ label: "Button width"
5331
+ }),
5332
+ submitAlignment: descriptors.ResponsiveIconRadioGroup({
5333
+ label: "Button alignment",
5334
+ options: [{
5335
+ label: "Left",
5336
+ value: Alignments.LEFT,
5337
+ icon: "AlignLeft16"
5338
+ }, {
5339
+ label: "Center",
5340
+ value: Alignments.CENTER,
5341
+ icon: "AlignCenter16"
5342
+ }, {
5343
+ label: "Right",
5344
+ value: Alignments.RIGHT,
5345
+ icon: "AlignRight16"
5346
+ }],
5347
+ defaultValue: Alignments.CENTER
5348
+ }),
5349
+ width: descriptors.Width({
5350
+ preset: [{
5351
+ deviceId: "desktop",
5352
+ value: {
5353
+ value: 550,
5354
+ unit: "px"
5355
+ }
5356
+ }],
5357
+ defaultValue: {
5358
+ value: 100,
5359
+ unit: "%"
5360
+ }
5361
+ }),
5362
+ margin: descriptors.Margin()
5363
+ }
5364
+ });
5365
+ }
5366
+ var _path$s;
5367
+ function _extends$s() {
5368
+ _extends$s = Object.assign || function(target) {
5369
+ for (var i = 1; i < arguments.length; i++) {
5370
+ var source = arguments[i];
5371
+ for (var key in source) {
5372
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
5373
+ target[key] = source[key];
5374
+ }
5375
+ }
5376
+ }
5377
+ return target;
5378
+ };
5379
+ return _extends$s.apply(this, arguments);
5380
+ }
5381
+ var SvgMobileMenu28 = function SvgMobileMenu282(props) {
5382
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$s({
5383
+ xmlns: "http://www.w3.org/2000/svg",
5384
+ width: 28,
5385
+ height: 28
5386
+ }, props), _path$s || (_path$s = /* @__PURE__ */ React__namespace.createElement("path", {
5387
+ d: "M27 15H1a1 1 0 0 1-1-1 1 1 0 0 1 1-1h26a1 1 0 0 1 1 1 1 1 0 0 1-1 1zm0-10H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h26a1 1 0 0 0 1-1 1 1 0 0 0-1-1zm0 16H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h26a1 1 0 0 0 1-1 1 1 0 0 0-1-1z"
5388
+ })));
5389
+ };
5390
+ const GutterContainer = styled__default["default"].div`
5391
+ ${(p) => cssMediaRules([p.gutter], ([gutter = {
5392
+ value: 0,
5393
+ unit: "px"
5394
+ }]) => styled.css`
5395
+ padding-left: ${p.first ? "0px" : `${gutter.value / 2}${gutter.unit}`};
5396
+ padding-right: ${p.last ? "0px" : `${gutter.value / 2}${gutter.unit}`};
5397
+ `)}
5398
+ `;
5399
+ const PlaceholderLink$1 = styled__default["default"].div`
5400
+ width: ${(props) => props.width}px;
5401
+ height: ${(props) => props.button === true ? 32 : 8}px;
5402
+ background-color: #a1a8c2;
5403
+ border-radius: ${(props) => props.button === true ? 6 : 2}px;
5404
+ opacity: 0.4;
5405
+ `;
5406
+ const links$1 = [{
5407
+ width: 50
5408
+ }, {
5409
+ width: 70
5410
+ }, {
5411
+ width: 60
5412
+ }, {
5413
+ width: 80,
5414
+ button: true
5415
+ }];
5416
+ function LinksPlaceholder({
5417
+ gutter
5418
+ }) {
5419
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {
5420
+ children: links$1.map((link, i) => /* @__PURE__ */ jsxRuntime.jsx(GutterContainer, {
5421
+ gutter,
5422
+ first: i === 0,
5423
+ last: i === links$1.length - 1,
5424
+ children: /* @__PURE__ */ jsxRuntime.jsx(PlaceholderLink$1, __spreadValues({}, link))
5425
+ }, i))
5426
+ });
5427
+ }
5428
+ var _path$r;
5429
+ function _extends$r() {
5430
+ _extends$r = Object.assign || function(target) {
5431
+ for (var i = 1; i < arguments.length; i++) {
5432
+ var source = arguments[i];
5433
+ for (var key in source) {
5434
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
5435
+ target[key] = source[key];
5436
+ }
5437
+ }
5438
+ }
5439
+ return target;
5440
+ };
5441
+ return _extends$r.apply(this, arguments);
5442
+ }
5443
+ var SvgCaretDown8 = function SvgCaretDown82(props) {
5444
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$r({
5445
+ width: 8,
5446
+ height: 8,
3690
5447
  xmlns: "http://www.w3.org/2000/svg"
3691
- }, props), _path$q || (_path$q = /* @__PURE__ */ React__namespace.createElement("path", {
5448
+ }, props), _path$r || (_path$r = /* @__PURE__ */ React__namespace.createElement("path", {
3692
5449
  d: "M1 2a1 1 0 0 0-.707 1.707l3 3a1 1 0 0 0 1.414 0l3-3A1 1 0 0 0 7 2H1z"
3693
5450
  })));
3694
5451
  };
3695
- var _path$p;
3696
- function _extends$p() {
3697
- _extends$p = Object.assign || function(target) {
5452
+ var _path$q;
5453
+ function _extends$q() {
5454
+ _extends$q = Object.assign || function(target) {
3698
5455
  for (var i = 1; i < arguments.length; i++) {
3699
5456
  var source = arguments[i];
3700
5457
  for (var key in source) {
@@ -3705,20 +5462,20 @@ function _extends$p() {
3705
5462
  }
3706
5463
  return target;
3707
5464
  };
3708
- return _extends$p.apply(this, arguments);
5465
+ return _extends$q.apply(this, arguments);
3709
5466
  }
3710
5467
  var SvgPlus8 = function SvgPlus82(props) {
3711
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$p({
5468
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$q({
3712
5469
  width: 8,
3713
5470
  height: 8,
3714
5471
  xmlns: "http://www.w3.org/2000/svg"
3715
- }, props), _path$p || (_path$p = /* @__PURE__ */ React__namespace.createElement("path", {
5472
+ }, props), _path$q || (_path$q = /* @__PURE__ */ React__namespace.createElement("path", {
3716
5473
  d: "M4 0a1 1 0 0 0-1 1v2H1a1 1 0 1 0 0 2h2v2a1 1 0 0 0 2 0V5h2a1 1 0 0 0 0-2H5V1a1 1 0 0 0-1-1z"
3717
5474
  })));
3718
5475
  };
3719
- var _path$o;
3720
- function _extends$o() {
3721
- _extends$o = Object.assign || function(target) {
5476
+ var _path$p;
5477
+ function _extends$p() {
5478
+ _extends$p = Object.assign || function(target) {
3722
5479
  for (var i = 1; i < arguments.length; i++) {
3723
5480
  var source = arguments[i];
3724
5481
  for (var key in source) {
@@ -3729,20 +5486,20 @@ function _extends$o() {
3729
5486
  }
3730
5487
  return target;
3731
5488
  };
3732
- return _extends$o.apply(this, arguments);
5489
+ return _extends$p.apply(this, arguments);
3733
5490
  }
3734
5491
  var SvgArrowDown8 = function SvgArrowDown82(props) {
3735
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$o({
5492
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$p({
3736
5493
  width: 8,
3737
5494
  height: 8,
3738
5495
  xmlns: "http://www.w3.org/2000/svg"
3739
- }, props), _path$o || (_path$o = /* @__PURE__ */ React__namespace.createElement("path", {
5496
+ }, props), _path$p || (_path$p = /* @__PURE__ */ React__namespace.createElement("path", {
3740
5497
  d: "M5 1a1 1 0 0 0-2 0v3.586l-.293-.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0-1.414-1.414L5 4.586V1z"
3741
5498
  })));
3742
5499
  };
3743
- var _path$n;
3744
- function _extends$n() {
3745
- _extends$n = Object.assign || function(target) {
5500
+ var _path$o;
5501
+ function _extends$o() {
5502
+ _extends$o = Object.assign || function(target) {
3746
5503
  for (var i = 1; i < arguments.length; i++) {
3747
5504
  var source = arguments[i];
3748
5505
  for (var key in source) {
@@ -3753,14 +5510,14 @@ function _extends$n() {
3753
5510
  }
3754
5511
  return target;
3755
5512
  };
3756
- return _extends$n.apply(this, arguments);
5513
+ return _extends$o.apply(this, arguments);
3757
5514
  }
3758
5515
  var SvgChevronDown8 = function SvgChevronDown82(props) {
3759
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$n({
5516
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$o({
3760
5517
  width: 8,
3761
5518
  height: 8,
3762
5519
  xmlns: "http://www.w3.org/2000/svg"
3763
- }, props), _path$n || (_path$n = /* @__PURE__ */ React__namespace.createElement("path", {
5520
+ }, props), _path$o || (_path$o = /* @__PURE__ */ React__namespace.createElement("path", {
3764
5521
  fillRule: "evenodd",
3765
5522
  clipRule: "evenodd",
3766
5523
  d: "M.293 2.293a1 1 0 0 1 1.414 0L4 4.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-3 3a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 0-1.414z"
@@ -3835,22 +5592,22 @@ const StyledDropDownItem = styled__default["default"](Link)`
3835
5592
  background-color: rgba(0, 0, 0, 0.04);
3836
5593
  }
3837
5594
  `;
3838
- function DropDownItem$1(_o) {
3839
- var _p = _o, {
5595
+ function DropDownItem$1(_S) {
5596
+ var _T = _S, {
3840
5597
  color
3841
- } = _p, restOfProps = __objRest(_p, [
5598
+ } = _T, restOfProps = __objRest(_T, [
3842
5599
  "color"
3843
5600
  ]);
3844
5601
  return /* @__PURE__ */ jsxRuntime.jsx(StyledDropDownItem, __spreadProps(__spreadValues({}, restOfProps), {
3845
5602
  color: useColor(color)
3846
5603
  }));
3847
5604
  }
3848
- function DropDownButton(_q) {
3849
- var _r = _q, {
5605
+ function DropDownButton(_U) {
5606
+ var _V = _U, {
3850
5607
  label,
3851
5608
  caret = "caret",
3852
5609
  links: links2 = []
3853
- } = _r, restOfProps = __objRest(_r, [
5610
+ } = _V, restOfProps = __objRest(_V, [
3854
5611
  "label",
3855
5612
  "caret",
3856
5613
  "links"
@@ -3866,7 +5623,7 @@ function DropDownButton(_q) {
3866
5623
  }, [setPosition]);
3867
5624
  return /* @__PURE__ */ jsxRuntime.jsxs(DropDownContainer, {
3868
5625
  ref: container,
3869
- children: [/* @__PURE__ */ jsxRuntime.jsx(Button, __spreadProps(__spreadValues({}, restOfProps), {
5626
+ children: [/* @__PURE__ */ jsxRuntime.jsx(Button$1, __spreadProps(__spreadValues({}, restOfProps), {
3870
5627
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", {
3871
5628
  style: {
3872
5629
  display: "flex",
@@ -3896,9 +5653,9 @@ function DropDownButton(_q) {
3896
5653
  })]
3897
5654
  });
3898
5655
  }
3899
- var _path$m;
3900
- function _extends$m() {
3901
- _extends$m = Object.assign || function(target) {
5656
+ var _path$n;
5657
+ function _extends$n() {
5658
+ _extends$n = Object.assign || function(target) {
3902
5659
  for (var i = 1; i < arguments.length; i++) {
3903
5660
  var source = arguments[i];
3904
5661
  for (var key in source) {
@@ -3909,14 +5666,14 @@ function _extends$m() {
3909
5666
  }
3910
5667
  return target;
3911
5668
  };
3912
- return _extends$m.apply(this, arguments);
5669
+ return _extends$n.apply(this, arguments);
3913
5670
  }
3914
5671
  var SvgTimes16 = function SvgTimes162(props) {
3915
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends$m({
5672
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$n({
3916
5673
  width: 16,
3917
5674
  height: 16,
3918
5675
  xmlns: "http://www.w3.org/2000/svg"
3919
- }, props), _path$m || (_path$m = /* @__PURE__ */ React__namespace.createElement("path", {
5676
+ }, props), _path$n || (_path$n = /* @__PURE__ */ React__namespace.createElement("path", {
3920
5677
  fillRule: "evenodd",
3921
5678
  clipRule: "evenodd",
3922
5679
  d: "M13.707 3.707a1 1 0 0 0-1.414-1.414L8 6.586 3.707 2.293a1 1 0 0 0-1.414 1.414L6.586 8l-4.293 4.293a1 1 0 1 0 1.414 1.414L8 9.414l4.293 4.293a1 1 0 0 0 1.414-1.414L9.414 8l4.293-4.293Z"
@@ -3927,7 +5684,7 @@ const DropDownMenu = styled__default["default"].div`
3927
5684
  flex-direction: column;
3928
5685
  padding: 8px;
3929
5686
  `;
3930
- const ButtonLink$1 = styled__default["default"](Button)`
5687
+ const ButtonLink$1 = styled__default["default"](Button$1)`
3931
5688
  margin: 8px 0;
3932
5689
  `;
3933
5690
  const StyledLink$2 = styled__default["default"](Link)`
@@ -3940,24 +5697,24 @@ const StyledLink$2 = styled__default["default"](Link)`
3940
5697
  color: ${color == null ? "black" : colorToString(color)};
3941
5698
  `)}
3942
5699
  `;
3943
- function DropDownItem(_s) {
3944
- var _t = _s, {
5700
+ function DropDownItem(_W) {
5701
+ var _X = _W, {
3945
5702
  color
3946
- } = _t, restOfProps = __objRest(_t, [
5703
+ } = _X, restOfProps = __objRest(_X, [
3947
5704
  "color"
3948
5705
  ]);
3949
5706
  return /* @__PURE__ */ jsxRuntime.jsx(StyledLink$2, __spreadProps(__spreadValues({}, restOfProps), {
3950
5707
  color: useColor(color)
3951
5708
  }));
3952
5709
  }
3953
- function MobileDropDownButton(_u) {
3954
- var _v = _u, {
5710
+ function MobileDropDownButton(_Y) {
5711
+ var _Z = _Y, {
3955
5712
  label,
3956
5713
  caret,
3957
5714
  links: links2 = [],
3958
5715
  onClose = () => {
3959
5716
  }
3960
- } = _v, restOfProps = __objRest(_v, [
5717
+ } = _Z, restOfProps = __objRest(_Z, [
3961
5718
  "label",
3962
5719
  "caret",
3963
5720
  "links",
@@ -3999,10 +5756,10 @@ function MobileDropDownButton(_u) {
3999
5756
  })]
4000
5757
  });
4001
5758
  }
4002
- const ButtonLink = styled__default["default"](Button)`
5759
+ const ButtonLink = styled__default["default"](Button$1)`
4003
5760
  margin: 8px 0;
4004
5761
  `;
4005
- const Container$2 = styled__default["default"].div`
5762
+ const Container$3 = styled__default["default"].div`
4006
5763
  position: fixed;
4007
5764
  flex-direction: column;
4008
5765
  width: 100%;
@@ -4056,7 +5813,7 @@ function MobileMenu({
4056
5813
  onClose = () => {
4057
5814
  }
4058
5815
  }) {
4059
- return /* @__PURE__ */ jsxRuntime.jsxs(Container$2, {
5816
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$3, {
4060
5817
  animation,
4061
5818
  backgroundColor: useColor(backgroundColor),
4062
5819
  open,
@@ -4082,7 +5839,7 @@ function MobileMenu({
4082
5839
  })]
4083
5840
  });
4084
5841
  }
4085
- const Container$1 = styled__default["default"].nav`
5842
+ const Container$2 = styled__default["default"].nav`
4086
5843
  display: flex;
4087
5844
  align-items: center;
4088
5845
  ${cssWidth()}
@@ -4139,7 +5896,7 @@ const Navigation = React.forwardRef(function Navigation2({
4139
5896
  margin
4140
5897
  }, ref) {
4141
5898
  const [isOpen, setIsOpen] = React.useState(false);
4142
- return /* @__PURE__ */ jsxRuntime.jsxs(Container$1, {
5899
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container$2, {
4143
5900
  ref,
4144
5901
  id,
4145
5902
  margin,
@@ -4164,7 +5921,7 @@ const Navigation = React.forwardRef(function Navigation2({
4164
5921
  gutter,
4165
5922
  first: i === 0,
4166
5923
  last: i === links2.length - 1,
4167
- children: [link.type === "button" && /* @__PURE__ */ jsxRuntime.jsx(Button, __spreadProps(__spreadValues({}, link.payload), {
5924
+ children: [link.type === "button" && /* @__PURE__ */ jsxRuntime.jsx(Button$1, __spreadProps(__spreadValues({}, link.payload), {
4168
5925
  children: link.payload.label
4169
5926
  })), link.type === "dropdown" && /* @__PURE__ */ jsxRuntime.jsx(DropDownButton, __spreadValues({}, link.payload))]
4170
5927
  }, link.id)) : /* @__PURE__ */ jsxRuntime.jsx(LinksPlaceholder, {
@@ -4187,7 +5944,7 @@ const Navigation = React.forwardRef(function Navigation2({
4187
5944
  })]
4188
5945
  });
4189
5946
  });
4190
- function registerComponent$3(runtime) {
5947
+ function registerComponent$4(runtime) {
4191
5948
  return runtime.registerComponent(Navigation, {
4192
5949
  type: "./components/Navigation/index.js",
4193
5950
  label: "Navigation",
@@ -4291,7 +6048,7 @@ const PlaceholderBase = styled__default["default"].div`
4291
6048
  height: 80px;
4292
6049
  padding: 8px;
4293
6050
  `;
4294
- var Placeholder = React.forwardRef(function Placeholder3(props, ref) {
6051
+ var Placeholder = React.forwardRef(function Placeholder4(props, ref) {
4295
6052
  return /* @__PURE__ */ jsxRuntime.jsx(PlaceholderBase, __spreadProps(__spreadValues({}, props), {
4296
6053
  ref,
4297
6054
  children: /* @__PURE__ */ jsxRuntime.jsx("svg", {
@@ -4364,7 +6121,7 @@ const Root = React.forwardRef(function Page2({
4364
6121
  })]
4365
6122
  });
4366
6123
  });
4367
- function registerComponent$2(runtime) {
6124
+ function registerComponent$3(runtime) {
4368
6125
  return runtime.registerComponent(Root, {
4369
6126
  type: "./components/Root/index.js",
4370
6127
  label: "Page",
@@ -4377,6 +6134,30 @@ function registerComponent$2(runtime) {
4377
6134
  }
4378
6135
  });
4379
6136
  }
6137
+ var _path$m;
6138
+ function _extends$m() {
6139
+ _extends$m = Object.assign || function(target) {
6140
+ for (var i = 1; i < arguments.length; i++) {
6141
+ var source = arguments[i];
6142
+ for (var key in source) {
6143
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
6144
+ target[key] = source[key];
6145
+ }
6146
+ }
6147
+ }
6148
+ return target;
6149
+ };
6150
+ return _extends$m.apply(this, arguments);
6151
+ }
6152
+ var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
6153
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends$m({
6154
+ xmlns: "http://www.w3.org/2000/svg",
6155
+ width: 20,
6156
+ height: 20
6157
+ }, props), _path$m || (_path$m = /* @__PURE__ */ React__namespace.createElement("path", {
6158
+ d: "M13.741 8.297a96.837 96.837 0 0 0 1.443-4.128c.345-1.085.518-1.751.518-1.998 0-.266-.058-.472-.173-.62a.572.572 0 0 0-.476-.218c-.257 0-.52.213-.787.638-.267.426-.56 1.11-.883 2.054l-1.38 3.97 1.738.302Zm-1.836 3.695a8.343 8.343 0 0 1-1.125-.124 5.915 5.915 0 0 1-1.015-.274c.147.293.278.586.393.879.116.293.21.582.284.866.22-.275.453-.525.696-.75.245-.224.5-.423.767-.597Zm-1.56-4.162-1.49-4.286c-.388-1.09-.687-1.801-.899-2.136-.212-.334-.442-.501-.69-.501a.575.575 0 0 0-.469.22c-.12.146-.18.343-.18.59 0 .422.161 1.154.483 2.198.323 1.044.806 2.413 1.45 4.107a.464.464 0 0 1 .235-.213 1.13 1.13 0 0 1 .414-.061c.055 0 .166.005.332.013.165.01.437.033.814.069Zm-1.353 6.634c.156 0 .3-.07.428-.212a.672.672 0 0 0 .193-.46c0-.174-.126-.58-.379-1.216a12.3 12.3 0 0 0-.946-1.875c-.276-.458-.548-.803-.815-1.037-.267-.234-.52-.35-.759-.35-.194 0-.408.12-.642.363-.235.243-.352.47-.352.68 0 .22.115.55.345.989.23.44.538.907.925 1.402.405.54.787.96 1.146 1.263.36.303.644.453.856.453Zm-4.142-.33c.13.157.308.386.538.688.608.833 1.17 1.25 1.685 1.25a.734.734 0 0 0 .47-.165c.137-.11.206-.224.206-.343 0-.138-.092-.367-.276-.687a8.797 8.797 0 0 0-.759-1.085c-.369-.467-.675-.808-.918-1.024-.244-.215-.44-.323-.587-.323-.322 0-.619.172-.89.516a1.902 1.902 0 0 0-.408 1.215c0 .376.094.795.283 1.257.19.463.463.927.821 1.394a5.472 5.472 0 0 0 2.023 1.669c.806.39 1.696.584 2.672.584 1.795 0 3.298-.666 4.508-1.998 1.21-1.333 1.815-3.002 1.815-5.008 0-.613-.046-1.1-.138-1.463-.09-.361-.244-.625-.456-.79-.377-.311-1.11-.59-2.202-.837a15.366 15.366 0 0 0-3.417-.371c-.33 0-.566.055-.704.165-.138.11-.207.297-.207.563 0 .623.35 1.074 1.05 1.353.7.28 1.831.419 3.396.419h.566a.38.38 0 0 1 .31.144c.078.096.132.24.16.433-.158.147-.479.314-.967.502-.488.187-.86.373-1.119.556a4.957 4.957 0 0 0-1.332 1.435c-.336.554-.504 1.078-.504 1.573 0 .302.071.666.214 1.092.143.426.214.689.214.79v.096l-.028.124c-.404-.028-.724-.264-.959-.708-.235-.444-.352-1.037-.352-1.78v-.122a.758.758 0 0 1-.214.137.6.6 0 0 1-.228.04c-.083 0-.16-.005-.234-.02a2.287 2.287 0 0 1-.249-.061c.027.1.048.199.062.295.014.096.021.172.021.227 0 .339-.134.63-.4.872a1.366 1.366 0 0 1-.953.364c-.58 0-1.169-.282-1.768-.845-.598-.563-.897-1.114-.897-1.655 0-.101.012-.19.035-.268a.45.45 0 0 1 .117-.2Zm9.885-5.604c.83.157 1.413.504 1.754 1.044.34.54.511 1.393.511 2.556 0 2.307-.697 4.196-2.092 5.666C13.513 19.265 11.73 20 9.558 20a6.938 6.938 0 0 1-2.492-.46 6.169 6.169 0 0 1-2.078-1.284c-.663-.605-1.16-1.243-1.49-1.916A4.622 4.622 0 0 1 3 14.273c0-.788.17-1.397.511-1.828.34-.43.878-.723 1.615-.878a7.523 7.523 0 0 1-.304-.811 1.986 1.986 0 0 1-.097-.508c0-.412.22-.833.657-1.264.437-.431.85-.646 1.235-.646.166 0 .34.03.525.089.184.06.395.159.635.296C7.068 6.727 6.553 5.186 6.231 4.1c-.323-1.086-.484-1.834-.484-2.246 0-.568.147-1.02.442-1.353C6.484.168 6.884 0 7.39 0c.865 0 1.961 1.923 3.286 5.77.23.659.405 1.167.525 1.525.102-.285.244-.687.428-1.21 1.326-3.81 2.466-5.714 3.424-5.714.47 0 .844.158 1.126.474.28.316.42.74.42 1.27 0 .404-.154 1.14-.462 2.212-.309 1.072-.776 2.473-1.402 4.203Z"
6159
+ })));
6160
+ };
4380
6161
  var _path$l;
4381
6162
  function _extends$l() {
4382
6163
  _extends$l = Object.assign || function(target) {
@@ -4392,13 +6173,13 @@ function _extends$l() {
4392
6173
  };
4393
6174
  return _extends$l.apply(this, arguments);
4394
6175
  }
4395
- var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
6176
+ var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
4396
6177
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$l({
4397
6178
  xmlns: "http://www.w3.org/2000/svg",
4398
6179
  width: 20,
4399
6180
  height: 20
4400
6181
  }, props), _path$l || (_path$l = /* @__PURE__ */ React__namespace.createElement("path", {
4401
- d: "M13.741 8.297a96.837 96.837 0 0 0 1.443-4.128c.345-1.085.518-1.751.518-1.998 0-.266-.058-.472-.173-.62a.572.572 0 0 0-.476-.218c-.257 0-.52.213-.787.638-.267.426-.56 1.11-.883 2.054l-1.38 3.97 1.738.302Zm-1.836 3.695a8.343 8.343 0 0 1-1.125-.124 5.915 5.915 0 0 1-1.015-.274c.147.293.278.586.393.879.116.293.21.582.284.866.22-.275.453-.525.696-.75.245-.224.5-.423.767-.597Zm-1.56-4.162-1.49-4.286c-.388-1.09-.687-1.801-.899-2.136-.212-.334-.442-.501-.69-.501a.575.575 0 0 0-.469.22c-.12.146-.18.343-.18.59 0 .422.161 1.154.483 2.198.323 1.044.806 2.413 1.45 4.107a.464.464 0 0 1 .235-.213 1.13 1.13 0 0 1 .414-.061c.055 0 .166.005.332.013.165.01.437.033.814.069Zm-1.353 6.634c.156 0 .3-.07.428-.212a.672.672 0 0 0 .193-.46c0-.174-.126-.58-.379-1.216a12.3 12.3 0 0 0-.946-1.875c-.276-.458-.548-.803-.815-1.037-.267-.234-.52-.35-.759-.35-.194 0-.408.12-.642.363-.235.243-.352.47-.352.68 0 .22.115.55.345.989.23.44.538.907.925 1.402.405.54.787.96 1.146 1.263.36.303.644.453.856.453Zm-4.142-.33c.13.157.308.386.538.688.608.833 1.17 1.25 1.685 1.25a.734.734 0 0 0 .47-.165c.137-.11.206-.224.206-.343 0-.138-.092-.367-.276-.687a8.797 8.797 0 0 0-.759-1.085c-.369-.467-.675-.808-.918-1.024-.244-.215-.44-.323-.587-.323-.322 0-.619.172-.89.516a1.902 1.902 0 0 0-.408 1.215c0 .376.094.795.283 1.257.19.463.463.927.821 1.394a5.472 5.472 0 0 0 2.023 1.669c.806.39 1.696.584 2.672.584 1.795 0 3.298-.666 4.508-1.998 1.21-1.333 1.815-3.002 1.815-5.008 0-.613-.046-1.1-.138-1.463-.09-.361-.244-.625-.456-.79-.377-.311-1.11-.59-2.202-.837a15.366 15.366 0 0 0-3.417-.371c-.33 0-.566.055-.704.165-.138.11-.207.297-.207.563 0 .623.35 1.074 1.05 1.353.7.28 1.831.419 3.396.419h.566a.38.38 0 0 1 .31.144c.078.096.132.24.16.433-.158.147-.479.314-.967.502-.488.187-.86.373-1.119.556a4.957 4.957 0 0 0-1.332 1.435c-.336.554-.504 1.078-.504 1.573 0 .302.071.666.214 1.092.143.426.214.689.214.79v.096l-.028.124c-.404-.028-.724-.264-.959-.708-.235-.444-.352-1.037-.352-1.78v-.122a.758.758 0 0 1-.214.137.6.6 0 0 1-.228.04c-.083 0-.16-.005-.234-.02a2.287 2.287 0 0 1-.249-.061c.027.1.048.199.062.295.014.096.021.172.021.227 0 .339-.134.63-.4.872a1.366 1.366 0 0 1-.953.364c-.58 0-1.169-.282-1.768-.845-.598-.563-.897-1.114-.897-1.655 0-.101.012-.19.035-.268a.45.45 0 0 1 .117-.2Zm9.885-5.604c.83.157 1.413.504 1.754 1.044.34.54.511 1.393.511 2.556 0 2.307-.697 4.196-2.092 5.666C13.513 19.265 11.73 20 9.558 20a6.938 6.938 0 0 1-2.492-.46 6.169 6.169 0 0 1-2.078-1.284c-.663-.605-1.16-1.243-1.49-1.916A4.622 4.622 0 0 1 3 14.273c0-.788.17-1.397.511-1.828.34-.43.878-.723 1.615-.878a7.523 7.523 0 0 1-.304-.811 1.986 1.986 0 0 1-.097-.508c0-.412.22-.833.657-1.264.437-.431.85-.646 1.235-.646.166 0 .34.03.525.089.184.06.395.159.635.296C7.068 6.727 6.553 5.186 6.231 4.1c-.323-1.086-.484-1.834-.484-2.246 0-.568.147-1.02.442-1.353C6.484.168 6.884 0 7.39 0c.865 0 1.961 1.923 3.286 5.77.23.659.405 1.167.525 1.525.102-.285.244-.687.428-1.21 1.326-3.81 2.466-5.714 3.424-5.714.47 0 .844.158 1.126.474.28.316.42.74.42 1.27 0 .404-.154 1.14-.462 2.212-.309 1.072-.776 2.473-1.402 4.203Z"
6182
+ d: "M18.281 11.438 16.132 10l2.149-1.438v2.876Zm-7.422 6.096v-4.008l3.727-2.492 3.008 2.011-6.735 4.49Zm-.859-5.5L6.961 10 10 7.966 13.04 10 10 12.033Zm-.859 5.5-6.734-4.489 3.008-2.01 3.726 2.491v4.008ZM1.719 8.562 3.869 10l-2.15 1.438V8.562Zm7.422-6.097v4.01L5.415 8.965 2.407 6.954l6.734-4.489Zm1.718 0 6.735 4.49-3.008 2.011-3.727-2.492V2.465Zm9.126 4.338a.857.857 0 0 0-.368-.565L10.477.144a.862.862 0 0 0-.954 0L.383 6.238A.872.872 0 0 0 0 6.953v6.093c0 .282.148.56.383.715l9.14 6.094a.856.856 0 0 0 .954 0l9.14-6.094a.863.863 0 0 0 .383-.715V6.953a.631.631 0 0 0-.015-.15Z"
4402
6183
  })));
4403
6184
  };
4404
6185
  var _path$k;
@@ -4416,13 +6197,13 @@ function _extends$k() {
4416
6197
  };
4417
6198
  return _extends$k.apply(this, arguments);
4418
6199
  }
4419
- var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
6200
+ var SvgLogoDribbble20 = function SvgLogoDribbble202(props) {
4420
6201
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$k({
4421
6202
  xmlns: "http://www.w3.org/2000/svg",
4422
6203
  width: 20,
4423
6204
  height: 20
4424
6205
  }, props), _path$k || (_path$k = /* @__PURE__ */ React__namespace.createElement("path", {
4425
- d: "M18.281 11.438 16.132 10l2.149-1.438v2.876Zm-7.422 6.096v-4.008l3.727-2.492 3.008 2.011-6.735 4.49Zm-.859-5.5L6.961 10 10 7.966 13.04 10 10 12.033Zm-.859 5.5-6.734-4.489 3.008-2.01 3.726 2.491v4.008ZM1.719 8.562 3.869 10l-2.15 1.438V8.562Zm7.422-6.097v4.01L5.415 8.965 2.407 6.954l6.734-4.489Zm1.718 0 6.735 4.49-3.008 2.011-3.727-2.492V2.465Zm9.126 4.338a.857.857 0 0 0-.368-.565L10.477.144a.862.862 0 0 0-.954 0L.383 6.238A.872.872 0 0 0 0 6.953v6.093c0 .282.148.56.383.715l9.14 6.094a.856.856 0 0 0 .954 0l9.14-6.094a.863.863 0 0 0 .383-.715V6.953a.631.631 0 0 0-.015-.15Z"
6206
+ d: "M19.797 7.988a10.062 10.062 0 0 0-.585-1.88 9.886 9.886 0 0 0-.922-1.698C15.203-.169 8.988-1.378 4.409 1.71a9.985 9.985 0 0 0-2.7 2.7A9.965 9.965 0 0 0 .202 7.988a10.148 10.148 0 0 0 0 4.027 10.008 10.008 0 0 0 13.691 7.2 10.002 10.002 0 0 0 5.904-11.226Zm-1.26 1.927a19.75 19.75 0 0 0-5.947-.28c-.062-.145-.121-.293-.182-.439a30.32 30.32 0 0 0-.568-1.24 10.978 10.978 0 0 0 4.758-3.379 8.502 8.502 0 0 1 1.942 5.338h-.003Zm-2.896-6.322a9.298 9.298 0 0 1-4.462 3.09 43.362 43.362 0 0 0-3.192-4.98 8.523 8.523 0 0 1 7.654 1.89ZM6.357 2.28A51.177 51.177 0 0 1 9.528 7.2 31.562 31.562 0 0 1 1.643 8.24 8.542 8.542 0 0 1 6.357 2.28ZM1.461 10c0-.09.004-.182.007-.273a31.285 31.285 0 0 0 8.767-1.217c.245.48.479.967.693 1.454-.112.03-.225.065-.336.102a13.512 13.512 0 0 0-6.946 5.636A8.508 8.508 0 0 1 1.465 10h-.004Zm8.544 8.545a8.508 8.508 0 0 1-5.44-1.958c.112.09.191.15.191.15s1.637-3.57 6.702-5.336c.019-.007.039-.012.058-.017a35.57 35.57 0 0 1 1.823 6.484 8.525 8.525 0 0 1-3.334.677Zm4.772-1.463a36.725 36.725 0 0 0-1.662-6.099 12.377 12.377 0 0 1 5.323.373 8.546 8.546 0 0 1-3.661 5.727Z"
4426
6207
  })));
4427
6208
  };
4428
6209
  var _path$j;
@@ -4440,13 +6221,13 @@ function _extends$j() {
4440
6221
  };
4441
6222
  return _extends$j.apply(this, arguments);
4442
6223
  }
4443
- var SvgLogoDribbble20 = function SvgLogoDribbble202(props) {
6224
+ var SvgLogoFacebook20 = function SvgLogoFacebook202(props) {
4444
6225
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$j({
4445
6226
  xmlns: "http://www.w3.org/2000/svg",
4446
6227
  width: 20,
4447
6228
  height: 20
4448
6229
  }, props), _path$j || (_path$j = /* @__PURE__ */ React__namespace.createElement("path", {
4449
- d: "M19.797 7.988a10.062 10.062 0 0 0-.585-1.88 9.886 9.886 0 0 0-.922-1.698C15.203-.169 8.988-1.378 4.409 1.71a9.985 9.985 0 0 0-2.7 2.7A9.965 9.965 0 0 0 .202 7.988a10.148 10.148 0 0 0 0 4.027 10.008 10.008 0 0 0 13.691 7.2 10.002 10.002 0 0 0 5.904-11.226Zm-1.26 1.927a19.75 19.75 0 0 0-5.947-.28c-.062-.145-.121-.293-.182-.439a30.32 30.32 0 0 0-.568-1.24 10.978 10.978 0 0 0 4.758-3.379 8.502 8.502 0 0 1 1.942 5.338h-.003Zm-2.896-6.322a9.298 9.298 0 0 1-4.462 3.09 43.362 43.362 0 0 0-3.192-4.98 8.523 8.523 0 0 1 7.654 1.89ZM6.357 2.28A51.177 51.177 0 0 1 9.528 7.2 31.562 31.562 0 0 1 1.643 8.24 8.542 8.542 0 0 1 6.357 2.28ZM1.461 10c0-.09.004-.182.007-.273a31.285 31.285 0 0 0 8.767-1.217c.245.48.479.967.693 1.454-.112.03-.225.065-.336.102a13.512 13.512 0 0 0-6.946 5.636A8.508 8.508 0 0 1 1.465 10h-.004Zm8.544 8.545a8.508 8.508 0 0 1-5.44-1.958c.112.09.191.15.191.15s1.637-3.57 6.702-5.336c.019-.007.039-.012.058-.017a35.57 35.57 0 0 1 1.823 6.484 8.525 8.525 0 0 1-3.334.677Zm4.772-1.463a36.725 36.725 0 0 0-1.662-6.099 12.377 12.377 0 0 1 5.323.373 8.546 8.546 0 0 1-3.661 5.727Z"
6230
+ d: "M18.896 0H1.104C.494 0 0 .494 0 1.104v17.792C0 19.506.494 20 1.104 20h9.58v-7.734H8.086V9.238h2.598V7.01c0-2.583 1.577-3.989 3.881-3.989 1.104 0 2.053.082 2.33.119v2.699l-1.59.001c-1.254 0-1.496.596-1.496 1.47v1.928h2.997l-.39 3.028h-2.607V20h5.087c.61 0 1.104-.494 1.104-1.104V1.104C20 .494 19.506 0 18.896 0"
4450
6231
  })));
4451
6232
  };
4452
6233
  var _path$i;
@@ -4464,13 +6245,13 @@ function _extends$i() {
4464
6245
  };
4465
6246
  return _extends$i.apply(this, arguments);
4466
6247
  }
4467
- var SvgLogoFacebook20 = function SvgLogoFacebook202(props) {
6248
+ var SvgLogoGithub20 = function SvgLogoGithub202(props) {
4468
6249
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$i({
4469
6250
  xmlns: "http://www.w3.org/2000/svg",
4470
6251
  width: 20,
4471
6252
  height: 20
4472
6253
  }, props), _path$i || (_path$i = /* @__PURE__ */ React__namespace.createElement("path", {
4473
- d: "M18.896 0H1.104C.494 0 0 .494 0 1.104v17.792C0 19.506.494 20 1.104 20h9.58v-7.734H8.086V9.238h2.598V7.01c0-2.583 1.577-3.989 3.881-3.989 1.104 0 2.053.082 2.33.119v2.699l-1.59.001c-1.254 0-1.496.596-1.496 1.47v1.928h2.997l-.39 3.028h-2.607V20h5.087c.61 0 1.104-.494 1.104-1.104V1.104C20 .494 19.506 0 18.896 0"
6254
+ d: "M9.996.003a9.762 9.762 0 0 0-3.16 19.072.5.5 0 0 0 .683-.47c0-.234-.01-.85-.013-1.665-2.782.59-3.37-1.313-3.37-1.313a2.608 2.608 0 0 0-1.11-1.431c-.908-.607.07-.594.07-.594a2.098 2.098 0 0 1 1.53 1.007 2.155 2.155 0 0 0 2.91.814c.047-.5.273-.964.636-1.31-2.221-.246-4.554-1.09-4.554-4.836a3.735 3.735 0 0 1 1.028-2.625 3.448 3.448 0 0 1 .098-2.59s.84-.263 2.75 1a9.704 9.704 0 0 1 5.007 0c1.909-1.266 2.747-1 2.747-1 .369.817.404 1.747.099 2.59a3.726 3.726 0 0 1 1.028 2.625c0 3.76-2.338 4.588-4.566 4.83.482.475.73 1.138.68 1.812 0 1.31-.013 2.363-.013 2.686a.498.498 0 0 0 .688.469A9.76 9.76 0 0 0 9.996.003"
4474
6255
  })));
4475
6256
  };
4476
6257
  var _path$h;
@@ -4488,13 +6269,13 @@ function _extends$h() {
4488
6269
  };
4489
6270
  return _extends$h.apply(this, arguments);
4490
6271
  }
4491
- var SvgLogoGithub20 = function SvgLogoGithub202(props) {
6272
+ var SvgLogoInstagram20 = function SvgLogoInstagram202(props) {
4492
6273
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$h({
4493
6274
  xmlns: "http://www.w3.org/2000/svg",
4494
6275
  width: 20,
4495
6276
  height: 20
4496
6277
  }, props), _path$h || (_path$h = /* @__PURE__ */ React__namespace.createElement("path", {
4497
- d: "M9.996.003a9.762 9.762 0 0 0-3.16 19.072.5.5 0 0 0 .683-.47c0-.234-.01-.85-.013-1.665-2.782.59-3.37-1.313-3.37-1.313a2.608 2.608 0 0 0-1.11-1.431c-.908-.607.07-.594.07-.594a2.098 2.098 0 0 1 1.53 1.007 2.155 2.155 0 0 0 2.91.814c.047-.5.273-.964.636-1.31-2.221-.246-4.554-1.09-4.554-4.836a3.735 3.735 0 0 1 1.028-2.625 3.448 3.448 0 0 1 .098-2.59s.84-.263 2.75 1a9.704 9.704 0 0 1 5.007 0c1.909-1.266 2.747-1 2.747-1 .369.817.404 1.747.099 2.59a3.726 3.726 0 0 1 1.028 2.625c0 3.76-2.338 4.588-4.566 4.83.482.475.73 1.138.68 1.812 0 1.31-.013 2.363-.013 2.686a.498.498 0 0 0 .688.469A9.76 9.76 0 0 0 9.996.003"
6278
+ d: "M15.338 3.462a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4M10 13.332a3.333 3.333 0 1 1 0-6.664 3.333 3.333 0 0 1 0 6.665m0-8.468a5.135 5.135 0 1 0 0 10.27 5.135 5.135 0 0 0 0-10.27M10 0C7.284 0 6.943.012 5.877.06 4.813.109 4.086.278 3.45.525a4.919 4.919 0 0 0-1.772 1.153A4.905 4.905 0 0 0 .525 3.45C.278 4.086.109 4.813.06 5.877.011 6.944 0 7.284 0 10s.011 3.057.06 4.123c.049 1.065.218 1.79.465 2.428a4.898 4.898 0 0 0 1.153 1.77 4.882 4.882 0 0 0 1.772 1.154c.636.248 1.363.417 2.427.465 1.066.048 1.407.06 4.123.06s3.056-.012 4.123-.06c1.065-.048 1.791-.217 2.427-.465a4.87 4.87 0 0 0 1.771-1.154 4.888 4.888 0 0 0 1.154-1.77c.247-.637.416-1.363.465-2.428.048-1.066.06-1.407.06-4.123s-.012-3.056-.06-4.123c-.049-1.064-.218-1.791-.465-2.427a4.895 4.895 0 0 0-1.154-1.772A4.907 4.907 0 0 0 16.55.525C15.914.278 15.188.109 14.123.06 13.056.012 12.716 0 10 0m0 1.802c2.67 0 2.986.01 4.041.058.975.045 1.505.207 1.857.345.466.18.799.398 1.149.748.351.349.567.683.749 1.149.137.353.299.882.344 1.857.048 1.055.058 1.37.058 4.04s-.01 2.987-.058 4.042c-.045.975-.207 1.504-.344 1.857a3.11 3.11 0 0 1-.749 1.15c-.35.35-.683.566-1.149.748-.352.137-.882.3-1.857.344-1.055.049-1.37.058-4.041.058-2.67 0-2.987-.01-4.041-.058-.975-.044-1.504-.207-1.857-.344a3.104 3.104 0 0 1-1.15-.748 3.133 3.133 0 0 1-.748-1.15c-.137-.353-.3-.882-.344-1.857-.048-1.055-.058-1.371-.058-4.041 0-2.67.01-2.986.058-4.041.044-.975.207-1.504.344-1.857.182-.466.399-.8.748-1.15a3.09 3.09 0 0 1 1.15-.747c.353-.138.882-.3 1.857-.345C7.014 1.812 7.33 1.802 10 1.802"
4498
6279
  })));
4499
6280
  };
4500
6281
  var _path$g;
@@ -4512,13 +6293,13 @@ function _extends$g() {
4512
6293
  };
4513
6294
  return _extends$g.apply(this, arguments);
4514
6295
  }
4515
- var SvgLogoInstagram20 = function SvgLogoInstagram202(props) {
6296
+ var SvgLogoLinkedin20 = function SvgLogoLinkedin202(props) {
4516
6297
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$g({
4517
6298
  xmlns: "http://www.w3.org/2000/svg",
4518
6299
  width: 20,
4519
6300
  height: 20
4520
6301
  }, props), _path$g || (_path$g = /* @__PURE__ */ React__namespace.createElement("path", {
4521
- d: "M15.338 3.462a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4M10 13.332a3.333 3.333 0 1 1 0-6.664 3.333 3.333 0 0 1 0 6.665m0-8.468a5.135 5.135 0 1 0 0 10.27 5.135 5.135 0 0 0 0-10.27M10 0C7.284 0 6.943.012 5.877.06 4.813.109 4.086.278 3.45.525a4.919 4.919 0 0 0-1.772 1.153A4.905 4.905 0 0 0 .525 3.45C.278 4.086.109 4.813.06 5.877.011 6.944 0 7.284 0 10s.011 3.057.06 4.123c.049 1.065.218 1.79.465 2.428a4.898 4.898 0 0 0 1.153 1.77 4.882 4.882 0 0 0 1.772 1.154c.636.248 1.363.417 2.427.465 1.066.048 1.407.06 4.123.06s3.056-.012 4.123-.06c1.065-.048 1.791-.217 2.427-.465a4.87 4.87 0 0 0 1.771-1.154 4.888 4.888 0 0 0 1.154-1.77c.247-.637.416-1.363.465-2.428.048-1.066.06-1.407.06-4.123s-.012-3.056-.06-4.123c-.049-1.064-.218-1.791-.465-2.427a4.895 4.895 0 0 0-1.154-1.772A4.907 4.907 0 0 0 16.55.525C15.914.278 15.188.109 14.123.06 13.056.012 12.716 0 10 0m0 1.802c2.67 0 2.986.01 4.041.058.975.045 1.505.207 1.857.345.466.18.799.398 1.149.748.351.349.567.683.749 1.149.137.353.299.882.344 1.857.048 1.055.058 1.37.058 4.04s-.01 2.987-.058 4.042c-.045.975-.207 1.504-.344 1.857a3.11 3.11 0 0 1-.749 1.15c-.35.35-.683.566-1.149.748-.352.137-.882.3-1.857.344-1.055.049-1.37.058-4.041.058-2.67 0-2.987-.01-4.041-.058-.975-.044-1.504-.207-1.857-.344a3.104 3.104 0 0 1-1.15-.748 3.133 3.133 0 0 1-.748-1.15c-.137-.353-.3-.882-.344-1.857-.048-1.055-.058-1.371-.058-4.041 0-2.67.01-2.986.058-4.041.044-.975.207-1.504.344-1.857.182-.466.399-.8.748-1.15a3.09 3.09 0 0 1 1.15-.747c.353-.138.882-.3 1.857-.345C7.014 1.812 7.33 1.802 10 1.802"
6302
+ d: "M.516 19.639h3.896V7.296H.516v12.343ZM2.365 5.752h-.028a2.153 2.153 0 0 1-2.325-2.14 2.376 2.376 0 1 1 2.353 2.14ZM20 19.64h-4.417v-6.388c0-1.672-.692-2.816-2.211-2.816-.954 0-1.803.608-2.11 1.512-.09.328-.122.67-.09 1.009v6.683H6.791s.056-11.315 0-12.344h4.376v1.937c.259-.846 1.657-2.056 3.888-2.056 2.769 0 4.945 1.776 4.945 5.599v6.864Z"
4522
6303
  })));
4523
6304
  };
4524
6305
  var _path$f;
@@ -4536,13 +6317,13 @@ function _extends$f() {
4536
6317
  };
4537
6318
  return _extends$f.apply(this, arguments);
4538
6319
  }
4539
- var SvgLogoLinkedin20 = function SvgLogoLinkedin202(props) {
6320
+ var SvgLogoMedium20 = function SvgLogoMedium202(props) {
4540
6321
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$f({
4541
6322
  xmlns: "http://www.w3.org/2000/svg",
4542
6323
  width: 20,
4543
6324
  height: 20
4544
6325
  }, props), _path$f || (_path$f = /* @__PURE__ */ React__namespace.createElement("path", {
4545
- d: "M.516 19.639h3.896V7.296H.516v12.343ZM2.365 5.752h-.028a2.153 2.153 0 0 1-2.325-2.14 2.376 2.376 0 1 1 2.353 2.14ZM20 19.64h-4.417v-6.388c0-1.672-.692-2.816-2.211-2.816-.954 0-1.803.608-2.11 1.512-.09.328-.122.67-.09 1.009v6.683H6.791s.056-11.315 0-12.344h4.376v1.937c.259-.846 1.657-2.056 3.888-2.056 2.769 0 4.945 1.776 4.945 5.599v6.864Z"
6326
+ d: "M2.372 5.264a.785.785 0 0 0-.252-.659L.252 2.34V2H6.05l4.482 9.905L14.473 2H20v.34L18.404 3.88a.472.472 0 0 0-.178.451v11.335a.474.474 0 0 0 .178.452l1.559 1.542v.34H12.12v-.34l1.615-1.58c.159-.16.159-.207.159-.45V6.467L9.403 17.962h-.607L3.566 6.468v7.704c-.043.323.064.65.29.884l2.1 2.568v.338H0v-.338l2.1-2.568a1.03 1.03 0 0 0 .272-.884V5.264Z"
4546
6327
  })));
4547
6328
  };
4548
6329
  var _path$e;
@@ -4560,13 +6341,13 @@ function _extends$e() {
4560
6341
  };
4561
6342
  return _extends$e.apply(this, arguments);
4562
6343
  }
4563
- var SvgLogoMedium20 = function SvgLogoMedium202(props) {
6344
+ var SvgLogoPinterest20 = function SvgLogoPinterest202(props) {
4564
6345
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$e({
4565
6346
  xmlns: "http://www.w3.org/2000/svg",
4566
6347
  width: 20,
4567
6348
  height: 20
4568
6349
  }, props), _path$e || (_path$e = /* @__PURE__ */ React__namespace.createElement("path", {
4569
- d: "M2.372 5.264a.785.785 0 0 0-.252-.659L.252 2.34V2H6.05l4.482 9.905L14.473 2H20v.34L18.404 3.88a.472.472 0 0 0-.178.451v11.335a.474.474 0 0 0 .178.452l1.559 1.542v.34H12.12v-.34l1.615-1.58c.159-.16.159-.207.159-.45V6.467L9.403 17.962h-.607L3.566 6.468v7.704c-.043.323.064.65.29.884l2.1 2.568v.338H0v-.338l2.1-2.568a1.03 1.03 0 0 0 .272-.884V5.264Z"
6350
+ d: "M9.995 0A9.996 9.996 0 0 0 5.984 19.15a8.848 8.848 0 0 1 .172-2.296c.193-.811 1.286-5.445 1.286-5.445a3.863 3.863 0 0 1-.32-1.583c0-1.481.86-2.587 1.928-2.587a1.34 1.34 0 0 1 1.349 1.5 21.432 21.432 0 0 1-.883 3.545 1.547 1.547 0 0 0 1.578 1.925c1.894 0 3.17-2.432 3.17-5.314 0-2.19-1.475-3.83-4.16-3.83a4.733 4.733 0 0 0-4.917 4.54c-.003.082-.004.164-.003.245a2.882 2.882 0 0 0 .659 1.962c.165.135.223.36.143.558-.047.182-.157.628-.203.802a.342.342 0 0 1-.5.25c-1.397-.57-2.047-2.098-2.047-3.816 0-2.84 2.394-6.246 7.143-6.246 3.816 0 6.329 2.764 6.329 5.725 0 3.92-2.181 6.85-5.394 6.85a2.873 2.873 0 0 1-2.442-1.244s-.58 2.303-.703 2.747a8.331 8.331 0 0 1-1.006 2.14c5.293 1.569 10.855-1.452 12.423-6.745C21.153 7.542 18.134 1.979 12.84.412A10.007 10.007 0 0 0 9.995 0"
4570
6351
  })));
4571
6352
  };
4572
6353
  var _path$d;
@@ -4584,13 +6365,13 @@ function _extends$d() {
4584
6365
  };
4585
6366
  return _extends$d.apply(this, arguments);
4586
6367
  }
4587
- var SvgLogoPinterest20 = function SvgLogoPinterest202(props) {
6368
+ var SvgLogoReddit20 = function SvgLogoReddit202(props) {
4588
6369
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$d({
4589
6370
  xmlns: "http://www.w3.org/2000/svg",
4590
6371
  width: 20,
4591
6372
  height: 20
4592
6373
  }, props), _path$d || (_path$d = /* @__PURE__ */ React__namespace.createElement("path", {
4593
- d: "M9.995 0A9.996 9.996 0 0 0 5.984 19.15a8.848 8.848 0 0 1 .172-2.296c.193-.811 1.286-5.445 1.286-5.445a3.863 3.863 0 0 1-.32-1.583c0-1.481.86-2.587 1.928-2.587a1.34 1.34 0 0 1 1.349 1.5 21.432 21.432 0 0 1-.883 3.545 1.547 1.547 0 0 0 1.578 1.925c1.894 0 3.17-2.432 3.17-5.314 0-2.19-1.475-3.83-4.16-3.83a4.733 4.733 0 0 0-4.917 4.54c-.003.082-.004.164-.003.245a2.882 2.882 0 0 0 .659 1.962c.165.135.223.36.143.558-.047.182-.157.628-.203.802a.342.342 0 0 1-.5.25c-1.397-.57-2.047-2.098-2.047-3.816 0-2.84 2.394-6.246 7.143-6.246 3.816 0 6.329 2.764 6.329 5.725 0 3.92-2.181 6.85-5.394 6.85a2.873 2.873 0 0 1-2.442-1.244s-.58 2.303-.703 2.747a8.331 8.331 0 0 1-1.006 2.14c5.293 1.569 10.855-1.452 12.423-6.745C21.153 7.542 18.134 1.979 12.84.412A10.007 10.007 0 0 0 9.995 0"
6374
+ d: "M13.438 13.082a1.501 1.501 0 1 1 1.502-1.502 1.503 1.503 0 0 1-1.44 1.562c-.026 0-.05.002-.077 0l.015-.06Zm.271 2.567A5.774 5.774 0 0 1 10 16.808a5.768 5.768 0 0 1-3.708-1.157.404.404 0 0 1 .57-.57 4.903 4.903 0 0 0 3.123.944 4.916 4.916 0 0 0 3.138-.915.419.419 0 1 1 .586.6v-.06Zm-8.724-4.128a1.501 1.501 0 1 1 3.002 0 1.501 1.501 0 0 1-3.002 0ZM20 10.018a2.192 2.192 0 0 0-3.709-1.5 10.681 10.681 0 0 0-5.78-1.848l.975-4.685 3.214.677a1.5 1.5 0 1 0 .194-.916l-3.678-.737a.466.466 0 0 0-.554.355v.006l-1.113 5.21a10.71 10.71 0 0 0-5.855 1.847 2.192 2.192 0 1 0-2.418 3.588 4.557 4.557 0 0 0 0 .662c0 3.363 3.92 6.095 8.754 6.095 4.835 0 8.753-2.732 8.753-6.095a4.29 4.29 0 0 0 0-.662A2.194 2.194 0 0 0 20 10.02Z"
4594
6375
  })));
4595
6376
  };
4596
6377
  var _path$c;
@@ -4608,13 +6389,13 @@ function _extends$c() {
4608
6389
  };
4609
6390
  return _extends$c.apply(this, arguments);
4610
6391
  }
4611
- var SvgLogoReddit20 = function SvgLogoReddit202(props) {
6392
+ var SvgLogoRss20 = function SvgLogoRss202(props) {
4612
6393
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$c({
4613
6394
  xmlns: "http://www.w3.org/2000/svg",
4614
6395
  width: 20,
4615
6396
  height: 20
4616
6397
  }, props), _path$c || (_path$c = /* @__PURE__ */ React__namespace.createElement("path", {
4617
- d: "M13.438 13.082a1.501 1.501 0 1 1 1.502-1.502 1.503 1.503 0 0 1-1.44 1.562c-.026 0-.05.002-.077 0l.015-.06Zm.271 2.567A5.774 5.774 0 0 1 10 16.808a5.768 5.768 0 0 1-3.708-1.157.404.404 0 0 1 .57-.57 4.903 4.903 0 0 0 3.123.944 4.916 4.916 0 0 0 3.138-.915.419.419 0 1 1 .586.6v-.06Zm-8.724-4.128a1.501 1.501 0 1 1 3.002 0 1.501 1.501 0 0 1-3.002 0ZM20 10.018a2.192 2.192 0 0 0-3.709-1.5 10.681 10.681 0 0 0-5.78-1.848l.975-4.685 3.214.677a1.5 1.5 0 1 0 .194-.916l-3.678-.737a.466.466 0 0 0-.554.355v.006l-1.113 5.21a10.71 10.71 0 0 0-5.855 1.847 2.192 2.192 0 1 0-2.418 3.588 4.557 4.557 0 0 0 0 .662c0 3.363 3.92 6.095 8.754 6.095 4.835 0 8.753-2.732 8.753-6.095a4.29 4.29 0 0 0 0-.662A2.194 2.194 0 0 0 20 10.02Z"
6398
+ d: "M15 19C15 11.28 8.72 5 1 5a1 1 0 1 0 0 2c6.617 0 12 5.383 12 12a1 1 0 1 0 2 0m5 0C20 8.523 11.477 0 1 0a1 1 0 1 0 0 2c9.374 0 17 7.626 17 17a1 1 0 1 0 2 0m-10 0c0-4.963-4.037-9-9-9a1 1 0 1 0 0 2c3.859 0 7 3.141 7 7a1 1 0 1 0 2 0m-5-1.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0"
4618
6399
  })));
4619
6400
  };
4620
6401
  var _path$b;
@@ -4632,13 +6413,13 @@ function _extends$b() {
4632
6413
  };
4633
6414
  return _extends$b.apply(this, arguments);
4634
6415
  }
4635
- var SvgLogoRss20 = function SvgLogoRss202(props) {
6416
+ var SvgLogoSnapchat20 = function SvgLogoSnapchat202(props) {
4636
6417
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$b({
4637
6418
  xmlns: "http://www.w3.org/2000/svg",
4638
6419
  width: 20,
4639
6420
  height: 20
4640
6421
  }, props), _path$b || (_path$b = /* @__PURE__ */ React__namespace.createElement("path", {
4641
- d: "M15 19C15 11.28 8.72 5 1 5a1 1 0 1 0 0 2c6.617 0 12 5.383 12 12a1 1 0 1 0 2 0m5 0C20 8.523 11.477 0 1 0a1 1 0 1 0 0 2c9.374 0 17 7.626 17 17a1 1 0 1 0 2 0m-10 0c0-4.963-4.037-9-9-9a1 1 0 1 0 0 2c3.859 0 7 3.141 7 7a1 1 0 1 0 2 0m-5-1.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0"
6422
+ d: "M10.126 19c-.051 0-.102-.002-.153-.004a1.674 1.674 0 0 1-.099.004c-1.185 0-1.946-.516-2.68-1.014-.509-.345-.988-.669-1.553-.76a5.282 5.282 0 0 0-.814-.065c-.478 0-.855.07-1.13.122-.167.031-.31.06-.42.06-.115 0-.239-.026-.293-.201-.046-.155-.08-.302-.113-.445-.084-.37-.143-.596-.305-.62C.687 15.797.15 15.42.03 15.148A.325.325 0 0 1 0 15.034a.205.205 0 0 1 .177-.21c2.89-.457 4.184-3.288 4.238-3.408l.005-.01c.177-.344.211-.642.103-.886-.198-.449-.845-.646-1.272-.775-.105-.033-.205-.062-.283-.092-.854-.324-.925-.656-.89-.825.056-.288.458-.49.783-.49a.57.57 0 0 1 .234.044c.384.173.73.26 1.03.26.412 0 .592-.166.614-.188-.01-.187-.023-.382-.037-.585-.086-1.31-.192-2.937.24-3.866 1.295-2.783 4.041-3 4.852-3L10.15 1h.048c.813 0 3.565.216 4.86 3.001.433.93.326 2.559.24 3.867l-.004.057-.033.53c.02.018.187.173.56.186.286-.01.613-.097.972-.259a.755.755 0 0 1 .3-.056c.122 0 .245.023.347.063l.007.003c.29.098.48.292.484.497.004.191-.15.48-.898.764-.078.029-.177.06-.282.092-.43.13-1.075.326-1.273.774-.11.244-.074.543.103.887 0 .003.003.006.004.01.054.12 1.349 2.95 4.239 3.407a.206.206 0 0 1 .177.211.356.356 0 0 1-.03.116c-.12.268-.656.646-2.536.925-.154.023-.214.215-.305.617-.033.147-.067.29-.114.442-.04.13-.125.193-.268.193h-.024c-.1 0-.241-.018-.421-.052a5.942 5.942 0 0 0-1.13-.114c-.264 0-.538.022-.814.065-.564.091-1.043.415-1.549.759-.737.5-1.497 1.015-2.683 1.015"
4642
6423
  })));
4643
6424
  };
4644
6425
  var _path$a;
@@ -4656,13 +6437,13 @@ function _extends$a() {
4656
6437
  };
4657
6438
  return _extends$a.apply(this, arguments);
4658
6439
  }
4659
- var SvgLogoSnapchat20 = function SvgLogoSnapchat202(props) {
6440
+ var SvgLogoSoundcloud20 = function SvgLogoSoundcloud202(props) {
4660
6441
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$a({
4661
6442
  xmlns: "http://www.w3.org/2000/svg",
4662
6443
  width: 20,
4663
6444
  height: 20
4664
6445
  }, props), _path$a || (_path$a = /* @__PURE__ */ React__namespace.createElement("path", {
4665
- d: "M10.126 19c-.051 0-.102-.002-.153-.004a1.674 1.674 0 0 1-.099.004c-1.185 0-1.946-.516-2.68-1.014-.509-.345-.988-.669-1.553-.76a5.282 5.282 0 0 0-.814-.065c-.478 0-.855.07-1.13.122-.167.031-.31.06-.42.06-.115 0-.239-.026-.293-.201-.046-.155-.08-.302-.113-.445-.084-.37-.143-.596-.305-.62C.687 15.797.15 15.42.03 15.148A.325.325 0 0 1 0 15.034a.205.205 0 0 1 .177-.21c2.89-.457 4.184-3.288 4.238-3.408l.005-.01c.177-.344.211-.642.103-.886-.198-.449-.845-.646-1.272-.775-.105-.033-.205-.062-.283-.092-.854-.324-.925-.656-.89-.825.056-.288.458-.49.783-.49a.57.57 0 0 1 .234.044c.384.173.73.26 1.03.26.412 0 .592-.166.614-.188-.01-.187-.023-.382-.037-.585-.086-1.31-.192-2.937.24-3.866 1.295-2.783 4.041-3 4.852-3L10.15 1h.048c.813 0 3.565.216 4.86 3.001.433.93.326 2.559.24 3.867l-.004.057-.033.53c.02.018.187.173.56.186.286-.01.613-.097.972-.259a.755.755 0 0 1 .3-.056c.122 0 .245.023.347.063l.007.003c.29.098.48.292.484.497.004.191-.15.48-.898.764-.078.029-.177.06-.282.092-.43.13-1.075.326-1.273.774-.11.244-.074.543.103.887 0 .003.003.006.004.01.054.12 1.349 2.95 4.239 3.407a.206.206 0 0 1 .177.211.356.356 0 0 1-.03.116c-.12.268-.656.646-2.536.925-.154.023-.214.215-.305.617-.033.147-.067.29-.114.442-.04.13-.125.193-.268.193h-.024c-.1 0-.241-.018-.421-.052a5.942 5.942 0 0 0-1.13-.114c-.264 0-.538.022-.814.065-.564.091-1.043.415-1.549.759-.737.5-1.497 1.015-2.683 1.015"
6446
+ d: "M0 13.23c0 .252.09.442.27.571.18.129.372.175.577.137.192-.038.327-.107.405-.208.077-.101.116-.267.116-.5v-2.736a.68.68 0 0 0-.2-.496.661.661 0 0 0-.489-.204.65.65 0 0 0-.479.204.68.68 0 0 0-.2.496v2.736Zm2.141 1.171c0 .183.063.319.19.41.127.092.29.137.489.137.204 0 .37-.045.498-.137.127-.091.191-.227.191-.41v-6.38a.67.67 0 0 0-.2-.487.663.663 0 0 0-.489-.202.648.648 0 0 0-.479.202.667.667 0 0 0-.2.487v6.38Zm2.13.302c0 .182.066.319.196.41a.854.854 0 0 0 .503.137.812.812 0 0 0 .488-.137c.127-.091.191-.228.191-.41V8.879a.693.693 0 0 0-.2-.5.645.645 0 0 0-.479-.208.667.667 0 0 0-.493.208.686.686 0 0 0-.206.5v5.824Zm2.141.028c0 .346.23.519.689.519.459 0 .689-.173.689-.519V5.293c0-.529-.17-.889-.479-.928-.209-.028-.402-.027-.601.143-.198.17-.298.477-.298.785v9.438Zm2.178.273V4.736c0-.327.096-.522.288-.585a5.392 5.392 0 0 1 3.891.529 5.487 5.487 0 0 1 1.986 1.854 5.58 5.58 0 0 1 .88 2.591 3.01 3.01 0 0 1 1.21-.246c.868 0 1.612.312 2.229.935S20 11.185 20 12.06a3.09 3.09 0 0 1-.926 2.256c-.617.623-1.358.935-2.22.935l-8.096-.01a.221.221 0 0 1-.126-.104.285.285 0 0 1-.042-.133Z"
4666
6447
  })));
4667
6448
  };
4668
6449
  var _path$9;
@@ -4680,13 +6461,13 @@ function _extends$9() {
4680
6461
  };
4681
6462
  return _extends$9.apply(this, arguments);
4682
6463
  }
4683
- var SvgLogoSoundcloud20 = function SvgLogoSoundcloud202(props) {
6464
+ var SvgLogoSpotify20 = function SvgLogoSpotify202(props) {
4684
6465
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$9({
4685
6466
  xmlns: "http://www.w3.org/2000/svg",
4686
6467
  width: 20,
4687
6468
  height: 20
4688
6469
  }, props), _path$9 || (_path$9 = /* @__PURE__ */ React__namespace.createElement("path", {
4689
- d: "M0 13.23c0 .252.09.442.27.571.18.129.372.175.577.137.192-.038.327-.107.405-.208.077-.101.116-.267.116-.5v-2.736a.68.68 0 0 0-.2-.496.661.661 0 0 0-.489-.204.65.65 0 0 0-.479.204.68.68 0 0 0-.2.496v2.736Zm2.141 1.171c0 .183.063.319.19.41.127.092.29.137.489.137.204 0 .37-.045.498-.137.127-.091.191-.227.191-.41v-6.38a.67.67 0 0 0-.2-.487.663.663 0 0 0-.489-.202.648.648 0 0 0-.479.202.667.667 0 0 0-.2.487v6.38Zm2.13.302c0 .182.066.319.196.41a.854.854 0 0 0 .503.137.812.812 0 0 0 .488-.137c.127-.091.191-.228.191-.41V8.879a.693.693 0 0 0-.2-.5.645.645 0 0 0-.479-.208.667.667 0 0 0-.493.208.686.686 0 0 0-.206.5v5.824Zm2.141.028c0 .346.23.519.689.519.459 0 .689-.173.689-.519V5.293c0-.529-.17-.889-.479-.928-.209-.028-.402-.027-.601.143-.198.17-.298.477-.298.785v9.438Zm2.178.273V4.736c0-.327.096-.522.288-.585a5.392 5.392 0 0 1 3.891.529 5.487 5.487 0 0 1 1.986 1.854 5.58 5.58 0 0 1 .88 2.591 3.01 3.01 0 0 1 1.21-.246c.868 0 1.612.312 2.229.935S20 11.185 20 12.06a3.09 3.09 0 0 1-.926 2.256c-.617.623-1.358.935-2.22.935l-8.096-.01a.221.221 0 0 1-.126-.104.285.285 0 0 1-.042-.133Z"
6470
+ d: "M10 0C4.477 0 0 4.477 0 10c0 5.522 4.477 10 10 10 5.522 0 10-4.478 10-10-.016-5.516-4.483-9.984-10-10m4.6 14.454a.594.594 0 0 1-.81.225c-.014-.007-.027-.016-.04-.025-2.35-1.454-5.3-1.75-8.8-.95a.618.618 0 1 1-.3-1.199c3.8-.851 7.1-.5 9.7 1.099a.6.6 0 0 1 .277.801c-.008.017-.018.033-.027.049m1.205-2.754a.753.753 0 0 1-1.034.26l-.016-.01A12.959 12.959 0 0 0 4.8 10.8a.76.76 0 0 1-.455-1.45A14.625 14.625 0 0 1 15.6 10.7a.706.706 0 0 1 .216.975c-.004.009-.01.016-.016.025m.1-2.8C12.7 7 7.35 6.8 4.3 7.75a.918.918 0 0 1-.617-1.728c.024-.008.047-.016.071-.022 3.551-1.05 9.4-.85 13.1 1.35.45.267.605.843.35 1.3a1.047 1.047 0 0 1-1.3.25"
4690
6471
  })));
4691
6472
  };
4692
6473
  var _path$8;
@@ -4704,13 +6485,13 @@ function _extends$8() {
4704
6485
  };
4705
6486
  return _extends$8.apply(this, arguments);
4706
6487
  }
4707
- var SvgLogoSpotify20 = function SvgLogoSpotify202(props) {
6488
+ var SvgLogoTelegram20 = function SvgLogoTelegram202(props) {
4708
6489
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$8({
4709
6490
  xmlns: "http://www.w3.org/2000/svg",
4710
6491
  width: 20,
4711
6492
  height: 20
4712
6493
  }, props), _path$8 || (_path$8 = /* @__PURE__ */ React__namespace.createElement("path", {
4713
- d: "M10 0C4.477 0 0 4.477 0 10c0 5.522 4.477 10 10 10 5.522 0 10-4.478 10-10-.016-5.516-4.483-9.984-10-10m4.6 14.454a.594.594 0 0 1-.81.225c-.014-.007-.027-.016-.04-.025-2.35-1.454-5.3-1.75-8.8-.95a.618.618 0 1 1-.3-1.199c3.8-.851 7.1-.5 9.7 1.099a.6.6 0 0 1 .277.801c-.008.017-.018.033-.027.049m1.205-2.754a.753.753 0 0 1-1.034.26l-.016-.01A12.959 12.959 0 0 0 4.8 10.8a.76.76 0 0 1-.455-1.45A14.625 14.625 0 0 1 15.6 10.7a.706.706 0 0 1 .216.975c-.004.009-.01.016-.016.025m.1-2.8C12.7 7 7.35 6.8 4.3 7.75a.918.918 0 0 1-.617-1.728c.024-.008.047-.016.071-.022 3.551-1.05 9.4-.85 13.1 1.35.45.267.605.843.35 1.3a1.047 1.047 0 0 1-1.3.25"
6494
+ d: "M18.54 1.2.778 8.458s-.84.3-.774.852c.066.553.752.807.752.807l4.468 1.566 10.728-7.096s.62-.392.597 0c0 0 .111.07-.22.391-.333.324-8.429 7.904-8.429 7.904l-.583 5.182c.247.112.473-.066.473-.066l2.887-2.742 4.501 3.593c1.216.554 1.66-.598 1.66-.598L20 1.638c0-1.106-1.46-.438-1.46-.438"
4714
6495
  })));
4715
6496
  };
4716
6497
  var _path$7;
@@ -4728,13 +6509,13 @@ function _extends$7() {
4728
6509
  };
4729
6510
  return _extends$7.apply(this, arguments);
4730
6511
  }
4731
- var SvgLogoTelegram20 = function SvgLogoTelegram202(props) {
6512
+ var SvgLogoTumblr20 = function SvgLogoTumblr202(props) {
4732
6513
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$7({
4733
6514
  xmlns: "http://www.w3.org/2000/svg",
4734
6515
  width: 20,
4735
6516
  height: 20
4736
6517
  }, props), _path$7 || (_path$7 = /* @__PURE__ */ React__namespace.createElement("path", {
4737
- d: "M18.54 1.2.778 8.458s-.84.3-.774.852c.066.553.752.807.752.807l4.468 1.566 10.728-7.096s.62-.392.597 0c0 0 .111.07-.22.391-.333.324-8.429 7.904-8.429 7.904l-.583 5.182c.247.112.473-.066.473-.066l2.887-2.742 4.501 3.593c1.216.554 1.66-.598 1.66-.598L20 1.638c0-1.106-1.46-.438-1.46-.438"
6518
+ d: "M15.083 15.965a4.357 4.357 0 0 1-1.543.345 1.728 1.728 0 0 1-1.842-1.97V8.115h3.844V5.087h-3.835V0H8.904a.154.154 0 0 0-.138.15A6.12 6.12 0 0 1 5 5.533v2.582h1.937v6.533c-.034 2.921 2.329 5.318 5.278 5.351.157.002.314-.003.472-.014 1.407-.025 2.968-.636 3.313-1.171l-.917-2.851"
4738
6519
  })));
4739
6520
  };
4740
6521
  var _path$6;
@@ -4752,13 +6533,13 @@ function _extends$6() {
4752
6533
  };
4753
6534
  return _extends$6.apply(this, arguments);
4754
6535
  }
4755
- var SvgLogoTumblr20 = function SvgLogoTumblr202(props) {
6536
+ var SvgLogoTwitch20 = function SvgLogoTwitch202(props) {
4756
6537
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$6({
4757
6538
  xmlns: "http://www.w3.org/2000/svg",
4758
6539
  width: 20,
4759
6540
  height: 20
4760
6541
  }, props), _path$6 || (_path$6 = /* @__PURE__ */ React__namespace.createElement("path", {
4761
- d: "M15.083 15.965a4.357 4.357 0 0 1-1.543.345 1.728 1.728 0 0 1-1.842-1.97V8.115h3.844V5.087h-3.835V0H8.904a.154.154 0 0 0-.138.15A6.12 6.12 0 0 1 5 5.533v2.582h1.937v6.533c-.034 2.921 2.329 5.318 5.278 5.351.157.002.314-.003.472-.014 1.407-.025 2.968-.636 3.313-1.171l-.917-2.851"
6542
+ d: "M1.406 0 0 3.433v14.03h5.001V20h2.812l2.656-2.537h4.063L20 12.238V0H1.406zm1.719 1.791h15v9.552L15 14.328h-5l-2.656 2.537v-2.537H3.125V1.791zm10 8.651h1.876V5.224h-1.876v5.218zm-5 0H10V5.224H8.125v5.218z"
4762
6543
  })));
4763
6544
  };
4764
6545
  var _path$5;
@@ -4776,13 +6557,13 @@ function _extends$5() {
4776
6557
  };
4777
6558
  return _extends$5.apply(this, arguments);
4778
6559
  }
4779
- var SvgLogoTwitch20 = function SvgLogoTwitch202(props) {
6560
+ var SvgLogoTwitter20 = function SvgLogoTwitter202(props) {
4780
6561
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$5({
4781
6562
  xmlns: "http://www.w3.org/2000/svg",
4782
6563
  width: 20,
4783
6564
  height: 20
4784
6565
  }, props), _path$5 || (_path$5 = /* @__PURE__ */ React__namespace.createElement("path", {
4785
- d: "M1.406 0 0 3.433v14.03h5.001V20h2.812l2.656-2.537h4.063L20 12.238V0H1.406zm1.719 1.791h15v9.552L15 14.328h-5l-2.656 2.537v-2.537H3.125V1.791zm10 8.651h1.876V5.224h-1.876v5.218zm-5 0H10V5.224H8.125v5.218z"
6566
+ d: "M6.29 18.254c7.547 0 11.675-6.253 11.675-11.675 0-.178-.004-.354-.012-.53A8.339 8.339 0 0 0 20 3.924a8.165 8.165 0 0 1-2.356.646 4.12 4.12 0 0 0 1.804-2.27 8.198 8.198 0 0 1-2.606.996A4.104 4.104 0 0 0 9.85 7.039a11.652 11.652 0 0 1-8.458-4.287 4.101 4.101 0 0 0 1.27 5.477 4.058 4.058 0 0 1-1.858-.513l-.001.052a4.104 4.104 0 0 0 3.292 4.023 4.107 4.107 0 0 1-1.853.07 4.107 4.107 0 0 0 3.833 2.85 8.233 8.233 0 0 1-5.096 1.757A8.33 8.33 0 0 1 0 16.411a11.614 11.614 0 0 0 6.29 1.843"
4786
6567
  })));
4787
6568
  };
4788
6569
  var _path$4;
@@ -4800,13 +6581,13 @@ function _extends$4() {
4800
6581
  };
4801
6582
  return _extends$4.apply(this, arguments);
4802
6583
  }
4803
- var SvgLogoTwitter20 = function SvgLogoTwitter202(props) {
6584
+ var SvgLogoWhatsapp20 = function SvgLogoWhatsapp202(props) {
4804
6585
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$4({
4805
6586
  xmlns: "http://www.w3.org/2000/svg",
4806
6587
  width: 20,
4807
6588
  height: 20
4808
6589
  }, props), _path$4 || (_path$4 = /* @__PURE__ */ React__namespace.createElement("path", {
4809
- d: "M6.29 18.254c7.547 0 11.675-6.253 11.675-11.675 0-.178-.004-.354-.012-.53A8.339 8.339 0 0 0 20 3.924a8.165 8.165 0 0 1-2.356.646 4.12 4.12 0 0 0 1.804-2.27 8.198 8.198 0 0 1-2.606.996A4.104 4.104 0 0 0 9.85 7.039a11.652 11.652 0 0 1-8.458-4.287 4.101 4.101 0 0 0 1.27 5.477 4.058 4.058 0 0 1-1.858-.513l-.001.052a4.104 4.104 0 0 0 3.292 4.023 4.107 4.107 0 0 1-1.853.07 4.107 4.107 0 0 0 3.833 2.85 8.233 8.233 0 0 1-5.096 1.757A8.33 8.33 0 0 1 0 16.411a11.614 11.614 0 0 0 6.29 1.843"
6590
+ d: "M14.785 11.957c-.246-.135-1.455-.783-1.683-.873-.226-.091-.39-.14-.568.104-.177.242-.679.784-.83.944-.152.162-.3.177-.546.043-.246-.135-1.043-.428-1.969-1.31-.719-.687-1.192-1.52-1.329-1.774-.137-.255 0-.384.13-.503.116-.107.261-.281.392-.421.13-.142.176-.244.266-.406.09-.163.054-.31-.005-.437-.058-.125-.512-1.369-.703-1.875-.19-.505-.4-.43-.548-.436-.146-.005-.312-.032-.479-.037a.925.925 0 0 0-.68.285c-.24.24-.909.819-.956 2.042-.046 1.224.807 2.44.926 2.61.12.17 1.63 2.822 4.14 3.913 2.51 1.091 2.523.758 2.984.734.461-.024 1.505-.546 1.736-1.12.231-.572.25-1.07.191-1.175-.059-.107-.223-.176-.469-.309m-4.604 5.896a8.18 8.18 0 0 1-4.497-1.34l-3.14.997 1.02-3.011a8.025 8.025 0 0 1-1.556-4.755c0-4.474 3.667-8.112 8.173-8.112 4.507 0 8.173 3.638 8.173 8.111 0 4.472-3.666 8.11-8.173 8.11m0-17.852C4.76 0 .363 4.362.363 9.742c0 1.841.515 3.563 1.41 5.03L0 20l5.435-1.727a9.838 9.838 0 0 0 4.746 1.212c5.423 0 9.82-4.362 9.82-9.742 0-5.381-4.397-9.744-9.82-9.744"
4810
6591
  })));
4811
6592
  };
4812
6593
  var _path$3;
@@ -4824,13 +6605,13 @@ function _extends$3() {
4824
6605
  };
4825
6606
  return _extends$3.apply(this, arguments);
4826
6607
  }
4827
- var SvgLogoWhatsapp20 = function SvgLogoWhatsapp202(props) {
6608
+ var SvgLogoVimeo20 = function SvgLogoVimeo202(props) {
4828
6609
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$3({
4829
6610
  xmlns: "http://www.w3.org/2000/svg",
4830
6611
  width: 20,
4831
6612
  height: 20
4832
6613
  }, props), _path$3 || (_path$3 = /* @__PURE__ */ React__namespace.createElement("path", {
4833
- d: "M14.785 11.957c-.246-.135-1.455-.783-1.683-.873-.226-.091-.39-.14-.568.104-.177.242-.679.784-.83.944-.152.162-.3.177-.546.043-.246-.135-1.043-.428-1.969-1.31-.719-.687-1.192-1.52-1.329-1.774-.137-.255 0-.384.13-.503.116-.107.261-.281.392-.421.13-.142.176-.244.266-.406.09-.163.054-.31-.005-.437-.058-.125-.512-1.369-.703-1.875-.19-.505-.4-.43-.548-.436-.146-.005-.312-.032-.479-.037a.925.925 0 0 0-.68.285c-.24.24-.909.819-.956 2.042-.046 1.224.807 2.44.926 2.61.12.17 1.63 2.822 4.14 3.913 2.51 1.091 2.523.758 2.984.734.461-.024 1.505-.546 1.736-1.12.231-.572.25-1.07.191-1.175-.059-.107-.223-.176-.469-.309m-4.604 5.896a8.18 8.18 0 0 1-4.497-1.34l-3.14.997 1.02-3.011a8.025 8.025 0 0 1-1.556-4.755c0-4.474 3.667-8.112 8.173-8.112 4.507 0 8.173 3.638 8.173 8.111 0 4.472-3.666 8.11-8.173 8.11m0-17.852C4.76 0 .363 4.362.363 9.742c0 1.841.515 3.563 1.41 5.03L0 20l5.435-1.727a9.838 9.838 0 0 0 4.746 1.212c5.423 0 9.82-4.362 9.82-9.742 0-5.381-4.397-9.744-9.82-9.744"
6614
+ d: "M19.992 5.157c-.087 2.029-1.445 4.804-4.076 8.323C13.197 17.16 10.895 19 9.011 19c-1.165 0-2.151-1.121-2.957-3.364-.54-2.06-1.08-4.12-1.615-6.174-.6-2.246-1.244-3.37-1.93-3.37-.57.248-1.1.58-1.568.985L0 5.816c.986-.9 1.958-1.804 2.916-2.71 1.313-1.184 2.299-1.808 2.958-1.871 1.553-.158 2.51.948 2.87 3.319.386 2.558.654 4.148.805 4.772.45 2.12.943 3.18 1.479 3.178.417 0 1.045-.685 1.883-2.055a8.28 8.28 0 0 0 1.345-3.134c.12-1.186-.329-1.775-1.345-1.775a3.7 3.7 0 0 0-1.48.326c.989-3.336 2.873-4.957 5.652-4.862 2.059.06 3.027 1.446 2.907 4.159"
4834
6615
  })));
4835
6616
  };
4836
6617
  var _path$2;
@@ -4848,13 +6629,13 @@ function _extends$2() {
4848
6629
  };
4849
6630
  return _extends$2.apply(this, arguments);
4850
6631
  }
4851
- var SvgLogoVimeo20 = function SvgLogoVimeo202(props) {
6632
+ var SvgLogoYelp20 = function SvgLogoYelp202(props) {
4852
6633
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$2({
4853
6634
  xmlns: "http://www.w3.org/2000/svg",
4854
6635
  width: 20,
4855
6636
  height: 20
4856
6637
  }, props), _path$2 || (_path$2 = /* @__PURE__ */ React__namespace.createElement("path", {
4857
- d: "M19.992 5.157c-.087 2.029-1.445 4.804-4.076 8.323C13.197 17.16 10.895 19 9.011 19c-1.165 0-2.151-1.121-2.957-3.364-.54-2.06-1.08-4.12-1.615-6.174-.6-2.246-1.244-3.37-1.93-3.37-.57.248-1.1.58-1.568.985L0 5.816c.986-.9 1.958-1.804 2.916-2.71 1.313-1.184 2.299-1.808 2.958-1.871 1.553-.158 2.51.948 2.87 3.319.386 2.558.654 4.148.805 4.772.45 2.12.943 3.18 1.479 3.178.417 0 1.045-.685 1.883-2.055a8.28 8.28 0 0 0 1.345-3.134c.12-1.186-.329-1.775-1.345-1.775a3.7 3.7 0 0 0-1.48.326c.989-3.336 2.873-4.957 5.652-4.862 2.059.06 3.027 1.446 2.907 4.159"
6638
+ d: "M6.861.39a14.07 14.07 0 0 0-2.298.789c-.504.223-.693.8-.415 1.25l4.37 7.047c.49.79 1.787.467 1.787-.446V.894c0-.52-.475-.932-1.03-.891C8.471.062 7.665.19 6.86.39m11.06 8.885a7.736 7.736 0 0 0-2.116-2.71c-.433-.355-1.104-.273-1.427.173l-2.6 3.59c-.5.69.198 1.585 1.058 1.356l4.47-1.193c.557-.15.844-.721.614-1.216m-6.22 5.164 2.465 3.673c.307.458.977.558 1.425.215a7.851 7.851 0 0 0 2.21-2.638c.25-.486-.019-1.067-.569-1.234l-4.422-1.337c-.85-.258-1.583.615-1.109 1.32m-6.099 4.295a8.681 8.681 0 0 0 3.332 1.255c.572.089 1.098-.31 1.118-.85l.163-4.328c.031-.833-1.072-1.247-1.67-.628L5.432 17.4c-.386.4-.307 1.027.17 1.333M3.758 9.387l4.18 1.899c.804.365.68 1.465-.188 1.667L3.24 14c-.563.13-1.118-.23-1.185-.767a7.178 7.178 0 0 1 .377-3.33c.184-.51.81-.751 1.328-.516"
4858
6639
  })));
4859
6640
  };
4860
6641
  var _path$1;
@@ -4872,36 +6653,12 @@ function _extends$1() {
4872
6653
  };
4873
6654
  return _extends$1.apply(this, arguments);
4874
6655
  }
4875
- var SvgLogoYelp20 = function SvgLogoYelp202(props) {
6656
+ var SvgLogoYoutube20 = function SvgLogoYoutube202(props) {
4876
6657
  return /* @__PURE__ */ React__namespace.createElement("svg", _extends$1({
4877
6658
  xmlns: "http://www.w3.org/2000/svg",
4878
6659
  width: 20,
4879
6660
  height: 20
4880
6661
  }, props), _path$1 || (_path$1 = /* @__PURE__ */ React__namespace.createElement("path", {
4881
- d: "M6.861.39a14.07 14.07 0 0 0-2.298.789c-.504.223-.693.8-.415 1.25l4.37 7.047c.49.79 1.787.467 1.787-.446V.894c0-.52-.475-.932-1.03-.891C8.471.062 7.665.19 6.86.39m11.06 8.885a7.736 7.736 0 0 0-2.116-2.71c-.433-.355-1.104-.273-1.427.173l-2.6 3.59c-.5.69.198 1.585 1.058 1.356l4.47-1.193c.557-.15.844-.721.614-1.216m-6.22 5.164 2.465 3.673c.307.458.977.558 1.425.215a7.851 7.851 0 0 0 2.21-2.638c.25-.486-.019-1.067-.569-1.234l-4.422-1.337c-.85-.258-1.583.615-1.109 1.32m-6.099 4.295a8.681 8.681 0 0 0 3.332 1.255c.572.089 1.098-.31 1.118-.85l.163-4.328c.031-.833-1.072-1.247-1.67-.628L5.432 17.4c-.386.4-.307 1.027.17 1.333M3.758 9.387l4.18 1.899c.804.365.68 1.465-.188 1.667L3.24 14c-.563.13-1.118-.23-1.185-.767a7.178 7.178 0 0 1 .377-3.33c.184-.51.81-.751 1.328-.516"
4882
- })));
4883
- };
4884
- var _path;
4885
- function _extends() {
4886
- _extends = Object.assign || function(target) {
4887
- for (var i = 1; i < arguments.length; i++) {
4888
- var source = arguments[i];
4889
- for (var key in source) {
4890
- if (Object.prototype.hasOwnProperty.call(source, key)) {
4891
- target[key] = source[key];
4892
- }
4893
- }
4894
- }
4895
- return target;
4896
- };
4897
- return _extends.apply(this, arguments);
4898
- }
4899
- var SvgLogoYoutube20 = function SvgLogoYoutube202(props) {
4900
- return /* @__PURE__ */ React__namespace.createElement("svg", _extends({
4901
- xmlns: "http://www.w3.org/2000/svg",
4902
- width: 20,
4903
- height: 20
4904
- }, props), _path || (_path = /* @__PURE__ */ React__namespace.createElement("path", {
4905
6662
  d: "M8 13V7l5 3-5 3Zm11.582-7.814a2.502 2.502 0 0 0-1.769-1.768C16.254 3 10 3 10 3s-6.254 0-7.814.418c-.86.23-1.538.908-1.768 1.768C0 6.746 0 10 0 10s0 3.254.418 4.813c.23.862.908 1.54 1.768 1.769C3.746 17 10 17 10 17s6.254 0 7.813-.418a2.498 2.498 0 0 0 1.769-1.769C20 13.254 20 10 20 10s0-3.254-.418-4.814Z"
4906
6663
  })));
4907
6664
  };
@@ -5041,7 +6798,7 @@ function SocialLinksPlaceholder({
5041
6798
  }, link.id))
5042
6799
  });
5043
6800
  }
5044
- const Container = styled__default["default"].div`
6801
+ const Container$1 = styled__default["default"].div`
5045
6802
  display: flex;
5046
6803
  flex-direction: row;
5047
6804
  flex-wrap: wrap;
@@ -5125,7 +6882,7 @@ const SocialLinks = React.forwardRef(function SocialLinks2({
5125
6882
  }, ref) {
5126
6883
  const fillData = useColor(fill);
5127
6884
  const backgroundColorData = useColor(backgroundColor);
5128
- return /* @__PURE__ */ jsxRuntime.jsx(Container, {
6885
+ return /* @__PURE__ */ jsxRuntime.jsx(Container$1, {
5129
6886
  ref,
5130
6887
  id,
5131
6888
  alignment,
@@ -5161,7 +6918,7 @@ const SocialLinks = React.forwardRef(function SocialLinks2({
5161
6918
  })
5162
6919
  });
5163
6920
  });
5164
- function registerComponent$1(runtime) {
6921
+ function registerComponent$2(runtime) {
5165
6922
  return runtime.registerComponent(SocialLinks, {
5166
6923
  type: "./components/SocialLinks/index.js",
5167
6924
  label: "Social Links",
@@ -5409,10 +7166,10 @@ const Span = styled__default["default"].span`
5409
7166
  `}
5410
7167
  `, shallowMergeFallbacks)}
5411
7168
  `;
5412
- function Mark(_w) {
5413
- var _x = _w, {
7169
+ function Mark(__) {
7170
+ var _$ = __, {
5414
7171
  value
5415
- } = _x, restOfProps = __objRest(_x, [
7172
+ } = _$, restOfProps = __objRest(_$, [
5416
7173
  "value"
5417
7174
  ]);
5418
7175
  const typographyStyle = useTypographyMark(value);
@@ -5450,10 +7207,10 @@ const StyledBlock = styled__default["default"].div`
5450
7207
  border-left: 5px solid rgba(0, 0, 0, 0.1);
5451
7208
  ` : ""}
5452
7209
  `;
5453
- var Block = React.forwardRef(function Block2(_y, ref) {
5454
- var _z = _y, {
7210
+ var Block = React.forwardRef(function Block2(_aa, ref) {
7211
+ var _ba = _aa, {
5455
7212
  textAlign
5456
- } = _z, restOfProps = __objRest(_z, [
7213
+ } = _ba, restOfProps = __objRest(_ba, [
5457
7214
  "textAlign"
5458
7215
  ]);
5459
7216
  return /* @__PURE__ */ jsxRuntime.jsx(StyledBlock, __spreadProps(__spreadValues({}, restOfProps), {
@@ -5578,10 +7335,10 @@ function Inlines() {
5578
7335
  }
5579
7336
  };
5580
7337
  }
5581
- const RichTextEditor = styled__default["default"](React.forwardRef(function RichTextEditor2(_A, ref) {
5582
- var _B = _A, {
7338
+ const RichTextEditor = styled__default["default"](React.forwardRef(function RichTextEditor2(_ca, ref) {
7339
+ var _da = _ca, {
5583
7340
  placeholder: placeholder2 = "Write some text..."
5584
- } = _B, restOfProps = __objRest(_B, [
7341
+ } = _da, restOfProps = __objRest(_da, [
5585
7342
  "placeholder"
5586
7343
  ]);
5587
7344
  const plugins = React.useMemo(() => [Lists__default["default"](), LinkPlugin(), Inlines(), DeviceOverridesBlockPlugin(), DeviceOverridesMarksPlugin()], []);
@@ -5698,7 +7455,7 @@ const Text = React.forwardRef(function Text2({
5698
7455
  onKeyDown: handleKeyDown
5699
7456
  });
5700
7457
  });
5701
- function registerComponent(runtime) {
7458
+ function registerComponent$1(runtime) {
5702
7459
  return runtime.registerComponent(Text, {
5703
7460
  type: "./components/Text/index.js",
5704
7461
  label: "Text",
@@ -5776,18 +7533,103 @@ function registerComponent(runtime) {
5776
7533
  }
5777
7534
  });
5778
7535
  }
7536
+ const Container = styled__default["default"].div`
7537
+ display: flex;
7538
+ flex-direction: column;
7539
+ overflow: hidden;
7540
+ ${cssWidth("560px")}
7541
+ ${cssMargin()}
7542
+ ${cssBorderRadius()}
7543
+ `;
7544
+ const ASPECT_RATIO = 16 / 9;
7545
+ const Video = React.forwardRef(function Video2({
7546
+ id,
7547
+ video,
7548
+ width,
7549
+ margin,
7550
+ borderRadius
7551
+ }, ref) {
7552
+ const canPlayUrl = video && video.url != null && ReactPlayer__default["default"].canPlay(video.url);
7553
+ return /* @__PURE__ */ jsxRuntime.jsx(Container, {
7554
+ ref,
7555
+ id,
7556
+ width,
7557
+ margin,
7558
+ borderRadius,
7559
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
7560
+ style: {
7561
+ position: "relative",
7562
+ paddingTop: `${100 / ASPECT_RATIO}%`
7563
+ },
7564
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", {
7565
+ style: {
7566
+ position: "absolute",
7567
+ top: 0,
7568
+ left: 0,
7569
+ right: 0,
7570
+ bottom: 0
7571
+ },
7572
+ children: canPlayUrl === true ? /* @__PURE__ */ jsxRuntime.jsx(ReactPlayer__default["default"], __spreadProps(__spreadValues({}, video), {
7573
+ width: "100%",
7574
+ height: "100%",
7575
+ config: {
7576
+ vimeo: {
7577
+ playerOptions: {
7578
+ background: video != null && !video.controls
7579
+ }
7580
+ },
7581
+ wistia: {
7582
+ options: {
7583
+ endVideoBehavior: video != null && video.loop === true ? "loop" : "default"
7584
+ }
7585
+ }
7586
+ }
7587
+ })) : /* @__PURE__ */ jsxRuntime.jsx("img", {
7588
+ width: "100%",
7589
+ src: placeholders.video.src,
7590
+ alt: "Video Placeholder"
7591
+ })
7592
+ })
7593
+ })
7594
+ });
7595
+ });
7596
+ function registerComponent(runtime) {
7597
+ return runtime.registerComponent(Video, {
7598
+ type: "./components/Video/index.js",
7599
+ label: "Video",
7600
+ icon: "Video40",
7601
+ props: {
7602
+ id: descriptors.ElementID(),
7603
+ video: descriptors.Video({
7604
+ preset: {
7605
+ controls: true
7606
+ }
7607
+ }),
7608
+ width: descriptors.Width({
7609
+ defaultValue: {
7610
+ value: 560,
7611
+ unit: "px"
7612
+ }
7613
+ }),
7614
+ margin: descriptors.Margin(),
7615
+ borderRadius: descriptors.BorderRadius()
7616
+ }
7617
+ });
7618
+ }
5779
7619
  function registerBuiltinComponents(runtime) {
5780
- const unregisterBoxComponent = registerComponent$a(runtime);
5781
- const unregisterButtonComponent = registerComponent$9(runtime);
5782
- const unregisterCarouselComponent = registerComponent$7(runtime);
5783
- const unregisterCountdownComponent = registerComponent$6(runtime);
5784
- const unregisterDividerComponent = registerComponent$5(runtime);
5785
- const unregisterEmbedComponent = registerComponent$4(runtime);
5786
- const unregisterImageComponent = registerComponent$8(runtime);
5787
- const unregisterNavigationComponent = registerComponent$3(runtime);
5788
- const unregisterRootComponent = registerComponent$2(runtime);
5789
- const unregisterSocialLinksComponent = registerComponent$1(runtime);
5790
- const unregisterTextComponent = registerComponent(runtime);
7620
+ const unregisterBoxComponent = registerComponent$c(runtime);
7621
+ const unregisterButtonComponent = registerComponent$b(runtime);
7622
+ const unregisterCarouselComponent = registerComponent$9(runtime);
7623
+ const unregisterCountdownComponent = registerComponent$8(runtime);
7624
+ const unregisterDividerComponent = registerComponent$7(runtime);
7625
+ const unregisterEmbedComponent = registerComponent$6(runtime);
7626
+ const unregisterFormComponent = registerComponent$5(runtime);
7627
+ const unregisterImageComponent = registerComponent$a(runtime);
7628
+ const unregisterNavigationComponent = registerComponent$4(runtime);
7629
+ const unregisterRootComponent = registerComponent$3(runtime);
7630
+ const unregisterSocialLinksComponent = registerComponent$2(runtime);
7631
+ const unregisterTextComponent = registerComponent$1(runtime);
7632
+ const unregisterVideoComponent = registerComponent(runtime);
5791
7633
  return () => {
5792
7634
  unregisterBoxComponent();
5793
7635
  unregisterButtonComponent();
@@ -5795,14 +7637,67 @@ function registerBuiltinComponents(runtime) {
5795
7637
  unregisterCountdownComponent();
5796
7638
  unregisterDividerComponent();
5797
7639
  unregisterEmbedComponent();
7640
+ unregisterFormComponent();
5798
7641
  unregisterImageComponent();
5799
7642
  unregisterNavigationComponent();
5800
7643
  unregisterRootComponent();
5801
7644
  unregisterSocialLinksComponent();
5802
7645
  unregisterTextComponent();
7646
+ unregisterTextComponent();
7647
+ unregisterVideoComponent();
7648
+ };
7649
+ }
7650
+ var _path;
7651
+ function _extends() {
7652
+ _extends = Object.assign || function(target) {
7653
+ for (var i = 1; i < arguments.length; i++) {
7654
+ var source = arguments[i];
7655
+ for (var key in source) {
7656
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7657
+ target[key] = source[key];
7658
+ }
7659
+ }
7660
+ }
7661
+ return target;
5803
7662
  };
7663
+ return _extends.apply(this, arguments);
5804
7664
  }
5805
- const contextDefaultValue = configureStore();
7665
+ var SvgWarning20 = function SvgWarning202(props) {
7666
+ return /* @__PURE__ */ React__namespace.createElement("svg", _extends({
7667
+ width: 20,
7668
+ height: 20,
7669
+ xmlns: "http://www.w3.org/2000/svg"
7670
+ }, props), _path || (_path = /* @__PURE__ */ React__namespace.createElement("path", {
7671
+ fillRule: "evenodd",
7672
+ clipRule: "evenodd",
7673
+ d: "M2.899 18H17.1a1.75 1.75 0 0 0 1.549-2.565L11.549 1.942c-.656-1.246-2.442-1.246-3.098 0L1.35 15.435A1.75 1.75 0 0 0 2.899 18ZM9 6a1 1 0 1 1 2 0v5a1 1 0 1 1-2 0V6Zm2.25 8.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z"
7674
+ })));
7675
+ };
7676
+ const ErrorDiv = styled__default["default"]("div")`
7677
+ width: 100%;
7678
+ height: 54px;
7679
+ background-color: #fcedf2;
7680
+ border-radius: 6px;
7681
+ padding: 16px;
7682
+ display: flex;
7683
+ align-items: center;
7684
+ gap: 8px;
7685
+ color: #c73e6d;
7686
+ fill: currentColor;
7687
+ font-family: Heebo, sans-serif;
7688
+ font-size: 16px;
7689
+ `;
7690
+ const FallbackComponent = React.forwardRef(function FallbackComponent2({
7691
+ text
7692
+ }, ref) {
7693
+ return /* @__PURE__ */ jsxRuntime.jsxs(ErrorDiv, {
7694
+ ref,
7695
+ children: [/* @__PURE__ */ jsxRuntime.jsx(SvgWarning20, {}), /* @__PURE__ */ jsxRuntime.jsx("span", {
7696
+ children: text
7697
+ })]
7698
+ });
7699
+ });
7700
+ const contextDefaultValue = reactPage.configureStore();
5806
7701
  function createReactRuntime(store) {
5807
7702
  return {
5808
7703
  registerComponent(component, {
@@ -5828,39 +7723,31 @@ function createReactRuntime(store) {
5828
7723
  const ReactRuntime = createReactRuntime(contextDefaultValue);
5829
7724
  const Context = React.createContext(contextDefaultValue);
5830
7725
  function RuntimeProvider({
7726
+ client: client2,
5831
7727
  children,
5832
- defaultRootElements,
5833
- registerComponents,
5834
- makeswiftApiEndpoint
7728
+ rootElements
5835
7729
  }) {
5836
7730
  const [store, setStore] = React.useState(() => {
5837
- const store2 = configureStore({
7731
+ const store2 = reactPage.configureStore({
5838
7732
  preloadedState: contextDefaultValue.getState(),
5839
- rootElements: defaultRootElements
7733
+ rootElements
5840
7734
  });
5841
7735
  const runtime = createReactRuntime(store2);
5842
7736
  registerBuiltinComponents(runtime);
5843
- registerComponents == null ? void 0 : registerComponents(runtime);
5844
7737
  return store2;
5845
7738
  });
5846
- const [client$1, setClient] = React.useState(new client.ApolloClient({
5847
- uri: makeswiftApiEndpoint,
5848
- cache: new client.InMemoryCache()
5849
- }));
5850
- React.useEffect(() => {
5851
- setClient(({
5852
- cache
5853
- }) => new client.ApolloClient({
5854
- uri: makeswiftApiEndpoint,
5855
- cache
5856
- }));
5857
- }, [makeswiftApiEndpoint]);
5858
7739
  React.useEffect(() => {
5859
7740
  return registerBuiltinComponents(createReactRuntime(store));
5860
7741
  }, [store]);
5861
7742
  React.useEffect(() => {
5862
- return registerComponents == null ? void 0 : registerComponents(createReactRuntime(store));
5863
- }, [store, registerComponents]);
7743
+ var _a;
7744
+ const unregisterDocuments = Array.from((_a = rootElements == null ? void 0 : rootElements.entries()) != null ? _a : []).map(([documentKey, rootElement]) => store.dispatch(actions.registerDocumentEffect(reactPage.createDocument(documentKey, rootElement))));
7745
+ return () => {
7746
+ unregisterDocuments.forEach((unregisterDocument) => {
7747
+ unregisterDocument();
7748
+ });
7749
+ };
7750
+ }, [store, rootElements]);
5864
7751
  React.useEffect(() => {
5865
7752
  const isInBuilder = window.parent !== window;
5866
7753
  if (isInBuilder)
@@ -5871,10 +7758,10 @@ function RuntimeProvider({
5871
7758
  });
5872
7759
  setStore((store2) => ReactBuilderPreview.configureStore({
5873
7760
  preloadedState: store2.getState(),
5874
- client: client$1
7761
+ client: client2.apolloClient
5875
7762
  }));
5876
7763
  }
5877
- }, [client$1]);
7764
+ }, [client2]);
5878
7765
  React.useEffect(() => {
5879
7766
  const isInBuilder = window.parent !== window;
5880
7767
  if (!isInBuilder)
@@ -5898,12 +7785,31 @@ function RuntimeProvider({
5898
7785
  }, []);
5899
7786
  return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, {
5900
7787
  value: store,
5901
- children: /* @__PURE__ */ jsxRuntime.jsx(ApolloProvider, {
5902
- client: client$1,
7788
+ children: /* @__PURE__ */ jsxRuntime.jsx(MakeswiftProvider, {
7789
+ client: client2,
5903
7790
  children
5904
7791
  })
5905
7792
  });
5906
7793
  }
7794
+ const PageContext = React.createContext(null);
7795
+ function usePageIdOrNull() {
7796
+ return React.useContext(PageContext);
7797
+ }
7798
+ function usePageId() {
7799
+ const pageIdOrNull = usePageIdOrNull();
7800
+ if (pageIdOrNull == null)
7801
+ throw new Error("`usePageId` must be used with `<PageProvider>`");
7802
+ return pageIdOrNull;
7803
+ }
7804
+ function PageProvider({
7805
+ id,
7806
+ children
7807
+ }) {
7808
+ return /* @__PURE__ */ jsxRuntime.jsx(PageContext.Provider, {
7809
+ value: id,
7810
+ children
7811
+ });
7812
+ }
5907
7813
  const DocumentContext = React.createContext(null);
5908
7814
  function useDocumentKey() {
5909
7815
  return React.useContext(DocumentContext);
@@ -5913,17 +7819,17 @@ function useSelector(selector) {
5913
7819
  return withSelector.useSyncExternalStoreWithSelector(store.subscribe, store.getState, store.getState, selector);
5914
7820
  }
5915
7821
  function useComponent(type) {
5916
- return useSelector((state) => getReactComponent(state, type));
7822
+ return useSelector((state) => reactPage.getReactComponent(state, type));
5917
7823
  }
5918
7824
  function useElementId(elementKey) {
5919
7825
  const documentKey = useDocumentKey();
5920
- return useSelector((state) => documentKey == null || elementKey == null ? null : getElementId(state, documentKey, elementKey));
7826
+ return useSelector((state) => documentKey == null || elementKey == null ? null : reactPage.getElementId(state, documentKey, elementKey));
5921
7827
  }
5922
- function useDocumentRootElement(documentKey) {
5923
- return useSelector((state) => getDocumentRootElement(state, documentKey));
7828
+ function useDocument(documentKey) {
7829
+ return useSelector((state) => reactPage.getDocument(state, documentKey));
5924
7830
  }
5925
7831
  function useIsInBuilder() {
5926
- return useSelector((state) => getIsInBuilder(state));
7832
+ return useSelector((state) => reactPage.getIsInBuilder(state));
5927
7833
  }
5928
7834
  function useDispatch() {
5929
7835
  const store = React.useContext(Context);
@@ -5934,15 +7840,9 @@ const ElementData = React.memo(React.forwardRef(function ElementData2({
5934
7840
  }, ref) {
5935
7841
  const Component = useComponent(elementData.type);
5936
7842
  if (Component == null) {
5937
- return /* @__PURE__ */ jsxRuntime.jsxs("div", {
7843
+ return /* @__PURE__ */ jsxRuntime.jsx(FallbackComponent, {
5938
7844
  ref,
5939
- children: [/* @__PURE__ */ jsxRuntime.jsx("p", {
5940
- children: "Component Not Found"
5941
- }), /* @__PURE__ */ jsxRuntime.jsx("pre", {
5942
- children: /* @__PURE__ */ jsxRuntime.jsx("code", {
5943
- children: JSON.stringify(elementData, null, 2)
5944
- })
5945
- })]
7845
+ text: "Component not found"
5946
7846
  });
5947
7847
  }
5948
7848
  return /* @__PURE__ */ React.createElement(Component, __spreadProps(__spreadValues({}, elementData.props), {
@@ -5953,24 +7853,52 @@ const ElementData = React.memo(React.forwardRef(function ElementData2({
5953
7853
  const ElementReference = React.memo(React.forwardRef(function ElementReference2({
5954
7854
  elementReference
5955
7855
  }, ref) {
5956
- return /* @__PURE__ */ jsxRuntime.jsxs("div", {
5957
- ref,
5958
- children: [/* @__PURE__ */ jsxRuntime.jsx("p", {
5959
- children: "Not Implemented"
5960
- }), /* @__PURE__ */ jsxRuntime.jsx("pre", {
5961
- children: /* @__PURE__ */ jsxRuntime.jsx("code", {
5962
- children: JSON.stringify(elementReference, null, 2)
5963
- })
5964
- })]
7856
+ var _a;
7857
+ const {
7858
+ error,
7859
+ data
7860
+ } = useQuery(client.gql`
7861
+ query ElementReferenceGlobalElement($id: ID!) {
7862
+ globalElement(id: $id) {
7863
+ id
7864
+ data
7865
+ }
7866
+ }
7867
+ `, {
7868
+ variables: {
7869
+ id: elementReference.value
7870
+ }
7871
+ });
7872
+ const globalElementData = (_a = data == null ? void 0 : data.globalElement) == null ? void 0 : _a.data;
7873
+ const elementReferenceDocument = useDocument(elementReference.key);
7874
+ if (error != null) {
7875
+ return /* @__PURE__ */ jsxRuntime.jsx(FallbackComponent, {
7876
+ ref,
7877
+ text: "Something went wrong!"
7878
+ });
7879
+ }
7880
+ if (globalElementData == null) {
7881
+ return /* @__PURE__ */ jsxRuntime.jsx(FallbackComponent, {
7882
+ ref,
7883
+ text: "This global component doesn't exist"
7884
+ });
7885
+ }
7886
+ return elementReferenceDocument != null ? /* @__PURE__ */ jsxRuntime.jsx(Document, {
7887
+ document: elementReferenceDocument,
7888
+ ref
7889
+ }) : /* @__PURE__ */ jsxRuntime.jsx(ElementData, {
7890
+ elementData: globalElementData,
7891
+ ref
5965
7892
  });
5966
7893
  }));
5967
- const Element$1 = React.memo(function Element2({
7894
+ const Element$1 = React.memo(React.forwardRef(function Element2({
5968
7895
  element
5969
- }) {
7896
+ }, ref) {
5970
7897
  const elementKey = element.key;
5971
7898
  const dispatch = useDispatch();
5972
7899
  const documentKey = useDocumentKey();
5973
7900
  const [handle, setHandle] = React.useState(null);
7901
+ React.useImperativeHandle(ref, () => handle, [handle]);
5974
7902
  React.useEffect(() => {
5975
7903
  if (documentKey == null)
5976
7904
  return;
@@ -5981,40 +7909,42 @@ const Element$1 = React.memo(function Element2({
5981
7909
  return;
5982
7910
  return dispatch(actions.mountComponentEffect(documentKey, elementKey));
5983
7911
  }, [dispatch, documentKey, elementKey]);
5984
- return isElementReference(element) ? /* @__PURE__ */ jsxRuntime.jsx(ElementReference, {
7912
+ return reactPage.isElementReference(element) ? /* @__PURE__ */ jsxRuntime.jsx(ElementReference, {
5985
7913
  ref: setHandle,
5986
7914
  elementReference: element
5987
7915
  }, elementKey) : /* @__PURE__ */ jsxRuntime.jsx(ElementData, {
5988
7916
  ref: setHandle,
5989
7917
  elementData: element
5990
7918
  }, elementKey);
5991
- });
5992
- const Document = React.memo(function Document2({
5993
- documentKey
5994
- }) {
5995
- const documentRootElement = useDocumentRootElement(documentKey);
5996
- if (documentRootElement == null) {
5997
- return /* @__PURE__ */ jsxRuntime.jsxs("div", {
5998
- children: [/* @__PURE__ */ jsxRuntime.jsx("p", {
5999
- children: "Document Not Found"
6000
- }), /* @__PURE__ */ jsxRuntime.jsx("pre", {
6001
- children: /* @__PURE__ */ jsxRuntime.jsx("code", {
6002
- children: JSON.stringify({
6003
- documentKey
6004
- }, null, 2)
6005
- })
6006
- })]
6007
- });
6008
- }
7919
+ }));
7920
+ const Document = React.memo(React.forwardRef(function Document2({
7921
+ document
7922
+ }, ref) {
6009
7923
  return /* @__PURE__ */ jsxRuntime.jsx(DocumentContext.Provider, {
6010
- value: documentKey,
7924
+ value: document.key,
6011
7925
  children: /* @__PURE__ */ jsxRuntime.jsx(Element$1, {
6012
- element: documentRootElement
7926
+ ref,
7927
+ element: document.rootElement
6013
7928
  })
6014
7929
  });
6015
- });
7930
+ }));
7931
+ const DocumentReference = React.memo(React.forwardRef(function DocumentReference2({
7932
+ documentReference
7933
+ }, ref) {
7934
+ const document = useDocument(documentReference.key);
7935
+ if (document == null) {
7936
+ return /* @__PURE__ */ jsxRuntime.jsx(FallbackComponent, {
7937
+ ref,
7938
+ text: "Document not found"
7939
+ });
7940
+ }
7941
+ return /* @__PURE__ */ jsxRuntime.jsx(Document, {
7942
+ ref,
7943
+ document
7944
+ });
7945
+ }));
6016
7946
  exports.Box = Box;
6017
- exports.Button = Button;
7947
+ exports.Button = Button$1;
6018
7948
  exports.Carousel = Carousel;
6019
7949
  exports.Countdown = Countdown;
6020
7950
  exports.DEFAULT_BOX_ANIMATE_DELAY = DEFAULT_BOX_ANIMATE_DELAY;
@@ -6025,17 +7955,19 @@ exports.DEFAULT_ITEM_ANIMATE_DURATION = DEFAULT_ITEM_ANIMATE_DURATION;
6025
7955
  exports.DEFAULT_ITEM_ANIMATE_TYPE = DEFAULT_ITEM_ANIMATE_TYPE;
6026
7956
  exports.DEFAULT_ITEM_STAGGER_DURATION = DEFAULT_ITEM_STAGGER_DURATION;
6027
7957
  exports.Divider = Divider;
6028
- exports.Document = Document;
7958
+ exports.DocumentReference = DocumentReference;
6029
7959
  exports.Element = Element$1;
6030
7960
  exports.Embed = Embed;
7961
+ exports.Form = Form;
6031
7962
  exports.ImageComponent = ImageComponent;
7963
+ exports.MakeswiftClient = MakeswiftClient;
6032
7964
  exports.Navigation = Navigation;
7965
+ exports.PageProvider = PageProvider;
6033
7966
  exports.ReactRuntime = ReactRuntime;
6034
7967
  exports.Root = Root;
6035
7968
  exports.RuntimeProvider = RuntimeProvider;
6036
7969
  exports.SocialLinks = SocialLinks;
6037
7970
  exports.Text = Text;
6038
- exports.createDocument = createDocument;
6039
7971
  exports.cssBorder = cssBorder;
6040
7972
  exports.cssBorderRadius = cssBorderRadius;
6041
7973
  exports.cssBoxShadow = cssBoxShadow;
@@ -6045,15 +7977,16 @@ exports.cssMediaRules = cssMediaRules;
6045
7977
  exports.cssPadding = cssPadding;
6046
7978
  exports.cssTextStyle = cssTextStyle;
6047
7979
  exports.cssWidth = cssWidth;
6048
- exports.getComponentPropControllerDescriptors = getComponentPropControllerDescriptors$1;
6049
- exports.getComponentsMeta = getComponentsMeta;
6050
- exports.getDocumentRootElement = getDocumentRootElement$1;
6051
- exports.getElementPropControllerDescriptors = getElementPropControllerDescriptors;
6052
- exports.getInitialState = getInitialState$3;
6053
- exports.reducer = reducer$3;
6054
- exports.reducer$1 = reducer$2;
6055
- exports.reducer$2 = reducer$1;
6056
7980
  exports.registerBuiltinComponents = registerBuiltinComponents;
6057
- exports.registerComponent = registerComponent$a;
7981
+ exports.registerComponent = registerComponent$c;
7982
+ exports.useBackgrounds = useBackgrounds;
7983
+ exports.useBorder = useBorder;
7984
+ exports.useBoxShadow = useBoxShadow;
7985
+ exports.useColor = useColor;
7986
+ exports.useFile = useFile;
6058
7987
  exports.useIsInBuilder = useIsInBuilder;
7988
+ exports.useMediaQuery = useMediaQuery;
7989
+ exports.usePage = usePage;
7990
+ exports.usePageId = usePageId;
7991
+ exports.useTable = useTable;
6059
7992
  //# sourceMappingURL=react.cjs2.js.map